Lines Matching refs:aidlPatchId
624 int32_t aidlPatchId = static_cast<int32_t>(*patch); in createAudioPatch() local
629 if (int32_t aidlHalPatchId = mMapper.findFwkPatch(aidlPatchId); aidlHalPatchId != 0) { in createAudioPatch()
630 if (aidlHalPatchId == aidlPatchId) { in createAudioPatch()
636 mMapper.updateFwkPatch(aidlPatchId, newAidlPatchId); in createAudioPatch()
643 aidlSources, aidlSinks, &aidlPatchId, &cleanups)); in createAudioPatch()
646 *patch = static_cast<audio_patch_handle_t>(aidlPatchId); in createAudioPatch()
661 int32_t aidlPatchId = static_cast<int32_t>(patch); in releaseAudioPatch() local
662 if (int32_t aidlHalPatchId = mMapper.findFwkPatch(aidlPatchId); aidlHalPatchId != 0) { in releaseAudioPatch()
663 if (aidlHalPatchId == aidlPatchId) { in releaseAudioPatch()
665 mMapper.eraseFwkPatch(aidlPatchId); in releaseAudioPatch()
669 aidlPatchId = aidlHalPatchId; in releaseAudioPatch()
672 RETURN_STATUS_IF_ERROR(mMapper.releaseAudioPatch(aidlPatchId)); in releaseAudioPatch()