/cts/tests/tests/car/src/android/car/cts/ |
D | ExceptionsTest.java | 48 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/ |
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).isSameAs(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/common/device-side/util/tests/src/com/android/compatibility/common/util/ |
D | RetryRuleTest.java | 47 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/ |
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 | NormalActivity.java | 50 String exception = null; in onCreate() local 54 exception = t.getClass().getName(); in onCreate() 61 .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/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);
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BroadcastRpcBase.java | 87 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()
|
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);
|
/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/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/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 …]
|
D | DecodeAccuracyTestBase.java | 252 } catch (IllegalStateException exception) { in decodeFramesAndPlay() 253 Log.e(TAG, "IllegalStateException in queueDecoderInputBuffer", exception); in decodeFramesAndPlay() 283 } catch (IllegalStateException exception) { in decodeFramesAndPlay() 284 Log.e(TAG, "IllegalStateException in dequeueDecoderOutputBuffer", exception); in decodeFramesAndPlay() 369 } catch (IOException exception) { in setExtractorDataSource() 370 Log.e(TAG, "IOException in setDataSource", exception); in setExtractorDataSource() 403 } catch (Exception exception) { in createDecoder() 404 Log.e(TAG, "Exception during decoder creation", exception); in createDecoder() 414 } catch (Exception exception) { in configureDecoder() 415 Log.e(TAG, "Exception during decoder configuration", exception); in configureDecoder() [all …]
|
/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/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/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 306 RecoverableSecurityException exception = null; in doMediaEscalation_Open() local 310 exception = expected; in doMediaEscalation_Open() 313 doEscalation(exception); in doMediaEscalation_Open() 333 RecoverableSecurityException exception = null; in doMediaEscalation_Update() local 338 exception = expected; in doMediaEscalation_Update() 341 doEscalation(exception); in doMediaEscalation_Update() 357 RecoverableSecurityException exception = null; in doMediaEscalation_Delete() local 362 exception = expected; in doMediaEscalation_Delete() 365 doEscalation(exception); in doMediaEscalation_Delete() 370 private void doEscalation(RecoverableSecurityException exception) throws Exception { in doEscalation() argument [all …]
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | DeviceInfo.java | 147 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/tests/signature/lib/common/src/android/signature/cts/ |
D | LogHelper.java | 22 static void loge(String message, Exception exception) { in loge() argument 23 System.out.println(String.format("%s: %s", message, exception)); in loge()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 216 return Result.exception(e); in testSetSoTimeout_readTimeout() 251 return Result.exception(e); in testSetSoTimeout_writeTimeout() 371 private volatile Exception exception; field in LocalSocketTest.StreamReader 391 exception = e; in run() 401 if (exception != null) { in waitForCompletion() 402 throw new Exception("Read failed", exception); in waitForCompletion() 424 static Result exception(Exception e) { in exception() method in LocalSocketTest.Result
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | AbstractContentCaptureActivity.java | 118 final AtomicReference<Exception> exception = new AtomicReference<>(); in syncCallOnUiThread() local 123 exception.set(e); in syncCallOnUiThread() 126 final Exception e = exception.get(); in syncCallOnUiThread()
|