Home
last modified time | relevance | path

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

12345678910>>...12

/packages/services/Telephony/src/com/android/services/telephony/rcs/
DUceControllerManager.java176 Throwable cause = e.getCause(); in requestCapabilities()
177 if (cause instanceof ImsException) { in requestCapabilities()
178 throw (ImsException) cause; in requestCapabilities()
201 Throwable cause = e.getCause(); in requestNetworkAvailability()
202 if (cause instanceof ImsException) { in requestNetworkAvailability()
203 throw (ImsException) cause; in requestNetworkAvailability()
224 Throwable cause = e.getCause(); in getUcePublishState()
225 if (cause instanceof ImsException) { in getUcePublishState()
226 throw (ImsException) cause; in getUcePublishState()
246 Throwable cause = e.getCause(); in addUceRegistrationOverride()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/exception/
DFilterException.java29 public FilterException(String message, Throwable cause) { in FilterException() argument
30 super(message, cause); in FilterException()
33 public FilterException(Throwable cause) { in FilterException() argument
34 super(cause); in FilterException()
44 Throwable cause = t instanceof FilterException ? t.getCause() : t; in getResultCode() local
46 if (cause instanceof ConsentManager.RevokedConsentException) { in getResultCode()
48 } else if (cause instanceof AppImportanceFilter.WrongCallingApplicationStateException) { in getResultCode()
50 } else if (cause instanceof FledgeAuthorizationFilter.AdTechNotAllowedException in getResultCode()
51 || cause instanceof FledgeAllowListsFilter.AppNotAllowedException) { in getResultCode()
53 } else if (cause instanceof FledgeAuthorizationFilter.CallerMismatchException) { in getResultCode()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DJavaMockitoHelperTest.java111 TimeoutException cause = new TimeoutException("D'OH!"); in testGetResult_timeoutException() local
112 when(mFuture.get(anyLong(), any())).thenThrow(cause); in testGetResult_timeoutException()
117 assertThat(exception).hasCauseThat().isSameInstanceAs(cause); in testGetResult_timeoutException()
124 ExecutionException cause = new ExecutionException(new Exception("Double D'OH!")); in testGetResult_executionException() local
125 when(mFuture.get(anyLong(), any())).thenThrow(cause); in testGetResult_executionException()
130 assertThat(exception).hasCauseThat().isSameInstanceAs(cause); in testGetResult_executionException()
136 InterruptedException cause = new InterruptedException("D'OH!"); in testGetResult_interruptedException() local
137 when(mFuture.get(anyLong(), any())).thenThrow(cause); in testGetResult_interruptedException()
143 assertThat(exception).hasCauseThat().isSameInstanceAs(cause); in testGetResult_interruptedException()
172 TimeoutException cause = new TimeoutException("D'OH!"); in testGetResult_withCustomTimeout_timeoutException() local
[all …]
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DLoadSdkException.java38 public LoadSdkException(@NonNull Throwable cause, @NonNull Bundle extraInfo) { in LoadSdkException() argument
39 this(SdkSandboxManager.LOAD_SDK_SDK_DEFINED_ERROR, cause.getMessage(), cause, extraInfo); in LoadSdkException()
69 @Nullable Throwable cause) { in LoadSdkException() argument
70 this(loadSdkErrorCode, message, cause, new Bundle()); in LoadSdkException()
89 @Nullable Throwable cause, in LoadSdkException() argument
91 super(message, cause); in LoadSdkException()
/packages/apps/Dialer/java/com/android/incallui/disconnectdialog/
DDisconnectMessage.java39 private final DisconnectCause cause; field in DisconnectMessage
42 cause = call.getDisconnectCause(); in DisconnectMessage()
45 if (disconnectDialog.shouldShow(cause)) { in DisconnectMessage()
61 cause.getCode(), in toString()
62 cause.getDescription(), in toString()
63 cause.getReason(), in toString()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/android/car/ui/plugin/
DPluginVersionProviderImpl.java110 Throwable cause; in getAssignedPackageIdentifiers() local
120 cause = e; in getAssignedPackageIdentifiers()
122 cause = e.getCause(); in getAssignedPackageIdentifiers()
126 cause); in getAssignedPackageIdentifiers()
139 Throwable cause; in rewriteRValues() local
155 cause = e; in rewriteRValues()
157 cause = e.getCause(); in rewriteRValues()
161 cause); in rewriteRValues()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeExceptionTest.java50 final Throwable cause = new Throwable(ERROR_MSG); in testIkeInternalException() local
52 final IkeInternalException exception = new IkeInternalException(cause); in testIkeInternalException()
53 final IkeInternalException exceptionWithMsg = new IkeInternalException(ERROR_MSG, cause); in testIkeInternalException()
55 assertEquals(cause, exception.getCause()); in testIkeInternalException()
56 assertEquals(cause, exceptionWithMsg.getCause()); in testIkeInternalException()
78 final UnknownHostException cause = new UnknownHostException(ERROR_MSG); in testIkeIOException() local
79 final IkeIOException exception = new IkeIOException(cause); in testIkeIOException()
80 assertEquals(cause, exception.getCause()); in testIkeIOException()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/content/pm/
DCarPackageManagerUnitTest.java88 RemoteException cause = new RemoteException("D'OH!"); in testGetTargetCarVersion_self_remoteException() local
89 when(mService.getSelfTargetCarVersion("the.meaning.of.life")).thenThrow(cause); in testGetTargetCarVersion_self_remoteException()
93 assertThat(e.getCause()).isSameInstanceAs(cause); in testGetTargetCarVersion_self_remoteException()
106 RemoteException cause = new RemoteException("D'OH!"); in testGetTargetCarVersion_runtimeException() local
107 when(mService.getTargetCarVersion("the.meaning.of.life")).thenThrow(cause); in testGetTargetCarVersion_runtimeException()
112 assertThat(e.getCause()).isSameInstanceAs(cause); in testGetTargetCarVersion_runtimeException()
117 ServiceSpecificException cause = new ServiceSpecificException(666, "D'OH!"); in testGetTargetCarVersion_serviceException_unexpectedErrorCode() local
118 when(mService.getTargetCarVersion("the.meaning.of.life")).thenThrow(cause); in testGetTargetCarVersion_serviceException_unexpectedErrorCode()
123 assertThat(e.getCause()).isSameInstanceAs(cause); in testGetTargetCarVersion_serviceException_unexpectedErrorCode()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/
DGrantTimeIntegrationTest.java198 final Throwable cause = e.getCause(); in grantHealthPermission()
199 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in grantHealthPermission()
211 final Throwable cause = e.getCause(); in getHealthDataHistoricalAccessStartDate()
212 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in getHealthDataHistoricalAccessStartDate()
226 final Throwable cause = e.getCause(); in revokePermissionWithDelay()
227 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in revokePermissionWithDelay()
DHealthConnectWithManagePermissionsTest.java686 final Throwable cause = e.getCause(); in grantHealthPermission()
687 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in grantHealthPermission()
702 final Throwable cause = e.getCause(); in revokeHealthPermission()
703 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in revokeHealthPermission()
717 final Throwable cause = e.getCause(); in revokeAllHealthPermissions()
718 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in revokeAllHealthPermissions()
732 final Throwable cause = e.getCause(); in getGrantedHealthPermissions()
733 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in getGrantedHealthPermissions()
746 final Throwable cause = e.getCause(); in getHealthPermissionsFlags()
747 throw cause instanceof RuntimeException ? (RuntimeException) cause : e; in getHealthPermissionsFlags()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkException.java32 public MmsNetworkException(Throwable cause) { in MmsNetworkException() argument
33 super(cause); in MmsNetworkException()
36 public MmsNetworkException(String message, Throwable cause) { in MmsNetworkException() argument
37 super(message, cause); in MmsNetworkException()
DApnException.java32 public ApnException(Throwable cause) { in ApnException() argument
33 super(cause); in ApnException()
36 public ApnException(String message, Throwable cause) { in ApnException() argument
37 super(message, cause); in ApnException()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraAccessException.java26 public OneCameraAccessException(String message, Throwable cause) { in OneCameraAccessException() argument
27 super(message, cause); in OneCameraAccessException()
30 public OneCameraAccessException(Throwable cause) { in OneCameraAccessException() argument
31 super(cause); in OneCameraAccessException()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/
DCobaltInitializationException.java32 CobaltInitializationException(String message, Throwable cause) { in CobaltInitializationException() argument
33 super(message, cause); in CobaltInitializationException()
36 CobaltInitializationException(Throwable cause) { in CobaltInitializationException() argument
37 super(cause); in CobaltInitializationException()
/packages/apps/Settings/src/com/android/settings/network/
DUiccSlotsException.java28 public UiccSlotsException(String message, Throwable cause) { in UiccSlotsException() argument
29 super(message, cause); in UiccSlotsException()
32 public UiccSlotsException(Throwable cause) { in UiccSlotsException() argument
33 super(cause); in UiccSlotsException()
/packages/services/Iwlan/src/com/google/android/iwlan/exceptions/
DIwlanException.java29 protected IwlanException(Throwable cause) { in IwlanException() argument
30 super(cause); in IwlanException()
33 protected IwlanException(String message, Throwable cause) { in IwlanException() argument
34 super(message, cause); in IwlanException()
DIwlanSimNotReadyException.java29 public IwlanSimNotReadyException(Throwable cause) { in IwlanSimNotReadyException() argument
30 super(cause); in IwlanSimNotReadyException()
33 public IwlanSimNotReadyException(String message, Throwable cause) { in IwlanSimNotReadyException() argument
34 super(message, cause); in IwlanSimNotReadyException()
/packages/apps/Messaging/src/com/android/messaging/mmslib/
DMmsException.java47 public MmsException(Throwable cause) { in MmsException() argument
48 super(cause); in MmsException()
57 public MmsException(String message, Throwable cause) { in MmsException() argument
58 super(message, cause); in MmsException()
/packages/services/Mms/src/com/android/mms/service/exception/
DApnException.java32 public ApnException(Throwable cause) { in ApnException() argument
33 super(cause); in ApnException()
36 public ApnException(String message, Throwable cause) { in ApnException() argument
37 super(message, cause); in ApnException()
DMmsNetworkException.java32 public MmsNetworkException(Throwable cause) { in MmsNetworkException() argument
33 super(cause); in MmsNetworkException()
36 public MmsNetworkException(String message, Throwable cause) { in MmsNetworkException() argument
37 super(message, cause); in MmsNetworkException()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DMmsException.java47 public MmsException(Throwable cause) { in MmsException() argument
48 super(cause); in MmsException()
57 public MmsException(String message, Throwable cause) { in MmsException() argument
58 super(message, cause); in MmsException()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeNonProtocolException.java34 protected IkeNonProtocolException(Throwable cause) { in IkeNonProtocolException() argument
35 super(cause); in IkeNonProtocolException()
39 protected IkeNonProtocolException(String message, Throwable cause) { in IkeNonProtocolException() argument
40 super(message, cause); in IkeNonProtocolException()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/provisioning/
DProvisioningException.java25 ProvisioningException(Throwable cause) { in ProvisioningException() argument
26 super(cause); in ProvisioningException()
29 ProvisioningException(String message, Throwable cause) { in ProvisioningException() argument
30 super(message, cause); in ProvisioningException()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsException.java46 public SmsException(Throwable cause) { in SmsException() argument
47 super(cause); in SmsException()
56 public SmsException(String message, Throwable cause) { in SmsException() argument
57 super(message, cause); in SmsException()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DCameraCaptureSessionClosedException.java32 public CameraCaptureSessionClosedException(String message, Throwable cause) { in CameraCaptureSessionClosedException() argument
33 super(message, cause); in CameraCaptureSessionClosedException()
36 public CameraCaptureSessionClosedException(Throwable cause) { in CameraCaptureSessionClosedException() argument
37 super(cause); in CameraCaptureSessionClosedException()

12345678910>>...12