Home
last modified time | relevance | path

Searched refs:audio_io_handle_t (Results 1 – 25 of 98) sorted by relevance

1234

/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DEffectDescriptor.h36 audio_io_handle_t io, audio_session_t session) in EffectDescriptor()
50 audio_io_handle_t mIo; // io the effect is attached to
69 status_t registerEffect(const effect_descriptor_t *desc, audio_io_handle_t io,
73 EffectDescriptorCollection getEffectsForIo(audio_io_handle_t io) const;
81 audio_io_handle_t srcOutput,
82 audio_io_handle_t dstOutput,
84 void moveEffects(const std::vector<int>& ids, audio_io_handle_t dstOutput);
85 void moveEffects(audio_session_t sessionId, audio_io_handle_t srcIo, audio_io_handle_t dstIo,
87 void moveEffectsForIo(audio_session_t sessionId, audio_io_handle_t dstIo,
89 void putOrphanEffects(audio_session_t sessionId, audio_io_handle_t srcIo,
[all …]
DSoundTriggerSession.h25 class SoundTriggerSessionCollection : public DefaultKeyedVector<audio_session_t, audio_io_handle_t>
30 status_t acquireSession(audio_session_t session, audio_io_handle_t ioHandle);
DAudioInputDescriptor.h59 audio_io_handle_t mIoHandle = AUDIO_IO_HANDLE_NONE; // input handle
108 audio_io_handle_t *input);
151 public DefaultKeyedVector< audio_io_handle_t, sp<AudioInputDescriptor> >
/frameworks/av/services/audiopolicy/tests/
DAudioPolicyTestClient.h35 audio_io_handle_t* /*output*/, in openOutput() argument
41 audio_io_handle_t openDuplicateOutput(audio_io_handle_t /*output1*/, in openDuplicateOutput() argument
42 audio_io_handle_t /*output2*/) override { in openDuplicateOutput()
45 status_t closeOutput(audio_io_handle_t /*output*/) override { return NO_INIT; } in closeOutput() argument
46 status_t suspendOutput(audio_io_handle_t /*output*/) override { return NO_INIT; } in suspendOutput() argument
47 status_t restoreOutput(audio_io_handle_t /*output*/) override { return NO_INIT; } in restoreOutput() argument
49 audio_io_handle_t* /*input*/, in openInput() argument
55 status_t closeInput(audio_io_handle_t /*input*/) override { return NO_INIT; } in closeInput() argument
58 audio_io_handle_t /*output*/, in setStreamVolume() argument
60 void setParameters(audio_io_handle_t /*ioHandle*/, in setParameters() argument
[all …]
DAudioPolicyManagerTestClient.h39 audio_io_handle_t *output, in openOutput()
54 audio_io_handle_t openDuplicateOutput(audio_io_handle_t /*output1*/, in openDuplicateOutput() argument
55 audio_io_handle_t /*output2*/) override { in openDuplicateOutput()
56 audio_io_handle_t id = mNextIoHandle++; in openDuplicateOutput()
61 audio_io_handle_t *input, in openInput()
78 status_t closeInput(audio_io_handle_t input) override { in closeInput()
198 String8 getParameters(audio_io_handle_t /* ioHandle */, const String8& /* keys*/ ) override { in getParameters() argument
266 audio_io_handle_t mNextIoHandle = AUDIO_IO_HANDLE_NONE + 1;
277 std::set<audio_io_handle_t> mOpenedInputs;
/frameworks/av/services/audioflinger/
DAudioFlinger.h79 uint32_t sampleRate(audio_io_handle_t ioHandle) const final EXCLUDES_AudioFlinger_Mutex;
80 audio_format_t format(audio_io_handle_t output) const final EXCLUDES_AudioFlinger_Mutex;
81 size_t frameCount(audio_io_handle_t ioHandle) const final EXCLUDES_AudioFlinger_Mutex;
82 size_t frameCountHAL(audio_io_handle_t ioHandle) const final EXCLUDES_AudioFlinger_Mutex;
83 uint32_t latency(audio_io_handle_t output) const final EXCLUDES_AudioFlinger_Mutex;
95 audio_io_handle_t output) final EXCLUDES_AudioFlinger_Mutex;
100 audio_io_handle_t output) const final EXCLUDES_AudioFlinger_Mutex;
111 status_t setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs) final
113 String8 getParameters(audio_io_handle_t ioHandle, const String8& keys) const final
124 audio_io_handle_t openDuplicateOutput(audio_io_handle_t output1,
[all …]
DIAfPatchPanel.h40 audio_io_handle_t playbackThreadHandle, in SoftwarePatch()
41 audio_io_handle_t recordThreadHandle) in SoftwarePatch()
50 audio_io_handle_t getPlaybackThreadHandle() const { return mPlaybackThreadHandle; }; in getPlaybackThreadHandle()
51 audio_io_handle_t getRecordThreadHandle() const { return mRecordThreadHandle; }; in getRecordThreadHandle()
56 const audio_io_handle_t mPlaybackThreadHandle;
57 const audio_io_handle_t mRecordThreadHandle;
65 virtual IAfPlaybackThread* checkPlaybackThread_l(audio_io_handle_t output) const
67 virtual IAfRecordThread* checkRecordThread_l(audio_io_handle_t input) const
69 virtual IAfMmapThread* checkMmapThread_l(audio_io_handle_t io) const REQUIRES(mutex()) = 0;
71 audio_io_handle_t* input,
[all …]
DMelReporter.h35 virtual sp<IAfThreadBase> checkOutputThread_l(audio_io_handle_t ioHandle) const
102 void updateMetadataForCsd(audio_io_handle_t streamHandle,
110 audio_io_handle_t streamHandle{AUDIO_IO_HANDLE_NONE};
132 activePatchStreamHandle_l(audio_io_handle_t streamHandle) REQUIRES(mutex());
DPatchPanel.h57 status_t getDownstreamSoftwarePatches(audio_io_handle_t stream,
61 void notifyStreamOpened(AudioHwDevice *audioHwDevice, audio_io_handle_t stream,
63 void notifyStreamClosed(audio_io_handle_t stream) final;
149 std::set<audio_io_handle_t> streams;
DIAfThread.h119 virtual void onSupportedLatencyModesChanged(audio_io_handle_t output,
151 virtual audio_io_handle_t id() const = 0;
410 audio_io_handle_t id, bool systemReady);
414 audio_io_handle_t id, bool systemReady, const audio_offload_info_t& offloadInfo);
418 audio_io_handle_t id, bool systemReady, type_t type = MIXER,
423 audio_io_handle_t id, bool systemReady, const audio_offload_info_t& offloadInfo);
427 audio_io_handle_t id, bool systemReady, audio_config_base_t* mixerConfig);
555 audio_io_handle_t id, bool systemReady);
566 audio_io_handle_t id, bool systemReady);
679 const sp<IAfThreadCallback>& afThreadCallback, audio_io_handle_t id,
[all …]
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h137 virtual audio_io_handle_t getOutput(audio_stream_type_t stream) = 0;
139 audio_io_handle_t *output,
147 std::vector<audio_io_handle_t> *secondaryOutputs,
162 audio_io_handle_t *input,
230 virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc) = 0;
232 audio_io_handle_t io,
238 virtual status_t moveEffectsToIo(const std::vector<int>& ids, audio_io_handle_t io) = 0;
273 audio_io_handle_t *ioHandle,
408 audio_io_handle_t *output) = 0;
415 virtual status_t releaseSpatializerOutput(audio_io_handle_t output) = 0;
[all …]
/frameworks/av/media/libaudioclient/include/media/
DIAudioFlinger.h124 audio_io_handle_t outputId;
171 audio_io_handle_t inputId;
203 virtual uint32_t sampleRate(audio_io_handle_t ioHandle) const = 0;
207 virtual audio_format_t format(audio_io_handle_t output) const = 0;
208 virtual size_t frameCount(audio_io_handle_t ioHandle) const = 0;
211 virtual uint32_t latency(audio_io_handle_t output) const = 0;
229 audio_io_handle_t output) = 0;
233 audio_io_handle_t output) const = 0;
244 virtual status_t setParameters(audio_io_handle_t ioHandle,
246 virtual String8 getParameters(audio_io_handle_t ioHandle, const String8& keys)
[all …]
DAudioSystem.h129 audio_io_handle_t output);
131 audio_io_handle_t output);
158 static status_t setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs);
159 static String8 getParameters(audio_io_handle_t ioHandle, const String8& keys);
213 static status_t getSamplingRate(audio_io_handle_t ioHandle,
217 static status_t getFrameCount(audio_io_handle_t ioHandle,
221 static status_t getLatency(audio_io_handle_t output,
239 static status_t getRenderPosition(audio_io_handle_t output,
244 static uint32_t getInputFramesLost(audio_io_handle_t ioHandle);
270 static status_t getFrameCountHAL(audio_io_handle_t ioHandle,
[all …]
DAudioIoDescriptor.h46 AudioIoDescriptor(audio_io_handle_t ioHandle) : mIoHandle(ioHandle) {} in AudioIoDescriptor()
49 audio_io_handle_t ioHandle, const audio_patch& patch, audio_port_handle_t portId) : in AudioIoDescriptor()
53 audio_io_handle_t ioHandle, const audio_patch& patch, bool isInput,
62 audio_io_handle_t getIoHandle() const { return mIoHandle; } in getIoHandle()
96 const audio_io_handle_t mIoHandle = AUDIO_IO_HANDLE_NONE;
/frameworks/av/media/libaudiousecasevalidation/include/media/
DUsecaseValidator.h54 virtual status_t registerStream(audio_io_handle_t streamId,
62 virtual status_t unregisterStream(audio_io_handle_t streamId) = 0;
68 virtual error::Result<audio_attributes_t> startClient(audio_io_handle_t streamId,
78 virtual status_t stopClient(audio_io_handle_t streamId, audio_port_handle_t portId) = 0;
84 virtual error::Result<audio_attributes_t> verifyAudioAttributes(audio_io_handle_t streamId,
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImpl.cpp54 audio_io_handle_t *output, in openOutput()
94 audio_io_handle_t AudioPolicyService::AudioPolicyClient::openDuplicateOutput( in openDuplicateOutput()
95 audio_io_handle_t output1, in openDuplicateOutput()
96 audio_io_handle_t output2) in openDuplicateOutput()
106 status_t AudioPolicyService::AudioPolicyClient::closeOutput(audio_io_handle_t output) in closeOutput()
116 status_t AudioPolicyService::AudioPolicyClient::suspendOutput(audio_io_handle_t output) in suspendOutput()
127 status_t AudioPolicyService::AudioPolicyClient::restoreOutput(audio_io_handle_t output) in restoreOutput()
139 audio_io_handle_t *input, in openInput()
173 status_t AudioPolicyService::AudioPolicyClient::closeInput(audio_io_handle_t input) in closeInput()
184 float volume, audio_io_handle_t output, in setStreamVolume()
[all …]
DAudioPolicyService.h349 virtual void setParameters(audio_io_handle_t ioHandle,
355 audio_io_handle_t output,
473 status_t registerOutput(audio_io_handle_t output,
476 status_t unregisterOutput(audio_io_handle_t output);
612 audio_io_handle_t output, int delayMs = 0);
613 status_t parametersCommand(audio_io_handle_t ioHandle,
684 audio_io_handle_t mIO;
689 audio_io_handle_t mIO;
788 audio_io_handle_t *output,
796 …virtual audio_io_handle_t openDuplicateOutput(audio_io_handle_t output1, audio_io_handle_t output2…
[all …]
DAudioPolicyEffects.h72 status_t addInputEffects(audio_io_handle_t input,
77 status_t releaseInputEffects(audio_io_handle_t input,
88 status_t addOutputSessionEffects(audio_io_handle_t output,
93 status_t releaseOutputSessionEffects(audio_io_handle_t output,
/frameworks/av/media/libaudiousecasevalidation/tests/
DUsecaseValidator-test.h68 audio_io_handle_t testRegisterStream(bool outputFlagGame);
69 audio_port_handle_t testCreatePortId(audio_io_handle_t streamId);
70 error::Result<audio_attributes_t> testStartClient(audio_io_handle_t streamId,
73 error::Result<audio_attributes_t> testVerifyAudioAttributes(audio_io_handle_t streamId,
DUsecaseValidator-test.cpp30 audio_io_handle_t UsecaseValidatorTest::testRegisterStream(bool outputFlagGame) { in testRegisterStream()
44 audio_port_handle_t UsecaseValidatorTest::testCreatePortId(audio_io_handle_t streamId) { in testCreatePortId()
53 error::Result<audio_attributes_t> UsecaseValidatorTest::testStartClient(audio_io_handle_t streamId, in testStartClient()
65 audio_io_handle_t streamId, in testVerifyAudioAttributes()
102 audio_io_handle_t gameStreamId, mediaStreamId; in TEST_F()
127 audio_io_handle_t gameStreamId, mediaStreamId; in TEST_F()
160 audio_io_handle_t gameStreamId, mediaStreamId; in TEST_F()
211 audio_io_handle_t gameStreamId; in TEST_F()
243 audio_io_handle_t gameStreamId; in TEST_F()
274 audio_io_handle_t gameStreamId; in TEST_F()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h118 virtual audio_io_handle_t getOutput(audio_stream_type_t stream);
120 audio_io_handle_t *output,
128 std::vector<audio_io_handle_t> *secondaryOutputs,
136 audio_io_handle_t *input,
236 virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc = NULL);
238 audio_io_handle_t io,
244 status_t moveEffectsToIo(const std::vector<int>& ids, audio_io_handle_t io) override;
290 audio_io_handle_t *ioHandle,
409 audio_io_handle_t *output);
411 virtual status_t releaseSpatializerOutput(audio_io_handle_t output);
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DEffectDescriptor.cpp50 audio_io_handle_t io, in registerEffect()
184 void EffectDescriptorCollection::moveEffects(audio_session_t sessionId, audio_io_handle_t srcIo, in moveEffects()
185 audio_io_handle_t dstIo, in moveEffects()
200 void EffectDescriptorCollection::moveEffects(const std::vector<int>& ids, audio_io_handle_t dstIo) in moveEffects()
253 audio_io_handle_t EffectDescriptorCollection::getIoForSession(audio_session_t sessionId, in getIoForSession()
267 audio_io_handle_t dstIo, const AudioInputCollection *inputs, in moveEffectsForIo()
271 audio_io_handle_t srcIo = getIoForSession(session); in moveEffectsForIo()
278 audio_io_handle_t srcIo, audio_io_handle_t dstIo, const AudioInputCollection *inputs, in moveEffects()
321 void EffectDescriptorCollection::putOrphanEffectsForIo(audio_io_handle_t srcIo) in putOrphanEffectsForIo()
333 audio_io_handle_t srcIo, const AudioInputCollection *inputs, in putOrphanEffects()
[all …]
/frameworks/av/media/libaudiousecasevalidation/
DUsecaseValidator.cpp39 status_t registerStream(audio_io_handle_t streamId, in registerStream()
54 status_t unregisterStream(audio_io_handle_t streamId) override { in unregisterStream()
65 error::Result<audio_attributes_t> startClient(audio_io_handle_t streamId, in startClient()
82 status_t stopClient(audio_io_handle_t streamId, audio_port_handle_t portId) override { in stopClient()
93 error::Result<audio_attributes_t> verifyAudioAttributes(audio_io_handle_t streamId, in verifyAudioAttributes()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp260 uint32_t AudioFlingerClientAdapter::sampleRate(audio_io_handle_t ioHandle) const { in sampleRate()
271 audio_format_t AudioFlingerClientAdapter::format(audio_io_handle_t output) const { in format()
281 size_t AudioFlingerClientAdapter::frameCount(audio_io_handle_t ioHandle) const { in frameCount()
292 uint32_t AudioFlingerClientAdapter::latency(audio_io_handle_t output) const { in latency()
340 audio_io_handle_t output) { in setStreamVolume()
354 audio_io_handle_t output) const { in streamVolume()
411 status_t AudioFlingerClientAdapter::setParameters(audio_io_handle_t ioHandle, in setParameters()
419 String8 AudioFlingerClientAdapter::getParameters(audio_io_handle_t ioHandle, const String8& keys) in getParameters()
461 audio_io_handle_t AudioFlingerClientAdapter::openDuplicateOutput(audio_io_handle_t output1, in openDuplicateOutput()
462 audio_io_handle_t output2) { in openDuplicateOutput()
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.h54 status_t getPatchForOutputMix(audio_io_handle_t audioIo, audio_patch& patch);
55 status_t getPatchForInputMix(audio_io_handle_t audioIo, audio_patch& patch);
58 bool checkPatchPlayback(audio_io_handle_t audioIo, audio_port_handle_t deviceId);
59 bool checkPatchCapture(audio_io_handle_t audioIo, audio_port_handle_t deviceId);
66 audio_io_handle_t mAudioIo = AUDIO_IO_HANDLE_NONE;
71 void onAudioDeviceUpdate(audio_io_handle_t audioIo, audio_port_handle_t deviceId);

1234