Home
last modified time | relevance | path

Searched refs:BAudioUsage (Results 1 – 9 of 9) sorted by relevance

/system/media/brillo/audio/audioservice/include/
Dbrillo_audio_manager.h71 enum BAudioUsage { enum
90 BAudioUsage usage);
102 BAudioUsage usage,
115 BAudioUsage usage,
130 BAudioUsage usage,
145 BAudioUsage usage,
159 const BAudioManager* brillo_audio_manager, BAudioUsage* usage);
178 const BAudioManager* brillo_audio_manager, BAudioUsage usage);
213 void (*OnVolumeChanged)(BAudioUsage usage,
/system/media/brillo/audio/audioservice/
Dbrillo_audio_client.h88 int GetMaxVolumeSteps(BAudioUsage usage, int* max_steps);
96 int SetMaxVolumeSteps(BAudioUsage usage, int max_steps);
105 int SetVolumeIndex(BAudioUsage usage, audio_devices_t device, int index);
114 int GetVolumeIndex(BAudioUsage usage, audio_devices_t device, int* index);
121 int GetVolumeControlStream(BAudioUsage* usage);
128 int SetVolumeControlStream(BAudioUsage usage);
Dbrillo_audio_client_helpers.h31 static audio_policy_force_use_t GetForceUse(BAudioUsage usage);
32 static audio_stream_type_t GetStreamType(BAudioUsage usage);
33 static BAudioUsage GetBAudioUsage(audio_stream_type_t stream);
Dbrillo_audio_client_helpers.cpp21 BAudioUsage usage) { in GetForceUse()
28 audio_stream_type_t BrilloAudioClientHelpers::GetStreamType(BAudioUsage usage) { in GetStreamType()
43 BAudioUsage BrilloAudioClientHelpers::GetBAudioUsage( in GetBAudioUsage()
Dbrillo_audio_manager.cpp88 BAudioUsage usage) { in BAudioManager_setOutputDevice()
99 BAudioUsage usage, in BAudioManager_getMaxVolumeSteps()
110 BAudioUsage usage, in BAudioManager_setMaxVolumeSteps()
121 BAudioUsage usage, in BAudioManager_setVolumeIndex()
136 BAudioUsage usage, in BAudioManager_getVolumeIndex()
151 const BAudioManager* brillo_audio_manager, BAudioUsage* usage) { in BAudioManager_getVolumeControlUsage()
163 const BAudioManager* brillo_audio_manager, BAudioUsage usage) { in BAudioManager_setVolumeControlUsage()
Dbrillo_audio_client.cpp102 int BrilloAudioClient::GetMaxVolumeSteps(BAudioUsage usage, int* max_steps) { in GetMaxVolumeSteps()
112 int BrilloAudioClient::SetMaxVolumeSteps(BAudioUsage usage, int max_steps) { in SetMaxVolumeSteps()
122 int BrilloAudioClient::SetVolumeIndex(BAudioUsage usage, in SetVolumeIndex()
134 int BrilloAudioClient::GetVolumeIndex(BAudioUsage usage, in GetVolumeIndex()
146 int BrilloAudioClient::GetVolumeControlStream(BAudioUsage* usage) { in GetVolumeControlStream()
158 int BrilloAudioClient::SetVolumeControlStream(BAudioUsage usage) { in SetVolumeControlStream()
Daudio_service_callback.h73 base::Callback<void(BAudioUsage, int, int, void*)> volume_callback_;
/system/media/brillo/audio/audioservice/test/
Dbrillo_audio_manager_test.cpp299 nullptr, BAudioUsage::kUsageMedia, nullptr), in TEST_F()
302 BAudioManager_getMaxVolumeSteps(nullptr, BAudioUsage::kUsageMedia, &foo), in TEST_F()
305 BAudioManager_getMaxVolumeSteps(bam, BAudioUsage::kUsageMedia, nullptr), in TEST_F()
315 BAudioManager_getMaxVolumeSteps(bam, BAudioUsage::kUsageMedia, &foo), 0); in TEST_F()
323 BAudioManager_getMaxVolumeSteps(bam, BAudioUsage::kUsageMedia, &foo), in TEST_F()
329 BAudioManager_setMaxVolumeSteps(nullptr, BAudioUsage::kUsageMedia, 100), in TEST_F()
337 EXPECT_EQ(BAudioManager_setMaxVolumeSteps(bam, BAudioUsage::kUsageMedia, 100), in TEST_F()
344 EXPECT_EQ(BAudioManager_setMaxVolumeSteps(bam, BAudioUsage::kUsageMedia, 100), in TEST_F()
351 nullptr, BAudioUsage::kUsageMedia, nullptr, 100), in TEST_F()
354 BAudioManager_setVolumeIndex(bam, BAudioUsage::kUsageMedia, nullptr, 100), in TEST_F()
[all …]
Dbrillo_audio_client_test.cpp177 EXPECT_EQ(client_.GetMaxVolumeSteps(BAudioUsage::kUsageInvalid, &foo), in TEST_F()
186 EXPECT_EQ(client_.GetMaxVolumeSteps(BAudioUsage::kUsageMedia, &foo), 0); in TEST_F()
191 EXPECT_EQ(client_.SetMaxVolumeSteps(BAudioUsage::kUsageInvalid, 100), in TEST_F()
199 EXPECT_EQ(client_.SetMaxVolumeSteps(BAudioUsage::kUsageMedia, 100), 0); in TEST_F()
205 BAudioUsage::kUsageInvalid, AUDIO_DEVICE_NONE, 100), in TEST_F()
215 BAudioUsage::kUsageMedia, AUDIO_DEVICE_OUT_SPEAKER, 100), in TEST_F()
223 BAudioUsage::kUsageInvalid, AUDIO_DEVICE_NONE, &foo), in TEST_F()
235 BAudioUsage::kUsageMedia, AUDIO_DEVICE_OUT_SPEAKER, &foo), in TEST_F()
241 BAudioUsage foo; in TEST_F()
249 BAudioUsage foo; in TEST_F()