/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ArrayTest.java | 33 boolean thrown = false; in test_getLjava_lang_ObjectI() 45 thrown = true; in test_getLjava_lang_ObjectI() 47 if (!thrown) { in test_getLjava_lang_ObjectI() 50 thrown = false; in test_getLjava_lang_ObjectI() 55 thrown = true; in test_getLjava_lang_ObjectI() 57 if (!thrown) { in test_getLjava_lang_ObjectI() 64 thrown = false; in test_getLjava_lang_ObjectI() 76 thrown = true; in test_getLjava_lang_ObjectI() 78 if (!thrown) { in test_getLjava_lang_ObjectI() 81 thrown = false; in test_getLjava_lang_ObjectI() [all …]
|
D | FieldTest.java | 205 boolean thrown = false; in test_getLjava_lang_Object() 212 thrown = true; in test_getLjava_lang_Object() 214 assertTrue("IllegalArgumentException expected but not thrown", thrown); in test_getLjava_lang_Object() 217 thrown = false; in test_getLjava_lang_Object() 224 thrown = true; in test_getLjava_lang_Object() 226 assertTrue("NullPointerException expected but not thrown", thrown); in test_getLjava_lang_Object() 229 thrown = false; in test_getLjava_lang_Object() 569 boolean thrown = false; in test_getBooleanLjava_lang_Object() 575 thrown = true; in test_getBooleanLjava_lang_Object() 579 assertTrue("IllegalArgumentException expected but not thrown", thrown); in test_getBooleanLjava_lang_Object() [all …]
|
/libcore/ojluni/src/test/java/io/InputStream/ |
D | TransferTo.java | 96 boolean thrown = false; in transferToThenCheckIfAnyClosed() 100 thrown = true; in transferToThenCheckIfAnyClosed() 102 if (!thrown) in transferToThenCheckIfAnyClosed() 304 Throwable thrown; 307 thrown = null; 309 thrown = caught; 312 if (!throwable.isInstance(thrown)) { 313 String caught = thrown == null ? 314 "nothing" : thrown.getClass().getCanonicalName(); 317 throwable, caught), thrown); [all …]
|
/libcore/ojluni/src/test/java/io/Reader/ |
D | TransferTo.java | 97 boolean thrown = false; in transferToThenCheckIfAnyClosed() 101 thrown = true; in transferToThenCheckIfAnyClosed() 103 if (!thrown) in transferToThenCheckIfAnyClosed() 328 Throwable thrown; 331 thrown = null; 333 thrown = caught; 336 if (!throwable.isInstance(thrown)) { 337 String caught = thrown == null ? 338 "nothing" : thrown.getClass().getCanonicalName(); 341 throwable, caught), thrown); [all …]
|
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/ |
D | CloseGuardSupport.java | 108 Throwable thrown = null; in apply() local 117 thrown = throwable; in apply() 126 if (thrown == null) { in apply() 127 thrown = new IllegalStateException( in apply() 131 thrown.addSuppressed(allocationSite); in apply() 134 if (thrown != null) { in apply() 135 throw thrown; in apply()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | LogRecord.java | 127 private Throwable thrown; field in LogRecord 446 return thrown; in getThrown() 454 public void setThrown(Throwable thrown) { in setThrown() argument 455 this.thrown = thrown; in setThrown()
|
D | Logger.java | 870 public void log(Level level, String msg, Throwable thrown) { in log() argument 875 lr.setThrown(thrown); in log() 898 public void log(Level level, Throwable thrown, Supplier<String> msgSupplier) { in log() argument 903 lr.setThrown(thrown); in log() 1034 String msg, Throwable thrown) { in logp() argument 1041 lr.setThrown(thrown); in logp() 1068 Throwable thrown, Supplier<String> msgSupplier) { in logp() argument 1075 lr.setThrown(thrown); in logp() 1278 String bundleName, String msg, Throwable thrown) { in logrb() argument 1285 lr.setThrown(thrown); in logrb() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | FinalizeTest.java | 75 boolean thrown = false; in exceptionInConstructor() 81 thrown = true; in exceptionInConstructor() 83 if (!thrown) { in exceptionInConstructor()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ExceptionInInitializerError.java | 67 public ExceptionInInitializerError(Throwable thrown) { in ExceptionInInitializerError() argument 68 super(null, thrown); // Disallow subsequent initCause in ExceptionInInitializerError()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | exceptions | 36 * Checked exception thrown when a character encoding 44 * Unchecked exception thrown when a string that is not a 50 * Unchecked exception thrown when no support is available
|
D | Charset-X-Coder.java.template | 504 // Android-changed: Keep compat behavior. Document NPE thrown for null arguments. 801 // Android-changed: Document CoderMalfunctionError and NPE thrown for null input buffer.
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | PlatformLogger.java | 423 abstract void doLog(Level level, String msg, Throwable thrown); in doLog() argument 470 void doLog(Level level, String msg, Throwable thrown) { in doLog() argument 472 outputStream().print(format(level, msg, thrown)); in doLog() 522 private synchronized String format(Level level, String msg, Throwable thrown) { in format() argument 525 if (thrown != null) { in format() 529 thrown.printStackTrace(pw); in format()
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | Logger.java | 140 java.util.logging.Level level, java.lang.String msg, java.lang.Throwable thrown) { in log() argument 146 java.lang.Throwable thrown, in log() argument 190 java.lang.Throwable thrown) { in logp() argument 198 java.lang.Throwable thrown, in logp() argument 260 java.lang.Throwable thrown) { in logrb() argument 270 java.lang.Throwable thrown) { in logrb() argument 302 java.lang.Throwable thrown) { in throwing() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/logging/ |
D | Logger.annotated.java | 68 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in log() argument 70 …ava.util.logging.Level level, @libcore.util.Nullable java.lang.Throwable thrown, @libcore.util.Non… in log() argument 80 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in logp() argument 82 …ava.lang.String sourceMethod, @libcore.util.Nullable java.lang.Throwable thrown, @libcore.util.Non… in logp() argument 96 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in logrb() argument 98 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in logrb() argument 110 …ava.lang.String sourceMethod, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in throwing() argument
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyFactoryTest.java | 594 …private void checkException(String message, Exception thrown, Class<? extends Exception> expected)… in checkException() argument 595 if (thrown == null) { in checkException() 599 } else if (expected == thrown.getClass()) { in checkException() 604 … fail(message + ", unexpected exception: " + thrown + ", expected: " + expected.getName()); in checkException()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | MethodHandlesGeneralTest.java | 1598 void testThrowException(Class<?> returnType, Throwable thrown) throws Throwable { in testThrowException() argument 1600 Class<? extends Throwable> exType = thrown.getClass(); in testThrowException() 1608 Object res = target.invokeExact((Object) thrown); in testThrowException() 1609 fail("got "+res+" instead of throwing "+thrown); in testThrowException() 1611 if (ex != thrown) { in testThrowException() 1617 assertSame(thrown, caught); in testThrowException()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | Basic-X.java.template | 497 System.out.println("Not applicable, UOE thrown: "); 600 fail(ex.getName() + " not thrown", b); 1133 // A NullPointerException will be thrown if the array is null. 1141 // An IllegalArgumentException will be thrown for negative capacities.
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScanTest.java | 750 Exception thrown = sc.ioException(); in ioExceptionTest() local 751 String detail = thrown.getMessage(); in ioExceptionTest()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | X-Buffer.java.template | 133 * content and will cause an unspecified exception to be thrown either at the 773 * thrown. 985 * BufferOverflowException} is thrown. 1249 * thrown. 1476 * BufferOverflowException} is thrown.
|
/libcore/expectations/ |
D | knownfailures.txt | 490 …description: "According to spec info.getStatement should return null but an exception is thrown: s… 595 description: "no exception is thrown when moving cursor backwards on forward only statement", 725 thrown.", 1630 substring: "Expected FactoryConfigurationError was not thrown"
|