Home
last modified time | relevance | path

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

/system/bt/stack/a2dp/
Da2dp_codec_config.cc54 btav_a2dp_codec_config_t* codec_config, btav_a2dp_codec_index_t codec_index, in init_btav_a2dp_codec_config() argument
57 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
61 A2dpCodecConfig::A2dpCodecConfig(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfig() argument
64 : codec_index_(codec_index), in A2dpCodecConfig()
111 btav_a2dp_codec_index_t codec_index, in createCodec() argument
113 LOG_INFO("%s: codec %s", __func__, A2DP_CodecIndexStr(codec_index)); in createCodec()
116 switch (codec_index) { in createCodec()
610 btav_a2dp_codec_index_t codec_index = in init() local
616 auto cp_iter = codec_priorities_.find(codec_index); in init()
622 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.cc142 if (codec_index < 0) { in Update()
143 codec_index = metrics.codec_index; in Update()
160 codec_index == rhs.codec_index && in operator ==()
240 static A2dpSourceCodec get_a2dp_source_codec(int64_t codec_index) { in get_a2dp_source_codec() argument
241 switch (codec_index) { in get_a2dp_source_codec()
433 get_a2dp_source_codec(pimpl_->a2dp_session_metrics_.codec_index)); in LogA2dpSession()
Dmetrics.h112 int64_t codec_index = -1; variable
/system/bt/test/mock/
Dmock_a2dp_codec_config.cc42 btav_a2dp_codec_index_t codec_index, in createCodec() argument
56 A2dpCodecConfig::A2dpCodecConfig(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfig() argument
59 : codec_index_(codec_index), in A2dpCodecConfig()
95 bool A2DP_InitCodecConfig(btav_a2dp_codec_index_t codec_index, in A2DP_InitCodecConfig() argument
172 bool A2dpCodecs::isSupportedCodec(btav_a2dp_codec_index_t codec_index) { in isSupportedCodec() argument
262 const char* A2DP_CodecIndexStr(btav_a2dp_codec_index_t codec_index) { in A2DP_CodecIndexStr() argument
Dmock_stack_a2dp_codec_config.cc42 btav_a2dp_codec_index_t codec_index, in createCodec() argument
56 A2dpCodecConfig::A2dpCodecConfig(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfig() argument
59 : codec_index_(codec_index), in A2dpCodecConfig()
95 bool A2DP_InitCodecConfig(btav_a2dp_codec_index_t codec_index, in A2DP_InitCodecConfig() argument
172 bool A2dpCodecs::isSupportedCodec(btav_a2dp_codec_index_t codec_index) { in isSupportedCodec() argument
262 const char* A2DP_CodecIndexStr(btav_a2dp_codec_index_t codec_index) { in A2DP_CodecIndexStr() argument
/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);
721 const char* A2DP_CodecIndexStr(btav_a2dp_codec_index_t codec_index);
727 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/btif/include/
Dbtif_av_co.h71 bool bta_av_co_is_supported_codec(btav_a2dp_codec_index_t codec_index);
/system/bt/stack/test/
Dstack_a2dp_test.cc230 btav_a2dp_codec_index_t codec_index = in StackA2dpTest() local
234 switch (codec_index) { in StackA2dpTest()
274 supported_codecs_.insert(codec_index); in StackA2dpTest()
279 bool has_codec_support(btav_a2dp_codec_index_t codec_index) { in has_codec_support() argument
280 return supported_codecs_.find(codec_index) != supported_codecs_.end(); in has_codec_support()
793 btav_a2dp_codec_index_t codec_index = in TEST_F() local
795 EXPECT_STRNE(A2DP_CodecIndexStr(codec_index), "UNKNOWN CODEC INDEX"); in TEST_F()
861 btav_a2dp_codec_index_t codec_index = in TEST_F() local
865 if (!has_codec_support(codec_index)) { in TEST_F()
869 A2dpCodecConfig* codec_config = A2dpCodecConfig::createCodec(codec_index); in TEST_F()
[all …]
/system/bt/stack/test/fuzzers/a2dp/codec/
Da2dpCodecConfigFuzzFunctions.h39 btav_a2dp_codec_index_t codec_index = getArbitraryBtavCodecIndex(fdp);
44 A2dpCodecConfig::createCodec(codec_index, codec_priority));
/system/bt/btif/co/
Dbta_av_co.cc181 bool IsSupportedCodec(btav_a2dp_codec_index_t codec_index);
495 btav_a2dp_codec_index_t codec_index);
505 btav_a2dp_codec_index_t codec_index);
778 bool BtaAvCo::IsSupportedCodec(btav_a2dp_codec_index_t codec_index) { in IsSupportedCodec() argument
783 return codecs->isSupportedCodec(codec_index); in IsSupportedCodec()
1807 btav_a2dp_codec_index_t codec_index) { in FindPeerSink() argument
1808 if (codec_index == BTAV_A2DP_CODEC_INDEX_MAX) { in FindPeerSink()
1819 if (peer_codec_index != codec_index) { in FindPeerSink()
1826 __func__, A2DP_CodecIndexStr(codec_index)); in FindPeerSink()
1835 btav_a2dp_codec_index_t codec_index) { in FindPeerSource() argument
[all …]
/system/bt/bta/include/
Dbta_av_co.h52 bool bta_av_co_audio_init(btav_a2dp_codec_index_t codec_index,
/system/bt/bta/av/
Dbta_av_main.cc562 btav_a2dp_codec_index_t codec_index = in bta_av_api_register() local
564 if (!bta_av_co_is_supported_codec(codec_index)) { in bta_av_api_register()
567 if (!(*bta_av_a2dp_cos.init)(codec_index, &avdtp_stream_config.cfg)) { in bta_av_api_register()
570 if (AVDT_CreateStream(p_scb->app_id, &p_scb->seps[codec_index].av_handle, in bta_av_api_register()
574 __func__, p_scb->hndl, p_scb->app_id, codec_index); in bta_av_api_register()
578 memcpy(p_scb->seps[codec_index].codec_info, in bta_av_api_register()
580 p_scb->seps[codec_index].tsep = avdtp_stream_config.tsep; in bta_av_api_register()
582 p_scb->seps[codec_index].p_app_sink_data_cback = in bta_av_api_register()
588 p_scb->seps[codec_index].p_app_sink_data_cback = NULL; in bta_av_api_register()
Dbta_av_int.h166 typedef bool (*tBTA_AV_CO_INIT)(btav_a2dp_codec_index_t codec_index,
Dbta_av_aact.cc3156 btav_a2dp_codec_index_t codec_index = in bta_av_offload_codec_builder() local
3160 APPL_TRACE_DEBUG("%s:codec_index = %d", __func__, codec_index); in bta_av_offload_codec_builder()
3161 switch (codec_index) { in bta_av_offload_codec_builder()
/system/bt/btif/src/
Dbtif_a2dp_source.cc139 codec_index = -1; in Reset()
169 int codec_index = -1; member in BtifMediaStats
316 if (dst->codec_index < 0) dst->codec_index = src->codec_index; in btif_a2dp_source_accumulate_stats()
811 btif_a2dp_source_cb.stats.codec_index = codec_config->codecIndex(); in btif_a2dp_source_audio_tx_start_event()
1277 metrics.codec_index = stats.codec_index; in btif_a2dp_source_update_metrics()
Dbtif_a2dp_audio_interface.cc99 metrics.codec_index = codec_index_; in StoreMetrics()
120 void SetCodecIndex(int64_t codec_index) { in SetCodecIndex() argument
122 codec_index_ = codec_index; in SetCodecIndex()
/system/bt/audio_hal_interface/
Dclient_interface_unittest.cc406 for (auto codec_index : codec_indexes) { in CodecOffloadingPreferenceGenerator() local
407 a2dp_codec_config.codec_type = codec_index; in CodecOffloadingPreferenceGenerator()
411 if (codec_index == target_codec_index) { in CodecOffloadingPreferenceGenerator()