Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 52) sorted by relevance

123

/cts/tests/tests/car/src/android/car/cts/
DExceptionsTest.java48 CarNotConnectedException exception = new CarNotConnectedException(); in testCarNotConnectedException() local
49 assertNull(exception.getMessage()); in testCarNotConnectedException()
50 assertNull(exception.getCause()); in testCarNotConnectedException()
52 exception = new CarNotConnectedException(MESSAGE); in testCarNotConnectedException()
53 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
54 assertNull(exception.getCause()); in testCarNotConnectedException()
56 exception = new CarNotConnectedException(MESSAGE, CAUSE); in testCarNotConnectedException()
57 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
58 assertEquals(CAUSE, exception.getCause()); in testCarNotConnectedException()
60 exception = new CarNotConnectedException(CAUSE); in testCarNotConnectedException()
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_status.cpp72 binder_exception_t exception, in checkIsErrorException() argument
76 EXPECT_EQ(exception, AStatus_getExceptionCode(status)); in checkIsErrorException()
79 EXPECT_EQ(exception == EX_TRANSACTION_FAILED ? STATUS_FAILED_TRANSACTION in checkIsErrorException()
120 for (binder_exception_t exception : kErrorExceptions) { in TEST() local
121 AStatus* status = AStatus_fromExceptionCode(exception); in TEST()
122 checkIsErrorException(status, exception, "" /*message*/); in TEST()
129 for (binder_exception_t exception : kErrorExceptions) { in TEST() local
131 AStatus_fromExceptionCodeWithMessage(exception, kMessage.c_str()); in TEST()
132 checkIsErrorException(status, exception, kMessage); in TEST()
164 for (binder_exception_t exception : kUnknownExceptions) { in TEST() local
[all …]
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DRetryRuleTest.java47 RetryableStatement(int numberFailures, T exception) { in RetryableStatement() argument
49 mException = exception; in RetryableStatement()
83 final RetryableException exception = new RetryableException(timeout, "Y U NO?"); in testPassOnRetryableExceptionWithTimeout() local
86 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout()
115 final RetryableException exception = new RetryableException("Y U NO?"); in testFailWhenDisabledAndStatementThrowsRetryableException() local
117 doThrow(exception).when(mMockStatement).evaluate(); in testFailWhenDisabledAndStatementThrowsRetryableException()
122 assertThat(actualException).isSameAs(exception); in testFailWhenDisabledAndStatementThrowsRetryableException()
128 final RuntimeException exception = new RuntimeException("Y U NO?"); in testFailWhenDisabledAndStatementThrowsNonRetryableException() local
130 doThrow(exception).when(mMockStatement).evaluate(); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
135 assertThat(actualException).isSameAs(exception); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DRetryRuleTest.java47 RetryableStatement(int numberFailures, T exception) { in RetryableStatement() argument
49 mException = exception; in RetryableStatement()
83 final RetryableException exception = new RetryableException(timeout, "Y U NO?"); in testPassOnRetryableExceptionWithTimeout() local
86 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout()
115 final RetryableException exception = new RetryableException("Y U NO?"); in testFailWhenDisabledAndStatementThrowsRetryableException() local
117 doThrow(exception).when(mMockStatement).evaluate(); in testFailWhenDisabledAndStatementThrowsRetryableException()
122 assertThat(actualException).isSameAs(exception); in testFailWhenDisabledAndStatementThrowsRetryableException()
128 final RuntimeException exception = new RuntimeException("Y U NO?"); in testFailWhenDisabledAndStatementThrowsNonRetryableException() local
130 doThrow(exception).when(mMockStatement).evaluate(); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
135 assertThat(actualException).isSameAs(exception); in testFailWhenDisabledAndStatementThrowsNonRetryableException()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DExposedService.java33 String exception = null; in onBind() local
37 exception = t.getClass().getName(); in onBind()
44 .setException(exception) in onBind()
54 String exception = null; in onStartCommand() local
58 exception = t.getClass().getName(); in onStartCommand()
65 .setException(exception) in onStartCommand()
DNormalService.java37 String exception = null; in onStartCommand() local
41 exception = t.getClass().getName(); in onStartCommand()
48 .setException(exception) in onStartCommand()
DExposedActivity.java41 String exception = null; in onCreate() local
45 exception = t.getClass().getName(); in onCreate()
52 .setException(exception) in onCreate()
DNormalWebActivity.java43 String exception = null; in onCreate() local
47 exception = t.getClass().getName(); in onCreate()
54 .setException(exception) in onCreate()
DNormalActivity.java50 String exception = null; in onCreate() local
54 exception = t.getClass().getName(); in onCreate()
61 .setException(exception) in onCreate()
DExposedProvider.java55 String exception = null; in query() local
59 exception = t.getClass().getName(); in query()
66 .setException(exception) in query()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManager_NameNotFoundExceptionTest.java29 PackageManager.NameNotFoundException exception = new PackageManager.NameNotFoundException(); in testNameNotFoundException() local
31 throw exception; in testNameNotFoundException()
37 exception = new PackageManager.NameNotFoundException(message); in testNameNotFoundException()
39 throw exception; in testNameNotFoundException()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastRpcBase.java87 final String exception = responseBundle.get().getString(EXTRA_EXCEPTION); in invoke() local
88 if (exception != null) { in invoke()
90 + "\nException: " + exception); in invoke()
114 Throwable exception = null; in onReceive() local
122 exception = e; in onReceive()
131 if (exception != null) { in onReceive()
133 exception.toString() + "\n" + Log.getStackTraceString(exception)); in onReceive()
DSafeCleanerRule.java71 public SafeCleanerRule add(Throwable exception) { in add() argument
72 Log.w(TAG, "Adding exception directly: " + exception); in add()
73 mThrowables.add(exception); in add()
147 final Throwable exception = throwables.get(i);
148 exception.printStackTrace(pw);
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBroadcastRpcBase.java88 final String exception = responseBundle.get().getString(EXTRA_EXCEPTION); in invoke() local
89 if (exception != null) { in invoke()
91 + "\nException: " + exception); in invoke()
115 Throwable exception = null; in onReceive() local
123 exception = e; in onReceive()
132 if (exception != null) { in onReceive()
134 exception.toString() + "\n" + Log.getStackTraceString(exception)); in onReceive()
DSafeCleanerRule.java71 public SafeCleanerRule add(Throwable exception) { in add() argument
72 Log.w(TAG, "Adding exception directly: " + exception); in add()
73 mThrowables.add(exception); in add()
147 final Throwable exception = throwables.get(i);
148 exception.printStackTrace(pw);
/cts/tools/dasm/src/dasm/
DDasmCatchBuilder.java62 UnprocessedCatch(String exception, String from, String to, in UnprocessedCatch() argument
66 add(exception, branch); in UnprocessedCatch()
82 void add(String exception, String branch) { in add() argument
84 if (exception.compareToIgnoreCase("all") == 0) in add()
87 type = CstType.intern(Type.internClassName(exception)); in add()
92 "Bad .catch directive: same exception (" + exception in add()
149 public void add(String exception, String start, String end, String branch) { in add() argument
161 uc.add(exception, branch); in add()
166 unprocessed_catches.add(new UnprocessedCatch(exception, start, end, in add()
/cts/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java75 if (mMyAsyncTask.exception != null) { in doTestAsyncTask()
76 throw mMyAsyncTask.exception; in doTestAsyncTask()
112 assertNotNull(mMyAsyncTask.exception); in testCancelWithInterrupt()
113 assertTrue(mMyAsyncTask.exception instanceof InterruptedException); in testCancelWithInterrupt()
125 assertNull(mMyAsyncTask.exception); in testCancel()
134 assertNull(mMyAsyncTask.exception); in testCancelTooLate()
230 public Exception exception; field in AsyncTaskTest.MyAsyncTask
243 exception = e; in doInBackground()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/
DImplicitActivity.java40 String exception = null; in onCreate() local
44 exception = t.getClass().getName(); in onCreate()
51 .setException(exception) in onCreate()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java88 String status, String exception, Intent intent, in TestResult() argument
94 mException = exception; in TestResult()
139 private String exception; field in TestResult.Builder
162 exception = _exception; in setException()
175 status, exception, intent, instantAppPackageInfoExposed); in build()
/cts/tests/tests/media/src/android/media/cts/
DExtractDecodeEditEncodeMuxTest.java300 Exception exception = null; in extractDecodeEditEncodeMux() local
413 if (exception == null) { in extractDecodeEditEncodeMux()
414 exception = e; in extractDecodeEditEncodeMux()
423 if (exception == null) { in extractDecodeEditEncodeMux()
424 exception = e; in extractDecodeEditEncodeMux()
434 if (exception == null) { in extractDecodeEditEncodeMux()
435 exception = e; in extractDecodeEditEncodeMux()
444 if (exception == null) { in extractDecodeEditEncodeMux()
445 exception = e; in extractDecodeEditEncodeMux()
455 if (exception == null) { in extractDecodeEditEncodeMux()
[all …]
/cts/tests/signature/lib/common/src/android/signature/cts/
DLogHelper.java22 static void loge(String message, Exception exception) { in loge() argument
23 System.out.println(String.format("%s: %s", message, exception)); in loge()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfo.java147 private void error(String message, Throwable exception) { in error() argument
150 Log.e(LOG_TAG, message, exception); in error()
153 private void failed(String message, Throwable exception) { in failed() argument
156 Log.e(LOG_TAG, message, exception); in failed()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java302 RecoverableSecurityException exception = null; in doMediaEscalation_Open() local
306 exception = expected; in doMediaEscalation_Open()
309 doEscalation(exception); in doMediaEscalation_Open()
329 RecoverableSecurityException exception = null; in doMediaEscalation_Update() local
334 exception = expected; in doMediaEscalation_Update()
337 doEscalation(exception); in doMediaEscalation_Update()
353 RecoverableSecurityException exception = null; in doMediaEscalation_Delete() local
358 exception = expected; in doMediaEscalation_Delete()
361 doEscalation(exception); in doMediaEscalation_Delete()
366 private void doEscalation(RecoverableSecurityException exception) throws Exception { in doEscalation() argument
[all …]
/cts/tests/sensor/jni/
DnativeTestHelper.cpp39 jobject exception = env->NewObject(exClass, constructor, msgStr, nullptr); in fail() local
40 env->Throw(static_cast<jthrowable>(exception)); in fail()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DAbstractContentCaptureActivity.java118 final AtomicReference<Exception> exception = new AtomicReference<>(); in syncCallOnUiThread() local
123 exception.set(e); in syncCallOnUiThread()
126 final Exception e = exception.get(); in syncCallOnUiThread()

123