/frameworks/base/drm/common/ |
H A D | DrmEngineBase.cpp | 82 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { 83 return onConsumeRights(uniqueId, decryptHandle, action, reserve); 87 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { 88 return onSetPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); 123 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) { 124 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); 128 int uniqueId, DecryptHandle* decryptHandle, const char* uri) { 129 return onOpenDecryptSession(uniqueId, decryptHandle, uri); 132 status_t DrmEngineBase::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { argument 133 return onCloseDecryptSession(uniqueId, decryptHandle); 81 consumeRights( int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) argument 86 setPlaybackStatus( int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) argument 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument 127 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, const char* uri) argument 136 initializeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 141 decrypt( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 147 finalizeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) argument 152 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
H A D | IDrmManagerService.cpp | 413 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { 420 writeDecryptHandleToParcelData(decryptHandle, &data); 430 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { 437 writeDecryptHandleToParcelData(decryptHandle, &data); 638 LOGV("no decryptHandle is generated in service side"); 643 status_t BpDrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { argument 650 writeDecryptHandleToParcelData(decryptHandle, &data); 658 int uniqueId, DecryptHandle* decryptHandle, 666 writeDecryptHandleToParcelData(decryptHandle, &data); 678 int uniqueId, DecryptHandle* decryptHandle, in 412 consumeRights( int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) argument 429 setPlaybackStatus( int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) argument 657 initializeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 677 decrypt( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 711 finalizeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) argument 727 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/base/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 193 * @param decryptHandle Handle for the decryption session 200 DecryptHandle* decryptHandle, 208 * @param decryptHandle Handle for the decryption session 217 DecryptHandle* decryptHandle, 222 DecryptHandle* decryptHandle, 323 * @param decryptHandle Handle for the current decryption session 332 DecryptHandle* decryptHandle, 336 DecryptHandle* decryptHandle, 344 * @param decryptHandle Handle for the current decryption session 350 DecryptHandle* decryptHandle, [all...] |
/frameworks/base/drm/libdrmframework/plugins/passthru/include/ |
H A D | DrmPassthruPlugIn.h | 56 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/base/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 257 DecryptHandle* decryptHandle, 332 status_t FwdLockEngine::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, argument 335 status_t FwdLockEngine::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, 430 DecryptHandle* decryptHandle, 436 DecryptHandle* decryptHandle, 447 (NULL != decryptHandle) && 448 (!decodeSessionMap.isCreated(decryptHandle->decryptId))) { 463 decodeSessionMap.addValue(decryptHandle->decryptId, decodeSession); 467 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType); 468 decryptHandle 256 onConsumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) argument 429 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument 488 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, const char* uri) argument 517 onCloseDecryptSession(int uniqueId, DecryptHandle* decryptHandle) argument 549 onInitializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 557 onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 563 onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer) argument 572 onFinalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) argument 579 onRead(int uniqueId, DecryptHandle* decryptHandle, void* buffer, int numBytes) argument 605 onLseek(int uniqueId, DecryptHandle* decryptHandle, off64_t offset, int whence) argument 625 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/base/drm/libdrmframework/plugins/common/include/ |
H A D | DrmEngineBase.h | 62 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, int fd, off64_t offset, off64_t length); 86 int uniqueId, DecryptHandle* decryptHandle, const char* uri); 88 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle); 90 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, 93 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, 96 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId); 98 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle, 256 * @param[in] decryptHandle Handl [all...] |
H A D | IDrmEngine.h | 205 * @param[in] decryptHandle Handle for the decryption session 212 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) = 0; 218 * @param[in] decryptHandle Handle for the decryption session 225 virtual status_t setPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, 319 * @param[in] decryptHandle Handle for the current decryption session 327 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) = 0; 333 * @param[in] decryptHandle Handle for the current decryption session 339 int uniqueId, DecryptHandle* decryptHandle, const char* uri) = 0; 345 * @param[in] decryptHandle Handle for the decryption session 349 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) [all...] |
/frameworks/base/drm/libdrmframework/include/ |
H A D | DrmManagerService.h | 81 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve); 84 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position); 105 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle); 107 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, 110 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, 113 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId); 115 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
|
H A D | DrmManager.h | 94 status_t consumeRights(int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve); 97 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position); 118 status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle); 120 status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, 123 status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, 126 status_t finalizeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId); 128 ssize_t pread(int uniqueId, DecryptHandle* decryptHandle,
|
H A D | DrmManagerClientImpl.h | 186 * @param[in] decryptHandle Handle for the decryption session 192 status_t consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool reserve); 198 * @param[in] decryptHandle Handle for the decryption session 206 int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position); 322 * @param[in] decryptHandle Handle for the decryption session 326 status_t closeDecryptSession(int uniqueId, sp<DecryptHandle> &decryptHandle); 332 * @param[in] decryptHandle Handle for the decryption session 338 status_t initializeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, 347 * @param[in] decryptHandle Handle for the decryption session 358 status_t decrypt(int uniqueId, sp<DecryptHandle> &decryptHandle, in [all...] |
H A D | IDrmManagerService.h | 119 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) = 0; 122 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) = 0; 146 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) = 0; 148 virtual status_t initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, 151 virtual status_t decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, 155 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) = 0; 157 virtual ssize_t pread(int uniqueId, DecryptHandle* decryptHandle, 203 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve); 206 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position); 229 virtual status_t closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle); [all...] |
/frameworks/base/include/drm/ |
H A D | DrmManagerClient.h | 86 * @param[in] decryptHandle Handle for the decryption session 90 status_t closeDecryptSession(sp<DecryptHandle> &decryptHandle); 97 * @param[in] decryptHandle Handle for the decryption session 104 status_t consumeRights(sp<DecryptHandle> &decryptHandle, int action, bool reserve); 109 * @param[in] decryptHandle Handle for the decryption session 117 sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position); 122 * @param[in] decryptHandle Handle for the decryption session 129 sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo); 136 * @param[in] decryptHandle Handle for the decryption session 148 sp<DecryptHandle> &decryptHandle, in [all...] |
/frameworks/base/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 183 status_t DrmPassthruPlugIn::onConsumeRights(int uniqueId, DecryptHandle* decryptHandle, argument 189 status_t DrmPassthruPlugIn::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, argument 237 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) { 241 decryptHandle->mimeType = String8("video/passthru"); 242 decryptHandle->decryptApiType = DecryptApiType::ELEMENTARY_STREAM_BASED; 243 decryptHandle->status = DRM_NO_ERROR; 244 decryptHandle->decryptInfo = NULL; 252 int uniqueId, DecryptHandle* decryptHandle, const char* uri) { 256 status_t DrmPassthruPlugIn::onCloseDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { argument 258 if (NULL != decryptHandle) { 236 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument 251 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, const char* uri) argument 267 onInitializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 273 onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 288 onFinalizeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) argument 294 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/base/drm/drmserver/ |
H A D | DrmManagerService.cpp | 160 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { 162 return mDrmManager->consumeRights(uniqueId, decryptHandle, action, reserve); 166 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { 168 return mDrmManager->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); 230 status_t DrmManagerService::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { argument 232 return mDrmManager->closeDecryptSession(uniqueId, decryptHandle); 235 status_t DrmManagerService::initializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle, argument 238 return mDrmManager->initializeDecryptUnit(uniqueId,decryptHandle, decryptUnitId, headerInfo); 242 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, 245 return mDrmManager->decrypt(uniqueId, decryptHandle, decryptUnitI 159 consumeRights( int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) argument 165 setPlaybackStatus( int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) argument 241 decrypt( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 248 finalizeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) argument 254 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
H A D | DrmManager.cpp | 300 int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) { 303 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { 304 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); 305 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); 311 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { 314 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { 315 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); 316 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); 484 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) { argument 487 if (mDecryptSessionMap.indexOfKey(decryptHandle 299 consumeRights( int uniqueId, DecryptHandle* decryptHandle, int action, bool reserve) argument 310 setPlaybackStatus( int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) argument 497 initializeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 508 decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 521 finalizeDecryptUnit( int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) argument 532 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/base/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 80 sp<DecryptHandle> &decryptHandle, int action, bool reserve) { 81 return mDrmManagerClientImpl->consumeRights(mUniqueId, decryptHandle, action, reserve); 85 sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) { 87 ->setPlaybackStatus(mUniqueId, decryptHandle, playbackStatus, position); 127 status_t DrmManagerClient::closeDecryptSession(sp<DecryptHandle> &decryptHandle) { argument 128 return mDrmManagerClientImpl->closeDecryptSession(mUniqueId, decryptHandle); 132 sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) { 134 mUniqueId, decryptHandle, decryptUnitId, headerInfo); 138 sp<DecryptHandle> &decryptHandle, int decryptUnitId, 141 mUniqueId, decryptHandle, decryptUnitI 79 consumeRights( sp<DecryptHandle> &decryptHandle, int action, bool reserve) argument 84 setPlaybackStatus( sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) argument 131 initializeDecryptUnit( sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 137 decrypt( sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 144 finalizeDecryptUnit( sp<DecryptHandle> &decryptHandle, int decryptUnitId) argument 150 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
H A D | DrmManagerClientImpl.cpp | 179 int uniqueId, sp<DecryptHandle> &decryptHandle, 182 if (NULL != decryptHandle.get()) { 184 uniqueId, decryptHandle.get(), action, reserve); 190 int uniqueId, sp<DecryptHandle> &decryptHandle, 193 if (NULL != decryptHandle.get()) { 195 uniqueId, decryptHandle.get(), playbackStatus, position); 272 int uniqueId, sp<DecryptHandle> &decryptHandle) { 274 if (NULL != decryptHandle.get()) { 276 uniqueId, decryptHandle.get()); 282 int uniqueId, sp<DecryptHandle> &decryptHandle, 178 consumeRights( int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool reserve) argument 189 setPlaybackStatus( int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) argument 271 closeDecryptSession( int uniqueId, sp<DecryptHandle> &decryptHandle) argument 281 initializeDecryptUnit( int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) argument 292 decrypt( int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId, const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) argument 306 finalizeDecryptUnit( int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId) argument 316 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/base/media/libstagefright/ |
H A D | DRMExtractor.cpp | 44 const sp<DecryptHandle> &decryptHandle, 73 const sp<DecryptHandle> &decryptHandle, 77 mDecryptHandle(decryptHandle), 280 sp<DecryptHandle> decryptHandle = source->DrmInitialization(); local 282 if (decryptHandle != NULL) { 283 if (decryptHandle->decryptApiType == DecryptApiType::CONTAINER_BASED) { 284 *mimeType = String8("drm+container_based+") + decryptHandle->mimeType; 285 } else if (decryptHandle->decryptApiType == DecryptApiType::ELEMENTARY_STREAM_BASED) { 286 *mimeType = String8("drm+es_based+") + decryptHandle->mimeType; 287 } else if (decryptHandle 72 DRMSource(const sp<MediaSource> &mediaSource, const sp<DecryptHandle> &decryptHandle, DrmManagerClient *managerClient, int32_t trackId, DrmBuffer *ipmpBox) argument [all...] |