Home
last modified time | relevance | path

Searched refs:keySetId (Results 1 – 25 of 28) 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/mediadrm/plugins/clearkey/hidl/
DDeviceFiles.cpp45 const std::string& keySetId, LicenseState state, in StoreLicense() argument
70 return StoreFileWithHash(keySetId + kLicenseFileNameExt, serializedFile); in StoreLicense()
109 const std::string& keySetId, LicenseState* state, std::string* offlineLicense) { in RetrieveLicense() argument
112 if (!RetrieveHashedFile(keySetId + kLicenseFileNameExt, &file)) { in RetrieveLicense()
149 bool DeviceFiles::DeleteLicense(const std::string& keySetId) { in DeleteLicense() argument
150 return mFileHandle.RemoveFile(keySetId + kLicenseFileNameExt); in DeleteLicense()
157 bool DeviceFiles::LicenseExists(const std::string& keySetId) { in LicenseExists() argument
158 return mFileHandle.FileExists(keySetId + kLicenseFileNameExt); in LicenseExists()
DDrmPlugin.cpp219 std::vector<uint8_t> keySetId(scopeId.begin(), scopeId.end()); in getKeyRequestCommon() local
223 std::string keySetIdString(keySetId.begin(), keySetId.end()); in getKeyRequestCommon()
324 bool DrmPlugin::makeKeySetId(std::string* keySetId) { in makeKeySetId() argument
325 if (!keySetId) { in makeKeySetId()
333 while (keySetId->empty()) { in makeKeySetId()
337 *keySetId = kKeySetIdPrefix + ByteArrayToHexString( in makeKeySetId()
339 if (mFileHandle.LicenseExists(*keySetId)) { in makeKeySetId()
342 keySetId->clear(); in makeKeySetId()
362 std::string keySetId; in provideKeyResponse() local
373 keySetId.assign(scopeId.begin(), scopeId.end()); in provideKeyResponse()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp85 Vector<uint8_t> const& response, Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
87 return mDrmHalAidl->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse()
88 return mDrmHalHidl->provideKeyResponse(sessionId, response, keySetId); in provideKeyResponse()
91 status_t DrmHal::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
92 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->removeKeys(keySetId); in removeKeys()
93 return mDrmHalHidl->removeKeys(keySetId); in removeKeys()
96 status_t DrmHal::restoreKeys(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& keySetId) { in restoreKeys() argument
97 if (mDrmHalAidl->initCheck() == OK) return mDrmHalAidl->restoreKeys(sessionId, keySetId); in restoreKeys()
98 return mDrmHalHidl->restoreKeys(sessionId, keySetId); in restoreKeys()
175 status_t DrmHal::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
[all …]
DDrmHalAidl.cpp242 keySetIds.push_back(toVector(hKeySetIds[i].keySetId)); in toKeySetIds()
617 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
632 if (status.isOk()) keySetId = toVector(keySetIdsAidl.keySetId); in provideKeyResponse()
638 status_t DrmHalAidl::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
642 ::ndk::ScopedAStatus status = mPlugin->removeKeys(toStdVec(keySetId)); in removeKeys()
647 Vector<uint8_t> const& keySetId) { in restoreKeys() argument
654 keySetIdsAidl.keySetId = toStdVec(keySetId); in restoreKeys()
851 status_t DrmHalAidl::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
856 keySetIdAidl.keySetId = toStdVec(keySetId); in removeOfflineLicense()
861 status_t DrmHalAidl::getOfflineLicenseState(Vector<uint8_t> const& keySetId, in getOfflineLicenseState() argument
[all …]
DDrmHalHidl.cpp801 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
814 keySetId = toVector(hKeySetId); in provideKeyResponse()
823 status_t DrmHalHidl::removeKeys(Vector<uint8_t> const& keySetId) { in removeKeys() argument
827 Return<Status> status = mPlugin->removeKeys(toHidlVec(keySetId)); in removeKeys()
832 Vector<uint8_t> const& keySetId) { in restoreKeys() argument
838 Return<Status> status = mPlugin->restoreKeys(toHidlVec(sessionId), toHidlVec(keySetId)); in restoreKeys()
1143 status_t DrmHalHidl::removeOfflineLicense(Vector<uint8_t> const& keySetId) { in removeOfflineLicense() argument
1154 Return<Status> status = mPluginV1_2->removeOfflineLicense(toHidlVec(keySetId)); in removeOfflineLicense()
1158 status_t DrmHalHidl::getOfflineLicenseState(Vector<uint8_t> const& keySetId, in getOfflineLicenseState() argument
1174 toHidlVec(keySetId), [&](Status status, OfflineLicenseState hLicenseState) { in getOfflineLicenseState()
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/
DDrmPlugin.cpp211 std::vector<uint8_t> keySetId(scopeId.begin(), scopeId.end()); in getKeyRequest() local
215 std::string keySetIdString(keySetId.begin(), keySetId.end()); in getKeyRequest()
310 std::vector<uint8_t> keySetId(name.begin(), name.end()); in getOfflineLicenseKeySetIds() local
312 id.keySetId = keySetId; in getOfflineLicenseKeySetIds()
322 std::string licenseName(in_keySetId.keySetId.begin(), in_keySetId.keySetId.end()); in getOfflineLicenseState()
520 std::string keySetId; in provideKeyResponse() local
530 keySetId.assign(scopeId.begin(), scopeId.end()); in provideKeyResponse()
532 auto iter = mReleaseKeysMap.find(std::string(keySetId.begin(), keySetId.end())); in provideKeyResponse()
539 keySetId.clear(); in provideKeyResponse()
553 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/mediadrm/plugins/clearkey/hidl/include/
DDeviceFiles.h39 virtual bool StoreLicense(const std::string& keySetId, LicenseState state,
45 virtual bool LicenseExists(const std::string& keySetId);
49 virtual bool DeleteLicense(const std::string& keySetId);
DDrmPlugin.h121 const hidl_vec<uint8_t>& keySetId) override;
186 Return<Status> removeOfflineLicense(const KeySetId &keySetId) override;
188 Return<void> getOfflineLicenseState(const KeySetId &keySetId,
391 bool makeKeySetId(std::string* keySetId);
/frameworks/av/drm/libmediadrm/include/mediadrm/
DDrmHal.h47 Vector<uint8_t> &keySetId);
48 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
50 Vector<uint8_t> const &keySetId);
73 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId);
74 virtual status_t getOfflineLicenseState(Vector<uint8_t> const &keySetId,
DIDrm.h70 Vector<uint8_t> &keySetId) = 0;
72 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) = 0;
75 Vector<uint8_t> const &keySetId) = 0;
106 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId) = 0;
107 virtual status_t getOfflineLicenseState(Vector<uint8_t> const &keySetId,
DDrmHalAidl.h56 Vector<uint8_t> const& response, Vector<uint8_t>& keySetId);
57 virtual status_t removeKeys(Vector<uint8_t> const& keySetId);
58 virtual status_t restoreKeys(Vector<uint8_t> const& sessionId, Vector<uint8_t> const& keySetId);
78 virtual status_t removeOfflineLicense(Vector<uint8_t> const& keySetId);
79 virtual status_t getOfflineLicenseState(Vector<uint8_t> const& keySetId,
DDrmHalHidl.h93 Vector<uint8_t> &keySetId);
95 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
98 Vector<uint8_t> const &keySetId);
128 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId);
129 virtual status_t 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).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/
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/drm/mediadrm/plugins/clearkey/hidl/fuzzer/
DclearkeyV1.4_fuzzer.cpp392 hidl_vec<uint8_t> keySetId; in invokeDrmDecryptEncryptAPI() local
398 keySetId = hKeySetId; in invokeDrmDecryptEncryptAPI()
402 mDrmPluginV1_2->restoreKeys(getSessionId(), keySetId); in invokeDrmDecryptEncryptAPI()
496 KeySetId keySetId = {}; in invokeDrmOfflineLicenseAPI() local
498 keySetId = keySetIds[mFDP->ConsumeIntegralInRange<size_t>( in invokeDrmOfflineLicenseAPI()
501 keySetId.setToExternal(const_cast<uint8_t *>(data), size); in invokeDrmOfflineLicenseAPI()
504 keySetId, [&](Status status, OfflineLicenseState hLicenseState) { in invokeDrmOfflineLicenseAPI()
510 mDrmPluginV1_2->removeOfflineLicense(keySetId); in invokeDrmOfflineLicenseAPI()
/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.cpp1206 Vector<uint8_t> keySetId; in android_media_MediaDrm_provideKeyResponse() local
1208 status_t err = drm->provideKeyResponse(sessionId, response, keySetId); in android_media_MediaDrm_provideKeyResponse()
1213 return VectorToJByteArray(env, keySetId); in android_media_MediaDrm_provideKeyResponse()
1230 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_removeKeys() local
1232 status_t err = drm->removeKeys(keySetId); in android_media_MediaDrm_removeKeys()
1253 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_restoreKeys() local
1255 status_t err = drm->restoreKeys(sessionId, keySetId); in android_media_MediaDrm_restoreKeys()
1609 JNIEnv *env, jobject thiz, jbyteArray keySetId) { in android_media_MediaDrm_removeOfflineLicense() argument
1616 status_t err = drm->removeOfflineLicense(JByteArrayToVector(env, keySetId)); in android_media_MediaDrm_removeOfflineLicense()
1629 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeySetId)); in android_media_MediaDrm_getOfflineLicenseState() local
[all …]

12