Lines Matching refs:decryptHandle

434     int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve) {  in consumeRights()  argument
437 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in consumeRights()
438 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in consumeRights()
439 result = drmEngine->consumeRights(uniqueId, decryptHandle, action, reserve); in consumeRights()
445 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position) { in setPlaybackStatus() argument
448 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in setPlaybackStatus()
449 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in setPlaybackStatus()
450 result = drmEngine->setPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); in setPlaybackStatus()
658 status_t DrmManager::closeDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in closeDecryptSession() argument
661 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in closeDecryptSession()
662 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in closeDecryptSession()
663 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle); in closeDecryptSession()
664 if (DRM_NO_ERROR == result && NULL != decryptHandle.get()) { in closeDecryptSession()
665 mDecryptSessionMap.removeItem(decryptHandle->decryptId); in closeDecryptSession()
672 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in initializeDecryptUnit() argument
676 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in initializeDecryptUnit()
677 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in initializeDecryptUnit()
678 … result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo); in initializeDecryptUnit()
683 status_t DrmManager::decrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, in decrypt() argument
688 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in decrypt()
689 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in decrypt()
691 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV); in decrypt()
697 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) { in finalizeDecryptUnit() argument
700 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in finalizeDecryptUnit()
701 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in finalizeDecryptUnit()
702 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId); in finalizeDecryptUnit()
707 ssize_t DrmManager::pread(int uniqueId, sp<DecryptHandle>& decryptHandle, in pread() argument
712 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) { in pread()
713 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId); in pread()
714 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()