Home
last modified time | relevance | path

Searched refs:drm (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaDrmClearkeyTest.java202 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 …]
DMediaDrmMetricsTest.java53 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 …]
DMediaDrmTest.java77 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 …]
DMediaCodecBlockModelTest.java512 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()
DMediaCodecTest.java1968 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/
Dpoc.cpp36 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;
DAndroid.bp27 "android.hardware.drm@1.2",
/cts/tests/tests/drm/src/android/drm/cts/
DDrmInfoStatusTest.java17 package android.drm.cts;
21 import android.drm.DrmInfoStatus;
22 import android.drm.DrmInfoRequest;
23 import android.drm.ProcessedData;
DConfigFactory.java17 package android.drm.cts;
21 import android.drm.cts.configs.PassthruConfig;
22 import android.drm.cts.configs.FwdLockConfig;
DDRMTest.java17 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;
DDrmEventTest.java17 package android.drm.cts;
22 import android.drm.DrmEvent;
23 import android.drm.DrmInfoEvent;
24 import android.drm.DrmErrorEvent;
DNativeCodeTest.java17 package android.drm.cts;
DDrmInfoTest.java17 package android.drm.cts;
25 import android.drm.DrmInfo;
26 import android.drm.DrmInfoRequest;
DConfig.java17 package android.drm.cts;
DDrmInfoRequestTest.java17 package android.drm.cts;
24 import android.drm.DrmInfoRequest;
DDrmSupportInfoTest.java17 package android.drm.cts;
22 import android.drm.DrmSupportInfo;
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/
Dpoc.cpp32 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()
DAndroid.bp24 "android.hardware.drm@1.0",
25 "android.hardware.drm@1.1",
/cts/tests/tests/drm/
DREADME2 "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/
DFwdLockConfig.java17 package android.drm.cts.configs;
21 import android.drm.cts.Config;
DPassthruConfig.java17 package android.drm.cts.configs;
21 import android.drm.cts.Config;
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp264 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/
DMediaServerCrashTest.java20 import android.drm.DrmConvertedStatus;
21 import android.drm.DrmManagerClient;
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/
DMockMediaParserOutputConsumer.java28 import com.google.android.exoplayer2.drm.DrmInitData;
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java20 import android.drm.DrmConvertedStatus;
21 import android.drm.DrmManagerClient;