/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | ExceptionTest.java | 13 private Throwable cause = new Throwable("Throwable casue"); field in ExceptionTest 24 new AccountsException(cause); in testAccountsExceptionWithThrowableCause() 28 new AccountsException(message, cause); in testAccountsExceptionWithMessageAndThrowableCause() 40 new NetworkErrorException(cause); in testNetworkErrorExceptionWithThrowableCause() 44 new NetworkErrorException(message, cause); in testNetworkErrorExceptionWithMessageAndThrowableCause() 56 new AuthenticatorException(cause); in testAuthenticatorExceptionWithThrowableCause() 60 new AuthenticatorException(message, cause); in testAuthenticatorExceptionWithMessageAndThrowableCause() 72 new OperationCanceledException(cause); in testOperationCanceledExceptionWithThrowableCause() 76 new OperationCanceledException(message, cause); in testOperationCanceledExceptionWithMessageAndThrowableCause()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsException.java | 23 public ItsException(Throwable cause) { in ItsException() argument 24 super(cause); in ItsException() 27 public ItsException(String message, Throwable cause) { in ItsException() argument 28 super(message, cause); in ItsException()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RetryableException.java | 37 public RetryableException(Throwable cause, String format, Object...args) { in RetryableException() argument 38 this((Timeout) null, cause, String.format(format, args), cause); in RetryableException() local 51 public RetryableException(@Nullable Timeout timeout, Throwable cause, String format, in RetryableException() argument 53 super(String.format(format, args), cause); in RetryableException() local
|
D | ExceptionUtils.java | 65 …blic static @NonNull <E extends Throwable> E appendCause(@NonNull E t, @Nullable Throwable cause) { in appendCause() argument 66 if (cause != null) { in appendCause() 67 getRootCause(t).initCause(cause); in appendCause()
|
D | UiDumpUtils.java | 159 public static UiDumpWrapperException wrapWithUiDump(Throwable cause) { in wrapWithUiDump() argument 160 return (cause instanceof UiDumpWrapperException) in wrapWithUiDump() 161 ? (UiDumpWrapperException) cause in wrapWithUiDump() 162 : new UiDumpWrapperException(cause); in wrapWithUiDump() 561 private UiDumpWrapperException(Throwable cause) { 562 super(cause.getMessage() + "\n\nWhile displaying the following UI:\n" 563 + mkStr(sb -> dumpNodes(sUiAutomation.getRootInActiveWindow(), sb)), cause);
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebkitUtils.java | 150 Throwable cause = e.getCause(); in waitForFuture() 152 if (cause instanceof Error) throw (Error) cause; in waitForFuture() 153 if (cause instanceof RuntimeException) throw (RuntimeException) cause; in waitForFuture() 156 throw new RuntimeException(cause); in waitForFuture()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ExceptionUtils.java | 38 public static <E extends Throwable> E appendCause(E t, Throwable cause) { in appendCause() argument 39 if (cause != null) { in appendCause() 40 getRootCause(t).initCause(cause); in appendCause()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/ |
D | SensorTestDetails.java | 80 public SensorTestDetails(String name, String tag, Throwable cause) { in SensorTestDetails() argument 82 if (cause instanceof InterruptedException) { in SensorTestDetails() 86 } else if (cause instanceof SensorTestStateNotSupportedException) { in SensorTestDetails() 88 } else if (cause instanceof SensorTestWarningException) { in SensorTestDetails() 95 mSummary = String.format("[%s] %s", tag, cause.getMessage()); in SensorTestDetails()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/exceptions/ |
D | AdbException.java | 44 public AdbException(String message, String command, Throwable cause) { in AdbException() argument 45 this(message, command, /* output= */ null, cause); in AdbException() 48 public AdbException(String message, String command, String output, Throwable cause) { in AdbException() argument 49 super(message, cause); in AdbException()
|
D | AdbParseException.java | 32 public AdbParseException(String message, String adbOutput, Throwable cause) { in AdbParseException() argument 33 super(message, cause); in AdbParseException() 34 if (message == null || adbOutput == null || cause == null) { in AdbParseException()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | BackendBusyExceptionTest.java | 75 Exception cause = new Exception("My Cause"); in testCause() local 78 new BackendBusyException(1, "My test Message.", cause); in testCause() 79 assertTrue(backendBusyException.getCause() == cause); in testCause()
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | AssertionFailedException.java | 21 public AssertionFailedException(String message, Throwable cause) { in AssertionFailedException() argument 22 super(message, cause); in AssertionFailedException()
|
D | DxAbstractMain.java | 166 static public void fail(String message, Throwable cause) { in fail() argument 167 throw new AssertionFailedException(message, cause); in fail()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | WindowChangeTimeoutException.java | 24 public WindowChangeTimeoutException(@NonNull Throwable cause, long timeoutMillis) { in WindowChangeTimeoutException() argument 25 super(cause, "no window change event in %dms", timeoutMillis); in WindowChangeTimeoutException()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AbiTest.java | 82 Throwable cause = ex.getCause(); in checkElfFilesInDirectory() 83 if (cause instanceof ErrnoException) { in checkElfFilesInDirectory() 85 if (((ErrnoException) cause).errno != OsConstants.EACCES) { in checkElfFilesInDirectory()
|
D | AppHibernationUtils.kt | 223 wrappingExceptions({ cause: Throwable? -> UiDumpUtils.wrapWithUiDump(cause) }) { in waitFindNotification() method 240 wrappingExceptions({ cause: Throwable? -> UiDumpUtils.wrapWithUiDump(cause) }) { in waitFindNotification() method
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DataObjectUnitTests.java | 171 DisconnectCause cause = new DisconnectCause( in testDisconnectCause() local 177 assertEquals(DisconnectCause.ERROR, cause.getCode()); in testDisconnectCause() 178 assertEquals(label, cause.getLabel()); in testDisconnectCause() 179 assertEquals(description, cause.getDescription()); in testDisconnectCause() 180 assertEquals(reason, cause.getReason()); in testDisconnectCause() 181 assertEquals(ToneGenerator.TONE_CDMA_CALLDROP_LITE, cause.getTone()); in testDisconnectCause() 182 assertEquals(0, cause.describeContents()); in testDisconnectCause() 187 cause.writeToParcel(p, 0); in testDisconnectCause() 196 assertEquals(cause, parcelCause); in testDisconnectCause()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | DexMemberChecker.java | 57 Throwable cause = ex.getCause(); in call_VMDebug_allowHiddenApiReflectionFrom() 59 if (cause instanceof Exception) { in call_VMDebug_allowHiddenApiReflectionFrom() 60 throw (Exception) cause; in call_VMDebug_allowHiddenApiReflectionFrom() 62 throw (Error) cause; in call_VMDebug_allowHiddenApiReflectionFrom()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | DaveyView.java | 61 public void causeDavey(boolean cause) { in causeDavey() argument 62 mCauseDavey = cause; in causeDavey()
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackInfoSubject.java | 104 for (TestApp cause : causes) { in causePackagesContainsExactly() 105 expectedVps.add(cause.getVersionedPackage()); in causePackagesContainsExactly()
|
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/ |
D | ProcessUserData.java | 45 public UserDataException(String message, Throwable cause) { in UserDataException() argument 46 super(message, cause); in UserDataException()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/ |
D | ScreenPinningTestActivity.java | 68 private void error(final int errorId, final Throwable cause) { in error() argument 73 Log.d(TAG, error, cause); in error()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | TestConnectionService.java | 133 final int cause = convertNumberToCause(connection.getAddress().getSchemeSpecificPart()); in hangUpAsync() local 139 connection.setDisconnected(new DisconnectCause(cause)); in hangUpAsync()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | CtsConnection.java | 159 private void setDisconnectedAndDestroy(DisconnectCause cause) { in setDisconnectedAndDestroy() argument 160 setDisconnected(cause); in setDisconnectedAndDestroy()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | ParallelSensorOperation.java | 124 Throwable cause = e.getCause(); in execute() 125 hasAssertionErrors |= (cause instanceof AssertionError); in execute()
|