Home
last modified time | relevance | path

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

12345678910>>...20

/packages/modules/Bluetooth/system/stack/test/btm/
Dsco_hci_test.cc130 bluetooth::audio::sco::open(); in SetUp()
132 void TearDown() override { bluetooth::audio::sco::cleanup(); } in TearDown()
143 bluetooth::audio::sco::wbs::init(60); in SetUp()
145 void TearDown() override { bluetooth::audio::sco::wbs::cleanup(); } in TearDown()
153 bluetooth::audio::sco::swb::init(60); in SetUp()
155 void TearDown() override { bluetooth::audio::sco::swb::cleanup(); } in TearDown()
159 ASSERT_EQ(bluetooth::audio::sco::wbs::init(60), size_t(60)); in TEST_F()
160 ASSERT_EQ(bluetooth::audio::sco::wbs::init(72), size_t(72)); in TEST_F()
162 ASSERT_EQ(bluetooth::audio::sco::wbs::init(48), size_t(60)); in TEST_F()
163 bluetooth::audio::sco::wbs::cleanup(); in TEST_F()
[all …]
Dsco_hci_linux_test.cc51 bluetooth::audio::sco::open(); in SetUp()
53 void TearDown() override { bluetooth::audio::sco::cleanup(); } in TearDown()
57 bluetooth::audio::sco::open(); in TEST_F()
60 bluetooth::audio::sco::cleanup(); in TEST_F()
73 bluetooth::audio::sco::open(); in TEST_F()
78 bluetooth::audio::sco::cleanup(); in TEST_F()
82 bluetooth::audio::sco::cleanup(); in TEST_F()
88 ASSERT_EQ(bluetooth::audio::sco::read(buf, sizeof(buf)), size_t(0)); in TEST_F()
100 ASSERT_EQ(bluetooth::audio::sco::read(buf, sizeof(buf)), mock_uipc_read_ret); in TEST_F()
106 bluetooth::audio::sco::write(buf, sizeof(buf)); in TEST_F()
[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/modules/Bluetooth/system/audio_hal_interface/aidl/
Dle_audio_utils_unittest.cc34 using ::bluetooth::audio::aidl::GetAidlCodecIdFromStackFormat;
35 using ::bluetooth::audio::aidl::GetAidlLeAudioBroadcastConfigurationRequirementFromStackFormat;
36 using ::bluetooth::audio::aidl::GetAidlLeAudioDeviceCapabilitiesFromStackFormat;
37 using ::bluetooth::audio::aidl::GetAidlLeAudioUnicastConfigurationRequirementsFromStackFormat;
38 using ::bluetooth::audio::aidl::GetAidlMetadataFromStackFormat;
39 using ::bluetooth::audio::aidl::GetStackBisConfigFromAidlFormat;
40 using ::bluetooth::audio::aidl::GetStackBroadcastConfigurationFromAidlFormat;
41 using ::bluetooth::audio::aidl::GetStackCodecIdFromAidlFormat;
42 using ::bluetooth::audio::aidl::GetStackLeAudioLtvMapFromAidlFormat;
43 using ::bluetooth::audio::aidl::GetStackSubgroupsFromAidlFormat;
[all …]
Dle_audio_utils.cc31 namespace audio { namespace
34 using ::aidl::android::hardware::bluetooth::audio::CodecInfo;
35 using ::aidl::android::hardware::bluetooth::audio::ConfigurationFlags;
36 using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProviderFactory;
38 ::aidl::android::hardware::bluetooth::audio::CodecId GetAidlCodecIdFromStackFormat( in GetAidlCodecIdFromStackFormat()
40 ::aidl::android::hardware::bluetooth::audio::CodecId codec; in GetAidlCodecIdFromStackFormat()
43 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::LC3; in GetAidlCodecIdFromStackFormat()
45 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::CVSD; in GetAidlCodecIdFromStackFormat()
47 codec = ::aidl::android::hardware::bluetooth::audio::CodecId::Core::MSBC; in GetAidlCodecIdFromStackFormat()
49 auto vc = ::aidl::android::hardware::bluetooth::audio::CodecId::Vendor(); in GetAidlCodecIdFromStackFormat()
[all …]
Dle_audio_utils.h29 namespace audio {
32 ::aidl::android::hardware::bluetooth::audio::CodecId GetAidlCodecIdFromStackFormat(
36 const ::aidl::android::hardware::bluetooth::audio::CodecId& codec_id);
38 std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::audio::MetadataLtv>>>
42 const std::vector<std::optional<::aidl::android::hardware::bluetooth::audio::MetadataLtv>>&
46 std::vector<std::optional<::aidl::android::hardware::bluetooth::audio::
51 ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider::
57 ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider::
69 ::aidl::android::hardware::bluetooth::audio::LeAudioAseConfiguration
77 ::aidl::android::hardware::bluetooth::audio::CodecSpecificConfigurationLtv>&
[all …]
Dclient_interface_aidl.h34 namespace audio {
37 using ::aidl::android::hardware::bluetooth::audio::AudioCapabilities;
38 using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
39 using ::aidl::android::hardware::bluetooth::audio::CodecId;
40 using ::aidl::android::hardware::bluetooth::audio::CodecInfo;
41 using ::aidl::android::hardware::bluetooth::audio::CodecParameters;
42 using ::aidl::android::hardware::bluetooth::audio::CodecSpecificCapabilitiesLtv;
43 using ::aidl::android::hardware::bluetooth::audio::CodecSpecificConfigurationLtv;
44 using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioPort;
45 using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider;
[all …]
Dhearing_aid_software_encoding_aidl.cc37 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
38 using ::aidl::android::hardware::bluetooth::audio::CodecType;
39 using ::bluetooth::audio::aidl::AudioConfiguration;
40 using ::bluetooth::audio::aidl::BluetoothAudioCtrlAck;
41 using ::bluetooth::audio::aidl::LatencyMode;
42 using ::bluetooth::audio::aidl::PcmConfiguration;
43 using ::bluetooth::audio::aidl::SessionType;
44 using ::bluetooth::audio::aidl::hearing_aid::StreamCallbacks;
48 class HearingAidTransport : public bluetooth::audio::aidl::IBluetoothSinkTransportInstance {
70 ::bluetooth::audio::aidl::hearing_aid::read(p_buf, sizeof(p_buf)); in SuspendRequest()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCoreAudioRoutingUtils.java17 package com.android.car.audio;
20 import static android.media.audio.common.AudioUsage.ALARM;
21 import static android.media.audio.common.AudioUsage.ANNOUNCEMENT;
22 import static android.media.audio.common.AudioUsage.ASSISTANCE_ACCESSIBILITY;
23 import static android.media.audio.common.AudioUsage.ASSISTANCE_SONIFICATION;
24 import static android.media.audio.common.AudioUsage.ASSISTANT;
25 import static android.media.audio.common.AudioUsage.CALL_ASSISTANT;
26 import static android.media.audio.common.AudioUsage.EMERGENCY;
27 import static android.media.audio.common.AudioUsage.GAME;
28 import static android.media.audio.common.AudioUsage.MEDIA;
[all …]
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 …]
DConvertToAudioDeviceInfoTypeTest.java17 package com.android.car.audio;
39 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_ANALOG;
40 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_BT_A2DP;
41 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_BT_LE;
42 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_BT_SCO;
43 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_HDMI;
44 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_HDMI_ARC;
45 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_HDMI_EARC;
46 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_IP_V4;
47 import static android.media.audio.common.AudioDeviceDescription.CONNECTION_SPDIF;
[all …]
DCarAudioUtilsTest.java17 package com.android.car.audio;
39 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.ALARM_TEST_DEVICE;
40 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.CALL_TEST_DEVICE;
41 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.MEDIA_TEST_DEVICE;
42 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.MIRROR_TEST_DEVICE;
43 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.NAVIGATION_TEST_DEVICE;
44 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.NOTIFICATION_TEST_DEVICE;
45 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.OEM_TEST_DEVICE;
46 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.PRIMARY_ZONE_FM_TUNER_DEVICE;
47 import static com.android.car.audio.CarAudioDeviceInfoTestUtils.PRIMARY_ZONE_MICROPHONE_DEVICE;
[all …]
DCarAudioTestUtils.java16 package com.android.car.audio;
36 import static android.media.audio.common.AudioUsage.ALARM;
37 import static android.media.audio.common.AudioUsage.ANNOUNCEMENT;
38 import static android.media.audio.common.AudioUsage.ASSISTANCE_ACCESSIBILITY;
39 import static android.media.audio.common.AudioUsage.ASSISTANCE_NAVIGATION_GUIDANCE;
40 import static android.media.audio.common.AudioUsage.ASSISTANCE_SONIFICATION;
41 import static android.media.audio.common.AudioUsage.ASSISTANT;
42 import static android.media.audio.common.AudioUsage.CALL_ASSISTANT;
43 import static android.media.audio.common.AudioUsage.EMERGENCY;
44 import static android.media.audio.common.AudioUsage.GAME;
[all …]
DAudioControlZoneConverterUtilsUnitTest.java17 package com.android.car.audio;
22 import static android.media.audio.common.AudioUsage.EMERGENCY;
23 import static android.media.audio.common.AudioUsage.MEDIA;
24 import static android.media.audio.common.AudioUsage.SAFETY;
25 import static android.media.audio.common.AudioUsage.VEHICLE_STATUS;
27 import static com.android.car.audio.AudioControlZoneConverterUtils.convertAudioContextEntry;
28 import static com.android.car.audio.AudioControlZoneConverterUtils.convertAudioDevicePort;
29 import static com.android.car.audio.AudioControlZoneConverterUtils.convertAudioFadeConfiguration;
30 import static com.android.car.audio.AudioControlZoneConverterUtils.convertCarAudioContext;
31 import static com.android.car.audio.AudioControlZoneConverterUtils.convertTransientFadeConfiguratio…
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/a2dp/
Dclient_interface_aidl.h37 namespace audio {
41 using ::aidl::android::hardware::bluetooth::audio::A2dpConfiguration;
42 using ::aidl::android::hardware::bluetooth::audio::A2dpConfigurationHint;
43 using ::aidl::android::hardware::bluetooth::audio::A2dpRemoteCapabilities;
44 using ::aidl::android::hardware::bluetooth::audio::A2dpStatus;
45 using ::aidl::android::hardware::bluetooth::audio::AudioCapabilities;
46 using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
47 using ::aidl::android::hardware::bluetooth::audio::BluetoothAudioStatus;
48 using ::aidl::android::hardware::bluetooth::audio::CodecId;
49 using ::aidl::android::hardware::bluetooth::audio::CodecInfo;
[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.cc30 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::CodecCapabilities;
35 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
36 using ::android::hardware::bluetooth::audio::V2_0::LdacChannelMode;
37 using ::android::hardware::bluetooth::audio::V2_0::LdacParameters;
38 using ::android::hardware::bluetooth::audio::V2_0::LdacQualityIndex;
39 using ::android::hardware::bluetooth::audio::V2_0::SbcAllocMethod;
[all …]
Da2dp_encoding_hidl.cc52 namespace audio { namespace
56 static bluetooth::audio::a2dp::StreamCallbacks null_stream_callbacks;
57 static bluetooth::audio::a2dp::StreamCallbacks const* stream_callbacks_ = &null_stream_callbacks;
61 using ::bluetooth::audio::hidl::AudioCapabilities;
62 using ::bluetooth::audio::hidl::AudioConfiguration;
63 using ::bluetooth::audio::hidl::BitsPerSample;
64 using ::bluetooth::audio::hidl::BluetoothAudioCtrlAck;
65 using ::bluetooth::audio::hidl::ChannelMode;
66 using ::bluetooth::audio::hidl::PcmParameters;
67 using ::bluetooth::audio::hidl::SampleRate;
[all …]
Dclient_interface_hidl.h32 namespace audio {
35 using AudioCapabilities = ::android::hardware::bluetooth::audio::V2_0::AudioCapabilities;
36 using AudioCapabilities_2_1 = ::android::hardware::bluetooth::audio::V2_1::AudioCapabilities;
37 using AudioConfiguration = ::android::hardware::bluetooth::audio::V2_0::AudioConfiguration;
38 using AudioConfiguration_2_1 = ::android::hardware::bluetooth::audio::V2_1::AudioConfiguration;
39 using ::android::hardware::bluetooth::audio::V2_0::BitsPerSample;
40 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
42 ::android::hardware::bluetooth::audio::V2_0::IBluetoothAudioProvider;
44 ::android::hardware::bluetooth::audio::V2_1::IBluetoothAudioProvider;
45 using PcmParameters = ::android::hardware::bluetooth::audio::V2_0::PcmParameters;
[all …]
Dhearing_aid_software_encoding_hidl.cc37 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
38 using ::bluetooth::audio::hidl::AudioConfiguration;
39 using ::bluetooth::audio::hidl::BitsPerSample;
40 using ::bluetooth::audio::hidl::BluetoothAudioCtrlAck;
41 using ::bluetooth::audio::hidl::ChannelMode;
42 using ::bluetooth::audio::hidl::PcmParameters;
43 using ::bluetooth::audio::hidl::SampleRate;
44 using ::bluetooth::audio::hidl::SessionType;
45 using ::bluetooth::audio::hidl::SessionType_2_1;
46 using ::bluetooth::audio::hidl::hearing_aid::StreamCallbacks;
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/
Dle_audio_software_unittest.cc39 using bluetooth::audio::le_audio::LeAudioClientInterface;
40 using bluetooth::audio::le_audio::StreamCallbacks;
47 MOCK_METHOD((bluetooth::audio::BluetoothAudioHalVersion), GetHalVersion, ());
48 MOCK_METHOD((bluetooth::audio::BluetoothAudioHalTransport), GetHalTransport, ());
49 MOCK_METHOD((android::sp<bluetooth::audio::IBluetoothAudioProvidersFactory_2_1>),
51 MOCK_METHOD((android::sp<bluetooth::audio::IBluetoothAudioProvidersFactory_2_0>),
76 (const bluetooth::audio::hidl::AudioConfiguration_2_1& /*audio_config_2_1*/));
79 (const bluetooth::audio::hidl::BluetoothAudioCtrlAck& /*ack*/));
82 (const bluetooth::audio::hidl::BluetoothAudioCtrlAck& /*ack*/));
100 (std::vector<bluetooth::audio::aidl::LatencyMode> /*latency_modes*/));
[all …]
/packages/providers/MediaProvider/res/raw/
Dandroid_mime_types79 ?audio/3gpp 3ga 3gpp
80 ?audio/aac-adts aac
81 ?audio/ac3 ac3 a52
82 ?audio/amr amr
83 ?audio/x-gsm gsm
84 ?audio/imelody imy
85 ?audio/midi rtttl xmf
86 ?audio/mobile-xmf mxmf
87 ?audio/mp4 m4a m4b m4p f4a f4b f4p
88 ?audio/mpegurl m3u
[all …]
/packages/providers/MediaProvider/tests/res/raw/
Dandroid_mime_types79 ?audio/3gpp 3ga 3gpp
80 ?audio/aac-adts aac
81 ?audio/ac3 ac3 a52
82 ?audio/amr amr
83 ?audio/x-gsm gsm
84 ?audio/imelody imy
85 ?audio/midi rtttl xmf
86 ?audio/mobile-xmf mxmf
87 ?audio/mp4 m4a m4b m4p f4a f4b f4p
88 ?audio/mpegurl m3u
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java149 CellBroadcastAlertAudio audio = getService(); in setUpTtsInstance() local
150 audio.mTts = mock(TextToSpeech.class); in setUpTtsInstance()
354 CellBroadcastAlertAudio audio = (CellBroadcastAlertAudio) getService(); in testStartServiceWithTts() local
355 audio.stop(); in testStartServiceWithTts()
360 fieldTtsEngineReady.set(audio, true); in testStartServiceWithTts()
365 fieldTtsLanguageSupported.set(audio, true); in testStartServiceWithTts()
369 Handler handler = (Handler) fieldHandler.get(audio); in testStartServiceWithTts()
379 if (fieldSpeaking.getBoolean(audio)) { in testStartServiceWithTts()
385 verify(audio.mTts, times(2)).speak(any(), queueMode.capture(), any(), any()); in testStartServiceWithTts()
418 CellBroadcastAlertAudio audio = (CellBroadcastAlertAudio) getService(); in testSetTtsLanguage() local
[all …]

12345678910>>...20