Home
last modified time | relevance | path

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

/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp211 std::vector<uint8_t> keySetId(scopeId.begin(), scopeId.end()); in getKeyRequestCommon() local
215 std::string keySetIdString(keySetId.begin(), keySetId.end()); in getKeyRequestCommon()
315 bool DrmPlugin::makeKeySetId(std::string* keySetId) { in makeKeySetId() argument
316 if (!keySetId) { in makeKeySetId()
324 while (keySetId->empty()) { in makeKeySetId()
328 *keySetId = kKeySetIdPrefix + ByteArrayToHexString( in makeKeySetId()
330 if (mFileHandle.LicenseExists(*keySetId)) { in makeKeySetId()
333 keySetId->clear(); in makeKeySetId()
353 std::string keySetId; in provideKeyResponse() local
359 keySetId.assign(scopeId.begin(), scopeId.end()); in provideKeyResponse()
[all …]
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()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DDeviceFiles.h37 virtual bool StoreLicense(const std::string& keySetId, LicenseState state,
43 virtual bool LicenseExists(const std::string& keySetId);
47 virtual bool DeleteLicense(const std::string& keySetId);
DDrmPlugin.h118 const hidl_vec<uint8_t>& keySetId) override;
183 Return<Status> removeOfflineLicense(const KeySetId &keySetId) override;
185 Return<void> getOfflineLicenseState(const KeySetId &keySetId,
376 bool makeKeySetId(std::string* keySetId);
/frameworks/av/drm/libmediadrm/
DIDrm.cpp193 Vector<uint8_t> &keySetId) { in provideKeyResponse()
204 readVector(reply, keySetId); in provideKeyResponse()
209 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) { in removeKeys()
213 writeVector(data, keySetId); in removeKeys()
223 Vector<uint8_t> const &keySetId) { in restoreKeys()
228 writeVector(data, keySetId); in restoreKeys()
398 Vector<uint8_t> keySetId; in getOfflineLicenseKeySetIds() local
399 readVector(reply, keySetId); in getOfflineLicenseKeySetIds()
400 keySetIds.push_back(keySetId); in getOfflineLicenseKeySetIds()
405 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId) { in removeOfflineLicense()
[all …]
DDrmHal.cpp896 Vector<uint8_t> const &response, Vector<uint8_t> &keySetId) { in provideKeyResponse() argument
910 keySetId = toVector(hKeySetId); in provideKeyResponse()
920 status_t DrmHal::removeKeys(Vector<uint8_t> const &keySetId) { in removeKeys() argument
924 Return<Status> status = mPlugin->removeKeys(toHidlVec(keySetId)); in removeKeys()
929 Vector<uint8_t> const &keySetId) { in restoreKeys() argument
936 toHidlVec(keySetId)); in restoreKeys()
1253 status_t DrmHal::removeOfflineLicense(Vector<uint8_t> const &keySetId) { in removeOfflineLicense() argument
1264 Return<Status> status = mPluginV1_2->removeOfflineLicense(toHidlVec(keySetId)); in removeOfflineLicense()
1268 status_t DrmHal::getOfflineLicenseState(Vector<uint8_t> const &keySetId, in getOfflineLicenseState() argument
1283 Return<void> hResult = mPluginV1_2->getOfflineLicenseState(toHidlVec(keySetId), in getOfflineLicenseState()
/frameworks/av/include/mediadrm/
DIDrm.h62 Vector<uint8_t> &keySetId) = 0;
64 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) = 0;
67 Vector<uint8_t> const &keySetId) = 0;
98 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId) = 0;
99 virtual status_t getOfflineLicenseState(Vector<uint8_t> const &keySetId,
DDrmHal.h92 Vector<uint8_t> &keySetId);
94 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
97 Vector<uint8_t> const &keySetId);
127 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId);
128 virtual status_t getOfflineLicenseState(Vector<uint8_t> const &keySetId,
/frameworks/av/media/libmedia/include/media/
DIDrm.h62 Vector<uint8_t> &keySetId) = 0;
64 virtual status_t removeKeys(Vector<uint8_t> const &keySetId) = 0;
67 Vector<uint8_t> const &keySetId) = 0;
98 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId) = 0;
99 virtual status_t getOfflineLicenseState(Vector<uint8_t> const &keySetId,
DDrmHal.h92 Vector<uint8_t> &keySetId);
94 virtual status_t removeKeys(Vector<uint8_t> const &keySetId);
97 Vector<uint8_t> const &keySetId);
127 virtual status_t removeOfflineLicense(Vector<uint8_t> const &keySetId);
128 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.cpp495 const uint8_t *response, size_t responseSize, AMediaDrmKeySetId *keySetId) { in AMediaDrm_provideKeyResponse() argument
500 if (!scope || !response || !responseSize || !keySetId) { in AMediaDrm_provideKeyResponse()
516 keySetId->ptr = iter->array(); in AMediaDrm_provideKeyResponse()
517 keySetId->length = iter->size(); in AMediaDrm_provideKeyResponse()
519 keySetId->ptr = NULL; in AMediaDrm_provideKeyResponse()
520 keySetId->length = 0; in AMediaDrm_provideKeyResponse()
527 const AMediaDrmKeySetId *keySetId) { in AMediaDrm_restoreKeys() argument
532 if (!sessionId || !keySetId) { in AMediaDrm_restoreKeys()
540 keySet.appendArray(keySetId->ptr, keySetId->length); in AMediaDrm_restoreKeys()
545 media_status_t AMediaDrm_removeKeys(AMediaDrm *mObj, const AMediaDrmSessionId *keySetId) { in AMediaDrm_removeKeys() argument
[all …]
/frameworks/av/media/ndk/include/media/
DNdkMediaDrm.h302 AMediaDrmKeySetId *keySetId) __INTRODUCED_IN(21);
312 const AMediaDrmKeySetId *keySetId) __INTRODUCED_IN(21);
320 const AMediaDrmSessionId *keySetId) __INTRODUCED_IN(21);
/frameworks/base/media/apex/java/android/media/
DMediaPlayer2.java3579 public @NonNull Builder setKeySetId(@Nullable byte[] keySetId) {
3580 this.mKeySetId = keySetId;
3803 @PrepareDrmStatusCode int status, @Nullable byte[] keySetId) { }
4151 @Nullable byte[] keySetId, @Nullable byte[] initData,
4156 " keySetId: " + keySetId + " initData:" + initData + " mimeType: " + mimeType +
4162 keySetId, initData, mimeType, keyType, optionalParameters);
4194 @Nullable byte[] keySetId, @NonNull byte[] response)
4196 Log.v(TAG, "provideDrmKeyResponse: keySetId: " + keySetId + " response: " + response);
4200 return sourceInfo.mDrmHandle.provideDrmKeyResponse(keySetId, response);
4221 @NonNull byte[] keySetId)
[all …]
/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.cpp121 Vector<uint8_t>& keySetId) { in provideKeyResponse() argument
135 keySetId.clear(); in provideKeyResponse()
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java334 Long keySetId = p.keySetData.getAliases().get(alias); in getKeySetByAliasAndPackageNameLPr() local
335 if (keySetId == null) { in getKeySetByAliasAndPackageNameLPr()
338 return mKeySets.get(keySetId); in getKeySetByAliasAndPackageNameLPr()
659 for (long keySetId : pkg.keySetData.getUpgradeKeySets()) { in dumpLPr()
666 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/base/media/jni/
Dandroid_media_MediaDrm.cpp1151 Vector<uint8_t> keySetId; in android_media_MediaDrm_provideKeyResponse() local
1153 status_t err = drm->provideKeyResponse(sessionId, response, keySetId); in android_media_MediaDrm_provideKeyResponse()
1158 return VectorToJByteArray(env, keySetId); in android_media_MediaDrm_provideKeyResponse()
1175 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_removeKeys() local
1177 status_t err = drm->removeKeys(keySetId); in android_media_MediaDrm_removeKeys()
1198 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeysetId)); in android_media_MediaDrm_restoreKeys() local
1200 status_t err = drm->restoreKeys(sessionId, keySetId); in android_media_MediaDrm_restoreKeys()
1554 JNIEnv *env, jobject thiz, jbyteArray keySetId) { in android_media_MediaDrm_removeOfflineLicense() argument
1561 status_t err = drm->removeOfflineLicense(JByteArrayToVector(env, keySetId)); in android_media_MediaDrm_removeOfflineLicense()
1574 Vector<uint8_t> keySetId(JByteArrayToVector(env, jkeySetId)); in android_media_MediaDrm_getOfflineLicenseState() local
[all …]
/frameworks/base/media/java/android/media/
DMediaPlayer.java4825 public MediaDrm.KeyRequest getKeyRequest(@Nullable byte[] keySetId, @Nullable byte[] initData, in getKeyRequest() argument
4831 " keySetId: " + keySetId + " initData:" + initData + " mimeType: " + mimeType + in getKeyRequest()
4843 keySetId; // keySetId for KEY_TYPE_RELEASE in getKeyRequest()
4888 public byte[] provideKeyResponse(@Nullable byte[] keySetId, @NonNull byte[] response) in provideKeyResponse() argument
4891 Log.v(TAG, "provideKeyResponse: keySetId: " + keySetId + " response: " + response); in provideKeyResponse()
4901 byte[] scope = (keySetId == null) ? in provideKeyResponse()
4903 keySetId; // keySetId for KEY_TYPE_RELEASE in provideKeyResponse()
4907 Log.v(TAG, "provideKeyResponse: keySetId: " + keySetId + " response: " + response + in provideKeyResponse()
4932 public void restoreKeys(@NonNull byte[] keySetId) in restoreKeys() argument
4935 Log.v(TAG, "restoreKeys: keySetId: " + keySetId); in restoreKeys()
[all …]
DMediaDrm.java1119 public native void restoreKeys(@NonNull byte[] sessionId, @NonNull byte[] keySetId);
1254 public native void removeOfflineLicense(@NonNull byte[] keySetId);
1297 public native int getOfflineLicenseState(@NonNull byte[] keySetId);