HomeSort by relevance Sort by last modified time
    Searched refs:thrown (Results 1 - 25 of 252) sorted by null

1 2 3 4 5 6 7 8 91011

  /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...]
  /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...]
  /libcore/ojluni/src/main/java/java/lang/
ExceptionInInitializerError.java 30 * An <code>ExceptionInInitializerError</code> is thrown to indicate that an
52 * ExceptionInInitializerError(Throwable thrown) constructor was
72 * saving a reference to the <code>Throwable</code> object thrown for
76 * @param thrown The exception thrown
78 public ExceptionInInitializerError(Throwable thrown) {
80 this.exception = thrown;
  /external/vogar/src/vogar/target/junit/
TimeoutAndAbortRunRule.java 81 Throwable thrown;
83 thrown = getThrowable(result);
91 thrown = new VmIsUnstableException(e);
94 if (thrown != null) {
95 throw thrown;
102 Throwable thrown;
103 thrown = timeoutSeconds == 0
106 return thrown;
  /external/guava/guava/src/com/google/common/io/
Closer.java 40 * Running on Java 6, exceptions that cannot be thrown must be logged rather than being added to the
41 * thrown exception as a suppressed exception.
52 * // ensure that any checked exception types other than IOException that could be thrown are
61 * try block in order to catch any exception that may be thrown (including from the call to
68 * <li>If a {@code Throwable} is thrown in the try block, no exceptions that occur when attempting
69 * to close resources will be thrown from the finally block. The throwable from the try block will
70 * be thrown.</li>
71 * <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown
72 * by an attempt to close a resource will be thrown.</li
111 private Throwable thrown; field in class:Closer
    [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;
  /art/runtime/interpreter/mterp/x86_64/
op_filled_new_array.S 15 testb %al, %al # 0 means an exception is thrown
op_new_instance.S 11 testb %al, %al # 0 means an exception is thrown
op_fill_array_data.S 7 testb %al, %al # 0 means an exception is thrown
op_new_array.S 16 testb %al, %al # 0 means an exception is thrown
  /external/okhttp/okio/okio/src/main/java/okio/
DeflaterSink.java 128 Throwable thrown = null;
132 thrown = e;
138 if (thrown == null) thrown = e;
144 if (thrown == null) thrown = e;
148 if (thrown != null) Util.sneakyRethrow(thrown);
GzipSink.java 89 Throwable thrown = null;
94 thrown = e;
100 if (thrown == null) thrown = e;
106 if (thrown == null) thrown = e;
110 if (thrown != null) Util.sneakyRethrow(thrown);
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/
GetValues003Test.java 67 } catch ( Throwable thrown) {
69 logWriter.println("## Exception: " + thrown);
70 fail("Can not get debuggeeRefTypeID, Exception: " + thrown);
86 } catch ( Throwable thrown) {
88 logWriter.println("## Exception: " + thrown);
89 fail("Can not get superClassCheckedFieldID, Exception: " + thrown);
98 } catch ( Throwable thrown) {
100 logWriter.println("## Exception: " + thrown);
101 fail(" Can not get chekedClassRefTypeID, Exception: " + thrown);
GetValues004Test.java 68 } catch ( Throwable thrown) {
70 logWriter.println("## Exception: " + thrown);
71 fail("Can not get anotherClassRefTypeID, Exception: " + thrown);
87 } catch ( Throwable thrown) {
89 logWriter.println("## Exception: " + thrown);
90 fail("Can not get anotherClassCheckedFieldID, Exception: " + thrown);
99 } catch ( Throwable thrown) {
101 logWriter.println("## Exception: " + thrown);
102 fail("Can not get debuggeeRefTypeID, Exception: " + thrown);
  /art/runtime/interpreter/mterp/x86/
op_filled_new_array.S 18 testb %al, %al # 0 means an exception is thrown
op_new_instance.S 14 testb %al, %al # 0 means an exception is thrown
  /external/dagger2/core/src/test/java/dagger/internal/
InstanceFactoryTest.java 28 @Rule public final ExpectedException thrown = ExpectedException.none(); field in class:InstanceFactoryTest
39 thrown.expect(NullPointerException.class);
  /cts/tests/tests/print/src/android/print/cts/
Utils.java 60 throw new AssertionError("No throwable thrown");
65 * thrown.
73 final Throwable[] thrown = new Throwable[1]; local
81 thrown[0] = t;
91 if (thrown[0] != null) {
92 throw thrown[0];
  /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 81 } catch (TestErrorException thrown) {
82 logWriter.println("=> Exception while receiving event:" + thrown);
105 } catch (Throwable thrown) {
107 + thrown);
108 fail("##FAILURE: Exception while analyzing received event:" + thrown);
ThreadStartTest.java 81 } catch (TestErrorException thrown) {
82 logWriter.println("=> Exception while receiving event:" + thrown);
108 } catch (Throwable thrown) {
110 + thrown);
111 fail("##FAILURE: Exception while analyzing received event:" + thrown);
  /libcore/dalvik/test-rules/src/main/java/dalvik/system/
CloseGuardSupport.java 106 Throwable thrown = null; local
115 thrown = throwable;
124 if (thrown == null) {
125 thrown = new IllegalStateException(
129 thrown.addSuppressed(allocationSite);
132 if (thrown != null) {
133 throw thrown;

Completed in 441 milliseconds

1 2 3 4 5 6 7 8 91011