Lines Matching defs:err

256     int err;
260 err = at_tok_start(&line);
261 if (err < 0) goto error;
263 err = at_tok_nextint(&line, &(p_call->index));
264 if (err < 0) goto error;
266 err = at_tok_nextbool(&line, &(p_call->isMT));
267 if (err < 0) goto error;
269 err = at_tok_nextint(&line, &state);
270 if (err < 0) goto error;
272 err = clccStateToRILState(state, &(p_call->state));
273 if (err < 0) goto error;
275 err = at_tok_nextint(&line, &mode);
276 if (err < 0) goto error;
280 err = at_tok_nextbool(&line, &(p_call->isMpty));
281 if (err < 0) goto error;
284 err = at_tok_nextstr(&line, &(p_call->number));
287 if (err < 0) return 0;
297 err = at_tok_nextint(&line, &p_call->toa);
298 if (err < 0) goto error;
349 int err;
356 err = at_send_command("AT+CFUN=0", &p_response);
357 if (err < 0 || p_response->success == 0) goto error;
360 err = at_send_command("AT+CFUN=1", &p_response);
361 if (err < 0|| p_response->success == 0) {
398 int err;
402 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response);
403 if (err != 0 || p_response->success == 0) {
437 err = at_tok_start(&line);
438 if (err < 0)
441 err = at_tok_nextint(&line, &response->cid);
442 if (err < 0)
445 err = at_tok_nextint(&line, &response->active);
446 if (err < 0)
454 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response);
455 if (err != 0 || p_response->success == 0) {
469 err = at_tok_start(&line);
470 if (err < 0)
473 err = at_tok_nextint(&line, &cid);
474 if (err < 0)
491 err = at_tok_nextstr(&line, &out);
492 if (err < 0)
498 err = at_tok_nextstr(&line, &out);
499 if (err < 0)
505 err = at_tok_nextstr(&line, &out);
506 if (err < 0)
585 int err;
590 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response);
592 if (err < 0 || p_response->success == 0) {
598 err = at_tok_start(&line);
600 if (err < 0) {
604 err = at_tok_nextint(&line, &response);
606 if (err < 0) {
628 int err;
645 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
647 if (err != 0 || p_response->success == 0) {
675 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
677 if (err != 0) {
781 int err;
789 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
791 if (err != 0 || p_response->success == 0) goto error;
827 int err;
833 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
835 if (err < 0 || p_response->success == 0) {
842 err = at_tok_start(&line);
843 if (err < 0) goto error;
846 err = at_tok_nextint(&line, &(response[count]));
847 if (err < 0) goto error;
879 int err;
896 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
898 if (err || !p_response->success) {
947 int err;
953 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
954 if (err < 0 || !p_response->success) goto error;
956 err = at_tok_start(&line);
957 if (err < 0) goto error;
958 err = at_tok_nextstr(&line, &responseStr);
959 if (err < 0 || !responseStr) goto error;
971 int err;
990 int err;
1006 err = at_send_command_numeric("AT+CGSN", &p_response);
1007 if (err < 0 || p_response->success == 0) {
1027 int err;
1037 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1038 if (err < 0 || !p_response->success)
1042 err = at_tok_start(&line);
1043 if (err < 0) goto error;
1045 err = at_tok_nextint(&line, &response);
1060 int err;
1073 err = at_send_command(cmd, &p_response);
1074 if (err < 0 || !p_response->success)
1092 int err;
1169 int err;
1177 err = at_tok_start(&line);
1178 if (err < 0) goto error;
1211 err = at_tok_nextint(&line, &resp[0]);
1212 if (err < 0) goto error;
1218 err = at_tok_nextint(&line, &skip);
1219 if (err < 0) goto error;
1220 err = at_tok_nextint(&line, &resp[0]);
1221 if (err < 0) goto error;
1224 if (err < 0) goto error;
1228 err = at_tok_nextint(&line, &resp[0]);
1229 if (err < 0) goto error;
1230 err = at_tok_nexthexint(&line, &resp[1]);
1231 if (err < 0) goto error;
1232 err = at_tok_nexthexint(&line, &resp[2]);
1233 if (err < 0) goto error;
1236 err = at_tok_nextint(&line, &skip);
1237 if (err < 0) goto error;
1238 err = at_tok_nextint(&line, &resp[0]);
1239 if (err < 0) goto error;
1240 err = at_tok_nexthexint(&line, &resp[1]);
1241 if (err < 0) goto error;
1242 err = at_tok_nexthexint(&line, &resp[2]);
1243 if (err < 0) goto error;
1249 err = at_tok_nextint(&line, &skip);
1250 if (err < 0) goto error;
1251 err = at_tok_nextint(&line, &resp[0]);
1252 if (err < 0) goto error;
1253 err = at_tok_nexthexint(&line, &resp[1]);
1254 if (err < 0) goto error;
1255 err = at_tok_nexthexint(&line, &resp[2]);
1256 if (err < 0) goto error;
1257 err = at_tok_nexthexint(&line, &resp[3]);
1258 if (err < 0) goto error;
1281 int err;
1306 err = at_send_command_singleline(cmd, prefix, &p_response);
1308 if (err != 0) goto error;
1394 int err;
1404 err = at_send_command_multiline(
1414 if (err != 0) goto error;
1422 err = at_tok_start(&line);
1423 if (err < 0) goto error;
1425 err = at_tok_nextint(&line, &skip);
1426 if (err < 0) goto error;
1435 err = at_tok_nextint(&line, &skip);
1436 if (err < 0) goto error;
1444 err = at_tok_nextstr(&line, &(response[i]));
1445 if (err < 0) goto error;
1465 int err = 1; // Set to go to error:
1481 if (err != 0) goto error;
1497 int err;
1518 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1520 if (err != 0 || p_response->success == 0) goto error;
1539 int err;
1546 err = at_send_command("AT%CPRIM=\"GMM\",\"CONFIG MULTISLOT_CLASS=<10>\"",
1549 err = at_send_command("AT%DATA=2,\"UART\",1,,\"SER\",\"UART\",0", NULL);
1624 err = at_send_command(cmd, NULL);
1628 err = at_send_command("AT+CGQREQ=1", NULL);
1631 err = at_send_command("AT+CGQMIN=1", NULL);
1634 err = at_send_command("AT+CGEREP=1,0", NULL);
1637 err = at_send_command("AT+CGACT=1,0", NULL);
1640 err = at_send_command("ATD*99***1#", &p_response);
1642 if (err < 0 || p_response->success == 0) {
1661 int err;
1666 err = at_send_command("AT+CNMA=1", NULL);
1668 err = at_send_command("AT+CNMA=2", NULL);
1684 int err;
1705 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
1707 if (err < 0 || p_response->success == 0) {
1713 err = at_tok_start(&line);
1714 if (err < 0) goto error;
1716 err = at_tok_nextint(&line, &(sr.sw1));
1717 if (err < 0) goto error;
1719 err = at_tok_nextint(&line, &(sr.sw2));
1720 if (err < 0) goto error;
1723 err = at_tok_nextstr(&line, &(sr.simResponse));
1724 if (err < 0) goto error;
1742 int err;
1753 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
1756 if (err < 0 || p_response->success == 0) {
1781 int err;
1784 err = at_send_command("AT+WSOS=0", &p_response);
1786 if (err < 0 || p_response->success == 0) {
1836 int err;
2007 err = at_send_command_numeric("AT+CIMI", &p_response);
2009 if (err < 0 || p_response->success == 0) {
2020 err = at_send_command_numeric("AT+CGSN", &p_response);
2022 if (err < 0 || p_response->success == 0) {
2041 err = at_send_command_numeric("AT+CUSD=2", &p_response);
2043 if (err < 0 || p_response->success == 0) {
2095 err = at_send_command(cmd, &p_response);
2097 if (err < 0 || p_response->success == 0) {
2292 int err;
2302 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
2304 if (err != 0) {
2325 err = at_tok_start (&cpinLine);
2327 if (err < 0) {
2332 err = at_tok_nextstr(&cpinLine, &cpinResult);
2334 if (err < 0) {
2369 int err;
2380 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
2382 if (err != 0) {
2403 err = at_tok_start (&cpinLine);
2405 if (err < 0) {
2410 err = at_tok_nextstr(&cpinLine, &cpinResult);
2412 if (err < 0) {
2581 int err;
2585 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
2587 if (err < 0 || p_response->success == 0) {
2594 err = at_tok_start(&line);
2595 if (err < 0) goto error;
2597 err = at_tok_nextbool(&line, &ret);
2598 if (err < 0) goto error;
2621 int err;
2629 err = at_tok_start(&p);
2630 if (err || !at_tok_hasmore(&p)) {
2631 ALOGD("err: %d. p: %s", err, p);
2636 err = at_tok_nextint(&p, &ct);
2637 if (err) {
2645 err = at_tok_nexthexint(&p, &pt);
2646 if (err) {
2661 int err, val, techs = 0;
2666 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
2667 if (err || !p_response->success)
2670 err = at_tok_start(&line);
2671 if (err || !at_tok_hasmore(&line))
2700 int err;
2704 err = at_send_command_singleline("AT+CTEC?", "+CTEC:", &response);
2705 if (!err && response->success) {
2710 ALOGE("Error executing command: %d. response: %x. status: %d", err, (int)response, response? response->success : -1);
2718 int err;
2740 int err;
2756 err = at_send_command_singleline("AT+WNAM","+WNAM:", &response);
2757 if (!err && response->success) {
2765 if (!err) at_response_free(response);
2779 int err;
2800 err = at_send_command("AT+CREG=2", &p_response);
2803 if (err < 0 || p_response->success == 0) {
2874 int err;
2890 err = at_tok_nextstr(&p, &response);
2893 if (err != 0) {