Home
last modified time | relevance | path

Searched refs:audio (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/packages/modules/Bluetooth/system/stack/test/btm/
Dsco_hci_test.cc140 bluetooth::audio::sco::open(); in SetUp()
142 void TearDown() override { bluetooth::audio::sco::cleanup(); } in TearDown()
153 bluetooth::audio::sco::wbs::init(60); in SetUp()
155 void TearDown() override { bluetooth::audio::sco::wbs::cleanup(); } in TearDown()
163 bluetooth::audio::sco::swb::init(60); in SetUp()
165 void TearDown() override { bluetooth::audio::sco::swb::cleanup(); } in TearDown()
169 bluetooth::audio::sco::open(); in TEST_F()
172 bluetooth::audio::sco::cleanup(); in TEST_F()
185 bluetooth::audio::sco::open(); in TEST_F()
190 bluetooth::audio::sco::cleanup(); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dle_audio_utils.cc26 namespace audio { namespace
29 ::aidl::android::hardware::bluetooth::audio::CodecId
32 ::aidl::android::hardware::bluetooth::audio::CodecId codec; in GetAidlCodecIdFromStackFormat()
35 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::LC3; in GetAidlCodecIdFromStackFormat()
37 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::CVSD; in GetAidlCodecIdFromStackFormat()
39 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::MSBC; in GetAidlCodecIdFromStackFormat()
41 auto vc = ::aidl::android::hardware::bluetooth::audio::CodecId::Vendor(); in GetAidlCodecIdFromStackFormat()
52 const ::aidl::android::hardware::bluetooth::audio::CodecId& codec_id) { in GetStackCodecIdFromAidlFormat()
55 case ::aidl::android::hardware::bluetooth::audio::CodecId::core: { in GetStackCodecIdFromAidlFormat()
60 ::aidl::android::hardware::bluetooth::audio::CodecId::Core::LC3) { in GetStackCodecIdFromAidlFormat()
[all …]
Dle_audio_utils_unittest.cc43 using ::bluetooth::audio::aidl::GetAidlCodecIdFromStackFormat;
44 using ::bluetooth::audio::aidl::
46 using ::bluetooth::audio::aidl::GetAidlLeAudioDeviceCapabilitiesFromStackFormat;
47 using ::bluetooth::audio::aidl::
49 using ::bluetooth::audio::aidl::GetAidlMetadataFromStackFormat;
50 using ::bluetooth::audio::aidl::GetStackBisConfigFromAidlFormat;
51 using ::bluetooth::audio::aidl::GetStackBroadcastConfigurationFromAidlFormat;
52 using ::bluetooth::audio::aidl::GetStackCodecIdFromAidlFormat;
53 using ::bluetooth::audio::aidl::GetStackLeAudioLtvMapFromAidlFormat;
54 using ::bluetooth::audio::aidl::GetStackSubgroupsFromAidlFormat;
[all …]
Dclient_interface_aidl.h37 namespace audio {
40 using ::aidl::android::hardware::bluetooth::audio::A2dpConfiguration;
41 using ::aidl::android::hardware::bluetooth::audio::A2dpConfigurationHint;
42 using ::aidl::android::hardware::bluetooth::audio::A2dpRemoteCapabilities;
43 using ::aidl::android::hardware::bluetooth::audio::A2dpStatus;
44 using ::aidl::android::hardware::bluetooth::audio::AudioCapabilities;
45 using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
46 using ::aidl::android::hardware::bluetooth::audio::BluetoothAudioStatus;
47 using ::aidl::android::hardware::bluetooth::audio::CodecId;
48 using ::aidl::android::hardware::bluetooth::audio::CodecInfo;
[all …]
Dle_audio_utils.h29 namespace audio {
32 ::aidl::android::hardware::bluetooth::audio::CodecId
37 const ::aidl::android::hardware::bluetooth::audio::CodecId& codec_id);
40 std::optional<::aidl::android::hardware::bluetooth::audio::MetadataLtv>>>
45 ::aidl::android::hardware::bluetooth::audio::MetadataLtv>>& source);
48 std::optional<::aidl::android::hardware::bluetooth::audio::
54 ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider::
61 ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider::
74 const std::vector<::aidl::android::hardware::bluetooth::audio::
79 const ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider::
[all …]
Dhearing_aid_software_encoding_aidl.cc38 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
39 using ::aidl::android::hardware::bluetooth::audio::CodecType;
40 using ::bluetooth::audio::aidl::AudioConfiguration;
41 using ::bluetooth::audio::aidl::BluetoothAudioCtrlAck;
42 using ::bluetooth::audio::aidl::LatencyMode;
43 using ::bluetooth::audio::aidl::PcmConfiguration;
44 using ::bluetooth::audio::aidl::SessionType;
45 using ::bluetooth::audio::aidl::hearing_aid::StreamCallbacks;
50 : public bluetooth::audio::aidl::IBluetoothSinkTransportInstance {
73 ::bluetooth::audio::aidl::hearing_aid::read(p_buf, sizeof(p_buf)); in SuspendRequest()
[all …]
Dle_audio_software_aidl.h25 namespace audio {
29 using ::aidl::android::hardware::bluetooth::audio::BroadcastCapability;
30 using ::aidl::android::hardware::bluetooth::audio::
32 using ::aidl::android::hardware::bluetooth::audio::LeAudioConfiguration;
33 using ::aidl::android::hardware::bluetooth::audio::PcmConfiguration;
34 using ::aidl::android::hardware::bluetooth::audio::SessionType;
35 using ::aidl::android::hardware::bluetooth::audio::UnicastCapability;
36 using ::bluetooth::audio::aidl::BluetoothAudioCtrlAck;
37 using ::bluetooth::audio::aidl::LatencyMode;
38 using ::bluetooth::audio::le_audio::StartRequestState;
[all …]
Dbluetooth_audio_port_impl.h23 namespace audio {
26 using ::aidl::android::hardware::audio::common::SinkMetadata;
27 using ::aidl::android::hardware::audio::common::SourceMetadata;
28 using ::aidl::android::hardware::bluetooth::audio::BnBluetoothAudioPort;
29 using ::aidl::android::hardware::bluetooth::audio::CodecType;
30 using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider;
31 using ::aidl::android::hardware::bluetooth::audio::LatencyMode;
32 using ::aidl::android::hardware::bluetooth::audio::PresentationPosition;
Da2dp_encoding_aidl.cc43 namespace audio { namespace
49 using ::aidl::android::hardware::bluetooth::audio::A2dpStreamConfiguration;
50 using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
51 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
52 using ::aidl::android::hardware::bluetooth::audio::CodecConfiguration;
53 using ::aidl::android::hardware::bluetooth::audio::PcmConfiguration;
54 using ::aidl::android::hardware::bluetooth::audio::SessionType;
56 using ::bluetooth::audio::aidl::BluetoothAudioCtrlAck;
57 using ::bluetooth::audio::aidl::BluetoothAudioSinkClientInterface;
58 using ::bluetooth::audio::aidl::codec::A2dpAacToHalConfig;
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_client_interface_fuzzer.cpp30 using ::android::hardware::bluetooth::audio::V2_0::AacObjectType;
31 using ::android::hardware::bluetooth::audio::V2_0::AacParameters;
32 using ::android::hardware::bluetooth::audio::V2_0::AacVariableBitRate;
33 using ::android::hardware::bluetooth::audio::V2_0::AptxParameters;
34 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
35 using ::android::hardware::bluetooth::audio::V2_0::LdacChannelMode;
36 using ::android::hardware::bluetooth::audio::V2_0::LdacParameters;
37 using ::android::hardware::bluetooth::audio::V2_0::LdacQualityIndex;
38 using ::android::hardware::bluetooth::audio::V2_0::SbcAllocMethod;
39 using ::android::hardware::bluetooth::audio::V2_0::SbcBlockLength;
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DHalAudioDeviceInfoBuilder.java17 package com.android.car.audio;
19 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_BUS;
20 import static android.media.audio.common.AudioDeviceType.OUT_DEVICE;
21 import static android.media.audio.common.AudioGainMode.JOINT;
23 import static com.android.car.audio.GainBuilder.DEFAULT_GAIN;
24 import static com.android.car.audio.GainBuilder.MAX_GAIN;
25 import static com.android.car.audio.GainBuilder.MIN_GAIN;
26 import static com.android.car.audio.GainBuilder.STEP_SIZE;
29 import android.media.audio.common.AudioDevice;
30 import android.media.audio.common.AudioDeviceAddress;
[all …]
DCoreAudioHelperTest.java17 package com.android.car.audio;
19 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_CONTEXT_NAME;
20 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_GROUP_ID;
21 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_GROUP_NAME;
22 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_STRATEGY;
23 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_STRATEGY_ID;
24 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
25 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_CONTEXT_NAME;
26 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP;
27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_ID;
[all …]
DCoreAudioVolumeGroupTest.java17 package com.android.car.audio;
25 import static com.android.car.audio.CoreAudioRoutingUtils.MEDIA_CONTEXT_INFO;
26 import static com.android.car.audio.CoreAudioRoutingUtils.MOVIE_ATTRIBUTES;
27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_AM_INIT_INDEX;
28 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
29 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_CAR_GROUP_ID;
30 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_DEVICE_ADDRESS;
31 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_ID;
32 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_NAME;
33 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_MAX_INDEX;
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Dhal_verifier.cc21 return bluetooth::audio::HalVersionManager::GetHalTransport() == in SupportsLeAudio()
22 bluetooth::audio::BluetoothAudioHalTransport::AIDL || in SupportsLeAudio()
23 bluetooth::audio::HalVersionManager::GetHalVersion() >= in SupportsLeAudio()
24 bluetooth::audio::BluetoothAudioHalVersion::VERSION_2_1; in SupportsLeAudio()
28 return bluetooth::audio::HalVersionManager::GetHalTransport() == in SupportsLeAudioHardwareOffload()
29 bluetooth::audio::BluetoothAudioHalTransport::AIDL; in SupportsLeAudioHardwareOffload()
33 return bluetooth::audio::HalVersionManager::GetHalTransport() == in SupportsLeAudioBroadcast()
34 bluetooth::audio::BluetoothAudioHalTransport::AIDL; in SupportsLeAudioBroadcast()
38 return bluetooth::audio::HalVersionManager::GetHalVersion() >= in SupportsStreamActiveApi()
39 bluetooth::audio::BluetoothAudioHalVersion::VERSION_AIDL_V3; in SupportsStreamActiveApi()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl_unittest.cc29 using ::android::hardware::bluetooth::audio::V2_0::AacObjectType;
30 using ::android::hardware::bluetooth::audio::V2_0::AacParameters;
31 using ::android::hardware::bluetooth::audio::V2_0::AacVariableBitRate;
32 using ::android::hardware::bluetooth::audio::V2_0::AptxParameters;
33 using ::android::hardware::bluetooth::audio::V2_0::CodecCapabilities;
34 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
35 using ::android::hardware::bluetooth::audio::V2_0::LdacChannelMode;
36 using ::android::hardware::bluetooth::audio::V2_0::LdacParameters;
37 using ::android::hardware::bluetooth::audio::V2_0::LdacQualityIndex;
38 using ::android::hardware::bluetooth::audio::V2_0::SbcAllocMethod;
[all …]
Dhearing_aid_software_encoding_hidl.cc38 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
39 using ::bluetooth::audio::hidl::AudioConfiguration;
40 using ::bluetooth::audio::hidl::BitsPerSample;
41 using ::bluetooth::audio::hidl::BluetoothAudioCtrlAck;
42 using ::bluetooth::audio::hidl::ChannelMode;
43 using ::bluetooth::audio::hidl::PcmParameters;
44 using ::bluetooth::audio::hidl::SampleRate;
45 using ::bluetooth::audio::hidl::SessionType;
46 using ::bluetooth::audio::hidl::SessionType_2_1;
47 using ::bluetooth::audio::hidl::hearing_aid::StreamCallbacks;
[all …]
Dclient_interface_hidl.h35 namespace audio {
39 ::android::hardware::bluetooth::audio::V2_0::AudioCapabilities;
41 ::android::hardware::bluetooth::audio::V2_1::AudioCapabilities;
43 ::android::hardware::bluetooth::audio::V2_0::AudioConfiguration;
45 ::android::hardware::bluetooth::audio::V2_1::AudioConfiguration;
46 using ::android::hardware::bluetooth::audio::V2_0::BitsPerSample;
47 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
49 ::android::hardware::bluetooth::audio::V2_0::IBluetoothAudioProvider;
51 ::android::hardware::bluetooth::audio::V2_1::IBluetoothAudioProvider;
53 ::android::hardware::bluetooth::audio::V2_0::PcmParameters;
[all …]
Da2dp_encoding_hidl.cc46 using ::bluetooth::audio::hidl::AudioCapabilities;
47 using ::bluetooth::audio::hidl::AudioConfiguration;
48 using ::bluetooth::audio::hidl::BitsPerSample;
49 using ::bluetooth::audio::hidl::BluetoothAudioCtrlAck;
50 using ::bluetooth::audio::hidl::ChannelMode;
51 using ::bluetooth::audio::hidl::PcmParameters;
52 using ::bluetooth::audio::hidl::SampleRate;
53 using ::bluetooth::audio::hidl::SessionType;
55 using ::bluetooth::audio::hidl::BluetoothAudioSinkClientInterface;
56 using ::bluetooth::audio::hidl::codec::A2dpAacToHalConfig;
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp.cc85 if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_started()
86 bluetooth::audio::a2dp::ack_stream_started(status); in btif_a2dp_on_started()
104 } else if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_started()
110 bluetooth::audio::a2dp::ack_stream_started(A2DP_CTRL_ACK_SUCCESS); in btif_a2dp_on_started()
123 if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_started()
124 bluetooth::audio::a2dp::ack_stream_started(A2DP_CTRL_ACK_FAILURE); in btif_a2dp_on_started()
143 if (bluetooth::audio::a2dp::is_hal_enabled() || in btif_a2dp_on_stopped()
149 if (bluetooth::audio::a2dp::is_hal_enabled() || in btif_a2dp_on_stopped()
166 if (bluetooth::audio::a2dp::is_hal_enabled() || in btif_a2dp_on_suspended()
172 if (bluetooth::audio::a2dp::is_hal_enabled() || in btif_a2dp_on_suspended()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java148 CellBroadcastAlertAudio audio = getService(); in setUpTtsInstance() local
149 audio.mTts = mock(TextToSpeech.class); in setUpTtsInstance()
353 CellBroadcastAlertAudio audio = (CellBroadcastAlertAudio) getService(); in testStartServiceWithTts() local
354 audio.stop(); in testStartServiceWithTts()
359 fieldTtsEngineReady.set(audio, true); in testStartServiceWithTts()
364 fieldTtsLanguageSupported.set(audio, true); in testStartServiceWithTts()
368 Handler handler = (Handler) fieldHandler.get(audio); in testStartServiceWithTts()
378 if (fieldSpeaking.getBoolean(audio)) { in testStartServiceWithTts()
384 verify(audio.mTts, times(2)).speak(any(), queueMode.capture(), any(), any()); in testStartServiceWithTts()
417 CellBroadcastAlertAudio audio = (CellBroadcastAlertAudio) getService(); in testSetTtsLanguage() local
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/
Dle_audio_software_unittest.cc36 using bluetooth::audio::le_audio::LeAudioClientInterface;
37 using bluetooth::audio::le_audio::StreamCallbacks;
53 MOCK_METHOD((bluetooth::audio::BluetoothAudioHalVersion), GetHalVersion, ());
54 MOCK_METHOD((bluetooth::audio::BluetoothAudioHalTransport), GetHalTransport,
57 (android::sp<bluetooth::audio::IBluetoothAudioProvidersFactory_2_1>),
60 (android::sp<bluetooth::audio::IBluetoothAudioProvidersFactory_2_0>),
89 (const bluetooth::audio::hidl::
93 (const bluetooth::audio::hidl::BluetoothAudioCtrlAck& /*ack*/));
96 (const bluetooth::audio::hidl::BluetoothAudioCtrlAck& /*ack*/));
119 (std::vector<bluetooth::audio::aidl::LatencyMode> /*latency_modes*/));
[all …]
DAndroid.bp12 name: "libbt-audio-hal-interface",
25 "android.hardware.bluetooth.audio@2.0",
26 "android.hardware.bluetooth.audio@2.1",
90 name: "bluetooth-test-audio-hal-interface",
115 "android.hardware.audio.common@5.0",
116 "android.hardware.bluetooth.audio@2.0",
117 "android.hardware.bluetooth.audio@2.1",
121 "libbt-audio-hal-interface",
131 name: "bluetooth-test-audio-hal-a2dp-provider-info",
179 "android.hardware.bluetooth.audio@2.0",
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DCarAudioHalTestUtils.java16 package com.android.car.audio.hal;
21 import android.media.audio.common.AudioDevice;
22 import android.media.audio.common.AudioDeviceAddress;
23 import android.media.audio.common.AudioDeviceDescription;
24 import android.media.audio.common.AudioGain;
25 import android.media.audio.common.AudioPort;
26 import android.media.audio.common.AudioPortDeviceExt;
27 import android.media.audio.common.AudioPortExt;
/packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/
Daudio_hal_client.h34 bluetooth::audio::le_audio::kChannelNumberMono;
36 bluetooth::audio::le_audio::kChannelNumberStereo;
39 bluetooth::audio::le_audio::kSampleRate48000;
41 bluetooth::audio::le_audio::kSampleRate44100;
43 bluetooth::audio::le_audio::kSampleRate32000;
45 bluetooth::audio::le_audio::kSampleRate24000;
47 bluetooth::audio::le_audio::kSampleRate16000;
49 bluetooth::audio::le_audio::kSampleRate8000;
52 bluetooth::audio::le_audio::kBitsPerSample16;
54 bluetooth::audio::le_audio::kBitsPerSample24;
[all …]
/packages/modules/Bluetooth/system/audio_bluetooth_hw/
Ddevice_port_proxy_hidl.cc33 namespace audio { namespace
37 using ::android::bluetooth::audio::BluetoothAudioSessionControl_2_1;
38 using ::android::hardware::bluetooth::audio::V2_0::BitsPerSample;
39 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
40 using ::android::hardware::bluetooth::audio::V2_0::PcmParameters;
41 using SampleRate = ::android::hardware::bluetooth::audio::V2_0::SampleRate;
42 using SampleRate_2_1 = ::android::hardware::bluetooth::audio::V2_1::SampleRate;
44 ::android::hardware::bluetooth::audio::V2_0::Status;
119 cookie_(android::bluetooth::audio::kObserversCookieUndefined), in BluetoothAudioPortHidl()
161 ::android::bluetooth::audio::PortStatusCallbacks cbacks = { in SetUp()
[all …]

12345678910>>...18