Home
last modified time | relevance | path

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

/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderDrmTestBase.java63 private static int getKeyIds(byte[] keyRequestBlob, Vector<String> keyIds) { in getKeyIds() argument
64 if (0 == keyRequestBlob.length || keyIds == null) { in getKeyIds()
69 keyIds.clear(); in getKeyIds()
75 keyIds.add(ids.getString(i)); in getKeyIds()
81 return keyIds.size(); in getKeyIds()
84 private static String createJsonWebKeySet(Vector<String> keyIds, Vector<String> keys, in createJsonWebKeySet() argument
87 for (int i = 0; i < keyIds.size(); ++i) { in createJsonWebKeySet()
88 String id = new String(keyIds.get(i).getBytes(StandardCharsets.UTF_8)); in createJsonWebKeySet()
116 Vector<String> keyIds = new Vector<>(); in retrieveKeys() local
117 if (0 == getKeyIds(drmRequest.getData(), keyIds)) { in retrieveKeys()
[all …]
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaPlayerDrmTestBase.java955 private int getKeyIds(byte[] keyRequestBlob, Vector<String> keyIds) { in getKeyIds() argument
956 if (0 == keyRequestBlob.length || keyIds == null) { in getKeyIds()
962 keyIds.clear(); in getKeyIds()
970 keyIds.add(ids.getString(i)); in getKeyIds()
976 return keyIds.size(); in getKeyIds()
984 private String createJsonWebKeySet(Vector<String> keyIds, Vector<String> keys) { in createJsonWebKeySet() argument
986 for (int i = 0; i < keyIds.size(); ++i) { in createJsonWebKeySet()
987 String id = new String(keyIds.get(i).getBytes(Charset.forName("UTF-8"))); in createJsonWebKeySet()
1002 Vector<String> keyIds = new Vector<String>(); in createKeysResponse() local
1003 if (0 == getKeyIds(keyRequest.getData(), keyIds)) { in createKeysResponse()
[all …]
DMediaDrmClearkeyTest.java172 private static int getKeyIds(byte[] keyRequestBlob, Vector<String> keyIds) { in getKeyIds() argument
173 if (0 == keyRequestBlob.length || keyIds == null) in getKeyIds()
177 keyIds.clear(); in getKeyIds()
183 keyIds.add(ids.getString(i)); in getKeyIds()
189 return keyIds.size(); in getKeyIds()
198 Vector<String> keyIds, Vector<String> keys, int keyType) { in createJsonWebKeySet() argument
200 for (int i = 0; i < keyIds.size(); ++i) { in createJsonWebKeySet()
201 String id = new String(keyIds.get(i).getBytes(Charset.forName("UTF-8"))); in createJsonWebKeySet()
237 Vector<String> keyIds = new Vector<String>(); in retrieveKeys() local
238 if (0 == getKeyIds(drmRequest.getData(), keyIds)) { in retrieveKeys()
[all …]