Lines Matching refs:state
78 static const char* bta_ag_sco_state_str(uint8_t state) { in bta_ag_sco_state_str() argument
79 switch (state) { in bta_ag_sco_state_str()
142 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_conn_cback()
163 sco_idx, bta_ag_cb.sco.p_curr_scb, bta_ag_cb.sco.state); in bta_ag_sco_disc_cback()
169 bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback()
174 bta_ag_cb.scb[1].state); in bta_ag_sco_disc_cback()
198 bta_ag_cb.sco.p_curr_scb->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_disc_cback()
230 bta_ag_cb.sco.state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_disc_cback()
292 bta_ag_cb.sco.state = BTA_AG_SCO_OPENING_ST; in bta_ag_esco_connreq_cback()
300 bta_ag_cb.sco.state = BTA_AG_SCO_OPEN_XFER_ST; in bta_ag_esco_connreq_cback()
307 bta_ag_cb.sco.state = BTA_AG_SCO_LISTEN_ST; in bta_ag_esco_connreq_cback()
589 uint8_t previous_state = p_sco->state; in bta_ag_sco_event()
593 bta_ag_sco_state_str(p_sco->state), p_sco->state, in bta_ag_sco_event()
596 switch (p_sco->state) { in bta_ag_sco_event()
602 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
625 p_sco->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_event()
637 p_sco->state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_event()
652 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
672 p_sco->state = BTA_AG_SCO_OPENING_ST; in bta_ag_sco_event()
678 p_sco->state = BTA_AG_SCO_CLOSE_XFER_ST; in bta_ag_sco_event()
689 p_sco->state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_event()
695 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
701 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
723 p_sco->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_event()
730 p_sco->state = BTA_AG_SCO_CLOSE_XFER_ST; in bta_ag_sco_event()
734 p_sco->state = BTA_AG_SCO_OPEN_CL_ST; in bta_ag_sco_event()
743 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
748 p_sco->state = BTA_AG_SCO_OPEN_ST; in bta_ag_sco_event()
754 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
770 p_sco->state = BTA_AG_SCO_CLOSE_XFER_ST; in bta_ag_sco_event()
774 p_sco->state = BTA_AG_SCO_OPENING_ST; in bta_ag_sco_event()
783 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
791 p_sco->state = BTA_AG_SCO_CLOSING_ST; in bta_ag_sco_event()
797 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
813 p_sco->state = BTA_AG_SCO_CLOSING_ST; in bta_ag_sco_event()
819 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
830 p_sco->state = BTA_AG_SCO_OPENING_ST; in bta_ag_sco_event()
861 p_sco->state = BTA_AG_SCO_CLOSE_XFER_ST; in bta_ag_sco_event()
867 p_sco->state = BTA_AG_SCO_CLOSING_ST; in bta_ag_sco_event()
877 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
884 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
904 p_sco->state = BTA_AG_SCO_CLOSE_OP_ST; in bta_ag_sco_event()
911 p_sco->state = BTA_AG_SCO_CLOSE_XFER_ST; in bta_ag_sco_event()
920 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
928 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
941 p_sco->state = BTA_AG_SCO_CLOSING_ST; in bta_ag_sco_event()
945 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
950 p_sco->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_event()
981 p_sco->state = BTA_AG_SCO_CLOSING_ST; in bta_ag_sco_event()
988 p_sco->state = BTA_AG_SCO_SHUTTING_ST; in bta_ag_sco_event()
999 p_sco->state = BTA_AG_SCO_CODEC_ST; in bta_ag_sco_event()
1024 p_sco->state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_event()
1027 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
1034 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
1052 p_sco->state = BTA_AG_SCO_SHUTDOWN_ST; in bta_ag_sco_event()
1055 p_sco->state = BTA_AG_SCO_LISTEN_ST; in bta_ag_sco_event()
1075 if (p_sco->state != previous_state) { in bta_ag_sco_event()
1080 bta_ag_sco_state_str(p_sco->state), p_sco->state, in bta_ag_sco_event()
1096 return ((bta_ag_cb.sco.state == BTA_AG_SCO_OPEN_ST) && in bta_ag_sco_is_open()
1112 return ((bta_ag_cb.sco.state == BTA_AG_SCO_OPENING_ST) && in bta_ag_sco_is_opening()
1175 (bta_ag_cb.sco.state == BTA_AG_SCO_CODEC_ST)) { in bta_ag_sco_close()
1304 bta_ag_cb.sco.state); in bta_ag_sco_conn_rsp()
1306 if (bta_ag_cb.sco.state == BTA_AG_SCO_LISTEN_ST || in bta_ag_sco_conn_rsp()
1307 bta_ag_cb.sco.state == BTA_AG_SCO_CLOSE_XFER_ST || in bta_ag_sco_conn_rsp()
1308 bta_ag_cb.sco.state == BTA_AG_SCO_OPEN_XFER_ST) { in bta_ag_sco_conn_rsp()