Home
last modified time | relevance | path

Searched refs:codec_type (Results 1 – 21 of 21) sorted by relevance

/system/bt/stack/a2dp/
Da2dp_codec_config.cc53 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
154 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info); in getTrackBitRate() local
156 LOG_VERBOSE(LOG_TAG, "%s: codec_type = 0x%x", __func__, codec_type); in getTrackBitRate()
158 switch (codec_type) { in getTrackBitRate()
169 LOG_ERROR(LOG_TAG, "%s: unsupported codec type 0x%x", __func__, codec_type); in getTrackBitRate()
187 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(codec_config); in getCodecSpecificConfig() local
188 switch (codec_type) { in getCodecSpecificConfig()
401 return (codec_config.codec_type < BTAV_A2DP_CODEC_INDEX_MAX) && in codecConfigIsValid()
542 std::make_pair(config.codec_type, config.codec_priority)); in A2dpCodecs()
736 if (codec_user_config.codec_type < BTAV_A2DP_CODEC_INDEX_MAX) { in setCodecUserConfig()
[all …]
Da2dp_vendor_aptx.cc124 tA2DP_CODEC_TYPE codec_type; in A2DP_ParseInfoAptx() local
133 codec_type = *p_codec_info++; in A2DP_ParseInfoAptx()
136 codec_type != A2DP_MEDIA_CT_NON_A2DP) { in A2DP_ParseInfoAptx()
Da2dp_vendor_aptx_hd.cc135 tA2DP_CODEC_TYPE codec_type; in A2DP_ParseInfoAptxHd() local
144 codec_type = *p_codec_info++; in A2DP_ParseInfoAptxHd()
147 codec_type != A2DP_MEDIA_CT_NON_A2DP) { in A2DP_ParseInfoAptxHd()
Da2dp_aac.cc164 tA2DP_CODEC_TYPE codec_type; in A2DP_ParseInfoAac() local
173 codec_type = *p_codec_info++; in A2DP_ParseInfoAac()
175 if (media_type != AVDT_MEDIA_TYPE_AUDIO || codec_type != A2DP_MEDIA_CT_AAC) { in A2DP_ParseInfoAac()
Da2dp_vendor_ldac.cc152 tA2DP_CODEC_TYPE codec_type; in A2DP_ParseInfoLdac() local
161 codec_type = *p_codec_info++; in A2DP_ParseInfoLdac()
164 codec_type != A2DP_MEDIA_CT_NON_A2DP) { in A2DP_ParseInfoLdac()
Da2dp_sbc.cc165 tA2DP_CODEC_TYPE codec_type; in A2DP_ParseInfoSbc() local
174 codec_type = *p_codec_info++; in A2DP_ParseInfoSbc()
176 if (media_type != AVDT_MEDIA_TYPE_AUDIO || codec_type != A2DP_MEDIA_CT_SBC) { in A2DP_ParseInfoSbc()
/system/bt/service/common/bluetooth/
Da2dp_codec_config.cc23 A2dpCodecConfig::A2dpCodecConfig(int codec_type, int codec_priority, in A2dpCodecConfig() argument
29 : codec_type_(codec_type), in A2dpCodecConfig()
Da2dp_codec_config.h28 A2dpCodecConfig(int codec_type, int codec_priority, int sample_rate,
34 int codec_type() const { return codec_type_; } in codec_type() function
/system/bt/bta/ag/
Dbta_ag_act.cc802 tBTA_AG_PEER_CODEC codec_type = data.api_setcodec.codec; in bta_ag_setcodec() local
807 if ((codec_type != BTA_AG_CODEC_NONE) && (codec_type != BTA_AG_CODEC_CVSD) && in bta_ag_setcodec()
808 (codec_type != BTA_AG_CODEC_MSBC)) { in bta_ag_setcodec()
809 val.num = codec_type; in bta_ag_setcodec()
812 codec_type); in bta_ag_setcodec()
817 if ((p_scb->peer_codecs & codec_type) || (codec_type == BTA_AG_CODEC_NONE) || in bta_ag_setcodec()
818 (codec_type == BTA_AG_CODEC_CVSD)) { in bta_ag_setcodec()
819 p_scb->sco_codec = codec_type; in bta_ag_setcodec()
821 val.num = codec_type; in bta_ag_setcodec()
823 APPL_TRACE_DEBUG("bta_ag_setcodec: Updated codec type %d", codec_type); in bta_ag_setcodec()
[all …]
Dbta_ag_cmd.cc1251 tBTA_AG_PEER_CODEC codec_type, codec_sent; in bta_ag_at_hfp_cback() local
1257 codec_type = BTA_AG_CODEC_CVSD; in bta_ag_at_hfp_cback()
1260 codec_type = BTA_AG_CODEC_MSBC; in bta_ag_at_hfp_cback()
1264 codec_type = 0xFFFF; in bta_ag_at_hfp_cback()
1273 bta_ag_sco_codec_nego(p_scb, codec_type == codec_sent); in bta_ag_at_hfp_cback()
/system/bt/service/
Da2dp_source.cc53 .codec_type = static_cast<btav_a2dp_codec_index_t>(config.codec_type()), in CodecConfigToFluoride()
82 A2dpCodecConfig ret(config.codec_type, config.codec_priority, in FluorideCodecToCodec()
/system/bt/stack/test/
Dstack_a2dp_test.cc346 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(codec_info_sbc); in TEST_F() local
347 EXPECT_EQ(codec_type, A2DP_MEDIA_CT_SBC); in TEST_F()
349 codec_type = A2DP_GetCodecType(codec_info_aac); in TEST_F()
350 EXPECT_EQ(codec_type, A2DP_MEDIA_CT_AAC); in TEST_F()
352 codec_type = A2DP_GetCodecType(codec_info_non_a2dp); in TEST_F()
353 EXPECT_EQ(codec_type, A2DP_MEDIA_CT_NON_A2DP); in TEST_F()
436 for (uint8_t codec_type = A2DP_MEDIA_CT_AAC + 1; in TEST_F() local
437 codec_type < A2DP_MEDIA_CT_NON_A2DP; codec_type++) { in TEST_F()
438 codec_info_test[2] = codec_type; // Unknown codec type in TEST_F()
/system/bt/include/hardware/
Dbt_av.h119 btav_a2dp_codec_index_t codec_type; member
136 switch (codec_type) { in ToString()
/system/bt/audio_hal_interface/
Da2dp_encoding.cc295 switch (current_codec.codec_type) { in a2dp_get_selected_hal_codec_config()
449 if (current_codec.codec_type == BTAV_A2DP_CODEC_INDEX_SOURCE_APTX) { in a2dp_get_selected_hal_codec_config()
536 << ": Unknown codec_type=" << current_codec.codec_type; in a2dp_get_selected_hal_codec_config()
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc203 switch (codec_config.codec_type) { in btif_a2dp_get_codec_configuration()
241 codec_config.codec_type); in btif_a2dp_get_codec_configuration()
/system/bt/bta/av/
Dbta_av_aact.cc3095 UINT32_TO_STREAM(p_param, offload_start->codec_type); in bta_av_vendor_offload_start()
3220 uint32_t codec_type = 0; in bta_av_offload_codec_builder() local
3225 codec_type = BTA_AV_CODEC_TYPE_SBC; in bta_av_offload_codec_builder()
3234 codec_type = BTA_AV_CODEC_TYPE_AAC; in bta_av_offload_codec_builder()
3237 codec_type = BTA_AV_CODEC_TYPE_APTX; in bta_av_offload_codec_builder()
3240 codec_type = BTA_AV_CODEC_TYPE_APTXHD; in bta_av_offload_codec_builder()
3243 codec_type = BTA_AV_CODEC_TYPE_LDAC; in bta_av_offload_codec_builder()
3250 p_a2dp_offload->codec_type = codec_type; in bta_av_offload_codec_builder()
Dbta_av_int.h622 uint32_t codec_type; /* codec types ex: SBC/AAC/LDAC/APTx */
/system/extras/sound/
Dplaywav.c29 uint32_t codec_type; member
/system/bt/stack/include/
Dbtm_api.h1110 extern tBTM_STATUS BTM_SetWBSCodec(tBTM_SCO_CODEC_TYPE codec_type);
/system/bt/btif/co/
Dbta_av_co.cc1479 if (codec_user_config.codec_type < BTAV_A2DP_CODEC_INDEX_MAX) { in SetCodecUserConfig()
1480 p_sink = FindPeerSink(p_peer, codec_user_config.codec_type); in SetCodecUserConfig()
1489 codec_user_config.codec_type); in SetCodecUserConfig()
/system/bt/bta/hearing_aid/
Dhearing_aid.cc792 uint16_t CalcCompressedAudioPacketSize(uint16_t codec_type, in CalcCompressedAudioPacketSize() argument
798 if (codec_type == CODEC_G722_24KHZ) { in CalcCompressedAudioPacketSize()