Lines Matching refs:BtifAvPeer

144 class BtifAvPeer;
173 BtifAvPeer& peer_;
185 BtifAvPeer& peer_;
197 BtifAvPeer& peer_;
209 BtifAvPeer& peer_;
221 BtifAvPeer& peer_;
224 BtifAvStateMachine(BtifAvPeer& btif_av_peer) : peer_(btif_av_peer) { in BtifAvStateMachine()
239 BtifAvPeer& Peer() { return peer_; } in Peer()
242 BtifAvPeer& peer_;
250 class BtifAvPeer { class
260 BtifAvPeer(const RawAddress& peer_address, uint8_t peer_sep,
262 ~BtifAvPeer();
416 BtifAvPeer* FindPeer(const RawAddress& peer_address);
417 BtifAvPeer* FindPeerByHandle(tBTA_AV_HNDL bta_handle);
418 BtifAvPeer* FindPeerByPeerId(uint8_t peer_id);
419 BtifAvPeer* FindOrCreatePeer(const RawAddress& peer_address,
454 BtifAvPeer* peer = FindPeer(peer_address); in IsPeerSilenced()
478 BtifAvPeer* peer = FindPeer(peer_address); in SetSilencePeer()
541 BtifAvPeer* peer = FindPeer(peer_address); in SetActivePeer()
598 const std::map<RawAddress, BtifAvPeer*>& Peers() const { return peers_; } in Peers()
603 BtifAvPeer* popPeer(const RawAddress& peer_address);
604 void AddPeer(BtifAvPeer* peer);
614 std::map<RawAddress, BtifAvPeer*> peers_;
647 BtifAvPeer* FindPeer(const RawAddress& peer_address);
648 BtifAvPeer* FindPeerByHandle(tBTA_AV_HNDL bta_handle);
649 BtifAvPeer* FindPeerByPeerId(uint8_t peer_id);
650 BtifAvPeer* FindOrCreatePeer(const RawAddress& peer_address,
717 BtifAvPeer* peer = FindPeer(peer_address); in SetActivePeer()
755 const std::map<RawAddress, BtifAvPeer*>& Peers() const { return peers_; } in Peers()
760 BtifAvPeer* popPeer(const RawAddress& peer_address);
761 void AddPeer(BtifAvPeer* peer);
770 std::map<RawAddress, BtifAvPeer*> peers_;
830 static BtifAvPeer* btif_av_source_find_peer(const RawAddress& peer_address) { in btif_av_source_find_peer()
833 static BtifAvPeer* btif_av_sink_find_peer(const RawAddress& peer_address) { in btif_av_sink_find_peer()
836 static BtifAvPeer* btif_av_find_peer(const RawAddress& peer_address, in btif_av_find_peer()
840 BtifAvPeer* sourcePeer = btif_av_source_find_peer(peer_address); in btif_av_find_peer()
846 BtifAvPeer* sinkPeer = btif_av_sink_find_peer(peer_address); in btif_av_find_peer()
852 BtifAvPeer* sourcePeer = btif_av_source_find_peer(peer_address); in btif_av_find_peer()
858 BtifAvPeer* sinkPeer = btif_av_sink_find_peer(peer_address); in btif_av_find_peer()
867 BtifAvPeer* peer = nullptr; in btif_av_find_peer()
878 static BtifAvPeer* btif_av_find_active_peer(const A2dpType local_a2dp_type) { in btif_av_find_active_peer()
888 BtifAvPeer* peer = nullptr; in btif_av_find_active_peer()
903 BtifAvPeer* peer = nullptr; in btif_av_find_by_handle()
1080 BtifAvPeer::BtifAvPeer(const RawAddress& peer_address, uint8_t peer_sep, in BtifAvPeer() function in BtifAvPeer
1093 BtifAvPeer::~BtifAvPeer() { alarm_free(av_open_on_rc_timer_); } in ~BtifAvPeer()
1095 std::string BtifAvPeer::FlagsToString() const { in FlagsToString()
1098 if (flags_ & BtifAvPeer::kFlagLocalSuspendPending) { in FlagsToString()
1102 if (flags_ & BtifAvPeer::kFlagRemoteSuspend) { in FlagsToString()
1106 if (flags_ & BtifAvPeer::kFlagPendingStart) { in FlagsToString()
1110 if (flags_ & BtifAvPeer::kFlagPendingStop) { in FlagsToString()
1119 bt_status_t BtifAvPeer::Init() { in Init()
1128 void BtifAvPeer::Cleanup() { in Cleanup()
1134 bool BtifAvPeer::CanBeDeleted() const { in CanBeDeleted()
1140 const RawAddress& BtifAvPeer::ActivePeerAddress() const { in ActivePeerAddress()
1163 bool BtifAvPeer::IsConnected() const { in IsConnected()
1169 bool BtifAvPeer::IsStreaming() const { in IsStreaming()
1231 BtifAvPeer* BtifAvSource::FindPeer(const RawAddress& peer_address) { in FindPeer()
1237 BtifAvPeer* BtifAvSource::FindPeerByHandle(tBTA_AV_HNDL bta_handle) { in FindPeerByHandle()
1239 BtifAvPeer* peer = it.second; in FindPeerByHandle()
1247 BtifAvPeer* BtifAvSource::FindPeerByPeerId(uint8_t peer_id) { in FindPeerByPeerId()
1249 BtifAvPeer* peer = it.second; in FindPeerByPeerId()
1257 BtifAvPeer* BtifAvSource::FindOrCreatePeer(const RawAddress& peer_address, in FindOrCreatePeer()
1262 BtifAvPeer* peer = FindPeer(peer_address); in FindOrCreatePeer()
1300 peer = new BtifAvPeer(peer_address, AVDT_TSEP_SNK, bta_handle, peer_id); in FindOrCreatePeer()
1319 const BtifAvPeer* peer = it.second; in AllowedToConnect()
1363 BtifAvPeer* peer = it->second; in DeleteIdlePeers()
1379 BtifAvPeer* peer = it->second; in CleanupAllPeers()
1406 BtifAvPeer* peer = FindPeerByPeerId(peer_id); in BtaHandleRegistered()
1420 BtifAvPeer* BtifAvSource::popPeer(const RawAddress& peer_address) { in popPeer()
1423 BtifAvPeer* peer = it->second; in popPeer()
1430 void BtifAvSource::AddPeer(BtifAvPeer* peer) { in AddPeer()
1484 BtifAvPeer* BtifAvSink::FindPeer(const RawAddress& peer_address) { in FindPeer()
1490 BtifAvPeer* BtifAvSink::FindPeerByHandle(tBTA_AV_HNDL bta_handle) { in FindPeerByHandle()
1492 BtifAvPeer* peer = it.second; in FindPeerByHandle()
1500 BtifAvPeer* BtifAvSink::FindPeerByPeerId(uint8_t peer_id) { in FindPeerByPeerId()
1502 BtifAvPeer* peer = it.second; in FindPeerByPeerId()
1510 BtifAvPeer* BtifAvSink::FindOrCreatePeer(const RawAddress& peer_address, in FindOrCreatePeer()
1514 BtifAvPeer* peer = FindPeer(peer_address); in FindOrCreatePeer()
1553 peer = new BtifAvPeer(peer_address, AVDT_TSEP_SRC, bta_handle, peer_id); in FindOrCreatePeer()
1571 const BtifAvPeer* peer = it.second; in AllowedToConnect()
1621 BtifAvPeer* peer = it->second; in DeleteIdlePeers()
1637 BtifAvPeer* peer = it->second; in CleanupAllPeers()
1663 BtifAvPeer* peer = FindPeerByPeerId(peer_id); in BtaHandleRegistered()
1677 BtifAvPeer* BtifAvSink::popPeer(const RawAddress& peer_address) { in popPeer()
1680 BtifAvPeer* peer = it->second; in popPeer()
1687 void BtifAvSink::AddPeer(BtifAvPeer* peer) { in AddPeer()
1844 peer_.AvOpenOnRcTimer(), BtifAvPeer::kTimeoutAvOpenOnRcMs, in ProcessEvent()
1848 peer_.AvOpenOnRcTimer(), BtifAvPeer::kTimeoutAvOpenOnRcMs, in ProcessEvent()
1854 peer_.AvOpenOnRcTimer(), BtifAvPeer::kTimeoutAvOpenOnRcMs, in ProcessEvent()
1858 peer_.AvOpenOnRcTimer(), BtifAvPeer::kTimeoutAvOpenOnRcMs, in ProcessEvent()
1914 BtifAvPeer* tmp_peer = nullptr; in ProcessEvent()
2117 BtifAvPeer* tmp_peer = nullptr; in ProcessEvent()
2314 peer_.ClearFlags(BtifAvPeer::kFlagLocalSuspendPending | in OnEnter()
2315 BtifAvPeer::kFlagPendingStart | in OnEnter()
2316 BtifAvPeer::kFlagPendingStop); in OnEnter()
2335 peer_.ClearFlags(BtifAvPeer::kFlagPendingStart); in OnExit()
2347 peer_.CheckFlags(BtifAvPeer::kFlagRemoteSuspend) && in ProcessEvent()
2351 peer_.ClearFlags(BtifAvPeer::kFlagRemoteSuspend); in ProcessEvent()
2372 peer_.SetFlags(BtifAvPeer::kFlagPendingStart); in ProcessEvent()
2390 if (!peer_.CheckFlags(BtifAvPeer::kFlagPendingStart | in ProcessEvent()
2391 BtifAvPeer::kFlagRemoteSuspend)) { in ProcessEvent()
2407 peer_.ClearFlags(BtifAvPeer::kFlagPendingStart); in ProcessEvent()
2452 if (peer_.CheckFlags(BtifAvPeer::kFlagPendingStart)) { in ProcessEvent()
2480 if (peer_.CheckFlags(BtifAvPeer::kFlagPendingStart)) { in ProcessEvent()
2483 peer_.ClearFlags(BtifAvPeer::kFlagPendingStart); in ProcessEvent()
2503 if (peer_.CheckFlags(BtifAvPeer::kFlagPendingStart)) { in ProcessEvent()
2523 if (peer_.CheckFlags(BtifAvPeer::kFlagRemoteSuspend)) { in ProcessEvent()
2526 peer_.ClearFlags(BtifAvPeer::kFlagRemoteSuspend); in ProcessEvent()
2554 peer_.ClearFlags(BtifAvPeer::kFlagRemoteSuspend); in OnEnter()
2598 if (peer_.CheckFlags(BtifAvPeer::kFlagLocalSuspendPending)) { in ProcessEvent()
2604 peer_.SetFlags(BtifAvPeer::kFlagLocalSuspendPending); in ProcessEvent()
2608 peer_.ClearFlags(BtifAvPeer::kFlagRemoteSuspend); in ProcessEvent()
2665 peer_.ClearFlags(BtifAvPeer::kFlagLocalSuspendPending); in ProcessEvent()
2681 if (!peer_.CheckFlags(BtifAvPeer::kFlagLocalSuspendPending)) in ProcessEvent()
2682 peer_.SetFlags(BtifAvPeer::kFlagRemoteSuspend); in ProcessEvent()
2698 peer_.SetFlags(BtifAvPeer::kFlagPendingStop); in ProcessEvent()
2699 peer_.ClearFlags(BtifAvPeer::kFlagLocalSuspendPending); in ProcessEvent()
2730 peer_.SetFlags(BtifAvPeer::kFlagPendingStop); in ProcessEvent()
2748 if (peer_.CheckFlags(BtifAvPeer::kFlagLocalSuspendPending | in ProcessEvent()
2749 BtifAvPeer::kFlagRemoteSuspend | in ProcessEvent()
2750 BtifAvPeer::kFlagPendingStop)) { in ProcessEvent()
2869 BtifAvPeer* peer = (BtifAvPeer*)data; in btif_av_source_initiate_av_open_timer_timeout()
2906 BtifAvPeer* peer = (BtifAvPeer*)data; in btif_av_sink_initiate_av_open_timer_timeout()
2937 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_report_connection_state()
2981 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_report_audio_state()
3069 BtifAvPeer* peer = btif_av_find_peer(peer_address, A2dpType::kSource); in btif_av_query_mandatory_codec_priority()
3085 static BtifAvPeer* btif_av_handle_both_peer(uint8_t peer_sep, in btif_av_handle_both_peer()
3088 BtifAvPeer* peer = nullptr; in btif_av_handle_both_peer()
3176 BtifAvPeer* peer = nullptr; in btif_av_handle_event()
3451 BtifAvPeer* peer = btif_av_sink_find_peer(peer_address); in bta_av_sink_media_callback()
3543 BtifAvPeer* peer = nullptr; in connect_int()
3579 BtifAvPeer* peer = nullptr; in set_active_peer_int()
3829 const BtifAvPeer* peer = it.second; in src_do_suspend_in_main_thread()
3884 BtifAvPeer* peer = btif_av_find_active_peer(local_a2dp_type); in btif_av_stream_ready()
3895 if (peer->CheckFlags(BtifAvPeer::kFlagRemoteSuspend | in btif_av_stream_ready()
3896 BtifAvPeer::kFlagPendingStop)) { in btif_av_stream_ready()
3904 BtifAvPeer* peer = btif_av_find_active_peer(local_a2dp_type); in btif_av_stream_started_ready()
3912 if (peer->CheckFlags(BtifAvPeer::kFlagLocalSuspendPending | in btif_av_stream_started_ready()
3913 BtifAvPeer::kFlagRemoteSuspend | in btif_av_stream_started_ready()
3914 BtifAvPeer::kFlagPendingStop)) { in btif_av_stream_started_ready()
4028 BtifAvPeer* peer = btif_av_find_active_peer(local_a2dp_type); in btif_av_is_connected()
4040 BtifAvPeer* peer = btif_av_find_active_peer(local_a2dp_type); in btif_av_get_peer_sep()
4054 BtifAvPeer* peer = btif_av_find_active_peer(local_a2dp_type); in btif_av_clear_remote_suspend_flag()
4061 peer->ClearFlags(BtifAvPeer::kFlagRemoteSuspend); in btif_av_clear_remote_suspend_flag()
4070 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_av_is_peer_edr()
4087 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_av_peer_supports_3mbps()
4102 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_av_peer_prefers_mandatory_codec()
4117 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_av_acl_disconnected()
4136 static void btif_debug_av_peer_dump(int fd, const BtifAvPeer& peer) { in btif_debug_av_peer_dump()
4190 const BtifAvPeer* peer = it.second; in btif_debug_av_source_dump()
4206 const BtifAvPeer* peer = it.second; in btif_debug_av_sink_dump()
4222 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_av_set_audio_delay()
4232 BtifAvPeer* peer = btif_av_find_active_peer(local_a2dp_type); in btif_av_get_audio_delay()
4289 BtifAvPeer* peer = btif_av_find_peer(peer_address, local_a2dp_type); in btif_av_is_connected_addr()
4301 BtifAvPeer* peer = btif_av_source_find_peer(peer_address); in btif_av_peer_is_connected_sink()
4313 BtifAvPeer* peer = btif_av_sink_find_peer(peer_address); in btif_av_peer_is_connected_source()
4325 BtifAvPeer* peer = btif_av_source_find_peer(peer_address); in btif_av_peer_is_sink()
4335 BtifAvPeer* peer = btif_av_sink_find_peer(peer_address); in btif_av_peer_is_source()