Home
last modified time | relevance | path

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

/frameworks/av/drm/common/
DDrmEngineBase.cpp82 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
83 return onConsumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
87 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
88 return onSetPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
123 int uniqueId, DecryptHandle* decryptHandle, in openDecryptSession() argument
127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); in openDecryptSession()
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); in openDecryptSession()
134 int uniqueId, DecryptHandle* decryptHandle, in openDecryptSession() argument
137 return onOpenDecryptSession(uniqueId, decryptHandle, uri); in openDecryptSession()
139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime); in openDecryptSession()
[all …]
DIDrmManagerService.cpp417 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
424 writeDecryptHandleToParcelData(decryptHandle, &data); in consumeRights()
434 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
441 writeDecryptHandleToParcelData(decryptHandle, &data); in setPlaybackStatus()
686 status_t BpDrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
693 writeDecryptHandleToParcelData(decryptHandle, &data); in closeDecryptSession()
701 int uniqueId, DecryptHandle* decryptHandle, in initializeDecryptUnit() argument
709 writeDecryptHandleToParcelData(decryptHandle, &data); in initializeDecryptUnit()
721 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
729 writeDecryptHandleToParcelData(decryptHandle, &data); in decrypt()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp473 DecryptHandle* decryptHandle, argument
479 DecryptHandle* decryptHandle,
490 (NULL != decryptHandle) &&
491 (!decodeSessionMap.isCreated(decryptHandle->decryptId))) {
506 decodeSessionMap.addValue(decryptHandle->decryptId, decodeSession);
510 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
511 decryptHandle->decryptApiType = DecryptApiType::CONTAINER_BASED;
512 decryptHandle->status = RightsStatus::RIGHTS_VALID;
513 decryptHandle->decryptInfo = NULL;
532 DecryptHandle* decryptHandle, argument
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
DFwdLockEngine.h201 DecryptHandle* decryptHandle,
218 DecryptHandle* decryptHandle,
223 DecryptHandle* decryptHandle,
333 DecryptHandle* decryptHandle,
337 DecryptHandle* decryptHandle,
351 DecryptHandle* decryptHandle,
363 DecryptHandle* decryptHandle);
376 DecryptHandle* decryptHandle,
397 DecryptHandle* decryptHandle,
419 status_t onDecrypt(int uniqueId, DecryptHandle* decryptHandle,
[all …]
/frameworks/av/drm/libdrmframework/plugins/common/include/
DDrmEngineBase.h62 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
65 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
83 int uniqueId, DecryptHandle* decryptHandle,
87 int uniqueId, DecryptHandle* decryptHandle,
90 status_t openDecryptSession(int uniqueId, DecryptHandle* decryptHandle,
93 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
95 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
98 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
101 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId);
103 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
[all …]
DIDrmEngine.h213 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) = 0;
226 virtual status_t setPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle,
330 int uniqueId, DecryptHandle* decryptHandle,
345 int uniqueId, DecryptHandle* decryptHandle,
358 virtual status_t openDecryptSession(int uniqueId, DecryptHandle* decryptHandle,
369 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) = 0;
381 virtual status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
401 virtual status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
414 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) = 0;
427 virtual ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
DDrmPassthruPlugIn.cpp184 status_t DrmPassthruPlugIn::onConsumeRights(int uniqueId, DecryptHandle* decryptHandle, in onConsumeRights() argument
190 status_t DrmPassthruPlugIn::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, in onSetPlaybackStatus() argument
238 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) { in onOpenDecryptSession() argument
242 decryptHandle->mimeType = String8("video/passthru"); in onOpenDecryptSession()
243 decryptHandle->decryptApiType = DecryptApiType::ELEMENTARY_STREAM_BASED; in onOpenDecryptSession()
244 decryptHandle->status = DRM_NO_ERROR; in onOpenDecryptSession()
245 decryptHandle->decryptInfo = NULL; in onOpenDecryptSession()
253 int uniqueId, DecryptHandle* decryptHandle, const char* uri) { in onOpenDecryptSession() argument
257 status_t DrmPassthruPlugIn::onCloseDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in onCloseDecryptSession() argument
259 if (NULL != decryptHandle) { in onCloseDecryptSession()
[all …]
/frameworks/av/drm/libdrmframework/
DDrmManagerClient.cpp80 sp<DecryptHandle> &decryptHandle, int action, bool reserve) { in consumeRights() argument
81 return mDrmManagerClientImpl->consumeRights(mUniqueId, decryptHandle, action, reserve); in consumeRights()
85 sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
87 ->setPlaybackStatus(mUniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
138 status_t DrmManagerClient::closeDecryptSession(sp<DecryptHandle> &decryptHandle) { in closeDecryptSession() argument
139 return mDrmManagerClientImpl->closeDecryptSession(mUniqueId, decryptHandle); in closeDecryptSession()
143 sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) { in initializeDecryptUnit() argument
145 mUniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
149 sp<DecryptHandle> &decryptHandle, int decryptUnitId, in decrypt() argument
152 mUniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
[all …]
DDrmManagerClientImpl.cpp181 int uniqueId, sp<DecryptHandle> &decryptHandle, in consumeRights() argument
184 if (NULL != decryptHandle.get()) { in consumeRights()
186 uniqueId, decryptHandle.get(), action, reserve); in consumeRights()
192 int uniqueId, sp<DecryptHandle> &decryptHandle, in setPlaybackStatus() argument
195 if (NULL != decryptHandle.get()) { in setPlaybackStatus()
197 uniqueId, decryptHandle.get(), playbackStatus, position); in setPlaybackStatus()
283 int uniqueId, sp<DecryptHandle> &decryptHandle) { in closeDecryptSession() argument
285 if (NULL != decryptHandle.get()) { in closeDecryptSession()
287 uniqueId, decryptHandle.get()); in closeDecryptSession()
293 int uniqueId, sp<DecryptHandle> &decryptHandle, in initializeDecryptUnit() argument
[all …]
/frameworks/av/drm/libdrmframework/plugins/passthru/include/
DDrmPassthruPlugIn.h56 status_t onConsumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
59 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
77 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length);
80 int uniqueId, DecryptHandle* decryptHandle, const char* uri);
82 status_t onCloseDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
84 status_t onInitializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
87 status_t onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
90 status_t onFinalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId);
92 ssize_t onPread(int uniqueId, DecryptHandle* decryptHandle,
/frameworks/av/drm/libdrmframework/include/
DIDrmManagerService.h118 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) = 0;
121 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) = 0;
151 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) = 0;
153 virtual status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
156 virtual status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
160 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) = 0;
162 virtual ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
206 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
209 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
238 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
[all …]
DNoOpDrmManagerClientImpl.h44 … status_t consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool reserve);
46 int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position);
61 status_t closeDecryptSession(int uniqueId, sp<DecryptHandle> &decryptHandle);
62 status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle,
64 status_t decrypt(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId,
66 status_t finalizeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId);
67 ssize_t pread(int uniqueId, sp<DecryptHandle> &decryptHandle,
DDrmManagerService.h98 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
101 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
127 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
129 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
132 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
135 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId);
137 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
DDrmManagerClientImpl.h193 …virtual status_t consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool re…
207 int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position);
343 virtual status_t closeDecryptSession(int uniqueId, sp<DecryptHandle> &decryptHandle);
355 virtual status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle,
375 virtual status_t decrypt(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId,
387 …virtual status_t finalizeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUn…
400 virtual ssize_t pread(int uniqueId, sp<DecryptHandle> &decryptHandle,
DDrmManager.h92 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
95 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
120 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
122 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
125 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
128 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId);
130 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
/frameworks/av/drm/drmserver/
DDrmManager.cpp275 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
278 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in consumeRights()
279 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in consumeRights()
280 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
286 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
289 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in setPlaybackStatus()
290 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in setPlaybackStatus()
291 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
492 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
495 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in closeDecryptSession()
[all …]
DDrmManagerService.cpp209 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
214 return mDrmManager->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
218 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
223 return mDrmManager->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
295 status_t DrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
300 return mDrmManager->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
303 status_t DrmManagerService::initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, in initializeDecryptUnit() argument
309 return mDrmManager->initializeDecryptUnit(uniqueId,decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
313 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
319 return mDrmManager->decrypt(uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
[all …]
/frameworks/av/include/drm/
DDrmManagerClient.h102 status_t closeDecryptSession(sp<DecryptHandle> &decryptHandle);
116 status_t consumeRights(sp<DecryptHandle> &decryptHandle, int action, bool reserve);
129 sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position);
141 sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo);
160 sp<DecryptHandle> &decryptHandle, int decryptUnitId,
172 sp<DecryptHandle> &decryptHandle, int decryptUnitId);
184 ssize_t pread(sp<DecryptHandle> &decryptHandle,
/frameworks/av/media/libstagefright/
DDRMExtractor.cpp39 const sp<DecryptHandle> &decryptHandle,
68 const sp<DecryptHandle> &decryptHandle, in DRMSource() argument
72 mDecryptHandle(decryptHandle), in DRMSource()
287 sp<DecryptHandle> decryptHandle = source->DrmInitialization(); in SniffDRM() local
289 if (decryptHandle != NULL) { in SniffDRM()
290 if (decryptHandle->decryptApiType == DecryptApiType::CONTAINER_BASED) { in SniffDRM()
291 *mimeType = String8("drm+container_based+") + decryptHandle->mimeType; in SniffDRM()
293 } else if (decryptHandle->decryptApiType == DecryptApiType::ELEMENTARY_STREAM_BASED) { in SniffDRM()
294 *mimeType = String8("drm+es_based+") + decryptHandle->mimeType; in SniffDRM()