Home
last modified time | relevance | path

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

123456

/packages/services/Car/cpp/computepipe/runner/graph/
DLocalPrebuiltGraph.cpp70 PrebuiltComputepipeRunner_ErrorCode errorCode = in handleConfigPhase() local
72 if (errorCode != PrebuiltComputepipeRunner_ErrorCode::SUCCESS) { in handleConfigPhase()
73 return static_cast<Status>(static_cast<int>(errorCode)); in handleConfigPhase()
82 PrebuiltComputepipeRunner_ErrorCode errorCode = in handleConfigPhase() local
84 if (errorCode != PrebuiltComputepipeRunner_ErrorCode::SUCCESS) { in handleConfigPhase()
85 return static_cast<Status>(static_cast<int>(errorCode)); in handleConfigPhase()
93 errorCode = streamCallbackFn(LocalPrebuiltGraph::OutputStreamCallbackFunction); in handleConfigPhase()
94 if (errorCode != PrebuiltComputepipeRunner_ErrorCode::SUCCESS) { in handleConfigPhase()
95 return static_cast<Status>(static_cast<int>(errorCode)); in handleConfigPhase()
102 errorCode = terminationCallback(LocalPrebuiltGraph::GraphTerminationCallbackFunction); in handleConfigPhase()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPasswordHelper.java93 public List<String> convertErrorCodeToMessages(Context context, int errorCode) { in convertErrorCodeToMessages() argument
94 return mIsPin ? convertPinErrorCodeToMessages(context, errorCode) : in convertErrorCodeToMessages()
95 convertPasswordErrorCodeToMessages(context, errorCode); in convertErrorCodeToMessages()
99 int errorCode = NO_ERROR; in validatePassword() local
102 errorCode |= TOO_SHORT; in validatePassword()
109 errorCode |= CONTAINS_INVALID_CHARACTERS; in validatePassword()
114 return errorCode; in validatePassword()
139 int errorCode = NO_ERROR; in validatePin() local
144 errorCode |= TOO_SHORT; in validatePin()
148 errorCode |= CONTAINS_NON_DIGITS; in validatePin()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModelException.java61 public DataModelException(final int errorCode, final Exception innerException, in DataModelException() argument
66 if (errorCode < FIRST || errorCode > LAST) { in DataModelException()
67 throw new IllegalArgumentException("error code out of range: " + errorCode); in DataModelException()
70 mErrorCode = errorCode; in DataModelException()
81 public DataModelException(final int errorCode) { in DataModelException() argument
82 this(errorCode, null, 0, false, null); in DataModelException()
85 public DataModelException(final int errorCode, final Exception innerException) { in DataModelException() argument
86 this(errorCode, innerException, 0, false, null); in DataModelException()
89 public DataModelException(final int errorCode, final String message) { in DataModelException() argument
90 this(errorCode, null, 0, false, message); in DataModelException()
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
DDisplayHashingServiceImplTest.java81 int errorCode = mDisplayHashResultCallback.getError(); in testOnGenerateDisplayHash_nullSalt() local
82 assertEquals(DISPLAY_HASH_ERROR_UNKNOWN, errorCode); in testOnGenerateDisplayHash_nullSalt()
89 int errorCode = mDisplayHashResultCallback.getError(); in testOnGenerateDisplayHash_invalidHashAlgorithm() local
90 assertEquals(DISPLAY_HASH_ERROR_INVALID_HASH_ALGORITHM, errorCode); in testOnGenerateDisplayHash_invalidHashAlgorithm()
95 errorCode = mDisplayHashResultCallback.getError(); in testOnGenerateDisplayHash_invalidHashAlgorithm()
96 assertEquals(DISPLAY_HASH_ERROR_INVALID_HASH_ALGORITHM, errorCode); in testOnGenerateDisplayHash_invalidHashAlgorithm()
103 int errorCode = mDisplayHashResultCallback.getError(); in testOnGenerateDisplayHash_nullBuffer() local
104 assertEquals(DISPLAY_HASH_ERROR_UNKNOWN, errorCode); in testOnGenerateDisplayHash_nullBuffer()
170 public void onDisplayHashError(int errorCode) { in onDisplayHashError() argument
171 mError = errorCode; in onDisplayHashError()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java301 private void triggerAlertDataCapture(int errorCode, byte[] alertData) { in triggerAlertDataCapture() argument
308 BugReport report = captureBugreport(errorCode, verbose); in triggerAlertDataCapture()
316 .boxed().collect(Collectors.toList()).contains(errorCode)) { in triggerAlertDataCapture()
385 int errorCode; field in WifiDiagnostics.BugReport
411 builder.append("reason = ").append(errorCode).append("\n"); in toString()
413 builder.append("errorCode = ").append(errorCode); in toString()
515 public void onWifiAlert(int errorCode, byte[] buffer) {
516 WifiDiagnostics.this.onWifiAlert(errorCode, buffer);
527 synchronized void onWifiAlert(int errorCode, @NonNull byte[] buffer) { in onWifiAlert() argument
528 triggerAlertDataCapture(errorCode, buffer); in onWifiAlert()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerTest.java58 public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { in initRegistrationListener()
59 setEvent("onRegistrationFailed", errorCode); in initRegistrationListener()
63 public void onUnregistrationFailed(NsdServiceInfo serviceInfo, int errorCode) { in initRegistrationListener()
64 setEvent("onUnregistrationFailed", errorCode); in initRegistrationListener()
82 public void onStartDiscoveryFailed(String serviceType, int errorCode) { in initDiscoveryListener()
83 setEvent("onStartDiscoveryFailed", errorCode); in initDiscoveryListener()
87 public void onStopDiscoveryFailed(String serviceType, int errorCode) { in initDiscoveryListener()
88 setEvent("onStopDiscoveryFailed", errorCode); in initDiscoveryListener()
120 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in initResolveListener()
121 setEvent("onResolveFailed", errorCode); in initResolveListener()
[all …]
/packages/services/Telephony/src/com/android/phone/
DImsRcsController.java129 Log.e(TAG, "unregisterImsRegistrationCallback: error=" + e.errorCode); in unregisterImsRegistrationCallback()
217 Log.e(TAG, "unregisterRcsAvailabilityCallback: error=" + e.errorCode); in unregisterRcsAvailabilityCallback()
350 throw new ImsException(e.getMessage(), e.errorCode); in addUceRegistrationOverrideShell()
369 throw new ImsException(e.getMessage(), e.errorCode); in removeUceRegistrationOverrideShell()
388 throw new ImsException(e.getMessage(), e.errorCode); in clearUceRegistrationOverrideShell()
407 throw new ImsException(e.getMessage(), e.errorCode); in getLatestRcsContactUceCapabilityShell()
427 throw new ImsException(e.getMessage(), e.errorCode); in getLastUcePidfXmlShell()
445 throw new ImsException(e.getMessage(), e.errorCode); in removeUceRequestDisallowedStatus()
462 throw new ImsException(e.getMessage(), e.errorCode); in setCapabilitiesRequestTimeout()
498 Log.e(TAG, "unregisterUcePublishStateCallback: error=" + e.errorCode); in unregisterUcePublishStateCallback()
[all …]
/packages/modules/Connectivity/tests/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()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java102 default void onErrorEvent(int propId, int areaId, @CarSetPropertyErrorCode int errorCode) { in onErrorEvent() argument
105 + toHexString(areaId) + " ErrorCode: " + errorCode); in onErrorEvent()
723 if (e.errorCode == VehicleHalStatusCode.STATUS_TRY_AGAIN) { in getProperty()
730 return handleCarServiceSpecificException(e.errorCode, propId, areaId, null); in getProperty()
783 if (e.errorCode == VehicleHalStatusCode.STATUS_TRY_AGAIN) { in getProperty()
790 return handleCarServiceSpecificException(e.errorCode, propId, areaId, null); in getProperty()
856 if (e.errorCode == VehicleHalStatusCode.STATUS_TRY_AGAIN) { in setProperty()
864 handleCarServiceSpecificException(e.errorCode, propId, areaId, null); in setProperty()
912 private <T> T handleCarServiceSpecificException(int errorCode, int propId, int areaId, in handleCarServiceSpecificException() argument
914 switch (errorCode) { in handleCarServiceSpecificException()
[all …]
DCarPropertyEvent.java95 @CarPropertyManager.CarSetPropertyErrorCode int errorCode) { in CarPropertyEvent() argument
97 mErrorCode = errorCode; in CarPropertyEvent()
109 @CarPropertyManager.CarSetPropertyErrorCode int errorCode) { in createErrorEventWithErrorCode() argument
113 errorCode); in createErrorEventWithErrorCode()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DAdminIntegratedFlowPrepareController.java78 protected int getErrorMsgId(AbstractProvisioningTask task, int errorCode) { in getErrorMsgId() argument
82 switch (errorCode) { in getErrorMsgId()
89 switch (errorCode) { in getErrorMsgId()
96 switch (errorCode) { in getErrorMsgId()
108 protected boolean getRequireFactoryReset(AbstractProvisioningTask task, int errorCode) { in getRequireFactoryReset() argument
DDeviceOwnerProvisioningController.java87 protected int getErrorMsgId(AbstractProvisioningTask task, int errorCode) { in getErrorMsgId() argument
91 switch (errorCode) { in getErrorMsgId()
98 switch (errorCode) { in getErrorMsgId()
105 switch (errorCode) { in getErrorMsgId()
117 protected boolean getRequireFactoryReset(AbstractProvisioningTask task, int errorCode) { in getRequireFactoryReset() argument
DAbstractProvisioningController.java104 protected abstract int getErrorMsgId(AbstractProvisioningTask task, int errorCode); in getErrorMsgId() argument
105 protected abstract boolean getRequireFactoryReset(AbstractProvisioningTask task, int errorCode); in getRequireFactoryReset() argument
172 public synchronized void onError(AbstractProvisioningTask task, int errorCode) { in onError() argument
175 mProvisioningAnalyticsTracker.logProvisioningError(mContext, task, errorCode); in onError()
176 mCallback.error(getErrorTitle(), getErrorMsgId(task, errorCode), in onError()
177 getRequireFactoryReset(task, errorCode)); in onError()
/packages/services/Car/service/src/com/android/car/hal/
DHalClient.java207 public final int errorCode; field in HalClient.PropertySetError
211 PropertySetError(int errorCode, int propId, int areaId) { in PropertySetError() argument
212 this.errorCode = errorCode; in PropertySetError()
248 callback.onPropertySetError(obj.errorCode, obj.propId, obj.areaId); in handleMessage()
279 public void onPropertySetError(int errorCode, int propId, int areaId) { in onPropertySetError() argument
282 new PropertySetError(errorCode, propId, areaId))); in onPropertySetError()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3EventHandler.java258 private static void postError(VoicemailStatus.Editor editor, @ErrorCode int errorCode) { in postError() argument
259 switch (errorCode) { in postError()
280 editor.setConfigurationState(errorCode); in postError()
288 editor.setDataChannelState(errorCode); in postError()
291 editor.setNotificationChannelState(errorCode); in postError()
294 VvmLog.wtf(TAG, "unknown error code: " + errorCode); in postError()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsSender.java138 final int errorCode, final int partId, int subId) { in setResult() argument
142 + " resultCode=" + resultCode + " errorCode=" + errorCode); in setResult()
143 if (errorCode != SendStatusReceiver.NO_ERROR_CODE) { in setResult()
145 UiUtils.showToastAtBottom(getSendErrorToastMessage(context, subId, errorCode)); in setResult()
170 final int errorCode) { in getSendErrorToastMessage() argument
173 return context.getString(R.string.carrier_send_error_unknown_carrier, errorCode); in getSendErrorToastMessage()
175 return context.getString(R.string.carrier_send_error, carrierName, errorCode); in getSendErrorToastMessage()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattServer.java271 public void onStartFailure(int errorCode) { in onStartFailure() argument
273 if (errorCode == AdvertiseCallback.ADVERTISE_FAILED_ALREADY_STARTED) { in onStartFailure()
275 } else if (errorCode == AdvertiseCallback.ADVERTISE_FAILED_DATA_TOO_LARGE) { in onStartFailure()
277 } else if (errorCode == AdvertiseCallback.ADVERTISE_FAILED_FEATURE_UNSUPPORTED) { in onStartFailure()
279 } else if (errorCode == AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR) { in onStartFailure()
281 } else if (errorCode == AdvertiseCallback.ADVERTISE_FAILED_TOO_MANY_ADVERTISERS) { in onStartFailure()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimTypeDataTest.java123 assertEquals(UNABLE_TO_PROCESS_CODE, result.atClientErrorCode.errorCode); in testDecodeNullTypeData()
130 assertEquals(UNABLE_TO_PROCESS_CODE, result.atClientErrorCode.errorCode); in testDecodeInvalidSubtype()
138 assertEquals(INSUFFICIENT_CHALLENGES_CODE, result.atClientErrorCode.errorCode); in testDecodeInvalidAtRand()
145 assertEquals(UNABLE_TO_PROCESS_CODE, result.atClientErrorCode.errorCode); in testDecodeShortPacket()
153 assertEquals(UNABLE_TO_PROCESS_CODE, result.atClientErrorCode.errorCode); in testDecodeInvalidEapAttribute()
172 assertEquals(UNABLE_TO_PROCESS_CODE, result.atClientErrorCode.errorCode); in testDecodeDuplicateAttributes()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java199 int errorCode = CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_TRY_AGAIN; in testOnPropertySetError() local
204 mVehicleHal.onPropertySetError(errorCode, propId, areaId); in testOnPropertySetError()
207 verify(mPowerHalService).onPropertySetError(propId, areaId, errorCode); in testOnPropertySetError()
213 int errorCode = CarPropertyManager.CAR_SET_PROPERTY_ERROR_CODE_TRY_AGAIN; in testInjectOnPropertySetError() local
218 mVehicleHal.onPropertySetError(errorCode, propId, areaId); in testInjectOnPropertySetError()
221 verify(mPowerHalService).onPropertySetError(propId, areaId, errorCode); in testInjectOnPropertySetError()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportService.java421 public void onError(@CarBugreportErrorCode int errorCode) { in requestBugReport()
422 Log.e(TAG, "CarBugreportManager failed: " + errorCode); in requestBugReport()
424 handleBugReportManagerError(errorCode); in requestBugReport()
452 @CarBugreportManager.CarBugreportManagerCallback.CarBugreportErrorCode int errorCode) { in handleBugReportManagerError()
465 Status.STATUS_WRITE_FAILED, getBugReportFailureStatusMessage(errorCode)); in handleBugReportManagerError()
476 @CarBugreportManager.CarBugreportManagerCallback.CarBugreportErrorCode int errorCode) { in getBugReportFailureStatusMessage()
477 switch (errorCode) { in getBugReportFailureStatusMessage()
484 return "Car service bugreport collection failed: " + errorCode; in getBugReportFailureStatusMessage()
/packages/apps/Settings/src/com/android/settings/applications/
DAppInfoBase.java178 protected abstract AlertDialog createDialog(int id, int errorCode); in createDialog() argument
250 int errorCode = getArguments().getInt("moveError"); in onCreateDialog() local
251 Dialog dialog = ((AppInfoBase) getTargetFragment()).createDialog(id, errorCode); in onCreateDialog()
258 public static MyAlertDialogFragment newInstance(int id, int errorCode) { in newInstance() argument
262 args.putInt("moveError", errorCode); in newInstance()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DNsdResolveQueue.java110 public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) { in onResolveFailed() argument
113 + errorCode + " (" + (System.currentTimeMillis() - mStartTime) + " ms)"); in onResolveFailed()
116 mListener.onResolveFailed(serviceInfo, errorCode); in onResolveFailed()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DUceActivity.java114 public void onError(int errorCode, long retryAfterMilliseconds) { in initLayout()
116 "onError() errorCode:" + errorCode + " retryAfterMs:" in initLayout()
154 public void onError(int errorCode, long retryAfterMilliseconds) { in initLayout()
156 "onError() errorCode:" + errorCode + " retryAfterMs:" in initLayout()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeData.java315 public final int errorCode; field in EapMsChapV2TypeData.EapMsChapV2FailureRequest
345 this.errorCode = Integer.parseInt(mappings.get(ERROR_LABEL)); in EapMsChapV2FailureRequest()
361 int errorCode, in EapMsChapV2FailureRequest() argument
369 this.errorCode = errorCode; in EapMsChapV2FailureRequest()
/packages/modules/adb/daemon/
Dmdns.cpp54 DNSServiceErrorType errorCode, in mdns_callback() argument
59 if (errorCode != kDNSServiceErr_NoError) { in mdns_callback()
61 << errorCode << ")."; in mdns_callback()

123456