Home
last modified time | relevance | path

Searched refs:keySetId (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/ndk/
DNdkMediaDrm.cpp328 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId) { in AMediaDrm_provideKeyResponse() argument
333 if (!scope || !response || !responseSize || !keySetId) { in AMediaDrm_provideKeyResponse()
349 keySetId->ptr = iter->array(); in AMediaDrm_provideKeyResponse()
350 keySetId->length = iter->size(); in AMediaDrm_provideKeyResponse()
352 keySetId->ptr = NULL; in AMediaDrm_provideKeyResponse()
353 keySetId->length = 0; in AMediaDrm_provideKeyResponse()
360 const AMediaDrmKeySetId *keySetId) { in AMediaDrm_restoreKeys() argument
365 if (!sessionId || !keySetId) { in AMediaDrm_restoreKeys()
373 keySet.appendArray(keySetId->ptr, keySetId->length); in AMediaDrm_restoreKeys()
378 media_status_t AMediaDrm_removeKeys(AMediaDrm *mObj, const AMediaDrmSessionId *keySetId) { in AMediaDrm_removeKeys() argument
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp173 Vector<uint8_t> &keySetId) in provideKeyResponse() argument
195 keySetId.appendArray((uint8_t *)&r, sizeof(long)); in provideKeyResponse()
197 mKeySets.add(keySetId); in provideKeyResponse()
202 status_t MockDrmPlugin::removeKeys(Vector<uint8_t> const &keySetId) in removeKeys() argument
206 vectorToString(keySetId).string()); in removeKeys()
208 ssize_t index = findKeySet(keySetId); in removeKeys()
219 Vector<uint8_t> const &keySetId) in restoreKeys() argument
224 vectorToString(keySetId).string()); in restoreKeys()
231 index = findKeySet(keySetId); in restoreKeys()
676 ssize_t MockDrmPlugin::findKeySet(Vector<uint8_t> const &keySetId) const in findKeySet()
[all …]
DMockDrmCryptoPlugin.h69 Vector<uint8_t> &keySetId);
71 status_t removeKeys(Vector<uint8_t> const &keySetId);
74 Vector<uint8_t> const &keySetId);
149 ssize_t findKeySet(Vector<uint8_t> const &keySetId) const;
/frameworks/av/media/libmedia/
DIDrm.cpp152 Vector<uint8_t> &keySetId) { in provideKeyResponse()
158 readVector(reply, keySetId); in provideKeyResponse()
163 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) { in removeKeys()
167 writeVector(data, keySetId); in removeKeys()
174 Vector<uint8_t> const &keySetId) { in restoreKeys()
179 writeVector(data, keySetId); in restoreKeys()
579 Vector<uint8_t> sessionId, response, keySetId; in onTransact() local
582 uint32_t result = provideKeyResponse(sessionId, response, keySetId); in onTransact()
583 writeVector(reply, keySetId); in onTransact()
591 Vector<uint8_t> keySetId; in onTransact() local
[all …]
/frameworks/av/include/ndk/
DNdkMediaDrm.h224 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId);
234 const AMediaDrmKeySetId *keySetId);
241 media_status_t AMediaDrm_removeKeys(AMediaDrm *, const AMediaDrmSessionId *keySetId);
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java228 Long keySetId = p.keySetData.getAliases().get(alias); in getKeySetByAliasAndPackageNameLPr() local
229 if (keySetId == null) { in getKeySetByAliasAndPackageNameLPr()
232 return mKeySets.get(keySetId); in getKeySetByAliasAndPackageNameLPr()
527 for (long keySetId : pkg.keySetData.getDefinedKeySets()) { in dumpLPr()
534 pw.print(Long.toString(keySetId)); in dumpLPr()
543 for (long keySetId : signingKeySets) { in dumpLPr()
550 pw.print(Long.toString(keySetId)); in dumpLPr()
558 for (long keySetId : pkg.keySetData.getUpgradeKeySets()) { in dumpLPr()
565 pw.print(Long.toString(keySetId)); in dumpLPr()
/frameworks/av/drm/mediadrm/plugins/clearkey/
DDrmPlugin.cpp65 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
69 keySetId.clear(); in provideKeyResponse()
DDrmPlugin.h62 Vector<uint8_t>& keySetId);
71 const Vector<uint8_t>& keySetId) { in restoreKeys() argument
73 UNUSED(keySetId); in restoreKeys()
/frameworks/av/include/media/
DIDrm.h54 Vector<uint8_t> &keySetId) = 0;
56 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) = 0;
59 Vector<uint8_t> const &keySetId) = 0;
/frameworks/av/media/libmediaplayerservice/
DDrm.h59 Vector<uint8_t> &keySetId);
61 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
64 Vector<uint8_t> const &keySetId);
DDrm.cpp330 Vector<uint8_t> &keySetId) { in provideKeyResponse() argument
341 return mPlugin->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse()
344 status_t Drm::removeKeys(Vector<uint8_t> const &keySetId) { in removeKeys() argument
355 return mPlugin->removeKeys(keySetId); in removeKeys()
359 Vector<uint8_t> const &keySetId) { in restoreKeys() argument
370 return mPlugin->restoreKeys(sessionId, keySetId); in restoreKeys()
/frameworks/native/include/media/drm/
DDrmAPI.h156 Vector<uint8_t> &keySetId) = 0;
164 Vector<uint8_t> const &keySetId) = 0;
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp813 Vector<uint8_t> keySetId; in android_media_MediaDrm_provideKeyResponse() local
815 status_t err = drm->provideKeyResponse(sessionId, response, keySetId); in android_media_MediaDrm_provideKeyResponse()
820 return VectorToJByteArray(env, keySetId); in android_media_MediaDrm_provideKeyResponse()
833 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_removeKeys() local
835 status_t err = drm->removeKeys(keySetId); in android_media_MediaDrm_removeKeys()
856 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_restoreKeys() local
858 status_t err = drm->restoreKeys(sessionId, keySetId); in android_media_MediaDrm_restoreKeys()
/frameworks/base/media/java/android/media/
DMediaDrm.java469 public native void restoreKeys(byte[] sessionId, byte[] keySetId);