• Home
  • Raw
  • Download

Lines Matching refs:iter

228 static bool findId(AMediaDrm *mObj, const AMediaDrmByteArray &id, List<idvec_t>::iterator &iter) {  in findId()  argument
229 iter = mObj->mIds.begin(); in findId()
230 while (iter != mObj->mIds.end()) { in findId()
231 if (iter->array() == id.ptr && iter->size() == id.length) { in findId()
250 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_openSession() local
251 sessionId->ptr = iter->array(); in AMediaDrm_openSession()
252 sessionId->length = iter->size(); in AMediaDrm_openSession()
266 List<idvec_t>::iterator iter; in AMediaDrm_closeSession() local
267 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_closeSession()
270 mObj->mDrm->closeSession(*iter); in AMediaDrm_closeSession()
271 mObj->mIds.erase(iter); in AMediaDrm_closeSession()
288 List<idvec_t>::iterator iter; in AMediaDrm_getKeyRequest() local
289 if (!findId(mObj, *scope, iter)) { in AMediaDrm_getKeyRequest()
315 status_t status = mObj->mDrm->getKeyRequest(*iter, mdInit, String8(mimeType), in AMediaDrm_getKeyRequest()
337 List<idvec_t>::iterator iter; in AMediaDrm_provideKeyResponse() local
338 if (!findId(mObj, *scope, iter)) { in AMediaDrm_provideKeyResponse()
345 status_t status = mObj->mDrm->provideKeyResponse(*iter, mdResponse, mdKeySetId); in AMediaDrm_provideKeyResponse()
348 List<idvec_t>::iterator iter = mObj->mIds.begin(); in AMediaDrm_provideKeyResponse() local
349 keySetId->ptr = iter->array(); in AMediaDrm_provideKeyResponse()
350 keySetId->length = iter->size(); in AMediaDrm_provideKeyResponse()
368 List<idvec_t>::iterator iter; in AMediaDrm_restoreKeys() local
369 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_restoreKeys()
374 return translateStatus(mObj->mDrm->restoreKeys(*iter, keySet)); in AMediaDrm_restoreKeys()
385 List<idvec_t>::iterator iter; in AMediaDrm_removeKeys() local
387 if (!findId(mObj, *keySetId, iter)) { in AMediaDrm_removeKeys()
392 status = mObj->mDrm->removeKeys(*iter); in AMediaDrm_removeKeys()
393 mObj->mIds.erase(iter); in AMediaDrm_removeKeys()
408 List<idvec_t>::iterator iter; in AMediaDrm_queryKeyStatus() local
409 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_queryKeyStatus()
413 status_t status = mObj->mDrm->queryKeyStatus(*iter, mObj->mQueryResults); in AMediaDrm_queryKeyStatus()
489 List<Vector<uint8_t> >::iterator iter = mObj->mSecureStops.begin(); in AMediaDrm_getSecureStops() local
491 while (iter != mObj->mSecureStops.end()) { in AMediaDrm_getSecureStops()
492 secureStops[i].ptr = iter->array(); in AMediaDrm_getSecureStops()
493 secureStops[i].length = iter->size(); in AMediaDrm_getSecureStops()
494 ++iter; in AMediaDrm_getSecureStops()
594 List<idvec_t>::iterator iter; in encrypt_decrypt_common() local
595 if (!findId(mObj, sessionId, iter)) { in encrypt_decrypt_common()
599 status_t status = mObj->mDrm->setCipherAlgorithm(*iter, String8(cipherAlgorithm)); in encrypt_decrypt_common()
617 status_t status = mObj->mDrm->encrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
619 status_t status = mObj->mDrm->decrypt(*iter, keyIdVec, inputVec, ivVec, outputVec); in encrypt_decrypt_common()
660 List<idvec_t>::iterator iter; in AMediaDrm_sign() local
661 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_sign()
665 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_sign()
678 status = mObj->mDrm->sign(*iter, keyIdVec, messageVec, signatureVec); in AMediaDrm_sign()
699 List<idvec_t>::iterator iter; in AMediaDrm_verify() local
700 if (!findId(mObj, *sessionId, iter)) { in AMediaDrm_verify()
704 status_t status = mObj->mDrm->setMacAlgorithm(*iter, String8(macAlgorithm)); in AMediaDrm_verify()
720 status = mObj->mDrm->verify(*iter, keyIdVec, messageVec, signatureVec, match); in AMediaDrm_verify()