/cts/common/device-side/bedstead/remoteframeworkclasses/src/types/main/java/com/android/bedstead/remoteframeworkclasses/ |
D | SimpleAccountManagerFuture.java | 63 Throwable exception = mException.get(); in getResult() local 64 if (exception == null) { in getResult() 66 } else if (exception instanceof OperationCanceledException) { in getResult() 67 throw (OperationCanceledException) exception; in getResult() 68 } else if (exception instanceof IOException) { in getResult() 69 throw (IOException) exception; in getResult() 70 } else if (exception instanceof AuthenticatorException) { in getResult() 71 throw (AuthenticatorException) exception; in getResult() 73 throw new RuntimeException("Unexpected exception type", exception); in getResult() 92 Throwable exception = mException.get(); in getResult() local [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | ExceptionsTest.java | 49 CarNotConnectedException exception = new CarNotConnectedException(); in testCarNotConnectedException() local 50 assertNull(exception.getMessage()); in testCarNotConnectedException() 51 assertNull(exception.getCause()); in testCarNotConnectedException() 53 exception = new CarNotConnectedException(MESSAGE); in testCarNotConnectedException() 54 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException() 55 assertNull(exception.getCause()); in testCarNotConnectedException() 57 exception = new CarNotConnectedException(MESSAGE, CAUSE); in testCarNotConnectedException() 58 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException() 59 assertEquals(CAUSE, exception.getCause()); in testCarNotConnectedException() 61 exception = new CarNotConnectedException(CAUSE); in testCarNotConnectedException() [all …]
|
/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_status.cpp | 75 binder_exception_t exception, in checkIsErrorException() argument 79 EXPECT_EQ(exception, AStatus_getExceptionCode(status)); in checkIsErrorException() 82 EXPECT_EQ(exception == EX_TRANSACTION_FAILED ? STATUS_FAILED_TRANSACTION in checkIsErrorException() 123 for (binder_exception_t exception : kErrorExceptions) { in TEST() local 124 AStatus* status = AStatus_fromExceptionCode(exception); in TEST() 125 checkIsErrorException(status, exception, "" /*message*/); in TEST() 132 for (binder_exception_t exception : kErrorExceptions) { in TEST() local 134 AStatus_fromExceptionCodeWithMessage(exception, kMessage.c_str()); in TEST() 135 checkIsErrorException(status, exception, kMessage); in TEST() 167 for (binder_exception_t exception : kUnknownExceptions) { in TEST() local [all …]
|
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | RetryRuleTest.java | 52 RetryableStatement(int numberFailures, T exception) { in RetryableStatement() argument 53 this(numberFailures, exception, null); in RetryableStatement() 56 RetryableStatement(int numberFailures, T exception, @Nullable Runnable cleaner) { in RetryableStatement() argument 58 mException = exception; in RetryableStatement() 138 final RetryableException exception = new RetryableException("Y U NO?"); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() local 141 doThrow(exception).when(mMockStatement).evaluate(); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() 146 assertThat(actualException).isSameInstanceAs(exception); in testNeverCleanWhenDisabledAndStatementThrowsRetryableException() 154 final RetryableException exception = new RetryableException(timeout, "Y U NO?"); in testPassOnRetryableExceptionWithTimeout() local 157 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout() 186 final RetryableException exception = new RetryableException("Y U NO?"); in testFailWhenDisabledAndStatementThrowsRetryableException() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | ExposedService.java | 33 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()
|
D | NormalService.java | 37 String exception = null; in onStartCommand() local 41 exception = t.getClass().getName(); in onStartCommand() 48 .setException(exception) in onStartCommand()
|
D | ExposedActivity.java | 41 String exception = null; in onCreate() local 45 exception = t.getClass().getName(); in onCreate() 52 .setException(exception) in onCreate()
|
D | NormalWebActivity.java | 43 String exception = null; in onCreate() local 47 exception = t.getClass().getName(); in onCreate() 54 .setException(exception) in onCreate()
|
D | ExposedProvider.java | 55 String exception = null; in query() local 59 exception = t.getClass().getName(); in query() 66 .setException(exception) in query()
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/ |
D | FileUtils.java | 57 Exception exception = expectThrows(FileNotFoundException.class, () -> { in assertDirIsNotAccessible() local 60 assertThat(exception.getMessage()).contains(JAVA_FILE_PERMISSION_DENIED_MSG); in assertDirIsNotAccessible() 61 assertThat(exception.getMessage()).doesNotContain(JAVA_FILE_NOT_FOUND_MSG); in assertDirIsNotAccessible() 70 Exception exception = expectThrows(FileNotFoundException.class, () -> { in assertDirDoesNotExist() local 73 assertThat(exception.getMessage()).contains(JAVA_FILE_NOT_FOUND_MSG); in assertDirDoesNotExist() 74 assertThat(exception.getMessage()).doesNotContain(JAVA_FILE_PERMISSION_DENIED_MSG); in assertDirDoesNotExist() 116 Exception exception = expectThrows(FileNotFoundException.class, () -> { in assertFileDoesNotExist() local 119 assertThat(exception.getMessage()).contains(JAVA_FILE_NOT_FOUND_MSG); in assertFileDoesNotExist() 120 assertThat(exception.getMessage()).doesNotContain(JAVA_FILE_PERMISSION_DENIED_MSG); in assertFileDoesNotExist()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManager_NameNotFoundExceptionTest.java | 29 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-axt/src/com/android/compatibility/common/util/ |
D | BroadcastRpcBase.java | 88 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()
|
D | SafeCleanerRule.java | 71 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);
|
D | MatcherUtils.java | 133 E exception, Matcher<? super E> condition) throws AssertionError { 135 assertThat(exception, condition); 137 throw ExceptionUtils.appendCause(err, exception);
|
/cts/tests/tests/appop/ndk-jni/android/app/appops/cts/ |
D | NDKAppOpsLoggingTest.cpp | 24 jclass exception = env->FindClass("java/lang/RuntimeException"); in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeStartStopAudioRecord() local 38 env->ThrowNew(exception, "Failed to create audio stream builder"); in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeStartStopAudioRecord() 63 env->ThrowNew(exception, "Failed to create audio stream"); in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeStartStopAudioRecord() 69 env->ThrowNew(exception, "Failed to start audio stream"); in Java_android_app_appops_cts_AppOpsLoggingTestKt_nativeStartStopAudioRecord()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AsyncTaskTest.java | 75 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/ |
D | ImplicitActivity.java | 40 String exception = null; in onCreate() local 44 exception = t.getClass().getName(); in onCreate() 51 .setException(exception) in onCreate()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | UnsafeStateExceptionTest.java | 58 UnsafeStateException exception = new UnsafeStateException(VALID_OPERATION, reason); in assertExceptionWithValidReason() local 60 assertWithMessage("operation").that(exception.getOperation()).isEqualTo(VALID_OPERATION); in assertExceptionWithValidReason() 61 assertWithMessage("reasons").that(exception.getReasons()).containsExactly(reason); in assertExceptionWithValidReason()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/ |
D | TestResult.java | 88 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/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | MatcherUtils.java | 115 E exception, Matcher<? super E> condition) throws AssertionError { 117 assertThat(exception, condition); 119 throw ExceptionUtils.appendCause(err, exception);
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0685/src/android/security/cts/CVE_2021_0685/ |
D | PocActivity.java | 40 } catch (Exception exception) { in onCreate() 41 exception.printStackTrace(); in onCreate()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ExtractDecodeEditEncodeMuxTest.java | 300 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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | DeviceInfo.java | 150 private void error(String message, Throwable exception) { in error() argument 153 Log.e(LOG_TAG, message, exception); in error() 156 private void failed(String message, Throwable exception) { in failed() argument 159 Log.e(LOG_TAG, message, exception); in failed()
|
/cts/tests/sensor/jni/ |
D | nativeTestHelper.cpp | 41 jobject exception = env->NewObject(exClass, constructor, msgStr, nullptr); in fail() local 42 env->Throw(static_cast<jthrowable>(exception)); in fail()
|
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/a/ |
D | AppSearchInstantAppTest.java | 47 ExecutionException exception = expectThrows(ExecutionException.class, () -> in testInstantAppDoesntHaveAccess() local 51 assertThat(exception.getMessage()).contains( in testInstantAppDoesntHaveAccess()
|