Lines Matching refs:effect
49 for (auto& effect : mDeviceEffects) { in onCreateAudioPatch() local
50 status_t status = effect.second->onCreatePatch(handle, patch); in onCreateAudioPatch()
64 for (auto& effect : mDeviceEffects) { in onReleaseAudioPatch() local
65 effect.second->onReleasePatch(handle); in onReleaseAudioPatch()
78 sp<DeviceEffectProxy> effect; in createEffect_l() local
92 effect = iter->second; in createEffect_l()
94 effect = new DeviceEffectProxy(device, mMyCallback, in createEffect_l()
98 handle = new EffectHandle(effect, client, effectClient, 0 /*priority*/); in createEffect_l()
101 lStatus = effect->addHandle(handle.get()); in createEffect_l()
103 effect->init(patches); in createEffect_l()
104 mDeviceEffects.emplace(device, effect); in createEffect_l()
109 *enabled = (int)effect->isEnabled(); in createEffect_l()
129 sp<EffectHalInterface> *effect) { in createEffectHal() argument
134 pEffectUuid, sessionId, AUDIO_IO_HANDLE_NONE, deviceId, effect); in createEffectHal()
161 size_t AudioFlinger::DeviceEffectManager::removeEffect(const sp<DeviceEffectProxy>& effect) in removeEffect() argument
164 mDeviceEffects.erase(effect->device()); in removeEffect()
170 sp<EffectBase> effectBase = handle->effect().promote(); in disconnectEffectHandle()
175 sp<DeviceEffectProxy> effect = effectBase->asDeviceEffectProxy(); in disconnectEffectHandle() local
176 if (effect == nullptr) { in disconnectEffectHandle()
180 bool remove = (effect->removeHandle(handle) == 0) && (!effect->isPinned() || unpinIfLast); in disconnectEffectHandle()
182 mManager.removeEffect(effect); in disconnectEffectHandle()