Home
last modified time | relevance | path

Searched refs:decryptHandle (Results 1 – 20 of 20) 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.cpp415 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
422 writeDecryptHandleToParcelData(decryptHandle, &data); in consumeRights()
432 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
439 writeDecryptHandleToParcelData(decryptHandle, &data); in setPlaybackStatus()
684 status_t BpDrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
691 writeDecryptHandleToParcelData(decryptHandle, &data); in closeDecryptSession()
699 int uniqueId, DecryptHandle* decryptHandle, in initializeDecryptUnit() argument
707 writeDecryptHandleToParcelData(decryptHandle, &data); in initializeDecryptUnit()
719 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
727 writeDecryptHandleToParcelData(decryptHandle, &data); in decrypt()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp294 DecryptHandle* decryptHandle, in onConsumeRights() argument
370 status_t FwdLockEngine::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, argument
373 status_t FwdLockEngine::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle,
468 DecryptHandle* decryptHandle, argument
474 DecryptHandle* decryptHandle,
485 (NULL != decryptHandle) &&
486 (!decodeSessionMap.isCreated(decryptHandle->decryptId))) {
501 decodeSessionMap.addValue(decryptHandle->decryptId, decodeSession);
505 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
506 decryptHandle->decryptApiType = DecryptApiType::CONTAINER_BASED;
[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/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/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 …]
DNoOpDrmManagerClientImpl.cpp72 status_t NoOpDrmManagerClientImpl::consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, in… in consumeRights() argument
77 int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
125 …s_t NoOpDrmManagerClientImpl::closeDecryptSession(int uniqueId, sp<DecryptHandle> &decryptHandle) { in closeDecryptSession() argument
129 …s_t NoOpDrmManagerClientImpl::initializeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, in initializeDecryptUnit() argument
134 status_t NoOpDrmManagerClientImpl::decrypt(int uniqueId, sp<DecryptHandle> &decryptHandle, int decr… in decrypt() argument
139 …nagerClientImpl::finalizeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUn… in finalizeDecryptUnit() argument
143 ssize_t NoOpDrmManagerClientImpl::pread(int uniqueId, sp<DecryptHandle> &decryptHandle, in pread() argument
/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.cpp210 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
215 return mDrmManager->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
219 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
224 return mDrmManager->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
296 status_t DrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
301 return mDrmManager->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
304 status_t DrmManagerService::initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, in initializeDecryptUnit() argument
310 return mDrmManager->initializeDecryptUnit(uniqueId,decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
314 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
320 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()
276 sp<DecryptHandle> decryptHandle = source->DrmInitialization(); in SniffDRM() local
278 if (decryptHandle != NULL) { in SniffDRM()
279 if (decryptHandle->decryptApiType == DecryptApiType::CONTAINER_BASED) { in SniffDRM()
280 *mimeType = String8("drm+container_based+") + decryptHandle->mimeType; in SniffDRM()
282 } else if (decryptHandle->decryptApiType == DecryptApiType::ELEMENTARY_STREAM_BASED) { in SniffDRM()
283 *mimeType = String8("drm+es_based+") + decryptHandle->mimeType; in SniffDRM()