Lines Matching defs:state
64 int state;
453 if (t->state != PA_BLUETOOTH_TRANSPORT_STATE_PLAYING) {
454 pa_log_info("SCO incoming connection: changing state to PLAYING");
596 const char *state;
603 if (c->state == 0 && sscanf(buf, "AT+BRSF=%d", &val) == 1) {
608 c->state = 1;
614 state = NULL;
617 while ((r = pa_split_in_place(str, ",", &len, &state))) {
626 if (c->state == 1) {
632 /* no state change */
635 } else if (c->state == 1 && pa_startswith(buf, "AT+CIND=?")) {
644 c->state = 2;
647 } else if (c->state == 2 && pa_startswith(buf, "AT+CIND?")) {
649 c->state = 3;
652 } else if ((c->state == 2 || c->state == 3) && pa_startswith(buf, "AT+CMER=")) {
658 c->state = 4;
661 c->state = 4;
664 c->state = 5;
683 if (c->state == 4) {
684 c->state = 5;
719 } if (c->state == 4) {
726 if (c->state != 5) {
727 pa_log_error("HFP negotiation failed in state %d with inbound %s\n",
728 c->state, buf);