Lines Matching refs:sp

44     virtual status_t addEffectToHal(sp<EffectHalInterface> effect) = 0;
45 virtual status_t removeEffectFromHal(sp<EffectHalInterface> effect) = 0;
48 virtual void checkSuspendOnEffectEnabled(const sp<EffectBase>& effect,
51 virtual void onEffectEnable(const sp<EffectBase>& effect) = 0;
52 virtual void onEffectDisable(const sp<EffectBase>& effect) = 0;
56 int32_t sessionId, int32_t deviceId, sp<EffectHalInterface> *effect) = 0;
57 virtual status_t allocateHalBuffer(size_t size, sp<EffectBufferHalInterface>* buffer) = 0;
58 virtual bool updateOrphanEffectChains(const sp<EffectBase>& effect) = 0;
89 EffectBase(const sp<EffectCallbackInterface>& callback,
141 void setCallback(const sp<EffectCallbackInterface>& callback) { mCallback = callback; } in setCallback()
142 sp<EffectCallbackInterface>& callback() { return mCallback; } in callback()
161 virtual sp<EffectModule> asEffectModule() { return nullptr; } in asEffectModule()
162 virtual sp<DeviceEffectProxy> asDeviceEffectProxy() { return nullptr; } in asDeviceEffectProxy()
173 sp<EffectCallbackInterface> mCallback; // parent effect chain
206 EffectModule(const sp<EffectCallbackInterface>& callabck,
234 void setInBuffer(const sp<EffectBufferHalInterface>& buffer);
238 void setOutBuffer(const sp<EffectBufferHalInterface>& buffer);
258 sp<EffectModule> asEffectModule() override { return this; } in asEffectModule()
276 sp<EffectHalInterface> mEffectInterface; // Effect module HAL
277 sp<EffectBufferHalInterface> mInBuffer; // Buffers for interacting with HAL
278 sp<EffectBufferHalInterface> mOutBuffer;
288 sp<EffectBufferHalInterface> mInConversionBuffer; // Buffers for HAL conversion if needed.
289 sp<EffectBufferHalInterface> mOutConversionBuffer;
322 EffectHandle(const sp<EffectBase>& effect,
323 const sp<AudioFlinger::Client>& client,
324 const sp<IEffectClient>& effectClient,
341 virtual sp<IMemory> getCblk() const { return mCblkMemory; } in getCblk()
362 sp<EffectBase> effect = mEffect.promote(); in id()
380 sp<IEffectClient> mEffectClient; // callback interface for client notifications
381 /*const*/ sp<Client> mClient; // client for shared memory allocation, see disconnect()
382 sp<IMemory> mCblkMemory; // shared memory for control block
425 status_t createEffect_l(sp<EffectModule>& effect,
430 status_t addEffect_l(const sp<EffectModule>& handle);
431 status_t addEffect_ll(const sp<EffectModule>& handle);
432 size_t removeEffect_l(const sp<EffectModule>& handle, bool release = false);
437 sp<EffectModule> getEffectFromDesc_l(effect_descriptor_t *descriptor);
438 sp<EffectModule> getEffectFromId_l(int id);
439 sp<EffectModule> getEffectFromType_l(const effect_uuid_t *type);
449 void setInBuffer(const sp<EffectBufferHalInterface>& buffer) { in setInBuffer()
455 void setOutBuffer(const sp<EffectBufferHalInterface>& buffer) { in setOutBuffer()
482 void checkSuspendOnEffectEnabled(const sp<EffectModule>& effect, bool enabled);
505 bool isCompatibleWithThread_l(const sp<ThreadBase>& thread) const;
507 sp<EffectCallbackInterface> effectCallback() const { return mEffectCallback; } in effectCallback()
520 int32_t sessionId, int32_t deviceId, sp<EffectHalInterface> *effect) override;
521 status_t allocateHalBuffer(size_t size, sp<EffectBufferHalInterface>* buffer) override;
522 bool updateOrphanEffectChains(const sp<EffectBase>& effect) override;
536 status_t addEffectToHal(sp<EffectHalInterface> effect) override;
537 status_t removeEffectFromHal(sp<EffectHalInterface> effect) override;
542 void checkSuspendOnEffectEnabled(const sp<EffectBase>& effect,
547 void onEffectEnable(const sp<EffectBase>& effect) override;
548 void onEffectDisable(const sp<EffectBase>& effect) override;
575 void getSuspendEligibleEffects(Vector< sp<EffectModule> > &effects);
578 sp<EffectModule> getEffectIfEnabled(const effect_uuid_t *type);
588 void setThread(const sp<ThreadBase>& thread);
593 Vector< sp<EffectModule> > mEffects; // list of effect modules
595 sp<EffectBufferHalInterface> mInBuffer; // chain input buffer
596 sp<EffectBufferHalInterface> mOutBuffer; // chain output buffer
614 KeyedVector< int, sp<SuspendedEffectDesc> > mSuspendedEffects;
616 const sp<EffectCallback> mEffectCallback;
622 const sp<DeviceEffectManagerCallback>& callback, in DeviceEffectProxy()
629 sp<DeviceEffectProxy> asDeviceEffectProxy() override { return this; } in asDeviceEffectProxy()
635 size_t removeEffect(const sp<EffectModule>& effect);
637 status_t addEffectToHal(sp<EffectHalInterface> effect);
638 status_t removeEffectFromHal(sp<EffectHalInterface> effect);
653 const sp<DeviceEffectManagerCallback>& callback) in ProxyCallback()
657 int32_t sessionId, int32_t deviceId, sp<EffectHalInterface> *effect) override;
659 sp<EffectBufferHalInterface>* buffer __unused) override { return NO_ERROR; } in allocateHalBuffer()
660 bool updateOrphanEffectChains(const sp<EffectBase>& effect __unused) override { in updateOrphanEffectChains()
676 status_t addEffectToHal(sp<EffectHalInterface> effect) override;
677 status_t removeEffectFromHal(sp<EffectHalInterface> effect) override;
682 void checkSuspendOnEffectEnabled(const sp<EffectBase>& effect __unused, in checkSuspendOnEffectEnabled()
687 void onEffectEnable(const sp<EffectBase>& effect __unused) override {} in onEffectEnable()
688 void onEffectDisable(const sp<EffectBase>& effect __unused) override {} in onEffectDisable()
696 const sp<DeviceEffectManagerCallback> mManagerCallback;
700 sp<EffectHandle> *handle);
703 const sp<DeviceEffectManagerCallback> mManagerCallback;
704 const sp<ProxyCallback> mMyCallback;
707 std::map<audio_patch_handle_t, sp<EffectHandle>> mEffectHandles; // protected by mProxyLock
708 sp<EffectModule> mHalEffect; // protected by mProxyLock