/libcore/luni/src/main/native/ |
D | libcore_icu_NativeConverter.cpp | 94 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 …]
|
D | java_nio_charset_Charsets.cpp | 42 : 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 …]
|
D | org_apache_harmony_xml_ExpatParser.cpp | 41 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 …]
|
D | ZipUtilities.cpp | 26 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()
|
D | java_io_File.cpp | 43 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 …]
|
D | ExecStrings.cpp | 27 : 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()
|
D | AsynchronousCloseMonitor.cpp | 35 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()
|
D | java_lang_System.cpp | 43 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 …]
|
D | libcore_icu_NativeCollation.cpp | 32 : 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 …]
|
D | java_util_jar_StrictJarFile.cpp | 46 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 …]
|
D | libcore_io_Posix.cpp | 72 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 …]
|
D | libcore_icu_ICU.cpp | 80 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 …]
|
D | libcore_icu_NativeIDN.cpp | 37 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()
|
D | NetworkUtilities.cpp | 73 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 …]
|
D | IcuUtilities.cpp | 33 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()
|
D | java_lang_ProcessManager.cpp | 50 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()
|
D | java_math_NativeBN.cpp | 119 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 …]
|
D | java_text_Bidi.cpp | 32 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()
|
D | libcore_icu_NativeDecimalFormat.cpp | 127 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 …]
|
D | libcore_icu_NativeBreakIterator.cpp | 47 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()
|
D | java_util_regex_Matcher.cpp | 49 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()
|
D | libcore_icu_AlphabeticIndex.cpp | 107 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/ |
D | ScopedJavaUnicodeString.h | 29 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()
|
D | ScopedIcuLocale.h | 29 if (javaLocaleName == NULL) { in ScopedIcuLocale() 35 if (localeName.c_str() == NULL) { in ScopedIcuLocale()
|
/libcore/luni/src/test/native/ |
D | test_openssl_engine.cpp | 46 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()
|