Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmClearkeyTest.java222 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 …]
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.java76 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 …]
DMediaDrmCodecTest.java104 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()
DMediaDrmCodecBlockModelTest.java110 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/
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.bp28 "android.hardware.drm@1.2",
37 "android.hardware.drm-V1-ndk",
/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;
/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.bp25 "android.hardware.drm@1.0",
26 "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".
DTEST_MAPPING13 "exclude-filter": "android.drm.cts.DRMTest#testForwardLockAccess"
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderDrmTestBase.java102 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/
DPassthruConfig.java17 package android.drm.cts.configs;
21 import android.drm.cts.Config;
DFwdLockConfig.java17 package android.drm.cts.configs;
21 import android.drm.cts.Config;
/cts/tests/mediapc/src/android/mediapc/cts/
DProvisionRequester.java35 public ProvisionRequester(MediaDrm drm) { in ProvisionRequester() argument
36 mDrm = drm; in ProvisionRequester()
DKeyRequester.java57 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/
DMediaDrmAtomTests.java19 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/
DVirtualDeviceDrmTest.java120 try (MediaDrm drm = new MediaDrm(uuid)) { in getSecurityLevel() argument
121 byte[] sessionId = drm.openSession(securityLevel); in getSecurityLevel()
122 return drm.getSecurityLevel(sessionId); in getSecurityLevel()

12