Home
last modified time | relevance | path

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

/cts/tests/tests/accounts/src/android/accounts/cts/
DExceptionTest.java13 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/
DItsException.java23 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/src/com/android/compatibility/common/util/
DRetryableException.java37 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
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DRetryableException.java37 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
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebkitUtils.java150 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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java78 public SensorTestDetails(String name, String tag, Throwable cause) { in SensorTestDetails() argument
80 if (cause instanceof InterruptedException) { in SensorTestDetails()
84 } else if (cause instanceof SensorTestStateNotSupportedException) { in SensorTestDetails()
90 mSummary = String.format("[%s] %s", tag, cause.getMessage()); in SensorTestDetails()
/cts/tools/vm-tests-tf/src/dot/junit/
DAssertionFailedException.java21 public AssertionFailedException(String message, Throwable cause) { in AssertionFailedException() argument
22 super(message, cause); in AssertionFailedException()
DDxAbstractMain.java166 static public void fail(String message, Throwable cause) { in fail() argument
167 throw new AssertionFailedException(message, cause); in fail()
/cts/tests/tests/os/src/android/os/cts/
DAbiTest.java82 Throwable cause = ex.getCause(); in checkElfFilesInDirectory()
83 if (cause instanceof ErrnoException) { in checkElfFilesInDirectory()
85 if (((ErrnoException) cause).errno != OsConstants.EACCES) { in checkElfFilesInDirectory()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/reporting/
DGnssTestDetails.java76 public GnssTestDetails(String name, String tag, Throwable cause) { in GnssTestDetails() argument
78 if (cause instanceof InterruptedException) { in GnssTestDetails()
85 mSummary = String.format("[%s] %s", tag, cause.getMessage()); in GnssTestDetails()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java166 DisconnectCause cause = new DisconnectCause( in testDisconnectCause() local
172 assertEquals(DisconnectCause.ERROR, cause.getCode()); in testDisconnectCause()
173 assertEquals(label, cause.getLabel()); in testDisconnectCause()
174 assertEquals(description, cause.getDescription()); in testDisconnectCause()
175 assertEquals(reason, cause.getReason()); in testDisconnectCause()
176 assertEquals(ToneGenerator.TONE_CDMA_CALLDROP_LITE, cause.getTone()); in testDisconnectCause()
177 assertEquals(0, cause.describeContents()); in testDisconnectCause()
182 cause.writeToParcel(p, 0); in testDisconnectCause()
191 assertEquals(cause, parcelCause); in testDisconnectCause()
DRemoteConferenceTest.java247 DisconnectCause cause = new DisconnectCause(DisconnectCause.LOCAL); in testRemoteConferenceCallbacks_Disconnect() local
248 mRemoteConference.setDisconnected(cause); in testRemoteConferenceCallbacks_Disconnect()
251 assertEquals(cause, callbackInvoker.getArgs(0)[1]); in testRemoteConferenceCallbacks_Disconnect()
DRemoteConnectionTest.java616 DisconnectCause cause = new DisconnectCause(DisconnectCause.LOCAL); in testRemoteConnectionCallbacks_Disconnect() local
617 mRemoteConnection.setDisconnected(cause); in testRemoteConnectionCallbacks_Disconnect()
620 assertEquals(cause, callbackInvoker.getArgs(0)[1]); in testRemoteConnectionCallbacks_Disconnect()
/cts/tests/signature/lib/android/src/android/signature/cts/
DDexMemberChecker.java57 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/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DDaveyView.java61 public void causeDavey(boolean cause) { in causeDavey() argument
62 mCauseDavey = cause; in causeDavey()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDummyConnectionService.java133 final int cause = convertNumberToCause(connection.getAddress().getSchemeSpecificPart()); in hangUpAsync() local
139 connection.setDisconnected(new DisconnectCause(cause)); in hangUpAsync()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackInfoSubject.java124 for (TestApp cause : causes) { in causePackagesContainsExactly()
125 expectedVps.add(new VersionedPackageWithEquals(cause.getVersionedPackage())); in causePackagesContainsExactly()
DUtils.java165 for (TestApp cause : causePackages) { in rollback()
166 causes.add(cause.getVersionedPackage()); in rollback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DCtsConnection.java159 private void setDisconnectedAndDestroy(DisconnectCause cause) { in setDisconnectedAndDestroy() argument
160 setDisconnected(cause); in setDisconnectedAndDestroy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java125 private void error(final int errorId, final Throwable cause) { in error() argument
130 Log.d(TAG, error, cause); in error()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DParallelSensorOperation.java124 Throwable cause = e.getCause(); in execute()
125 hasAssertionErrors |= (cause instanceof AssertionError); in execute()
/cts/tests/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java43 public void onStatusChanged(int status, int cause, long progress, Throwable detail) { in onStatusChanged() argument
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java188 KeyStoreException cause = (KeyStoreException) e.getCause(); in testEcAttestation_TooLargeChallenge()
189 assertEquals(KM_ERROR_INVALID_INPUT_LENGTH, cause.getErrorCode()); in testEcAttestation_TooLargeChallenge()
237 KeyStoreException cause = (KeyStoreException) e.getCause(); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId()
238 assertEquals(KM_ERROR_PERMISSION_DENIED, cause.getErrorCode()); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId()
307 KeyStoreException cause = (KeyStoreException) e.getCause(); in testRsaAttestation_TooLargeChallenge()
308 assertEquals(KM_ERROR_INVALID_INPUT_LENGTH, cause.getErrorCode()); in testRsaAttestation_TooLargeChallenge()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java993 public void dumpScreen(@NonNull String cause) {
997 Log.w(TAG, "Dumping window hierarchy because " + cause + " on " + file);
1002 Log.e(TAG, "error dumping screen on " + cause, e);
/cts/tests/tests/util/src/android/util/cts/
DArrayMapTest.java505 Throwable cause = e.getCause();
506 if (cause instanceof IllegalArgumentException) {