Home
last modified time | relevance | path

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

1234567891011

/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/services/core/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/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.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/minikin/tests/unittest/
DICUEnvironment.h50 UErrorCode errorCode = U_ZERO_ERROR; in SetUp() local
51 udata_setCommonData(mData, &errorCode); in SetUp()
52 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in SetUp()
54 errorCode = U_ZERO_ERROR; in SetUp()
55 u_init(&errorCode); in SetUp()
56 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in SetUp()
/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/minikin/tests/perftests/
Dmain.cpp33 UErrorCode errorCode = U_ZERO_ERROR; in main() local
34 udata_setCommonData(data, &errorCode); in main()
35 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in main()
36 u_init(&errorCode); in main()
37 LOG_ALWAYS_FATAL_IF(U_FAILURE(errorCode)); in main()
/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()
/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/ims/
DImsMmTelManager.java303 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in registerImsRegistrationCallback()
307 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback()
347 throw new ImsException(e.getMessage(), e.errorCode); in registerImsRegistrationCallback()
549 throw new ImsException(e.getMessage(), e.errorCode); in registerMmTelCapabilityCallback()
647 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isAdvancedCallingSettingEnabled()
693 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setAdvancedCallingSettingEnabled()
819 throw new ImsException(sse.getMessage(), sse.errorCode); in isSupported()
862 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isVtSettingEnabled()
892 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in setVtSettingEnabled()
936 if (e.errorCode == ImsException.CODE_ERROR_INVALID_SUBSCRIPTION) { in isVoWiFiSettingEnabled()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore.java238 if (!suppressKeyNotFoundWarning || e.errorCode != KEY_NOT_FOUND) { in get()
484 int errorCode = mBinder.addRngEntropy(promise, data, flags); in addRngEntropy() local
485 if (errorCode == NO_ERROR) { in addRngEntropy()
864 int errorCode = mBinder.begin(promise, getToken(), alias, purpose, pruneable, args, in begin() local
866 if (errorCode == NO_ERROR) { in begin()
869 return new OperationResult(errorCode); in begin()
895 int errorCode = mBinder.update(promise, token, arguments, input); in update() local
896 if (errorCode == NO_ERROR) { in update()
899 return new OperationResult(errorCode); in update()
931 int errorCode = mBinder.finish(promise, token, arguments, input, signature, entropy); in finish() local
[all …]
/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/base/telephony/java/android/telephony/mbms/vendor/
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);
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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java261 public synchronized void captureAlertData(int errorCode, byte[] alertData) { in captureAlertData() argument
262 BugReport report = captureBugreport(errorCode, isVerboseLoggingEnabled()); in captureAlertData()
268 .boxed().collect(Collectors.toList()).contains(errorCode)) { in captureAlertData()
331 int errorCode; field in WifiDiagnostics.BugReport
357 builder.append("reason = ").append(errorCode).append("\n"); in toString()
359 builder.append("errorCode = ").append(errorCode); in toString()
461 public void onWifiAlert(int errorCode, byte[] buffer) {
462 WifiDiagnostics.this.onWifiAlert(errorCode, buffer);
473 synchronized void onWifiAlert(int errorCode, @NonNull byte[] buffer) { in onWifiAlert() argument
474 captureAlertData(errorCode, buffer); in onWifiAlert()
[all …]

1234567891011