• Home
  • Raw
  • Download

Lines Matching refs:patchDesc

3818     sp<AudioPatch> patchDesc;  in createAudioPatchInternal()  local
3833 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
3835 __func__, mUidCached, patchDesc->getUid(), uid); in createAudioPatchInternal()
3836 if (patchDesc->getUid() != mUidCached && uid != patchDesc->getUid()) { in createAudioPatchInternal()
3851 if (patchDesc != 0) { in createAudioPatchInternal()
3852 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
3854 __func__, patchDesc->mPatch.sources[0].id, patch->sources[0].id); in createAudioPatchInternal()
3896 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatchInternal()
3899 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
3900 patchDesc->setUid(uid); in createAudioPatchInternal()
3917 if (patchDesc != 0) { in createAudioPatchInternal()
3918 if (patchDesc->mPatch.sinks[0].id != patch->sinks[0].id) { in createAudioPatchInternal()
3947 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatchInternal()
3950 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
3951 patchDesc->setUid(uid); in createAudioPatchInternal()
3959 if (patchDesc != 0) { in createAudioPatchInternal()
3960 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
4080 __func__, index, handle, patchBuilder.patch(), delayMs, uid, &patchDesc); in createAudioPatchInternal()
4104 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in releaseAudioPatch() local
4106 __func__, mUidCached, patchDesc->getUid(), uid); in releaseAudioPatch()
4107 if (patchDesc->getUid() != mUidCached && uid != patchDesc->getUid()) { in releaseAudioPatch()
4121 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(handle); in releaseAudioPatchInternal() local
4122 struct audio_patch *patch = &patchDesc->mPatch; in releaseAudioPatchInternal()
4123 patchDesc->setUid(mUidCached); in releaseAudioPatchInternal()
4149 mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), delayMs); in releaseAudioPatchInternal()
4151 __func__, status, patchDesc->getAfHandle()); in releaseAudioPatchInternal()
4152 removeAudioPatch(patchDesc->getHandle()); in releaseAudioPatchInternal()
4164 if (patchDesc->getHandle() != outputDesc->getPatchHandle()) { in releaseAudioPatchInternal()
4270 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in clearAudioPatches() local
4271 if (patchDesc->getUid() == uid) { in clearAudioPatches()
5434 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeOutput() local
5436 patchDesc->getAfHandle(), 0); in closeOutput()
5486 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeInput() local
5488 patchDesc->getAfHandle(), 0); in closeInput()
5805 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewOutputDevices() local
5806 if (patchDesc->getUid() != mUidCached) { in getNewOutputDevices()
5876 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewInputDevice() local
5877 if (patchDesc->getUid() != mUidCached) { in getNewInputDevice()
6243 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetOutputDevice() local
6244 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), delayMs); in resetOutputDevice()
6247 removeAudioPatch(patchDesc->getHandle()); in resetOutputDevice()
6296 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetInputDevice() local
6297 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), 0); in resetInputDevice()
6300 removeAudioPatch(patchDesc->getHandle()); in resetInputDevice()
6712 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in cleanUpForDevice() local
6714 for (size_t j = 0; j < patchDesc->mPatch.num_sources && !release; j++) { in cleanUpForDevice()
6715 const struct audio_port_config *source = &patchDesc->mPatch.sources[j]; in cleanUpForDevice()
6722 for (size_t j = 0; j < patchDesc->mPatch.num_sinks && !release; j++) { in cleanUpForDevice()
6723 const struct audio_port_config *sink = &patchDesc->mPatch.sinks[j]; in cleanUpForDevice()
6733 ALOGV("%s releasing patch %u", __FUNCTION__, patchDesc->getHandle()); in cleanUpForDevice()
6734 releaseAudioPatch(patchDesc->getHandle(), patchDesc->getUid()); in cleanUpForDevice()
6906 sp<AudioPatch> patchDesc; in installPatch() local
6908 caller, index, patchHandle, patch, delayMs, mUidCached, &patchDesc); in installPatch()
6910 ioDescriptor->setPatchHandle(patchDesc->getHandle()); in installPatch()
6923 sp<AudioPatch> patchDesc; in installPatch() local
6926 patchDesc = mAudioPatches.valueAt(index); in installPatch()
6927 afPatchHandle = patchDesc->getAfHandle(); in installPatch()
6935 patchDesc = new AudioPatch(patch, uid); in installPatch()
6936 addAudioPatch(patchDesc->getHandle(), patchDesc); in installPatch()
6938 patchDesc->mPatch = *patch; in installPatch()
6940 patchDesc->setAfHandle(afPatchHandle); in installPatch()
6942 *patchHandle = patchDesc->getHandle(); in installPatch()
6947 if (patchDescPtr) *patchDescPtr = patchDesc; in installPatch()
6963 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in areAllActiveTracksRerouted() local
6965 for (int i = 0; i < patchDesc->mPatch.num_sinks; ++i) { in areAllActiveTracksRerouted()
6967 patchDesc->mPatch.sinks[i].id); in areAllActiveTracksRerouted()
6970 __func__, patchDesc->mPatch.sinks[i].id); in areAllActiveTracksRerouted()