Home
last modified time | relevance | path

Searched refs:drmInitData (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmExtractorTest.java85 DrmInitData drmInitData = mExtractor.getDrmInitData(); in testGetDrmInitData() local
86 assertEquals(drmInitData.getSchemeInitDataCount(), 2); in testGetDrmInitData()
87 assertEquals(drmInitData.getSchemeInitDataAt(0).uuid, UUID_WIDEVINE); in testGetDrmInitData()
88 assertEquals(drmInitData.get(UUID_WIDEVINE), drmInitData.getSchemeInitDataAt(0)); in testGetDrmInitData()
89 assertEquals(drmInitData.getSchemeInitDataAt(1).uuid, UUID_PLAYREADY); in testGetDrmInitData()
90 assertEquals(drmInitData.get(UUID_PLAYREADY), drmInitData.getSchemeInitDataAt(1)); in testGetDrmInitData()
DMediaDrmCodecCryptoAsyncTest.java136 ClearKeyDrmSession(UUID uuid, byte[] drmInitData, byte[] clearKey) in ClearKeyDrmSession() argument
146 mediaDrm, "cenc", sessionId, drmInitData, in ClearKeyDrmSession()
153 mDrm, "cenc", mSessionId, drmInitData, MediaDrm.KEY_TYPE_STREAMING, in ClearKeyDrmSession()
DMediaDrmClearkeyTest.java223 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in retrieveKeys() argument
226 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, in retrieveKeys()
278 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in getKeys() argument
279 mKeySetId = retrieveKeys(drm, initDataType, sessionId, drmInitData, keyType, clearKeyIds); in getKeys()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderDrmTestBase.java103 byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in retrieveKeys() argument
106 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, keyType, null); in retrieveKeys()
152 byte[] drmInitData, byte[][] keys) throws UnsupportedSchemeException, in setUpMediaDrmAndCrypto() argument
159 retrieveKeys(mediaDrm, "cenc", sessionId, drmInitData, in setUpMediaDrmAndCrypto()
164 retrieveKeys(drm, "cenc", sessionId, drmInitData, MediaDrm.KEY_TYPE_STREAMING, keys); in setUpMediaDrmAndCrypto()
171 public void setUpCrypto(UUID uuidCryptoScheme, byte[] drmInitData, byte[][] keys) in setUpCrypto() argument
175 drmInitData, keys); in setUpCrypto()
DCodecDecoderBlockModelDrmTestBase.java61 public void setUpCrypto(UUID uuidCryptoScheme, byte[] drmInitData, byte[][] keys) in setUpCrypto() argument
65 drmInitData, keys); in setUpCrypto()
DCodecDecoderBlockModelMultiAccessUnitDrmTestBase.java70 public void setUpCrypto(UUID uuidCryptoScheme, byte[] drmInitData, byte[][] keys) in setUpCrypto() argument
74 drmInitData, keys); in setUpCrypto()
DCodecDecoderMultiAccessUnitDrmTestBase.java72 public void setUpCrypto(UUID uuidCryptoScheme, byte[] drmInitData, byte[][] keys) in setUpCrypto() argument
76 drmInitData, keys); in setUpCrypto()
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserOutputConsumer.java198 DrmInitData drmInitData = in toExoPlayerFormat() local
200 mediaFormat.getString("crypto-mode-fourcc"), trackData.drmInitData); in toExoPlayerFormat()
241 .setDrmInitData(drmInitData) in toExoPlayerFormat()
252 @Nullable String encryptionScheme, @Nullable android.media.DrmInitData drmInitData) { in getExoPlayerDrmInitData() argument
253 if (drmInitData == null) { in getExoPlayerDrmInitData()
257 new DrmInitData.SchemeData[drmInitData.getSchemeInitDataCount()]; in getExoPlayerDrmInitData()
260 drmInitData.getSchemeInitDataAt(i); in getExoPlayerDrmInitData()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecClearKeyPlayer.java201 DrmInitData drmInitData = ex.getDrmInitData(); in getDrmInitData() local
202 if (drmInitData != null) { in getDrmInitData()
203 DrmInitData.SchemeInitData schemeInitData = drmInitData.get(CLEARKEY_SCHEME_UUID); in getDrmInitData()