Home
last modified time | relevance | path

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

123456

/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/Bluetooth/jni/
Dcom_android_bluetooth_sdp.cpp56 static const btsdp_interface_t *sBluetoothSdpInterface = NULL;
66 static jobject sCallbacksObj = NULL;
67 static JNIEnv *sCallbackEnv = NULL;
73 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread()
83 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
87 if (sBluetoothSdpInterface !=NULL) { in initializeNative()
90 sBluetoothSdpInterface = NULL; in initializeNative()
93 btInf->get_profile_interface(BT_PROFILE_SDP_CLIENT_ID)) == NULL) { in initializeNative()
135 jbyte *addr = NULL, *uuid = NULL; in sdpSearchNative()
141 addr = env->GetByteArrayElements(address, NULL); in sdpSearchNative()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp56 static const bt_interface_t *sBluetoothInterface = NULL;
57 static const btsock_interface_t *sBluetoothSocketInterface = NULL;
58 static JNIEnv *callbackEnv = NULL;
84 if (callbackEnv != env || callbackEnv == NULL) { in checkCallbackThread()
108 if (propVal == NULL) goto Fail; in get_properties()
144 if (val == NULL) { in adapter_properties_callback()
155 NULL); in adapter_properties_callback()
156 if (props == NULL) { in adapter_properties_callback()
163 if (types == NULL) { in adapter_properties_callback()
209 if (val == NULL) { in remote_device_properties_callback()
[all …]
Dcom_android_bluetooth_hdp.cpp39 static const bthl_interface_t *sBluetoothHdpInterface = NULL;
40 static jobject mCallbacksObj = NULL;
41 static JNIEnv *sCallbackEnv = NULL;
47 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread()
65 jobject fileDescriptor = NULL; in channel_state_callback()
111 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
116 if (sBluetoothHdpInterface !=NULL) { in initializeNative()
119 sBluetoothHdpInterface = NULL; in initializeNative()
122 if (mCallbacksObj != NULL) { in initializeNative()
125 mCallbacksObj = NULL; in initializeNative()
[all …]
Dcom_android_bluetooth_a2dp.cpp32 static const btav_interface_t *sBluetoothA2dpInterface = NULL;
33 static jobject mCallbacksObj = NULL;
34 static JNIEnv *sCallbackEnv = NULL;
46 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
100 NULL, /* audio_config_cb */
117 if ( (btInf = getBluetoothInterface()) == NULL) { in initNative()
122 if (sBluetoothA2dpInterface !=NULL) { in initNative()
125 sBluetoothA2dpInterface = NULL; in initNative()
128 if (mCallbacksObj != NULL) { in initNative()
131 mCallbacksObj = NULL; in initNative()
[all …]
Dcom_android_bluetooth_avrcp.cpp36 static const btrc_interface_t *sBluetoothAvrcpInterface = NULL;
37 static jobject mCallbacksObj = NULL;
38 static JNIEnv *sCallbackEnv = NULL;
48 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
170 NULL,
171 NULL,
172 NULL,
173 NULL,
174 NULL,
175 NULL,
[all …]
Dcom_android_bluetooth_pan.cpp47 static const btpan_interface_t *sPanIf = NULL;
48 static jobject mCallbacksObj = NULL;
49 static JNIEnv *sCallbackEnv = NULL;
55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
111 if ( (btIf = getBluetoothInterface()) == NULL) { in initializeNative()
116 if (sPanIf !=NULL) { in initializeNative()
119 sPanIf = NULL; in initializeNative()
122 if (mCallbacksObj != NULL) { in initializeNative()
125 mCallbacksObj = NULL; in initializeNative()
129 btIf->get_profile_interface(BT_PROFILE_PAN_ID)) == NULL) { in initializeNative()
[all …]
Dcom_android_bluetooth_hid.cpp42 static const bthh_interface_t *sBluetoothHidInterface = NULL;
43 static jobject mCallbacksObj = NULL;
44 static JNIEnv *sCallbackEnv = NULL;
56 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
188 NULL,
190 NULL,
212 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
217 if (sBluetoothHidInterface !=NULL) { in initializeNative()
220 sBluetoothHidInterface = NULL; in initializeNative()
223 if (mCallbacksObj != NULL) { in initializeNative()
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp33 static const btav_interface_t *sBluetoothA2dpInterface = NULL;
34 static jobject mCallbacksObj = NULL;
35 static JNIEnv *sCallbackEnv = NULL;
47 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
143 if ( (btInf = getBluetoothInterface()) == NULL) { in initNative()
148 if (sBluetoothA2dpInterface !=NULL) { in initNative()
151 sBluetoothA2dpInterface = NULL; in initNative()
154 if (mCallbacksObj != NULL) { in initNative()
157 mCallbacksObj = NULL; in initNative()
161 btInf->get_profile_interface(BT_PROFILE_ADVANCED_AUDIO_SINK_ID)) == NULL) { in initNative()
[all …]
Dcom_android_bluetooth_hfpclient.cpp34 static bthf_client_interface_t *sBluetoothHfpClientInterface = NULL;
35 static jobject mCallbacksObj = NULL;
36 static JNIEnv *sCallbackEnv = NULL;
67 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
311 if (btInf == NULL) { in initializeNative()
316 if (sBluetoothHfpClientInterface != NULL) { in initializeNative()
319 sBluetoothHfpClientInterface = NULL; in initializeNative()
322 if (mCallbacksObj != NULL) { in initializeNative()
325 mCallbacksObj = NULL; in initializeNative()
330 if (sBluetoothHfpClientInterface == NULL) { in initializeNative()
[all …]
Dcom_android_bluetooth_hfp.cpp54 static const bthf_interface_t *sBluetoothHfpInterface = NULL;
55 static jobject mCallbacksObj = NULL;
56 static JNIEnv *sCallbackEnv = NULL;
67 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
78 return NULL; in marshall_bda()
250 if ((addr = marshall_bda(bd_addr)) == NULL) in wbs_callback()
428 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
433 if (sBluetoothHfpInterface !=NULL) { in initializeNative()
436 sBluetoothHfpInterface = NULL; in initializeNative()
439 if (mCallbacksObj != NULL) { in initializeNative()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DOpenWnnDictionaryImplJni.c38 dicInfo->handle = NULL; in clearDictionaryStructure()
62 src = ( const unsigned char* )( ( *env )->GetStringUTFChars( env, srcJ, NULL ) ); in convertStringToNjChar()
63 if( src != NULL ) { in convertStringToNjChar()
197 …return ( *dstJ == NULL ) ? NJ_SET_ERR_VAL(NJ_FUNC_JNI_CONVERT_NJC_TO_STR, NJ_ERR_JNI_FUNC_FAILED) … in convertNjCharToString()
212 if( work != NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
225 if( dicLibPathJ == NULL || in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
226 ( dicLibPath = ( *env )->GetStringUTFChars( env, dicLibPathJ, 0 ) ) == NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
234 if( work->dicLibHandle == NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
243 if( dic_size == NULL || dic_type == NULL || dic_data == NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
257 if( con_data != NULL ) { in Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_createWnnWork()
[all …]
/packages/apps/Nfc/nci/jni/
DPeerToPeer.cpp138 if ( (mServers[i] != NULL) in findServerLocked()
146 return NULL; in findServerLocked()
165 if ( (mServers[i] != NULL) in findServerLocked()
173 return NULL; in findServerLocked()
192 if ( (mServers[i] != NULL) && (mServers[i]->mServiceName.compare(serviceName) == 0) ) in findServerLocked()
197 return NULL; in findServerLocked()
216 sp<P2pServer> pSrv = NULL; in registerServer()
220 if ((pSrv = findServerLocked(serviceName)) != NULL) in registerServer()
232 if (mServers[ii] == NULL) in registerServer()
242 if (pSrv == NULL) in registerServer()
[all …]
/packages/experimental/procstatlog/
Dprocstatlog.c77 data->value = NULL; in read_data()
85 data->value = NULL; in read_data()
119 if (terminator != NULL) { in read_lines()
121 if (end != NULL) *end = '\0'; in read_lines()
128 line != NULL && num < stats_count; in read_lines()
129 line = strtok(NULL, "\n")) { in read_lines()
140 if (name_end == NULL) continue; in read_lines()
175 char *line, *device = NULL; in read_proc_yaffs()
177 line != NULL && num < stats_count; in read_proc_yaffs()
178 line = strtok(NULL, "\n")) { in read_proc_yaffs()
[all …]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphNxpExtns_MifareStd.c25 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt = NULL;
26 phFriNfc_NdefMap_t *NdefMap = NULL;
90 if(NdefMap != NULL) in phNxpExtns_MfcModuleDeInit()
92 if( NdefMap->psRemoteDevInfo != NULL ) in phNxpExtns_MfcModuleDeInit()
95 NdefMap->psRemoteDevInfo = NULL; in phNxpExtns_MfcModuleDeInit()
97 if( NdefMap->SendRecvBuf != NULL ) in phNxpExtns_MfcModuleDeInit()
100 NdefMap->SendRecvBuf = NULL; in phNxpExtns_MfcModuleDeInit()
102 if( NdefMap->SendRecvLength != NULL ) in phNxpExtns_MfcModuleDeInit()
105 NdefMap->SendRecvLength = NULL; in phNxpExtns_MfcModuleDeInit()
107 if( NdefMap->DataCount != NULL ) in phNxpExtns_MfcModuleDeInit()
[all …]
DphFriNfc_SmtCrdFmt.c71 if ( (SendRecvBuffLen == NULL) || (NdefSmtCrdFmt == NULL) || (psRemoteDevInfo == NULL) || in phFriNfc_NdefSmtCrd_Reset()
72 (SendRecvBuffer == NULL) || (LowerDevice == NULL) || in phFriNfc_NdefSmtCrd_Reset()
86 NdefSmtCrdFmt->CompletionRoutine[index].CompletionRoutine = NULL; in phFriNfc_NdefSmtCrd_Reset()
88 NdefSmtCrdFmt->CompletionRoutine[index].Context = NULL; in phFriNfc_NdefSmtCrd_Reset()
115 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.CompletionRoutine = NULL; in phFriNfc_NdefSmtCrd_Reset()
116 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.Context = NULL; in phFriNfc_NdefSmtCrd_Reset()
141 if ((NdefSmtCrdFmt == NULL) || (FunctionID >= PH_FRINFC_SMTCRDFMT_CR) || in phFriNfc_NdefSmtCrd_SetCR()
142 (CompletionRoutine == NULL) || (CompletionRoutineContext == NULL)) in phFriNfc_NdefSmtCrd_SetCR()
172 if ( Context != NULL ) in phFriNfc_NdefSmtCrd_Process()
/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/services/Car/tests/libvehiclenetwork-native-test/
DTestPropertyDef.c31 .hal_data = NULL,
41 .hal_data = NULL,
51 .hal_data = NULL,
61 .hal_data = NULL,
71 .hal_data = NULL,
81 .hal_data = NULL,
91 .hal_data = NULL,
103 .hal_data = NULL,
113 .hal_data = NULL,
123 .hal_data = NULL,
[all …]
/packages/services/Car/service/jni/
Dcom_android_car_CarCameraService.cpp35 vehicle_camera_module_t *module = NULL; in com_android_car_CarCameraService_nativeOpen()
39 if (module == NULL) { in com_android_car_CarCameraService_nativeOpen()
55 if (device != NULL) { in com_android_car_CarCameraService_nativeClose()
72 jintArray outArray = NULL; in com_android_car_CarCameraService_nativeGetSupportedCameras()
76 if ((numCameras > 0) && (camera_list != NULL)) { in com_android_car_CarCameraService_nativeGetSupportedCameras()
80 if (outArray == NULL) { in com_android_car_CarCameraService_nativeGetSupportedCameras()
81 return NULL; in com_android_car_CarCameraService_nativeGetSupportedCameras()
100 hw_device_t *device = NULL; in com_android_car_CarCameraService_nativeGetDevice()
102 if (module != NULL) { in com_android_car_CarCameraService_nativeGetDevice()
106 if (device == NULL) { in com_android_car_CarCameraService_nativeGetDevice()
[all …]
/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc_list.cpp29 pList->pFirst = NULL; in listInit()
30 if(pthread_mutex_init(&pList->mutex, NULL) == -1) in listInit()
43 bListNotEmpty = listGetAndRemoveNext(pList, NULL); in listDestroy()
63 if (pNode == NULL) in listAdd()
71 pNode->pNext = NULL; in listAdd()
76 if (pList->pFirst == NULL) in listAdd()
85 while(pLastNode->pNext != NULL) in listAdd()
109 if (pList->pFirst == NULL) in listRemove()
128 while (pNode->pNext != NULL) in listRemove()
138 if (pNode->pNext == NULL) in listRemove()
[all …]
Dcom_android_nfc_NativeNfcTag.cpp28 uint8_t *nfc_jni_ndef_buf = NULL;
62 if (pCallbackData->pContext != NULL) { in nfc_jni_connect_callback()
88 if (pNdefInfo != NULL) *pNdefInfo = info; in nfc_jni_checkndef_callback()
91 if (pNdefInfo != NULL) { in nfc_jni_checkndef_callback()
111 nfc_jni_ndef_buf = NULL; in nfc_jni_disconnect_callback()
128 nfc_jni_ndef_buf = NULL; in nfc_jni_async_disconnect_callback()
183 jbyteArray buf = NULL; in com_android_nfc_NativeNfcTag_doRead()
189 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeNfcTag_doRead()
249 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeNfcTag_doWrite()
255 nfc_jni_ndef_rw.buffer = (uint8_t *)e->GetByteArrayElements(buf, NULL); in com_android_nfc_NativeNfcTag_doWrite()
[all …]
Dcom_android_nfc.cpp131 if (cls.get() == NULL) { in nfc_jni_cache_object()
138 if (obj.get() == NULL) { in nfc_jni_cache_object()
144 if (*cached_obj == NULL) { in nfc_jni_cache_object()
166 static nfc_jni_native_monitor_t *nfc_jni_native_monitor = NULL;
176 if(nfc_jni_native_monitor == NULL) in nfc_jni_init_monitor()
181 if(nfc_jni_native_monitor != NULL) in nfc_jni_init_monitor()
188 return NULL; in nfc_jni_init_monitor()
191 if(pthread_mutex_init(&nfc_jni_native_monitor->concurrency_mutex, NULL) == -1) in nfc_jni_init_monitor()
194 return NULL; in nfc_jni_init_monitor()
200 return NULL; in nfc_jni_init_monitor()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dneapi.c34 if (iwnn == NULL) { in njx_select()
40 if (dics->rHandle[NJ_MODE_TYPE_HENKAN] == NULL) { in njx_select()
45 if ( r_result != NULL ) { in njx_select()
53 set_previous_selection(iwnn, NULL); in njx_select()
60 if (iwnn == NULL) { in njx_init()
66 set_previous_selection(iwnn, NULL); in njx_init()
74 if (iwnn == NULL) { in njx_get_candidate()
78 if (result == NULL) { in njx_get_candidate()
82 if ((buf == NULL) || (buf_size == 0)) { in njx_get_candidate()
104 if (iwnn == NULL) { in njx_get_stroke()
[all …]
/packages/services/Car/vehicle_network_service/
DVehiclePropertyAccessControl.cpp131 xmlNode* cur_node = NULL; in populate()
132 xmlNode* child = NULL; in populate()
133 xmlChar* property = NULL; in populate()
134 xmlChar* property_value_str = NULL; in populate()
135 xmlChar* uid = NULL; in populate()
136 xmlChar* uid_value_str = NULL; in populate()
137 xmlChar* access = NULL; in populate()
178 if (property != NULL) { in populate()
191 if (uid == NULL) { in populate()
195 } else if (uid_value_str == NULL) { in populate()
[all …]

123456