/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 97 if (op_to_set == NULL) { in set_ipp_version() 121 if (http == NULL) { in determine_ipp_version() 140 ipp_t *request = NULL; in test_and_set_ipp_version() 152 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); in test_and_set_ipp_version() 155 NULL, __request_ipp_version); in test_and_set_ipp_version() 156 if ((response = cupsDoRequest(http, request, http_resource)) == NULL) { in test_and_set_ipp_version() 221 if (response != NULL) ippDelete(response); in test_and_set_ipp_version() 235 ipp_t *request = NULL; in get_PrinterState() 236 ipp_t *response = NULL; in get_PrinterState() 242 if (printer_state_dyn == NULL) { in get_PrinterState() [all …]
|
D | ipp_print.c | 43 .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, printer_uri); in _init() 107 if (ipp_job->http == NULL) { in _init() 114 httpSetTimeout(ipp_job->http, DEFAULT_IPP_TIMEOUT, NULL, 0); in _init() 122 if (this_p == NULL) { in _destroy() [all …]
|
D | ippstatus_monitor.c | 74 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 …]
|
D | ippstatus_capabilities.c | 79 .init = _init, .get_capabilities = _get_capabilities, .get_margins = NULL, 92 if (caps == NULL) { in ipp_status_get_capabilities_ifc() 93 return NULL; in ipp_status_get_capabilities_ifc() 97 caps->http = NULL; in ipp_status_get_capabilities_ifc() 108 if (this_p == NULL) { in _init() 113 if (caps->http != NULL) { in _init() 121 if (caps->http == NULL) { in _init() 131 ipp_capabilities_t *caps = NULL; in _get_capabilities() 132 ipp_t *request = NULL; // IPP request object in _get_capabilities() 133 ipp_t *response = NULL; // IPP response object in _get_capabilities() [all …]
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpegstream.cpp | 35 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 …]
|
D | stream_wrapper.cpp | 22 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 …]
|
D | jpeg_hook.cpp | 50 if (cinfo->dest != NULL) { in MakeDst() 57 if (cinfo->dest == NULL) { in MakeDst() 80 if (cinfo != NULL && cinfo->dest != NULL) { in CleanDst() 82 if (d->outStream != NULL) { in CleanDst() 84 d->outStream = NULL; in CleanDst() 157 if (cinfo->src != NULL) { in MakeSrc() 164 if (cinfo->src == NULL) { in MakeSrc() 191 if (cinfo != NULL && cinfo->src != NULL) { in CleanSrc() 193 if (s->inStream != NULL) { in CleanSrc() 195 s->inStream = NULL; in CleanSrc()
|
/packages/apps/Nfc/nci/jni/ |
D | PeerToPeer.cpp | 127 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/ |
D | phNxpExtns_MifareStd.cpp | 32 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 …]
|
D | phFriNfc_SmtCrdFmt.cpp | 74 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/ |
D | com_android_bluetooth_sdp.cpp | 44 static const btsdp_interface_t* sBluetoothSdpInterface = NULL; 53 static jobject sCallbacksObj = NULL; 58 if (btInf == NULL) { in initializeNative() 62 if (sBluetoothSdpInterface != NULL) { in initializeNative() 65 sBluetoothSdpInterface = NULL; in initializeNative() 70 if (sBluetoothSdpInterface == NULL) { in initializeNative() 108 jbyte* addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative() 109 if (addr == NULL) { in sdpSearchNative() 114 jbyte* uuid = env->GetByteArrayElements(uuidObj, NULL); in sdpSearchNative() 158 ScopedLocalRef<jstring> service_name(sCallbackEnv.get(), NULL); in sdp_search_callback() [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 71 static const bt_interface_t* sBluetoothInterface = NULL; 72 static const btsock_interface_t* sBluetoothSocketInterface = NULL; 73 static JNIEnv* callbackEnv = NULL; 80 android::sp<BluetoothSocketManagerBinderServer> sSocketManager = NULL; 143 sCallbackEnv->NewObjectArray(num_properties, mclass.get(), NULL)); in adapter_properties_callback() 197 sCallbackEnv->NewObjectArray(num_properties, mclass.get(), NULL)); in remote_device_properties_callback() 236 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in device_found_callback() 398 args.group = NULL; in callback_thread_event() 431 len, android_bluetooth_UidTraffic.clazz, NULL)); in energy_info_recv_callback() 529 sAlarmCallback = NULL; in set_wake_alarm_callout() [all …]
|
D | com_android_bluetooth_pan.cpp | 44 static const btpan_interface_t* sPanIf = NULL; 45 static jobject mCallbacksObj = NULL; 49 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 54 return NULL; in marshall_bda() 64 if (mCallbacksObj == NULL) { in control_state_callback() 83 if (mCallbacksObj == NULL) { in connection_state_callback() 120 if (btIf == NULL) { in initializeNative() 125 if (sPanIf != NULL) { in initializeNative() 128 sPanIf = NULL; in initializeNative() 131 if (mCallbacksObj != NULL) { in initializeNative() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 37 static const bthh_interface_t* sBluetoothHidInterface = NULL; 38 static jobject mCallbacksObj = NULL; 42 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 47 return NULL; in marshall_bda() 178 NULL, 202 if (btInf == NULL) { in initializeNative() 207 if (sBluetoothHidInterface != NULL) { in initializeNative() 210 sBluetoothHidInterface = NULL; in initializeNative() 213 if (mCallbacksObj != NULL) { in initializeNative() 216 mCallbacksObj = NULL; in initializeNative() [all …]
|
D | com_android_bluetooth_hid_device.cpp | 38 static const bthd_interface_t* sHiddIf = NULL; 39 static jobject mCallbacksObj = NULL; 43 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 48 return NULL; in marshall_bda() 65 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in application_state_callback() 177 if ((btif = getBluetoothInterface()) == NULL) { in initNative() 182 if (sHiddIf != NULL) { in initNative() 185 sHiddIf = NULL; in initNative() 188 if (mCallbacksObj != NULL) { in initNative() 191 mCallbacksObj = NULL; in initNative() [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 33 static const btav_sink_interface_t* sBluetoothA2dpInterface = NULL; 34 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() 143 sBluetoothA2dpInterface = NULL; in initNative() 153 if (btInf == NULL) { in cleanupNative() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 28 static bthf_client_interface_t* sBluetoothHfpClientInterface = NULL; 29 static jobject mCallbacksObj = NULL; 55 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 60 return NULL; in marshall_bda() 433 if (btInf == NULL) { in initializeNative() 438 if (sBluetoothHfpClientInterface != NULL) { in initializeNative() 441 sBluetoothHfpClientInterface = NULL; in initializeNative() 444 if (mCallbacksObj != NULL) { in initializeNative() 447 mCallbacksObj = NULL; in initializeNative() 453 if (sBluetoothHfpClientInterface == NULL) { in initializeNative() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.cpp | 31 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/services/BuiltInPrintService/jni/lib/ |
D | lib_wprint.c | 228 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 …]
|
D | wprintJNI.c | 123 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/services/BuiltInPrintService/jni/plugins/ |
D | plugin_pdf.c | 39 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 …]
|
D | plugin_pcl.c | 83 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 …]
|
D | wprint_image.c | 31 if (image_info != NULL) { in wprint_image_setup() 42 if (image_info == NULL) return ERROR; in wprint_image_get_info() 48 image_info->output_cache = NULL; in wprint_image_get_info() 53 image_info->unscaled_rows = NULL; in wprint_image_get_info() 55 image_info->mixed_memory = NULL; in wprint_image_get_info() 70 if ((decode_ifc != NULL) && (decode_ifc->get_hdr != NULL)) { in wprint_image_get_info() 132 if (image_info->unscaled_rows != NULL) { in wprint_image_set_output_properties() 137 if (image_info->mixed_memory != NULL) { in wprint_image_set_output_properties() 148 image_info->unscaled_rows = NULL; in wprint_image_set_output_properties() 150 image_info->mixed_memory = NULL; in wprint_image_set_output_properties() [all …]
|
/packages/modules/NetworkStack/tests/unit/jni/ |
D | apf_jni.cpp | 98 if (pcap.get() == NULL) { in com_android_server_ApfTest_compileToBpf() 100 return NULL; in com_android_server_ApfTest_compileToBpf() 107 return NULL; in com_android_server_ApfTest_compileToBpf() 130 if (bpf_pcap.get() == NULL) { in com_android_server_ApfTest_compareBpfApf() 138 if (apf_pcap.get() == NULL) { in com_android_server_ApfTest_compareBpfApf() 165 } while (apf_packet != NULL && !accept_packet( in com_android_server_ApfTest_compareBpfApf() 171 if (apf_packet == NULL && bpf_packet == NULL) in com_android_server_ApfTest_compareBpfApf() 173 if (apf_packet == NULL || bpf_packet == NULL) in com_android_server_ApfTest_compareBpfApf() 204 if (apf_pcap.get() == NULL) { in com_android_server_ApfTest_dropsAllPackets() 209 while ((apf_packet = pcap_next(apf_pcap.get(), &apf_header)) != NULL) { in com_android_server_ApfTest_dropsAllPackets()
|
/packages/apps/Messaging/jni/ |
D | GifTranscoder.cpp | 117 ASSERT(gifIn != NULL, "gifIn cannot be NULL"); in resizeBoxFilter() 118 ASSERT(gifOut != NULL, "gifOut cannot be NULL"); in resizeBoxFilter() 251 gifOut->Image.ColorMap = NULL; in resizeBoxFilter() 303 while (ext != NULL) { in resizeBoxFilter() 308 if (ext != NULL) { in resizeBoxFilter() 367 if (colorMap == NULL) { in renderImage() 511 DGifCloseFile(mGifIn, NULL); in ~GifFilesCloser() 512 mGifIn = NULL; in ~GifFilesCloser() 515 EGifCloseFile(mGifOut, NULL); in ~GifFilesCloser() 516 mGifOut = NULL; in ~GifFilesCloser() [all …]
|