Lines Matching refs:btif_av_sink
656 static BtifAvSink btif_av_sink; variable
697 return btif_av_sink.FindPeer(peer_address); in btif_av_sink_find_peer()
701 if (btif_av_sink.Enabled()) return btif_av_sink_find_peer(peer_address); in btif_av_find_peer()
707 if (btif_av_sink.Enabled()) in btif_av_find_active_peer()
708 return btif_av_sink_find_peer(btif_av_sink.ActivePeer()); in btif_av_find_active_peer()
924 return btif_av_sink.ActivePeer(); in ActivePeerAddress()
1174 base::Unretained(&btif_av_sink), RawAddress::kEmpty, in Cleanup()
1353 btif_av_sink.SetActivePeer(RawAddress::kEmpty, in OnEnter()
1364 base::Unretained(&btif_av_sink))); in OnEnter()
1411 can_connect = btif_av_sink.AllowedToConnect(peer_.PeerAddress()); in ProcessEvent()
1450 can_connect = btif_av_sink.AllowedToConnect(peer_.PeerAddress()); in ProcessEvent()
1464 } else if (btif_av_sink.Enabled()) { in ProcessEvent()
1513 can_connect = btif_av_sink.AllowedToConnect(peer_.PeerAddress()); in ProcessEvent()
1778 if (peer_.IsSource() && btif_av_sink.ActivePeer().IsEmpty()) { in OnEnter()
1780 if (!btif_av_sink.SetActivePeer(peer_.PeerAddress(), in OnEnter()
2275 if (btif_av_sink.Enabled() && in btif_av_sink_initiate_av_open_timer_timeout()
2276 btif_av_sink.FindPeer(peer->PeerAddress()) == peer) { in btif_av_sink_initiate_av_open_timer_timeout()
2299 } else if (btif_av_sink.Enabled()) { in btif_report_connection_state()
2301 base::Bind(btif_av_sink.Callbacks()->connection_state_cb, in btif_report_connection_state()
2324 } else if (btif_av_sink.Enabled()) { in btif_report_audio_state()
2326 base::Bind(btif_av_sink.Callbacks()->audio_state_cb, in btif_report_audio_state()
2359 if (btif_av_sink.Enabled()) { in btif_av_report_sink_audio_config_state()
2361 base::Bind(btif_av_sink.Callbacks()->audio_config_cb, in btif_av_report_sink_audio_config_state()
2392 peer = btif_av_sink.FindOrCreatePeer(peer_address, bta_handle); in btif_av_handle_event()
2398 peer = btif_av_sink.FindPeerByHandle(bta_handle); in btif_av_handle_event()
2449 btif_av_sink.BtaHandleRegistered(peer_id, bta_handle); in btif_av_handle_bta_av_event()
2516 peer_address = btif_av_sink.ActivePeer(); in btif_av_handle_bta_av_event()
2571 BtifAvPeer* peer = btif_av_sink_find_peer(btif_av_sink.ActivePeer()); in bta_av_sink_media_callback()
2627 return btif_av_sink.Init(callbacks); in init_sink()
2654 peer = btif_av_sink.FindOrCreatePeer(*peer_address, kBtaHandleUnknown); in connect_int()
2690 if (!btif_av_sink.SetActivePeer(peer_address, in set_active_peer_int()
2721 if (!btif_av_sink.Enabled()) { in sink_connect_src()
2750 if (!btif_av_sink.Enabled()) { in sink_disconnect_src()
2831 base::Unretained(&btif_av_sink))); in cleanup_sink()
2854 RawAddress btif_av_sink_active_peer(void) { return btif_av_sink.ActivePeer(); } in btif_av_sink_active_peer()
2856 bool btif_av_is_sink_enabled(void) { return btif_av_sink.Enabled(); } in btif_av_is_sink_enabled()
3027 btif_av_sink.RegisterAllBtaHandles(); in btif_av_sink_execute_service()
3032 btif_av_sink.DeregisterAllBtaHandles(); in btif_av_sink_execute_service()
3131 } else if (btif_av_sink.Enabled()) { in btif_av_acl_disconnected()
3192 bool enabled = btif_av_sink.Enabled(); in btif_debug_av_sink_dump()
3197 btif_av_sink.ActivePeer().ToString().c_str()); in btif_debug_av_sink_dump()
3199 for (auto it : btif_av_sink.Peers()) { in btif_debug_av_sink_dump()