Lines Matching refs:mDrm
51 sp<IDrm> mDrm; member
200 mObj->mDrm = CreateDrmFromUUID(uuid); in AMediaDrm_createByUUID()
206 if (mObj->mDrm != NULL) { in AMediaDrm_release()
207 mObj->mDrm->setListener(NULL); in AMediaDrm_release()
208 mObj->mDrm->destroyPlugin(); in AMediaDrm_release()
209 mObj->mDrm.clear(); in AMediaDrm_release()
216 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_setOnEventListener()
220 mObj->mDrm->setListener(mObj->mListener); in AMediaDrm_setOnEventListener()
236 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_openSession()
243 status_t status = mObj->mDrm->openSession(DrmPlugin::kSecurityLevelMax, session); in AMediaDrm_openSession()
255 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_closeSession()
266 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession()
277 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getKeyRequest()
312 status_t status = mObj->mDrm->getKeyRequest(*iter, mdInit, String8(mimeType), in AMediaDrm_getKeyRequest()
328 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_provideKeyResponse()
343 status_t status = mObj->mDrm->provideKeyResponse(*iter, mdResponse, mdKeySetId); in AMediaDrm_provideKeyResponse()
360 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_restoreKeys()
372 return translateStatus(mObj->mDrm->restoreKeys(*iter, keySet)); in AMediaDrm_restoreKeys()
377 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_removeKeys()
388 status = mObj->mDrm->removeKeys(keySet); in AMediaDrm_removeKeys()
390 status = mObj->mDrm->removeKeys(*iter); in AMediaDrm_removeKeys()
400 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_queryKeyStatus()
411 status_t status = mObj->mDrm->queryKeyStatus(*iter, mObj->mQueryResults); in AMediaDrm_queryKeyStatus()
433 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getProvisionRequest()
440 status_t status = mObj->mDrm->getProvisionRequest(String8(""), String8(""), in AMediaDrm_getProvisionRequest()
455 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_provideProvisionResponse()
466 return translateStatus(mObj->mDrm->provideProvisionResponse(mdResponse, unused, unused)); in AMediaDrm_provideProvisionResponse()
473 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getSecureStops()
479 status_t status = mObj->mDrm->getSecureStops(mObj->mSecureStops); in AMediaDrm_getSecureStops()
503 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_releaseSecureStops()
512 return translateStatus(mObj->mDrm->releaseSecureStops(release)); in AMediaDrm_releaseSecureStops()
520 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getPropertyString()
527 status_t status = mObj->mDrm->getPropertyString(String8(propertyName), in AMediaDrm_getPropertyString()
541 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_getPropertyByteArray()
548 status_t status = mObj->mDrm->getPropertyByteArray(String8(propertyName), in AMediaDrm_getPropertyByteArray()
564 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_setPropertyString()
568 return translateStatus(mObj->mDrm->setPropertyString(String8(propertyName), in AMediaDrm_setPropertyString()
579 return translateStatus(mObj->mDrm->getPropertyByteArray(String8(propertyName), in AMediaDrm_setPropertyByteArray()
589 if (!mObj || mObj->mDrm == NULL) { in encrypt_decrypt_common()
597 status_t status = mObj->mDrm->setCipherAlgorithm(*iter, String8(cipherAlgorithm)); in encrypt_decrypt_common()
615 status = mObj->mDrm->encrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
617 status = mObj->mDrm->decrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
652 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_sign()
663 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_sign()
676 status = mObj->mDrm->sign(*iter, keyIdVec, messageVec, signatureVec); in AMediaDrm_sign()
691 if (!mObj || mObj->mDrm == NULL) { in AMediaDrm_verify()
702 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_verify()
718 status = mObj->mDrm->verify(*iter, keyIdVec, messageVec, signatureVec, match); in AMediaDrm_verify()