Lines Matching refs:decryptHandle

429     int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) {  in consumeRights()  argument
432 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in consumeRights()
433 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in consumeRights()
434 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
440 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
443 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in setPlaybackStatus()
444 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in setPlaybackStatus()
445 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
653 status_t DrmManager::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument
656 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in closeDecryptSession()
657 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in closeDecryptSession()
658 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
659 if (DRM_NO_ERROR == result && NULL != decryptHandle.get()) { in closeDecryptSession()
660 mDecryptSessionMap.removeItem(decryptHandle->decryptId); in closeDecryptSession()
667 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in initializeDecryptUnit() argument
671 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in initializeDecryptUnit()
672 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in initializeDecryptUnit()
673 … result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
678 status_t DrmManager::decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument
683 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in decrypt()
684 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in decrypt()
686 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
692 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) { in finalizeDecryptUnit() argument
695 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in finalizeDecryptUnit()
696 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in finalizeDecryptUnit()
697 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId); in finalizeDecryptUnit()
702 ssize_t DrmManager::pread(int uniqueId, sp<DecryptHandle>& decryptHandle, in pread() argument
707 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in pread()
708 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in pread()
709 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()