Lines Matching refs:iter
393 static bool findId(AMediaDrm *mObj, const AMediaDrmByteArray &id, List<idvec_t>::iterator &iter) { in findId() argument
394 for (iter = mObj->mIds.begin(); iter != mObj->mIds.end(); ++iter) { in findId()
395 if (id.length == iter->size() && memcmp(iter->array(), id.ptr, iter->size()) == 0) { in findId()
414 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_openSession() local
415 sessionId->ptr = iter->array(); in AMediaDrm_openSession()
416 sessionId->length = iter->size(); in AMediaDrm_openSession()
430 List<idvec_t>::iterator iter; in AMediaDrm_closeSession() local
431 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_closeSession()
434 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession()
435 mObj->mIds.erase(iter); in AMediaDrm_closeSession()
452 List<idvec_t>::iterator iter; in AMediaDrm_getKeyRequest() local
453 if (!findId(mObj, *scope, iter)) { in AMediaDrm_getKeyRequest()
481 status_t status = mObj->mDrm->getKeyRequest(*iter, mdInit, String8(mimeType), in AMediaDrm_getKeyRequest()
504 List<idvec_t>::iterator iter; in AMediaDrm_provideKeyResponse() local
505 if (!findId(mObj, *scope, iter)) { in AMediaDrm_provideKeyResponse()
512 status_t status = mObj->mDrm->provideKeyResponse(*iter, mdResponse, mdKeySetId); in AMediaDrm_provideKeyResponse()
515 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_provideKeyResponse() local
516 keySetId->ptr = iter->array(); in AMediaDrm_provideKeyResponse()
517 keySetId->length = iter->size(); in AMediaDrm_provideKeyResponse()
535 List<idvec_t>::iterator iter; in AMediaDrm_restoreKeys() local
536 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_restoreKeys()
541 return translateStatus(mObj->mDrm->restoreKeys(*iter, keySet)); in AMediaDrm_restoreKeys()
552 List<idvec_t>::iterator iter; in AMediaDrm_removeKeys() local
554 if (!findId(mObj, *keySetId, iter)) { in AMediaDrm_removeKeys()
559 status = mObj->mDrm->removeKeys(*iter); in AMediaDrm_removeKeys()
560 mObj->mIds.erase(iter); in AMediaDrm_removeKeys()
575 List<idvec_t>::iterator iter; in AMediaDrm_queryKeyStatus() local
576 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_queryKeyStatus()
580 status_t status = mObj->mDrm->queryKeyStatus(*iter, mObj->mQueryResults); in AMediaDrm_queryKeyStatus()
656 List<Vector<uint8_t> >::iterator iter = mObj->mSecureStops.begin(); in AMediaDrm_getSecureStops() local
658 while (iter != mObj->mSecureStops.end()) { in AMediaDrm_getSecureStops()
659 secureStops[i].ptr = iter->array(); in AMediaDrm_getSecureStops()
660 secureStops[i].length = iter->size(); in AMediaDrm_getSecureStops()
661 ++iter; in AMediaDrm_getSecureStops()
761 List<idvec_t>::iterator iter; in encrypt_decrypt_common() local
762 if (!findId(mObj, sessionId, iter)) { in encrypt_decrypt_common()
766 status_t status = mObj->mDrm->setCipherAlgorithm(*iter, String8(cipherAlgorithm)); in encrypt_decrypt_common()
784 status = mObj->mDrm->encrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
786 status = mObj->mDrm->decrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
827 List<idvec_t>::iterator iter; in AMediaDrm_sign() local
828 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_sign()
832 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_sign()
845 status = mObj->mDrm->sign(*iter, keyIdVec, messageVec, signatureVec); in AMediaDrm_sign()
866 List<idvec_t>::iterator iter; in AMediaDrm_verify() local
867 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_verify()
871 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_verify()
887 status = mObj->mDrm->verify(*iter, keyIdVec, messageVec, signatureVec, match); in AMediaDrm_verify()