@Test public void testParcelable() { DrmInitData drmInitDataToParcel = new DrmInitData(DATA_1, DATA_2); Parcel parcel = Parcel.obtain(); drmInitDataToParcel.writeToParcel(parcel, 0); parcel.setDataPosition(0); DrmInitData drmInitDataFromParcel = DrmInitData.CREATOR.createFromParcel(parcel); assertThat(drmInitDataFromParcel).isEqualTo(drmInitDataToParcel); parcel.recycle(); }
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(schemeType); dest.writeTypedArray(schemeDatas, 0); }
DrmInitData implements Comparator<SchemeData>, Parcelable { @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(schemeType); dest.writeTypedArray(schemeDatas, 0); } }
DrmInitData implements Comparator<SchemeData>, Parcelable { @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(schemeType); dest.writeTypedArray(schemeDatas, 0); } DrmInitData(List<SchemeData> schemeDatas);  DrmInitData(@Nullable String schemeType, List<SchemeData> schemeDatas);  DrmInitData(SchemeData... schemeDatas);  DrmInitData(@Nullable String schemeType, SchemeData... schemeDatas); private  DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas,
      SchemeData... schemeDatas);   DrmInitData(Parcel in); }
DrmInitData implements Comparator<SchemeData>, Parcelable { @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(schemeType); dest.writeTypedArray(schemeDatas, 0); } DrmInitData(List<SchemeData> schemeDatas);  DrmInitData(@Nullable String schemeType, List<SchemeData> schemeDatas);  DrmInitData(SchemeData... schemeDatas);  DrmInitData(@Nullable String schemeType, SchemeData... schemeDatas); private  DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas,
      SchemeData... schemeDatas);   DrmInitData(Parcel in); static @Nullable DrmInitData createSessionCreationData(
      @Nullable DrmInitData manifestData, @Nullable DrmInitData mediaData); @Deprecated @Nullable SchemeData get(UUID uuid); SchemeData get(int index); DrmInitData copyWithSchemeType(@Nullable String schemeType); DrmInitData merge(DrmInitData drmInitData); @Override int hashCode(); @Override boolean equals(@Nullable Object obj); @Override int compare(SchemeData first, SchemeData second); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); }
DrmInitData implements Comparator<SchemeData>, Parcelable { @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(schemeType); dest.writeTypedArray(schemeDatas, 0); } DrmInitData(List<SchemeData> schemeDatas);  DrmInitData(@Nullable String schemeType, List<SchemeData> schemeDatas);  DrmInitData(SchemeData... schemeDatas);  DrmInitData(@Nullable String schemeType, SchemeData... schemeDatas); private  DrmInitData(@Nullable String schemeType, boolean cloneSchemeDatas,
      SchemeData... schemeDatas);   DrmInitData(Parcel in); static @Nullable DrmInitData createSessionCreationData(
      @Nullable DrmInitData manifestData, @Nullable DrmInitData mediaData); @Deprecated @Nullable SchemeData get(UUID uuid); SchemeData get(int index); DrmInitData copyWithSchemeType(@Nullable String schemeType); DrmInitData merge(DrmInitData drmInitData); @Override int hashCode(); @Override boolean equals(@Nullable Object obj); @Override int compare(SchemeData first, SchemeData second); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); final @Nullable String schemeType; final int schemeDataCount; static final Parcelable.Creator<DrmInitData> CREATOR; }