/packages/modules/Bluetooth/system/stack/test/btm/ |
D | sco_hci_test.cc | 96 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/ |
D | libbt_audio_hal_client_interface_fuzzer.cpp | 30 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 …]
|
D | libbt_audio_hal_a2dp_encoding_fuzzer.cpp | 25 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/ |
D | HalAudioDeviceInfoBuilder.java | 17 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 …]
|
D | CoreAudioHelperTest.java | 17 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 …]
|
D | CoreAudioVolumeGroupTest.java | 17 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/ |
D | client_interface_hidl_unittest.cc | 27 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 …]
|
D | hearing_aid_software_encoding_hidl.cc | 28 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 …]
|
D | a2dp_encoding_hidl.cc | 33 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 …]
|
D | client_interface_hidl.h | 34 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 …]
|
D | codec_status_hidl.cc | 31 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/ |
D | hearing_aid_software_encoding_aidl.cc | 28 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 …]
|
D | le_audio_software_aidl.h | 25 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 …]
|
D | bluetooth_audio_port_impl.h | 23 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;
|
D | a2dp_encoding_aidl.cc | 27 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 …]
|
D | client_interface_aidl.h | 36 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;
|
D | codec_status_aidl.cc | 32 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/ |
D | btif_a2dp.cc | 65 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/ |
D | audio_hal_client.h | 33 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 …]
|
D | audio_hal_client_test.cc | 83 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/ |
D | device_port_proxy_hidl.cc | 34 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/ |
D | ModernMediaScannerTest.java | 769 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/ |
D | Android.bp | 12 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/ |
D | hal_verifier.cc | 21 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/ |
D | AudioFragment.java | 101 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
|