Home
last modified time | relevance | path

Searched refs:codec_index (Results 1 – 20 of 20) sorted by relevance

/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
53 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
57 A2dpCodecConfig::A2dpCodecConfig(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfig() argument
60 : codec_index_(codec_index), in A2dpCodecConfig()
107 btav_a2dp_codec_index_t codec_index, in createCodec() argument
109 LOG_DEBUG(LOG_TAG, "%s: codec %s", __func__, A2DP_CodecIndexStr(codec_index)); in createCodec()
112 switch (codec_index) { in createCodec()
597 btav_a2dp_codec_index_t codec_index = in init() local
603 auto cp_iter = codec_priorities_.find(codec_index); in init()
609 if ((codec_index < BTAV_A2DP_CODEC_INDEX_SOURCE_MAX) && in init()
[all …]
Da2dp_vendor.cc586 const char* A2DP_VendorCodecIndexStr(btav_a2dp_codec_index_t codec_index) { in A2DP_VendorCodecIndexStr() argument
588 switch (codec_index) { in A2DP_VendorCodecIndexStr()
610 bool A2DP_VendorInitCodecConfig(btav_a2dp_codec_index_t codec_index, in A2DP_VendorInitCodecConfig() argument
613 switch (codec_index) { in A2DP_VendorInitCodecConfig()
/system/bt/common/
Dmetrics_unittest.cc188 EXPECT_EQ((a).codec_index, (b).codec_index); \
223 metrics1.codec_index = -1; in TEST()
224 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_AAC; in TEST()
225 metrics_sum.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_AAC; in TEST()
255 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_APTX; in TEST()
256 metrics_sum.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_APTX; in TEST()
285 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_APTX_HD; in TEST()
286 metrics_sum.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_APTX_HD; in TEST()
580 metrics1.codec_index = -1; in TEST_F()
581 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_AAC; in TEST_F()
[all …]
Dmetrics.cc141 if (codec_index < 0) { in Update()
142 codec_index = metrics.codec_index; in Update()
159 codec_index == rhs.codec_index && in operator ==()
239 static A2dpSourceCodec get_a2dp_source_codec(int64_t codec_index) { in get_a2dp_source_codec() argument
240 switch (codec_index) { in get_a2dp_source_codec()
432 get_a2dp_source_codec(pimpl_->a2dp_session_metrics_.codec_index)); in LogA2dpSession()
Dmetrics.h112 int64_t codec_index = -1; variable
/system/bt/stack/include/
Da2dp_vendor.h196 const char* A2DP_VendorCodecIndexStr(btav_a2dp_codec_index_t codec_index);
202 bool A2DP_VendorInitCodecConfig(btav_a2dp_codec_index_t codec_index,
Da2dp_codec_api.h56 btav_a2dp_codec_index_t codec_index,
208 A2dpCodecConfig(btav_a2dp_codec_index_t codec_index, const std::string& name,
306 bool isSupportedCodec(btav_a2dp_codec_index_t codec_index);
712 const char* A2DP_CodecIndexStr(btav_a2dp_codec_index_t codec_index);
718 bool A2DP_InitCodecConfig(btav_a2dp_codec_index_t codec_index,
Da2dp_vendor_ldac.h30 A2dpCodecConfigLdacBase(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfigLdacBase() argument
34 : A2dpCodecConfig(codec_index, name, codec_priority), in A2dpCodecConfigLdacBase()
Da2dp_sbc.h30 A2dpCodecConfigSbcBase(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfigSbcBase() argument
34 : A2dpCodecConfig(codec_index, name, codec_priority), in A2dpCodecConfigSbcBase()
Da2dp_aac.h30 A2dpCodecConfigAacBase(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfigAacBase() argument
34 : A2dpCodecConfig(codec_index, name, codec_priority), in A2dpCodecConfigAacBase()
/system/bt/stack/test/
Dstack_a2dp_test.cc195 btav_a2dp_codec_index_t codec_index = in StackA2dpTest() local
199 switch (codec_index) { in StackA2dpTest()
239 supported_codecs_.insert(codec_index); in StackA2dpTest()
244 bool has_codec_support(btav_a2dp_codec_index_t codec_index) { in has_codec_support() argument
245 return supported_codecs_.find(codec_index) != supported_codecs_.end(); in has_codec_support()
754 btav_a2dp_codec_index_t codec_index = in TEST_F() local
756 EXPECT_STRNE(A2DP_CodecIndexStr(codec_index), "UNKNOWN CODEC INDEX"); in TEST_F()
812 btav_a2dp_codec_index_t codec_index = in TEST_F() local
816 if (!has_codec_support(codec_index)) { in TEST_F()
820 A2dpCodecConfig* codec_config = A2dpCodecConfig::createCodec(codec_index); in TEST_F()
[all …]
/system/bt/btif/include/
Dbtif_av_co.h70 bool bta_av_co_is_supported_codec(btav_a2dp_codec_index_t codec_index);
/system/bt/btif/co/
Dbta_av_co.cc187 bool IsSupportedCodec(btav_a2dp_codec_index_t codec_index);
497 btav_a2dp_codec_index_t codec_index);
507 btav_a2dp_codec_index_t codec_index);
780 bool BtaAvCo::IsSupportedCodec(btav_a2dp_codec_index_t codec_index) { in IsSupportedCodec() argument
785 return codecs->isSupportedCodec(codec_index); in IsSupportedCodec()
1782 btav_a2dp_codec_index_t codec_index) { in FindPeerSink() argument
1783 if (codec_index == BTAV_A2DP_CODEC_INDEX_MAX) { in FindPeerSink()
1794 if (peer_codec_index != codec_index) { in FindPeerSink()
1801 __func__, A2DP_CodecIndexStr(codec_index)); in FindPeerSink()
1810 btav_a2dp_codec_index_t codec_index) { in FindPeerSource() argument
[all …]
/system/bt/bta/include/
Dbta_av_co.h47 bool bta_av_co_audio_init(btav_a2dp_codec_index_t codec_index,
/system/bt/btif/src/
Dbtif_a2dp_source.cc136 codec_index = -1; in Reset()
166 int codec_index = -1; member in BtifMediaStats
310 if (dst->codec_index < 0) dst->codec_index = src->codec_index; in btif_a2dp_source_accumulate_stats()
780 btif_a2dp_source_cb.stats.codec_index = codec_config->codecIndex(); in btif_a2dp_source_audio_tx_start_event()
1257 metrics.codec_index = stats.codec_index; in btif_a2dp_source_update_metrics()
Dbtif_a2dp_audio_interface.cc103 metrics.codec_index = codec_index_; in StoreMetrics()
124 void SetCodecIndex(int64_t codec_index) { in SetCodecIndex() argument
126 codec_index_ = codec_index; in SetCodecIndex()
/system/bt/bta/av/
Dbta_av_main.cc636 btav_a2dp_codec_index_t codec_index = in bta_av_api_register() local
638 if (!bta_av_co_is_supported_codec(codec_index)) { in bta_av_api_register()
641 if (!(*bta_av_a2dp_cos.init)(codec_index, &avdtp_stream_config.cfg)) { in bta_av_api_register()
644 if (AVDT_CreateStream(p_scb->app_id, &p_scb->seps[codec_index].av_handle, in bta_av_api_register()
649 memcpy(p_scb->seps[codec_index].codec_info, in bta_av_api_register()
651 p_scb->seps[codec_index].tsep = avdtp_stream_config.tsep; in bta_av_api_register()
653 p_scb->seps[codec_index].p_app_sink_data_cback = in bta_av_api_register()
659 p_scb->seps[codec_index].p_app_sink_data_cback = NULL; in bta_av_api_register()
Dbta_av_int.h158 typedef bool (*tBTA_AV_CO_INIT)(btav_a2dp_codec_index_t codec_index,
Dbta_av_aact.cc3218 btav_a2dp_codec_index_t codec_index = in bta_av_offload_codec_builder() local
3222 APPL_TRACE_DEBUG("%s:codec_index = %d", __func__, codec_index); in bta_av_offload_codec_builder()
3223 switch (codec_index) { in bta_av_offload_codec_builder()
/system/bt/bta/ag/
Dbta_ag_sco.cc402 esco_codec_t codec_index = ESCO_CODEC_CVSD; in bta_ag_create_sco() local
407 codec_index = ESCO_CODEC_MSBC_T2; in bta_ag_create_sco()
409 codec_index = ESCO_CODEC_MSBC_T1; in bta_ag_create_sco()
414 enh_esco_params_t params = esco_parameters_for_codec(codec_index); in bta_ag_create_sco()