Home | History | Annotate | Download | only in drmserver

Lines Matching refs:DecryptHandle

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);
429 DecryptHandle* DrmManager::openDecryptSession(int uniqueId, int fd, off64_t offset, off64_t length) {
434 DecryptHandle* handle = new DecryptHandle();
456 DecryptHandle* DrmManager::openDecryptSession(int uniqueId, const char* uri) {
461 DecryptHandle* handle = new DecryptHandle();
484 status_t DrmManager::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) {
487 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) {
488 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId);
489 result = drmEngine->closeDecryptSession(uniqueId, decryptHandle);
491 mDecryptSessionMap.removeItem(decryptHandle->decryptId);
498 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId, const DrmBuffer* headerInfo) {
501 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) {
502 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId);
503 result = drmEngine->initializeDecryptUnit(uniqueId, decryptHandle, decryptUnitId, headerInfo);
508 status_t DrmManager::decrypt(int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId,
513 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) {
514 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId);
516 uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer, IV);
522 int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) {
525 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) {
526 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId);
527 result = drmEngine->finalizeDecryptUnit(uniqueId, decryptHandle, decryptUnitId);
532 ssize_t DrmManager::pread(int uniqueId, DecryptHandle* decryptHandle,
537 if (mDecryptSessionMap.indexOfKey(decryptHandle->decryptId) != NAME_NOT_FOUND) {
538 IDrmEngine* drmEngine = mDecryptSessionMap.valueFor(decryptHandle->decryptId);
539 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);