Home
last modified time | relevance | path

Searched refs:throwable (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DRunOnMainUtils.java34 AtomicReference<Throwable> throwable = new AtomicReference<>(null); in getOnMain() local
39 throwable.set(e); in getOnMain()
42 if (throwable.get() != null) { in getOnMain()
43 throw new RuntimeException(throwable.get()); in getOnMain()
/cts/tests/app/app/src/android/app/stubs/
DIntentServiceStub.java41 private static Throwable throwable; field in IntentServiceStub
50 throwable = null; in reset()
62 if (throwable != null) { in waitToFinish()
63 throw throwable; in waitToFinish()
77 throwable = t; in onHandleIntent()
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DFlakyTestRule.java43 Throwable throwable = null; in apply()
51 throwable = t; in apply()
54 throw throwable; in apply()
/cts/tests/signature/lib/common/src/android/signature/cts/
DLogHelper.java22 static void loge(String message, Throwable throwable) { in loge() argument
23 System.out.println(String.format("%s: %s", message, throwable)); in loge()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/exceptions/
DPollValueFailedException.java27 public PollValueFailedException(String message, Throwable throwable) { in PollValueFailedException() argument
28 super(message, throwable); in PollValueFailedException()
DNeneException.java34 public NeneException(String message, Throwable throwable) { in NeneException() argument
35 super(message, throwable); in NeneException()
/cts/tests/tests/view/src/android/view/cts/
DInflateExceptionTest.java50 Throwable throwable = new Exception(); in testInflateException() local
55 ne = new InflateException(detailMessage, throwable); in testInflateException()
83 ne = new InflateException(throwable); in testInflateException()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/exceptions/
DAppSearchExceptionCtsTest.java51 IllegalArgumentException throwable = new IllegalArgumentException("You can't do that!"); in testExceptionWithThrowable() local
54 AppSearchResult.RESULT_INVALID_ARGUMENT, "ERROR!", throwable); in testExceptionWithThrowable()
56 assertThat(e.getCause()).isEqualTo(throwable); in testExceptionWithThrowable()
/cts/libs/vogar-expect/src/vogar/expect/util/
DLog.java56 public static void info(String message, Throwable throwable) { in info() argument
58 sLogoutput.info(message, throwable); in info()
DLogOutput.java34 void info(String message, Throwable throwable); in info() argument
/cts/tests/BlobStore/src/com/android/cts/blob/
DDumpOnFailureRule.java45 public void onTestFailure(Statement base, Description description, Throwable throwable) { in onTestFailure() argument
48 if (throwable instanceof AssumptionViolatedException) { in onTestFailure()
49 Log.d(TAG, "Skipping test " + testName + ": " + throwable); in onTestFailure()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DSingleTestNGTestRunListener.java81 Throwable throwable = result.getThrowable(); in onTestFailure() local
83 id, stringify(throwable))); in onTestFailure()
84 failures.put(id, throwable); in onTestFailure()
DTestNgRunner.java139 Throwable throwable = failureEntry.getValue(); in extractException() local
141 .append(throwable.getClass()).append(": ") in extractException()
142 .append(throwable.getMessage()); in extractException()
143 for (StackTraceElement e : throwable.getStackTrace()) { in extractException()
/cts/tests/tests/media/src/android/media/cts/
DRemoteService.java83 AtomicReference<Throwable> throwable = new AtomicReference<>(); in runOnHandlerSync() local
88 throwable.set(th); in runOnHandlerSync()
95 return done && throwable.get() == null; in runOnHandlerSync()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/types/main/java/com/android/bedstead/remoteframeworkclasses/
DSimpleAccountManagerFuture.java107 public void setException(Throwable throwable) { in setException() argument
108 mException.set(throwable); in setException()
DAccountManagerFutureWrapper.java92 public void onException(Throwable throwable) { in onException() argument
93 mFuture.setException(throwable); in onException()
/cts/tests/tests/systemui/src/android/systemui/cts/
DScreenshotTestRule.java92 protected void failed(Throwable throwable, Description description) { in failed() argument
93 super.failed(throwable, description); in failed()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java122 AtomicReference<Throwable> throwable = new AtomicReference<>(null); in getOnService() local
128 throwable.set(e); in getOnService()
131 if (throwable.get() != null) { in getOnService()
132 throw new RuntimeException(throwable.get()); in getOnService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestResult.java52 public void addError(Test test, Throwable throwable) { in addError() argument
53 mWrappedTestResult.addError(test, throwable); in addError()
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DBatchResultCallbackCtsTest.java42 public void onSystemError(@Nullable Throwable throwable) { in testCallback()
/cts/libs/vogar-expect/src/vogar/expect/
DOutcome.java59 public Outcome(String outcomeName, Result result, Throwable throwable) { in Outcome() argument
62 this.output = sanitizeOutputLines(throwableToLines(throwable)); in Outcome()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DRetryTest.java147 ValueTester(Throwable throwable) { in ValueTester() argument
148 this(throwable, null, Integer.MAX_VALUE); in ValueTester()
/cts/tests/tests/provider/preconditions/src/android/provider/cts/preconditions/
DExternalStoragePreparer.java47 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable throwable) in tearDown() argument
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppSecurityPreparer.java66 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable throwable) in tearDown() argument
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java701 } catch (Throwable throwable) { in eventuallyWithSessionClose()
705 innerThrowable.set(throwable); in eventuallyWithSessionClose()
709 } catch (Throwable throwable) { in eventuallyWithSessionClose()
714 throw throwable; in eventuallyWithSessionClose()

12