Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 167) sorted by relevance

1234567

/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c142 if (op_to_set == NULL) { in set_ipp_version()
166 if (http == NULL) { in determine_ipp_version()
185 ipp_t *request = NULL; in test_and_set_ipp_version()
197 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); in test_and_set_ipp_version()
200 NULL, __request_ipp_version); in test_and_set_ipp_version()
201 if ((response = cupsDoRequest(http, request, http_resource)) == NULL) { in test_and_set_ipp_version()
266 if (response != NULL) ippDelete(response); in test_and_set_ipp_version()
280 ipp_t *request = NULL; in get_PrinterState()
281 ipp_t *response = NULL; in get_PrinterState()
287 if (printer_state_dyn == NULL) { in get_PrinterState()
[all …]
Dipp_print.c43 .send_data = _send_data, .end_job = _end_job, .destroy = _destroy, .enable_timeout = NULL,
65 if (ipp_job == NULL) { in ipp_get_print_ifc()
66 return NULL; in ipp_get_print_ifc()
83 if (this_p == NULL) { in _init()
88 if (ipp_job->http != NULL) { in _init()
92 if ((printer_uri == NULL) || (strlen(printer_uri) == 0)) { in _init()
101 ipp_scheme, NULL, printer_address, ippPortNumber, "%s", printer_uri); in _init()
104 ipp_job->http = httpConnect2(printer_address, ippPortNumber, NULL, AF_UNSPEC, in _init()
105 HTTP_ENCRYPTION_ALWAYS, 1, HTTP_TIMEOUT_MILLIS, NULL); in _init()
108 if (ipp_job->http == NULL) { in _init()
[all …]
Dippstatus_monitor.c74 monitor->http = NULL; in ipp_status_get_monitor_ifc()
83 if (this_p == NULL) { in _init()
96 if (monitor->http != NULL) { in _init()
119 if (this_p == NULL) { in _destroy()
134 if (monitor->http != NULL) { in _destroy()
150 if (printer_state_dyn == NULL) { in _get_status()
161 if (this_p == NULL) { in _get_status()
172 if (monitor->http == NULL) { in _get_status()
192 ipp_monitor_t *monitor = NULL; in _start()
209 if (status_cb != NULL) { in _start()
[all …]
Dippstatus_capabilities.c83 .init = _init, .get_capabilities = _get_capabilities, .get_margins = NULL,
96 if (caps == NULL) { in ipp_status_get_capabilities_ifc()
97 return NULL; in ipp_status_get_capabilities_ifc()
101 caps->http = NULL; in ipp_status_get_capabilities_ifc()
112 if (this_p == NULL) { in _init()
117 if (caps->http != NULL) { in _init()
125 if (caps->http == NULL) { in _init()
135 ipp_capabilities_t *caps = NULL; in _get_capabilities()
136 ipp_t *request = NULL; // IPP request object in _get_capabilities()
137 ipp_t *response = NULL; // IPP response object in _get_capabilities()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpegstream.cpp35 if (env->ExceptionCheck() || thisClass == NULL) { in OutputStream_setup()
40 if (NULL == fidNumber || env->ExceptionCheck()) { in OutputStream_setup()
88 if (env->ExceptionCheck() || thisClass == NULL) { in InputStream_setup()
91 jmethodID setMethod = NULL; in InputStream_setup()
94 if (dimens != NULL) { in InputStream_setup()
96 if (env->ExceptionCheck() || pointClass == NULL) { in InputStream_setup()
100 if (env->ExceptionCheck() || setMethod == NULL) { in InputStream_setup()
106 if (NULL == fidNumber || env->ExceptionCheck()) { in InputStream_setup()
131 if (dimens != NULL) { in InputStream_setup()
150 if (env->ExceptionCheck() || thisClass == NULL) { in getWPtr()
[all …]
Dstream_wrapper.cpp22 StreamWrapper::StreamWrapper() : mEnv(NULL), in StreamWrapper()
23 mStream(NULL), in StreamWrapper()
24 mByteArray(NULL), in StreamWrapper()
25 mBytes(NULL), in StreamWrapper()
33 if (env == NULL) { in updateEnv()
41 if (mEnv != NULL) { in init()
47 if (mStream == NULL || env->ExceptionCheck()) { in init()
53 if (tmp == NULL || env->ExceptionCheck()){ in init()
58 if (mByteArray == NULL || env->ExceptionCheck()){ in init()
62 mBytes = env->GetByteArrayElements(mByteArray, NULL); in init()
[all …]
/packages/apps/Nfc/nci/jni/
DPeerToPeer.cpp127 if ((mServers[i] != NULL) && in findServerLocked()
134 return NULL; in findServerLocked()
150 if ((mServers[i] != NULL) && (mServers[i]->mJniHandle == jniHandle)) { in findServerLocked()
156 return NULL; in findServerLocked()
172 if ((mServers[i] != NULL) && in findServerLocked()
178 return NULL; in findServerLocked()
198 sp<P2pServer> pSrv = NULL; in registerServer()
202 if ((pSrv = findServerLocked(serviceName)) != NULL) { in registerServer()
214 if (mServers[ii] == NULL) { in registerServer()
225 if (pSrv == NULL) { in registerServer()
[all …]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphNxpExtns_MifareStd.cpp32 phFriNfc_sNdefSmtCrdFmt_t* NdefSmtCrdFmt = NULL;
33 phFriNfc_NdefMap_t* NdefMap = NULL;
101 if (NdefMap != NULL) { in phNxpExtns_MfcModuleDeInit()
102 if (NdefMap->psRemoteDevInfo != NULL) { in phNxpExtns_MfcModuleDeInit()
104 NdefMap->psRemoteDevInfo = NULL; in phNxpExtns_MfcModuleDeInit()
106 if (NdefMap->SendRecvBuf != NULL) { in phNxpExtns_MfcModuleDeInit()
108 NdefMap->SendRecvBuf = NULL; in phNxpExtns_MfcModuleDeInit()
110 if (NdefMap->SendRecvLength != NULL) { in phNxpExtns_MfcModuleDeInit()
112 NdefMap->SendRecvLength = NULL; in phNxpExtns_MfcModuleDeInit()
114 if (NdefMap->DataCount != NULL) { in phNxpExtns_MfcModuleDeInit()
[all …]
DphFriNfc_SmtCrdFmt.cpp74 if ((SendRecvBuffLen == NULL) || (NdefSmtCrdFmt == NULL) || in phFriNfc_NdefSmtCrd_Reset()
75 (psRemoteDevInfo == NULL) || (SendRecvBuffer == NULL) || in phFriNfc_NdefSmtCrd_Reset()
76 (LowerDevice == NULL) || (*SendRecvBuffLen == 0) || in phFriNfc_NdefSmtCrd_Reset()
86 NdefSmtCrdFmt->CompletionRoutine[index].CompletionRoutine = NULL; in phFriNfc_NdefSmtCrd_Reset()
88 NdefSmtCrdFmt->CompletionRoutine[index].Context = NULL; in phFriNfc_NdefSmtCrd_Reset()
116 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.CompletionRoutine = NULL; in phFriNfc_NdefSmtCrd_Reset()
117 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.Context = NULL; in phFriNfc_NdefSmtCrd_Reset()
143 if ((NdefSmtCrdFmt == NULL) || (FunctionID >= PH_FRINFC_SMTCRDFMT_CR) || in phFriNfc_NdefSmtCrd_SetCR()
144 (CompletionRoutine == NULL) || (CompletionRoutineContext == NULL)) { in phFriNfc_NdefSmtCrd_SetCR()
177 if (Context != NULL) { in phFriNfc_NdefSmtCrd_Process()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_pan.cpp43 static const btpan_interface_t* sPanIf = NULL;
44 static jobject mCallbacksObj = NULL;
48 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
53 return NULL; in marshall_bda()
63 if (mCallbacksObj == NULL) { in control_state_callback()
82 if (mCallbacksObj == NULL) { in connection_state_callback()
119 if (btIf == NULL) { in initializeNative()
124 if (sPanIf != NULL) { in initializeNative()
127 sPanIf = NULL; in initializeNative()
130 if (mCallbacksObj != NULL) { in initializeNative()
[all …]
Dcom_android_bluetooth_sdp.cpp45 static const btsdp_interface_t* sBluetoothSdpInterface = NULL;
54 static jobject sCallbacksObj = NULL;
59 if (btInf == NULL) { in initializeNative()
63 if (sBluetoothSdpInterface != NULL) { in initializeNative()
66 sBluetoothSdpInterface = NULL; in initializeNative()
71 if (sBluetoothSdpInterface == NULL) { in initializeNative()
112 jbyte* addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative()
113 if (addr == NULL) { in sdpSearchNative()
118 jbyte* uuid = env->GetByteArrayElements(uuidObj, NULL); in sdpSearchNative()
162 ScopedLocalRef<jstring> service_name(sCallbackEnv.get(), NULL); in sdp_search_callback()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp83 static const bt_interface_t* sBluetoothInterface = NULL;
84 static const btsock_interface_t* sBluetoothSocketInterface = NULL;
85 static JavaVM* vm = NULL;
86 static JNIEnv* callbackEnv = NULL;
157 sCallbackEnv->NewObjectArray(num_properties, mclass.get(), NULL)); in adapter_properties_callback()
211 sCallbackEnv->NewObjectArray(num_properties, mclass.get(), NULL)); in remote_device_properties_callback()
250 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in device_found_callback()
573 args.group = NULL; in callback_thread_event()
609 len, android_bluetooth_UidTraffic.clazz, NULL)); in energy_info_recv_callback()
707 sAlarmCallback = NULL; in set_wake_alarm_callout()
[all …]
Dcom_android_bluetooth_hid_host.cpp36 static const bthh_interface_t* sBluetoothHidInterface = NULL;
37 static jobject mCallbacksObj = NULL;
42 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
47 return NULL; in marshall_bda()
184 NULL,
209 if (btInf == NULL) { in initializeNative()
214 if (sBluetoothHidInterface != NULL) { in initializeNative()
217 sBluetoothHidInterface = NULL; in initializeNative()
220 if (mCallbacksObj != NULL) { in initializeNative()
223 mCallbacksObj = NULL; in initializeNative()
[all …]
Dcom_android_bluetooth_hid_device.cpp37 static const bthd_interface_t* sHiddIf = NULL;
38 static jobject mCallbacksObj = NULL;
42 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
47 return NULL; in marshall_bda()
64 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in application_state_callback()
176 if ((btif = getBluetoothInterface()) == NULL) { in initNative()
181 if (sHiddIf != NULL) { in initNative()
184 sHiddIf = NULL; in initNative()
187 if (mCallbacksObj != NULL) { in initNative()
190 mCallbacksObj = NULL; in initNative()
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp32 static const btav_sink_interface_t* sBluetoothA2dpInterface = NULL;
33 static jobject mCallbacksObj = NULL;
115 if (btInf == NULL) { in initNative()
120 if (sBluetoothA2dpInterface != NULL) { in initNative()
123 sBluetoothA2dpInterface = NULL; in initNative()
126 if (mCallbacksObj != NULL) { in initNative()
129 mCallbacksObj = NULL; in initNative()
135 if (sBluetoothA2dpInterface == NULL) { in initNative()
144 sBluetoothA2dpInterface = NULL; in initNative()
154 if (btInf == NULL) { in cleanupNative()
[all …]
Dcom_android_bluetooth_hfpclient.cpp27 static bthf_client_interface_t* sBluetoothHfpClientInterface = NULL;
28 static jobject mCallbacksObj = NULL;
55 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
60 return NULL; in marshall_bda()
450 if (btInf == NULL) { in initializeNative()
455 if (sBluetoothHfpClientInterface != NULL) { in initializeNative()
458 sBluetoothHfpClientInterface = NULL; in initializeNative()
461 if (mCallbacksObj != NULL) { in initializeNative()
464 mCallbacksObj = NULL; in initializeNative()
470 if (sBluetoothHfpClientInterface == NULL) { in initializeNative()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.cpp31 m_reference_image = NULL; in db_FrameToReferenceRegistration()
32 m_aligned_ins_image = NULL; in db_FrameToReferenceRegistration()
34 m_quarter_res_image = NULL; in db_FrameToReferenceRegistration()
35 m_horz_smooth_subsample_image = NULL; in db_FrameToReferenceRegistration()
37 m_x_corners_ref = NULL; in db_FrameToReferenceRegistration()
38 m_y_corners_ref = NULL; in db_FrameToReferenceRegistration()
40 m_x_corners_ins = NULL; in db_FrameToReferenceRegistration()
41 m_y_corners_ins = NULL; in db_FrameToReferenceRegistration()
43 m_match_index_ref = NULL; in db_FrameToReferenceRegistration()
44 m_match_index_ins = NULL; in db_FrameToReferenceRegistration()
[all …]
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeDnsJni.c37 char *service = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
40 int res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
49 while (current != NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
66 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
74 res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
82 while (current != NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
99 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
122 res = getnameinfo((const struct sockaddr*)&sa4, sizeof(sa4), buf, sizeof(buf), NULL, 0, flags); in Java_android_net_cts_DnsTest_testNativeDns()
128 if (strstr(buf, "google.com") == NULL && strstr(buf, "dns.google") == NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
135 res = getnameinfo((const struct sockaddr*)&sa6, sizeof(sa6), buf, sizeof(buf), NULL, 0, flags); in Java_android_net_cts_DnsTest_testNativeDns()
[all …]
/packages/services/BuiltInPrintService/jni/lib/
Dlib_wprint.c228 return NULL; in _get_job_desc()
235 return NULL; in _get_job_desc()
339 return (jq->debug_path[0] == 0) ? NULL : &_debug_stream_ifc; in getDebugStreamIfc()
341 return NULL; in getDebugStreamIfc()
360 if (_io_plugins[i].io_plugin == NULL) { in _get_caps_ifc()
361 return NULL; in _get_caps_ifc()
363 if (_io_plugins[i].io_plugin->getCapsIFC == NULL) { in _get_caps_ifc()
364 return NULL; in _get_caps_ifc()
370 return NULL; in _get_caps_ifc()
377 if (_io_plugins[i].io_plugin == NULL) { in _get_status_ifc()
[all …]
DwprintJNI.c123 JavaVM *_JVM = NULL;
138 if (mime_type == NULL || pathname == NULL) { in _is_pdf_doc()
153 if (s == NULL || *s == '\0' || isspace(*s)) { in _isNumeric()
286 char *page_range = NULL; in _get_pdf_page_range()
300 page_range = NULL; in _get_pdf_page_range()
323 while (page_range_split != NULL) { in _get_pdf_page_range()
332 page_range_split = strtok(NULL, ","); in _get_pdf_page_range()
600 jbyte *nativeDataPtr = (*env)->GetByteArrayElements(env, nativeDataObject, NULL); in _convertPrinterCaps_to_C()
624 jbyte *nativeDataPtr = (*env)->GetByteArrayElements(env, nativeDataObject, NULL); in _convertPrinterCaps_to_Java()
660 intArrayPtr = (*env)->GetIntArrayElements(env, intArray, NULL); in _convertPrinterCaps_to_Java()
[all …]
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp91 {0, 0, 0, 0, NULL, NULL, 0},
184 if ((ai) == NULL) { \
220 assert(p != NULL); in str2number()
223 ep = NULL; in str2number()
247 return _find_src_addr(&addr.sa, NULL, mark, uid) == 1; in have_ipv6()
256 return _find_src_addr(&addr.sa, NULL, mark, uid) == 1; in have_ipv4()
508 assert(pai != NULL); in explore_null()
510 assert(res != NULL); in explore_null()
512 *res = NULL; in explore_null()
513 sentinel.ai_next = NULL; in explore_null()
[all …]
Dsethostent.cpp62 *hf = NULL; in endhostent_r()
75 FILE* hf = NULL; in _hf_gethtbyname2()
77 if (hf == NULL) { in _hf_gethtbyname2()
85 if ((ptr = buf = (char*) malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
89 hent.h_name = NULL; in _hf_gethtbyname2()
100 if (hp == NULL) { in _hf_gethtbyname2()
109 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()
112 if (*cp == NULL) continue; in _hf_gethtbyname2()
161 hp->h_addr_list[num] = NULL; in _hf_gethtbyname2()
168 hp->h_aliases[anum] = NULL; in _hf_gethtbyname2()
[all …]
Dgethnamaddr.cpp144 _DIAGASSERT(answer != NULL); in getanswer()
145 _DIAGASSERT(qname != NULL); in getanswer()
148 hent->h_name = NULL; in getanswer()
162 return NULL; /* XXX should be abort(); */ in getanswer()
194 *hap = NULL; in getanswer()
352 *hap = NULL; in getanswer()
365 return NULL; in getanswer()
385 return NULL; in getanswer()
432 if ((isxdigit((uint8_t)name[0]) && strchr(name, ':') != NULL) || name[0] == ':') { in resolv_gethostbyname()
462 hp->h_aliases[0] = NULL; in resolv_gethostbyname()
[all …]
/packages/services/BuiltInPrintService/jni/plugins/
Dplugin_pdf.c39 NULL};
43 NULL};
57 if (job_params == NULL) return ERROR; in _start_job()
59 job_params->plugin_data = NULL; in _start_job()
60 if ((wprint_ifc_p == NULL) || (print_job_ifc_p == NULL)) return ERROR; in _start_job()
78 if (job_params == NULL) return ERROR; in _print_page()
82 if (priv == NULL) return ERROR; in _print_page()
87 if (buff == NULL) { in _print_page()
112 if ((job_params->page_range != NULL) && (strcmp(job_params->page_range, "") != 0)) { in _print_page()
119 if (job_params != NULL) { in _end_job()
[all …]
Dplugin_pcl.c83 NULL};
89 NULL};
100 if (priv != NULL) { in _cleanup_plugin_data()
139 if (msg.param.end_page.buffers[i] != NULL) { in _send_thread()
148 return NULL; in _send_thread()
158 if (param == NULL) { in _start_thread()
199 if (priv == NULL) { in _stop_thread()
219 plugin_data_t *priv = NULL; in _start_job()
222 if (job_params == NULL) continue; in _start_job()
224 job_params->plugin_data = NULL; in _start_job()
[all …]

1234567