Home | History | Annotate | Download | only in reference-ril

Lines Matching refs:err

271     int err;
275 err = at_tok_start(&line);
276 if (err < 0) goto error;
278 err = at_tok_nextint(&line, &(p_call->index));
279 if (err < 0) goto error;
281 err = at_tok_nextbool(&line, &(p_call->isMT));
282 if (err < 0) goto error;
284 err = at_tok_nextint(&line, &state);
285 if (err < 0) goto error;
287 err = clccStateToRILState(state, &(p_call->state));
288 if (err < 0) goto error;
290 err = at_tok_nextint(&line, &mode);
291 if (err < 0) goto error;
295 err = at_tok_nextbool(&line, &(p_call->isMpty));
296 if (err < 0) goto error;
299 err = at_tok_nextstr(&line, &(p_call->number));
302 if (err < 0) return 0;
312 err = at_tok_nextint(&line, &p_call->toa);
313 if (err < 0) goto error;
364 int err;
371 err = at_send_command("AT+CFUN=0", &p_response);
372 if (err < 0 || p_response->success == 0) goto error;
375 err = at_send_command("AT+CFUN=1", &p_response);
376 if (err < 0|| p_response->success == 0) {
413 int err;
417 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response);
418 if (err != 0 || p_response->success == 0) {
452 err = at_tok_start(&line);
453 if (err < 0)
456 err = at_tok_nextint(&line, &response->cid);
457 if (err < 0)
460 err = at_tok_nextint(&line, &response->active);
461 if (err < 0)
469 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response);
470 if (err != 0 || p_response->success == 0) {
484 err = at_tok_start(&line);
485 if (err < 0)
488 err = at_tok_nextint(&line, &cid);
489 if (err < 0)
506 err = at_tok_nextstr(&line, &out);
507 if (err < 0)
513 err = at_tok_nextstr(&line, &out);
514 if (err < 0)
520 err = at_tok_nextstr(&line, &out);
521 if (err < 0)
600 int err;
605 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response);
607 if (err < 0 || p_response->success == 0) {
613 err = at_tok_start(&line);
615 if (err < 0) {
619 err = at_tok_nextint(&line, &response);
621 if (err < 0) {
643 int err;
660 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
662 if (err != 0 || p_response->success == 0) {
690 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
692 if (err != 0) {
796 int err;
804 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
806 if (err != 0 || p_response->success == 0) goto error;
842 int err;
848 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
850 if (err < 0 || p_response->success == 0) {
857 err = at_tok_start(&line);
858 if (err < 0) goto error;
861 err = at_tok_nextint(&line, &(response[count]));
862 if (err < 0) goto error;
894 int err;
911 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
913 if (err || !p_response->success) {
962 int err;
968 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
969 if (err < 0 || !p_response->success) goto error;
971 err = at_tok_start(&line);
972 if (err < 0) goto error;
973 err = at_tok_nextstr(&line, &responseStr);
974 if (err < 0 || !responseStr) goto error;
986 int err;
1005 int err;
1021 err = at_send_command_numeric("AT+CGSN", &p_response);
1022 if (err < 0 || p_response->success == 0) {
1042 int err;
1052 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1053 if (err < 0 || !p_response->success)
1057 err = at_tok_start(&line);
1058 if (err < 0) goto error;
1060 err = at_tok_nextint(&line, &response);
1075 int err;
1088 err = at_send_command(cmd, &p_response);
1089 if (err < 0 || !p_response->success)
1107 int err;
1184 int err;
1192 err = at_tok_start(&line);
1193 if (err < 0) goto error;
1226 err = at_tok_nextint(&line, &resp[0]);
1227 if (err < 0) goto error;
1233 err = at_tok_nextint(&line, &skip);
1234 if (err < 0) goto error;
1235 err = at_tok_nextint(&line, &resp[0]);
1236 if (err < 0) goto error;
1239 if (err < 0) goto error;
1243 err = at_tok_nextint(&line, &resp[0]);
1244 if (err < 0) goto error;
1245 err = at_tok_nexthexint(&line, &resp[1]);
1246 if (err < 0) goto error;
1247 err = at_tok_nexthexint(&line, &resp[2]);
1248 if (err < 0) goto error;
1251 err = at_tok_nextint(&line, &skip);
1252 if (err < 0) goto error;
1253 err = at_tok_nextint(&line, &resp[0]);
1254 if (err < 0) goto error;
1255 err = at_tok_nexthexint(&line, &resp[1]);
1256 if (err < 0) goto error;
1257 err = at_tok_nexthexint(&line, &resp[2]);
1258 if (err < 0) goto error;
1264 err = at_tok_nextint(&line, &skip);
1265 if (err < 0) goto error;
1266 err = at_tok_nextint(&line, &resp[0]);
1267 if (err < 0) goto error;
1268 err = at_tok_nexthexint(&line, &resp[1]);
1269 if (err < 0) goto error;
1270 err = at_tok_nexthexint(&line, &resp[2]);
1271 if (err < 0) goto error;
1272 err = at_tok_nexthexint(&line, &resp[3]);
1273 if (err < 0) goto error;
1298 int err;
1323 err = at_send_command_singleline(cmd, prefix, &p_response);
1325 if (err != 0) goto error;
1411 int err;
1421 err = at_send_command_multiline(
1431 if (err != 0) goto error;
1439 err = at_tok_start(&line);
1440 if (err < 0) goto error;
1442 err = at_tok_nextint(&line, &skip);
1443 if (err < 0) goto error;
1452 err = at_tok_nextint(&line, &skip);
1453 if (err < 0) goto error;
1461 err = at_tok_nextstr(&line, &(response[i]));
1462 if (err < 0) goto error;
1488 int err = 1; // Set to go to error:
1504 if (err != 0) goto error;
1522 int err;
1549 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1551 if (err != 0 || p_response->success == 0) goto error;
1621 int err;
1628 err = at_send_command("AT%CPRIM=\"GMM\",\"CONFIG MULTISLOT_CLASS=<10>\"",
1631 err = at_send_command("AT%DATA=2,\"UART\",1,,\"SER\",\"UART\",0", NULL);
1706 err = at_send_command(cmd, NULL);
1710 err = at_send_command("AT+CGQREQ=1", NULL);
1713 err = at_send_command("AT+CGQMIN=1", NULL);
1716 err = at_send_command("AT+CGEREP=1,0", NULL);
1719 err = at_send_command("AT+CGACT=1,0", NULL);
1722 err = at_send_command("ATD*99***1#", &p_response);
1724 if (err < 0 || p_response->success == 0) {
1743 int err;
1748 err = at_send_command("AT+CNMA=1", NULL);
1750 err = at_send_command("AT+CNMA=2", NULL);
1766 int err;
1787 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
1789 if (err < 0 || p_response->success == 0) {
1795 err = at_tok_start(&line);
1796 if (err < 0) goto error;
1798 err = at_tok_nextint(&line, &(sr.sw1));
1799 if (err < 0) goto error;
1801 err = at_tok_nextint(&line, &(sr.sw2));
1802 if (err < 0) goto error;
1805 err = at_tok_nextstr(&line, &(sr.simResponse));
1806 if (err < 0) goto error;
1824 int err;
1835 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
1838 if (err < 0 || p_response->success == 0) {
1863 int err;
1866 err = at_send_command("AT+WSOS=0", &p_response);
1868 if (err < 0 || p_response->success == 0) {
1959 int err;
2133 err = at_send_command_numeric("AT+CIMI", &p_response);
2135 if (err < 0 || p_response->success == 0) {
2146 err = at_send_command_numeric("AT+CGSN", &p_response);
2148 if (err < 0 || p_response->success == 0) {
2167 err = at_send_command_numeric("AT+CUSD=2", &p_response);
2169 if (err < 0 || p_response->success == 0) {
2221 err = at_send_command(cmd, &p_response);
2223 if (err < 0 || p_response->success == 0) {
2447 int err;
2457 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
2459 if (err != 0) {
2480 err = at_tok_start (&cpinLine);
2482 if (err < 0) {
2487 err = at_tok_nextstr(&cpinLine, &cpinResult);
2489 if (err < 0) {
2524 int err;
2535 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
2537 if (err != 0) {
2558 err = at_tok_start (&cpinLine);
2560 if (err < 0) {
2565 err = at_tok_nextstr(&cpinLine, &cpinResult);
2567 if (err < 0) {
2736 int err;
2740 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
2742 if (err < 0 || p_response->success == 0) {
2749 err = at_tok_start(&line);
2750 if (err < 0) goto error;
2752 err = at_tok_nextbool(&line, &ret);
2753 if (err < 0) goto error;
2776 int err;
2784 err = at_tok_start(&p);
2785 if (err || !at_tok_hasmore(&p)) {
2786 RLOGD("err: %d. p: %s", err, p);
2791 err = at_tok_nextint(&p, &ct);
2792 if (err) {
2800 err = at_tok_nexthexint(&p, &pt);
2801 if (err) {
2816 int err, val, techs = 0;
2821 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
2822 if (err || !p_response->success)
2825 err = at_tok_start(&line);
2826 if (err || !at_tok_hasmore(&line))
2855 int err;
2859 err = at_send_command_singleline("AT+CTEC?", "+CTEC:", &response);
2860 if (!err && response->success) {
2865 RLOGE("Error executing command: %d. response: %x. status: %d", err, (int)response, response? response->success : -1);
2873 int err;
2895 int err;
2911 err = at_send_command_singleline("AT+WNAM","+WNAM:", &response);
2912 if (!err && response->success) {
2920 if (!err) at_response_free(response);
2934 int err;
2955 err = at_send_command("AT+CREG=2", &p_response);
2958 if (err < 0 || p_response->success == 0) {
3041 int err;
3057 err = at_tok_nextstr(&p, &response);
3060 if (err != 0) {