Lines Matching refs:p_peer
439 bool ReportSourceCodecState(BtaAvCoPeer* p_peer);
447 bool ReportSinkCodecState(BtaAvCoPeer* p_peer);
496 BtaAvCoSep* FindPeerSink(BtaAvCoPeer* p_peer,
506 BtaAvCoSep* FindPeerSource(BtaAvCoPeer* p_peer,
544 const BtaAvCoSep* SelectSourceCodec(BtaAvCoPeer* p_peer);
556 const BtaAvCoSep* SelectSinkCodec(BtaAvCoPeer* p_peer);
566 void SaveNewCodecConfig(BtaAvCoPeer* p_peer, const uint8_t* new_codec_config,
588 bool SetCodecOtaConfig(BtaAvCoPeer* p_peer, const uint8_t* p_ota_codec_config,
599 size_t UpdateAllSelectableSourceCodecs(BtaAvCoPeer* p_peer);
610 BtaAvCoPeer* p_peer);
619 size_t UpdateAllSelectableSinkCodecs(BtaAvCoPeer* p_peer);
630 BtaAvCoPeer* p_peer);
641 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer);
652 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer);
756 BtaAvCoPeer* p_peer = &peers_[i]; in Init() local
757 p_peer->Init(codec_priorities); in Init()
775 BtaAvCoPeer* p_peer = &peers_[i]; in Reset() local
776 p_peer->Reset(BTA_AV_CO_AUDIO_INDEX_TO_HANDLE(i)); in Reset()
809 BtaAvCoPeer* p_peer = &peers_[i]; in FindPeer() local
810 if (p_peer->addr == peer_address) { in FindPeer()
811 return p_peer; in FindPeer()
841 BtaAvCoPeer* p_peer = FindPeer(bta_av_handle); in FindPeerAndUpdate() local
842 if (p_peer == nullptr) { in FindPeerAndUpdate()
850 p_peer->addr.ToString().c_str()); in FindPeerAndUpdate()
851 p_peer->addr = peer_address; in FindPeerAndUpdate()
852 return p_peer; in FindPeerAndUpdate()
856 BtaAvCoPeer* p_peer = FindPeer(bta_av_handle); in FindPeerUuid() local
857 if (p_peer == nullptr) { in FindPeerUuid()
860 return p_peer->uuid_to_connect; in FindPeerUuid()
873 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessDiscoveryResult() local
874 if (p_peer == nullptr) { in ProcessDiscoveryResult()
882 if (p_peer->opened) { in ProcessDiscoveryResult()
888 p_peer->addr = peer_address; in ProcessDiscoveryResult()
889 p_peer->num_sinks = num_sinks; in ProcessDiscoveryResult()
890 p_peer->num_sources = num_sources; in ProcessDiscoveryResult()
891 p_peer->num_seps = num_seps; in ProcessDiscoveryResult()
892 p_peer->num_rx_sinks = 0; in ProcessDiscoveryResult()
893 p_peer->num_rx_sources = 0; in ProcessDiscoveryResult()
894 p_peer->num_sup_sinks = 0; in ProcessDiscoveryResult()
895 p_peer->num_sup_sources = 0; in ProcessDiscoveryResult()
897 p_peer->uuid_to_connect = UUID_SERVCLASS_AUDIO_SOURCE; in ProcessDiscoveryResult()
899 p_peer->uuid_to_connect = UUID_SERVCLASS_AUDIO_SINK; in ProcessDiscoveryResult()
917 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessSourceGetConfig() local
918 if (p_peer == nullptr) { in ProcessSourceGetConfig()
925 __func__, p_peer->opened, p_peer->num_sinks, in ProcessSourceGetConfig()
926 p_peer->num_rx_sinks, p_peer->num_sup_sinks); in ProcessSourceGetConfig()
928 p_peer->num_rx_sinks++; in ProcessSourceGetConfig()
933 if (p_peer->num_sup_sinks < BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks)) { in ProcessSourceGetConfig()
934 BtaAvCoSep* p_sink = &p_peer->sinks[p_peer->num_sup_sinks++]; in ProcessSourceGetConfig()
947 p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
953 if ((p_peer->num_rx_sinks != p_peer->num_sinks) && in ProcessSourceGetConfig()
954 (p_peer->num_sup_sinks != BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks))) { in ProcessSourceGetConfig()
958 p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
962 if (p_peer->acceptor) { in ProcessSourceGetConfig()
963 UpdateAllSelectableSourceCodecs(p_peer); in ProcessSourceGetConfig()
964 if (p_peer->p_sink == nullptr) { in ProcessSourceGetConfig()
966 p_peer->p_sink = in ProcessSourceGetConfig()
967 FindPeerSink(p_peer, A2DP_SourceCodecIndex(p_peer->codec_config)); in ProcessSourceGetConfig()
969 p_sink = p_peer->p_sink; in ProcessSourceGetConfig()
972 __func__, p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
976 p_sink = SelectSourceCodec(p_peer); in ProcessSourceGetConfig()
979 p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
986 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in ProcessSourceGetConfig()
994 p_peer->addr.ToString().c_str(), in ProcessSourceGetConfig()
995 (p_peer->acceptor) ? "true" : "false", in ProcessSourceGetConfig()
996 (p_peer->reconfig_needed) ? "true" : "false"); in ProcessSourceGetConfig()
997 if (p_peer->acceptor) { in ProcessSourceGetConfig()
998 if (p_peer->reconfig_needed) { in ProcessSourceGetConfig()
1000 bta_av_handle, p_peer->addr.ToString().c_str()); in ProcessSourceGetConfig()
1002 p_peer->codec_config, *p_num_protect, bta_av_co_cp_scmst); in ProcessSourceGetConfig()
1005 memcpy(p_codec_info, p_peer->codec_config, AVDT_CODEC_SIZE); in ProcessSourceGetConfig()
1029 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessSinkGetConfig() local
1030 if (p_peer == nullptr) { in ProcessSinkGetConfig()
1039 __func__, p_peer->addr.ToString().c_str(), p_peer->opened, in ProcessSinkGetConfig()
1040 p_peer->num_sources, p_peer->num_rx_sources, p_peer->num_sup_sources); in ProcessSinkGetConfig()
1042 p_peer->num_rx_sources++; in ProcessSinkGetConfig()
1047 if (p_peer->num_sup_sources < BTA_AV_CO_NUM_ELEMENTS(p_peer->sources)) { in ProcessSinkGetConfig()
1048 BtaAvCoSep* p_source = &p_peer->sources[p_peer->num_sup_sources++]; in ProcessSinkGetConfig()
1061 p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1067 if ((p_peer->num_rx_sources != p_peer->num_sources) && in ProcessSinkGetConfig()
1068 (p_peer->num_sup_sources != BTA_AV_CO_NUM_ELEMENTS(p_peer->sources))) { in ProcessSinkGetConfig()
1072 p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1076 if (p_peer->acceptor) { in ProcessSinkGetConfig()
1077 UpdateAllSelectableSinkCodecs(p_peer); in ProcessSinkGetConfig()
1078 if (p_peer->p_source == nullptr) { in ProcessSinkGetConfig()
1080 p_peer->p_source = in ProcessSinkGetConfig()
1081 FindPeerSource(p_peer, A2DP_SinkCodecIndex(p_peer->codec_config)); in ProcessSinkGetConfig()
1083 p_source = p_peer->p_source; in ProcessSinkGetConfig()
1086 __func__, p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1090 p_source = SelectSinkCodec(p_peer); in ProcessSinkGetConfig()
1093 p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1100 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in ProcessSinkGetConfig()
1108 p_peer->addr.ToString().c_str(), in ProcessSinkGetConfig()
1109 (p_peer->acceptor) ? "true" : "false", in ProcessSinkGetConfig()
1110 (p_peer->reconfig_needed) ? "true" : "false"); in ProcessSinkGetConfig()
1111 if (p_peer->acceptor) { in ProcessSinkGetConfig()
1112 if (p_peer->reconfig_needed) { in ProcessSinkGetConfig()
1114 bta_av_handle, p_peer->addr.ToString().c_str()); in ProcessSinkGetConfig()
1116 p_peer->codec_config, *p_num_protect, bta_av_co_cp_scmst); in ProcessSinkGetConfig()
1119 memcpy(p_codec_info, p_peer->codec_config, AVDT_CODEC_SIZE); in ProcessSinkGetConfig()
1150 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessSetConfig() local
1151 if (p_peer == nullptr) { in ProcessSetConfig()
1164 __func__, p_peer->addr.ToString().c_str(), p_peer->opened, in ProcessSetConfig()
1165 p_peer->num_sinks, p_peer->num_rx_sinks, p_peer->num_sup_sinks); in ProcessSetConfig()
1168 if (p_peer->opened) { in ProcessSetConfig()
1170 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1178 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1185 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1196 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1201 SaveNewCodecConfig(p_peer, p_codec_info, num_protect, p_protect_info); in ProcessSetConfig()
1206 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1210 if ((p_peer->GetCodecs() == nullptr) || in ProcessSetConfig()
1211 !SetCodecOtaConfig(p_peer, p_codec_info, num_protect, p_protect_info, in ProcessSetConfig()
1215 p_peer->addr.ToString().c_str()); in ProcessSetConfig()
1219 if (((num_protect == 1) && !p_peer->ContentProtectActive())) { in ProcessSetConfig()
1234 p_peer->addr.ToString().c_str(), status, category); in ProcessSetConfig()
1242 p_peer->acceptor = true; in ProcessSetConfig()
1243 p_peer->reconfig_needed = reconfig_needed; in ProcessSetConfig()
1245 p_peer->addr.ToString().c_str(), reconfig_needed); in ProcessSetConfig()
1257 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessOpen() local
1258 if (p_peer == nullptr) { in ProcessOpen()
1264 p_peer->opened = true; in ProcessOpen()
1265 p_peer->mtu = mtu; in ProcessOpen()
1269 active_peer_ = p_peer; in ProcessOpen()
1280 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessClose() local
1281 if (p_peer == nullptr) { in ProcessClose()
1288 if (active_peer_ == p_peer) { in ProcessClose()
1292 p_peer->Init(codec_priorities_); in ProcessClose()
1302 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in ProcessStart() local
1303 if (p_peer == nullptr) { in ProcessStart()
1311 A2DP_UsesRtpHeader(p_peer->ContentProtectActive(), p_codec_info); in ProcessStart()
1381 BtaAvCoPeer* p_peer = FindPeerAndUpdate(bta_av_handle, peer_address); in UpdateMtu() local
1382 if (p_peer == nullptr) { in UpdateMtu()
1388 p_peer->mtu = mtu; in UpdateMtu()
1405 BtaAvCoPeer* p_peer = FindPeer(peer_address); in SetActivePeer() local
1406 if (p_peer == nullptr) { in SetActivePeer()
1410 active_peer_ = p_peer; in SetActivePeer()
1428 const BtaAvCoPeer* p_peer = &peers_[i]; in GetPeerEncoderParameters() local
1429 if (!p_peer->opened) continue; in GetPeerEncoderParameters()
1430 if (p_peer->addr != peer_address) continue; in GetPeerEncoderParameters()
1431 if (p_peer->mtu < min_mtu) min_mtu = p_peer->mtu; in GetPeerEncoderParameters()
1470 BtaAvCoPeer* p_peer = FindPeer(peer_address); in SetCodecUserConfig() local
1471 if (p_peer == nullptr) { in SetCodecUserConfig()
1480 p_sink = FindPeerSink(p_peer, codec_user_config.codec_type); in SetCodecUserConfig()
1483 p_sink = p_peer->p_sink; in SetCodecUserConfig()
1488 __func__, p_peer->addr.ToString().c_str(), in SetCodecUserConfig()
1495 GetPeerEncoderParameters(p_peer->addr, &peer_params); in SetCodecUserConfig()
1496 if (!p_peer->GetCodecs()->setCodecUserConfig( in SetCodecUserConfig()
1506 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in SetCodecUserConfig()
1510 p_sink = SelectSourceCodec(p_peer); in SetCodecUserConfig()
1513 __func__, p_peer->addr.ToString().c_str()); in SetCodecUserConfig()
1518 if ((p_peer->num_rx_sinks != p_peer->num_sinks) && in SetCodecUserConfig()
1519 (p_peer->num_sup_sinks != BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks))) { in SetCodecUserConfig()
1522 __func__, p_peer->addr.ToString().c_str()); in SetCodecUserConfig()
1527 p_peer->acceptor = false; in SetCodecUserConfig()
1529 p_peer->BtaAvHandle()); in SetCodecUserConfig()
1530 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecUserConfig()
1531 p_peer->codec_config, num_protect, bta_av_co_cp_scmst); in SetCodecUserConfig()
1540 if (p_peer != nullptr) { in SetCodecUserConfig()
1541 return ReportSourceCodecState(p_peer); in SetCodecUserConfig()
1557 BtaAvCoPeer* p_peer = active_peer_; in SetCodecAudioConfig() local
1558 if (p_peer == nullptr) { in SetCodecAudioConfig()
1564 const BtaAvCoSep* p_sink = p_peer->p_sink; in SetCodecAudioConfig()
1567 __func__, p_peer->addr.ToString().c_str()); in SetCodecAudioConfig()
1572 GetPeerEncoderParameters(p_peer->addr, &peer_params); in SetCodecAudioConfig()
1573 if (!p_peer->GetCodecs()->setCodecAudioConfig( in SetCodecAudioConfig()
1581 if (ContentProtectEnabled() && p_peer->ContentProtectActive()) { in SetCodecAudioConfig()
1585 SaveNewCodecConfig(p_peer, result_codec_config, p_sink->num_protect, in SetCodecAudioConfig()
1589 if ((p_peer->num_rx_sinks != p_peer->num_sinks) && in SetCodecAudioConfig()
1590 (p_peer->num_sup_sinks != BTA_AV_CO_NUM_ELEMENTS(p_peer->sinks))) { in SetCodecAudioConfig()
1593 __func__, p_peer->addr.ToString().c_str()); in SetCodecAudioConfig()
1595 p_peer->acceptor = false; in SetCodecAudioConfig()
1597 p_peer->BtaAvHandle()); in SetCodecAudioConfig()
1598 BTA_AvReconfig(p_peer->BtaAvHandle(), true, p_sink->sep_info_idx, in SetCodecAudioConfig()
1599 p_peer->codec_config, num_protect, bta_av_co_cp_scmst); in SetCodecAudioConfig()
1606 return ReportSourceCodecState(p_peer); in SetCodecAudioConfig()
1612 bool BtaAvCo::ReportSourceCodecState(BtaAvCoPeer* p_peer) { in ReportSourceCodecState() argument
1618 p_peer->addr.ToString().c_str()); in ReportSourceCodecState()
1619 A2dpCodecs* codecs = p_peer->GetCodecs(); in ReportSourceCodecState()
1627 __func__, p_peer->addr.ToString().c_str()); in ReportSourceCodecState()
1631 p_peer->addr.ToString().c_str(), in ReportSourceCodecState()
1633 btif_av_report_source_codec_state(p_peer->addr, codec_config, in ReportSourceCodecState()
1639 bool BtaAvCo::ReportSinkCodecState(BtaAvCoPeer* p_peer) { in ReportSinkCodecState() argument
1641 p_peer->addr.ToString().c_str()); in ReportSinkCodecState()
1729 const BtaAvCoSep* BtaAvCo::SelectSourceCodec(BtaAvCoPeer* p_peer) { in SelectSourceCodec() argument
1735 UpdateAllSelectableSourceCodecs(p_peer); in SelectSourceCodec()
1738 for (const auto& iter : p_peer->GetCodecs()->orderedSourceCodecs()) { in SelectSourceCodec()
1740 p_sink = AttemptSourceCodecSelection(*iter, p_peer); in SelectSourceCodec()
1750 ReportSourceCodecState(p_peer); in SelectSourceCodec()
1755 const BtaAvCoSep* BtaAvCo::SelectSinkCodec(BtaAvCoPeer* p_peer) { in SelectSinkCodec() argument
1761 UpdateAllSelectableSinkCodecs(p_peer); in SelectSinkCodec()
1764 for (const auto& iter : p_peer->GetCodecs()->orderedSinkCodecs()) { in SelectSinkCodec()
1766 p_source = AttemptSinkCodecSelection(*iter, p_peer); in SelectSinkCodec()
1776 ReportSinkCodecState(p_peer); in SelectSinkCodec()
1781 BtaAvCoSep* BtaAvCo::FindPeerSink(BtaAvCoPeer* p_peer, in FindPeerSink() argument
1785 p_peer->addr.ToString().c_str()); in FindPeerSink()
1790 for (size_t index = 0; index < p_peer->num_sup_sinks; index++) { in FindPeerSink()
1791 BtaAvCoSep* p_sink = &p_peer->sinks[index]; in FindPeerSink()
1809 BtaAvCoSep* BtaAvCo::FindPeerSource(BtaAvCoPeer* p_peer, in FindPeerSource() argument
1813 p_peer->addr.ToString().c_str()); in FindPeerSource()
1818 for (size_t index = 0; index < p_peer->num_sup_sources; index++) { in FindPeerSource()
1819 BtaAvCoSep* p_source = &p_peer->sources[index]; in FindPeerSource()
1838 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer) { in AttemptSourceCodecSelection() argument
1844 BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in AttemptSourceCodecSelection()
1850 if (!p_peer->GetCodecs()->setCodecConfig( in AttemptSourceCodecSelection()
1857 p_peer->p_sink = p_sink; in AttemptSourceCodecSelection()
1859 SaveNewCodecConfig(p_peer, new_codec_config, p_sink->num_protect, in AttemptSourceCodecSelection()
1866 const A2dpCodecConfig& codec_config, BtaAvCoPeer* p_peer) { in AttemptSinkCodecSelection() argument
1872 BtaAvCoSep* p_source = FindPeerSource(p_peer, codec_config.codecIndex()); in AttemptSinkCodecSelection()
1878 if (!p_peer->GetCodecs()->setSinkCodecConfig( in AttemptSinkCodecSelection()
1885 p_peer->p_source = p_source; in AttemptSinkCodecSelection()
1887 SaveNewCodecConfig(p_peer, new_codec_config, p_source->num_protect, in AttemptSinkCodecSelection()
1893 size_t BtaAvCo::UpdateAllSelectableSourceCodecs(BtaAvCoPeer* p_peer) { in UpdateAllSelectableSourceCodecs() argument
1894 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateAllSelectableSourceCodecs()
1897 for (const auto& iter : p_peer->GetCodecs()->orderedSourceCodecs()) { in UpdateAllSelectableSourceCodecs()
1900 if (UpdateSelectableSourceCodec(*iter, p_peer)) { in UpdateAllSelectableSourceCodecs()
1908 BtaAvCoPeer* p_peer) { in UpdateSelectableSourceCodec() argument
1909 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateSelectableSourceCodec()
1912 const BtaAvCoSep* p_sink = FindPeerSink(p_peer, codec_config.codecIndex()); in UpdateSelectableSourceCodec()
1917 if (!p_peer->GetCodecs()->setPeerSinkCodecCapabilities(p_sink->codec_caps)) { in UpdateSelectableSourceCodec()
1919 __func__, p_peer->addr.ToString().c_str(), in UpdateSelectableSourceCodec()
1926 size_t BtaAvCo::UpdateAllSelectableSinkCodecs(BtaAvCoPeer* p_peer) { in UpdateAllSelectableSinkCodecs() argument
1927 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateAllSelectableSinkCodecs()
1930 for (const auto& iter : p_peer->GetCodecs()->orderedSinkCodecs()) { in UpdateAllSelectableSinkCodecs()
1933 if (UpdateSelectableSinkCodec(*iter, p_peer)) { in UpdateAllSelectableSinkCodecs()
1941 BtaAvCoPeer* p_peer) { in UpdateSelectableSinkCodec() argument
1942 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in UpdateSelectableSinkCodec()
1946 FindPeerSource(p_peer, codec_config.codecIndex()); in UpdateSelectableSinkCodec()
1951 if (!p_peer->GetCodecs()->setPeerSourceCodecCapabilities( in UpdateSelectableSinkCodec()
1954 __func__, p_peer->addr.ToString().c_str(), in UpdateSelectableSinkCodec()
1961 void BtaAvCo::SaveNewCodecConfig(BtaAvCoPeer* p_peer, in SaveNewCodecConfig() argument
1965 APPL_TRACE_DEBUG("%s: peer %s", __func__, p_peer->addr.ToString().c_str()); in SaveNewCodecConfig()
1972 memcpy(p_peer->codec_config, new_codec_config, AVDT_CODEC_SIZE); in SaveNewCodecConfig()
1977 p_peer->SetContentProtectActive(cp_active); in SaveNewCodecConfig()
1981 bool BtaAvCo::SetCodecOtaConfig(BtaAvCoPeer* p_peer, in SetCodecOtaConfig() argument
1992 p_peer->addr.ToString().c_str()); in SetCodecOtaConfig()
2000 FindPeerSink(p_peer, A2DP_SourceCodecIndex(p_ota_codec_config)); in SetCodecOtaConfig()
2001 if ((p_peer->num_sup_sinks > 0) && (p_sink == nullptr)) { in SetCodecOtaConfig()
2006 __func__, p_peer->addr.ToString().c_str()); in SetCodecOtaConfig()
2011 GetPeerEncoderParameters(p_peer->addr, &peer_params); in SetCodecOtaConfig()
2012 if (!p_peer->GetCodecs()->setCodecOtaConfig( in SetCodecOtaConfig()
2016 p_peer->addr.ToString().c_str()); in SetCodecOtaConfig()
2026 p_peer->p_sink = p_sink; in SetCodecOtaConfig()
2027 SaveNewCodecConfig(p_peer, result_codec_config, num_protect, in SetCodecOtaConfig()
2034 ReportSourceCodecState(p_peer); in SetCodecOtaConfig()
2182 BtaAvCoPeer* p_peer = bta_av_co_cb.FindPeer(peer_address); in bta_av_co_content_protect_is_active() local
2183 CHECK(p_peer != nullptr); in bta_av_co_content_protect_is_active()
2184 return p_peer->ContentProtectActive(); in bta_av_co_content_protect_is_active()