Home
last modified time | relevance | path

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

12345678910>>...15

/packages/modules/Bluetooth/system/stack/test/btm/
Dsco_hci_test.cc96 bluetooth::audio::sco::open(); in SetUp()
98 void TearDown() override { bluetooth::audio::sco::cleanup(); } in TearDown()
108 bluetooth::audio::sco::wbs::init(60); in SetUp()
110 void TearDown() override { bluetooth::audio::sco::wbs::cleanup(); } in TearDown()
114 bluetooth::audio::sco::open(); in TEST_F()
117 bluetooth::audio::sco::cleanup(); in TEST_F()
130 bluetooth::audio::sco::open(); in TEST_F()
135 bluetooth::audio::sco::cleanup(); in TEST_F()
139 bluetooth::audio::sco::cleanup(); in TEST_F()
145 ASSERT_EQ(bluetooth::audio::sco::read(buf, sizeof(buf)), size_t(0)); 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 …]
Dlibbt_audio_hal_a2dp_encoding_fuzzer.cpp25 using ::bluetooth::audio::a2dp::update_codec_offloading_capabilities;
94 bluetooth::audio::a2dp::set_remote_delay(delayReport); in process()
96 (void)bluetooth::audio::a2dp::init(&messageLoopThread); in process()
97 (void)bluetooth::audio::a2dp::setup_codec(); in process()
98 bluetooth::audio::a2dp::start_session(); in process()
101 bluetooth::audio::a2dp::ack_stream_started(status); in process()
107 bluetooth::audio::a2dp::ack_stream_suspended(status); in process()
108 bluetooth::audio::a2dp::cleanup(); in process()
/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;
28 import android.media.audio.common.AudioDevice;
29 import android.media.audio.common.AudioDeviceAddress;
[all …]
DCoreAudioHelperTest.java17 package com.android.car.audio;
19 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_GROUP_ID;
20 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_GROUP_NAME;
21 import static com.android.car.audio.CoreAudioRoutingUtils.INVALID_STRATEGY_ID;
22 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_ATTRIBUTES;
23 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP;
24 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_ID;
25 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_GROUP_NAME;
26 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_STRATEGY;
27 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_STRATEGY_ID;
[all …]
DCoreAudioVolumeGroupTest.java17 package com.android.car.audio;
26 import static com.android.car.audio.CoreAudioRoutingUtils.MEDIA_CONTEXT_INFO;
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;
34 import static com.android.car.audio.CoreAudioRoutingUtils.MUSIC_MIN_INDEX;
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl_unittest.cc27 using ::android::hardware::bluetooth::audio::V2_0::AacObjectType;
28 using ::android::hardware::bluetooth::audio::V2_0::AacParameters;
29 using ::android::hardware::bluetooth::audio::V2_0::AacVariableBitRate;
30 using ::android::hardware::bluetooth::audio::V2_0::AptxParameters;
31 using ::android::hardware::bluetooth::audio::V2_0::CodecCapabilities;
32 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
33 using ::android::hardware::bluetooth::audio::V2_0::LdacChannelMode;
34 using ::android::hardware::bluetooth::audio::V2_0::LdacParameters;
35 using ::android::hardware::bluetooth::audio::V2_0::LdacQualityIndex;
36 using ::android::hardware::bluetooth::audio::V2_0::SbcAllocMethod;
[all …]
Dhearing_aid_software_encoding_hidl.cc28 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
29 using ::bluetooth::audio::hidl::AudioConfiguration;
30 using ::bluetooth::audio::hidl::BitsPerSample;
31 using ::bluetooth::audio::hidl::BluetoothAudioCtrlAck;
32 using ::bluetooth::audio::hidl::ChannelMode;
33 using ::bluetooth::audio::hidl::PcmParameters;
34 using ::bluetooth::audio::hidl::SampleRate;
35 using ::bluetooth::audio::hidl::SessionType;
36 using ::bluetooth::audio::hidl::SessionType_2_1;
37 using ::bluetooth::audio::hidl::hearing_aid::StreamCallbacks;
[all …]
Da2dp_encoding_hidl.cc33 using ::bluetooth::audio::hidl::AudioCapabilities;
34 using ::bluetooth::audio::hidl::AudioConfiguration;
35 using ::bluetooth::audio::hidl::BitsPerSample;
36 using ::bluetooth::audio::hidl::BluetoothAudioCtrlAck;
37 using ::bluetooth::audio::hidl::ChannelMode;
38 using ::bluetooth::audio::hidl::PcmParameters;
39 using ::bluetooth::audio::hidl::SampleRate;
40 using ::bluetooth::audio::hidl::SessionType;
42 using ::bluetooth::audio::hidl::BluetoothAudioSinkClientInterface;
43 using ::bluetooth::audio::hidl::codec::A2dpAacToHalConfig;
[all …]
Dclient_interface_hidl.h34 namespace audio {
38 ::android::hardware::bluetooth::audio::V2_0::AudioCapabilities;
40 ::android::hardware::bluetooth::audio::V2_1::AudioCapabilities;
42 ::android::hardware::bluetooth::audio::V2_0::AudioConfiguration;
44 ::android::hardware::bluetooth::audio::V2_1::AudioConfiguration;
45 using ::android::hardware::bluetooth::audio::V2_0::BitsPerSample;
46 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
48 ::android::hardware::bluetooth::audio::V2_0::IBluetoothAudioProvider;
50 ::android::hardware::bluetooth::audio::V2_1::IBluetoothAudioProvider;
52 ::android::hardware::bluetooth::audio::V2_0::PcmParameters;
[all …]
Dcodec_status_hidl.cc31 using ::android::hardware::bluetooth::audio::V2_0::AacObjectType;
32 using ::android::hardware::bluetooth::audio::V2_0::AacParameters;
33 using ::android::hardware::bluetooth::audio::V2_0::AacVariableBitRate;
34 using ::android::hardware::bluetooth::audio::V2_0::AptxParameters;
35 using ::android::hardware::bluetooth::audio::V2_0::AudioCapabilities;
36 using ::android::hardware::bluetooth::audio::V2_0::BitsPerSample;
37 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
38 using ::android::hardware::bluetooth::audio::V2_0::CodecType;
39 using ::android::hardware::bluetooth::audio::V2_0::LdacChannelMode;
40 using ::android::hardware::bluetooth::audio::V2_0::LdacParameters;
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dhearing_aid_software_encoding_aidl.cc28 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
29 using ::aidl::android::hardware::bluetooth::audio::CodecType;
30 using ::bluetooth::audio::aidl::AudioConfiguration;
31 using ::bluetooth::audio::aidl::BluetoothAudioCtrlAck;
32 using ::bluetooth::audio::aidl::PcmConfiguration;
33 using ::bluetooth::audio::aidl::SessionType;
34 using ::bluetooth::audio::aidl::hearing_aid::StreamCallbacks;
38 : public bluetooth::audio::aidl::IBluetoothSinkTransportInstance {
61 ::bluetooth::audio::aidl::hearing_aid::read(p_buf, sizeof(p_buf)); in SuspendRequest()
73 ::bluetooth::audio::aidl::hearing_aid::read(p_buf, sizeof(p_buf)); in StopRequest()
[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::le_audio::StartRequestState;
55 using ::bluetooth::audio::le_audio::StreamCallbacks;
[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.cc27 namespace audio { namespace
33 using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
34 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
35 using ::aidl::android::hardware::bluetooth::audio::CodecConfiguration;
36 using ::aidl::android::hardware::bluetooth::audio::PcmConfiguration;
37 using ::aidl::android::hardware::bluetooth::audio::SessionType;
39 using ::bluetooth::audio::aidl::BluetoothAudioCtrlAck;
40 using ::bluetooth::audio::aidl::BluetoothAudioSinkClientInterface;
41 using ::bluetooth::audio::aidl::codec::A2dpAacToHalConfig;
42 using ::bluetooth::audio::aidl::codec::A2dpAptxToHalConfig;
[all …]
Dclient_interface_aidl.h36 namespace audio {
39 using ::aidl::android::hardware::bluetooth::audio::AudioCapabilities;
40 using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
41 using ::aidl::android::hardware::bluetooth::audio::BluetoothAudioStatus;
42 using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioPort;
43 using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider;
44 using ::aidl::android::hardware::bluetooth::audio::
46 using ::aidl::android::hardware::bluetooth::audio::LatencyMode;
47 using ::aidl::android::hardware::bluetooth::audio::PcmConfiguration;
Dcodec_status_aidl.cc32 namespace audio { namespace
36 using ::aidl::android::hardware::bluetooth::audio::AacCapabilities;
37 using ::aidl::android::hardware::bluetooth::audio::AacConfiguration;
38 using ::aidl::android::hardware::bluetooth::audio::AacObjectType;
39 using ::aidl::android::hardware::bluetooth::audio::AptxCapabilities;
40 using ::aidl::android::hardware::bluetooth::audio::AptxConfiguration;
41 using ::aidl::android::hardware::bluetooth::audio::AudioCapabilities;
42 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
43 using ::aidl::android::hardware::bluetooth::audio::CodecCapabilities;
44 using ::aidl::android::hardware::bluetooth::audio::CodecType;
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp.cc65 if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_started()
66 bluetooth::audio::a2dp::ack_stream_started(status); in btif_a2dp_on_started()
86 } else if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_started()
92 bluetooth::audio::a2dp::ack_stream_started(A2DP_CTRL_ACK_SUCCESS); in btif_a2dp_on_started()
105 if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_started()
106 bluetooth::audio::a2dp::ack_stream_started(A2DP_CTRL_ACK_FAILURE); in btif_a2dp_on_started()
122 if (bluetooth::audio::a2dp::is_hal_enabled() || in btif_a2dp_on_stopped()
135 if (bluetooth::audio::a2dp::is_hal_enabled() || in btif_a2dp_on_suspended()
172 if (bluetooth::audio::a2dp::is_hal_enabled()) { in btif_a2dp_on_offload_started()
173 bluetooth::audio::a2dp::ack_stream_started(ack); in btif_a2dp_on_offload_started()
/packages/modules/Bluetooth/system/bta/le_audio/audio_hal_client/
Daudio_hal_client.h33 bluetooth::audio::le_audio::kChannelNumberMono;
35 bluetooth::audio::le_audio::kChannelNumberStereo;
38 bluetooth::audio::le_audio::kSampleRate48000;
40 bluetooth::audio::le_audio::kSampleRate44100;
42 bluetooth::audio::le_audio::kSampleRate32000;
44 bluetooth::audio::le_audio::kSampleRate24000;
46 bluetooth::audio::le_audio::kSampleRate16000;
48 bluetooth::audio::le_audio::kSampleRate8000;
51 bluetooth::audio::le_audio::kBitsPerSample16;
53 bluetooth::audio::le_audio::kBitsPerSample24;
[all …]
Daudio_hal_client_test.cc83 using bluetooth::audio::le_audio::LeAudioClientInterface;
125 (bluetooth::audio::le_audio::StreamCallbacks stream_cb,
129 (bluetooth::audio::le_audio::StreamCallbacks stream_cb,
136 namespace audio { namespace
234 bluetooth::audio::le_audio::interface_mock = &mock_client_interface_; in SetUp()
235 bluetooth::audio::le_audio::sink_mock = &mock_hal_interface_audio_sink_; in SetUp()
236 bluetooth::audio::le_audio::source_mock = &mock_hal_interface_audio_source_; in SetUp()
245 Return(bluetooth::audio::le_audio::sink_mock))); in SetUp()
257 Return(bluetooth::audio::le_audio::source_mock))); in SetUp()
292 bluetooth::audio::le_audio::sink_mock = nullptr; in TearDown()
[all …]
/packages/modules/Bluetooth/system/audio_bluetooth_hw/
Ddevice_port_proxy_hidl.cc34 namespace audio { namespace
38 using ::android::bluetooth::audio::BluetoothAudioSessionControl_2_1;
39 using ::android::hardware::bluetooth::audio::V2_0::BitsPerSample;
40 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
41 using ::android::hardware::bluetooth::audio::V2_0::PcmParameters;
42 using SampleRate = ::android::hardware::bluetooth::audio::V2_0::SampleRate;
43 using SampleRate_2_1 = ::android::hardware::bluetooth::audio::V2_1::SampleRate;
45 ::android::hardware::bluetooth::audio::V2_0::Status;
120 cookie_(android::bluetooth::audio::kObserversCookieUndefined), in BluetoothAudioPortHidl()
162 ::android::bluetooth::audio::PortStatusCallbacks cbacks = { in SetUp()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java769 final File audio = new File(music, "audio.mp3"); in testScan_audio_empty_title() local
772 stage(R.raw.test_audio_empty_title, audio); in testScan_audio_empty_title()
774 mModern.scanFile(audio, REASON_UNKNOWN); in testScan_audio_empty_title()
788 final File audio = new File(music, "audio.mp3"); in testScan_audio_recording() local
791 stage(R.raw.test_audio, audio); in testScan_audio_recording()
793 mModern.scanFile(audio, REASON_UNKNOWN); in testScan_audio_recording()
931 final File audio = new File(mDir, expiredName); in testScan_deleteStaleRowWithExpiredPendingFile() local
932 stage(R.raw.test_audio, audio); in testScan_deleteStaleRowWithExpiredPendingFile()
935 assertThat(audio.exists()).isTrue(); in testScan_deleteStaleRowWithExpiredPendingFile()
938 mModern.scanFile(audio, REASON_UNKNOWN); in testScan_deleteStaleRowWithExpiredPendingFile()
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/
DAndroid.bp12 name: "libbt-audio-hal-interface",
24 "android.hardware.bluetooth.audio@2.0",
25 "android.hardware.bluetooth.audio@2.1",
35 "android.hardware.bluetooth.audio-V3-ndk",
78 name: "bluetooth-test-audio-hal-interface",
89 "android.hardware.bluetooth.audio-V3-ndk",
90 "android.hardware.bluetooth.audio@2.0",
91 "android.hardware.bluetooth.audio@2.1",
100 "libbt-audio-hal-interface",
/packages/modules/Bluetooth/system/bta/le_audio/
Dhal_verifier.cc21 return bluetooth::audio::HalVersionManager::GetHalVersion() >= in SupportsLeAudio()
22 bluetooth::audio::BluetoothAudioHalVersion::VERSION_2_1; in SupportsLeAudio()
26 return bluetooth::audio::HalVersionManager::GetHalTransport() == in SupportsLeAudioHardwareOffload()
27 bluetooth::audio::BluetoothAudioHalTransport::AIDL; in SupportsLeAudioHardwareOffload()
31 return bluetooth::audio::HalVersionManager::GetHalTransport() == in SupportsLeAudioBroadcast()
32 bluetooth::audio::BluetoothAudioHalTransport::AIDL; in SupportsLeAudioBroadcast()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DAudioFragment.java101 Audio audio = mAudios.get(position - 1); in onBindViewHolder() local
102 mMediaDb.loadData(audio); // TODO Where should we call this? In bind()? in onBindViewHolder()
103 ((AudioViewHolder) holder).bind(audio); in onBindViewHolder()
119 return position == 0 ? R.layout.header : R.layout.audio; in getItemViewType()
143 private void bind(@NonNull Audio audio) { in bind() argument
148 Album album = audio.getAlbum(); in bind()
150 titleView.setText(audio.getTitle()); in bind()
151 Artist artist = audio.getArtist(); in bind()
155 AudioPlayerActivity.start(view.getContext(), audio)); in bind() local

12345678910>>...15