/aosp14/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
H A D | TaskException.java | 37 static TaskException stateCompromised(Exception cause) { in stateCompromised() argument 38 if (cause instanceof TaskException) { in stateCompromised() 39 TaskException exception = (TaskException) cause; in stateCompromised() 40 return new TaskException(cause, /* stateCompromised */ true, exception.getStatus()); in stateCompromised() 42 return new TaskException(cause, /* stateCompromised */ true, DEFAULT_STATUS); in stateCompromised() 51 static TaskException causedBy(Exception cause) { in causedBy() argument 52 if (cause instanceof TaskException) { in causedBy() 53 return (TaskException) cause; in causedBy() 55 return new TaskException(cause, /* stateCompromised */ false, DEFAULT_STATUS); in causedBy() 65 private TaskException(Exception cause, boolean stateCompromised, int status) { in TaskException() argument [all …]
|
H A D | AgentException.java | 37 static AgentException transitory(Exception cause) { in transitory() argument 38 return new AgentException(/* transitory */ true, cause); in transitory() 45 static AgentException permanent(Exception cause) { in permanent() argument 46 return new AgentException(/* transitory */ false, cause); in permanent() 55 private AgentException(boolean transitory, Exception cause) { in AgentException() argument 56 super(cause); in AgentException()
|
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
H A D | TaskExceptionTest.java | 47 TaskException exception = TaskException.stateCompromised(cause); in testStateCompromised_whenCauseInstanceOfTaskException() 51 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseInstanceOfTaskException() 56 Exception cause = new IOException(); in testStateCompromised_whenCauseNotInstanceOfTaskException() local 58 TaskException exception = TaskException.stateCompromised(cause); in testStateCompromised_whenCauseNotInstanceOfTaskException() 62 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseNotInstanceOfTaskException() 85 TaskException exception = TaskException.causedBy(cause); in testCausedBy_whenCauseInstanceOfTaskException_returnsCause() 87 assertThat(exception).isEqualTo(cause); in testCausedBy_whenCauseInstanceOfTaskException_returnsCause() 92 Exception cause = new IOException(); in testCausedBy_whenCauseNotInstanceOfTaskException() local 94 TaskException exception = TaskException.causedBy(cause); in testCausedBy_whenCauseNotInstanceOfTaskException() 96 assertThat(exception).isNotEqualTo(cause); in testCausedBy_whenCauseNotInstanceOfTaskException() [all …]
|
H A D | AgentExceptionTest.java | 41 Exception cause = new IOException(); in testTransitory_withCause() local 43 AgentException exception = AgentException.transitory(cause); in testTransitory_withCause() 46 assertThat(exception.getCause()).isEqualTo(cause); in testTransitory_withCause() 58 Exception cause = new IOException(); in testPermanent_withCause() local 60 AgentException exception = AgentException.permanent(cause); in testPermanent_withCause() 63 assertThat(exception.getCause()).isEqualTo(cause); in testPermanent_withCause()
|
/aosp14/frameworks/base/keystore/java/android/security/ |
H A D | KeyChainException.java | 51 public KeyChainException(String message, Throwable cause) { in KeyChainException() argument 52 super(message, cause); in KeyChainException() 62 public KeyChainException(Throwable cause) { in KeyChainException() argument 63 super((cause == null ? null : cause.toString()), cause); in KeyChainException()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | AndroidException.java | 30 public AndroidException(String name, Throwable cause) { in AndroidException() argument 31 super(name, cause); in AndroidException() 34 public AndroidException(Exception cause) { in AndroidException() argument 35 super(cause); in AndroidException() 39 protected AndroidException(String message, Throwable cause, boolean enableSuppression, in AndroidException() argument 41 super(message, cause, enableSuppression, writableStackTrace); in AndroidException()
|
H A D | AndroidRuntimeException.java | 30 public AndroidRuntimeException(String name, Throwable cause) { in AndroidRuntimeException() argument 31 super(name, cause); in AndroidRuntimeException() 34 public AndroidRuntimeException(Exception cause) { in AndroidRuntimeException() argument 35 super(cause); in AndroidRuntimeException()
|
/aosp14/frameworks/base/core/java/android/view/inspector/ |
H A D | StaticInspectionCompanionProvider.java | 51 Throwable cause = e.getCause(); in provide() 52 if (cause instanceof RuntimeException) throw (RuntimeException) cause; in provide() 53 if (cause instanceof Error) throw (Error) cause; in provide() 54 throw new RuntimeException(cause); in provide()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | RemoteException.java | 41 public RemoteException(String message, Throwable cause, boolean enableSuppression, in RemoteException() argument 43 super(message, cause, enableSuppression, writableStackTrace); in RemoteException() 47 public RemoteException(Throwable cause) { in RemoteException() argument 48 this(cause.getMessage(), cause, true, false); in RemoteException()
|
H A D | BadTypeParcelableException.java | 24 BadTypeParcelableException(Exception cause) { in BadTypeParcelableException() argument 25 super(cause); in BadTypeParcelableException() 27 BadTypeParcelableException(String msg, Throwable cause) { in BadTypeParcelableException() argument 28 super(msg, cause); in BadTypeParcelableException()
|
H A D | BadParcelableException.java | 32 public BadParcelableException(Exception cause) { in BadParcelableException() argument 33 super(cause); in BadParcelableException() 36 public BadParcelableException(String msg, Throwable cause) { in BadParcelableException() argument 37 super(msg, cause); in BadParcelableException()
|
/aosp14/frameworks/base/core/java/android/accounts/ |
H A D | AccountsException.java | 26 public AccountsException(String message, Throwable cause) { in AccountsException() argument 27 super(message, cause); in AccountsException() 29 public AccountsException(Throwable cause) { in AccountsException() argument 30 super(cause); in AccountsException()
|
H A D | AuthenticatorException.java | 26 public AuthenticatorException(String message, Throwable cause) { in AuthenticatorException() argument 27 super(message, cause); in AuthenticatorException() 29 public AuthenticatorException(Throwable cause) { in AuthenticatorException() argument 30 super(cause); in AuthenticatorException()
|
H A D | NetworkErrorException.java | 25 public NetworkErrorException(String message, Throwable cause) { in NetworkErrorException() argument 26 super(message, cause); in NetworkErrorException() 28 public NetworkErrorException(Throwable cause) { in NetworkErrorException() argument 29 super(cause); in NetworkErrorException()
|
H A D | OperationCanceledException.java | 25 public OperationCanceledException(String message, Throwable cause) { in OperationCanceledException() argument 26 super(message, cause); in OperationCanceledException() 28 public OperationCanceledException(Throwable cause) { in OperationCanceledException() argument 29 super(cause); in OperationCanceledException()
|
/aosp14/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/ |
H A D | TestException.java | 24 TestException(Exception cause) { in TestException() argument 25 super(cause); in TestException() 32 TestException(String msg, Exception cause) { in TestException() argument 33 super(msg, cause); in TestException()
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/ |
H A D | CertParsingException.java | 26 public CertParsingException(Exception cause) { in CertParsingException() argument 27 super(cause); in CertParsingException() 30 public CertParsingException(String message, Exception cause) { in CertParsingException() argument 31 super(message, cause); in CertParsingException()
|
H A D | CertValidationException.java | 26 public CertValidationException(Exception cause) { in CertValidationException() argument 27 super(cause); in CertValidationException() 30 public CertValidationException(String message, Exception cause) { in CertValidationException() argument 31 super(message, cause); in CertValidationException()
|
/aosp14/frameworks/base/core/java/android/os/strictmode/ |
H A D | Violation.java | 35 final Throwable cause = getCause(); in hashCode() local 38 hashCode = hashCode * 37 + (cause != null ? cause.toString().hashCode() : 0); in hashCode() 45 public synchronized Throwable initCause(Throwable cause) { in initCause() argument 47 return super.initCause(cause); in initCause()
|
/aosp14/frameworks/base/keystore/java/android/security/keystore/ |
H A D | SecureKeyImportUnavailableException.java | 38 public SecureKeyImportUnavailableException(String message, Throwable cause) { in SecureKeyImportUnavailableException() argument 39 super(message, cause); in SecureKeyImportUnavailableException() 42 public SecureKeyImportUnavailableException(Throwable cause) { in SecureKeyImportUnavailableException() argument 43 super(cause); in SecureKeyImportUnavailableException()
|
H A D | StrongBoxUnavailableException.java | 41 public StrongBoxUnavailableException(String message, Throwable cause) { in StrongBoxUnavailableException() argument 42 super(message, cause); in StrongBoxUnavailableException() 45 public StrongBoxUnavailableException(Throwable cause) { in StrongBoxUnavailableException() argument 46 super(cause); in StrongBoxUnavailableException()
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | OperationApplicationException.java | 34 public OperationApplicationException(String message, Throwable cause) { in OperationApplicationException() argument 35 super(message, cause); in OperationApplicationException() 38 public OperationApplicationException(Throwable cause) { in OperationApplicationException() argument 39 super(cause); in OperationApplicationException()
|
/aosp14/frameworks/base/telephony/common/com/google/android/mms/ |
H A D | MmsException.java | 53 public MmsException(Throwable cause) { in MmsException() argument 54 super(cause); in MmsException() 64 public MmsException(String message, Throwable cause) { in MmsException() argument 65 super(message, cause); in MmsException()
|
/aosp14/frameworks/base/core/java/android/credentials/ |
H A D | ListEnabledProvidersException.java | 57 @NonNull String type, @Nullable String message, @Nullable Throwable cause) { in ListEnabledProvidersException() argument 58 super(message, cause); in ListEnabledProvidersException() 68 public ListEnabledProvidersException(@NonNull String type, @Nullable Throwable cause) { in ListEnabledProvidersException() argument 69 this(type, null, cause); in ListEnabledProvidersException()
|
H A D | SetEnabledProvidersException.java | 57 @NonNull String type, @Nullable String message, @Nullable Throwable cause) { in SetEnabledProvidersException() argument 58 super(message, cause); in SetEnabledProvidersException() 68 public SetEnabledProvidersException(@NonNull String type, @Nullable Throwable cause) { in SetEnabledProvidersException() argument 69 this(type, null, cause); in SetEnabledProvidersException()
|