Lines Matching refs:btif_av_sink

663 static BtifAvSink btif_av_sink;  variable
708 return btif_av_sink.FindPeer(peer_address); in btif_av_sink_find_peer()
712 if (btif_av_sink.Enabled()) return btif_av_sink_find_peer(peer_address); in btif_av_find_peer()
718 if (btif_av_sink.Enabled()) in btif_av_find_active_peer()
719 return btif_av_sink_find_peer(btif_av_sink.ActivePeer()); in btif_av_find_active_peer()
937 return btif_av_sink.ActivePeer(); in ActivePeerAddress()
1210 base::Unretained(&btif_av_sink), RawAddress::kEmpty, in Cleanup()
1404 btif_av_sink.SetActivePeer(RawAddress::kEmpty, in OnEnter()
1415 base::Unretained(&btif_av_sink))); in OnEnter()
1462 can_connect = btif_av_sink.AllowedToConnect(peer_.PeerAddress()); in ProcessEvent()
1502 can_connect = btif_av_sink.AllowedToConnect(peer_.PeerAddress()); in ProcessEvent()
1516 } else if (btif_av_sink.Enabled()) { in ProcessEvent()
1565 can_connect = btif_av_sink.AllowedToConnect(peer_.PeerAddress()); in ProcessEvent()
1831 if (peer_.IsSource() && btif_av_sink.ActivePeer().IsEmpty()) { in OnEnter()
1833 if (!btif_av_sink.SetActivePeer(peer_.PeerAddress(), in OnEnter()
2363 if (btif_av_sink.Enabled() && in btif_av_sink_initiate_av_open_timer_timeout()
2364 btif_av_sink.FindPeer(peer->PeerAddress()) == peer) { in btif_av_sink_initiate_av_open_timer_timeout()
2387 } else if (btif_av_sink.Enabled()) { in btif_report_connection_state()
2389 base::Bind(btif_av_sink.Callbacks()->connection_state_cb, in btif_report_connection_state()
2412 } else if (btif_av_sink.Enabled()) { in btif_report_audio_state()
2414 base::Bind(btif_av_sink.Callbacks()->audio_state_cb, in btif_report_audio_state()
2467 if (btif_av_sink.Enabled()) { in btif_av_report_sink_audio_config_state()
2469 base::Bind(btif_av_sink.Callbacks()->audio_config_cb, in btif_av_report_sink_audio_config_state()
2534 peer = btif_av_sink.FindOrCreatePeer(peer_address, bta_handle); in btif_av_handle_event()
2540 peer = btif_av_sink.FindPeerByHandle(bta_handle); in btif_av_handle_event()
2593 btif_av_sink.BtaHandleRegistered(peer_id, bta_handle); in btif_av_handle_bta_av_event()
2665 peer_address = btif_av_sink.ActivePeer(); in btif_av_handle_bta_av_event()
2789 return btif_av_sink.Init(callbacks, max_connected_audio_devices); in init_sink()
2814 peer = btif_av_sink.FindOrCreatePeer(*peer_address, kBtaHandleUnknown); in connect_int()
2857 if (!btif_av_sink.SetActivePeer(peer_address, in set_active_peer_int()
2889 if (!btif_av_sink.Enabled()) { in sink_connect_src()
2918 if (!btif_av_sink.Enabled()) { in sink_disconnect_src()
2934 if (!btif_av_sink.Enabled()) { in sink_set_active_device()
3026 base::Unretained(&btif_av_sink))); in cleanup_sink()
3053 RawAddress btif_av_sink_active_peer(void) { return btif_av_sink.ActivePeer(); } in btif_av_sink_active_peer()
3055 bool btif_av_is_sink_enabled(void) { return btif_av_sink.Enabled(); } in btif_av_is_sink_enabled()
3240 btif_av_sink.RegisterAllBtaHandles(); in btif_av_sink_execute_service()
3245 btif_av_sink.DeregisterAllBtaHandles(); in btif_av_sink_execute_service()
3356 } else if (btif_av_sink.Enabled()) { in btif_av_acl_disconnected()
3420 bool enabled = btif_av_sink.Enabled(); in btif_debug_av_sink_dump()
3425 btif_av_sink.ActivePeer().ToString().c_str()); in btif_debug_av_sink_dump()
3427 for (auto it : btif_av_sink.Peers()) { in btif_debug_av_sink_dump()