Lines Matching refs:mDrm
96 sp<IDrm> mDrm; member
301 mObj->mDrm = CreateDrmFromUUID(uuid); in AMediaDrm_createByUUID()
309 if (mObj->mDrm != NULL) { in AMediaDrm_release()
310 mObj->mDrm->setListener(NULL); in AMediaDrm_release()
311 mObj->mDrm->destroyPlugin(); in AMediaDrm_release()
312 mObj->mDrm.clear(); in AMediaDrm_release()
319 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_setOnEventListener()
328 mObj->mDrm->setListener(mObj->mListener); in AMediaDrm_setOnEventListener()
335 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_setOnExpirationUpdateListener()
344 mObj->mDrm->setListener(mObj->mListener); in AMediaDrm_setOnExpirationUpdateListener()
351 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_setOnKeysChangeListener()
360 mObj->mDrm->setListener(mObj->mListener); in AMediaDrm_setOnKeysChangeListener()
375 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_openSession()
382 status_t status = mObj->mDrm->openSession(DrmPlugin::kSecurityLevelMax, session); in AMediaDrm_openSession()
397 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_closeSession()
408 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession()
419 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getKeyRequest()
455 status_t status = mObj->mDrm->getKeyRequest(*iter, mdInit, String8(mimeType), in AMediaDrm_getKeyRequest()
471 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_provideKeyResponse()
486 status_t status = mObj->mDrm->provideKeyResponse(*iter, mdResponse, mdKeySetId); in AMediaDrm_provideKeyResponse()
504 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_restoreKeys()
516 return translateStatus(mObj->mDrm->restoreKeys(*iter, keySet)); in AMediaDrm_restoreKeys()
521 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_removeKeys()
532 status = mObj->mDrm->removeKeys(keySet); in AMediaDrm_removeKeys()
534 status = mObj->mDrm->removeKeys(*iter); in AMediaDrm_removeKeys()
544 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_queryKeyStatus()
555 status_t status = mObj->mDrm->queryKeyStatus(*iter, mObj->mQueryResults); in AMediaDrm_queryKeyStatus()
577 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getProvisionRequest()
584 status_t status = mObj->mDrm->getProvisionRequest(String8(""), String8(""), in AMediaDrm_getProvisionRequest()
599 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_provideProvisionResponse()
610 return translateStatus(mObj->mDrm->provideProvisionResponse(mdResponse, unused, unused)); in AMediaDrm_provideProvisionResponse()
617 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getSecureStops()
623 status_t status = mObj->mDrm->getSecureStops(mObj->mSecureStops); in AMediaDrm_getSecureStops()
647 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_releaseSecureStops()
656 return translateStatus(mObj->mDrm->releaseSecureStops(release)); in AMediaDrm_releaseSecureStops()
664 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getPropertyString()
671 status_t status = mObj->mDrm->getPropertyString(String8(propertyName), in AMediaDrm_getPropertyString()
685 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getPropertyByteArray()
692 status_t status = mObj->mDrm->getPropertyByteArray(String8(propertyName), in AMediaDrm_getPropertyByteArray()
708 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_setPropertyString()
712 return translateStatus(mObj->mDrm->setPropertyString(String8(propertyName), in AMediaDrm_setPropertyString()
723 return translateStatus(mObj->mDrm->setPropertyByteArray(String8(propertyName), in AMediaDrm_setPropertyByteArray()
733 if (!mObj || mObj->mDrm == NULL) { in encrypt_decrypt_common()
741 status_t status = mObj->mDrm->setCipherAlgorithm(*iter, String8(cipherAlgorithm)); in encrypt_decrypt_common()
759 status = mObj->mDrm->encrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
761 status = mObj->mDrm->decrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
796 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_sign()
807 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_sign()
820 status = mObj->mDrm->sign(*iter, keyIdVec, messageVec, signatureVec); in AMediaDrm_sign()
835 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_verify()
846 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_verify()
862 status = mObj->mDrm->verify(*iter, keyIdVec, messageVec, signatureVec, match); in AMediaDrm_verify()