• Home
  • Raw
  • Download

Lines Matching refs:btif_hf_cb

120 static btif_hf_cb_t btif_hf_cb[BTA_AG_MAX_NUM_CLIENTS];  variable
161 if (((btif_hf_cb[i].state == BTHF_CONNECTION_STATE_CONNECTED) || in is_connected()
162 (btif_hf_cb[i].state == BTHF_CONNECTION_STATE_SLC_CONNECTED)) && in is_connected()
163 (!bd_addr || *bd_addr == btif_hf_cb[i].connected_bda)) in is_connected()
180 if (*bd_addr == btif_hf_cb[i].connected_bda) return i; in btif_hf_idx_by_bdaddr()
222 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in send_at_result()
277 return btif_hf_cb[idx].state == BTHF_CONNECTION_STATE_SLC_CONNECTED; in IsSlcConnected()
314 btif_hf_cb[idx].handle = p_data->reg.hdr.handle; in btif_hf_upstreams_evt()
316 __func__, btif_hf_cb[idx].handle); in btif_hf_upstreams_evt()
321 if (btif_hf_cb[idx].is_initiator) { in btif_hf_upstreams_evt()
322 CHECK_EQ(btif_hf_cb[idx].state, BTHF_CONNECTION_STATE_CONNECTING) in btif_hf_upstreams_evt()
324 CHECK(!btif_hf_cb[idx].connected_bda.IsEmpty()) in btif_hf_upstreams_evt()
326 CHECK_EQ(btif_hf_cb[idx].connected_bda, p_data->open.bd_addr) in btif_hf_upstreams_evt()
331 btif_hf_cb[idx].connected_bda = p_data->open.bd_addr; in btif_hf_upstreams_evt()
332 btif_hf_cb[idx].state = BTHF_CONNECTION_STATE_CONNECTED; in btif_hf_upstreams_evt()
333 btif_hf_cb[idx].peer_feat = 0; in btif_hf_upstreams_evt()
334 clear_phone_state_multihf(&btif_hf_cb[idx]); in btif_hf_upstreams_evt()
338 btif_hf_cb[idx].state, &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
340 if (!btif_hf_cb[idx].is_initiator) { in btif_hf_upstreams_evt()
348 << btif_hf_cb[idx].connected_bda << ", status " in btif_hf_upstreams_evt()
350 RawAddress connected_bda = btif_hf_cb[idx].connected_bda; in btif_hf_upstreams_evt()
351 reset_control_block(&btif_hf_cb[idx]); in btif_hf_upstreams_evt()
352 bt_hf_callbacks->ConnectionStateCallback(btif_hf_cb[idx].state, in btif_hf_upstreams_evt()
360 __func__, idx, btif_hf_cb[idx].handle); in btif_hf_upstreams_evt()
364 (btif_hf_cb[idx].state != BTHF_CONNECTION_STATE_SLC_CONNECTED) && in btif_hf_upstreams_evt()
365 btif_hf_cb[idx].is_initiator; in btif_hf_upstreams_evt()
366 RawAddress connected_bda = btif_hf_cb[idx].connected_bda; in btif_hf_upstreams_evt()
367 reset_control_block(&btif_hf_cb[idx]); in btif_hf_upstreams_evt()
368 bt_hf_callbacks->ConnectionStateCallback(btif_hf_cb[idx].state, in btif_hf_upstreams_evt()
379 btif_hf_cb[idx].peer_feat = p_data->conn.peer_feat; in btif_hf_upstreams_evt()
380 btif_hf_cb[idx].state = BTHF_CONNECTION_STATE_SLC_CONNECTED; in btif_hf_upstreams_evt()
381 bt_hf_callbacks->ConnectionStateCallback(btif_hf_cb[idx].state, in btif_hf_upstreams_evt()
382 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
383 if (btif_hf_cb[idx].is_initiator) { in btif_hf_upstreams_evt()
390 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
395 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
404 p_data->val.num, &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
408 bt_hf_callbacks->AnswerCallCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
416 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
420 bt_hf_callbacks->HangupCallCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
424 bt_hf_callbacks->AtCindCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
429 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
436 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
442 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
450 bt_hf_callbacks->KeyPressedCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
459 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
462 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
465 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
472 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
476 bt_hf_callbacks->AtClccCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
480 bt_hf_callbacks->AtCopsCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
485 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
489 bt_hf_callbacks->AtCnumCallback(&btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
508 BTA_AgSetCodec(btif_hf_cb[idx].handle, BTA_AG_CODEC_MSBC); in btif_hf_upstreams_evt()
512 BTA_AgSetCodec(btif_hf_cb[idx].handle, BTA_AG_CODEC_CVSD); in btif_hf_upstreams_evt()
522 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
528 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
536 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
547 &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
611 if (btif_hf_cb[i].state == BTHF_CONNECTION_STATE_DISCONNECTED) { in connect_int()
612 hf_cb = &btif_hf_cb[i]; in connect_int()
618 if (btif_hf_cb[i].state == BTHF_CONNECTION_STATE_CONNECTING) { in connect_int()
619 LOG(FATAL) << __func__ << ": " << btif_hf_cb[i].connected_bda in connect_int()
620 << ", handle " << btif_hf_cb[i].handle in connect_int()
621 << ", is still in connecting state " << btif_hf_cb[i].state; in connect_int()
658 if ((btif_hf_cb[i].call_setup_state != BTHF_CALL_STATE_IDLE) || in IsCallIdle()
659 ((btif_hf_cb[i].num_held + btif_hf_cb[i].num_active) > 0)) in IsCallIdle()
728 for (btif_hf_cb_t& hf_cb : btif_hf_cb) { in Init()
761 BTA_AgClose(btif_hf_cb[idx].handle); in Disconnect()
781 &btif_hf_cb[idx].connected_bda)); in ConnectAudio()
782 BTA_AgAudioOpen(btif_hf_cb[idx].handle); in ConnectAudio()
798 BTA_AgAudioClose(btif_hf_cb[idx].handle); in DisconnectAudio()
814 if (!(btif_hf_cb[idx].peer_feat & BTA_AG_PEER_FEAT_VREC)) { in StartVoiceRecognition()
816 __func__, btif_hf_cb[idx].peer_feat); in StartVoiceRecognition()
821 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_BVRA_RES, ag_res); in StartVoiceRecognition()
838 if (!(btif_hf_cb[idx].peer_feat & BTA_AG_PEER_FEAT_VREC)) { in StopVoiceRecognition()
840 __func__, btif_hf_cb[idx].peer_feat); in StopVoiceRecognition()
845 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_BVRA_RES, ag_res); in StopVoiceRecognition()
864 BTA_AgResult(btif_hf_cb[idx].handle, in VolumeControl()
884 const btif_hf_cb_t& control_block = btif_hf_cb[idx]; in DeviceStatusNotification()
916 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_COPS_RES, ag_res); in CopsResponse()
948 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_CIND_RES, ag_res); in CindResponse()
968 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in FormattedAtResponse()
1040 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_CLCC_RES, ag_res); in ClccResponse()
1059 const btif_hf_cb_t& control_block = btif_hf_cb[idx]; in PhoneStateChange()
1095 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, call_setup_state); in PhoneStateChange()
1263 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, in PhoneStateChange()
1319 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, call_setup_state); in PhoneStateChange()
1358 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_INBAND_RING_RES, ag_result); in SendBsir()
1396 BTA_AgDeregister(btif_hf_cb[i].handle); in ExecuteService()