Lines Matching refs:hf_cb
246 void clear_phone_state_multihf(btif_hf_cb_t* hf_cb) { in clear_phone_state_multihf() argument
247 hf_cb->call_setup_state = BTHF_CALL_STATE_IDLE; in clear_phone_state_multihf()
248 hf_cb->num_active = 0; in clear_phone_state_multihf()
249 hf_cb->num_held = 0; in clear_phone_state_multihf()
252 static void reset_control_block(btif_hf_cb_t* hf_cb) { in reset_control_block() argument
253 hf_cb->state = BTHF_CONNECTION_STATE_DISCONNECTED; in reset_control_block()
254 hf_cb->is_initiator = false; in reset_control_block()
255 hf_cb->connected_bda = RawAddress::kEmpty; in reset_control_block()
256 hf_cb->peer_feat = 0; in reset_control_block()
257 clear_phone_state_multihf(hf_cb); in reset_control_block()
609 btif_hf_cb_t* hf_cb = nullptr; in connect_int() local
612 hf_cb = &btif_hf_cb[i]; in connect_int()
624 if (hf_cb == nullptr) { in connect_int()
630 hf_cb->state = BTHF_CONNECTION_STATE_CONNECTING; in connect_int()
631 hf_cb->connected_bda = *bd_addr; in connect_int()
632 hf_cb->is_initiator = true; in connect_int()
633 hf_cb->peer_feat = 0; in connect_int()
634 BTA_AgOpen(hf_cb->handle, hf_cb->connected_bda, BTIF_HF_SECURITY); in connect_int()
728 for (btif_hf_cb_t& hf_cb : btif_hf_cb) { in Init()
729 reset_control_block(&hf_cb); in Init()