/frameworks/av/drm/common/ |
D | DrmEngineBase.cpp | 82 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) { in consumeRights() argument 83 return onConsumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights() 87 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument 88 return onSetPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus() 123 int uniqueId, sp<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, sp<DecryptHandle>& decryptHandle, in openDecryptSession() argument 137 return onOpenDecryptSession(uniqueId, decryptHandle, uri); in openDecryptSession() 139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime); in openDecryptSession() [all …]
|
D | IDrmManagerService.cpp | 417 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) { in consumeRights() argument 424 writeDecryptHandleToParcelData(decryptHandle, &data); in consumeRights() 434 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument 441 writeDecryptHandleToParcelData(decryptHandle, &data); in setPlaybackStatus() 686 status_t BpDrmManagerService::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument 693 writeDecryptHandleToParcelData(decryptHandle, &data); in closeDecryptSession() 701 int uniqueId, sp<DecryptHandle>& decryptHandle, in initializeDecryptUnit() argument 709 writeDecryptHandleToParcelData(decryptHandle, &data); in initializeDecryptUnit() 721 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument 729 writeDecryptHandleToParcelData(decryptHandle, &data); in decrypt() [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
D | FwdLockEngine.cpp | 475 sp<DecryptHandle>& decryptHandle, argument 481 sp<DecryptHandle>& decryptHandle, 492 (NULL != decryptHandle.get()) && 493 (!decodeSessionMap.isCreated(decryptHandle->decryptId))) { 508 decodeSessionMap.addValue(decryptHandle->decryptId, decodeSession)) { 512 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType); 513 decryptHandle->decryptApiType = DecryptApiType::CONTAINER_BASED; 514 decryptHandle->status = RightsStatus::RIGHTS_VALID; 515 decryptHandle->decryptInfo = NULL; 538 sp<DecryptHandle>& decryptHandle, argument [all …]
|
/frameworks/av/drm/common/include/ |
D | DrmEngineBase.h | 62 status_t consumeRights(int uniqueId, sp<DecryptHandle>& decryptHandle, int action, 66 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position); 84 int uniqueId, sp<DecryptHandle>& decryptHandle, 88 int uniqueId, sp<DecryptHandle>& decryptHandle, 91 status_t openDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle, 94 status_t closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle); 96 status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 99 status_t decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 102 status_t finalizeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 105 ssize_t pread(int uniqueId, sp<DecryptHandle>& decryptHandle, [all …]
|
D | IDrmEngine.h | 213 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) = 0; 226 virtual status_t setPlaybackStatus(int uniqueId, sp<DecryptHandle>& decryptHandle, 330 int uniqueId, sp<DecryptHandle>& decryptHandle, 345 int uniqueId, sp<DecryptHandle>& decryptHandle, 358 virtual status_t openDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle, 369 virtual status_t closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) = 0; 381 virtual status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 401 virtual status_t decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 414 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) = 0; 427 virtual ssize_t pread(int uniqueId, sp<DecryptHandle>& decryptHandle,
|
D | IDrmManagerService.h | 118 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) = 0; 121 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, 152 virtual status_t closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) = 0; 154 virtual status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 157 virtual status_t decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 161 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) = 0; 163 virtual ssize_t pread(int uniqueId, sp<DecryptHandle>& decryptHandle, 207 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve); 210 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position); 239 virtual status_t closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle); [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
D | FwdLockEngine.h | 201 sp<DecryptHandle>& decryptHandle, 218 sp<DecryptHandle>& decryptHandle, 223 sp<DecryptHandle>& decryptHandle, 333 sp<DecryptHandle>& decryptHandle, 337 sp<DecryptHandle>& decryptHandle, 351 sp<DecryptHandle>& decryptHandle, 363 sp<DecryptHandle>& decryptHandle); 376 sp<DecryptHandle>& decryptHandle, 397 sp<DecryptHandle>& decryptHandle, 419 status_t onDecrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, [all …]
|
/frameworks/av/drm/libdrmframework/ |
D | DrmManagerClient.cpp | 80 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 …]
|
D | DrmManagerClientImpl.cpp | 181 int uniqueId, sp<DecryptHandle> &decryptHandle, in consumeRights() argument 184 if (NULL != decryptHandle.get()) { in consumeRights() 186 uniqueId, decryptHandle, action, reserve); in consumeRights() 192 int uniqueId, sp<DecryptHandle> &decryptHandle, in setPlaybackStatus() argument 195 if (NULL != decryptHandle.get()) { in setPlaybackStatus() 197 uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus() 283 int uniqueId, sp<DecryptHandle> &decryptHandle) { in closeDecryptSession() argument 285 if (NULL != decryptHandle.get()) { in closeDecryptSession() 287 uniqueId, decryptHandle); in closeDecryptSession() 293 int uniqueId, sp<DecryptHandle> &decryptHandle, in initializeDecryptUnit() argument [all …]
|
/frameworks/av/drm/libdrmframework/plugins/passthru/include/ |
D | DrmPassthruPlugIn.h | 56 status_t onConsumeRights(int uniqueId, sp<DecryptHandle>& decryptHandle, 60 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position); 78 int uniqueId, sp<DecryptHandle>& decryptHandle, int fd, off64_t offset, 82 int uniqueId, sp<DecryptHandle>& decryptHandle, const char* uri); 84 status_t onCloseDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle); 86 status_t onInitializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 89 status_t onDecrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 92 status_t onFinalizeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 95 ssize_t onPread(int uniqueId, sp<DecryptHandle>& decryptHandle,
|
/frameworks/av/drm/drmserver/ |
D | DrmManager.cpp | 270 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) { in consumeRights() argument 273 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in consumeRights() 274 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in consumeRights() 275 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights() 281 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument 284 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in setPlaybackStatus() 285 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in setPlaybackStatus() 286 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus() 486 status_t DrmManager::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument 489 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in closeDecryptSession() [all …]
|
D | DrmManagerService.cpp | 216 int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) { in consumeRights() argument 221 return mDrmManager->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights() 225 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument 230 return mDrmManager->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus() 302 status_t DrmManagerService::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument 307 return mDrmManager->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession() 310 status_t DrmManagerService::initializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, in initializeDecryptUnit() argument 316 return mDrmManager->initializeDecryptUnit(uniqueId,decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit() 320 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument 326 return mDrmManager->decrypt(uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt() [all …]
|
D | DrmManagerService.h | 98 status_t consumeRights(int uniqueId, sp<DecryptHandle>& decryptHandle, int action, 102 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position); 128 status_t closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle); 130 status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 133 status_t decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 136 status_t finalizeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 139 ssize_t pread(int uniqueId, sp<DecryptHandle>& decryptHandle,
|
D | DrmManager.h | 92 status_t consumeRights(int uniqueId, sp<DecryptHandle>& decryptHandle, int action, 96 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position); 121 status_t closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle); 123 status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 126 status_t decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 129 status_t finalizeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 132 ssize_t pread(int uniqueId, sp<DecryptHandle>& decryptHandle,
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
D | DrmPassthruPlugIn.cpp | 239 int uniqueId, sp<DecryptHandle>& decryptHandle, int /*fd*/, off64_t /*offset*/, in onOpenDecryptSession() argument 244 decryptHandle->mimeType = String8("video/passthru"); in onOpenDecryptSession() 245 decryptHandle->decryptApiType = DecryptApiType::ELEMENTARY_STREAM_BASED; in onOpenDecryptSession() 246 decryptHandle->status = DRM_NO_ERROR; in onOpenDecryptSession() 247 decryptHandle->decryptInfo = NULL; in onOpenDecryptSession() 250 (void)(decryptHandle.get()); // unused in onOpenDecryptSession() 261 status_t DrmPassthruPlugIn::onCloseDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in onCloseDecryptSession() argument 263 if (NULL != decryptHandle.get()) { in onCloseDecryptSession() 264 if (NULL != decryptHandle->decryptInfo) { in onCloseDecryptSession() 265 delete decryptHandle->decryptInfo; decryptHandle->decryptInfo = NULL; in onCloseDecryptSession() [all …]
|
/frameworks/av/drm/libdrmframework/include/ |
D | NoOpDrmManagerClientImpl.h | 44 … 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,
|
D | DrmManagerClientImpl.h | 193 …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,
|
/frameworks/av/include/drm/ |
D | DrmManagerClient.h | 102 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/libmediaplayerservice/datasource/ |
D | PlayerServiceFileSource.cpp | 149 sp<DecryptHandle> decryptHandle = in requiresDrm() local 152 if (decryptHandle != nullptr) { in requiresDrm() 153 requiresDrm = decryptHandle->decryptApiType == DecryptApiType::CONTAINER_BASED; in requiresDrm() 154 drmClient->closeDecryptSession(decryptHandle); in requiresDrm()
|