Lines Matching refs:num_active
115 int num_active; member
248 hf_cb->num_active = 0; in clear_phone_state_multihf()
638 static void UpdateCallStates(btif_hf_cb_t* control_block, int num_active, in UpdateCallStates() argument
640 control_block->num_active = num_active; in UpdateCallStates()
659 ((btif_hf_cb[i].num_held + btif_hf_cb[i].num_active) > 0)) in IsCallIdle()
687 bt_status_t CindResponse(int svc, int num_active, int num_held,
700 bt_status_t PhoneStateChange(int num_active, int num_held,
920 bt_status_t HeadsetInterface::CindResponse(int svc, int num_active, in CindResponse() argument
941 (num_active + num_held) ? 1 : 0, /* Call state */ in CindResponse()
947 ((num_held == 0) ? 0 : ((num_active == 0) ? 2 : 1))); /* Call held */ in CindResponse()
1045 int num_active, int num_held, bthf_call_state_t call_setup_state, in PhoneStateChange() argument
1069 << ", addr=" << *bd_addr << ", num_active=" << num_active in PhoneStateChange()
1074 << ", active_bda=" << active_bda << ", num_active=" << num_active in PhoneStateChange()
1075 << ", prev_num_active" << control_block.num_active in PhoneStateChange()
1086 if (num_active == 0 && num_held == 0 && in PhoneStateChange()
1095 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, call_setup_state); in PhoneStateChange()
1110 if (((num_active + num_held) > 0) && (control_block.num_active == 0) && in PhoneStateChange()
1143 if (num_active > control_block.num_active) { in PhoneStateChange()
1155 if (num_active > control_block.num_active) { in PhoneStateChange()
1170 if (num_active || num_held) { in PhoneStateChange()
1229 if (!(num_active + num_held) && is_active_device(*bd_addr)) { in PhoneStateChange()
1238 !(num_active + num_held) && is_active_device(*bd_addr)) { in PhoneStateChange()
1260 if ((num_held > 0) && (num_active > 0)) { in PhoneStateChange()
1263 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, in PhoneStateChange()
1278 ((num_active + num_held) != in PhoneStateChange()
1279 (control_block.num_active + control_block.num_held))) { in PhoneStateChange()
1281 << control_block.num_active << "->" << num_active << "], held=[" in PhoneStateChange()
1284 ((num_active + num_held) > 0) ? BTA_AG_CALL_ACTIVE in PhoneStateChange()
1290 ((num_active == 0) && ((num_held + control_block.num_held) > 1))) { in PhoneStateChange()
1294 ((num_held == 0) ? 0 : ((num_active == 0) ? 2 : 1))); in PhoneStateChange()
1299 (num_active && num_held) && (num_active == control_block.num_active) && in PhoneStateChange()
1311 if ((control_block.num_active == num_active && num_active != 0) && in PhoneStateChange()
1315 ag_res.ind.value = num_active; in PhoneStateChange()
1319 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, call_setup_state); in PhoneStateChange()