/libcore/luni/src/main/java/android/system/ |
D | GaiException.java | 35 public final int error; field in GaiException 40 public GaiException(String functionName, int error) { in GaiException() argument 42 this.error = error; in GaiException() 48 public GaiException(String functionName, int error, Throwable cause) { in GaiException() argument 51 this.error = error; in GaiException() 60 String gaiName = OsConstants.gaiName(error); in getMessage() 62 gaiName = "GAI_ error " + error; in getMessage() 64 String description = Libcore.os.gai_strerror(error); in getMessage()
|
D | OsConstants.java | 563 public static String gaiName(int error) { in gaiName() argument 564 if (error == EAI_AGAIN) { in gaiName() 567 if (error == EAI_BADFLAGS) { in gaiName() 570 if (error == EAI_FAIL) { in gaiName() 573 if (error == EAI_FAMILY) { in gaiName() 576 if (error == EAI_MEMORY) { in gaiName() 579 if (error == EAI_NODATA) { in gaiName() 582 if (error == EAI_NONAME) { in gaiName() 585 if (error == EAI_OVERFLOW) { in gaiName() 588 if (error == EAI_SERVICE) { in gaiName() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | AbstractMethodErrorTest.java | 29 Error error = new AbstractMethodError(); in test_Constructor() local 30 assertNull(error.getCause()); in test_Constructor() 31 assertNull(error.getMessage()); in test_Constructor() 39 Error error = new AbstractMethodError(null); in test_ConstructorLjava_lang_String() local 40 assertNull(error.getMessage()); in test_ConstructorLjava_lang_String() 41 assertNull(error.getCause()); in test_ConstructorLjava_lang_String() 43 error = new AbstractMethodError("msg"); in test_ConstructorLjava_lang_String() 44 assertEquals("msg", error.getMessage()); in test_ConstructorLjava_lang_String() 45 assertNull(error.getCause()); in test_ConstructorLjava_lang_String()
|
D | UnsupportedClassVersionErrorTest.java | 32 UnsupportedClassVersionError error = new UnsupportedClassVersionError(); in test_UnsupportedClassVersionError() local 33 assertNotNull(error); in test_UnsupportedClassVersionError() 34 assertNull(error.getMessage()); in test_UnsupportedClassVersionError()
|
D | ObjectTest.java | 302 long error = (after - before - delay); in test_waitJ() local 303 if (error < 0) in test_waitJ() 304 error = -error; in test_waitJ() 305 if (i > 0 && error > allowableError) { in test_waitJ() 313 if (error > (1000 + delay) || count == toLong.length) { in test_waitJ()
|
/libcore/luni/src/main/native/ |
D | IcuUtilities.cpp | 53 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error) { in maybeThrowIcuException() argument 54 if (U_SUCCESS(error)) { in maybeThrowIcuException() 58 if (error == U_ILLEGAL_ARGUMENT_ERROR) { in maybeThrowIcuException() 60 } else if (error == U_INDEX_OUTOFBOUNDS_ERROR || error == U_BUFFER_OVERFLOW_ERROR) { in maybeThrowIcuException() 62 } else if (error == U_UNSUPPORTED_ERROR) { in maybeThrowIcuException() 64 } else if (error == U_FORMAT_INEXACT_ERROR) { in maybeThrowIcuException() 67 jniThrowExceptionFmt(env, exceptionClass, "%s failed: %s", function, u_errorName(error)); in maybeThrowIcuException()
|
D | JniException.cpp | 22 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error) { in jniThrowExceptionWithErrno() argument 24 jniThrowException(env, exceptionClassName, jniStrError(error, buf, sizeof(buf))); in jniThrowExceptionWithErrno() 31 void jniThrowSocketException(JNIEnv* env, int error) { in jniThrowSocketException() argument 32 jniThrowExceptionWithErrno(env, "java/net/SocketException", error); in jniThrowSocketException()
|
D | java_util_jar_StrictJarFile.cpp | 90 int32_t error = OpenArchive(fileChars.c_str(), &handle); in StrictJarFile_nativeOpenJarFile() local 91 if (error) { in StrictJarFile_nativeOpenJarFile() 92 throwIoException(env, error); in StrictJarFile_nativeOpenJarFile() 131 int32_t error = 0; in StrictJarFile_nativeStartIteration() local 133 error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeStartIteration() 136 error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeStartIteration() 140 if (error) { in StrictJarFile_nativeStartIteration() 141 throwIoException(env, error); in StrictJarFile_nativeStartIteration() 153 const int32_t error = Next(*handle->CookieAddress(), &data, &entryName); in StrictJarFile_nativeNextEntry() local 154 if (error) { in StrictJarFile_nativeNextEntry() [all …]
|
D | java_util_regex_Pattern.cpp | 65 …d throwPatternSyntaxException(JNIEnv* env, UErrorCode status, jstring pattern, UParseError error) { in throwPatternSyntaxException() argument 70 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException() 82 UParseError error; in Pattern_compileImpl() local 83 error.offset = -1; in Pattern_compileImpl() 90 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl() 92 throwPatternSyntaxException(env, status, javaRegex, error); in Pattern_compileImpl()
|
D | JniException.h | 22 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error); 25 void jniThrowSocketException(JNIEnv* env, int error);
|
D | libcore_icu_NativeConverter.cpp | 93 UErrorCode error = U_ZERO_ERROR; in getICUCanonicalName() local 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() 106 error = U_ZERO_ERROR; in getICUCanonicalName() 107 LocalUConverterPointer cnv(ucnv_open(name + 2, &error)); in getICUCanonicalName() 108 if (U_SUCCESS(error)) { in getICUCanonicalName() 174 static bool shouldCodecThrow(jboolean flush, UErrorCode error) { in shouldCodecThrow() argument 176 return (error != U_BUFFER_OVERFLOW_ERROR && error != U_TRUNCATED_CHAR_FOUND); in shouldCodecThrow() [all …]
|
D | ZipUtilities.cpp | 23 void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error, in throwExceptionForZlibError() argument 25 if (error == Z_MEM_ERROR) { in throwExceptionForZlibError() 30 jniThrowException(env, exceptionClassName, zError(error)); in throwExceptionForZlibError()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipErrorTest.java | 30 ZipError error = new ZipError("ZipError"); in test_constructor() local 31 assertEquals("ZipError", error.getMessage()); in test_constructor() 38 ZipError error = new ZipError("serialization test"); in test_serialization() local 39 SerializationTest.verifySelf(error); in test_serialization() 46 ZipError error = new ZipError("serialization test"); in testSerializationCompatibility() local 47 SerializationTest.verifyGolden(this, error); in testSerializationCompatibility()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMErrorMonitor.java | 43 public boolean handleError(DOMError error) { in handleError() argument 44 errors.add(new DOMErrorImpl(error)); in handleError() 60 DOMError error = (DOMError) iter.next(); in assertLowerSeverity() local 61 if (error.getSeverity() >= severity) { in assertLowerSeverity() 62 testCase.fail(id + error.getMessage()); in assertLowerSeverity()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetDecoderICU.java | 112 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush() local 113 if (ICU.U_FAILURE(error)) { in implFlush() 114 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush() 116 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush() 138 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); in decodeLoop() local 139 if (ICU.U_FAILURE(error)) { in decodeLoop() 140 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in decodeLoop() 142 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in decodeLoop() 144 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in decodeLoop() 147 throw new AssertionError(error); in decodeLoop()
|
D | CharsetEncoderICU.java | 140 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush() local 141 if (ICU.U_FAILURE(error)) { in implFlush() 142 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush() 144 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush() 167 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false); in encodeLoop() local 168 if (ICU.U_FAILURE(error)) { in encodeLoop() 169 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in encodeLoop() 171 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in encodeLoop() 173 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in encodeLoop() 176 throw new AssertionError(error); in encodeLoop()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | ReferenceTest.java | 36 static AssertionFailedError error; field in ReferenceTest 53 error = new AssertionFailedError("Clear should happen " + in clear() 55 throw error; in clear() 58 error = new AssertionFailedError("Clear should happen " + in clear() 60 throw error; in clear() 68 error = new AssertionFailedError("Clear should happen " + in enqueue() 70 throw error; in enqueue() 180 error = null; in test_subclass() 283 error = null; in test_finalizeReferenceInteraction() 304 error = new AssertionFailedError("something threw '" + t + in test_finalizeReferenceInteraction() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | IOErrorTest.java | 45 } catch (IOError error) { in test_IOError_LThrowable() 47 } catch (Error error) { in test_IOError_LThrowable() 48 fail("Error during IOException test" + error.toString()); //$NON-NLS-1$ in test_IOError_LThrowable()
|
/libcore/luni/src/main/java/java/lang/ |
D | Runtime.java | 329 String error = doLoad(absolutePath, loader); in load() local 330 if (error != null) { in load() 331 throw new UnsatisfiedLinkError(error); in load() 369 String error = doLoad(filename, loader); in loadLibrary() local 370 if (error != null) { in loadLibrary() 371 throw new UnsatisfiedLinkError(error); in loadLibrary() 384 String error = doLoad(candidate, loader); in loadLibrary() local 385 if (error == null) { in loadLibrary() 388 lastError = error; in loadLibrary()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | InternalNames.java | 55 NoClassDefFoundError error = new NoClassDefFoundError(name); in getClass() 56 error.initCause(e); in getClass() 57 throw error; in getClass()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | StreamHandler.java | 142 getErrorManager().error("Exception occurred when writing to the output stream", e, in write() 229 getErrorManager().error("Exception occurred when closing the output stream", e, in close() 260 getErrorManager().error("Exception occurred when flushing the output stream", in flush() 292 getErrorManager().error("Exception occurred when formatting the log record", in publish() 298 getErrorManager().error("Exception occurred when logging the record", e, in publish()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | XsltXPathConformanceTestSuite.java | 373 if (errorRecorder.error == null) { in test() 382 if (errorRecorder.error != null) { in test() 383 throw errorRecorder.error; in test() 386 if (errorRecorder.error != null) { in test() 463 Error error = new AssertionFailedError( in fileToResultNode() 465 error.initCause(e); in fileToResultNode() 466 throw error; in fileToResultNode() 615 Exception error; field in XsltXPathConformanceTestSuite.ErrorRecorder 623 public void error(TransformerException exception) { in error() method in XsltXPathConformanceTestSuite.ErrorRecorder 624 if (this.error == null) { in error() [all …]
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | FileURLConnection.java | 114 IOException error = null; in connect() local 125 error = ioe; in connect() 128 if (error == null) { in connect() 141 if (error != null) { in connect() 142 throw error; in connect()
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicStampedReference.java | 178 NoSuchFieldError error = new NoSuchFieldError(field); in objectFieldOffset() 179 error.initCause(e); in objectFieldOffset() 180 throw error; in objectFieldOffset()
|
D | AtomicMarkableReference.java | 178 NoSuchFieldError error = new NoSuchFieldError(field); in objectFieldOffset() 179 error.initCause(e); in objectFieldOffset() 180 throw error; in objectFieldOffset()
|