Home
last modified time | relevance | path

Searched refs:decryptHandle (Results 1 – 18 of 18) 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.cpp426 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
433 writeDecryptHandleToParcelData(decryptHandle, &data); in consumeRights()
443 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
450 writeDecryptHandleToParcelData(decryptHandle, &data); in setPlaybackStatus()
695 status_t BpDrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
702 writeDecryptHandleToParcelData(decryptHandle, &data); in closeDecryptSession()
710 int uniqueId, DecryptHandle* decryptHandle, in initializeDecryptUnit() argument
718 writeDecryptHandleToParcelData(decryptHandle, &data); in initializeDecryptUnit()
730 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
738 writeDecryptHandleToParcelData(decryptHandle, &data); in decrypt()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp294 DecryptHandle* decryptHandle, in onConsumeRights() argument
369 status_t FwdLockEngine::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, argument
372 status_t FwdLockEngine::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle,
467 DecryptHandle* decryptHandle, argument
473 DecryptHandle* decryptHandle,
484 (NULL != decryptHandle) &&
485 (!decodeSessionMap.isCreated(decryptHandle->decryptId))) {
500 decodeSessionMap.addValue(decryptHandle->decryptId, decodeSession);
504 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
505 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.cpp179 int uniqueId, sp<DecryptHandle> &decryptHandle, in consumeRights() argument
182 if (NULL != decryptHandle.get()) { in consumeRights()
184 uniqueId, decryptHandle.get(), action, reserve); in consumeRights()
190 int uniqueId, sp<DecryptHandle> &decryptHandle, in setPlaybackStatus() argument
193 if (NULL != decryptHandle.get()) { in setPlaybackStatus()
195 uniqueId, decryptHandle.get(), playbackStatus, position); in setPlaybackStatus()
281 int uniqueId, sp<DecryptHandle> &decryptHandle) { in closeDecryptSession() argument
283 if (NULL != decryptHandle.get()) { in closeDecryptSession()
285 uniqueId, decryptHandle.get()); in closeDecryptSession()
291 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/drmserver/
DDrmManagerService.cpp146 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
151 return mDrmManager->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
155 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
160 return mDrmManager->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
232 status_t DrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
237 return mDrmManager->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
240 status_t DrmManagerService::initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, in initializeDecryptUnit() argument
246 return mDrmManager->initializeDecryptUnit(uniqueId,decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
250 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, in decrypt() argument
256 return mDrmManager->decrypt(uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
[all …]
DDrmManager.cpp290 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { in consumeRights() argument
293 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in consumeRights()
294 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in consumeRights()
295 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
301 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
304 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in setPlaybackStatus()
305 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in setPlaybackStatus()
306 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
507 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { in closeDecryptSession() argument
510 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in closeDecryptSession()
[all …]
/frameworks/av/drm/libdrmframework/include/
DIDrmManagerService.h120 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) = 0;
123 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) = 0;
153 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) = 0;
155 virtual status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
158 virtual status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
162 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) = 0;
164 virtual ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
210 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
213 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
242 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
[all …]
DDrmManagerService.h81 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
84 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
110 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
112 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
115 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
118 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId);
120 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
DDrmManagerClientImpl.h193 … status_t consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool reserve);
207 int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position);
343 status_t closeDecryptSession(int uniqueId, sp<DecryptHandle> &decryptHandle);
355 status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle,
375 status_t decrypt(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId,
387 status_t finalizeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId);
400 ssize_t pread(int uniqueId, sp<DecryptHandle> &decryptHandle,
DDrmManager.h94 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve);
97 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position);
122 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle);
124 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
127 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
130 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId);
132 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
/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()
275 sp<DecryptHandle> decryptHandle = source->DrmInitialization(); in SniffDRM() local
277 if (decryptHandle != NULL) { in SniffDRM()
278 if (decryptHandle->decryptApiType == DecryptApiType::CONTAINER_BASED) { in SniffDRM()
279 *mimeType = String8("drm+container_based+") + decryptHandle->mimeType; in SniffDRM()
281 } else if (decryptHandle->decryptApiType == DecryptApiType::ELEMENTARY_STREAM_BASED) { in SniffDRM()
282 *mimeType = String8("drm+es_based+") + decryptHandle->mimeType; in SniffDRM()