• Home
  • Raw
  • Download

Lines Matching refs:NULL

199 static const char * s_device_path = NULL;
207 static char *sATBufferCur = NULL;
291 if (p_call->number != NULL in callFromCLCCLine()
294 p_call->number = NULL; in callFromCLCCLine()
301 p_call->uusInfo = NULL; in callFromCLCCLine()
319 at_send_command("AT%CPHS=1", NULL); in onRadioPowerOn()
322 at_send_command("AT%CTZV=1", NULL); in onRadioPowerOn()
325 pollSIMState(NULL); in onRadioPowerOn()
331 at_send_command_singleline("AT+CSMS=1", "+CSMS:", NULL); in onSIMReady()
342 at_send_command("AT+CNMI=1,2,2,1,1", NULL); in onSIMReady()
350 ATResponse *p_response = NULL; in requestRadioPower()
375 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0); in requestRadioPower()
379 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0); in requestRadioPower()
386 requestOrSendDataCallList(NULL); in onDataCallListChanged()
404 if (t != NULL) in requestOrSendDataCallList()
405 RIL_onRequestComplete(*t, RIL_E_GENERIC_FAILURE, NULL, 0); in requestOrSendDataCallList()
408 NULL, 0); in requestOrSendDataCallList()
412 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
433 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
456 if (t != NULL) in requestOrSendDataCallList()
457 RIL_onRequestComplete(*t, RIL_E_GENERIC_FAILURE, NULL, 0); in requestOrSendDataCallList()
460 NULL, 0); in requestOrSendDataCallList()
464 for (p_cur = p_response->p_intermediates; p_cur != NULL; in requestOrSendDataCallList()
562 if (t != NULL) in requestOrSendDataCallList()
573 if (t != NULL) in requestOrSendDataCallList()
574 RIL_onRequestComplete(*t, RIL_E_GENERIC_FAILURE, NULL, 0); in requestOrSendDataCallList()
577 NULL, 0); in requestOrSendDataCallList()
586 ATResponse *p_response = NULL; in requestQueryNetworkSelectionMode()
616 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0); in requestQueryNetworkSelectionMode()
623 NULL, 0); in sendCallStateChanged()
648 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
654 ; p_cur != NULL
672 ; p_cur != NULL
740 RIL_requestTimedCallback (sendCallStateChanged, NULL, &TIMEVAL_CALLSTATEPOLL);
745 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
767 ret = at_send_command(cmd, NULL);
773 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
782 ATResponse *p_response = NULL;
793 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
798 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
815 ret = at_send_command(cmd, NULL);
821 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
826 ATResponse *p_response = NULL;
836 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
857 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
875 ATResponse *p_response = NULL;
876 char *cmd = NULL;
884 RIL_onRequestComplete(t, RIL_E_MODE_NOT_SUPPORTED, NULL, 0);
887 if (query_ctec(sMdmInfo, &current, NULL) < 0) {
888 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
899 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
905 int res = parse_technology_response(p_response->p_intermediates->line, &current, NULL);
916 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
925 switch ( query_ctec(sMdmInfo, NULL, &preferred) ) {
928 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
938 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
949 ATResponse *p_response = NULL;
965 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
973 ATResponse *p_response = NULL;
993 ATResponse *p_response = NULL;
1008 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1021 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1029 ATResponse *p_response = NULL;
1030 char *cmd = NULL;
1031 char *line = NULL;
1047 cmd = NULL;
1054 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1062 ATResponse *p_response = NULL;
1063 char *cmd = NULL;
1067 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1077 cmd = NULL;
1079 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1086 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1095 ATResponse *p_response = NULL;
1114 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1121 ATResponse *p_response = NULL;
1140 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1147 ATResponse *p_response = NULL;
1150 char *cmd = NULL;
1153 if (cmd == NULL) goto error;
1159 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1164 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1171 int *resp = NULL;
1283 char **responseStr = NULL;
1284 ATResponse *p_response = NULL;
1366 registration = NULL;
1371 responseStr[j] = NULL;
1374 responseStr = NULL;
1382 responseStr[j] = NULL;
1385 responseStr = NULL;
1388 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1402 ATResponse *p_response = NULL;
1417 ; p_cur != NULL
1431 response[i] = NULL;
1440 response[i] = NULL;
1459 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1492 RIL_onRequestComplete(t, RIL_E_SMS_SEND_FAIL_RETRY, NULL, 0);
1503 ATResponse *p_response = NULL;
1511 if (smsc == NULL) {
1531 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1540 ATResponse *p_response = NULL;
1547 NULL);
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);
1653 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1666 err = at_send_command("AT+CNMA=1", NULL);
1668 err = at_send_command("AT+CNMA=2", NULL);
1674 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1676 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1682 ATResponse *p_response = NULL;
1685 char *cmd = NULL;
1695 if (p_args->data == NULL) {
1733 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1741 ATResponse *p_response = NULL;
1743 char* cmd = NULL;
1758 RIL_onRequestComplete(t, RIL_E_PASSWORD_INCORRECT, NULL, 0);
1760 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1773 RIL_onRequestComplete(t, RIL_E_REQUEST_NOT_SUPPORTED, NULL, 0);
1782 ATResponse *p_response = NULL;
1787 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1791 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1846 RIL_onRequestComplete(t, RIL_E_RADIO_NOT_AVAILABLE, NULL, 0);
1857 RIL_onRequestComplete(t, RIL_E_RADIO_NOT_AVAILABLE, NULL, 0);
1872 p_buffer = NULL;
1892 at_send_command("AT+CHLD=0", NULL);
1896 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1902 at_send_command("AT+CHLD=1", NULL);
1906 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1912 at_send_command("AT+CHLD=2", NULL);
1920 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1923 at_send_command("ATA", NULL);
1931 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1936 at_send_command("AT+CHLD=3", NULL);
1940 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1945 at_send_command("ATH", NULL);
1949 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1962 at_send_command(cmd, NULL);
1963 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
1965 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
1987 at_send_command(cmd, NULL);
1989 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
2006 p_response = NULL;
2010 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
2019 p_response = NULL;
2023 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
2040 p_response = NULL;
2044 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
2053 at_send_command("AT+COPS=0", NULL);
2093 p_response = NULL;
2098 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
2100 RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0);
2119 RIL_onRequestComplete(t, RIL_E_GENERIC_FAILURE, NULL, 0);
2183 RIL_onRequestComplete(t, RIL_E_REQUEST_NOT_SUPPORTED, NULL, 0);
2274 NULL, 0);
2291 ATResponse *p_response = NULL;
2354 p_response = NULL;
2355 cpinResult = NULL;
2368 ATResponse *p_response = NULL;
2432 p_response = NULL;
2433 cpinResult = NULL;
2453 NULL, NULL, 0, RIL_PINSTATE_UNKNOWN, RIL_PINSTATE_UNKNOWN },
2456 NULL, NULL, 0, RIL_PINSTATE_UNKNOWN, RIL_PINSTATE_UNKNOWN },
2459 NULL, NULL, 0, RIL_PINSTATE_UNKNOWN, RIL_PINSTATE_UNKNOWN },
2462 NULL, NULL, 0, RIL_PINSTATE_ENABLED_NOT_VERIFIED, RIL_PINSTATE_UNKNOWN },
2465 NULL, NULL, 0, RIL_PINSTATE_ENABLED_BLOCKED, RIL_PINSTATE_UNKNOWN },
2468 NULL, NULL, 0, RIL_PINSTATE_ENABLED_NOT_VERIFIED, RIL_PINSTATE_UNKNOWN },
2471 NULL, NULL, 0, RIL_PINSTATE_UNKNOWN, RIL_PINSTATE_UNKNOWN },
2474 NULL, NULL, 0, RIL_PINSTATE_UNKNOWN, RIL_PINSTATE_UNKNOWN },
2477 NULL, NULL, 0, RIL_PINSTATE_UNKNOWN, RIL_PINSTATE_UNKNOWN },
2480 NULL, NULL, 0, RIL_PINSTATE_ENABLED_NOT_VERIFIED, RIL_PINSTATE_UNKNOWN },
2483 NULL, NULL, 0, RIL_PINSTATE_ENABLED_BLOCKED, RIL_PINSTATE_UNKNOWN },
2486 NULL, NULL, 0, RIL_PINSTATE_ENABLED_NOT_VERIFIED, RIL_PINSTATE_UNKNOWN }
2562 RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED, NULL, 0);
2566 RIL_requestTimedCallback (pollSIMState, NULL, &TIMEVAL_SIMPOLL);
2572 RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED, NULL, 0);
2580 ATResponse *p_response = NULL;
2699 ATResponse *response = NULL;
2778 ATResponse *p_response = NULL;
2791 at_send_command("ATE0Q0V1", NULL);
2794 at_send_command("ATS0=0", NULL);
2797 at_send_command("AT+CMEE=1", NULL);
2804 at_send_command("AT+CREG=1", NULL);
2810 at_send_command("AT+CGREG=1", NULL);
2813 at_send_command("AT+CCWA=1", NULL);
2816 at_send_command("AT+CMOD=0", NULL);
2819 at_send_command("AT+CMUT=0", NULL);
2822 at_send_command("AT+CSSN=0,1", NULL);
2825 at_send_command("AT+COLP=0", NULL);
2828 at_send_command("AT+CSCS=\"HEX\"", NULL);
2831 at_send_command("AT+CUSD=1", NULL);
2834 at_send_command("AT+CGEREP=1,0", NULL);
2837 at_send_command("AT+CMGF=0", NULL);
2841 at_send_command("AT%CPI=3", NULL);
2844 at_send_command("AT%CSTAT=1", NULL);
2873 char *line = NULL, *p;
2907 NULL, 0);
2909 RIL_requestTimedCallback (onDataCallListChanged, NULL, NULL); //TODO use new function
2916 NULL, 0);
2918 RIL_requestTimedCallback (onDataCallListChanged, NULL, NULL);
2934 RIL_requestTimedCallback (onDataCallListChanged, NULL, NULL);
2937 RIL_requestTimedCallback (onDataCallListChanged, NULL, NULL);
2941 switch (parse_technology_response(s, &tech, NULL))
2998 RIL_onUnsolicitedResponse(unsol, NULL, 0);
3101 } else if (s_device_path != NULL) {
3127 RIL_requestTimedCallback(initializeCallback, NULL, &TIMEVAL_0);
3157 return NULL;
3175 return NULL;
3179 if (s_port < 0 && s_device_path == NULL) {
3181 return NULL;
3187 return NULL;
3191 ret = pthread_create(&s_tid_mainloop, &attr, mainLoop, NULL);
3228 if (s_port < 0 && s_device_path == NULL) {
3234 mainLoop(NULL);