Home
last modified time | relevance | path

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

12

/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DOnDevicePersonalizationManagerTest.java161 assertTrue(receiver.getException() instanceof IllegalStateException); in testExecuteUnknownError()
176 assertTrue(receiver.getException() instanceof OnDevicePersonalizationException); in testExecuteServiceError()
193 assertTrue(receiver.getException() instanceof OnDevicePersonalizationException); in testExecuteErrorWithCode()
196 ((OnDevicePersonalizationException) receiver.getException()).getErrorCode()); in testExecuteErrorWithCode()
197 assertTrue(receiver.getException().getCause() instanceof IsolatedServiceException); in testExecuteErrorWithCode()
200 ((IsolatedServiceException) receiver.getException().getCause()).getErrorCode()); in testExecuteErrorWithCode()
216 assertTrue(receiver.getException() instanceof OnDevicePersonalizationException); in testExecuteErrorWithMessage()
219 ((OnDevicePersonalizationException) receiver.getException()).getErrorCode()); in testExecuteErrorWithMessage()
220 Throwable cause = receiver.getException().getCause(); in testExecuteErrorWithMessage()
240 Throwable cause = receiver.getException().getCause(); in testExecuteManifestParsingError()
[all …]
DFederatedComputeSchedulerTest.java116 assertTrue(receiver.getException() instanceof OnDevicePersonalizationException); in testSchedule_withOutcomeReceiver_error()
119 ((OnDevicePersonalizationException) receiver.getException()).getErrorCode()); in testSchedule_withOutcomeReceiver_error()
137 assertTrue(receiver.getException() instanceof OnDevicePersonalizationException); in testSchedule_withOutcomeReceiver_manifestError()
140 ((OnDevicePersonalizationException) receiver.getException()).getErrorCode()); in testSchedule_withOutcomeReceiver_manifestError()
DModelManagerTest.java110 (OnDevicePersonalizationException) callback.getException(); in runInference_error()
141 (OnDevicePersonalizationException) callback.getException(); in runInference_resultMissingInferenceOutput()
DOnDevicePersonalizationQueryFeatureAvailabilityManagerTest.java94 assertTrue(receiver.getException() instanceof IllegalStateException); in queryFeatureAvailabilityException()
DOnDevicePersonalizationSystemEventManagerTest.java130 assertTrue(receiver.getException() instanceof IllegalStateException); in testnotifyMeasurementEventCatchesExceptions()
/packages/modules/DeviceLock/framework/java/android/devicelock/
DDeviceLockManager.java115 callback.onError(parcelableException.getException()); in lockDevice()
145 callback.onError(parcelableException.getException()); in unlockDevice()
176 callback.onError(parcelableException.getException())); in isDeviceLocked()
234 callback.onError(parcelableException.getException()); in clearDeviceRestrictions()
273 callback.onError(parcelableException.getException()); in getDeviceId()
308 callback.onError(parcelableException.getException()); in getKioskApps()
DParcelableException.java80 public Exception getException() { in getException() method in ParcelableException
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanError.java156 public Exception getException() { in getException() method in IwlanError
211 if (mException != null && error.getException() != null) { in equals()
212 ret = mException.getClass().equals(error.getException().getClass()); in equals()
216 == ((IkeProtocolException) error.getException()) in equals()
219 } else if (mException == null && error.getException() == null) { in equals()
DErrorPolicyManager.java297 getDataFailCauseForIkeProtocolException(error.getException()); in getDataFailCause()
929 IkeProtocolException exception = (IkeProtocolException) iwlanError.getException();
1086 iwlanError.getException())
/packages/modules/DeviceLock/tests/unittests/src/com/android/server/devicelock/
DParcelableExceptionTest.java40 Exception cause = parcelableException.getException(); in parcelableExceptionShouldReturnOriginalException()
57 assertThat(inParcelable.getException().getMessage()) in parcelableExceptionShouldParcelAndUnparcel()
58 .isEqualTo(outParcelable.getException().getMessage()); in parcelableExceptionShouldParcelAndUnparcel()
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DOdpSystemEventManagerTests.java68 assertNotNull(receiver.getException()); in testNotifyMeasurementEventPermissionDenied()
69 assertTrue(receiver.getException().getClass().getSimpleName(), in testNotifyMeasurementEventPermissionDenied()
70 receiver.getException() instanceof SecurityException); in testNotifyMeasurementEventPermissionDenied()
DCtsOdpManagerTests.java242 assertThat(receiver.getException()).isInstanceOf(IllegalStateException.class); in testExecuteReturnsIllegalStateIfServiceNotEnrolled()
259 assertThat(receiver.getException()).isInstanceOf(NameNotFoundException.class); in testExecuteReturnsNameNotFoundIfServiceNotInstalled()
277 assertThat(receiver.getException()).isInstanceOf(ClassNotFoundException.class); in testExecuteReturnsClassNotFoundIfServiceClassNotFound()
467 assertThat(receiver.getException()).isInstanceOf(OnDevicePersonalizationException.class); in testExecuteReturnsErrorIfServiceThrows()
469 ((OnDevicePersonalizationException) receiver.getException()).getErrorCode(), in testExecuteReturnsErrorIfServiceThrows()
490 assertThat(receiver.getException()).isInstanceOf(OnDevicePersonalizationException.class); in testExecuteReturnsErrorIfServiceReturnsError()
492 ((OnDevicePersonalizationException) receiver.getException()).getErrorCode(), in testExecuteReturnsErrorIfServiceReturnsError()
768 assertTrue(receiver.getException() instanceof IllegalStateException); in testExecuteInIsolatedServiceReturnsIllegalStateIfServiceNotEnrolled()
788 assertThat(receiver.getException()).isInstanceOf(OnDevicePersonalizationException.class); in testExecuteInIsolatedServiceReturnsNameNotFoundIfServiceNotInstalled()
790 (OnDevicePersonalizationException) receiver.getException(); in testExecuteInIsolatedServiceReturnsNameNotFoundIfServiceNotInstalled()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java202 (AuthenticationRequiredException) event.getException(); in updateToAuthenticationExceptionHeader()
273 CrossProfileException e = (CrossProfileException) event.getException(); in update()
277 ((CrossProfileQuietModeException) event.getException()).mUserId); in update()
278 } else if (event.getException() instanceof CrossProfileNoPermissionException) { in update()
DModelBackedDocumentsAdapter.java78 onModelUpdateFailed(event.getException()); in ModelBackedDocumentsAdapter()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java360 assertThat(listener.getLastValue().getException()) in testLoadCrossProfileDoc_failsWithQuietModeException()
381 assertThat(listener.getLastValue().getException()) in testLoadCrossProfileDoc_failsWithNoPermissionException()
405 assertThat(listener.getLastValue().getException()) in testLoadCrossProfileDoc_bothError_showNoPermissionException()
440 assertThat(listener.getLastValue().getException()) in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DTestLooper.java406 public RuntimeException getException() { in getException() method in TestLooper.AutoDispatchThread
433 RuntimeException e = mAutoDispatchThread.getException(); in stopAutoDispatch()
/packages/modules/OnDevicePersonalization/tests/testutils/src/com/android/ondevicepersonalization/testing/utils/
DResultReceiver.java77 public Exception getException() throws InterruptedException { in getException() method in ResultReceiver
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DLogUtils.java87 .writeInt(getResultType(logFields.getException())) in log()
DLogFields.java73 public Exception getException() { in getException() method in LogFields
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/
DTokenViewModel.java77 tokenResult.postValue(new TokenResult(task.getException().getMessage())); in requestAccessToken()
/packages/apps/Settings/src/com/android/settings/network/
DSwitchSlotSidecar.java103 public Exception getException() { in getException() method in SwitchSlotSidecar
/packages/services/Iwlan/src/com/google/android/iwlan/proto/
DMetricsAtom.java151 Throwable iwlanErrorWrapped = iwlanError.getException(); in setIwlanErrorWrappedClassnameAndStack()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContact.java248 public Exception getException() { in getException() method in Contact
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java306 public @Nullable Exception getException() { in getException() method in Model.Update
/packages/apps/Contacts/src/com/android/contacts/model/
DContact.java282 public Exception getException() { in getException() method in Contact

12