Lines Matching refs:BtifAvStateMachine

154 class BtifAvStateMachine : public bluetooth::common::StateMachine {  class
166 StateIdle(BtifAvStateMachine& sm) in StateIdle()
178 StateOpening(BtifAvStateMachine& sm) in StateOpening()
190 StateOpened(BtifAvStateMachine& sm) in StateOpened()
202 StateStarted(BtifAvStateMachine& sm) in StateStarted()
214 StateClosing(BtifAvStateMachine& sm) in StateClosing()
224 BtifAvStateMachine(BtifAvPeer& btif_av_peer) : peer_(btif_av_peer) { in BtifAvStateMachine() function in BtifAvStateMachine
306 BtifAvStateMachine& StateMachine() { return state_machine_; } in StateMachine()
307 const BtifAvStateMachine& StateMachine() const { return state_machine_; } in StateMachine()
377 BtifAvStateMachine state_machine_;
1136 (state_machine_.StateId() == BtifAvStateMachine::kStateIdle) && in CanBeDeleted()
1137 (state_machine_.PreviousStateId() != BtifAvStateMachine::kStateInvalid)); in CanBeDeleted()
1165 return ((state == BtifAvStateMachine::kStateOpened) || in IsConnected()
1166 (state == BtifAvStateMachine::kStateStarted)); in IsConnected()
1171 return (state == BtifAvStateMachine::kStateStarted); in IsStreaming()
1321 case BtifAvStateMachine::kStateOpening: in AllowedToConnect()
1322 case BtifAvStateMachine::kStateOpened: in AllowedToConnect()
1323 case BtifAvStateMachine::kStateStarted: in AllowedToConnect()
1573 case BtifAvStateMachine::kStateOpening: in AllowedToConnect()
1574 case BtifAvStateMachine::kStateOpened: in AllowedToConnect()
1575 case BtifAvStateMachine::kStateStarted: in AllowedToConnect()
1585 case BtifAvStateMachine::kStateClosing: in AllowedToConnect()
1586 case BtifAvStateMachine::kStateIdle: in AllowedToConnect()
1693 void BtifAvStateMachine::StateIdle::OnEnter() { in OnEnter()
1730 void BtifAvStateMachine::StateIdle::OnExit() { in OnExit()
1734 bool BtifAvStateMachine::StateIdle::ProcessEvent(uint32_t event, void* p_data) { in ProcessEvent()
1747 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
1758 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
1784 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateOpening); in ProcessEvent()
1960 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
1976 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateOpened); in ProcessEvent()
1983 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2025 void BtifAvStateMachine::StateOpening::OnEnter() { in OnEnter()
2039 void BtifAvStateMachine::StateOpening::OnExit() { in OnExit()
2043 bool BtifAvStateMachine::StateOpening::ProcessEvent(uint32_t event, in ProcessEvent()
2068 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2083 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2101 av_state = BtifAvStateMachine::kStateOpened; in ProcessEvent()
2183 av_state = BtifAvStateMachine::kStateIdle; in ProcessEvent()
2271 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2287 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2311 void BtifAvStateMachine::StateOpened::OnEnter() { in OnEnter()
2332 void BtifAvStateMachine::StateOpened::OnExit() { in OnExit()
2338 bool BtifAvStateMachine::StateOpened::ProcessEvent(uint32_t event, in ProcessEvent()
2424 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateStarted); in ProcessEvent()
2441 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateClosing); in ProcessEvent()
2474 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2550 void BtifAvStateMachine::StateStarted::OnEnter() { in OnEnter()
2565 void BtifAvStateMachine::StateStarted::OnExit() { in OnExit()
2569 bool BtifAvStateMachine::StateStarted::ProcessEvent(uint32_t event, in ProcessEvent()
2645 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateClosing); in ProcessEvent()
2691 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateOpened); in ProcessEvent()
2717 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateOpened); in ProcessEvent()
2744 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2785 void BtifAvStateMachine::StateClosing::OnEnter() { in OnEnter()
2799 void BtifAvStateMachine::StateClosing::OnExit() { in OnExit()
2803 bool BtifAvStateMachine::StateClosing::ProcessEvent(uint32_t event, in ProcessEvent()
2829 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
2852 peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle); in ProcessEvent()
3454 if ((state == BtifAvStateMachine::kStateStarted) || in bta_av_sink_media_callback()
3455 (state == BtifAvStateMachine::kStateOpened)) { in bta_av_sink_media_callback()
3830 if (peer->StateMachine().StateId() == BtifAvStateMachine::kStateStarted) { in src_do_suspend_in_main_thread()
3900 return (state == BtifAvStateMachine::kStateOpened); in btif_av_stream_ready()
3918 ready = (state == BtifAvStateMachine::kStateStarted); in btif_av_stream_started_ready()
4140 case BtifAvStateMachine::kStateIdle: in btif_debug_av_peer_dump()
4143 case BtifAvStateMachine::kStateOpening: in btif_debug_av_peer_dump()
4146 case BtifAvStateMachine::kStateOpened: in btif_debug_av_peer_dump()
4149 case BtifAvStateMachine::kStateStarted: in btif_debug_av_peer_dump()
4152 case BtifAvStateMachine::kStateClosing: in btif_debug_av_peer_dump()