Home
last modified time | relevance | path

Searched refs:TestException (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/art/test/1927-exception-event/src/art/
H A DTest1927.java103 throw new TestException(); in terminal_J()
111 } catch (TestException e) { in test_J()
122 } catch (TestException e) { in test_J_J()
130 } catch (TestException e) { in test_J_N()
146 } catch (TestException e) { in test_J_J_J()
154 } catch (TestException e) { in test_J_J_N()
162 } catch (TestException e) { in test_J_N_J()
170 } catch (TestException e) { in test_J_N_N()
183 } catch (TestException e) { in test_extra_N_J_J()
190 } catch (TestException e) { in test_extra_N_J_N()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/testing/
H A DAssertTest.java35 assertThrows(TestException.class, () -> { in assertThrows_runsRunnable()
37 throw new TestException(); in assertThrows_runsRunnable()
45 assertThrows(TestException.class, () -> { in assertThrows_failsIfNothingThrown()
52 assertThrows(TestException.class, () -> { in assertThrows_failsIfWrongExceptionThrown()
59 assertThrows(TestException.class, () -> { in assertThrows_succeedsIfGivenExceptionThrown()
60 throw new TestException(); in assertThrows_succeedsIfGivenExceptionThrown()
67 throw new TestException(); in assertThrows_succeedsIfSubExceptionThrown()
74 assertThrows(TestException.class, () -> { in assertThrows_rethrowsUnexpectedErrors()
79 static class TestException extends RuntimeException { class in AssertTest
/aosp12/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
H A DDevice.java36 public String executeShellCommand(String command) throws TestException { in executeShellCommand()
40 throw new TestException(e); in executeShellCommand()
47 public void enableAdbRoot() throws TestException { in enableAdbRoot()
51 throw new TestException(e); in enableAdbRoot()
58 public int getProcessPid(String name) throws TestException { in getProcessPid()
62 throw new TestException("failed to get pid for " + name); in getProcessPid()
66 throw new TestException(e); in getProcessPid()
H A DTestException.java23 class TestException extends Exception { class
24 TestException(Exception cause) { in TestException() method in TestException
28 TestException(String msg) { in TestException() method in TestException
32 TestException(String msg, Exception cause) { in TestException() method in TestException
H A DMetrics.java57 private void logText(String label, String text) throws TestException { in logText()
66 throw new TestException(e); in logText()
78 void sample(String label) throws TestException { in sample()
108 throw new TestException("unexpected showmap format", e); in sample()
H A DMemoryTest.java57 private void runCujs() throws TestException { in runCujs()
63 private void sample() throws TestException { in sample()
71 public void run() throws TestException { in run()
H A DCujs.java33 public void run() throws TestException { in run()
/aosp12/art/test/1932-monitor-events-misc/src/art/
H A DTest1932.java128 throw new Monitors.TestException("throwing exception during monitorEnter of " + l); in testNativeLockStateThrowEnter()
186 throw new Monitors.TestException("error while recursive locking!", e); in testRecursiveMontiorEnteredLock()
214 throw new Monitors.TestException("error while doing unlock in other thread!", e); in testWaitedMonitorEnter()
388 } catch (Monitors.TestException e) { in testThrowWaitedInterrupt()
411 } catch (Monitors.TestException e) { in testThrowWaitedTimeout()
441 } catch (Monitors.TestException e) { in testThrowWaited()
464 } catch (Monitors.TestException e) { in testThrowWait()
486 } catch (Monitors.TestException e) { in testThrowIllegalWait()
539 } catch (Monitors.TestException e) { in testLockThrowEnter()
564 } catch (Monitors.TestException e) { in testLockThrowEntered()
[all …]
H A DMonitors.java113 public static class TestException extends Error { class in Monitors
114 public TestException() { super(); } in TestException() method in Monitors.TestException
115 public TestException(String s) { super(s); } in TestException() method in Monitors.TestException
116 public TestException(String s, Throwable c) { super(s, c); } in TestException() method in Monitors.TestException
152 throw new TestException("Exception thrown by other thread!", exe); in checkException()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
228 throw new TestException("Got an error while performing action " + cur_action, e); in DoLock()
/aosp12/art/test/1928-exception-event-exception/src/art/
H A DTest1928.java75 public static class TestException extends BaseTestException { class in Test1928
76 public TestException(String e) { super(e); } in TestException() method in Test1928.TestException
77 public TestException(String e, Throwable t) { super(e, t); } in TestException() method in Test1928.TestException
80 public static class TestExceptionNoRethrow extends TestException {
110 throw new TestException("doThrow"); in doThrow()
119 throw new TestException("throwCatchBaseTestException"); in throwCatchBaseTestException()
134 throw new TestException("throwCatchTestException"); in throwCatchTestException()
135 } catch (TestException t) { in throwCatchTestException()
149 throw new TestException("throwCatchTestExceptionNoRethrow"); in throwCatchTestExceptionNoRethrow()
166 TestException.class, in run()
/aosp12/art/test/1927-exception-event/
H A Dexpected-stdout.txt1 class art.Test1927$TestException
20 Caught exception: art.Test1927$TestException: from java
22 Caught exception: art.Test1927$TestException: from native
42 Caught exception: art.Test1927$TestException: from java
62 Caught exception: art.Test1927$TestException: from native
74 Caught exception: art.Test1927$TestException: from java
107 Caught exception: art.Test1927$TestException: from java
149 Caught exception: art.Test1927$TestException: from java
183 Caught exception: art.Test1927$TestException: from java
209 Caught exception: art.Test1927$TestException: from java
[all …]
/aosp12/art/test/1929-exception-catch-exception/src/art/
H A DTest1929.java79 public static class TestException extends BaseTestException { class in Test1929
80 public TestException(String e) { super(e); } in TestException() method in Test1929.TestException
81 public TestException(String e, Throwable t) { super(e, t); } in TestException() method in Test1929.TestException
84 public static class TestExceptionNoRethrow extends TestException {
130 throw new TestException("doThrow"); in doThrow()
139 throw new TestException("throwCatchBaseTestException"); in throwCatchBaseTestException()
215 throw new TestException("throwCatchTestException"); in throwCatchTestException()
216 } catch (TestException t) { in throwCatchTestException()
246 throw new TestException("throwCatchTestExceptionNoRethrow"); in throwCatchTestExceptionNoRethrow()
263 TestException.class, in run()
/aosp12/art/test/1932-monitor-events-misc/
H A Dexpected-stdout.txt9 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
10 …Caused by: art.Monitors$TestException: throwing exception during monitorEnter of NamedLock[Lock te…
16 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
24 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
30 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
31 …Caused by: art.Monitors$TestException: throwing exception during MonitorWait of NamedLock[Lock tes…
36 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
43 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
44 …Caused by: art.Monitors$TestException: throwing exception during monitorWaited of NamedLock[Lock t…
50 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
[all …]
/aosp12/art/test/1929-exception-catch-exception/
H A Dexpected-stdout.txt22 Caught art.Test1929$TestException: "throwCatchBaseTestException"
36 Caught art.Test1929$TestException: "throwCatchBaseTestExceptionTwice"
50 Caught art.Test1929$TestException: "throwCatchTestException"
64 Caught art.Test1929$TestException: "throwCatchTestExceptionTwice"
99 Caught art.Test1929$TestException: "throwCatchBaseTestException"
113 Caught art.Test1929$TestException: "throwCatchBaseTestExceptionTwice"
128 Caught art.Test1929$TestException: "throwCatchTestException"
142 Caught art.Test1929$TestException: "throwCatchTestExceptionTwice"
189 Caught art.Test1929$TestException: "throwCatchBaseTestExceptionTwice"
216 Caught art.Test1929$TestException: "throwCatchTestExceptionTwice"
[all …]
/aosp12/art/test/1928-exception-event-exception/
H A Dexpected-stdout.txt2 …ic static void art.Test1928.doThrow() @ line = 110 throws class art.Test1928$TestException: doThrow
13 Test "art.Test1928$DoThrowClass": Caught error art.Test1928$TestException:"doThrow" with handler "a…
16 ….throwCatchBaseTestException() @ line = 119 throws class art.Test1928$TestException: throwCatchBas…
27 Caught art.Test1928$TestException: "throwCatchBaseTestException"
31 …1928.throwCatchTestException() @ line = 134 throws class art.Test1928$TestException: throwCatchTes…
42 Caught art.Test1928$TestException: "throwCatchTestException"
60 …ic static void art.Test1928.doThrow() @ line = 110 throws class art.Test1928$TestException: doThrow
72 Test "art.Test1928$DoThrowClass": Caught error art.Test1928$TestException:"doThrow" with handler "a…
87 Caught art.Test1928$TestException: "throwCatchBaseTestException"
91 …1928.throwCatchTestException() @ line = 134 throws class art.Test1928$TestException: throwCatchTes…
[all …]
/aosp12/art/test/1930-monitor-info/src/art/
H A DMonitors.java113 public static class TestException extends Error { class in Monitors
114 public TestException() { super(); } in TestException() method in Monitors.TestException
115 public TestException(String s) { super(s); } in TestException() method in Monitors.TestException
116 public TestException(String s, Throwable c) { super(s, c); } in TestException() method in Monitors.TestException
152 throw new TestException("Exception thrown by other thread!", exe); in checkException()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
228 throw new TestException("Got an error while performing action " + cur_action, e); in DoLock()
/aosp12/art/test/1931-monitor-events/src/art/
H A DMonitors.java113 public static class TestException extends Error { class in Monitors
114 public TestException() { super(); } in TestException() method in Monitors.TestException
115 public TestException(String s) { super(s); } in TestException() method in Monitors.TestException
116 public TestException(String s, Throwable c) { super(s, c); } in TestException() method in Monitors.TestException
152 throw new TestException("Exception thrown by other thread!", exe); in checkException()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
228 throw new TestException("Got an error while performing action " + cur_action, e); in DoLock()
/aosp12/art/test/1933-monitor-current-contended/src/art/
H A DMonitors.java113 public static class TestException extends Error { class in Monitors
114 public TestException() { super(); } in TestException() method in Monitors.TestException
115 public TestException(String s) { super(s); } in TestException() method in Monitors.TestException
116 public TestException(String s, Throwable c) { super(s, c); } in TestException() method in Monitors.TestException
152 throw new TestException("Exception thrown by other thread!", exe); in checkException()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
228 throw new TestException("Got an error while performing action " + cur_action, e); in DoLock()
/aosp12/art/test/1934-jvmti-signal-thread/src/art/
H A DMonitors.java113 public static class TestException extends Error { class in Monitors
114 public TestException() { super(); } in TestException() method in Monitors.TestException
115 public TestException(String s) { super(s); } in TestException() method in Monitors.TestException
116 public TestException(String s, Throwable c) { super(s, c); } in TestException() method in Monitors.TestException
152 throw new TestException("Exception thrown by other thread!", exe); in checkException()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
228 throw new TestException("Got an error while performing action " + cur_action, e); in DoLock()
/aosp12/art/test/jvmti-common/
H A DMonitors.java113 public static class TestException extends Error { class in Monitors
114 public TestException() { super(); } in TestException() method in Monitors.TestException
115 public TestException(String s) { super(s); } in TestException() method in Monitors.TestException
116 public TestException(String s, Throwable c) { super(s, c); } in TestException() method in Monitors.TestException
152 throw new TestException("Exception thrown by other thread!", exe); in checkException()
167 throw new TestException("We don't have any runner holding " + lock); in suspendWorker()
228 throw new TestException("Got an error while performing action " + cur_action, e); in DoLock()
/aosp12/art/test/1929-exception-catch-exception/smali/art/
H A DTest1929$Impl.smali53 new-instance v1, Lart/Test1929$TestException;
57 invoke-direct {v1, v2}, Lart/Test1929$TestException;-><init>(Ljava/lang/String;)V
212 new-instance v1, Lart/Test1929$TestException;
216 invoke-direct {v1, v2}, Lart/Test1929$TestException;-><init>(Ljava/lang/String;)V
220 .catch Lart/Test1929$TestException; {:try_start_0 .. :try_end_8} :catch_8
229 .local v0, "t":Lart/Test1929$TestException;
260 invoke-virtual {v0}, Lart/Test1929$TestException;->getMessage()Ljava/lang/String;
288 invoke-virtual {v0, v1}, Lart/Test1929$TestException;->printStackTrace(Ljava/io/PrintStream;)V
290 .catch Lart/Test1929$TestException; {:try_start_9 .. :try_end_46} :catch_47
332 invoke-virtual {v0}, Lart/Test1929$TestException;->getMessage()Ljava/lang/String;
[all …]
/aosp12/art/test/1931-monitor-events/
H A Dexpected-stdout.txt24 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
25 Caused by: art.Monitors$TestException: Got an error while performing action TIMED_WAIT
30 Caught exception: art.Monitors$TestException: Exception thrown by other thread!
31 Caused by: art.Monitors$TestException: Got an error while performing action WAIT
/aosp12/art/test/111-unresolvable-exception/src/
H A DMain.java33 } catch (TestException e) { // This handler will have an unresolvable class. in check()
40 private static native void throwsTestException() throws TestException; in throwsTestException()
H A DTestException.java17 public class TestException extends Exception { class
/aosp12/art/test/111-unresolvable-exception/
H A Dbuild30 rm classes/TestException.class

12