Lines Matching refs:ag_res
217 tBTA_AG_RES_DATA ag_res = {}; in send_at_result() local
218 ag_res.ok_flag = ok_flag; in send_at_result()
220 ag_res.errcode = errcode; in send_at_result()
222 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in send_at_result()
236 tBTA_AG_RES_DATA ag_res = {}; in send_indicator_update() local
237 ag_res.ind.id = indicator; in send_indicator_update()
238 ag_res.ind.value = value; in send_indicator_update()
239 BTA_AgResult(control_block.handle, BTA_AG_IND_RES, ag_res); in send_indicator_update()
819 tBTA_AG_RES_DATA ag_res = {}; in StartVoiceRecognition() local
820 ag_res.state = true; in StartVoiceRecognition()
821 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_BVRA_RES, ag_res); in StartVoiceRecognition()
843 tBTA_AG_RES_DATA ag_res = {}; in StopVoiceRecognition() local
844 ag_res.state = false; in StopVoiceRecognition()
845 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_BVRA_RES, ag_res); in StopVoiceRecognition()
862 tBTA_AG_RES_DATA ag_res = {}; in VolumeControl() local
863 ag_res.num = static_cast<uint16_t>(volume); in VolumeControl()
866 ag_res); in VolumeControl()
912 tBTA_AG_RES_DATA ag_res = {}; in CopsResponse() local
914 snprintf(ag_res.str, sizeof(ag_res.str), "0,0,\"%.16s\"", cops); in CopsResponse()
915 ag_res.ok_flag = BTA_AG_OK_DONE; in CopsResponse()
916 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_COPS_RES, ag_res); in CopsResponse()
936 tBTA_AG_RES_DATA ag_res = {}; in CindResponse() local
940 snprintf(ag_res.str, sizeof(ag_res.str), "%d,%d,%d,%d,%d,%d,%d", in CindResponse()
948 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_CIND_RES, ag_res); in CindResponse()
955 tBTA_AG_RES_DATA ag_res = {}; in FormattedAtResponse() local
967 strncpy(ag_res.str, rsp, BTA_AG_AT_MAX_LEN); in FormattedAtResponse()
968 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_UNAT_RES, ag_res); in FormattedAtResponse()
1006 tBTA_AG_RES_DATA ag_res = {}; in ClccResponse() local
1009 ag_res.ok_flag = BTA_AG_OK_DONE; in ClccResponse()
1014 int res_strlen = snprintf(ag_res.str, sizeof(ag_res.str), "%d,%d,%d,%d,%d", in ClccResponse()
1017 size_t rem_bytes = sizeof(ag_res.str) - res_strlen; in ClccResponse()
1018 char dialnum[sizeof(ag_res.str)]; in ClccResponse()
1034 snprintf(&ag_res.str[res_strlen], rem_bytes - 5, ",\"%s", dialnum); in ClccResponse()
1037 strncat(&ag_res.str[res_strlen], remaining_string.str().c_str(), 5); in ClccResponse()
1040 BTA_AgResult(btif_hf_cb[idx].handle, BTA_AG_CLCC_RES, ag_res); in ClccResponse()
1113 tBTA_AG_RES_DATA ag_res = {}; in PhoneStateChange() local
1119 ag_res.audio_handle = BTA_AG_HANDLE_SCO_NO_CHANGE; in PhoneStateChange()
1128 BTA_AgResult(control_block.handle, res, ag_res); in PhoneStateChange()
1134 tBTA_AG_RES_DATA ag_res = {}; in PhoneStateChange() local
1135 ag_res.audio_handle = BTA_AG_HANDLE_SCO_NO_CHANGE; in PhoneStateChange()
1146 ag_res.audio_handle = control_block.handle; in PhoneStateChange()
1175 ag_res.audio_handle = control_block.handle; in PhoneStateChange()
1194 static_cast<int>(sizeof(ag_res.str)); in PhoneStateChange()
1210 ag_res.num = static_cast<uint16_t>(type); in PhoneStateChange()
1211 if ((ag_res.num < BTA_AG_CLIP_TYPE_MIN) || in PhoneStateChange()
1212 (ag_res.num > BTA_AG_CLIP_TYPE_MAX)) { in PhoneStateChange()
1213 if (ag_res.num != BTA_AG_CLIP_TYPE_VOIP) { in PhoneStateChange()
1214 ag_res.num = BTA_AG_CLIP_TYPE_DEFAULT; in PhoneStateChange()
1219 call_number_stream << "," << std::to_string(ag_res.num); in PhoneStateChange()
1221 call_number_stream << "," << std::to_string(ag_res.num) << ",,,\"" in PhoneStateChange()
1224 snprintf(ag_res.str, sizeof(ag_res.str), "%s", in PhoneStateChange()
1230 ag_res.audio_handle = control_block.handle; in PhoneStateChange()
1239 ag_res.audio_handle = control_block.handle; in PhoneStateChange()
1250 __func__, res, ag_res.audio_handle); in PhoneStateChange()
1253 BTA_AgResult(control_block.handle, res, ag_res); in PhoneStateChange()
1313 tBTA_AG_RES_DATA ag_res = {}; in PhoneStateChange() local
1314 ag_res.ind.id = BTA_AG_IND_CALL; in PhoneStateChange()
1315 ag_res.ind.value = num_active; in PhoneStateChange()
1316 BTA_AgResult(control_block.handle, BTA_AG_IND_RES_ON_DEMAND, ag_res); in PhoneStateChange()