Lines Matching refs:index

250     UINT8 index;  in bta_av_co_get_peer()  local
253 index = BTA_AV_CO_AUDIO_HNDL_TO_INDX(hndl); in bta_av_co_get_peer()
256 if (index >= BTA_AV_CO_NUM_ELEMENTS(bta_av_co_cb.peers)) in bta_av_co_get_peer()
258 APPL_TRACE_ERROR("bta_av_co_get_peer peer index out of bounds:%d", index); in bta_av_co_get_peer()
262 return &bta_av_co_cb.peers[index]; in bta_av_co_get_peer()
279 UINT8 *p_protect_info, UINT8 index) in bta_av_co_audio_init() argument
283 APPL_TRACE_DEBUG("bta_av_co_audio_init: %d", index); in bta_av_co_audio_init()
292 switch (index) in bta_av_co_audio_init()
467 UINT8 index; in bta_av_audio_sink_getconfig() local
535 if (bta_av_co_audio_peer_src_supports_codec(p_peer, &index)) in bta_av_audio_sink_getconfig()
538 p_src = &p_peer->srcs[index]; in bta_av_audio_sink_getconfig()
591 UINT8 index; in bta_av_co_audio_getconfig() local
665 if (bta_av_co_audio_peer_supports_codec(p_peer, &index)) in bta_av_co_audio_getconfig()
674 p_sink = &p_peer->snks[index]; in bta_av_co_audio_getconfig()
1255 UINT8 index; in bta_av_co_audio_sink_has_scmst() local
1260 index = p_sink->num_protect; in bta_av_co_audio_sink_has_scmst()
1263 while (index) in bta_av_co_audio_sink_has_scmst()
1272 index--; in bta_av_co_audio_sink_has_scmst()
1314 int index; in bta_av_co_audio_peer_supports_codec() local
1322 for (index = 0; index < p_peer->num_sup_snks; index++) in bta_av_co_audio_peer_supports_codec()
1324 if (p_peer->snks[index].codec_type == codec_type) in bta_av_co_audio_peer_supports_codec()
1329 if (p_snk_index) *p_snk_index = index; in bta_av_co_audio_peer_supports_codec()
1330 return bta_av_co_audio_codec_match(p_peer->snks[index].codec_caps); in bta_av_co_audio_peer_supports_codec()
1355 int index; in bta_av_co_audio_peer_src_supports_codec() local
1363 for (index = 0; index < p_peer->num_sup_srcs; index++) in bta_av_co_audio_peer_src_supports_codec()
1365 if (p_peer->srcs[index].codec_type == codec_type) in bta_av_co_audio_peer_src_supports_codec()
1370 if (p_src_index) *p_src_index = index; in bta_av_co_audio_peer_src_supports_codec()
1371 if (0 == bta_av_sbc_cfg_matches_cap((UINT8 *)p_peer->srcs[index].codec_caps, in bta_av_co_audio_peer_src_supports_codec()
1463 UINT8 index; in bta_av_co_audio_codec_supported() local
1480 for (index = 0; index < BTA_AV_CO_NUM_ELEMENTS(bta_av_co_cb.peers); index++) in bta_av_co_audio_codec_supported()
1482 p_peer = &bta_av_co_cb.peers[index]; in bta_av_co_audio_codec_supported()
1493 snk_index, index); in bta_av_co_audio_codec_supported()
1528 …G("bta_av_co_audio_codec_supported call BTA_AvReconfig(x%x)", BTA_AV_CO_AUDIO_INDX_TO_HNDL(index)); in bta_av_co_audio_codec_supported()
1529 … BTA_AvReconfig(BTA_AV_CO_AUDIO_INDX_TO_HNDL(index), TRUE, p_sink->sep_info_idx, in bta_av_co_audio_codec_supported()
1536 … APPL_TRACE_DEBUG("bta_av_co_audio_codec_supported index %d doesn't support codec", index); in bta_av_co_audio_codec_supported()
1671 UINT8 index, jndex; in bta_av_co_audio_get_sbc_config() local
1685 for (index = 0; index < BTA_AV_CO_NUM_ELEMENTS(bta_av_co_cb.peers); index++) in bta_av_co_audio_get_sbc_config()
1687 p_peer = &bta_av_co_cb.peers[index]; in bta_av_co_audio_get_sbc_config()
1796 UINT8 index; in bta_av_co_peer_cp_supported() local
1808 for (index = 0; index < p_peer->num_sup_snks; index++) in bta_av_co_peer_cp_supported()
1810 p_sink = &p_peer->snks[index]; in bta_av_co_peer_cp_supported()