Home
last modified time | relevance | path

Searched refs:keyStatus (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp621 AMediaDrmKeyStatus keyStatus; in onKeysChangeListener() local
623 keyStatus.keyId.ptr = keysStatus[i].keyId.ptr; in onKeysChangeListener()
624 keyStatus.keyId.length = keysStatus[i].keyId.length; in onKeysChangeListener()
625 keyStatus.keyType = keysStatus[i].keyType; in onKeysChangeListener()
627 ALOGD("key[%zd]: key: %0x, %0x, %0x", i, keyStatus.keyId.ptr[0], keyStatus.keyId.ptr[1], in onKeysChangeListener()
628 keyStatus.keyId.ptr[2]); in onKeysChangeListener()
629 ALOGD("key[%zd]: key type=%d", i, keyStatus.keyType); in onKeysChangeListener()
856 AMediaDrmKeyValue keyStatus[numPairs]; in Java_android_media_cts_NativeMediaDrmClearkeyTest_testQueryKeyStatusNative() local
859 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testQueryKeyStatusNative()
878 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testQueryKeyStatusNative()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmClearkeyTest.java360 KeyStatus keyStatus = keyInformation.get(0); in startDrm()
361 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0xa, 0xb, 0xc})); in startDrm()
362 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE); in startDrm()
363 keyStatus = keyInformation.get(1); in startDrm()
364 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0xd, 0xe, 0xf})); in startDrm()
365 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_EXPIRED); in startDrm()
366 keyStatus = keyInformation.get(2); in startDrm()
367 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0x0, 0x1, 0x2})); in startDrm()
368 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE_IN_FUTURE); in startDrm()
547 final HashMap<String, String> keyStatus = drm.queryKeyStatus(sessionId); in queryKeyStatus() local
[all …]