Home
last modified time | relevance | path

Searched refs:errorCode (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DHalException.java34 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()
DRecoverableException.java38 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()
/frameworks/base/core/java/android/os/
DServiceSpecificException.java37 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()
/frameworks/base/core/java/android/service/voice/
DSoundTriggerFailure.java84 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 …]
/frameworks/base/keystore/java/android/security/
DKeyStore2.java112 throw getKeyStoreException(e.errorCode, e.getMessage()); in handleRemoteExceptionWithRetry()
342 static KeyStoreException getKeyStoreException(int errorCode, String serviceErrorMessage) { in getKeyStoreException() argument
343 if (errorCode > 0) { in getKeyStoreException()
345 switch (errorCode) { in getKeyStoreException()
347 return new KeyStoreException(errorCode, "User authentication required", in getKeyStoreException()
350 return new KeyStoreException(errorCode, "Keystore not initialized", in getKeyStoreException()
353 return new KeyStoreException(errorCode, "System error", serviceErrorMessage); in getKeyStoreException()
355 return new KeyStoreException(errorCode, "Permission denied", in getKeyStoreException()
358 return new KeyStoreException(errorCode, "Key not found", serviceErrorMessage); in getKeyStoreException()
360 return new KeyStoreException(errorCode, "Key blob corrupted", in getKeyStoreException()
[all …]
DKeyStoreException.java265 private static int initializeRkpStatusForRegularErrors(int errorCode) { in initializeRkpStatusForRegularErrors() argument
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
291 super(message + " (internal Keystore code: " + errorCode + " message: " in KeyStoreException()
293 mErrorCode = errorCode; in KeyStoreException()
294 mRkpStatus = initializeRkpStatusForRegularErrors(errorCode); in KeyStoreException()
300 public KeyStoreException(int errorCode, @Nullable String message, int rkpStatus) { in KeyStoreException() argument
[all …]
DAndroidKeyStoreMaintenance.java59 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()
/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/
DParseInputAndResultTest.kt79 fun errorCode() { in errorCode() method
80 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE in errorCode() constant
81 val result = input.error<Any?>(errorCode) in errorCode()
83 assertThat(result.errorCode).isEqualTo(errorCode) in errorCode()
93 assertThat(result.errorCode).isNotEqualTo(PackageManager.INSTALL_SUCCEEDED) in errorMessage()
100 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE in errorCodeAndMessage() constant
102 val result = input.error<Any?>(errorCode, errorMessage) in errorCodeAndMessage()
104 assertThat(result.errorCode).isEqualTo(errorCode) in errorCodeAndMessage()
111 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE in errorCodeAndMessageAndException() constant
114 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCodeAndMessageAndException()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPasswordValidationError.java40 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()
/frameworks/base/core/java/android/net/metrics/
DDhcpErrorEvent.java49 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()
/frameworks/base/identity/java/android/security/identity/
DCredstoreIdentityCredentialStore.java72 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()
132 } else if (e.errorCode == ICredentialStore.ERROR_DOCUMENT_TYPE_NOT_SUPPORTED) { in createCredential()
136 + e.errorCode, e); in createCredential()
152 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in getCredentialByName()
154 } else if (e.errorCode == ICredentialStore.ERROR_CIPHER_SUITE_NOT_SUPPORTED) { in getCredentialByName()
158 + e.errorCode, e); in getCredentialByName()
171 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in deleteCredentialByName()
[all …]
DCredstoreIdentityCredential.java114 + e.errorCode, e); in ensureEphemeralKeyPair()
141 + e.errorCode, e); in setReaderEphemeralPublicKey()
243 + e.errorCode, e); in getCredentialKeyCertificateChain()
286 if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getCredstoreOperationHandle()
291 + e.errorCode, e); in getCredstoreOperationHandle()
337 if (e.errorCode == ICredentialStore.ERROR_EPHEMERAL_PUBLIC_KEY_NOT_FOUND) { in getEntries()
339 } else if (e.errorCode == ICredentialStore.ERROR_INVALID_READER_SIGNATURE) { in getEntries()
341 } else if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getEntries()
343 } else if (e.errorCode == ICredentialStore.ERROR_INVALID_ITEMS_REQUEST_MESSAGE) { in getEntries()
345 } else if (e.errorCode == ICredentialStore.ERROR_SESSION_TRANSCRIPT_MISMATCH) { in getEntries()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraInjectionSessionImpl.java155 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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DKeepaliveStatus.java60 public final int errorCode; field in KeepaliveStatus
65 errorCode = error; in KeepaliveStatus()
71 errorCode = ERROR_NONE; in KeepaliveStatus()
78 errorCode, sessionHandle, statusCode); in toString()
89 dest.writeInt(errorCode); in writeToParcel()
95 errorCode = p.readInt(); in KeepaliveStatus()
/frameworks/base/core/java/android/nfc/tech/
DNdefFormatable.java130 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()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DAcquisitionClient.java85 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
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Init.cpp45 LVPSA_RETURN errorCode = LVPSA_OK; in LVPSA_Init() local
131 errorCode = LVPSA_Control(*phInstance, pControlParams); in LVPSA_Init()
133 if (errorCode != 0) { in LVPSA_Init()
134 return errorCode; in LVPSA_Init()
137 errorCode = LVPSA_ApplyNewSettings(pLVPSA_Inst); in LVPSA_Init()
139 if (errorCode != 0) { in LVPSA_Init()
140 return errorCode; in LVPSA_Init()
143 return (errorCode); in LVPSA_Init()
/frameworks/base/services/core/java/com/android/server/pm/
DUserJourneyLogger.java257 private static int errorToFinishState(@UserJourneyErrorCode int errorCode) { in errorToFinishState() argument
258 switch (errorCode) { in errorToFinishState()
275 int userType, int userFlags, @UserJourneyErrorCode int errorCode) { in logUserLifecycleJourneyReported() argument
283 errorCode, elapsedTime); in logUserLifecycleJourneyReported()
292 int targetUserId, int userType, int userFlags, int errorCode, long elapsedTime) { in writeUserLifecycleJourneyReported() argument
295 errorCode, elapsedTime); in writeUserLifecycleJourneyReported()
306 @UserLifecycleEventState int state, @UserJourneyErrorCode int errorCode) { in logUserLifecycleEventOccurred() argument
312 errorCode); in logUserLifecycleEventOccurred()
321 int errorCode) { in writeUserLifecycleEventOccurred() argument
323 sessionId, userId, event, state, errorCode); in writeUserLifecycleEventOccurred()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsResponse.java46 public SmsResponse(int messageRef, String ackPdu, int errorCode) { in SmsResponse() argument
47 this(messageRef, ackPdu, errorCode, /* messageId= */ 0L); in SmsResponse()
50 public SmsResponse(int messageRef, String ackPdu, int errorCode, long messageId) { in SmsResponse() argument
53 mErrorCode = errorCode; in SmsResponse()
/frameworks/base/core/java/android/webkit/
DLegacyErrorStrings.java36 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()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DRemoteOptionsCoordinator.java80 int errorCode = response.getErrorSipCode().orElse(SIP_CODE_SERVER_INTERNAL_ERROR);
81 return RequestResult.createFailedResult(taskId, errorCode, 0L);
139 int errorCode = response.getErrorSipCode().orElse(SIP_CODE_SERVER_INTERNAL_ERROR); in handleRemoteRequestDone() local
141 triggerOptionsReqWithErrorCallback(errorCode, reason); in handleRemoteRequestDone()
168 private void triggerOptionsReqWithErrorCallback(int errorCode, String reason) { in triggerOptionsReqWithErrorCallback() argument
172 errorCode); in triggerOptionsReqWithErrorCallback()
174 mOptionsReqCallback.respondToCapabilityRequestWithError(errorCode, reason); in triggerOptionsReqWithErrorCallback()
DOptionsRequestCoordinator.java80 int errorCode = response.getRequestInternalError().orElse(DEFAULT_ERROR_CODE);
82 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
88 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromCommandError(cmdError);
90 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
98 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromSipCode(response);
100 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
329 private void triggerErrorCallback(int errorCode, long retryAfterMillis) { in triggerErrorCallback() argument
331 logd("triggerErrorCallback: errorCode=" + errorCode + ", retry=" + retryAfterMillis); in triggerErrorCallback()
332 mCapabilitiesCallback.onError(errorCode, retryAfterMillis, null); in triggerErrorCallback()
358 int errorCode = result.getErrorCode().orElse(DEFAULT_ERROR_CODE); in checkAndFinishRequestCoordinator() local
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipSession.java186 public void onError(SipSession session, int errorCode, in onError() argument
197 public void onCallChangeFailed(SipSession session, int errorCode, in onCallChangeFailed() argument
225 public void onRegistrationFailed(SipSession session, int errorCode, in onRegistrationFailed() argument
526 public void onCallChangeFailed(ISipSession session, int errorCode, in createListener() argument
529 mListener.onCallChangeFailed(SipSession.this, errorCode, in createListener()
535 public void onError(ISipSession session, int errorCode, String message) { in createListener() argument
537 mListener.onError(SipSession.this, errorCode, message); in createListener()
556 public void onRegistrationFailed(ISipSession session, int errorCode, in createListener() argument
559 mListener.onRegistrationFailed(SipSession.this, errorCode, in createListener()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraExceptionHandler.java31 public void onCameraError(int errorCode) {
48 public void onCameraError(int errorCode); in onCameraError() argument
82 public void onCameraError(final int errorCode) { in onCameraError() argument
86 mCallback.onCameraError(errorCode); in onCameraError()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DMDNSFilteredDiscovery.java143 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()

12345678910>>...15