@Test @SuppressWarnings("deprecation") public void testSchemeDatasWithSameUuid() { DrmInitData testInitData = new DrmInitData(DATA_1, DATA_1B); assertThat(testInitData.schemeDataCount).isEqualTo(2); assertThat(testInitData.get(WIDEVINE_UUID)).isEqualTo(DATA_1); assertThat(testInitData.get(0)).isEqualTo(DATA_1); assertThat(testInitData.get(1)).isEqualTo(DATA_1B); }
@Deprecated public @Nullable SchemeData get(UUID uuid) { for (SchemeData schemeData : schemeDatas) { if (schemeData.matches(uuid)) { return schemeData; } } return null; }
DrmInitData implements Comparator<SchemeData>, Parcelable { @Deprecated public @Nullable SchemeData get(UUID uuid) { for (SchemeData schemeData : schemeDatas) { if (schemeData.matches(uuid)) { return schemeData; } } return null; } }
DrmInitData implements Comparator<SchemeData>, Parcelable { @Deprecated public @Nullable SchemeData get(UUID uuid) { for (SchemeData schemeData : schemeDatas) { if (schemeData.matches(uuid)) { return schemeData; } } return null; } 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 { @Deprecated public @Nullable SchemeData get(UUID uuid) { for (SchemeData schemeData : schemeDatas) { if (schemeData.matches(uuid)) { return schemeData; } } return null; } 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 { @Deprecated public @Nullable SchemeData get(UUID uuid) { for (SchemeData schemeData : schemeDatas) { if (schemeData.matches(uuid)) { return schemeData; } } return null; } 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; }