Home
last modified time | relevance | path

Searched refs:codec_config (Results 1 – 24 of 24) sorted by relevance

/system/bt/audio_hal_interface/
Dclient_interface_unittest.cc124 const CodecConfiguration& codec_config) { in IsOffloadCodecConfigurationSupported() argument
128 codec_config.codecType) { in IsOffloadCodecConfigurationSupported()
132 if (codec_capability.codecType != codec_config.codecType) { in IsOffloadCodecConfigurationSupported()
137 switch (codec_config.codecType) { in IsOffloadCodecConfigurationSupported()
139 SbcParameters sbc_config = codec_config.config.sbcConfig(); in IsOffloadCodecConfigurationSupported()
155 AacParameters aac_config = codec_config.config.aacConfig(); in IsOffloadCodecConfigurationSupported()
170 LdacParameters ldac_config = codec_config.config.ldacConfig(); in IsOffloadCodecConfigurationSupported()
182 AptxParameters aptx_config = codec_config.config.aptxConfig(); in IsOffloadCodecConfigurationSupported()
229 CodecConfiguration codec_config = {}; in TEST_F() local
244 codec_config.codecType = CodecType::SBC; in TEST_F()
[all …]
Da2dp_encoding.cc285 bool a2dp_get_selected_hal_codec_config(CodecConfiguration* codec_config) { in a2dp_get_selected_hal_codec_config() argument
289 *codec_config = kInvalidCodecConfiguration; in a2dp_get_selected_hal_codec_config()
299 codec_config->codecType = CodecType::SBC; in a2dp_get_selected_hal_codec_config()
300 codec_config->config.sbcConfig({}); in a2dp_get_selected_hal_codec_config()
301 auto sbc_config = codec_config->config.sbcConfig(); in a2dp_get_selected_hal_codec_config()
383 codec_config->config.sbcConfig(sbc_config); in a2dp_get_selected_hal_codec_config()
389 codec_config->codecType = CodecType::AAC; in a2dp_get_selected_hal_codec_config()
390 codec_config->config.aacConfig({}); in a2dp_get_selected_hal_codec_config()
391 auto aac_config = codec_config->config.aacConfig(); in a2dp_get_selected_hal_codec_config()
443 codec_config->config.aacConfig(aac_config); in a2dp_get_selected_hal_codec_config()
[all …]
/system/bt/btif/src/
Dbtif_a2dp_control.cc200 btav_a2dp_codec_config_t codec_config; in btif_a2dp_recv_ctrl_data() local
202 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
203 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_recv_ctrl_data()
204 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_recv_ctrl_data()
211 codec_config = current_codec->getCodecConfig(); in btif_a2dp_recv_ctrl_data()
218 reinterpret_cast<const uint8_t*>(&codec_config.sample_rate), in btif_a2dp_recv_ctrl_data()
221 reinterpret_cast<const uint8_t*>(&codec_config.bits_per_sample), in btif_a2dp_recv_ctrl_data()
224 reinterpret_cast<const uint8_t*>(&codec_config.channel_mode), in btif_a2dp_recv_ctrl_data()
242 btav_a2dp_codec_config_t codec_config; in btif_a2dp_recv_ctrl_data() local
243 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
[all …]
Dbtif_a2dp_audio_interface.cc200 btav_a2dp_codec_config_t codec_config; in btif_a2dp_get_codec_configuration() local
201 codec_config = a2dpCodecConfig->getCodecConfig(); in btif_a2dp_get_codec_configuration()
203 switch (codec_config.codec_type) { in btif_a2dp_get_codec_configuration()
241 codec_config.codec_type); in btif_a2dp_get_codec_configuration()
259 codec_config.sample_rate; in btif_a2dp_get_codec_configuration()
262 codec_config.bits_per_sample; in btif_a2dp_get_codec_configuration()
265 codec_config.channel_mode; in btif_a2dp_get_codec_configuration()
Dbtif_a2dp_source.cc778 A2dpCodecConfig* codec_config = bta_av_get_a2dp_current_codec(); in btif_a2dp_source_audio_tx_start_event() local
779 if (codec_config != nullptr) { in btif_a2dp_source_audio_tx_start_event()
780 btif_a2dp_source_cb.stats.codec_index = codec_config->codecIndex(); in btif_a2dp_source_audio_tx_start_event()
Dbtif_av.cc2333 const btav_a2dp_codec_config_t& codec_config, in btif_av_report_source_codec_state() argument
2343 codec_config, codecs_local_capabilities, in btif_av_report_source_codec_state()
/system/bt/stack/a2dp/
Da2dp_codec_config.cc50 btav_a2dp_codec_config_t* codec_config, btav_a2dp_codec_index_t codec_index, in init_btav_a2dp_codec_config() argument
52 memset(codec_config, 0, sizeof(btav_a2dp_codec_config_t)); in init_btav_a2dp_codec_config()
53 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
54 codec_config->codec_priority = codec_priority; in init_btav_a2dp_codec_config()
111 A2dpCodecConfig* codec_config = nullptr; in createCodec() local
114 codec_config = new A2dpCodecConfigSbcSource(codec_priority); in createCodec()
117 codec_config = new A2dpCodecConfigSbcSink(codec_priority); in createCodec()
120 codec_config = new A2dpCodecConfigAacSource(codec_priority); in createCodec()
123 codec_config = new A2dpCodecConfigAacSink(codec_priority); in createCodec()
126 codec_config = new A2dpCodecConfigAptx(codec_priority); in createCodec()
[all …]
Da2dp_vendor_ldac_encoder.cc374 btav_a2dp_codec_config_t codec_config = a2dp_codec_config->getCodecConfig(); in a2dp_vendor_ldac_encoder_update() local
405 if (codec_config.codec_specific_1 != 0) { in a2dp_vendor_ldac_encoder_update()
406 p_encoder_params->quality_mode_index = codec_config.codec_specific_1 % 10; in a2dp_vendor_ldac_encoder_update()
/system/bt/bta/hearing_aid/
Dhearing_aid_audio_source.cc194 btav_a2dp_codec_config_t codec_config; in hearing_aid_recv_ctrl_data() local
197 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
200 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
206 codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data()
209 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data()
215 reinterpret_cast<const uint8_t*>(&codec_config.sample_rate), in hearing_aid_recv_ctrl_data()
218 reinterpret_cast<const uint8_t*>(&codec_config.bits_per_sample), in hearing_aid_recv_ctrl_data()
221 reinterpret_cast<const uint8_t*>(&codec_config.channel_mode), in hearing_aid_recv_ctrl_data()
240 btav_a2dp_codec_config_t codec_config; in hearing_aid_recv_ctrl_data() local
241 codec_config.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in hearing_aid_recv_ctrl_data()
[all …]
/system/bt/stack/test/
Dstack_a2dp_test.cc820 A2dpCodecConfig* codec_config = A2dpCodecConfig::createCodec(codec_index); in TEST_F() local
821 EXPECT_NE(codec_config, nullptr); in TEST_F()
822 EXPECT_EQ(codec_config->codecIndex(), codec_index); in TEST_F()
823 EXPECT_FALSE(codec_config->name().empty()); in TEST_F()
824 EXPECT_NE(codec_config->codecPriority(), BTAV_A2DP_CODEC_PRIORITY_DISABLED); in TEST_F()
825 EXPECT_NE(codec_config->codecPriority(), BTAV_A2DP_CODEC_PRIORITY_DEFAULT); in TEST_F()
826 delete codec_config; in TEST_F()
835 A2dpCodecConfig* codec_config; in TEST_F() local
843 codec_config = in TEST_F()
845 EXPECT_NE(codec_config, nullptr); in TEST_F()
[all …]
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc508 struct ha_stream_common* common, btav_a2dp_codec_config_t* codec_config, in ha_read_output_audio_config() argument
518 if (ha_ctrl_receive(common, &codec_config->sample_rate, in ha_read_output_audio_config()
522 if (ha_ctrl_receive(common, &codec_config->bits_per_sample, in ha_read_output_audio_config()
526 if (ha_ctrl_receive(common, &codec_config->channel_mode, in ha_read_output_audio_config()
546 switch (codec_config->sample_rate) { in ha_read_output_audio_config()
573 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in ha_read_output_audio_config()
578 switch (codec_config->bits_per_sample) { in ha_read_output_audio_config()
590 ERROR("Invalid bits per sample: 0x%x", codec_config->bits_per_sample); in ha_read_output_audio_config()
595 switch (codec_config->channel_mode) { in ha_read_output_audio_config()
606 ERROR("Invalid channel mode: 0x%x", codec_config->channel_mode); in ha_read_output_audio_config()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc527 struct a2dp_stream_common* common, btav_a2dp_codec_config_t* codec_config, in a2dp_read_output_audio_config() argument
537 if (a2dp_ctrl_receive(common, &codec_config->sample_rate, in a2dp_read_output_audio_config()
541 if (a2dp_ctrl_receive(common, &codec_config->bits_per_sample, in a2dp_read_output_audio_config()
545 if (a2dp_ctrl_receive(common, &codec_config->channel_mode, in a2dp_read_output_audio_config()
565 switch (codec_config->sample_rate) { in a2dp_read_output_audio_config()
586 ERROR("Invalid sample rate: 0x%x", codec_config->sample_rate); in a2dp_read_output_audio_config()
591 switch (codec_config->bits_per_sample) { in a2dp_read_output_audio_config()
603 ERROR("Invalid bits per sample: 0x%x", codec_config->bits_per_sample); in a2dp_read_output_audio_config()
608 switch (codec_config->channel_mode) { in a2dp_read_output_audio_config()
619 ERROR("Invalid channel mode: 0x%x", codec_config->channel_mode); in a2dp_read_output_audio_config()
[all …]
/system/bt/btif/co/
Dbta_av_co.cc94 codec_config{}, in BtaAvCoPeer()
151 uint8_t codec_config[AVDT_CODEC_SIZE]; // Current codec configuration member in BtaAvCoPeer
609 bool UpdateSelectableSourceCodec(const A2dpCodecConfig& codec_config,
629 bool UpdateSelectableSinkCodec(const A2dpCodecConfig& codec_config,
641 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer);
652 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer);
710 A2DP_InitDefaultCodec(codec_config); in Init()
732 memset(codec_config, 0, sizeof(codec_config)); in Reset()
967 FindPeerSink(p_peer, A2DP_SourceCodecIndex(p_peer->codec_config)); in ProcessSourceGetConfig()
1002 p_peer->codec_config, *p_num_protect, bta_av_co_cp_scmst); in ProcessSourceGetConfig()
[all …]
/system/bt/service/
Da2dp_source.h44 const std::string& device_address, A2dpCodecConfig codec_config,
81 const btav_a2dp_codec_config_t& codec_config,
Da2dp_source.cc190 auto codec_config = FluorideCodecToCodec(codec_config_fluoride); in AudioConfigCallback() local
197 delegate_->OnAudioConfig(device_address, codec_config, in AudioConfigCallback()
/system/bt/service/common/android/bluetooth/
DIBluetoothA2dpSourceCallback.aidl27 in BluetoothA2dpCodecConfig codec_config, in OnAudioConfig() argument
/system/bt/btif/include/
Dbtif_av.h127 const btav_a2dp_codec_config_t& codec_config,
/system/bt/service/hal/
Dbluetooth_av_interface.cc79 const RawAddress& bd_addr, btav_a2dp_codec_config_t codec_config, in SourceAudioConfigCallback() argument
85 observer.AudioConfigCallback(g_interface, bd_addr, codec_config, in SourceAudioConfigCallback()
291 const btav_a2dp_codec_config_t& codec_config, in AudioConfigCallback() argument
Dbluetooth_av_interface.h40 const btav_a2dp_codec_config_t& codec_config,
/system/bt/stack/include/
Da2dp_codec_api.h134 static bool isCodecConfigEmpty(const btav_a2dp_codec_config_t& codec_config);
224 static bool codecConfigIsValid(const btav_a2dp_codec_config_t& codec_config);
231 const btav_a2dp_codec_config_t& codec_config);
/system/bt/service/ipc/binder/
Dbluetooth_a2dp_source_binder_server.cc182 const std::string& device_address, bluetooth::A2dpCodecConfig codec_config, in OnAudioConfig() argument
193 cb->OnAudioConfig(String16(device_address.c_str()), codec_config, in OnAudioConfig()
Dbluetooth_a2dp_source_binder_server.h75 bluetooth::A2dpCodecConfig codec_config,
/system/bt/include/hardware/
Dbt_av.h256 const RawAddress& bd_addr, btav_a2dp_codec_config_t codec_config,
/system/bt/bta/av/
Dbta_av_aact.cc2238 A2dpCodecConfig* codec_config = in bta_av_start_ok() local
2240 CHECK(codec_config != nullptr); in bta_av_start_ok()
2241 p_scb->use_rtp_header_marker_bit = codec_config->useRtpHeaderMarkerBit(); in bta_av_start_ok()