Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyExceptionUtils.java88 int errorCode = ICameraService.ERROR_INVALID_OPERATION; in throwOnServiceError() local
94 errorCode = ICameraService.ERROR_PERMISSION_DENIED; in throwOnServiceError()
101 errorCode = ICameraService.ERROR_ILLEGAL_ARGUMENT; in throwOnServiceError()
104 errorCode = ICameraService.ERROR_DISCONNECTED; in throwOnServiceError()
107 errorCode = ICameraService.ERROR_INVALID_OPERATION; in throwOnServiceError()
110 errorCode = ICameraService.ERROR_DISABLED; in throwOnServiceError()
113 errorCode = ICameraService.ERROR_CAMERA_IN_USE; in throwOnServiceError()
116 errorCode = ICameraService.ERROR_MAX_CAMERAS_IN_USE; in throwOnServiceError()
119 errorCode = ICameraService.ERROR_DISCONNECTED; in throwOnServiceError()
122 errorCode = ICameraService.ERROR_DEPRECATED_HAL; in throwOnServiceError()
[all …]
/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/net/metrics/
DDhcpErrorEvent.java47 public final int errorCode; field in DhcpErrorEvent
76 public DhcpErrorEvent(int errorCode) { in DhcpErrorEvent() argument
77 this.errorCode = errorCode; in DhcpErrorEvent()
81 this.errorCode = in.readInt(); in DhcpErrorEvent()
87 out.writeInt(errorCode); in writeToParcel()
108 public static int errorCodeWithOption(int errorCode, int option) { in errorCodeWithOption() argument
109 return (0xFFFF0000 & errorCode) | (0xFF & option); in errorCodeWithOption()
115 return String.format("DhcpErrorEvent(%s)", Decoder.constants.get(errorCode)); in toString()
/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.java106 + e.errorCode, e); in ensureEphemeralKeyPair()
133 + e.errorCode, e); in setReaderEphemeralPublicKey()
235 + e.errorCode, e); in getCredentialKeyCertificateChain()
264 if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getCredstoreOperationHandle()
269 + e.errorCode, e); in getCredstoreOperationHandle()
313 if (e.errorCode == ICredentialStore.ERROR_EPHEMERAL_PUBLIC_KEY_NOT_FOUND) { in getEntries()
315 } else if (e.errorCode == ICredentialStore.ERROR_INVALID_READER_SIGNATURE) { in getEntries()
317 } else if (e.errorCode == ICredentialStore.ERROR_NO_AUTHENTICATION_KEY_AVAILABLE) { in getEntries()
319 } else if (e.errorCode == ICredentialStore.ERROR_INVALID_ITEMS_REQUEST_MESSAGE) { in getEntries()
321 } 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/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Init.cpp48 LVPSA_RETURN errorCode = LVPSA_OK; in LVPSA_Init() local
181 errorCode = LVPSA_Control (*phInstance, pControlParams); in LVPSA_Init()
183 if(errorCode!=0) in LVPSA_Init()
185 return errorCode; in LVPSA_Init()
188 errorCode = LVPSA_ApplyNewSettings (pLVPSA_Inst); in LVPSA_Init()
190 if(errorCode!=0) in LVPSA_Init()
192 return errorCode; in LVPSA_Init()
195 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/base/tests/net/common/java/android/net/metrics/
DDhcpErrorEventTest.kt26 assertEquals(TEST_ERROR_CODE, event.errorCode) in testConstructor()
33 assertEquals(TEST_ERROR_CODE, parceled.errorCode) in testParcelUnparcel()
38 val errorCode = errorCodeWithOption(DHCP_INVALID_OPTION_LENGTH, DHCP_SUBNET_MASK); in testErrorCodeWithOption() constant
39 assertTrue((DHCP_INVALID_OPTION_LENGTH and errorCode) == DHCP_INVALID_OPTION_LENGTH); in testErrorCodeWithOption()
40 assertTrue((DHCP_SUBNET_MASK and errorCode) == DHCP_SUBNET_MASK); in testErrorCodeWithOption()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipSession.java184 public void onError(SipSession session, int errorCode, in onError() argument
195 public void onCallChangeFailed(SipSession session, int errorCode, in onCallChangeFailed() argument
223 public void onRegistrationFailed(SipSession session, int errorCode, in onRegistrationFailed() argument
524 public void onCallChangeFailed(ISipSession session, int errorCode, in createListener() argument
527 mListener.onCallChangeFailed(SipSession.this, errorCode, in createListener()
533 public void onError(ISipSession session, int errorCode, String message) { in createListener() argument
535 mListener.onError(SipSession.this, errorCode, message); in createListener()
554 public void onRegistrationFailed(ISipSession session, int errorCode, in createListener() argument
557 mListener.onRegistrationFailed(SipSession.this, errorCode, in createListener()
DSipSessionAdapter.java49 public void onCallChangeFailed(ISipSession session, int errorCode, in onCallChangeFailed() argument
53 public void onError(ISipSession session, int errorCode, String message) { in onError() argument
62 public void onRegistrationFailed(ISipSession session, int errorCode, in onRegistrationFailed() argument
/frameworks/base/telephony/java/android/telephony/ims/
DImsMmTelManager.java304 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in registerImsRegistrationCallback()
308 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback()
348 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback()
550 throw new ImsException(e.getMessage(), e.errorCode); in registerMmTelCapabilityCallback()
648 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isAdvancedCallingSettingEnabled()
694 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setAdvancedCallingSettingEnabled()
820 throw new ImsException(sse.getMessage(), sse.errorCode); in isSupported()
863 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isVtSettingEnabled()
893 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setVtSettingEnabled()
937 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isVoWiFiSettingEnabled()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore.java240 if (!suppressKeyNotFoundWarning || e.errorCode != KEY_NOT_FOUND) { in get()
486 int errorCode = mBinder.addRngEntropy(promise, data, flags); in addRngEntropy() local
487 if (errorCode == NO_ERROR) { in addRngEntropy()
866 int errorCode = mBinder.begin(promise, getToken(), alias, purpose, pruneable, args, in begin() local
868 if (errorCode == NO_ERROR) { in begin()
871 return new OperationResult(errorCode); in begin()
897 int errorCode = mBinder.update(promise, token, arguments, input); in update() local
898 if (errorCode == NO_ERROR) { in update()
901 return new OperationResult(errorCode); in update()
933 int errorCode = mBinder.finish(promise, token, arguments, input, signature, entropy); in finish() local
[all …]
/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/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/telephony/java/android/telephony/mbms/vendor/
DMbmsStreamingServiceBase.java78 public void onError(final int errorCode, final String message) { in initialize()
80 if (errorCode == MbmsErrors.UNKNOWN) { in initialize()
84 callback.onError(errorCode, message); in initialize()
178 public void onError(final int errorCode, final String message) { in startStreaming()
180 if (errorCode == MbmsErrors.UNKNOWN) { in startStreaming()
184 callback.onError(errorCode, message); in startStreaming()
DMbmsGroupCallServiceBase.java59 public void onError(final int errorCode, final String message) {
61 if (errorCode == MbmsErrors.UNKNOWN) {
65 callback.onError(errorCode, message);
139 public void onError(final int errorCode, final String message) {
141 if (errorCode == MbmsErrors.UNKNOWN) {
145 callback.onError(errorCode, message);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccCardErrorException.java81 public EuiccCardErrorException(@OperationCode int operationCode, int errorCode) { in EuiccCardErrorException() argument
83 mErrorCode = errorCode; in EuiccCardErrorException()
95 public EuiccCardErrorException(@OperationCode int operationCode, int errorCode, in EuiccCardErrorException() argument
98 mErrorCode = errorCode; in EuiccCardErrorException()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java260 public synchronized void captureAlertData(int errorCode, byte[] alertData) { in captureAlertData() argument
261 BugReport report = captureBugreport(errorCode, isVerboseLoggingEnabled()); in captureAlertData()
265 if (mFatalFirmwareAlertErrorCodeList.contains(errorCode)) { in captureAlertData()
318 int errorCode; field in WifiDiagnostics.BugReport
344 builder.append("reason = ").append(errorCode).append("\n"); in toString()
346 builder.append("errorCode = ").append(errorCode); in toString()
448 public void onWifiAlert(int errorCode, byte[] buffer) {
449 WifiDiagnostics.this.onWifiAlert(errorCode, buffer);
460 synchronized void onWifiAlert(int errorCode, @NonNull byte[] buffer) { in onWifiAlert() argument
461 captureAlertData(errorCode, buffer); in onWifiAlert()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionListenerProxy.java156 final int errorCode, final String message) { in onCallChangeFailed() argument
162 mListener.onCallChangeFailed(session, errorCode, message); in onCallChangeFailed()
171 public void onError(final ISipSession session, final int errorCode, in onError() argument
178 mListener.onError(session, errorCode, message); in onError()
219 final int errorCode, final String message) { in onRegistrationFailed() argument
225 mListener.onRegistrationFailed(session, errorCode, message); in onRegistrationFailed()
/frameworks/base/core/java/android/security/keystore/recovery/
DRecoveryController.java342 if (e.errorCode == ERROR_BAD_CERTIFICATE_FORMAT in initRecoveryService()
343 || e.errorCode == ERROR_INVALID_CERTIFICATE) { in initRecoveryService()
346 if (e.errorCode == ERROR_DOWNGRADE_CERTIFICATE) { in initRecoveryService()
370 if (e.errorCode == ERROR_NO_SNAPSHOT_PENDING) { in getKeyChainSnapshot()
556 if (e.errorCode == ERROR_INSECURE_USER) { in generateKey()
597 if (e.errorCode == ERROR_INSECURE_USER) { in generateKey()
630 if (e.errorCode == ERROR_INSECURE_USER) { in importKey()
673 if (e.errorCode == ERROR_INSECURE_USER) { in importKey()
753 if (e.errorCode == ERROR_SERVICE_INTERNAL_ERROR) { in wrapUnexpectedServiceSpecificException()
760 + e.errorCode, e); in wrapUnexpectedServiceSpecificException()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DPackageInstallerImpl.java94 void installFailed(int errorCode, String errorDesc); in installFailed() argument
304 int errorCode = getPackageManagerErrorCode(status); in handleCommitCallback() local
305 Log.e(TAG, "Error " + errorCode + " while installing " + packageName + ": " in handleCommitCallback()
307 callback.installFailed(errorCode, null); in handleCommitCallback()
317 int errorCode; in getPackageManagerErrorCode() local
319 errorCode = InstallerConstants.ERROR_INSTALL_MALFORMED_BROADCAST; in getPackageManagerErrorCode()
321 errorCode = InstallerConstants.ERROR_PACKAGEINSTALLER_BASE - status; in getPackageManagerErrorCode()
323 return errorCode; in getPackageManagerErrorCode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DOpenLogicalChannelInvocation.java76 int errorCode = IccOpenLogicalChannelResponse.STATUS_UNKNOWN_ERROR; in parseResult() local
81 errorCode = IccOpenLogicalChannelResponse.STATUS_MISSING_RESOURCE; in parseResult()
83 errorCode = IccOpenLogicalChannelResponse.STATUS_NO_SUCH_ELEMENT; in parseResult()
87 IccOpenLogicalChannelResponse.INVALID_CHANNEL, errorCode, null); in parseResult()

12345678910