Home
last modified time | relevance | path

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

/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmMockTest.java899 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 …]
DMediaDrmClearkeyTest.java380 KeyStatus keyStatus = keyInformation.get(0); in startDrm()
381 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0xa, 0xb, 0xc})); in startDrm()
382 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE); in startDrm()
383 keyStatus = keyInformation.get(1); in startDrm()
384 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0xd, 0xe, 0xf})); in startDrm()
385 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_EXPIRED); in startDrm()
386 keyStatus = keyInformation.get(2); in startDrm()
387 … assertTrue(Arrays.equals(keyStatus.getKeyId(), new byte[] {0x0, 0x1, 0x2})); in startDrm()
388 … assertTrue(keyStatus.getStatusCode() == MediaDrm.KeyStatus.STATUS_USABLE_IN_FUTURE); in startDrm()
568 final HashMap<String, String> keyStatus = drm.queryKeyStatus(sessionId); in queryKeyStatus() local
[all …]
/cts/tests/tests/media/drmframework/jni/
Dnative-mediadrm-jni.cpp623 AMediaDrmKeyStatus keyStatus; in onKeysChangeListener() local
625 keyStatus.keyId.ptr = keysStatus[i].keyId.ptr; in onKeysChangeListener()
626 keyStatus.keyId.length = keysStatus[i].keyId.length; in onKeysChangeListener()
627 keyStatus.keyType = keysStatus[i].keyType; in onKeysChangeListener()
629 ALOGD("key[%zd]: key: %0x, %0x, %0x", i, keyStatus.keyId.ptr[0], keyStatus.keyId.ptr[1], in onKeysChangeListener()
630 keyStatus.keyId.ptr[2]); in onKeysChangeListener()
631 ALOGD("key[%zd]: key type=%d", i, keyStatus.keyType); in onKeysChangeListener()
858 AMediaDrmKeyValue keyStatus[numPairs]; in testQueryKeyStatusNative() local
861 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in testQueryKeyStatusNative()
880 status = AMediaDrm_queryKeyStatus(aMediaObjects.getDrm(), &sessionId, keyStatus, &numPairs); in testQueryKeyStatusNative()
[all …]