/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmClearkeyTest.java | 202 static byte[] retrieveKeys(MediaDrm drm, String initDataType, in retrieveKeys() argument 206 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, in retrieveKeys() 242 return drm.provideKeyResponse(sessionId, jsonResponse); in retrieveKeys() 257 private void getKeys(MediaDrm drm, String initDataType, in getKeys() argument 259 mKeySetId = retrieveKeys(drm, initDataType, sessionId, drmInitData, keyType, clearKeyIds); in getKeys() 388 private void stopDrm(MediaDrm drm) { in stopDrm() argument 389 if (drm != mDrm) { in stopDrm() 397 private @NonNull byte[] openSession(MediaDrm drm) { in openSession() argument 403 mSessionId = drm.openSession(); in openSession() 411 private void closeSession(MediaDrm drm, byte[] sessionId) { in closeSession() argument [all …]
|
D | MediaDrmMetricsTest.java | 53 private String getClearkeyVersion(MediaDrm drm) { in getClearkeyVersion() argument 55 return drm.getPropertyString("version"); in getClearkeyVersion() 63 MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID); in testGetMetricsEmpty() local 64 assertNotNull(drm); in testGetMetricsEmpty() 66 if (getClearkeyVersion(drm).equals("1.0")) { in testGetMetricsEmpty() 68 drm.close(); in testGetMetricsEmpty() 72 PersistableBundle metrics = drm.getMetrics(); in testGetMetricsEmpty() 78 drm.close(); in testGetMetricsEmpty() 83 MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID); in testGetMetricsSession() local 84 assertNotNull(drm); in testGetMetricsSession() [all …]
|
D | MediaDrmTest.java | 77 MediaDrm drm = new MediaDrm(scheme); in testGetLogMessages() local 79 byte[] sid = drm.openSession(); in testGetLogMessages() 80 drm.closeSession(sid); in testGetLogMessages() 87 logMessages = drm.getLogMessages(); in testGetLogMessages() 128 MediaDrm drm = new MediaDrm(scheme); in testPlaybackComponent() local 131 drm = new MediaDrm(scheme); in testPlaybackComponent() 132 sid = drm.openSession(); in testPlaybackComponent() 134 MediaDrm.PlaybackComponent component = drm.getPlaybackComponent(sid); in testPlaybackComponent() 146 PersistableBundle metrics = drm.getMetrics(); in testPlaybackComponent() 154 drm.close(); in testPlaybackComponent() [all …]
|
D | MediaCodecBlockModelTest.java | 512 try (final MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID)) { in runDecodeShortEncryptedVideo() argument 517 drm.setOnEventListener( in runDecodeShortEncryptedVideo() 527 byte[] sessionId = drm.openSession(); in runDecodeShortEncryptedVideo() 529 drm, "cenc", sessionId, DRM_INIT_DATA, MediaDrm.KEY_TYPE_STREAMING, in runDecodeShortEncryptedVideo() 534 drm.closeSession(sessionId); in runDecodeShortEncryptedVideo()
|
D | MediaCodecTest.java | 1968 MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID); in testCryptoError() local 1969 byte[] sessionId = drm.openSession(); in testCryptoError() 2004 drm.closeSession(sessionId); in testCryptoError() 2162 MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID); in testCryptoErrorLostSessionState() local 2163 drm.setPropertyString("drmErrorTest", "lostState"); in testCryptoErrorLostSessionState() 2165 byte[] sessionId = drm.openSession(); in testCryptoErrorLostSessionState() 2204 drm.closeSession(sessionId); in testCryptoErrorLostSessionState()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13253/ |
D | poc.cpp | 36 using namespace ::android::hardware::drm; 44 using ::android::hardware::drm::V1_0::BufferType; 45 using ::android::hardware::drm::V1_0::DestinationBuffer; 46 using ::android::hardware::drm::V1_0::ICryptoFactory; 47 using ::android::hardware::drm::V1_0::ICryptoPlugin; 48 using ::android::hardware::drm::V1_0::Mode; 49 using ::android::hardware::drm::V1_0::Pattern; 50 using ::android::hardware::drm::V1_0::SharedBuffer; 51 using ::android::hardware::drm::V1_0::Status; 52 using ::android::hardware::drm::V1_0::SubSample;
|
D | Android.bp | 27 "android.hardware.drm@1.2",
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmInfoStatusTest.java | 17 package android.drm.cts; 21 import android.drm.DrmInfoStatus; 22 import android.drm.DrmInfoRequest; 23 import android.drm.ProcessedData;
|
D | ConfigFactory.java | 17 package android.drm.cts; 21 import android.drm.cts.configs.PassthruConfig; 22 import android.drm.cts.configs.FwdLockConfig;
|
D | DRMTest.java | 17 package android.drm.cts; 43 import android.drm.DrmManagerClient; 44 import android.drm.DrmConvertedStatus; 45 import android.drm.DrmEvent; 46 import android.drm.DrmInfo; 47 import android.drm.DrmInfoRequest; 48 import android.drm.DrmInfoStatus; 49 import android.drm.DrmRights; 50 import android.drm.DrmStore; 51 import android.drm.DrmUtils;
|
D | DrmEventTest.java | 17 package android.drm.cts; 22 import android.drm.DrmEvent; 23 import android.drm.DrmInfoEvent; 24 import android.drm.DrmErrorEvent;
|
D | NativeCodeTest.java | 17 package android.drm.cts;
|
D | DrmInfoTest.java | 17 package android.drm.cts; 25 import android.drm.DrmInfo; 26 import android.drm.DrmInfoRequest;
|
D | Config.java | 17 package android.drm.cts;
|
D | DrmInfoRequestTest.java | 17 package android.drm.cts; 24 import android.drm.DrmInfoRequest;
|
D | DrmSupportInfoTest.java | 17 package android.drm.cts; 22 import android.drm.DrmSupportInfo;
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/ |
D | poc.cpp | 32 using ::android::hardware::drm::V1_0::IDrmFactory; 33 using ::android::hardware::drm::V1_0::IDrmPlugin; 34 using ::android::hardware::drm::V1_0::SecureStop; 35 using ::android::hardware::drm::V1_0::Status; 36 using ::android::hardware::drm::V1_1::SecurityLevel; 43 static sp<::android::hardware::drm::V1_1::IDrmPlugin> drmPluginV1_1; 81 ::android::hardware::drm::V1_1::IDrmFactory::descriptor, in makeDrmFactories() 85 ::android::hardware::drm::V1_1::IDrmFactory::getService(instance); in makeDrmFactories() 118 ::android::hardware::drm::V1_1::IDrmPlugin::castFrom(drmPlugin); in createPlugin()
|
D | Android.bp | 24 "android.hardware.drm@1.0", 25 "android.hardware.drm@1.1",
|
/cts/tests/tests/drm/ |
D | README | 2 "src/android/drm/cts/configs/" according to the specification 5 file under "src/android/drm/cts/configs/" and update 6 "src/android/drm/cts/ConfigFactory.java".
|
/cts/tests/tests/drm/src/android/drm/cts/configs/ |
D | FwdLockConfig.java | 17 package android.drm.cts.configs; 21 import android.drm.cts.Config;
|
D | PassthruConfig.java | 17 package android.drm.cts.configs; 21 import android.drm.cts.Config;
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 264 AMediaDrm* drm = AMediaDrm_createByUUID(&juuid[0]); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() local 267 media_status_t status = AMediaDrm_setPropertyByteArray(drm, propertyName, value, sizeof(value)); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 270 AMediaDrm_release(drm); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 274 status = AMediaDrm_getPropertyByteArray(drm, propertyName, &array); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 277 AMediaDrm_release(drm); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 282 AMediaDrm_release(drm); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 287 AMediaDrm_release(drm); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 292 AMediaDrm_release(drm); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 295 AMediaDrm_release(drm); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaServerCrashTest.java | 20 import android.drm.DrmConvertedStatus; 21 import android.drm.DrmManagerClient;
|
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/ |
D | MockMediaParserOutputConsumer.java | 28 import com.google.android.exoplayer2.drm.DrmInitData;
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 20 import android.drm.DrmConvertedStatus; 21 import android.drm.DrmManagerClient;
|