• Home
  • Raw
  • Download

Lines Matching refs:result

211   const tBTA_AG_RESULT* result = bta_ag_result_by_code(code);  in bta_ag_send_result()  local
212 if (result == nullptr) { in bta_ag_send_result()
226 strlcpy(p, result->result_string, sizeof(buf) - 2); in bta_ag_send_result()
240 p += strlen(result->result_string); in bta_ag_send_result()
243 if (result->arg_type == BTA_AG_RES_FMT_INT) { in bta_ag_send_result()
245 } else if (result->arg_type == BTA_AG_RES_FMT_STR) { in bta_ag_send_result()
555 void bta_ag_send_call_inds(tBTA_AG_SCB* p_scb, tBTA_AG_RES result) { in bta_ag_send_call_inds() argument
559 size_t callsetup = bta_ag_indicator_by_result_code(result); in bta_ag_send_call_inds()
561 if (result == BTA_AG_END_CALL_RES) { in bta_ag_send_call_inds()
563 } else if (result == BTA_AG_IN_CALL_CONN_RES || in bta_ag_send_call_inds()
564 result == BTA_AG_OUT_CALL_CONN_RES || in bta_ag_send_call_inds()
565 result == BTA_AG_IN_CALL_HELD_RES) { in bta_ag_send_call_inds()
1342 void bta_ag_hsp_result(tBTA_AG_SCB* p_scb, const tBTA_AG_API_RESULT& result) { in bta_ag_hsp_result() argument
1343 APPL_TRACE_DEBUG("bta_ag_hsp_result : res = %d", result.result); in bta_ag_hsp_result()
1345 switch (result.result) { in bta_ag_hsp_result()
1348 bta_ag_send_result(p_scb, result.result, nullptr, result.data.num); in bta_ag_hsp_result()
1374 if (result.result == BTA_AG_IN_CALL_CONN_RES) { in bta_ag_hsp_result()
1380 if (result.data.audio_handle == bta_ag_scb_to_idx(p_scb) && in bta_ag_hsp_result()
1383 } else if (result.data.audio_handle == BTA_AG_HANDLE_NONE && in bta_ag_hsp_result()
1405 p_scb->inband_enabled = result.data.state; in bta_ag_hsp_result()
1410 if (result.data.ok_flag != BTA_AG_OK_ERROR) { in bta_ag_hsp_result()
1411 if (result.data.str[0] != 0) { in bta_ag_hsp_result()
1412 bta_ag_send_result(p_scb, result.result, result.data.str, 0); in bta_ag_hsp_result()
1415 if (result.data.ok_flag == BTA_AG_OK_DONE) bta_ag_send_ok(p_scb); in bta_ag_hsp_result()
1437 void bta_ag_hfp_result(tBTA_AG_SCB* p_scb, const tBTA_AG_API_RESULT& result) { in bta_ag_hfp_result() argument
1438 APPL_TRACE_DEBUG("bta_ag_hfp_result : res = %d", result.result); in bta_ag_hfp_result()
1440 switch (result.result) { in bta_ag_hfp_result()
1443 bta_ag_send_result(p_scb, result.result, nullptr, result.data.num); in bta_ag_hfp_result()
1451 if (result.data.str[0] != 0) { in bta_ag_hfp_result()
1452 snprintf(p_scb->clip, sizeof(p_scb->clip), "%s", result.data.str); in bta_ag_hfp_result()
1460 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1465 (result.data.audio_handle != bta_ag_scb_to_idx(p_scb))) { in bta_ag_hfp_result()
1481 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1484 if (result.data.audio_handle == bta_ag_scb_to_idx(p_scb) && in bta_ag_hfp_result()
1487 } else if ((result.data.audio_handle == BTA_AG_HANDLE_NONE) && in bta_ag_hfp_result()
1497 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1502 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1503 if (result.data.audio_handle == bta_ag_scb_to_idx(p_scb) && in bta_ag_hfp_result()
1511 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1512 if (result.data.audio_handle == bta_ag_scb_to_idx(p_scb) && in bta_ag_hfp_result()
1522 if (result.data.audio_handle == bta_ag_scb_to_idx(p_scb)) { in bta_ag_hfp_result()
1524 } else if (result.data.audio_handle == BTA_AG_HANDLE_NONE) { in bta_ag_hfp_result()
1532 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1536 if (result.data.audio_handle == bta_ag_scb_to_idx(p_scb)) { in bta_ag_hfp_result()
1538 } else if (result.data.audio_handle == BTA_AG_HANDLE_NONE) { in bta_ag_hfp_result()
1546 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1562 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1570 p_scb->inband_enabled = result.data.state; in bta_ag_hfp_result()
1572 bta_ag_send_result(p_scb, result.result, nullptr, result.data.state); in bta_ag_hfp_result()
1577 p_scb->call_ind = result.data.str[0] - '0'; in bta_ag_hfp_result()
1578 p_scb->callsetup_ind = result.data.str[2] - '0'; in bta_ag_hfp_result()
1579 p_scb->service_ind = result.data.str[4] - '0'; in bta_ag_hfp_result()
1580 p_scb->signal_ind = result.data.str[6] - '0'; in bta_ag_hfp_result()
1581 p_scb->roam_ind = result.data.str[8] - '0'; in bta_ag_hfp_result()
1582 p_scb->battchg_ind = result.data.str[10] - '0'; in bta_ag_hfp_result()
1583 p_scb->callheld_ind = result.data.str[12] - '0'; in bta_ag_hfp_result()
1587 bta_ag_send_result(p_scb, result.result, result.data.str, 0); in bta_ag_hfp_result()
1595 if (result.data.ok_flag != BTA_AG_OK_ERROR) { in bta_ag_hfp_result()
1596 if (result.data.str[0] != 0) { in bta_ag_hfp_result()
1597 bta_ag_send_result(p_scb, result.result, result.data.str, 0); in bta_ag_hfp_result()
1600 if (result.data.ok_flag == BTA_AG_OK_DONE) bta_ag_send_ok(p_scb); in bta_ag_hfp_result()
1602 bta_ag_send_error(p_scb, result.data.errcode); in bta_ag_hfp_result()
1607 if (result.data.ok_flag != BTA_AG_OK_ERROR) { in bta_ag_hfp_result()
1608 if (result.data.str[0] != 0) { in bta_ag_hfp_result()
1609 tBTA_AG_API_RESULT result_copy(result); in bta_ag_hfp_result()
1612 bta_ag_send_result(p_scb, result_copy.result, result_copy.data.str, in bta_ag_hfp_result()
1615 if (result.data.ok_flag == BTA_AG_OK_DONE) { in bta_ag_hfp_result()
1619 bta_ag_send_error(p_scb, result.data.errcode); in bta_ag_hfp_result()
1626 bta_ag_send_result(p_scb, result.result, result.data.str, 0); in bta_ag_hfp_result()
1628 bta_ag_send_call_inds(p_scb, result.result); in bta_ag_hfp_result()
1632 bta_ag_send_ind(p_scb, result.data.ind.id, result.data.ind.value, false); in bta_ag_hfp_result()
1636 bta_ag_send_ind(p_scb, result.data.ind.id, result.data.ind.value, true); in bta_ag_hfp_result()
1640 bta_ag_send_result(p_scb, result.result, nullptr, result.data.state); in bta_ag_hfp_result()
1644 if (result.data.ok_flag != BTA_AG_OK_ERROR) { in bta_ag_hfp_result()
1646 if (result.data.num != BTA_AG_BTRH_NO_RESP) { in bta_ag_hfp_result()
1647 bta_ag_send_result(p_scb, result.result, nullptr, result.data.num); in bta_ag_hfp_result()
1651 if (result.data.ok_flag == BTA_AG_OK_DONE) { in bta_ag_hfp_result()
1655 bta_ag_send_error(p_scb, result.data.errcode); in bta_ag_hfp_result()
1663 result.data.ind.id); in bta_ag_hfp_result()
1666 result.data.ind.id); in bta_ag_hfp_result()
1673 result.data.ind.id); in bta_ag_hfp_result()
1676 result.data.ind.id); in bta_ag_hfp_result()
1682 result.data.ind.on_demand) { in bta_ag_hfp_result()
1687 result.data.ind.on_demand; in bta_ag_hfp_result()
1688 p += utl_itoa(result.data.ind.id, p); in bta_ag_hfp_result()
1692 bta_ag_send_result(p_scb, result.result, buffer, 0); in bta_ag_hfp_result()
1695 "%s HF Indicator %d already %s", result.data.ind.id, in bta_ag_hfp_result()
1696 (result.data.ind.on_demand) ? "Enabled" : "Disabled"); in bta_ag_hfp_result()