/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 | 605 public static String gaiName(int error) { in gaiName() argument 606 if (error == EAI_AGAIN) { in gaiName() 609 if (error == EAI_BADFLAGS) { in gaiName() 612 if (error == EAI_FAIL) { in gaiName() 615 if (error == EAI_FAMILY) { in gaiName() 618 if (error == EAI_MEMORY) { in gaiName() 621 if (error == EAI_NODATA) { in gaiName() 624 if (error == EAI_NONAME) { in gaiName() 627 if (error == EAI_OVERFLOW) { in gaiName() 630 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 | 52 bool maybeThrowIcuException(JNIEnv* env, const char* function, UErrorCode error) { in maybeThrowIcuException() argument 53 if (U_SUCCESS(error)) { in maybeThrowIcuException() 57 if (error == U_ILLEGAL_ARGUMENT_ERROR) { in maybeThrowIcuException() 59 } else if (error == U_INDEX_OUTOFBOUNDS_ERROR || error == U_BUFFER_OVERFLOW_ERROR) { in maybeThrowIcuException() 61 } else if (error == U_UNSUPPORTED_ERROR) { in maybeThrowIcuException() 63 } else if (error == U_FORMAT_INEXACT_ERROR) { in maybeThrowIcuException() 66 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_regex_Pattern.cpp | 61 …d throwPatternSyntaxException(JNIEnv* env, UErrorCode status, jstring pattern, UParseError error) { in throwPatternSyntaxException() argument 66 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException() 88 UParseError error; in Pattern_compileImpl() local 89 error.offset = -1; in Pattern_compileImpl() 96 icu::RegexPattern* result = icu::RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl() 98 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 icu::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 | 24 void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error, in throwExceptionForZlibError() argument 26 if (error == Z_MEM_ERROR) { in throwExceptionForZlibError() 31 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/ojluni/src/main/java/sun/net/www/http/ |
D | ChunkedInputStream.java | 120 private boolean error; field in ChunkedInputStream 218 if (!error && state == STATE_DONE) { in closeUnderlying() 246 error = true; in fastRead() 256 error = true; in fastRead() 299 error = true; in processRaw() 318 error = true; in processRaw() 404 error = true; in processRaw() 408 error = true; in processRaw() 441 error = true; in processRaw() 445 error = true; in processRaw() [all …]
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetDecoderICU.java | 113 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush() local 114 if (ICU.U_FAILURE(error)) { in implFlush() 115 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush() 117 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush() 139 … int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); in decodeLoop() local 140 if (ICU.U_FAILURE(error)) { in decodeLoop() 141 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in decodeLoop() 143 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in decodeLoop() 145 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in decodeLoop() 148 throw new AssertionError(error); in decodeLoop()
|
D | CharsetEncoderICU.java | 142 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); in implFlush() local 143 if (ICU.U_FAILURE(error)) { in implFlush() 144 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush() 146 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush() 169 … int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false); in encodeLoop() local 170 if (ICU.U_FAILURE(error)) { in encodeLoop() 171 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in encodeLoop() 173 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in encodeLoop() 175 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in encodeLoop() 178 throw new AssertionError(error); in encodeLoop()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Runtime.java | 881 String error = doLoad(absolutePath, loader); in load() local 882 if (error != null) { in load() 883 throw new UnsatisfiedLinkError(error); in load() 895 String error = doLoad(filename, fromClass.getClassLoader()); in load0() local 896 if (error != null) { in load0() 897 throw new UnsatisfiedLinkError(error); in load0() 975 String error = doLoad(filename, loader); in loadLibrary0() local 976 if (error != null) { in loadLibrary0() 977 throw new UnsatisfiedLinkError(error); in loadLibrary0() 990 String error = doLoad(candidate, loader); in loadLibrary0() local [all …]
|
/libcore/ojluni/src/main/native/ |
D | SocketChannelImpl.c | 56 int error = 0; in Java_sun_nio_ch_SocketChannelImpl_checkConnect() local 78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n); in Java_sun_nio_ch_SocketChannelImpl_checkConnect() 82 } else if (error) { in Java_sun_nio_ch_SocketChannelImpl_checkConnect() 83 handleSocketError(env, error); in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
|
D | FileDescriptor_md.c | 66 int error; in FileDescriptor_isSocket() local 67 socklen_t error_length = sizeof(error); in FileDescriptor_isSocket() 68 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &error_length)) == 0; in FileDescriptor_isSocket()
|
/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/libcore/reflect/ |
D | InternalNames.java | 55 NoClassDefFoundError error = new NoClassDefFoundError(name); in getClass() 56 error.initCause(e); in getClass() 57 throw error; in getClass()
|
D | AnnotationMember.java | 308 Throwable error = (Throwable)value; in rethrowError() local 309 StackTraceElement[] ste = error.getStackTrace(); in rethrowError() 313 oos.writeObject(error); in rethrowError() 319 error = (Throwable)ois.readObject(); in rethrowError() 322 throw error; in rethrowError()
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | ReferenceTest.java | 36 static AssertionFailedError error; field in ReferenceTest 157 error = null; in test_subclass() 261 error = null; in test_finalizeReferenceInteraction() 282 error = new AssertionFailedError("something threw '" + t + in test_finalizeReferenceInteraction() 302 if (error != null) { in test_finalizeReferenceInteraction() 303 throw error; in test_finalizeReferenceInteraction()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipFileTest.java | 186 Exception error = null; in read2() local 190 error = ex; in read2() 193 assertNotNull("ZipFile shouldn't allow reading of closed files.", error); in read2()
|