Home
last modified time | relevance | path

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

123456

/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.cpp136 if ( (mServers[i] != NULL) in findServerLocked()
144 return NULL; in findServerLocked()
163 if ( (mServers[i] != NULL) in findServerLocked()
171 return NULL; in findServerLocked()
190 if ( (mServers[i] != NULL) && (mServers[i]->mServiceName.compare(serviceName) == 0) ) in findServerLocked()
195 return NULL; in findServerLocked()
214 sp<P2pServer> pSrv = NULL; in registerServer()
218 if ((pSrv = findServerLocked(serviceName)) != NULL) in registerServer()
230 if (mServers[ii] == NULL) in registerServer()
240 if (pSrv == NULL) in registerServer()
[all …]
/packages/inputmethods/PinyinIME/jni/share/
Dspellingtrie.cpp30 SpellingTrie* SpellingTrie::instance_ = NULL;
55 spelling_buf_ = NULL; in SpellingTrie()
58 spl_ym_ids_ = NULL; in SpellingTrie()
59 splstr_queried_ = NULL; in SpellingTrie()
60 splstr16_queried_ = NULL; in SpellingTrie()
61 root_ = NULL; in SpellingTrie()
62 dumb_node_ = NULL; in SpellingTrie()
63 splitter_node_ = NULL; in SpellingTrie()
64 instance_ = NULL; in SpellingTrie()
65 ym_buf_ = NULL; in SpellingTrie()
[all …]
Ddictbuilder.cpp148 lemma_arr_ = NULL; in DictBuilder()
151 scis_ = NULL; in DictBuilder()
154 lma_nodes_le0_ = NULL; in DictBuilder()
155 lma_nodes_ge1_ = NULL; in DictBuilder()
160 homo_idx_buf_ = NULL; in DictBuilder()
164 top_lmas_ = NULL; in DictBuilder()
167 spl_table_ = NULL; in DictBuilder()
168 spl_parser_ = NULL; in DictBuilder()
203 if (NULL == lemma_arr_ || NULL == top_lmas_ || in alloc_resource()
204 NULL == scis_ || NULL == spl_table_ || in alloc_resource()
[all …]
Dmatrixsearch.cpp53 dict_trie_ = NULL; in reset_pointers_to_null()
54 user_dict_ = NULL; in reset_pointers_to_null()
55 spl_parser_ = NULL; in reset_pointers_to_null()
57 share_buf_ = NULL; in reset_pointers_to_null()
61 mtrx_nd_pool_ = NULL; in reset_pointers_to_null()
62 dmi_pool_ = NULL; in reset_pointers_to_null()
63 matrix_ = NULL; in reset_pointers_to_null()
64 dep_ = NULL; in reset_pointers_to_null()
67 npre_items_ = NULL; in reset_pointers_to_null()
89 if (NULL == dict_trie_ || NULL == user_dict_ || NULL == spl_parser_ || in alloc_resource()
[all …]
Ddicttrie.cpp31 root_ = NULL; in DictTrie()
32 splid_le0_index_ = NULL; in DictTrie()
34 nodes_ge1_ = NULL; in DictTrie()
36 lma_idx_buf_ = NULL; in DictTrie()
40 dict_list_ = NULL; in DictTrie()
42 parsing_marks_ = NULL; in DictTrie()
43 mile_stones_ = NULL; in DictTrie()
52 if (NULL != root_) in free_resource()
54 root_ = NULL; in free_resource()
56 if (NULL != splid_le0_index_) in free_resource()
[all …]
Ddictlist.cpp30 scis_hz_ = NULL; in DictList()
31 scis_splid_ = NULL; in DictList()
32 buf_ = NULL; in DictList()
53 if (NULL == buf_) in alloc_resource()
59 if (NULL == scis_hz_) in alloc_resource()
65 if (NULL == scis_splid_) in alloc_resource()
72 if (NULL != buf_) in free_resource()
74 buf_ = NULL; in free_resource()
76 if (NULL != scis_hz_) in free_resource()
78 scis_hz_ = NULL; in free_resource()
[all …]
Dpinyinime.cpp33 MatrixSearch* matrix_search = NULL;
38 if (NULL != matrix_search) in im_open_decoder()
42 if (NULL == matrix_search) { in im_open_decoder()
51 if (NULL != matrix_search) in im_open_decoder_fd()
55 if (NULL == matrix_search) in im_open_decoder_fd()
62 if (NULL != matrix_search) { in im_close_decoder()
66 matrix_search = NULL; in im_close_decoder()
70 if (NULL != matrix_search) { in im_set_max_lens()
76 if (NULL != matrix_search) in im_flush_cache()
82 if (NULL == matrix_search) in im_search()
[all …]
Dutf16reader.cpp25 fp_ = NULL; in Utf16Reader()
26 buffer_ = NULL; in Utf16Reader()
33 if (NULL != fp_) in ~Utf16Reader()
36 if (NULL != buffer_) in ~Utf16Reader()
42 if (filename == NULL) in open()
52 if (NULL != buffer_) in open()
55 if (NULL == buffer_) in open()
58 if ((fp_ = fopen(filename, "rb")) == NULL) in open()
65 fp_ = NULL; in open()
73 if (NULL == fp_ || NULL == read_buf || 0 == max_len) in readline()
[all …]
Dngram.cpp127 NGram* NGram::instance_ = NULL;
132 lma_freq_idx_ = NULL; in NGram()
136 freq_codes_df_ = NULL; in NGram()
138 freq_codes_ = NULL; in NGram()
142 if (NULL != lma_freq_idx_) in ~NGram()
146 if (NULL != freq_codes_df_) in ~NGram()
150 if (NULL != freq_codes_) in ~NGram()
155 if (NULL == instance_) in get_instance()
161 if (!initialized_ || NULL == fp) in save_ngram()
164 if (0 == idx_num_ || NULL == freq_codes_ || NULL == lma_freq_idx_) in save_ngram()
[all …]
Dutf16char.cpp28 if (NULL == utf16_str || NULL == token_size || NULL == utf16_str_next) { in utf16_strtok()
29 return NULL; in utf16_strtok()
49 *utf16_str_next = NULL; in utf16_strtok()
51 return NULL; in utf16_strtok()
63 if (NULL == utf16_str) in utf16_atoi()
94 if (NULL == utf16_str) in utf16_strlen()
124 if (NULL == src || NULL == dst) in utf16_strcpy()
125 return NULL; in utf16_strcpy()
141 if (NULL == src || NULL == dst || 0 == size) in utf16_strncpy()
142 return NULL; in utf16_strncpy()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp44 static const bt_interface_t *sBluetoothInterface = NULL;
45 static const btsock_interface_t *sBluetoothSocketInterface = NULL;
46 static JNIEnv *callbackEnv = NULL;
71 if (callbackEnv != env || callbackEnv == NULL) { in checkCallbackThread()
95 if (propVal == NULL) goto Fail; in get_properties()
131 if (val == NULL) { in adapter_properties_callback()
142 NULL); in adapter_properties_callback()
143 if (props == NULL) { in adapter_properties_callback()
150 if (types == NULL) { in adapter_properties_callback()
196 if (val == NULL) { in remote_device_properties_callback()
[all …]
Dcom_android_bluetooth_hid.cpp41 static const bthh_interface_t *sBluetoothHidInterface = NULL;
42 static jobject mCallbacksObj = NULL;
43 static JNIEnv *sCallbackEnv = NULL;
55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
136 NULL,
138 NULL,
139 NULL,
182 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
187 if (sBluetoothHidInterface !=NULL) { in initializeNative()
190 sBluetoothHidInterface = NULL; in initializeNative()
[all …]
Dcom_android_bluetooth_avrcp.cpp33 static const btrc_interface_t *sBluetoothAvrcpInterface = NULL;
34 static jobject mCallbacksObj = NULL;
35 static JNIEnv *sCallbackEnv = NULL;
45 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
98 NULL,
99 NULL,
100 NULL,
101 NULL,
102 NULL,
103 NULL,
[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()
137 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
142 if (sBluetoothHdpInterface !=NULL) { in initializeNative()
145 sBluetoothHdpInterface = NULL; in initializeNative()
148 if (mCallbacksObj != NULL) { in initializeNative()
151 mCallbacksObj = NULL; in initializeNative()
[all …]
Dcom_android_bluetooth_hfp.cpp53 static const bthf_interface_t *sBluetoothHfpInterface = NULL;
54 static jobject mCallbacksObj = NULL;
55 static JNIEnv *sCallbackEnv = NULL;
66 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
272 if ( (btInf = getBluetoothInterface()) == NULL) { in initializeNative()
277 if (sBluetoothHfpInterface !=NULL) { in initializeNative()
280 sBluetoothHfpInterface = NULL; in initializeNative()
283 if (mCallbacksObj != NULL) { in initializeNative()
286 mCallbacksObj = NULL; in initializeNative()
290 btInf->get_profile_interface(BT_PROFILE_HANDSFREE_ID)) == 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()
141 if ( (btInf = getBluetoothInterface()) == NULL) { in initNative()
146 if (sBluetoothA2dpInterface !=NULL) { in initNative()
149 sBluetoothA2dpInterface = NULL; in initNative()
152 if (mCallbacksObj != NULL) { in initNative()
155 mCallbacksObj = NULL; in initNative()
159 btInf->get_profile_interface(BT_PROFILE_ADVANCED_AUDIO_ID)) == NULL) { in initNative()
[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/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/apps/Gallery2/jni_mosaic/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/apps/Camera/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/apps/Nfc/nxp/jni/
Dcom_android_nfc_NativeNfcTag.cpp27 uint8_t *nfc_jni_ndef_buf = NULL;
61 if (pCallbackData->pContext != NULL) { in nfc_jni_connect_callback()
87 if (pNdefInfo != NULL) *pNdefInfo = info; in nfc_jni_checkndef_callback()
90 if (pNdefInfo != NULL) { in nfc_jni_checkndef_callback()
110 nfc_jni_ndef_buf = NULL; in nfc_jni_disconnect_callback()
127 nfc_jni_ndef_buf = NULL; in nfc_jni_async_disconnect_callback()
182 jbyteArray buf = NULL; in com_android_nfc_NativeNfcTag_doRead()
188 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeNfcTag_doRead()
248 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeNfcTag_doWrite()
254 nfc_jni_ndef_rw.buffer = (uint8_t *)e->GetByteArrayElements(buf, NULL); in com_android_nfc_NativeNfcTag_doWrite()
[all …]
Dcom_android_nfc_NativeNfcManager.cpp65 struct nfc_jni_native_data *exported_nat = NULL;
144 if (!nfc_cb_data_init(&cb_data, NULL)) in nfc_jni_download_locked()
262 if(pthread_create(&(nat->thread), NULL, nfc_jni_client_thread, nat) != 0) in nfc_jni_configure_driver()
313 nfc_pn544_device_t* pn544_dev = NULL; in nfc_jni_initialize()
318 if (!nfc_cb_data_init(&cb_data, NULL)) in nfc_jni_initialize()
333 if (pn544_dev->num_eeprom_settings == 0 || pn544_dev->eeprom_settings == NULL) { in nfc_jni_initialize()
442 int eeprom_value_num = (int)strtol(eeprom_value, (char**)NULL, 16); in nfc_jni_initialize()
583 if (pn544_dev != NULL) { in nfc_jni_initialize()
673 uid.buffer = NULL; in get_target_uid()
695 thread_args.group = NULL; in nfc_jni_client_thread()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndapi.c54 if (cursor->cond.ds == NULL) { in check_search_cursor()
66 if (dicinfo->handle != NULL) { in check_search_cursor()
84 if (cursor->cond.yomi == NULL) { in check_search_cursor()
96 } else if (cursor->cond.kanji != NULL) { in check_search_cursor()
136 if (loctset->loct.handle == NULL) { in search_word()
209 if ((loctset->loct.handle == NULL) || in get_word_and_search_next_word()
236 (cursor->cond.ds->dic[i].srhCache != NULL) && in get_word_and_search_next_word()
337 ((loctset->loct.handle != NULL) && in get_word_and_search_next_word()
338 (cursor->cond.ds->dic[next].srhCache == NULL))) { in get_word_and_search_next_word()
382 if (loctset->loct.handle == NULL) { in njd_get_word_data()
[all …]
Dndldic.c221 if ((con->ds->dic[hIdx].srhCache == NULL) || (con->ylen == 0) || in njd_l_search_word()
270 return NULL; in get_que_type_and_next()
289 return NULL; in get_que_type_and_next()
299 return NULL; in get_que_yomiLen_and_hyoukiLen()
320 return NULL; in get_que_yomiLen_and_hyoukiLen()
330 return NULL; in get_que_allHinsi()
349 return NULL; in get_que_allHinsi()
358 return NULL; in get_que()
383 return NULL; in get_que()
411 que = NULL; in is_continued()
[all …]

123456