Lines Matching refs:err
324 int err; in callFromCLCCLine() local
328 err = at_tok_start(&line); in callFromCLCCLine()
329 if (err < 0) goto error; in callFromCLCCLine()
331 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine()
332 if (err < 0) goto error; in callFromCLCCLine()
334 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine()
335 if (err < 0) goto error; in callFromCLCCLine()
337 err = at_tok_nextint(&line, &state); in callFromCLCCLine()
338 if (err < 0) goto error; in callFromCLCCLine()
340 err = clccStateToRILState(state, &(p_call->state)); in callFromCLCCLine()
341 if (err < 0) goto error; in callFromCLCCLine()
343 err = at_tok_nextint(&line, &mode); in callFromCLCCLine()
344 if (err < 0) goto error; in callFromCLCCLine()
348 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine()
349 if (err < 0) goto error; in callFromCLCCLine()
352 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine()
355 if (err < 0) return 0; in callFromCLCCLine()
365 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine()
366 if (err < 0) goto error; in callFromCLCCLine()
379 int err; in parseSimResponseLine() local
381 err = at_tok_start(&line); in parseSimResponseLine()
382 if (err < 0) return err; in parseSimResponseLine()
383 err = at_tok_nextint(&line, &response->sw1); in parseSimResponseLine()
384 if (err < 0) return err; in parseSimResponseLine()
385 err = at_tok_nextint(&line, &response->sw2); in parseSimResponseLine()
386 if (err < 0) return err; in parseSimResponseLine()
389 err = at_tok_nextstr(&line, &response->simResponse); in parseSimResponseLine()
390 if (err < 0) return err; in parseSimResponseLine()
501 int err; in requestRadioPower() local
508 err = at_send_command("AT+CFUN=0", &p_response); in requestRadioPower()
509 if (err < 0 || p_response->success == 0) goto error; in requestRadioPower()
512 err = at_send_command("AT+CFUN=1", &p_response); in requestRadioPower()
513 if (err < 0|| p_response->success == 0) { in requestRadioPower()
538 int err; in requestShutdown() local
542 err = at_send_command("AT+CFUN=0", &p_response); in requestShutdown()
633 int err; in requestOrSendDataCallList() local
642 err = at_send_command_multiline ("AT+CGACT?", "+CGACT:", &p_response); in requestOrSendDataCallList()
643 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
679 err = at_tok_start(&line); in requestOrSendDataCallList()
680 if (err < 0) in requestOrSendDataCallList()
683 err = at_tok_nextint(&line, &response->cid); in requestOrSendDataCallList()
684 if (err < 0) in requestOrSendDataCallList()
687 err = at_tok_nextint(&line, &response->active); in requestOrSendDataCallList()
688 if (err < 0) in requestOrSendDataCallList()
696 err = at_send_command_multiline ("AT+CGDCONT?", "+CGDCONT:", &p_response); in requestOrSendDataCallList()
697 if (err != 0 || p_response->success == 0) { in requestOrSendDataCallList()
711 err = at_tok_start(&line); in requestOrSendDataCallList()
712 if (err < 0) in requestOrSendDataCallList()
715 err = at_tok_nextint(&line, &cid); in requestOrSendDataCallList()
716 if (err < 0) in requestOrSendDataCallList()
733 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
734 if (err < 0) in requestOrSendDataCallList()
742 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
743 if (err < 0) in requestOrSendDataCallList()
754 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
755 if (err < 0) in requestOrSendDataCallList()
890 int err; in setNetworkSelectionAutomatic() local
898 err = at_send_command("AT+COPS=0", &p_response); in setNetworkSelectionAutomatic()
900 if (err < 0 || p_response == NULL || p_response->success == 0) { in setNetworkSelectionAutomatic()
912 int err; in requestQueryNetworkSelectionMode() local
917 err = at_send_command_singleline("AT+COPS?", "+COPS:", &p_response); in requestQueryNetworkSelectionMode()
919 if (err < 0 || p_response->success == 0) { in requestQueryNetworkSelectionMode()
925 err = at_tok_start(&line); in requestQueryNetworkSelectionMode()
927 if (err < 0) { in requestQueryNetworkSelectionMode()
931 err = at_tok_nextint(&line, &response); in requestQueryNetworkSelectionMode()
933 if (err < 0) { in requestQueryNetworkSelectionMode()
955 int err; local
972 err = at_send_command_multiline ("AT+CLCC", "+CLCC:", &p_response);
974 if (err != 0 || p_response->success == 0) {
1002 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
1004 if (err != 0) {
1110 int err; local
1123 err = at_send_command_sms(cmd, p_args->pdu, "+CMGW:", &p_response);
1125 if (err != 0 || p_response->success == 0) goto error;
1165 int err; local
1175 err = at_send_command_singleline("AT+CSQ", "+CSQ:", &p_response);
1177 if (err < 0 || p_response->success == 0) {
1184 err = at_tok_start(&line);
1185 if (err < 0) goto error;
1188 err = at_tok_nextint(&line, &(response[count]));
1189 if (err < 0 && count < minNumOfElements) goto error;
1227 int err; local
1244 err = at_send_command_singleline(cmd, "+CTEC:", &p_response);
1246 if (err || !p_response->success) {
1295 int err; local
1301 err = at_send_command_singleline("AT+WPRL?", "+WPRL:", &p_response);
1302 if (err < 0 || !p_response->success) goto error;
1304 err = at_tok_start(&line);
1305 if (err < 0) goto error;
1306 err = at_tok_nextstr(&line, &responseStr);
1307 if (err < 0 || !responseStr) goto error;
1319 int err; local
1338 int err; local
1355 err = at_send_command_numeric("AT+CGSN", &p_response);
1356 if (err < 0 || p_response->success == 0) {
1374 int err; local
1384 err = at_send_command_singleline(cmd, "+CCSS:", &p_response);
1385 if (err < 0 || !p_response->success)
1389 err = at_tok_start(&line);
1390 if (err < 0) goto error;
1392 err = at_tok_nextint(&line, &response);
1407 int err; local
1420 err = at_send_command(cmd, &p_response);
1421 if (err < 0 || !p_response->success)
1439 int err; local
1511 int err; local
1519 err = at_tok_start(&line);
1520 if (err < 0) goto error;
1553 err = at_tok_nextint(&line, &resp[0]);
1554 if (err < 0) goto error;
1560 err = at_tok_nextint(&line, &skip);
1561 if (err < 0) goto error;
1562 err = at_tok_nextint(&line, &resp[0]);
1563 if (err < 0) goto error;
1566 if (err < 0) goto error;
1570 err = at_tok_nextint(&line, &resp[0]);
1571 if (err < 0) goto error;
1572 err = at_tok_nexthexint(&line, &resp[1]);
1573 if (err < 0) goto error;
1574 err = at_tok_nexthexint(&line, &resp[2]);
1575 if (err < 0) goto error;
1578 err = at_tok_nextint(&line, &skip);
1579 if (err < 0) goto error;
1580 err = at_tok_nextint(&line, &resp[0]);
1581 if (err < 0) goto error;
1582 err = at_tok_nexthexint(&line, &resp[1]);
1583 if (err < 0) goto error;
1584 err = at_tok_nexthexint(&line, &resp[2]);
1585 if (err < 0) goto error;
1591 err = at_tok_nextint(&line, &skip);
1592 if (err < 0) goto error;
1593 err = at_tok_nextint(&line, &resp[0]);
1594 if (err < 0) goto error;
1595 err = at_tok_nexthexint(&line, &resp[1]);
1596 if (err < 0) goto error;
1597 err = at_tok_nexthexint(&line, &resp[2]);
1598 if (err < 0) goto error;
1599 err = at_tok_nexthexint(&line, &resp[3]);
1600 if (err < 0) goto error;
1625 int err; local
1655 err = at_send_command_singleline(cmd, prefix, &p_response);
1657 if (err != 0) goto error;
1743 int err; local
1753 err = at_send_command_multiline(
1763 if (err != 0) goto error;
1771 err = at_tok_start(&line);
1772 if (err < 0) goto error;
1774 err = at_tok_nextint(&line, &skip);
1775 if (err < 0) goto error;
1784 err = at_tok_nextint(&line, &skip);
1785 if (err < 0) goto error;
1793 err = at_tok_nextstr(&line, &(response[i]));
1794 if (err < 0) goto error;
1820 int err = 1; // Set to go to error: local
1841 if (err != 0) goto error;
1859 int err; local
1891 err = at_send_command_sms(cmd1, cmd2, "+CMGS:", &p_response);
1896 if (err != 0 || p_response->success == 0) goto error;
1966 int err; local
1982 err = at_send_command_numeric(cmd, &p_response);
1983 if (err < 0 || p_response == NULL || p_response->success == 0) {
1985 err, p_response ? p_response->success : 0);
2010 int err; local
2020 err = at_send_command_singleline(cmd, "+CCHC", &p_response);
2022 if (err < 0 || p_response == NULL || p_response->success == 0) {
2029 err, session_id, p_response ? p_response->success : 0);
2045 int err; local
2064 err = at_send_command_singleline(cmd, "+CGLA", &p_response);
2066 if (err < 0 || p_response == NULL || p_response->success == 0) {
2068 err, p_response ? p_response->success : 0);
2075 err = parseSimResponseLine(line, &sim_response);
2077 if (err == 0) {
2081 RLOGE("Error %d parsing SIM response line: %s", err, line);
2091 int err; local
2098 err = at_send_command("AT%CPRIM=\"GMM\",\"CONFIG MULTISLOT_CLASS=<10>\"",
2101 err = at_send_command("AT%DATA=2,\"UART\",1,,\"SER\",\"UART\",0", NULL);
2181 err = at_send_command(cmd, NULL);
2185 err = at_send_command("AT+CGQREQ=1", NULL);
2188 err = at_send_command("AT+CGQMIN=1", NULL);
2191 err = at_send_command("AT+CGEREP=1,0", NULL);
2194 err = at_send_command("AT+CGACT=1,0", NULL);
2197 err = at_send_command("ATD*99***1#", &p_response);
2199 if (err < 0 || p_response->success == 0) {
2226 int err; local
2236 err = at_send_command("AT+CNMA=1", NULL);
2238 err = at_send_command("AT+CNMA=2", NULL);
2254 int err; local
2279 err = at_send_command_singleline(cmd, "+CRSM:", &p_response);
2281 if (err < 0 || p_response->success == 0) {
2287 err = parseSimResponseLine(line, &sr);
2288 if (err < 0) {
2307 int err; local
2318 err = at_send_command_singleline(cmd, "+CPIN:", &p_response);
2321 if (err < 0 || p_response->success == 0) {
2346 int err; local
2349 err = at_send_command("AT+WSOS=0", &p_response);
2351 if (err < 0 || p_response->success == 0) {
2506 int err; local
2513 err = at_send_command_singleline(cmd, "+CSIM:", &p_response);
2514 if (err < 0 || p_response == NULL || p_response->success == 0) {
2516 err, p_response ? p_response->success : 0);
2532 int err; local
2537 err = at_send_command_singleline("AT+MAI", "+MAI:", &p_response);
2538 if (err < 0 || p_response == NULL || p_response->success == 0) {
2540 err, (p_response ? p_response->success : 0));
2572 int err; local
2579 err = at_send_command_singleline(cmd, "+CRRSTR:", &p_response);
2583 if (err == 0 && success) {
2586 ALOGE("'%s' failed with err=%d success=%d", cmd, err, success);
2609 int err; local
2797 err = at_send_command_numeric("AT+CIMI", &p_response);
2799 if (err < 0 || p_response->success == 0) {
2810 err = at_send_command_numeric("AT+CGSN", &p_response);
2812 if (err < 0 || p_response->success == 0) {
2835 err = at_send_command_numeric("AT+CUSD=2", &p_response);
2837 if (err < 0 || p_response->success == 0) {
2889 err = at_send_command(cmd, &p_response);
2891 if (err < 0 || p_response->success == 0) {
3181 int err; local
3191 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
3193 if (err != 0) {
3214 err = at_tok_start (&cpinLine);
3216 if (err < 0) {
3221 err = at_tok_nextstr(&cpinLine, &cpinResult);
3223 if (err < 0) {
3258 int err; local
3264 err = at_send_command_singleline("AT+CPIN?", "+CPIN:", &p_response);
3266 if (err != 0) {
3287 err = at_tok_start (&cpinLine);
3289 if (err < 0) {
3294 err = at_tok_nextstr(&cpinLine, &cpinResult);
3296 if (err < 0) {
3500 int err; local
3504 err = at_send_command_singleline("AT+CFUN?", "+CFUN:", &p_response);
3506 if (err < 0 || p_response->success == 0) {
3513 err = at_tok_start(&line);
3514 if (err < 0) goto error;
3516 err = at_tok_nextbool(&line, &ret);
3517 if (err < 0) goto error;
3540 int err; local
3548 err = at_tok_start(&p);
3549 if (err || !at_tok_hasmore(&p)) {
3550 RLOGD("err: %d. p: %s", err, p);
3555 err = at_tok_nextint(&p, &ct);
3556 if (err) {
3564 err = at_tok_nexthexint(&p, &pt);
3565 if (err) {
3580 int err, val, techs = 0; local
3585 err = at_send_command_singleline("AT+CTEC=?", "+CTEC:", &p_response);
3586 if (err || !p_response->success)
3589 err = at_tok_start(&line);
3590 if (err || !at_tok_hasmore(&line))
3619 int err; local
3623 err = at_send_command_singleline("AT+CTEC?", "+CTEC:", &response);
3624 if (!err && response->success) {
3629 …RLOGE("Error executing command: %d. response: %p. status: %d", err, response, response? response->…
3637 int err; local
3659 int err; local
3675 err = at_send_command_singleline("AT+WNAM","+WNAM:", &response);
3676 if (!err && response->success) {
3684 if (!err) at_response_free(response);
3698 int err; local
3719 err = at_send_command("AT+CREG=2", &p_response);
3722 if (err < 0 || p_response->success == 0) {
3805 int err; local
3821 err = at_tok_start(&line);
3822 if(err) {
3827 for (int i=0; i < kSize && !err; ++i) {
3828 err = at_tok_nextint(&line, &(configs[i]));
3831 if(err) {
3846 err = at_tok_nextstr(&p, &response);
3848 if (err != 0) {