Home
last modified time | relevance | path

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

12

/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DSlogfTest.java74 Throwable throwable = new Throwable(EXCEPTION_MSG); in testV_msg2() local
76 Slogf.v(TAG, LOGGED_MSG, throwable); in testV_msg2()
80 assertLogcatStackTrace(VERBOSE, throwable); in testV_msg2()
118 Throwable throwable = new Throwable(EXCEPTION_MSG); in testD_msg2() local
119 Slogf.d(TAG, LOGGED_MSG, throwable); in testD_msg2()
123 assertLogcatStackTrace(DEBUG, throwable); in testD_msg2()
160 Throwable throwable = new Throwable(EXCEPTION_MSG); in testI_msg2() local
162 Slogf.i(TAG, LOGGED_MSG, throwable); in testI_msg2()
166 assertLogcatStackTrace(INFO, throwable); in testI_msg2()
204 Throwable throwable = new Throwable(EXCEPTION_MSG); in testW_msg2() local
[all …]
/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/tests/src/android/signature/cts/tests/
DApiPresenceCheckerTest.java134 private final Throwable throwable; field in ApiPresenceCheckerTest.Failure
136 public Failure(FailureType type, String name, String errorMessage, Throwable throwable) { in Failure() argument
140 this.throwable = throwable; in Failure()
146 if (throwable != null) { in toString()
148 throwable.printStackTrace(new PrintWriter(out)); in toString()
178 Throwable throwable) { in notifyFailure() argument
179 failures.add(new Failure(type, name, errorMessage, throwable)); in notifyFailure()
/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()
DExpectedFailuresFilter.java51 …ublic void notifyFailure(FailureType type, String name, String errorMessage, Throwable throwable) { in notifyFailure() argument
57 delegate.notifyFailure(type, name, errorMessage, throwable); in notifyFailure()
DResultObserver.java39 void notifyFailure(FailureType type, String name, String errorMessage, Throwable throwable); in notifyFailure() argument
/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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DIgnoreExceptions.java32 } catch (Throwable throwable) { in run()
33 Log.d("IgnoreExceptions", "Ignoring Exception", throwable); in run()
/cts/tests/tests/view/src/android/view/cts/
DInflateExceptionTest.java52 Throwable throwable = new Exception(); in testInflateException() local
57 ne = new InflateException(detailMessage, throwable); in testInflateException()
85 ne = new InflateException(throwable); in testInflateException()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DTestResultObserver.java39 Throwable throwable) { in notifyFailure() argument
49 if (throwable != null) { in notifyFailure()
51 throwable.printStackTrace(new PrintWriter(mErrorString)); in notifyFailure()
/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/hostsidetests/compilation/src/android/compilation/cts/
DCompilationTest.java232 Throwable throwable = assertThrows(Throwable.class, () -> { in testExternalProfileValidationFailed() local
235 assertThat(throwable).hasMessageThat().contains( in testExternalProfileValidationFailed()
252 Throwable throwable = assertThrows(Throwable.class, () -> { in testExternalProfileValidationMultiPackageFailed() local
258 assertThat(Utils.countSubstringOccurrence(throwable.getMessage(), in testExternalProfileValidationMultiPackageFailed()
272 Throwable throwable = assertThrows(Throwable.class, in testEmbeddedProfileFailed() local
274 assertThat(throwable).hasMessageThat().contains( in testEmbeddedProfileFailed()
302 Throwable throwable = assertThrows(Throwable.class, () -> { in testExternalProfileValidationMultiPackageFailedMultipleErrors() local
308 assertThat(Utils.countSubstringOccurrence(throwable.getMessage(), in testExternalProfileValidationMultiPackageFailedMultipleErrors()
388 Throwable throwable = assertThrows(Throwable.class, () -> { in testInstallCompilerFilterOverrideInvalid() local
394 assertThat(throwable.getMessage()).contains("Invalid compiler filter"); in testInstallCompilerFilterOverrideInvalid()
/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()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DDumpOnFailureRule.java47 public void onTestFailure(Statement base, Description description, Throwable throwable) { in onTestFailure() argument
50 if (throwable instanceof AssumptionViolatedException) { in onTestFailure()
51 Log.d(TAG, "Skipping test " + testName + ": " + throwable); in onTestFailure()
/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/common/src/android/media/cts/
DMediaCodecAsyncHelper.java43 final AtomicReference<Throwable> throwable = new AtomicReference<>(); in runThread() local
45 throwable.set(e); in runThread()
49 Throwable t = throwable.get(); in runThread()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DDumpOnFailureRule.java46 public void onTestFailure(Statement base, Description description, Throwable throwable) { in onTestFailure() argument
47 if (throwable instanceof AssumptionViolatedException) { in onTestFailure()
49 Log.d(TAG, "Skipping test " + testName + ": " + throwable); in onTestFailure()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/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()
/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()

12