Home
last modified time | relevance | path

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

123

/libcore/luni/src/main/native/
Dlibcore_icu_NativeConverter.cpp94 const char* canonicalName = NULL; in getICUCanonicalName()
95 if ((canonicalName = ucnv_getCanonicalName(name, "MIME", &error)) != NULL) { in getICUCanonicalName()
97 } else if ((canonicalName = ucnv_getCanonicalName(name, "IANA", &error)) != NULL) { in getICUCanonicalName()
99 } else if ((canonicalName = ucnv_getCanonicalName(name, "", &error)) != NULL) { in getICUCanonicalName()
101 } else if ((canonicalName = ucnv_getAlias(name, 0, &error)) != NULL) { in getICUCanonicalName()
112 return NULL; in getICUCanonicalName()
126 const char* cName = NULL; in getJavaCanonicalName()
127 if ((cName = ucnv_getStandardName(icuCanonicalName, "MIME", &status)) != NULL) { in getJavaCanonicalName()
129 } else if ((cName = ucnv_getStandardName(icuCanonicalName, "IANA", &status)) != NULL) { in getJavaCanonicalName()
138 if (name != NULL && name[0] == 'x' && name[1] == '-') { in getJavaCanonicalName()
[all …]
Djava_nio_charset_Charsets.cpp42 : mEnv(env), mJavaArray(NULL), mRawArray(NULL), mSize(-1), mOffset(0) in NativeUnsafeByteSequence()
48 if (mRawArray != NULL) { in ~NativeUnsafeByteSequence()
68 if (newJavaArray == NULL) { in resize()
71 jbyte* newRawArray = mEnv->GetByteArrayElements(newJavaArray, NULL); in resize()
72 if (newRawArray == NULL) { in resize()
78 if (mRawArray != NULL) { in resize()
94 return okay ? mJavaArray : NULL; in toByteArray()
111 if (bytes.get() == NULL) { in Charsets_asciiBytesToChars()
115 if (chars.get() == NULL) { in Charsets_asciiBytesToChars()
130 if (bytes.get() == NULL) { in Charsets_isoLatin1BytesToChars()
[all …]
Dorg_apache_harmony_xml_ExpatParser.cpp41 InternedString() : interned(NULL), bytes(NULL) { in InternedString()
74 if (newArray == NULL) { in push()
75 jniThrowOutOfMemoryError(env, NULL); in push()
89 return (size == 0) ? NULL : array[--size]; in pop()
104 ParsingContext(jobject object) : env(NULL), object(object), buffer(NULL), bufferSize(-1) { in ParsingContext()
106 internedStrings[i] = NULL; in ParsingContext()
119 while ((current = *(bucket++)) != NULL) { in ~ParsingContext()
140 if (javaBuffer == NULL) return NULL; in ensureCapacity()
144 if (javaBuffer == NULL) return NULL; in ensureCapacity()
154 if (buffer != NULL) { in freeBuffer()
[all …]
DZipUtilities.cpp26 jniThrowOutOfMemoryError(env, NULL); in throwExceptionForZlibError()
27 } else if (stream != NULL && stream->stream.msg != NULL) { in throwExceptionForZlibError()
34 NativeZipStream::NativeZipStream() : input(NULL), inCap(0), mDict(NULL) { in NativeZipStream()
47 if (dictionaryBytes.get() == NULL) { in setDictionary()
48 jniThrowOutOfMemoryError(env, NULL); in setDictionary()
60 throwExceptionForZlibError(env, "java/lang/IllegalArgumentException", err, NULL); in setDictionary()
68 if (input.get() == NULL) { in setInput()
70 jniThrowOutOfMemoryError(env, NULL); in setInput()
74 if (buf != NULL) { in setInput()
Djava_io_File.cpp43 if (path.c_str() == NULL) { in File_canonicalizePath()
44 return NULL; in File_canonicalizePath()
51 return NULL; in File_canonicalizePath()
58 if (path.c_str() == NULL) { in File_setLastModifiedImpl()
80 mIsBad = (mDirStream == NULL); in ScopedReaddir()
84 if (mDirStream != NULL) { in ~ScopedReaddir()
92 return NULL; in next()
96 if (result != NULL) { in next()
102 return NULL; in next()
125 if (path.c_str() == NULL) { in readDirectory()
[all …]
DExecStrings.cpp27 : env_(env), java_array_(java_string_array), array_(NULL) { in ExecStrings()
28 if (java_array_ == NULL) { in ExecStrings()
34 array_[length] = NULL; in ExecStrings()
38 char* string = const_cast<char*>(env_->GetStringUTFChars(java_string.get(), NULL)); in ExecStrings()
44 if (array_ == NULL) { in ~ExecStrings()
50 if (pending_exception != NULL) { in ~ExecStrings()
62 if (pending_exception != NULL) { in ~ExecStrings()
DAsynchronousCloseMonitor.cpp35 static AsynchronousCloseMonitor* blockedThreadList = NULL;
59 int rc = sigaction(BLOCKED_THREAD_SIGNAL, &sa, NULL); in init()
67 for (AsynchronousCloseMonitor* it = blockedThreadList; it != NULL; it = it->mNext) { in signalBlockedThreads()
87 mPrev = NULL; in AsynchronousCloseMonitor()
89 if (mNext != NULL) { in AsynchronousCloseMonitor()
98 if (mNext != NULL) { in ~AsynchronousCloseMonitor()
101 if (mPrev == NULL) { in ~AsynchronousCloseMonitor()
Djava_lang_System.cpp43 if (message.c_str() == NULL) { in System_log()
60 if (exception != NULL) { in System_log()
69 if (name.c_str() == NULL) { in System_setFieldImpl()
73 if (signature.c_str() == NULL) { in System_setFieldImpl()
91 if (library_path == NULL) { in System_specialProperties()
96 if (library_path == NULL) { in System_specialProperties()
106 gettimeofday(&now, NULL); in System_currentTimeMillis()
118 gettimeofday(&now, NULL); in System_nanoTime()
125 if (name.c_str() == NULL) { in System_mapLibraryName()
126 return NULL; in System_mapLibraryName()
[all …]
Dlibcore_icu_NativeCollation.cpp32 : mElements(NULL), mString(NULL), mChars(NULL) { in CollationElements()
45 mChars = env->GetStringChars(string, NULL); in start()
46 if (mChars != NULL) { in start()
53 if (mElements == NULL) { in start()
66 if (mElements != NULL && closeCollator) { in release()
70 if (mChars != NULL) { in release()
73 mChars = NULL; in release()
74 mString = NULL; in release()
104 if (lhs.get() == NULL) { in NativeCollation_compare()
108 if (rhs.get() == NULL) { in NativeCollation_compare()
[all …]
Djava_util_jar_StrictJarFile.cpp46 if (javaNameBytes == NULL) { in constructString()
47 return NULL; in constructString()
65 NULL, // comment in newZipEntry()
72 NULL, // byte[] extra in newZipEntry()
85 if (fileChars.c_str() == NULL) { in StrictJarFile_nativeOpenJarFile()
102 cookie_(NULL), prefix_(strdup(prefix)) { in IterationHandle()
126 if (prefixChars.c_str() == NULL) { in StrictJarFile_nativeStartIteration()
134 handle->CookieAddress(), NULL); in StrictJarFile_nativeStartIteration()
156 return NULL; in StrictJarFile_nativeNextEntry()
169 if (entryNameChars.c_str() == NULL) { in StrictJarFile_nativeFindEntry()
[all …]
Dlibcore_io_Posix.cpp72 if (NAME == NULL) return NULL;
76 if (p != NULL) { // bionic's freeaddrinfo(3) crashes when passed NULL. in operator ()()
155 jthrowable cause = NULL; in throwException()
162 if (detailMessage.get() == NULL) { in throwException()
169 if (cause != NULL) { in throwException()
224 if (offsets.get() == NULL) { in init()
228 if (byteCounts.get() == NULL) { in init()
237 if (ptr == NULL) { in init()
252 mEnv->PopLocalFrame(NULL); in ~IoVec()
273 if (inetAddress == NULL) { in makeSocketAddress()
[all …]
Dlibcore_icu_ICU.cpp80 if (bundle_ != NULL) { in ~ScopedResourceBundle()
91 ures_getStringByKey(bundle_, key, NULL, &status); in hasKey()
114 return NULL; in ICU_getScript()
143 return NULL; in ICU_getCurrencyCode()
146 ScopedResourceBundle currencyMap(ures_getByKey(supplData.get(), "CurrencyMap", NULL, &status)); in ICU_getCurrencyCode()
148 return NULL; in ICU_getCurrencyCode()
152 …ScopedResourceBundle currency(ures_getByKey(currencyMap.get(), countryCode.c_str(), NULL, &status)… in ICU_getCurrencyCode()
154 return NULL; in ICU_getCurrencyCode()
157 ScopedResourceBundle currencyElem(ures_getByIndex(currency.get(), 0, NULL, &status)); in ICU_getCurrencyCode()
163 ScopedResourceBundle currencyTo(ures_getByKey(currencyElem.get(), "to", NULL, &status)); in ICU_getCurrencyCode()
[all …]
Dlibcore_icu_NativeIDN.cpp37 if (src.get() == NULL) { in NativeIDN_convertImpl()
38 return NULL; in NativeIDN_convertImpl()
43 ? uidna_IDNToASCII(src.get(), src.size(), &dst[0], sizeof(dst), flags, NULL, &status) in NativeIDN_convertImpl()
44 : uidna_IDNToUnicode(src.get(), src.size(), &dst[0], sizeof(dst), flags, NULL, &status); in NativeIDN_convertImpl()
47 return NULL; in NativeIDN_convertImpl()
DNetworkUtilities.cpp73 return NULL; in sockaddrToInetAddress()
75 if (port != NULL) { in sockaddrToInetAddress()
80 if (byteArray.get() == NULL) { in sockaddrToInetAddress()
81 return NULL; in sockaddrToInetAddress()
96 if (getByAddressMethod == NULL) { in sockaddrToInetAddress()
97 return NULL; in sockaddrToInetAddress()
100 NULL, byteArray.get(), scope_id); in sockaddrToInetAddress()
107 if (inetAddress == NULL) { in inetAddressToSockaddr()
108 jniThrowNullPointerException(env, NULL); in inetAddressToSockaddr()
130 if (addressBytes.get() == NULL) { in inetAddressToSockaddr()
[all …]
DIcuUtilities.cpp33 return NULL; in fromStringEnumeration()
38 return NULL; in fromStringEnumeration()
41 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); in fromStringEnumeration()
45 return NULL; in fromStringEnumeration()
Djava_lang_ProcessManager.cpp50 if (properties_fd_string != NULL) { in CloseNonStandardFds()
57 while ((e = readdir(d)) != NULL) { in CloseNonStandardFds()
145 if (workingDirectory != NULL) { in ExecuteProcess()
152 if (environment != NULL) { in ExecuteProcess()
216 const char* workingDirectory = NULL; in ProcessManager_exec()
217 if (javaWorkingDirectory != NULL) { in ProcessManager_exec()
218 workingDirectory = env->GetStringUTFChars(javaWorkingDirectory, NULL); in ProcessManager_exec()
225 if (javaWorkingDirectory != NULL) { in ProcessManager_exec()
Djava_math_NativeBN.cpp119 if (bn_wexpand(a, 8/BN_BYTES) != NULL) { in NativeBN_putULongInt()
147 if (chars.c_str() == NULL) { in NativeBN_BN_dec2bn()
159 if (chars.c_str() == NULL) { in NativeBN_BN_hex2bn()
171 if (bytes.get() == NULL) { in NativeBN_BN_bin2bn()
193 if (scopedArray.get() == NULL) { in NativeBN_litEndInts2bn()
202 if ((tmpInts != NULL) && (bn_wexpand(ret, wlen) != NULL)) { in NativeBN_litEndInts2bn()
245 if (bn_wexpand(ret, wLen) != NULL) { in negBigEndianBytes2bn()
296 if (bytes.get() == NULL) { in NativeBN_twosComp2bn()
351 if (!oneValidHandle(env, a)) return NULL; in NativeBN_BN_bn2dec()
353 if (tmpStr == NULL) { in NativeBN_BN_bn2dec()
[all …]
Djava_text_Bidi.cpp32 BiDiData(UBiDi* biDi) : mBiDi(biDi), mEmbeddingLevels(NULL) { in BiDiData()
79 if (newEmbeddingLevels != NULL) { in Bidi_ubidi_setPara()
84 data->setEmbeddingLevels(NULL); in Bidi_ubidi_setPara()
87 if (chars.get() == NULL) { in Bidi_ubidi_setPara()
123 return NULL; in Bidi_ubidi_getLevels()
146 return NULL; in Bidi_ubidi_getRuns()
150 jobjectArray runs = env->NewObjectArray(runCount, JniConstants::bidiRunClass, NULL); in Bidi_ubidi_getRuns()
165 if (levelBytes.get() == NULL) { in Bidi_ubidi_reorderVisual()
166 return NULL; in Bidi_ubidi_reorderVisual()
Dlibcore_icu_NativeDecimalFormat.cpp127 if (fmt == NULL) { in NativeDecimalFormat_open()
146 if (value.get() == NULL) { in NativeDecimalFormat_setSymbol()
167 if (value.get() == NULL) { in NativeDecimalFormat_setTextAttribute()
192 …return maybeThrowIcuException(env, "unum_getTextAttribute", status) ? NULL : env->NewString(chars.… in NativeDecimalFormat_getTextAttribute()
227 if (fpi != NULL) { in formatResult()
236 jintArray javaData = NULL; in formatResult()
239 if (javaData == NULL) { in formatResult()
240 return NULL; in formatResult()
243 if (ints.get() == NULL) { in formatResult()
244 return NULL; in formatResult()
[all …]
Dlibcore_icu_NativeBreakIterator.cpp47 if (mJavaInput == NULL) { in BreakIteratorAccessor()
51 mChars = env->GetStringChars(mJavaInput, NULL); in BreakIteratorAccessor()
52 if (mChars == NULL) { in BreakIteratorAccessor()
56 mUText = utext_openUChars(NULL, mChars, env->GetStringLength(mJavaInput), &mStatus); in BreakIteratorAccessor()
57 if (mUText == NULL) { in BreakIteratorAccessor()
91 mJavaInput = NULL; in init()
93 mChars = NULL; in init()
95 mUText = NULL; in init()
Djava_util_regex_Matcher.cpp49 mChars = env->GetStringChars(mJavaInput, NULL); in MatcherAccessor()
50 if (mChars == NULL) { in MatcherAccessor()
54 mUText = utext_openUChars(NULL, mChars, env->GetStringLength(mJavaInput), &mStatus); in MatcherAccessor()
55 if (mUText == NULL) { in MatcherAccessor()
88 if (offsets.get() == NULL) { in updateOffsets()
101 mJavaInput = NULL; in init()
103 mChars = NULL; in init()
105 mUText = NULL; in init()
Dlibcore_icu_AlphabeticIndex.cpp107 return NULL; in AlphabeticIndex_getBucketLabel()
115 return NULL; in AlphabeticIndex_getBucketLabel()
120 return NULL; in AlphabeticIndex_getBucketLabel()
123 return NULL; in AlphabeticIndex_getBucketLabel()
172 if (bucket == NULL) { in ImmutableIndex_getBucketLabel()
174 return NULL; in ImmutableIndex_getBucketLabel()
/libcore/include/
DScopedJavaUnicodeString.h29 if (s == NULL) { in ScopedJavaUnicodeString()
30 jniThrowNullPointerException(mEnv, NULL); in ScopedJavaUnicodeString()
32 mChars = env->GetStringChars(mString, NULL); in ScopedJavaUnicodeString()
39 if (mString != NULL) { in ~ScopedJavaUnicodeString()
45 return (mString != NULL); in valid()
DScopedIcuLocale.h29 if (javaLocaleName == NULL) { in ScopedIcuLocale()
35 if (localeName.c_str() == NULL) { in ScopedIcuLocale()
/libcore/luni/src/test/native/
Dtest_openssl_engine.cpp46 EVP_PKEY *key = NULL; in test_load_key()
55 return NULL; in test_load_key()
57 key = read_func(in, NULL, 0, NULL); in test_load_key()
60 if (key != NULL && EVP_PKEY_type(key->type) == EVP_PKEY_RSA) { in test_load_key()
92 if (nids != NULL) { in pkey_meths()

123