Home
last modified time | relevance | path

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

12

/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DDeviceFiles.cpp51 bool DeviceFiles::StoreLicense(const std::string& keySetId, LicenseState state, in StoreLicense() argument
75 return StoreFileWithHash(keySetId + kLicenseFileNameExt, serializedFile); in StoreLicense()
113 bool DeviceFiles::RetrieveLicense(const std::string& keySetId, LicenseState* state, in RetrieveLicense() argument
116 if (!RetrieveHashedFile(keySetId + kLicenseFileNameExt, &file)) { in RetrieveLicense()
152 bool DeviceFiles::DeleteLicense(const std::string& keySetId) { in DeleteLicense() argument
153 return mFileHandle.RemoveFile(keySetId + kLicenseFileNameExt); in DeleteLicense()
160 bool DeviceFiles::LicenseExists(const std::string& keySetId) { in LicenseExists() argument
161 return mFileHandle.FileExists(keySetId + kLicenseFileNameExt); in LicenseExists()
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp86 Vector<uint8_t> const& response, Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
88 return mDrmHalAidl->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse()
89 return mDrmHalHidl->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse()
92 DrmStatus DrmHal::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
93 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->removeKeys(keySetId); in removeKeys()
94 return mDrmHalHidl->removeKeys(keySetId); in removeKeys()
97 DrmStatus DrmHal::restoreKeys(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& keySetId) { in restoreKeys() argument
98 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->restoreKeys(sessionId, keySetId); in restoreKeys()
99 return mDrmHalHidl->restoreKeys(sessionId, keySetId); in restoreKeys()
176 DrmStatus DrmHal::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
[all …]
DDrmMetricsLogger.cpp228 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
229 DrmStatus status = mImpl->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse()
236 DrmStatus DrmMetricsLogger::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
237 DrmStatus status = mImpl->removeKeys(keySetId); in removeKeys()
245 Vector<uint8_t> const& keySetId) { in restoreKeys() argument
246 DrmStatus status = mImpl->restoreKeys(sessionId, keySetId); in restoreKeys()
366 DrmStatus DrmMetricsLogger::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
367 DrmStatus status = mImpl->removeOfflineLicense(keySetId); in removeOfflineLicense()
375 Vector<uint8_t> const& keySetId, DrmPlugin::OfflineLicenseState* licenseState) const { in getOfflineLicenseState() argument
376 DrmStatus status = mImpl->getOfflineLicenseState(keySetId, licenseState); in getOfflineLicenseState()
DDrmHalAidl.cpp243 keySetIds.push_back(toVector(hKeySetIds[i].keySetId)); in toKeySetIds()
625 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
640 if (status.isOk()) keySetId = toVector(keySetIdsAidl.keySetId); in provideKeyResponse()
646 DrmStatus DrmHalAidl::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
650 ::ndk::ScopedAStatus status = mPlugin->removeKeys(toStdVec(keySetId)); in removeKeys()
655 Vector<uint8_t> const& keySetId) { in restoreKeys() argument
662 keySetIdsAidl.keySetId = toStdVec(keySetId); in restoreKeys()
859 DrmStatus DrmHalAidl::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
864 keySetIdAidl.keySetId = toStdVec(keySetId); in removeOfflineLicense()
869 DrmStatus DrmHalAidl::getOfflineLicenseState(Vector<uint8_t> const& keySetId, in getOfflineLicenseState() argument
[all …]
DDrmHalHidl.cpp803 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
816 keySetId = toVector(hKeySetId); in provideKeyResponse()
825 DrmStatus DrmHalHidl::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
829 Return<Status> status = mPlugin->removeKeys(toHidlVec(keySetId)); in removeKeys()
834 Vector<uint8_t> const& keySetId) { in restoreKeys() argument
840 Return<Status> status = mPlugin->restoreKeys(toHidlVec(sessionId), toHidlVec(keySetId)); in restoreKeys()
1145 DrmStatus DrmHalHidl::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
1156 Return<Status> status = mPluginV1_2->removeOfflineLicense(toHidlVec(keySetId)); in removeOfflineLicense()
1160 DrmStatus DrmHalHidl::getOfflineLicenseState(Vector<uint8_t> const& keySetId, in getOfflineLicenseState() argument
1176 toHidlVec(keySetId), [&](Status status, OfflineLicenseState hLicenseState) { in getOfflineLicenseState()
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/
DDrmPlugin.cpp238 std::vector<uint8_t> keySetId(scopeId.begin(), scopeId.end()); in getKeyRequest() local
242 std::string keySetIdString(keySetId.begin(), keySetId.end()); in getKeyRequest()
337 std::vector<uint8_t> keySetId(name.begin(), name.end()); in getOfflineLicenseKeySetIds() local
339 id.keySetId = keySetId; in getOfflineLicenseKeySetIds()
349 std::string licenseName(in_keySetId.keySetId.begin(), in_keySetId.keySetId.end()); in getOfflineLicenseState()
552 std::string keySetId; in provideKeyResponse() local
562 keySetId.assign(scopeId.begin(), scopeId.end()); in provideKeyResponse()
564 auto iter = mReleaseKeysMap.find(std::string(keySetId.begin(), keySetId.end())); in provideKeyResponse()
571 keySetId.clear(); in provideKeyResponse()
585 mFileHandle.DeleteLicense(keySetId); in provideKeyResponse()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/
DDeviceFiles.h42 virtual bool StoreLicense(const std::string& keySetId, LicenseState state,
48 virtual bool LicenseExists(const std::string& keySetId);
52 virtual bool DeleteLicense(const std::string& keySetId);
/frameworks/av/drm/libmediadrm/include/mediadrm/
DDrmHal.h46 Vector<uint8_t> &keySetId);
47 virtual DrmStatus removeKeys(Vector<uint8_t> const &keySetId);
49 Vector<uint8_t> const &keySetId);
72 virtual DrmStatus removeOfflineLicense(Vector<uint8_t> const &keySetId);
73 virtual DrmStatus getOfflineLicenseState(Vector<uint8_t> const &keySetId,
DIDrm.h79 Vector<uint8_t> &keySetId) = 0;
81 virtual DrmStatus removeKeys(Vector<uint8_t> const &keySetId) = 0;
84 Vector<uint8_t> const &keySetId) = 0;
115 virtual DrmStatus removeOfflineLicense(Vector<uint8_t> const &keySetId) = 0;
116 virtual DrmStatus getOfflineLicenseState(Vector<uint8_t> const &keySetId,
DDrmMetricsLogger.h122 Vector<uint8_t>& keySetId);
124 virtual DrmStatus removeKeys(Vector<uint8_t> const& keySetId);
127 Vector<uint8_t> const& keySetId);
154 virtual DrmStatus removeOfflineLicense(Vector<uint8_t> const& keySetId);
155 virtual DrmStatus getOfflineLicenseState(Vector<uint8_t> const& keySetId,
DDrmHalAidl.h58 Vector<uint8_t>& keySetId);
59 virtual DrmStatus removeKeys(Vector<uint8_t> const& keySetId);
61 Vector<uint8_t> const& keySetId);
81 virtual DrmStatus removeOfflineLicense(Vector<uint8_t> const& keySetId);
82 virtual DrmStatus getOfflineLicenseState(Vector<uint8_t> const& keySetId,
DDrmHalHidl.h92 Vector<uint8_t> &keySetId);
94 virtual DrmStatus removeKeys(Vector<uint8_t> const &keySetId);
97 Vector<uint8_t> const &keySetId);
127 virtual DrmStatus removeOfflineLicense(Vector<uint8_t> const &keySetId);
128 virtual DrmStatus getOfflineLicenseState(Vector<uint8_t> const &keySetId,
/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).c_str()); in removeKeys()
222 ssize_t index = findKeySet(keySetId); in removeKeys()
233 Vector<uint8_t> const &keySetId) in restoreKeys() argument
238 vectorToString(keySetId).c_str()); 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/
DNdkMediaDrm.cpp511 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId) { in AMediaDrm_provideKeyResponse() argument
516 if (!scope || !response || !responseSize || !keySetId) { in AMediaDrm_provideKeyResponse()
532 keySetId->ptr = iter->array(); in AMediaDrm_provideKeyResponse()
533 keySetId->length = iter->size(); in AMediaDrm_provideKeyResponse()
535 keySetId->ptr = NULL; in AMediaDrm_provideKeyResponse()
536 keySetId->length = 0; in AMediaDrm_provideKeyResponse()
544 const AMediaDrmKeySetId *keySetId) { in AMediaDrm_restoreKeys() argument
549 if (!sessionId || !keySetId) { in AMediaDrm_restoreKeys()
557 keySet.appendArray(keySetId->ptr, keySetId->length); in AMediaDrm_restoreKeys()
562 media_status_t AMediaDrm_removeKeys(AMediaDrm *mObj, const AMediaDrmSessionId *keySetId) { in AMediaDrm_removeKeys() argument
[all …]
/frameworks/av/media/ndk/include/media/
DNdkMediaDrm.h426 AMediaDrmKeySetId *keySetId) __INTRODUCED_IN(21);
438 const AMediaDrmKeySetId *keySetId) __INTRODUCED_IN(21);
448 const AMediaDrmSessionId *keySetId) __INTRODUCED_IN(21);
/frameworks/av/media/ndk/fuzzer/
Dndk_drm_fuzzer.cpp252 AMediaDrmKeySetId keySetId; in invokeDrmDecryptEncryptAPI() local
255 sizeof(keyResponse), &keySetId); in invokeDrmDecryptEncryptAPI()
259 AMediaDrmKeySetId keySetId; in invokeDrmDecryptEncryptAPI() local
260 AMediaDrm_restoreKeys(mDrm, &mSessionId, &keySetId); in invokeDrmDecryptEncryptAPI()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
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()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DDrmPlugin.cpp122 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
136 keySetId.clear(); in provideKeyResponse()
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java346 Long keySetId = aliases.get(alias); in getKeySetByAliasAndPackageNameLPr() local
347 if (keySetId == null) { in getKeySetByAliasAndPackageNameLPr()
350 return mKeySets.get(keySetId); in getKeySetByAliasAndPackageNameLPr()
674 for (long keySetId : pkg.getKeySetData().getUpgradeKeySets()) { in dumpLPr()
681 pw.print(Long.toString(keySetId)); in dumpLPr()
/frameworks/native/headers/media_plugin/media/drm/
DDrmAPI.h254 Vector<uint8_t> &keySetId) = 0;
262 Vector<uint8_t> const &keySetId) = 0;
/frameworks/av/drm/libmediadrm/fuzzer/
Dmediadrm_fuzzer.cpp253 Vector<uint8_t> keySetId = {}; in invokeDrmDecryptEncryptAPI() local
254 mDrm->provideKeyResponse(mSessionId, keyResponse, keySetId); in invokeDrmDecryptEncryptAPI()
257 mDrm->restoreKeys(mSessionId, keySetId); in invokeDrmDecryptEncryptAPI()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp1292 Vector<uint8_t> keySetId; in android_media_MediaDrm_provideKeyResponse() local
1294 DrmStatus err = drm->provideKeyResponse(sessionId, response, keySetId); in android_media_MediaDrm_provideKeyResponse()
1299 return VectorToJByteArray(env, keySetId); in android_media_MediaDrm_provideKeyResponse()
1316 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_removeKeys() local
1318 DrmStatus err = drm->removeKeys(keySetId); in android_media_MediaDrm_removeKeys()
1339 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_restoreKeys() local
1341 DrmStatus err = drm->restoreKeys(sessionId, keySetId); in android_media_MediaDrm_restoreKeys()
1695 JNIEnv *env, jobject thiz, jbyteArray keySetId) { in android_media_MediaDrm_removeOfflineLicense() argument
1702 DrmStatus err = drm->removeOfflineLicense(JByteArrayToVector(env, keySetId)); in android_media_MediaDrm_removeOfflineLicense()
1715 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeySetId)); in android_media_MediaDrm_getOfflineLicenseState() local
[all …]
/frameworks/base/media/java/android/media/
DMediaPlayer.java5162 public MediaDrm.KeyRequest getKeyRequest(@Nullable byte[] keySetId, @Nullable byte[] initData, in getKeyRequest() argument
5168 + " keySetId: " + Arrays.toString(keySetId) in getKeyRequest()
5183 keySetId; // keySetId for KEY_TYPE_RELEASE in getKeyRequest()
5228 public byte[] provideKeyResponse(@Nullable byte[] keySetId, @NonNull byte[] response) in provideKeyResponse() argument
5231 Log.v(TAG, "provideKeyResponse: keySetId: " + Arrays.toString(keySetId) in provideKeyResponse()
5242 byte[] scope = (keySetId == null) ? in provideKeyResponse()
5244 keySetId; // keySetId for KEY_TYPE_RELEASE in provideKeyResponse()
5248 Log.v(TAG, "provideKeyResponse: keySetId: " + Arrays.toString(keySetId) in provideKeyResponse()
5274 public void restoreKeys(@NonNull byte[] keySetId) in restoreKeys() argument
5277 Log.v(TAG, "restoreKeys: keySetId: " + Arrays.toString(keySetId)); in restoreKeys()
[all …]
DMediaDrm.java1734 public native void restoreKeys(@NonNull byte[] sessionId, @NonNull byte[] keySetId);
1869 public native void removeOfflineLicense(@NonNull byte[] keySetId);
1912 public native int getOfflineLicenseState(@NonNull byte[] keySetId);

12