/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/ |
D | MediaDrmClearkeyTest.java | 222 public static byte[] retrieveKeys(MediaDrm drm, String initDataType, in retrieveKeys() argument 226 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, in retrieveKeys() 262 return drm.provideKeyResponse(sessionId, jsonResponse); in retrieveKeys() 277 private void getKeys(MediaDrm drm, String initDataType, in getKeys() argument 279 mKeySetId = retrieveKeys(drm, initDataType, sessionId, drmInitData, keyType, clearKeyIds); in getKeys() 408 private void stopDrm(MediaDrm drm) { in stopDrm() argument 409 if (drm != mDrm) { in stopDrm() 417 private @NonNull byte[] openSession(MediaDrm drm) { in openSession() argument 423 mSessionId = drm.openSession(); in openSession() 431 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 | 76 MediaDrm drm = new MediaDrm(scheme); in testGetLogMessages() local 78 byte[] sid = drm.openSession(); in testGetLogMessages() 79 drm.closeSession(sid); in testGetLogMessages() 86 logMessages = drm.getLogMessages(); in testGetLogMessages() 129 MediaDrm drm = new MediaDrm(scheme); in testPlaybackComponent() local 132 drm = new MediaDrm(scheme); in testPlaybackComponent() 133 sid = drm.openSession(); in testPlaybackComponent() 135 MediaDrm.PlaybackComponent component = drm.getPlaybackComponent(sid); in testPlaybackComponent() 147 PersistableBundle metrics = drm.getMetrics(); in testPlaybackComponent() 155 drm.close(); in testPlaybackComponent() [all …]
|
D | MediaDrmCodecTest.java | 104 MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID); in testCryptoError() local 105 byte[] sessionId = drm.openSession(); in testCryptoError() 140 drm.closeSession(sessionId); in testCryptoError() 154 MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID); in testCryptoErrorLostSessionState() local 155 drm.setPropertyString("drmErrorTest", "lostState"); in testCryptoErrorLostSessionState() 157 byte[] sessionId = drm.openSession(); in testCryptoErrorLostSessionState() 196 drm.closeSession(sessionId); in testCryptoErrorLostSessionState()
|
D | MediaDrmCodecBlockModelTest.java | 110 try (final MediaDrm drm = new MediaDrm(CLEARKEY_SCHEME_UUID)) { in runDecodeShortEncryptedVideo() argument 115 drm.setOnEventListener( in runDecodeShortEncryptedVideo() 125 byte[] sessionId = drm.openSession(); in runDecodeShortEncryptedVideo() 127 drm, "cenc", sessionId, DRM_INIT_DATA, MediaDrm.KEY_TYPE_STREAMING, in runDecodeShortEncryptedVideo() 133 drm.closeSession(sessionId); in runDecodeShortEncryptedVideo()
|
/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 | 28 "android.hardware.drm@1.2", 37 "android.hardware.drm-V1-ndk",
|
/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;
|
/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 | 25 "android.hardware.drm@1.0", 26 "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".
|
D | TEST_MAPPING | 13 "exclude-filter": "android.drm.cts.DRMTest#testForwardLockAccess"
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CodecDecoderDrmTestBase.java | 102 private static byte[] retrieveKeys(MediaDrm drm, String initDataType, byte[] sessionId, in retrieveKeys() argument 106 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, keyType, null); in retrieveKeys() 140 return drm.provideKeyResponse(sessionId, jsonResponse); in retrieveKeys() 154 MediaDrm drm = new MediaDrm(uuidCryptoScheme); in setUpMediaDrmAndCrypto() local 155 drm.setOnEventListener( in setUpMediaDrmAndCrypto() 163 byte[] sessionId = drm.openSession(); in setUpMediaDrmAndCrypto() 164 retrieveKeys(drm, "cenc", sessionId, drmInitData, MediaDrm.KEY_TYPE_STREAMING, keys); in setUpMediaDrmAndCrypto() 166 return Pair.create(drm, new MediaCrypto(uuidCryptoScheme, sessionId)); in setUpMediaDrmAndCrypto()
|
/cts/tests/tests/drm/src/android/drm/cts/configs/ |
D | PassthruConfig.java | 17 package android.drm.cts.configs; 21 import android.drm.cts.Config;
|
D | FwdLockConfig.java | 17 package android.drm.cts.configs; 21 import android.drm.cts.Config;
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | ProvisionRequester.java | 35 public ProvisionRequester(MediaDrm drm) { in ProvisionRequester() argument 36 mDrm = drm; in ProvisionRequester()
|
D | KeyRequester.java | 57 MediaDrm drm, in KeyRequester() argument 64 this(drm, sessionId, keyType, mediaType, emeInitData, initialServerUrl, WIDEVINE_UUID); in KeyRequester() 68 MediaDrm drm, in KeyRequester() argument 76 mDrm = drm; in KeyRequester()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | MediaDrmAtomTests.java | 19 import static android.media.drm.Enums.DrmScheme.CLEAR_KEY_DASH_IF; 20 import static android.media.drm.Enums.IDrmFrontend.IDRM_JNI; 21 import static android.media.drm.Enums.SecurityLevel.SECURITY_LEVEL_MAX; 22 import static android.media.drm.Enums.SecurityLevel.SECURITY_LEVEL_SW_SECURE_CRYPTO; 23 import static android.media.drm.Enums.Status.ERROR_INVALID_STATE; 24 import static android.media.drm.Enums.DrmApi.DRM_API_INIT_CHECK;
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | VirtualDeviceDrmTest.java | 120 try (MediaDrm drm = new MediaDrm(uuid)) { in getSecurityLevel() argument 121 byte[] sessionId = drm.openSession(securityLevel); in getSecurityLevel() 122 return drm.getSecurityLevel(sessionId); in getSecurityLevel()
|