Lines Matching refs:num_held
116 int num_held; member
249 hf_cb->num_held = 0; in clear_phone_state_multihf()
675 int num_held, bthf_call_state_t call_setup_state) { in UpdateCallStates() argument
677 control_block->num_held = num_held; in UpdateCallStates()
695 ((btif_hf_cb[i].num_held + btif_hf_cb[i].num_active) > 0)) in IsCallIdle()
723 bt_status_t CindResponse(int svc, int num_active, int num_held,
736 bt_status_t PhoneStateChange(int num_active, int num_held,
957 int num_held, in CindResponse() argument
977 (num_active + num_held) ? 1 : 0, /* Call state */ in CindResponse()
983 ((num_held == 0) ? 0 : ((num_active == 0) ? 2 : 1))); /* Call held */ in CindResponse()
1081 int num_active, int num_held, bthf_call_state_t call_setup_state, in PhoneStateChange() argument
1106 << ", num_held=" << num_held; in PhoneStateChange()
1112 << ", num_held=" << num_held in PhoneStateChange()
1113 << ", prev_num_held=" << control_block.num_held in PhoneStateChange()
1122 if (num_active == 0 && num_held == 0 && in PhoneStateChange()
1128 if (control_block.num_held) { in PhoneStateChange()
1131 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, call_setup_state); in PhoneStateChange()
1146 if (((num_active + num_held) > 0) && (control_block.num_active == 0) && in PhoneStateChange()
1147 (control_block.num_held == 0) && in PhoneStateChange()
1184 } else if (num_held > control_block.num_held) in PhoneStateChange()
1206 if (num_active || num_held) { in PhoneStateChange()
1265 if (!(num_active + num_held) && is_active_device(*bd_addr)) { in PhoneStateChange()
1274 !(num_active + num_held) && is_active_device(*bd_addr)) { in PhoneStateChange()
1296 if ((num_held > 0) && (num_active > 0)) { in PhoneStateChange()
1299 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, in PhoneStateChange()
1314 ((num_active + num_held) != in PhoneStateChange()
1315 (control_block.num_active + control_block.num_held))) { in PhoneStateChange()
1318 << control_block.num_held << "->" << num_held; in PhoneStateChange()
1320 ((num_active + num_held) > 0) ? BTA_AG_CALL_ACTIVE in PhoneStateChange()
1325 if (num_held != control_block.num_held || in PhoneStateChange()
1326 ((num_active == 0) && ((num_held + control_block.num_held) > 1))) { in PhoneStateChange()
1328 control_block.num_held, num_held); in PhoneStateChange()
1330 ((num_held == 0) ? 0 : ((num_active == 0) ? 2 : 1))); in PhoneStateChange()
1335 (num_active && num_held) && (num_active == control_block.num_active) && in PhoneStateChange()
1336 (num_held == control_block.num_held)) { in PhoneStateChange()
1348 (control_block.num_held != num_held && num_held == 0)) { in PhoneStateChange()
1355 UpdateCallStates(&btif_hf_cb[idx], num_active, num_held, call_setup_state); in PhoneStateChange()