Home
last modified time | relevance | path

Searched refs:ChannelMode (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Bluetooth/system/audio_hal_interface/aidl/a2dp/
Da2dp_provider_info_unittest.cc35 using aidl::android::hardware::bluetooth::audio::ChannelMode;
121 std::vector<ChannelMode> channelMode, in CreateTestA2dpCodecInfo()
170 std::vector<ChannelMode>{ChannelMode::MONO, ChannelMode::STEREO, in SetUp()
171 ChannelMode::DUALMONO}, /* channelMode */ in SetUp()
181 std::vector<ChannelMode>{ChannelMode::MONO, ChannelMode::STEREO, in SetUp()
182 ChannelMode::DUALMONO}, /* channelMode */ in SetUp()
191 std::vector<ChannelMode>{ChannelMode::MONO, ChannelMode::STEREO, in SetUp()
192 ChannelMode::DUALMONO}, /* channelMode */ in SetUp()
201 std::vector<ChannelMode>{ChannelMode::MONO, ChannelMode::STEREO, in SetUp()
202 ChannelMode::DUALMONO}, /* channelMode */ in SetUp()
Dcodec_status_aidl.cc46 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
192 ChannelMode A2dpCodecToHalChannelMode(const btav_a2dp_codec_config_t& a2dp_codec_config) { in A2dpCodecToHalChannelMode()
195 return ChannelMode::MONO; in A2dpCodecToHalChannelMode()
197 return ChannelMode::STEREO; in A2dpCodecToHalChannelMode()
199 return ChannelMode::UNKNOWN; in A2dpCodecToHalChannelMode()
324 if (aac_config.channelMode == ChannelMode::UNKNOWN) { in A2dpAacToHalConfig()
369 if (aptx_config.channelMode == ChannelMode::UNKNOWN) { in A2dpAptxToHalConfig()
459 if (opus_config.channelMode == ChannelMode::UNKNOWN) { in A2dpOpusToHalConfig()
466 if (opus_config.channelMode == ChannelMode::STEREO) { in A2dpOpusToHalConfig()
Dcodec_status_aidl.h30 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
37 ChannelMode A2dpCodecToHalChannelMode(const btav_a2dp_codec_config_t& a2dp_codec_config);
Da2dp_provider_info.cc39 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
386 case ChannelMode::MONO: in CodecCapabilities()
389 case ChannelMode::STEREO: in CodecCapabilities()
392 case ChannelMode::DUALMONO: in CodecCapabilities()
393 case ChannelMode::UNKNOWN: in CodecCapabilities()
Da2dp_encoding_aidl.cc108 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
312 pcm_config->channelMode != ChannelMode::UNKNOWN; in a2dp_get_selected_hal_pcm_config()
669 static btav_a2dp_codec_channel_mode_t convert_channel_mode(ChannelMode channel_mode) { in convert_channel_mode()
671 case ChannelMode::MONO: in convert_channel_mode()
673 case ChannelMode::STEREO: in convert_channel_mode()
785 codecParameters.channelMode = ChannelMode::MONO; in get_a2dp_configuration()
788 codecParameters.channelMode = ChannelMode::STEREO; in get_a2dp_configuration()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dcodec_status_hidl.cc41 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
91 (static_cast<ChannelMode>(aac_capability.channelMode & aac_config.channelMode) == in aac_offloading_capability_match()
92 ChannelMode::UNKNOWN) || in aac_offloading_capability_match()
108 (static_cast<ChannelMode>(aptx_capability.channelMode & aptx_config.channelMode) == in aptx_offloading_capability_match()
109 ChannelMode::UNKNOWN) || in aptx_offloading_capability_match()
184 ChannelMode A2dpCodecToHalChannelMode(const btav_a2dp_codec_config_t& a2dp_codec_config) { in A2dpCodecToHalChannelMode()
187 return ChannelMode::MONO; in A2dpCodecToHalChannelMode()
189 return ChannelMode::STEREO; in A2dpCodecToHalChannelMode()
191 return ChannelMode::UNKNOWN; in A2dpCodecToHalChannelMode()
320 if (aac_config.channelMode == ChannelMode::UNKNOWN) { in A2dpAacToHalConfig()
[all …]
Dle_audio_software_hidl.cc30 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
82 static ChannelMode le_audio_channel_mode2audio_hal(uint8_t channels_count) { in le_audio_channel_mode2audio_hal()
85 return ChannelMode::MONO; in le_audio_channel_mode2audio_hal()
87 return ChannelMode::STEREO; in le_audio_channel_mode2audio_hal()
89 return ChannelMode::UNKNOWN; in le_audio_channel_mode2audio_hal()
259 {SampleRate_2_1::RATE_16000, ChannelMode::STEREO, BitsPerSample::BITS_16, 0});
330 {SampleRate_2_1::RATE_16000, ChannelMode::MONO, BitsPerSample::BITS_16, 0});
Dcodec_status_hidl.h31 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
39 ChannelMode A2dpCodecToHalChannelMode(const btav_a2dp_codec_config_t& a2dp_codec_config);
Dclient_interface_hidl_unittest.cc63 using ::bluetooth::audio::hidl::codec::ChannelMode;
115 ChannelMode hal_channel_mode_;
119 {.hal_channel_mode_ = ChannelMode::UNKNOWN,
121 {.hal_channel_mode_ = ChannelMode::MONO,
123 {.hal_channel_mode_ = ChannelMode::STEREO,
244 pcm_config.channelMode != ChannelMode::UNKNOWN); in IsSoftwarePcmParametersSupported()
329 pcm_config.channelMode != ChannelMode::UNKNOWN && pcm_config.dataIntervalUs != 0); in IsSoftwarePcmParameters_2_1_Supported()
429 .channelMode = (channel_mode_pair.hal_channel_mode_ == ChannelMode::MONO in SbcCodecConfigurationsGenerator()
569 .channelMode = (channel_mode_pair.hal_channel_mode_ == ChannelMode::MONO in LdacCodecConfigurationsGenerator()
Dhearing_aid_software_encoding_hidl.cc41 using ::bluetooth::audio::hidl::ChannelMode;
151 hal_pcm_config->channelMode = ChannelMode::STEREO; in HearingAidGetSelectedHalPcmConfig()
Dclient_interface_hidl.h40 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
202 .channelMode = ChannelMode::UNKNOWN,
Da2dp_encoding_hidl.cc65 using ::bluetooth::audio::hidl::ChannelMode;
277 pcm_config->channelMode != ChannelMode::UNKNOWN; in a2dp_get_selected_hal_pcm_config()
/packages/modules/Bluetooth/system/audio_bluetooth_hw/
Ddevice_port_proxy_hidl.cc39 using ::android::hardware::bluetooth::audio::V2_0::ChannelMode;
76 audio_channel_mask_t OutputChannelModeToAudioFormat(ChannelMode channel_mode) { in OutputChannelModeToAudioFormat()
78 case ChannelMode::MONO: in OutputChannelModeToAudioFormat()
80 case ChannelMode::STEREO: in OutputChannelModeToAudioFormat()
87 audio_channel_mask_t InputChannelModeToAudioFormat(ChannelMode channel_mode) { in InputChannelModeToAudioFormat()
89 case ChannelMode::MONO: in InputChannelModeToAudioFormat()
91 case ChannelMode::STEREO: in InputChannelModeToAudioFormat()
527 pcm_cfg.channelMode == ChannelMode::UNKNOWN || in LoadAudioConfig()
564 pcm_cfg.channelMode == ChannelMode::UNKNOWN || in LoadAudioConfig()
Ddevice_port_proxy.cc40 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
55 audio_channel_mask_t OutputChannelModeToAudioFormat(ChannelMode channel_mode) { in OutputChannelModeToAudioFormat()
57 case ChannelMode::MONO: in OutputChannelModeToAudioFormat()
59 case ChannelMode::STEREO: in OutputChannelModeToAudioFormat()
66 audio_channel_mask_t InputChannelModeToAudioFormat(ChannelMode channel_mode) { in InputChannelModeToAudioFormat()
68 case ChannelMode::MONO: in InputChannelModeToAudioFormat()
70 case ChannelMode::STEREO: in InputChannelModeToAudioFormat()
389 if (pcm_cfg.channelMode == ChannelMode::UNKNOWN) { in LoadAudioConfig()
421 if (pcm_cfg.channelMode == ChannelMode::UNKNOWN) { in LoadAudioConfig()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothCodecConfig.java210 public @interface ChannelMode {} annotation in BluetoothCodecConfig
225 private final @ChannelMode int mChannelMode;
251 @ChannelMode int channelMode, in BluetoothCodecConfig()
287 @ChannelMode int channelMode, in BluetoothCodecConfig()
608 public @ChannelMode int getChannelMode() { in getChannelMode()
904 public @NonNull Builder setChannelMode(@ChannelMode int channelMode) { in setChannelMode()
/packages/modules/Bluetooth/android/pandora/server/src/
DA2dp.kt467 var channelMode: ChannelMode in getProtoCodecParameters()
515 channelMode = ChannelMode.UNKNOWN in getProtoCodecParameters()
518 channelMode = ChannelMode.MONO in getProtoCodecParameters()
521 channelMode = ChannelMode.STEREO in getProtoCodecParameters()
596 ChannelMode.UNKNOWN -> { in getCodecConfigFromProtoConfiguration()
599 ChannelMode.MONO -> { in getCodecConfigFromProtoConfiguration()
602 ChannelMode.STEREO -> { in getCodecConfigFromProtoConfiguration()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dle_audio_software_aidl.cc42 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
56 static ChannelMode le_audio_channel_mode2audio_hal(uint8_t channels_count) { in le_audio_channel_mode2audio_hal()
59 return ChannelMode::MONO; in le_audio_channel_mode2audio_hal()
61 return ChannelMode::STEREO; in le_audio_channel_mode2audio_hal()
63 return ChannelMode::UNKNOWN; in le_audio_channel_mode2audio_hal()
328 std::move(stream_cb), {16000, ChannelMode::STEREO, 16, 0});
416 {16000, ChannelMode::STEREO, 16, 0});
Dhearing_aid_software_encoding_aidl.cc37 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
152 hal_pcm_config->channelMode = ChannelMode::STEREO; in HearingAidGetSelectedHalPcmConfig()
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_client_interface_fuzzer.cpp62 using ::bluetooth::audio::hidl::codec::ChannelMode;
121 constexpr ChannelMode kChannelModes[] = {ChannelMode::UNKNOWN, ChannelMode::MONO,
122 ChannelMode::STEREO};
DREADME.md45 | `param.channelMode` | 0.`ChannelMode::UNKNOWN` 1.`ChannelMode::MONO` 2.`ChannelMode::STEREO` | V…
/packages/modules/Bluetooth/system/stack/mmc/proto/
Dmmc_config.proto49 enum ChannelMode { enum
75 ChannelMode channel_mode = 7;
/packages/modules/Bluetooth/system/audio_hal_interface/
Dhfp_client_interface.cc32 using ::aidl::android::hardware::bluetooth::audio::ChannelMode;
60 .channelMode = ChannelMode::MONO, in get_default_pcm_configuration()