Home
last modified time | relevance | path

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

/aosp12/system/bt/stack/a2dp/
H A Da2dp_codec_config.cc57 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
64 : codec_index_(codec_index), in A2dpCodecConfig()
111 btav_a2dp_codec_index_t codec_index, in createCodec() argument
116 switch (codec_index) { in createCodec()
610 btav_a2dp_codec_index_t codec_index = in init() local
678 auto iter = indexed_codecs_.find(codec_index); in findSourceCodecConfig()
688 auto iter = indexed_codecs_.find(codec_index); in findSinkCodecConfig()
1486 switch (codec_index) { in A2DP_CodecIndexStr()
1502 if (codec_index < BTAV_A2DP_CODEC_INDEX_MAX) in A2DP_CodecIndexStr()
1517 switch (codec_index) { in A2DP_InitCodecConfig()
[all …]
H A 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()
/aosp12/system/bt/common/
H A 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()
255 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_APTX; in TEST()
580 metrics1.codec_index = -1; in TEST_F()
581 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_AAC; in TEST_F()
645 metrics1.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_SBC; in TEST_F()
646 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_AAC; in TEST_F()
715 metrics1.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_SBC; in TEST_F()
750 metrics2.codec_index = BTAV_A2DP_CODEC_INDEX_SOURCE_AAC; in TEST_F()
[all …]
H A 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()
H A Dmetrics.h112 int64_t codec_index = -1; variable
/aosp12/system/bt/test/mock/
H A 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
H A 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
/aosp12/system/bt/stack/include/
H A 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,
H A 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,
H A Da2dp_vendor_ldac.h30 A2dpCodecConfigLdacBase(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfigLdacBase() argument
34 : A2dpCodecConfig(codec_index, name, codec_priority), in A2dpCodecConfigLdacBase()
H A Da2dp_aac.h30 A2dpCodecConfigAacBase(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfigAacBase() argument
34 : A2dpCodecConfig(codec_index, name, codec_priority), in A2dpCodecConfigAacBase()
H A Da2dp_sbc.h30 A2dpCodecConfigSbcBase(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfigSbcBase() argument
34 : A2dpCodecConfig(codec_index, name, codec_priority), in A2dpCodecConfigSbcBase()
/aosp12/system/bt/stack/test/
H A 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 …]
/aosp12/system/bt/btif/co/
H A Dbta_av_co.cc181 bool IsSupportedCodec(btav_a2dp_codec_index_t codec_index);
495 btav_a2dp_codec_index_t codec_index);
783 return codecs->isSupportedCodec(codec_index); in IsSupportedCodec()
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()
1836 if (codec_index == BTAV_A2DP_CODEC_INDEX_MAX) { in FindPeerSource()
1847 if (peer_codec_index != codec_index) { in FindPeerSource()
1854 __func__, A2DP_CodecIndexStr(codec_index)); in FindPeerSource()
2068 return bta_av_co_cb.IsSupportedCodec(codec_index); in bta_av_co_is_supported_codec()
[all …]
/aosp12/system/bt/stack/test/fuzzers/a2dp/codec/
H A Da2dpCodecConfigFuzzFunctions.h39 btav_a2dp_codec_index_t codec_index = getArbitraryBtavCodecIndex(fdp);
44 A2dpCodecConfig::createCodec(codec_index, codec_priority));
/aosp12/system/bt/bta/av/
H A Dbta_av_main.cc565 btav_a2dp_codec_index_t codec_index = in bta_av_api_register() local
567 if (!bta_av_co_is_supported_codec(codec_index)) { in bta_av_api_register()
570 if (!(*bta_av_a2dp_cos.init)(codec_index, &avdtp_stream_config.cfg)) { in bta_av_api_register()
573 if (AVDT_CreateStream(p_scb->app_id, &p_scb->seps[codec_index].av_handle, in bta_av_api_register()
577 __func__, p_scb->hndl, p_scb->app_id, codec_index); in bta_av_api_register()
581 memcpy(p_scb->seps[codec_index].codec_info, in bta_av_api_register()
583 p_scb->seps[codec_index].tsep = avdtp_stream_config.tsep; in bta_av_api_register()
585 p_scb->seps[codec_index].p_app_sink_data_cback = in bta_av_api_register()
591 p_scb->seps[codec_index].p_app_sink_data_cback = NULL; in bta_av_api_register()
H A Dbta_av_int.h166 typedef bool (*tBTA_AV_CO_INIT)(btav_a2dp_codec_index_t codec_index,
H A Dbta_av_aact.cc3174 btav_a2dp_codec_index_t codec_index = in bta_av_offload_codec_builder() local
3178 APPL_TRACE_DEBUG("%s:codec_index = %d", __func__, codec_index); in bta_av_offload_codec_builder()
3179 switch (codec_index) { in bta_av_offload_codec_builder()
/aosp12/system/bt/btif/src/
H A 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()
H A 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()
/aosp12/system/bt/btif/include/
H A Dbtif_av_co.h71 bool bta_av_co_is_supported_codec(btav_a2dp_codec_index_t codec_index);
/aosp12/system/bt/bta/include/
H A Dbta_av_co.h52 bool bta_av_co_audio_init(btav_a2dp_codec_index_t codec_index,
/aosp12/system/bt/audio_hal_interface/
H A 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()