Home
last modified time | relevance | path

Searched refs:ch_state (Results 1 – 13 of 13) sorted by relevance

/system/bt/stack/avct/
Davct_l2c.cc109 if (!avct_l2c_is_passive(p_lcb) || (p_lcb->ch_state == AVCT_CH_OPEN)) { in avct_l2c_connect_ind_cback()
123 lcid, result, p_lcb->ch_state); in avct_l2c_connect_ind_cback()
137 p_lcb->ch_state = AVCT_CH_CFG; in avct_l2c_connect_ind_cback()
140 if (p_lcb) AVCT_TRACE_DEBUG("ch_state cni: %d ", p_lcb->ch_state); in avct_l2c_connect_ind_cback()
146 if (p_lcb->ch_state == AVCT_CH_CONN) { in avct_on_l2cap_error()
156 } else if (p_lcb->ch_state == AVCT_CH_CFG) { in avct_on_l2cap_error()
158 p_lcb->ch_state); in avct_on_l2cap_error()
186 lcid, result, p_lcb->ch_state, p_lcb->conflict_lcid); in avct_l2c_connect_cfm_cback()
188 if (p_lcb->ch_state == AVCT_CH_CONN) { in avct_l2c_connect_cfm_cback()
192 p_lcb->ch_state = AVCT_CH_CFG; in avct_l2c_connect_cfm_cback()
[all …]
Davct_l2c_br.cc104 p_bcb->ch_state = AVCT_CH_CFG; in avct_l2c_br_connect_ind_cback()
134 if ((p_lcb == NULL) || (p_lcb->ch_state != AVCT_CH_CONN)) return; in avct_l2c_br_connect_cfm_cback()
143 p_lcb->ch_state = AVCT_CH_CFG; in avct_l2c_br_connect_cfm_cback()
164 if ((p_lcb == NULL) || (p_lcb->ch_state != AVCT_CH_CFG)) return; in avct_l2c_br_config_cfm_cback()
166 p_lcb->ch_state = AVCT_CH_OPEN; in avct_l2c_br_config_cfm_cback()
Davct_int.h68 uint8_t ch_state; /* L2CAP channel state */ member
78 uint8_t ch_state; /* L2CAP channel state */ member
93 uint8_t ch_state; /* L2CAP channel state */ member
Davct_api.cc156 AVCT_TRACE_DEBUG("ch_state: %d", p_lcb->ch_state); in AVCT_CreateConn()
260 AVCT_TRACE_DEBUG("ch_state: %d", p_bcb->ch_state); in AVCT_CreateBrowse()
Davct_bcb_act.cc114 p_bcb->ch_state = AVCT_CH_CONN; in avct_bcb_chnl_open()
423 AVCT_TRACE_DEBUG("ch_state: %d, allocated:%d->%d", p_bcb->ch_state, in avct_bcb_discard_msg()
Davct_lcb_act.cc179 p_lcb->ch_state = AVCT_CH_CONN; in avct_lcb_chnl_open()
/system/bt/stack/gatt/
Dgatt_main.cc249 tGATT_CH_STATE ch_state = gatt_get_ch_state(p_tcb); in gatt_disconnect() local
250 if (ch_state == GATT_CH_CLOSING) { in gatt_disconnect()
256 if (ch_state == GATT_CH_OPEN) { in gatt_disconnect()
266 if ((ch_state == GATT_CH_OPEN) || (ch_state == GATT_CH_CFG)) { in gatt_disconnect()
959 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) { in gatt_set_ch_state() argument
962 VLOG(1) << __func__ << ": old=" << +p_tcb->ch_state in gatt_set_ch_state()
963 << " new=" << loghex(static_cast<uint8_t>(ch_state)); in gatt_set_ch_state()
964 p_tcb->ch_state = ch_state; in gatt_set_ch_state()
971 VLOG(1) << "gatt_get_ch_state: ch_state=" << +p_tcb->ch_state; in gatt_get_ch_state()
972 return p_tcb->ch_state; in gatt_get_ch_state()
Dgatt_int.h299 tGATT_CH_STATE ch_state; member
453 extern void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state);
Dgatt_utils.cc260 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].ch_state == GATT_CH_OPEN) { in gatt_find_the_connected_bda()
/system/bt/test/mock/
Dmock_stack_gatt_main.cc105 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) { in gatt_set_ch_state() argument
/system/bt/stack/test/gatt/
Dmock_gatt_utils_ref.cc69 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) {} in gatt_set_ch_state() argument
Dgatt_sr_test.cc102 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) {} in gatt_set_ch_state() argument
/system/bt/stack/test/common/
Dmock_gatt_main.cc105 void gatt_set_ch_state(tGATT_TCB* p_tcb, tGATT_CH_STATE ch_state) { in gatt_set_ch_state() argument