/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
H A D | HalException.java | 34 public final int errorCode; field in HalException 36 public HalException(int errorCode, @NonNull String message) { in HalException() argument 38 this.errorCode = errorCode; in HalException() 41 public HalException(int errorCode) { in HalException() argument 42 this.errorCode = errorCode; in HalException() 47 return super.toString() + " (code " + errorCode + ")"; in toString()
|
H A D | RecoverableException.java | 38 public final int errorCode; field in RecoverableException 40 public RecoverableException(int errorCode, @NonNull String message) { in RecoverableException() argument 42 this.errorCode = errorCode; in RecoverableException() 45 public RecoverableException(int errorCode) { in RecoverableException() argument 46 this.errorCode = errorCode; in RecoverableException() 51 return super.toString() + " (code " + errorCode + ")"; in toString()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | ServiceSpecificException.java | 37 public final int errorCode; field in ServiceSpecificException 39 public ServiceSpecificException(int errorCode, @Nullable String message) { in ServiceSpecificException() argument 41 this.errorCode = errorCode; in ServiceSpecificException() 44 public ServiceSpecificException(int errorCode) { in ServiceSpecificException() argument 45 this.errorCode = errorCode; in ServiceSpecificException() 51 return super.toString() + " (code " + errorCode + ")"; in toString()
|
/aosp14/frameworks/base/core/java/android/service/voice/ |
H A D | SoundTriggerFailure.java | 84 public SoundTriggerFailure(@SoundTriggerErrorCode int errorCode, @NonNull String errorMessage) { in SoundTriggerFailure() argument 85 this(errorCode, errorMessage, getSuggestedActionBasedOnErrorCode(errorCode)); in SoundTriggerFailure() 91 public SoundTriggerFailure(@SoundTriggerErrorCode int errorCode, @NonNull String errorMessage, in SoundTriggerFailure() argument 96 switch (errorCode) { in SoundTriggerFailure() 101 mErrorCode = errorCode; in SoundTriggerFailure() 104 throw new IllegalArgumentException("Invalid ErrorCode: " + errorCode); in SoundTriggerFailure() 106 if (suggestedAction != getSuggestedActionBasedOnErrorCode(errorCode) in SoundTriggerFailure() 107 && errorCode != ERROR_CODE_UNKNOWN) { in SoundTriggerFailure() 109 + "errorCode=" + errorCode + ", suggestedAction=" + suggestedAction); in SoundTriggerFailure() 139 private static int getSuggestedActionBasedOnErrorCode(@SoundTriggerErrorCode int errorCode) { in getSuggestedActionBasedOnErrorCode() argument [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/ |
H A D | ParseInputAndResultTest.kt | 79 fun errorCode() { regex 80 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE regex 81 val result = input.error<Any?>(errorCode) 83 assertThat(result.errorCode).isEqualTo(errorCode) 100 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE regex 102 val result = input.error<Any?>(errorCode, errorMessage) 104 assertThat(result.errorCode).isEqualTo(errorCode) 111 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE regex 116 assertThat(result.errorCode).isEqualTo(errorCode) 128 assertThat(result.errorCode).isEqualTo(errorCode) [all …]
|
/aosp14/frameworks/base/keystore/java/android/security/ |
H A D | KeyStore2.java | 112 throw getKeyStoreException(e.errorCode, e.getMessage()); in handleRemoteExceptionWithRetry() 343 if (errorCode > 0) { in getKeyStoreException() 345 switch (errorCode) { in getKeyStoreException() 355 return new KeyStoreException(errorCode, "Permission denied", in getKeyStoreException() 360 return new KeyStoreException(errorCode, "Key blob corrupted", in getKeyStoreException() 369 return new KeyStoreException(errorCode, serviceErrorMessage, in getKeyStoreException() 372 return new KeyStoreException(errorCode, String.valueOf(errorCode), in getKeyStoreException() 377 switch (errorCode) { in getKeyStoreException() 381 return new KeyStoreException(errorCode, in getKeyStoreException() 385 return new KeyStoreException(errorCode, in getKeyStoreException() [all …]
|
H A D | KeyStoreException.java | 268 if (errorCode == ResponseCode.OUT_OF_KEYS) { in initializeRkpStatusForRegularErrors() 280 public KeyStoreException(int errorCode, @Nullable String message) { in KeyStoreException() argument 282 mErrorCode = errorCode; in KeyStoreException() 283 mRkpStatus = initializeRkpStatusForRegularErrors(errorCode); in KeyStoreException() 289 public KeyStoreException(int errorCode, @Nullable String message, in KeyStoreException() argument 293 mErrorCode = errorCode; in KeyStoreException() 294 mRkpStatus = initializeRkpStatusForRegularErrors(errorCode); in KeyStoreException() 302 mErrorCode = errorCode; in KeyStoreException() 327 return failureInfo.errorCode; in getNumericErrorCode() 440 public final int errorCode; field in KeyStoreException.PublicErrorInformation [all …]
|
H A D | AndroidKeyStoreMaintenance.java | 59 return e.errorCode; in onUserAdded() 79 return e.errorCode; in onUserRemoved() 101 return e.errorCode; in onUserPasswordChanged() 118 return e.errorCode; in clearNamespace() 136 return e.errorCode; in getState() 180 return e.errorCode; in migrateKeyNamespace()
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PasswordValidationError.java | 40 public final int errorCode; field in PasswordValidationError 43 public PasswordValidationError(int errorCode) { in PasswordValidationError() argument 44 this(errorCode, 0); in PasswordValidationError() 47 public PasswordValidationError(int errorCode, int requirement) { in PasswordValidationError() argument 48 this.errorCode = errorCode; in PasswordValidationError() 54 return errorCodeToString(errorCode) + (requirement > 0 ? "; required: " + requirement : ""); in toString()
|
/aosp14/frameworks/base/core/java/android/net/metrics/ |
H A D | DhcpErrorEvent.java | 49 public final int errorCode; field in DhcpErrorEvent 78 public DhcpErrorEvent(int errorCode) { in DhcpErrorEvent() argument 79 this.errorCode = errorCode; in DhcpErrorEvent() 83 this.errorCode = in.readInt(); in DhcpErrorEvent() 89 out.writeInt(errorCode); in writeToParcel() 110 public static int errorCodeWithOption(int errorCode, int option) { in errorCodeWithOption() argument 111 return (0xFFFF0000 & errorCode) | (0xFF & option); in errorCodeWithOption() 117 return String.format("DhcpErrorEvent(%s)", Decoder.constants.get(errorCode)); in toString()
|
/aosp14/frameworks/base/identity/java/android/security/identity/ |
H A D | CredstoreIdentityCredentialStore.java | 72 if (e.errorCode == ICredentialStore.ERROR_GENERIC) { in getInstanceForType() 76 + e.errorCode, e); in getInstanceForType() 116 + e.errorCode, e); in getSupportedDocTypes() 130 if (e.errorCode == ICredentialStore.ERROR_ALREADY_PERSONALIZED) { in createCredential() 136 + e.errorCode, e); in createCredential() 152 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in getCredentialByName() 158 + e.errorCode, e); in getCredentialByName() 171 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in deleteCredentialByName() 181 + e.errorCode, e); in deleteCredentialByName() 195 if (e.errorCode == ICredentialStore.ERROR_CIPHER_SUITE_NOT_SUPPORTED) { in createPresentationSession() [all …]
|
H A D | CredstoreIdentityCredential.java | 114 + e.errorCode, e); in ensureEphemeralKeyPair() 141 + e.errorCode, e); in setReaderEphemeralPublicKey() 243 + e.errorCode, e); in getCredentialKeyCertificateChain() 291 + e.errorCode, e); in getCredstoreOperationHandle() 349 + e.errorCode, e); in getEntries() 395 + e.errorCode, e); in setAvailableAuthenticationKeys() 422 + e.errorCode, e); in getAuthKeysNeedingCertification() 485 + e.errorCode, e); in getAuthenticationDataUsageCount() 513 + e.errorCode, e); in getAuthenticationKeyMetadata() 543 + e.errorCode, e); in delete() [all …]
|
H A D | CredstorePresentationSession.java | 93 + e.errorCode, e); in ensureEphemeralKeyPair() 121 + e.errorCode, e); in setReaderEphemeralPublicKey() 134 + e.errorCode, e); in setSessionTranscript() 182 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in getCredentialData() 186 + e.errorCode, e); in getCredentialData() 206 if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getCredstoreOperationHandle() 211 + e.errorCode, e); in getCredstoreOperationHandle()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraInjectionSessionImpl.java | 155 public void onInjectionError(final int errorCode) { in onInjectionError() argument 157 "Injection session error received, code %d", errorCode)); in onInjectionError() 164 switch (errorCode) { in onInjectionError() 179 Log.e(TAG, "Unknown error from injection session: " + errorCode); in onInjectionError() 186 private void scheduleNotifyError(final int errorCode) { in scheduleNotifyError() argument 191 this, errorCode).recycleOnUse()); in scheduleNotifyError() 197 private void notifyError(final int errorCode) { in notifyError() argument 199 mInjectionStatusCallback.onInjectionError(errorCode); in notifyError() 215 public void onInjectionError(int errorCode) { in onInjectionError() argument 216 CameraInjectionSessionImpl.this.onInjectionError(errorCode); in onInjectionError()
|
/aosp14/frameworks/base/core/java/android/nfc/tech/ |
H A D | NdefFormatable.java | 130 int errorCode = tagService.formatNdef(serviceHandle, MifareClassic.KEY_DEFAULT); in format() local 131 switch (errorCode) { in format() 149 errorCode = tagService.ndefWrite(serviceHandle, firstMessage); in format() 150 switch (errorCode) { in format() 165 errorCode = tagService.ndefMakeReadOnly(serviceHandle); in format() 166 switch (errorCode) { in format()
|
H A D | BasicTagTechnology.java | 73 int errorCode = mTag.getTagService().connect(mTag.getServiceHandle(), in connect() local 76 if (errorCode == ErrorCodes.SUCCESS) { in connect() 83 } else if (errorCode == ErrorCodes.ERROR_NOT_SUPPORTED) { in connect() 104 int errorCode = mTag.getTagService().reconnect(mTag.getServiceHandle()); in reconnect() local 106 if (errorCode != ErrorCodes.SUCCESS) { in reconnect()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserJourneyLogger.java | 258 switch (errorCode) { in errorToFinishState() 275 int userType, int userFlags, @UserJourneyErrorCode int errorCode) { in logUserLifecycleJourneyReported() argument 283 errorCode, elapsedTime); in logUserLifecycleJourneyReported() 295 errorCode, elapsedTime); in writeUserLifecycleJourneyReported() 312 errorCode); in logUserLifecycleEventOccurred() 321 int errorCode) { in writeUserLifecycleEventOccurred() argument 323 sessionId, userId, event, state, errorCode); in writeUserLifecycleEventOccurred() 434 final int state = errorToFinishState(errorCode); in logUserJourneyFinishWithError() 442 errorCode); in logUserJourneyFinishWithError() 449 errorCode); in logUserJourneyFinishWithError() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | AcquisitionClient.java | 85 public void onError(int errorCode, int vendorCode) { in onError() argument 87 onErrorInternal(errorCode, vendorCode, true /* finish */); in onError() 104 protected void onErrorInternal(int errorCode, int vendorCode, boolean finish) { in onErrorInternal() argument 105 Slog.d(TAG, "onErrorInternal code: " + errorCode + ", finish: " + finish); in onErrorInternal() 113 errorCode, vendorCode, getTargetUserId()); in onErrorInternal() local 117 getListener().onError(getSensorId(), getCookie(), errorCode, vendorCode); in onErrorInternal() local 148 final int errorCode = BiometricConstants.BIOMETRIC_ERROR_CANCELED; in cancelWithoutStarting() local 151 getListener().onError(getSensorId(), getCookie(), errorCode, 0 /* vendorCode */); in cancelWithoutStarting() local
|
/aosp14/frameworks/base/core/java/android/webkit/ |
H A D | LegacyErrorStrings.java | 36 static String getString(int errorCode, Context context) { in getString() argument 37 return context.getText(getResource(errorCode)).toString(); in getString() 44 private static int getResource(int errorCode) { in getResource() argument 45 switch(errorCode) { in getResource() 95 Log.w(LOGTAG, "Using generic message for unknown error code: " + errorCode); in getResource()
|
/aosp14/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
H A D | MDNSFilteredDiscovery.java | 143 public void onStartDiscoveryFailed(String serviceType, int errorCode) { in onStartDiscoveryFailed() argument 145 + errorCode); in onStartDiscoveryFailed() 149 public void onStopDiscoveryFailed(String serviceType, int errorCode) { in onStopDiscoveryFailed() argument 151 + errorCode); in onStopDiscoveryFailed() 169 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onServiceFound() argument 171 errorCode); in onServiceFound()
|
/aosp14/frameworks/base/telephony/java/android/telephony/ims/ |
H A D | ImsMmTelManager.java | 333 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in registerImsRegistrationCallback() 337 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback() 377 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback() 591 throw new ImsException(e.getMessage(), e.errorCode); in registerMmTelCapabilityCallback() 687 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isAdvancedCallingSettingEnabled() 733 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setAdvancedCallingSettingEnabled() 852 throw new ImsException(sse.getMessage(), sse.errorCode); in isSupported() 1057 throw new ImsException(sse.getMessage(), sse.errorCode); in isCrossSimCallingEnabled() 1102 throw new ImsException(sse.getMessage(), sse.errorCode); in setCrossSimCallingEnabled() 1497 throw new ImsException(sse.getMessage(), sse.errorCode); in getFeatureState() [all …]
|
H A D | RcsUceAdapter.java | 502 default void onError(@ErrorCode int errorCode, long retryIntervalMillis) {} in onError() argument 536 default void onError(@ErrorCode int errorCode, long retryIntervalMillis, in onError() argument 538 onError(errorCode, retryIntervalMillis); in onError() 633 public void onError(int errorCode, long retryAfterMilliseconds, in requestCapabilities() 637 executor.execute(() -> c.onError(errorCode, retryAfterMilliseconds, details)); in requestCapabilities() 648 throw new ImsException(e.toString(), e.errorCode); in requestCapabilities() 730 public void onError(int errorCode, long retryAfterMilliseconds, in requestAvailability() 745 throw new ImsException(e.toString(), e.errorCode); in requestAvailability() 777 throw new ImsException(e.getMessage(), e.errorCode); in getUcePublishState() 828 throw new ImsException(e.getMessage(), e.errorCode); in addOnPublishStateChangedListener() [all …]
|
/aosp14/frameworks/base/core/java/android/security/keystore/recovery/ |
H A D | RecoveryController.java | 352 if (e.errorCode == ERROR_BAD_CERTIFICATE_FORMAT in initRecoveryService() 353 || e.errorCode == ERROR_INVALID_CERTIFICATE) { in initRecoveryService() 356 if (e.errorCode == ERROR_DOWNGRADE_CERTIFICATE) { in initRecoveryService() 380 if (e.errorCode == ERROR_NO_SNAPSHOT_PENDING) { in getKeyChainSnapshot() 566 if (e.errorCode == ERROR_INSECURE_USER) { in generateKey() 607 if (e.errorCode == ERROR_INSECURE_USER) { in generateKey() 640 if (e.errorCode == ERROR_INSECURE_USER) { in importKey() 683 if (e.errorCode == ERROR_INSECURE_USER) { in importKey() 713 if (e.errorCode == ERROR_KEY_NOT_FOUND) { in getKey() 782 if (e.errorCode == ERROR_SERVICE_INTERNAL_ERROR) { in wrapUnexpectedServiceSpecificException() [all …]
|
/aosp14/frameworks/base/telephony/java/android/telephony/mbms/vendor/ |
H A D | MbmsGroupCallServiceBase.java | 57 public void onError(final int errorCode, final String message) { 59 if (errorCode == MbmsErrors.UNKNOWN) { 63 callback.onError(errorCode, message); 137 public void onError(final int errorCode, final String message) { 139 if (errorCode == MbmsErrors.UNKNOWN) { 143 callback.onError(errorCode, message);
|
H A D | MbmsStreamingServiceBase.java | 76 public void onError(final int errorCode, final String message) { in initialize() 78 if (errorCode == MbmsErrors.UNKNOWN) { in initialize() 82 callback.onError(errorCode, message); in initialize() 176 public void onError(final int errorCode, final String message) { in startStreaming() 178 if (errorCode == MbmsErrors.UNKNOWN) { in startStreaming() 182 callback.onError(errorCode, message); in startStreaming()
|