Lines Matching refs:line
288 static int callFromCLCCLine(char *line, RIL_Call *p_call) in callFromCLCCLine() argument
297 err = at_tok_start(&line); in callFromCLCCLine()
300 err = at_tok_nextint(&line, &(p_call->index)); in callFromCLCCLine()
303 err = at_tok_nextbool(&line, &(p_call->isMT)); in callFromCLCCLine()
306 err = at_tok_nextint(&line, &state); in callFromCLCCLine()
312 err = at_tok_nextint(&line, &mode); in callFromCLCCLine()
317 err = at_tok_nextbool(&line, &(p_call->isMpty)); in callFromCLCCLine()
320 if (at_tok_hasmore(&line)) { in callFromCLCCLine()
321 err = at_tok_nextstr(&line, &(p_call->number)); in callFromCLCCLine()
334 err = at_tok_nextint(&line, &p_call->toa); in callFromCLCCLine()
347 static int parseSimResponseLine(char* line, RIL_SIM_IO_Response* response) { in parseSimResponseLine() argument
350 err = at_tok_start(&line); in parseSimResponseLine()
352 err = at_tok_nextint(&line, &response->sw1); in parseSimResponseLine()
354 err = at_tok_nextint(&line, &response->sw2); in parseSimResponseLine()
357 if (at_tok_hasmore(&line)) { in parseSimResponseLine()
358 err = at_tok_nextstr(&line, &response->simResponse); in parseSimResponseLine()
625 char *line = p_cur->line; in requestOrSendDataCallList() local
627 err = at_tok_start(&line); in requestOrSendDataCallList()
631 err = at_tok_nextint(&line, &response->cid); in requestOrSendDataCallList()
635 err = at_tok_nextint(&line, &response->active); in requestOrSendDataCallList()
656 char *line = p_cur->line; in requestOrSendDataCallList() local
659 err = at_tok_start(&line); in requestOrSendDataCallList()
663 err = at_tok_nextint(&line, &cid); in requestOrSendDataCallList()
681 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
690 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
698 err = at_tok_nextstr(&line, &out); in requestOrSendDataCallList()
789 char *line; in requestQueryNetworkSelectionMode() local
797 line = p_response->p_intermediates->line; in requestQueryNetworkSelectionMode()
799 err = at_tok_start(&line); in requestQueryNetworkSelectionMode()
805 err = at_tok_nextint(&line, &response); in requestQueryNetworkSelectionMode()
876 err = callFromCLCCLine(p_cur->line, p_calls + countValidCalls);
1040 char *line; local
1056 line = p_response->p_intermediates->line;
1058 err = at_tok_start(&line);
1062 err = at_tok_nextint(&line, &(response[count]));
1119 if (!strstr( p_response->p_intermediates->line, "DONE") ) {
1121 int res = parse_technology_response(p_response->p_intermediates->line, ¤t, NULL);
1167 char *line; local
1171 line = p_response->p_intermediates->line;
1172 err = at_tok_start(&line);
1174 err = at_tok_nextstr(&line, &responseStr);
1192 char *line, *p; local
1212 char *line, *p; local
1229 responseStr[3] = p_response->p_intermediates->line;
1231 responseStr[0] = p_response->p_intermediates->line;
1246 char *line = NULL; local
1256 line = p_response->p_intermediates->line;
1257 err = at_tok_start(&line);
1260 err = at_tok_nextint(&line, &response);
1313 char *line, *p; local
1332 char *line; local
1339 line = p_response->p_intermediates->line;
1341 res = at_tok_start(&line);
1344 res = at_tok_nextint(&line, &roaming_pref);
1358 char *line; local
1380 char *line = str, *p; local
1387 err = at_tok_start(&line);
1413 for (p = line ; *p != '\0' ;p++) {
1421 err = at_tok_nextint(&line, &resp[0]);
1428 err = at_tok_nextint(&line, &skip);
1430 err = at_tok_nextint(&line, &resp[0]);
1438 err = at_tok_nextint(&line, &resp[0]);
1440 err = at_tok_nexthexint(&line, &resp[1]);
1442 err = at_tok_nexthexint(&line, &resp[2]);
1446 err = at_tok_nextint(&line, &skip);
1448 err = at_tok_nextint(&line, &resp[0]);
1450 err = at_tok_nexthexint(&line, &resp[1]);
1452 err = at_tok_nexthexint(&line, &resp[2]);
1459 err = at_tok_nextint(&line, &skip);
1461 err = at_tok_nextint(&line, &resp[0]);
1463 err = at_tok_nexthexint(&line, &resp[1]);
1465 err = at_tok_nexthexint(&line, &resp[2]);
1467 err = at_tok_nexthexint(&line, &resp[3]);
1499 char *line; local
1522 line = p_response->p_intermediates->line;
1524 if (parseRegistrationState(line, &type, &count, ®istration)) goto error;
1632 char *line = p_cur->line; local
1634 err = at_tok_start(&line);
1637 err = at_tok_nextint(&line, &skip);
1642 if (!at_tok_hasmore(&line)) {
1647 err = at_tok_nextint(&line, &skip);
1651 if (!at_tok_hasmore(&line)) {
1656 err = at_tok_nextstr(&line, &(response[i]));
1832 char *line; local
1853 line = p_response->p_intermediates->line;
1854 if (sscanf(line, "%" SCNd32 "%c", &session_id, &dummy) != 1) {
1855 ALOGE("Invalid AT response, expected integer, was '%s'", line);
1900 char *line; local
1925 line = p_response->p_intermediates->line;
1926 err = parseSimResponseLine(line, &sim_response);
1932 ALOGE("Error %d parsing SIM response line: %s", err, line);
2108 char *line; local
2132 line = p_response->p_intermediates->line;
2134 err = parseSimResponseLine(line, &sr);
2539 p_response->p_intermediates->line, sizeof(char *));
2552 p_response->p_intermediates->line, sizeof(char *));
2577 p_response->p_intermediates->line, sizeof(char *));
2936 cpinLine = p_response->p_intermediates->line;
3009 cpinLine = p_response->p_intermediates->line;
3209 char *line; local
3219 line = p_response->p_intermediates->line;
3221 err = at_tok_start(&line);
3224 err = at_tok_nextbool(&line, &ret);
3249 char *line, *p; local
3254 line = p = strdup(response);
3255 RLOGD("Response: %s", line);
3259 free(line);
3265 free(line);
3274 free(line);
3280 free(line);
3290 char *line; local
3296 line = p_response->p_intermediates->line;
3297 err = at_tok_start(&line);
3298 if (err || !at_tok_hasmore(&line))
3300 while (!at_tok_nextint(&line, &val)) {
3333 res = parse_technology_response(response->p_intermediates->line, current, preferred);
3346 char *line; local
3512 char *line = NULL, *p; local
3526 line = p = strdup(s);
3538 free(line);
3598 line = p = strdup(s);
3599 if (!line) {
3604 free(line);
3608 RLOGE("invalid +CCSS response: %s", line);
3609 free(line);
3618 line = p = strdup(s);
3619 if (!line) {
3624 free(line);
3628 RLOGE("invalid +WSOS response: %s", line);
3629 free(line);
3632 free(line);
3641 line = p = strdup(s);
3642 if (!line) {
3648 free(line);
3653 free(line);
3656 free(line);