/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
ArrayTest.java | 33 boolean thrown = false; 45 thrown = true; 47 if (!thrown) { 50 thrown = false; 55 thrown = true; 57 if (!thrown) { 64 thrown = false; 76 thrown = true; 78 if (!thrown) { 81 thrown = false [all...] |
FieldTest.java | 40 // to be thrown. This version has been validated to pass on a standard 205 boolean thrown = false; 212 thrown = true; 214 assertTrue("IllegalArgumentException expected but not thrown", thrown); 217 thrown = false; 221 fail("Expected NullPointerException not thrown"); 224 thrown = true; 226 assertTrue("NullPointerException expected but not thrown", thrown); [all...] |
/libcore/luni/src/main/java/java/io/ |
FilterOutputStream.java | 59 Throwable thrown = null; local 63 thrown = e; 69 if (thrown == null) { 70 thrown = e; 74 if (thrown != null) { 75 SneakyThrow.sneakyThrow(thrown);
|
BufferedWriter.java | 89 Throwable thrown = null; local 93 thrown = e; 100 if (thrown == null) { 101 thrown = e; 106 if (thrown != null) { 107 SneakyThrow.sneakyThrow(thrown);
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
DxTestCase.java | 23 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, 25 if (expectedErrorClass != null && thrown == null) { 27 } else if (expectedErrorClass == null && thrown != null) { 28 fail("Unexpected error " + thrown); 29 } else if (expectedErrorClass != null && thrown != null) { 31 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { 32 fail("Expected invocation target exception, but got " + thrown); 34 thrown = thrown.getCause(); 36 if (!expectedErrorClass.equals(thrown.getClass())) [all...] |
DxAbstractMain.java | 25 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, 27 if (expectedErrorClass != null && thrown == null) { 29 } else if (expectedErrorClass == null && thrown != null) { 30 fail("Unexpected error " + thrown); 31 } else if (expectedErrorClass != null && thrown != null) { 33 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { 34 fail("Expected invocation target exception, but got " + thrown); 36 thrown = thrown.getCause(); 38 if (!expectedErrorClass.equals(thrown.getClass())) [all...] |
/frameworks/base/core/java/android/util/ |
Base64OutputStream.java | 105 IOException thrown = null; local 110 thrown = e; 120 if (thrown != null) { 121 thrown = e; 125 if (thrown != null) { 126 throw thrown;
|
/external/okhttp/okio/src/main/java/okio/ |
DeflaterSink.java | 104 Throwable thrown = null; 109 thrown = e; 115 if (thrown == null) thrown = e; 121 if (thrown == null) thrown = e; 125 if (thrown != null) Util.sneakyRethrow(thrown);
|
RealBufferedSink.java | 164 Throwable thrown = null; 170 thrown = e; 176 if (thrown == null) thrown = e; 180 if (thrown != null) Util.sneakyRethrow(thrown);
|
/external/smack/src/org/xbill/DNS/ |
ExtendedResolver.java | 28 Throwable thrown; field in class:ExtendedResolver.Resolution 70 thrown = t; 120 else if (thrown instanceof IOException) 121 throw (IOException) thrown; 122 else if (thrown instanceof RuntimeException) 123 throw (RuntimeException) thrown; 124 else if (thrown instanceof Error) 125 throw (Error) thrown; 190 if (thrown == null) 191 thrown = e [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
GetValues003Test.java | 66 } catch ( Throwable thrown) { 68 logWriter.println("## Exception: " + thrown); 69 fail("Can not get debuggeeRefTypeID, Exception: " + thrown); 85 } catch ( Throwable thrown) { 87 logWriter.println("## Exception: " + thrown); 88 fail("Can not get superClassCheckedFieldID, Exception: " + thrown); 97 } catch ( Throwable thrown) { 99 logWriter.println("## Exception: " + thrown); 100 fail(" Can not get chekedClassRefTypeID, Exception: " + thrown);
|
GetValues004Test.java | 67 } catch ( Throwable thrown) { 69 logWriter.println("## Exception: " + thrown); 70 fail("Can not get anotherClassRefTypeID, Exception: " + thrown); 86 } catch ( Throwable thrown) { 88 logWriter.println("## Exception: " + thrown); 89 fail("Can not get anotherClassCheckedFieldID, Exception: " + thrown); 98 } catch ( Throwable thrown) { 100 logWriter.println("## Exception: " + thrown); 101 fail("Can not get debuggeeRefTypeID, Exception: " + thrown);
|
/external/smack/src/com/kenai/jbosh/ |
BodyParserSAX.java | 161 Exception thrown; local 168 thrown = saxx; 170 thrown = iox; 172 throw(new BOSHException("Could not parse body:\n" + xml, thrown)); 187 Exception thrown; local 194 thrown = ex; 196 thrown = ex; 199 "Could not create SAX parser", thrown));
|
BodyParserXmlPull.java | 63 Exception thrown; local 125 thrown = rtx; 127 thrown = xmlppx; 129 thrown = iox; 131 throw(new BOSHException("Could not parse body:\n" + xml, thrown)); 146 Exception thrown; local 156 thrown = ex; 159 "Could not create XmlPull parser", thrown));
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 140 Throwable thrown = null; local 144 thrown = e; 149 if (thrown == null) thrown = e; 151 if (thrown == null) return; 152 if (thrown instanceof IOException) throw (IOException) thrown; 153 if (thrown instanceof RuntimeException) throw (RuntimeException) thrown; 154 if (thrown instanceof Error) throw (Error) thrown [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ |
BreakpointTest.java | 88 } catch (TestErrorException thrown) { 89 logWriter.println("=> Exception while receiving event:" + thrown); 118 } catch (Throwable thrown) { 121 + thrown); 122 fail("Exception while analyzing received event: "+ thrown);
|
MethodEntryExitTest.java | 99 } catch (TestErrorException thrown) { 100 logWriter.println("=> Exception while receiving event:" + thrown); 129 } catch (Throwable thrown) { 132 + thrown); 133 fail("Exception while analyzing received event:" + thrown);
|
ThreadEndTest.java | 89 } catch (TestErrorException thrown) { 90 logWriter.println("=> Exception while receiving event:" + thrown); 113 } catch (Throwable thrown) { 115 + thrown); 116 fail("##FAILURE: Exception while analyzing received event:" + thrown);
|
ThreadStartTest.java | 90 } catch (TestErrorException thrown) { 91 logWriter.println("=> Exception while receiving event:" + thrown); 117 } catch (Throwable thrown) { 119 + thrown); 120 fail("##FAILURE: Exception while analyzing received event:" + thrown);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/ |
RedefineClassesTest.java | 170 } catch (Throwable thrown) { 174 logWriter.println("===> Exception is thrown: " + thrown); 182 } catch (Throwable thrown) { 186 logWriter.println("===> Exception is thrown: " + thrown); 194 } catch (Throwable thrown) { 198 logWriter.println("===> Exception is thrown: " + thrown); 204 } catch (Throwable thrown) { [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
LogRecord.java | 115 private Throwable thrown; field in class:LogRecord 179 this.thrown = null; 445 return thrown; 451 * @param thrown 455 public void setThrown(Throwable thrown) { 456 this.thrown = thrown;
|
/frameworks/base/core/java/com/android/internal/logging/ |
AndroidHandler.java | 92 Throwable thrown = r.getThrown(); 93 if (thrown != null) { 98 thrown.printStackTrace(pw);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/ |
Status002Debuggee.java | 71 } catch (Throwable thrown) { 102 } catch (Throwable thrown) {
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ |
IntermediateClass.java | 82 public static int get5(Throwable thrown) { 84 ClassInSecondaryDex.canThrowAll(thrown);
|
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/test_framework/ |
packet_loss_test.cc | 194 int thrown = 0; local 197 if (!PacketLoss(_lossProbability, thrown)) 208 thrown++; 215 int lossResult = (thrown!=0); // 0 = no loss 1 = loss(es) 223 _totalThrown += thrown; 226 //printf("Threw away: %d out of %d packets\n", thrown, thrown + kept);
|