Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
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()
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()
/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/keystore/java/android/security/
DKeyStore2.java111 throw getKeyStoreException(e.errorCode); in handleRemoteExceptionWithRetry()
325 static KeyStoreException getKeyStoreException(int errorCode) { in getKeyStoreException() argument
326 if (errorCode > 0) { in getKeyStoreException()
328 switch (errorCode) { in getKeyStoreException()
330 return new KeyStoreException(errorCode, "User authentication required"); in getKeyStoreException()
332 return new KeyStoreException(errorCode, "Keystore not initialized"); in getKeyStoreException()
334 return new KeyStoreException(errorCode, "System error"); in getKeyStoreException()
336 return new KeyStoreException(errorCode, "Permission denied"); in getKeyStoreException()
338 return new KeyStoreException(errorCode, "Key not found"); in getKeyStoreException()
340 return new KeyStoreException(errorCode, "Key blob corrupted"); in getKeyStoreException()
[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.kt77 fun errorCode() { in errorCode() method in android.content.pm.parsing.result.ParseInputAndResultTest
78 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE in errorCode() constant
79 val result = input.error<Any?>(errorCode) in errorCode()
81 assertThat(result.errorCode).isEqualTo(errorCode) in errorCode()
91 assertThat(result.errorCode).isNotEqualTo(PackageManager.INSTALL_SUCCEEDED) in errorMessage()
98 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE in errorCodeAndMessage() constant
100 val result = input.error<Any?>(errorCode, errorMessage) in errorCodeAndMessage()
102 assertThat(result.errorCode).isEqualTo(errorCode) in errorCodeAndMessage()
109 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE in errorCodeAndMessageAndException() constant
112 val result = input.error<Any?>(errorCode, errorMessage, exception) in errorCodeAndMessageAndException()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPasswordValidationError.java39 public final int errorCode; field in PasswordValidationError
42 public PasswordValidationError(int errorCode) { in PasswordValidationError() argument
43 this(errorCode, 0); in PasswordValidationError()
46 public PasswordValidationError(int errorCode, int requirement) { in PasswordValidationError() argument
47 this.errorCode = errorCode; in PasswordValidationError()
53 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/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/base/identity/java/android/security/identity/
DCredstoreIdentityCredentialStore.java52 if (e.errorCode == ICredentialStore.ERROR_GENERIC) { in getInstanceForType()
56 + e.errorCode, e); in getInstanceForType()
96 + e.errorCode, e); in getSupportedDocTypes()
111 if (e.errorCode == ICredentialStore.ERROR_ALREADY_PERSONALIZED) { in createCredential()
113 } else if (e.errorCode == ICredentialStore.ERROR_DOCUMENT_TYPE_NOT_SUPPORTED) { in createCredential()
117 + e.errorCode, e); in createCredential()
133 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in getCredentialByName()
135 } else if (e.errorCode == ICredentialStore.ERROR_CIPHER_SUITE_NOT_SUPPORTED) { in getCredentialByName()
139 + e.errorCode, e); in getCredentialByName()
152 if (e.errorCode == ICredentialStore.ERROR_NO_SUCH_CREDENTIAL) { in deleteCredentialByName()
[all …]
DCredstoreIdentityCredential.java107 + e.errorCode, e); in ensureEphemeralKeyPair()
134 + e.errorCode, e); in setReaderEphemeralPublicKey()
236 + e.errorCode, e); in getCredentialKeyCertificateChain()
272 if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getCredstoreOperationHandle()
277 + e.errorCode, e); in getCredstoreOperationHandle()
322 if (e.errorCode == ICredentialStore.ERROR_EPHEMERAL_PUBLIC_KEY_NOT_FOUND) { in getEntries()
324 } else if (e.errorCode == ICredentialStore.ERROR_INVALID_READER_SIGNATURE) { in getEntries()
326 } else if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getEntries()
328 } else if (e.errorCode == ICredentialStore.ERROR_INVALID_ITEMS_REQUEST_MESSAGE) { in getEntries()
330 } else if (e.errorCode == ICredentialStore.ERROR_SESSION_TRANSCRIPT_MISMATCH) { in getEntries()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DKeepaliveStatus.java53 public final int errorCode; field in KeepaliveStatus
58 errorCode = error; in KeepaliveStatus()
64 errorCode = ERROR_NONE; in KeepaliveStatus()
71 errorCode, sessionHandle, statusCode); in toString()
82 dest.writeInt(errorCode); in writeToParcel()
88 errorCode = p.readInt(); in KeepaliveStatus()
/frameworks/base/core/java/android/nfc/tech/
DNdefFormatable.java126 int errorCode = tagService.formatNdef(serviceHandle, MifareClassic.KEY_DEFAULT); in format() local
127 switch (errorCode) { in format()
145 errorCode = tagService.ndefWrite(serviceHandle, firstMessage); in format()
146 switch (errorCode) { in format()
161 errorCode = tagService.ndefMakeReadOnly(serviceHandle); in format()
162 switch (errorCode) { in format()
DBasicTagTechnology.java73 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()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DSubscribeRequestCoordinator.java87 int errorCode = response.getRequestInternalError().orElse(DEFAULT_ERROR_CODE);
89 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
96 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromCommandError(cmdError);
98 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
106 int errorCode = deviceState.getErrorCode().orElse(RcsUceAdapter.ERROR_FORBIDDEN);
108 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
110 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromSipCode(response);
112 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
130 int errorCode = terminatedResult.getErrorCode().get();
132 return RequestResult.createFailedResult(taskId, errorCode, terminatedRetry);
[all …]
DOptionsRequestCoordinator.java72 int errorCode = response.getRequestInternalError().orElse(DEFAULT_ERROR_CODE);
74 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
80 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromCommandError(cmdError);
82 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
90 int errorCode = CapabilityRequestResponse.getCapabilityErrorFromSipCode(response);
92 return RequestResult.createFailedResult(taskId, errorCode, retryAfter);
308 private void triggerErrorCallback(int errorCode, long retryAfterMillis) { in triggerErrorCallback() argument
310 logd("triggerErrorCallback: errorCode=" + errorCode + ", retry=" + retryAfterMillis); in triggerErrorCallback()
311 mCapabilitiesCallback.onError(errorCode, retryAfterMillis); in triggerErrorCallback()
337 int errorCode = result.getErrorCode().orElse(DEFAULT_ERROR_CODE); in checkAndFinishRequestCoordinator() local
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DAcquisitionClient.java84 public void onError(int errorCode, int vendorCode) { in onError() argument
86 onErrorInternal(errorCode, vendorCode, true /* finish */); in onError()
103 protected void onErrorInternal(int errorCode, int vendorCode, boolean finish) { in onErrorInternal() argument
104 Slog.d(TAG, "onErrorInternal code: " + errorCode + ", finish: " + finish); in onErrorInternal()
111 logOnError(getContext(), errorCode, vendorCode, getTargetUserId()); in onErrorInternal() local
115 getListener().onError(getSensorId(), getCookie(), errorCode, vendorCode); in onErrorInternal() local
146 final int errorCode = BiometricConstants.BIOMETRIC_ERROR_CANCELED; in cancelWithoutStarting() local
149 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/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/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/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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSmsStats.java157 @SmsManager.Result int errorCode, long messageId, boolean isFromDefaultApp) { in onOutgoingSms() argument
158 onOutgoingSms(isOverIms, is3gpp2, fallbackToCs, errorCode, NO_ERROR_CODE, in onOutgoingSms()
164 @SmsManager.Result int errorCode, int radioSpecificErrorCode, long messageId, in onOutgoingSms() argument
171 proto.errorCode = errorCode; in onOutgoingSms()
174 } else if (errorCode == SmsManager.RESULT_RIL_SMS_SEND_FAIL_RETRY) { in onOutgoingSms()
176 } else if (errorCode != SmsManager.RESULT_ERROR_NONE) { in onOutgoingSms()
181 if (errorCode == SmsManager.RESULT_RIL_SMS_SEND_FAIL_RETRY) { in onOutgoingSms()
183 } else if (errorCode != SmsManager.RESULT_ERROR_NONE) { in onOutgoingSms()
186 proto.errorCode = radioSpecificErrorCode; in onOutgoingSms()
187 if (errorCode == SmsManager.RESULT_RIL_RADIO_NOT_AVAILABLE in onOutgoingSms()
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DImsMmTelManager.java307 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in registerImsRegistrationCallback()
311 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback()
351 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback()
566 throw new ImsException(e.getMessage(), e.errorCode); in registerMmTelCapabilityCallback()
664 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isAdvancedCallingSettingEnabled()
710 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setAdvancedCallingSettingEnabled()
829 throw new ImsException(sse.getMessage(), sse.errorCode); in isSupported()
872 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isVtSettingEnabled()
902 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setVtSettingEnabled()
946 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isVoWiFiSettingEnabled()
[all …]

12345678910>>...13