Searched refs:keyStatus (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 584 AMediaDrmKeyStatus keyStatus; in onKeysChangeListener() local 586 keyStatus.keyId.ptr = keysStatus[i].keyId.ptr; in onKeysChangeListener() 587 keyStatus.keyId.length = keysStatus[i].keyId.length; in onKeysChangeListener() 588 keyStatus.keyType = keysStatus[i].keyType; in onKeysChangeListener() 590 ALOGD("key[%zd]: key: %0x, %0x, %0x", i, keyStatus.keyId.ptr[0], keyStatus.keyId.ptr[1], in onKeysChangeListener() 591 keyStatus.keyId.ptr[2]); in onKeysChangeListener() 592 ALOGD("key[%zd]: key type=%d", i, keyStatus.keyType); in onKeysChangeListener() 819 AMediaDrmKeyValue keyStatus[numPairs]; in Java_android_media_cts_NativeMediaDrmClearkeyTest_testQueryKeyStatusNative() local 822 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testQueryKeyStatusNative() 841 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testQueryKeyStatusNative() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmMockTest.java | 899 KeyStatus keyStatus = keyInformation.get(0); in onKeyStatusChange() local 900 assertTrue(Arrays.equals(keyStatus.getKeyId(), "key1".getBytes())); in onKeyStatusChange() 901 assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE); in onKeyStatusChange() 902 keyStatus = keyInformation.get(1); in onKeyStatusChange() 903 assertTrue(Arrays.equals(keyStatus.getKeyId(), "key2".getBytes())); in onKeyStatusChange() 904 assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_EXPIRED); in onKeyStatusChange() 905 keyStatus = keyInformation.get(2); in onKeyStatusChange() 906 assertTrue(Arrays.equals(keyStatus.getKeyId(), "key3".getBytes())); in onKeyStatusChange() 907 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_OUTPUT_NOT_ALLOWED); in onKeyStatusChange() 908 keyStatus = keyInformation.get(3); in onKeyStatusChange() [all …]
|
D | MediaDrmClearkeyTest.java | 305 KeyStatus keyStatus = keyInformation.get(0); in startDrm() 306 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0xa, 0xb, 0xc})); in startDrm() 307 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE); in startDrm() 308 keyStatus = keyInformation.get(1); in startDrm() 309 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0xd, 0xe, 0xf})); in startDrm() 310 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_EXPIRED); in startDrm() 311 keyStatus = keyInformation.get(2); in startDrm() 312 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0x0, 0x1, 0x2})); in startDrm() 313 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE_IN_FUTURE); in startDrm() 485 final HashMap<String, String> keyStatus = drm.queryKeyStatus(sessionId); in queryKeyStatus() local [all …]
|