Lines Matching refs:decryptHandle
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()
490 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in closeDecryptSession()
491 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
492 if (DRM_NO_ERROR == result && NULL != decryptHandle.get()) { in closeDecryptSession()
493 mDecryptSessionMap.removeItem(decryptHandle->decryptId); in closeDecryptSession()
500 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in initializeDecryptUnit() argument
504 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in initializeDecryptUnit()
505 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in initializeDecryptUnit()
506 … result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
511 status_t DrmManager::decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument
516 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in decrypt()
517 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in decrypt()
519 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
525 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) { in finalizeDecryptUnit() argument
528 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in finalizeDecryptUnit()
529 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in finalizeDecryptUnit()
530 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId); in finalizeDecryptUnit()
535 ssize_t DrmManager::pread(int uniqueId, sp<DecryptHandle>& decryptHandle, in pread() argument
540 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in pread()
541 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in pread()
542 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()