Home
last modified time | relevance | path

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

/frameworks/av/media/ndk/
DNdkMediaDrm.cpp326 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId) { in AMediaDrm_provideKeyResponse() argument
331 if (!scope || !response || !responseSize || !keySetId) { in AMediaDrm_provideKeyResponse()
347 keySetId->ptr = iter->array(); in AMediaDrm_provideKeyResponse()
348 keySetId->length = iter->size(); in AMediaDrm_provideKeyResponse()
350 keySetId->ptr = NULL; in AMediaDrm_provideKeyResponse()
351 keySetId->length = 0; in AMediaDrm_provideKeyResponse()
358 const AMediaDrmKeySetId *keySetId) { in AMediaDrm_restoreKeys() argument
363 if (!sessionId || !keySetId) { in AMediaDrm_restoreKeys()
371 keySet.appendArray(keySetId->ptr, keySetId->length); in AMediaDrm_restoreKeys()
376 media_status_t AMediaDrm_removeKeys(AMediaDrm *mObj, const AMediaDrmSessionId *keySetId) { in AMediaDrm_removeKeys() argument
[all …]
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp187 Vector<uint8_t> &keySetId) in provideKeyResponse() argument
209 keySetId.appendArray((uint8_t *)&r, sizeof(long)); in provideKeyResponse()
211 mKeySets.add(keySetId); in provideKeyResponse()
216 status_t MockDrmPlugin::removeKeys(Vector<uint8_t> const &keySetId) in removeKeys() argument
220 vectorToString(keySetId).string()); in removeKeys()
222 ssize_t index = findKeySet(keySetId); in removeKeys()
233 Vector<uint8_t> const &keySetId) in restoreKeys() argument
238 vectorToString(keySetId).string()); in restoreKeys()
245 index = findKeySet(keySetId); in restoreKeys()
742 ssize_t MockDrmPlugin::findKeySet(Vector<uint8_t> const &keySetId) const in findKeySet()
[all …]
DMockDrmCryptoPlugin.h71 Vector<uint8_t> &keySetId);
73 status_t removeKeys(Vector<uint8_t> const &keySetId);
76 Vector<uint8_t> const &keySetId);
149 ssize_t findKeySet(Vector<uint8_t> const &keySetId) const;
/frameworks/av/media/ndk/include/media/
DNdkMediaDrm.h226 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId);
236 const AMediaDrmKeySetId *keySetId);
243 media_status_t AMediaDrm_removeKeys(AMediaDrm *, const AMediaDrmSessionId *keySetId);
/frameworks/av/drm/libmediadrm/
DIDrm.cpp178 Vector<uint8_t> &keySetId) { in provideKeyResponse()
189 readVector(reply, keySetId); in provideKeyResponse()
194 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) { in removeKeys()
198 writeVector(data, keySetId); in removeKeys()
208 Vector<uint8_t> const &keySetId) { in restoreKeys()
213 writeVector(data, keySetId); in restoreKeys()
671 Vector<uint8_t> sessionId, response, keySetId; in onTransact() local
674 uint32_t result = provideKeyResponse(sessionId, response, keySetId); in onTransact()
675 writeVector(reply, keySetId); in onTransact()
683 Vector<uint8_t> keySetId; in onTransact() local
[all …]
DDrmHal.cpp575 Vector<uint8_t> const &response, Vector<uint8_t> &keySetId) { in provideKeyResponse() argument
590 keySetId = toVector(hKeySetId); in provideKeyResponse()
599 status_t DrmHal::removeKeys(Vector<uint8_t> const &keySetId) { in removeKeys() argument
606 return toStatusT(mPlugin->removeKeys(toHidlVec(keySetId))); in removeKeys()
610 Vector<uint8_t> const &keySetId) { in restoreKeys() argument
620 toHidlVec(keySetId))); in restoreKeys()
/frameworks/av/media/libmedia/include/media/
DIDrm.h56 Vector<uint8_t> &keySetId) = 0;
58 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) = 0;
61 Vector<uint8_t> const &keySetId) = 0;
DDrm.h61 Vector<uint8_t> &keySetId);
63 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
66 Vector<uint8_t> const &keySetId);
DDrmHal.h76 Vector<uint8_t> &keySetId);
78 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
81 Vector<uint8_t> const &keySetId);
/frameworks/av/include/media/
DIDrm.h56 Vector<uint8_t> &keySetId) = 0;
58 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) = 0;
61 Vector<uint8_t> const &keySetId) = 0;
DDrm.h61 Vector<uint8_t> &keySetId);
63 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
66 Vector<uint8_t> const &keySetId);
DDrmHal.h76 Vector<uint8_t> &keySetId);
78 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
81 Vector<uint8_t> const &keySetId);
/frameworks/av/drm/mediadrm/plugins/clearkey/
DDrmPlugin.h63 Vector<uint8_t>& keySetId);
75 const Vector<uint8_t>& keySetId) { in restoreKeys() argument
76 if (sessionId.size() == 0 || keySetId.size() == 0) { in restoreKeys()
DDrmPlugin.cpp106 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
120 keySetId.clear(); in provideKeyResponse()
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java332 Long keySetId = p.keySetData.getAliases().get(alias); in getKeySetByAliasAndPackageNameLPr() local
333 if (keySetId == null) { in getKeySetByAliasAndPackageNameLPr()
336 return mKeySets.get(keySetId); in getKeySetByAliasAndPackageNameLPr()
622 for (long keySetId : pkg.keySetData.getUpgradeKeySets()) { in dumpLPr()
629 pw.print(Long.toString(keySetId)); in dumpLPr()
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h187 Vector<uint8_t> &keySetId) = 0;
195 Vector<uint8_t> const &keySetId) = 0;
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp900 Vector<uint8_t> keySetId; in android_media_MediaDrm_provideKeyResponse() local
902 status_t err = drm->provideKeyResponse(sessionId, response, keySetId); in android_media_MediaDrm_provideKeyResponse()
907 return VectorToJByteArray(env, keySetId); in android_media_MediaDrm_provideKeyResponse()
920 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_removeKeys() local
922 status_t err = drm->removeKeys(keySetId); in android_media_MediaDrm_removeKeys()
943 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_restoreKeys() local
945 status_t err = drm->restoreKeys(sessionId, keySetId); in android_media_MediaDrm_restoreKeys()
/frameworks/base/media/java/android/media/
DMediaPlayer.java4471 public MediaDrm.KeyRequest getKeyRequest(@Nullable byte[] keySetId, @Nullable byte[] initData, in getKeyRequest() argument
4477 " keySetId: " + keySetId + " initData:" + initData + " mimeType: " + mimeType + in getKeyRequest()
4489 keySetId; // keySetId for KEY_TYPE_RELEASE in getKeyRequest()
4534 public byte[] provideKeyResponse(@Nullable byte[] keySetId, @NonNull byte[] response) in provideKeyResponse() argument
4537 Log.v(TAG, "provideKeyResponse: keySetId: " + keySetId + " response: " + response); in provideKeyResponse()
4547 byte[] scope = (keySetId == null) ? in provideKeyResponse()
4549 keySetId; // keySetId for KEY_TYPE_RELEASE in provideKeyResponse()
4553 Log.v(TAG, "provideKeyResponse: keySetId: " + keySetId + " response: " + response + in provideKeyResponse()
4578 public void restoreKeys(@NonNull byte[] keySetId) in restoreKeys() argument
4581 Log.v(TAG, "restoreKeys: keySetId: " + keySetId); in restoreKeys()
[all …]
DMediaDrm.java818 public native void restoreKeys(@NonNull byte[] sessionId, @NonNull byte[] keySetId); in restoreKeys() argument