Home
last modified time | relevance | path

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

12345678910>>...17

/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/errorlogging/
DErrorCodeSamplerTest.java61 int errorCode = 200; in testShouldLog_randomSampling_loggingSuccess() local
62 expect.withMessage("shouldLog(errorCode=%s)", errorCode) in testShouldLog_randomSampling_loggingSuccess()
63 .that(errorCodeSampler.shouldLog(errorCode)) in testShouldLog_randomSampling_loggingSuccess()
66 errorCode = 700; in testShouldLog_randomSampling_loggingSuccess()
67 expect.withMessage("shouldLog(errorCode=%s)", errorCode) in testShouldLog_randomSampling_loggingSuccess()
68 .that(errorCodeSampler.shouldLog(errorCode)) in testShouldLog_randomSampling_loggingSuccess()
88 int errorCode = 101; in testShouldLog_noSampling_errorCodeNotPresent() local
89 expect.withMessage("shouldLog(errorCode=%s)", errorCode) in testShouldLog_noSampling_errorCodeNotPresent()
90 .that(errorCodeSampler.shouldLog(errorCode)) in testShouldLog_noSampling_errorCodeNotPresent()
94 expect.withMessage("shouldLog(errorCode=%s)", errorCode) in testShouldLog_noSampling_errorCodeNotPresent()
[all …]
/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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/
DOdpServiceException.java29 public OdpServiceException(int errorCode) { in OdpServiceException() argument
30 this(errorCode, ""); in OdpServiceException()
33 public OdpServiceException(int errorCode, @NonNull String errorMessage) { in OdpServiceException() argument
34 super("Error code: " + errorCode + " message: " + errorMessage); in OdpServiceException()
35 mErrorCode = errorCode; in OdpServiceException()
38 public OdpServiceException(int errorCode, @NonNull Throwable cause) { in OdpServiceException() argument
39 this(errorCode, "", cause); in OdpServiceException()
43 int errorCode, @NonNull String errorMessage, @NonNull Throwable cause) { in OdpServiceException() argument
44 super("Error code: " + errorCode + " message: " + errorMessage, cause); in OdpServiceException()
45 mErrorCode = errorCode; in OdpServiceException()
/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/AdServices/adservices/tests/test-util/java/com/android/adservices/mockito/
DExtendedMockitoExpectations.java288 public static void verifyErrorLogUtilErrorWithAnyException(int errorCode, int ppapiName) { in verifyErrorLogUtilErrorWithAnyException() argument
289 verifyErrorLogUtilErrorWithAnyException(errorCode, ppapiName, times(1)); in verifyErrorLogUtilErrorWithAnyException()
306 int errorCode, int ppapiName, VerificationMode mode) { in verifyErrorLogUtilErrorWithAnyException() argument
307 verify(() -> ErrorLogUtil.e(any(), eq(errorCode), eq(ppapiName)), mode); in verifyErrorLogUtilErrorWithAnyException()
321 public static void verifyErrorLogUtilError(Throwable throwable, int errorCode, int ppapiName) { in verifyErrorLogUtilError() argument
322 verifyErrorLogUtilError(throwable, errorCode, ppapiName, times(1)); in verifyErrorLogUtilError()
338 Throwable throwable, int errorCode, int ppapiName, VerificationMode mode) { in verifyErrorLogUtilError() argument
339 verify(() -> ErrorLogUtil.e(throwable, errorCode, ppapiName), mode); in verifyErrorLogUtilError()
352 public static void verifyErrorLogUtilError(int errorCode, int ppapiName) { in verifyErrorLogUtilError() argument
353 verify(() -> ErrorLogUtil.e(errorCode, ppapiName)); in verifyErrorLogUtilError()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAuthenticationFailureEventInfo.java31 public final int errorCode; field in AuthenticationFailureEventInfo
34 int reasonCode, int errorCode) { in AuthenticationFailureEventInfo() argument
38 this.errorCode = errorCode; in AuthenticationFailureEventInfo()
47 sb.append(" errorCode: ").append(errorCode); in toString()
53 return Objects.hash(ssid, bssid, reasonCode, errorCode); in hashCode()
64 && errorCode == thatAuthenticationFailureEventInfo.errorCode in equals()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/errorlogging/
DAbstractAdServicesErrorLogger.java37 public void logError(int errorCode, int ppapiName) { in logError() argument
38 if (!isEnabled(errorCode)) { in logError()
42 logErrorInternal(errorCode, ppapiName, new Exception()); in logError()
46 public void logErrorWithExceptionInfo(Throwable tr, int errorCode, int ppapiName) { in logErrorWithExceptionInfo() argument
47 if (!isEnabled(errorCode)) { in logErrorWithExceptionInfo()
51 AdServicesErrorStats.builder().setErrorCode(errorCode).setPpapiName(ppapiName); in logErrorWithExceptionInfo()
58 protected abstract boolean isEnabled(int errorCode); in isEnabled() argument
61 void logErrorInternal(int errorCode, int ppapiName, Exception exception) { in logErrorInternal() argument
72 AdServicesErrorStats.builder().setErrorCode(errorCode).setPpapiName(ppapiName); in logErrorInternal()
DErrorCodeSampler.java79 for (int errorCode : errorCodeList.getErrorCodeList()) { in toErrorCodeToSampleInterval()
80 if (mErrorCodeToSampleInterval.containsKey(errorCode)) { in toErrorCodeToSampleInterval()
81 Log.e(TAG, String.format("Error code: %d present multiple times", errorCode)); in toErrorCodeToSampleInterval()
84 mErrorCodeToSampleInterval.put(errorCode, sampleInterval); in toErrorCodeToSampleInterval()
90 public boolean shouldLog(int errorCode) { in shouldLog() argument
92 if (mErrorCodeToSampleInterval.containsKey(errorCode)) { in shouldLog()
93 sampleInterval = mErrorCodeToSampleInterval.get(errorCode); in shouldLog()
101 errorCode, sampleInterval, logError)); in shouldLog()
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DOnDevicePersonalizationManager.java251 public void onError(int errorCode, int isolatedServiceErrorCode, in execute()
259 errorCode, in execute()
272 errorCode); in execute()
389 public void onError(int errorCode, int isolatedServiceErrorCode, in requestSurfacePackage()
397 errorCode, in requestSurfacePackage()
409 errorCode); in requestSurfacePackage()
448 private static String convertMessage(int errorCode, String message) { in convertMessage() argument
455 switch (errorCode) { in convertMessage()
463 sLogger.w(TAG + "Unexpected error code while creating exception: " + errorCode); in convertMessage()
469 int errorCode, int isolatedServiceErrorCode, String message) { in createException() argument
[all …]
DOnDevicePersonalizationException.java86 public OnDevicePersonalizationException(@ErrorCode int errorCode) { in OnDevicePersonalizationException() argument
87 mErrorCode = errorCode; in OnDevicePersonalizationException()
92 @ErrorCode int errorCode, String message) { in OnDevicePersonalizationException()
94 mErrorCode = errorCode; in OnDevicePersonalizationException()
99 @ErrorCode int errorCode, Throwable cause) { in OnDevicePersonalizationException()
101 mErrorCode = errorCode; in OnDevicePersonalizationException()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DSQLDatastoreManagerTest.java93 int errorCode = in runInTransactionWithResult_throwsException_logsDbVersion() local
98 eq(errorCode), in runInTransactionWithResult_throwsException_logsDbVersion()
119 int errorCode = AD_SERVICES_ERROR_REPORTED__ERROR_CODE__MEASUREMENT_DATASTORE_FAILURE; in runInTransactionWithResult_throwsDataStoreExceptionExceptionDisable_logsDbVersion() local
123 eq(errorCode), in runInTransactionWithResult_throwsDataStoreExceptionExceptionDisable_logsDbVersion()
149 int errorCode = AD_SERVICES_ERROR_REPORTED__ERROR_CODE__MEASUREMENT_DATASTORE_FAILURE; in runInTransactionWithResult_throwsDataStoreExceptionExceptionEnable_rethrows() local
153 eq(errorCode), in runInTransactionWithResult_throwsDataStoreExceptionExceptionEnable_rethrows()
171 int errorCode = in runInTransaction_throwsException_logsDbVersion() local
176 eq(errorCode), in runInTransaction_throwsException_logsDbVersion()
197 int errorCode = AD_SERVICES_ERROR_REPORTED__ERROR_CODE__MEASUREMENT_DATASTORE_FAILURE; in runInTransaction_throwsDataStoreExceptionExceptionDisable_logsDbVersion() local
201 eq(errorCode), in runInTransaction_throwsDataStoreExceptionExceptionDisable_logsDbVersion()
[all …]
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/logging/
DErrorLogUtilCall.java47 public ErrorLogUtilCall(Class<? extends Throwable> throwable, int errorCode, int ppapiName) { in ErrorLogUtilCall() argument
48 this(throwable, errorCode, ppapiName, DEFAULT_TIMES); in ErrorLogUtilCall()
53 Class<? extends Throwable> throwable, int errorCode, int ppapiName, int times) { in ErrorLogUtilCall() argument
56 mErrorCode = errorCode; in ErrorLogUtilCall()
64 public static ErrorLogUtilCall createWithNoException(int errorCode, int ppapiName, int times) { in createWithNoException() argument
65 return new ErrorLogUtilCall(None.class, errorCode, ppapiName, times); in createWithNoException()
82 annotation.errorCode() == UNDEFINED_INT_PARAM in createFrom()
84 : annotation.errorCode(), in createFrom()
111 annotation.errorCode() == UNDEFINED_INT_PARAM in createFrom()
113 : annotation.errorCode(), in createFrom()
[all …]
/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/HealthFitness/framework/java/android/health/connect/
DHealthConnectException.java83 public HealthConnectException(@ErrorCode int errorCode, @Nullable String message) { in HealthConnectException() argument
85 mErrorCode = errorCode; in HealthConnectException()
97 @ErrorCode int errorCode, @Nullable String message, @Nullable Throwable cause) { in HealthConnectException()
99 mErrorCode = errorCode; in HealthConnectException()
108 public HealthConnectException(@ErrorCode int errorCode) { in HealthConnectException() argument
109 this(errorCode, null); in HealthConnectException()
/packages/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/
DSatelliteControl.java137 final AtomicReference<Integer> errorCode = new AtomicReference<>(); in requestIsEnabledApp() local
154 errorCode.set(exception.getErrorCode()); in requestIsEnabledApp()
157 + SatelliteErrorUtils.mapError(errorCode.get())); in requestIsEnabledApp()
165 final AtomicReference<Integer> errorCode = new AtomicReference<>(); in requestIsDemoModeEnabledApp() local
182 errorCode.set(exception.getErrorCode()); in requestIsDemoModeEnabledApp()
185 + SatelliteErrorUtils.mapError(errorCode.get())); in requestIsDemoModeEnabledApp()
193 final AtomicReference<Integer> errorCode = new AtomicReference<>(); in requestIsSupportedApp() local
210 errorCode.set(exception.getErrorCode()); in requestIsSupportedApp()
213 + SatelliteErrorUtils.mapError(errorCode.get())); in requestIsSupportedApp()
221 final AtomicReference<Integer> errorCode = new AtomicReference<>(); in requestCapabilitiesApp() local
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/exceptions/
DAdServicesNetworkException.java84 public AdServicesNetworkException(@ErrorCode int errorCode) { in AdServicesNetworkException() argument
87 checkErrorCode(errorCode); in AdServicesNetworkException()
88 mErrorCode = errorCode; in AdServicesNetworkException()
112 private void checkErrorCode(@ErrorCode int errorCode) { in checkErrorCode() argument
113 switch (errorCode) { in checkErrorCode()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/examplestore/
DExampleStoreServiceProvider.java101 public void onStartQueryFailure(int errorCode) { in getExampleIterator()
102 LogUtil.e(TAG, "Could not acquire iterator: " + errorCode); in getExampleIterator()
103 asyncResult.add(new CallbackResult(null, errorCode)); in getExampleIterator()
126 CallbackResult(IExampleStoreIterator iterator, int errorCode) { in CallbackResult() argument
128 mErrorCode = errorCode; in CallbackResult()
155 public void onStartQueryFailure(int errorCode) { in runExampleStoreStartQuery() argument
156 LogUtil.e(TAG, "Could not acquire iterator: " + errorCode); in runExampleStoreStartQuery()
162 "StartQuery failed: " + errorCode)); in runExampleStoreStartQuery()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkException.java161 public ThreadNetworkException(@ErrorCode int errorCode, @NonNull String message) { in ThreadNetworkException() argument
163 if (errorCode < ERROR_MIN || errorCode > ERROR_MAX) { in ThreadNetworkException()
166 + errorCode in ThreadNetworkException()
173 this.mErrorCode = errorCode; in ThreadNetworkException()
/packages/modules/NeuralNetworks/runtime/test/
DTestStatsdTelemetry.cpp39 .errorCode = ANEURALNETWORKS_NO_ERROR,
108 key2.errorCode = ANEURALNETWORKS_DEAD_OBJECT; in TEST()
271 key.errorCode = error; in TEST()
295 key.errorCode = error; in TEST()
308 .errorCode = ANEURALNETWORKS_NO_ERROR, in TEST()
324 EXPECT_EQ(key.errorCode, info.errorCode); in TEST()
348 .errorCode = ANEURALNETWORKS_OP_FAILED, in TEST()
364 EXPECT_EQ(key.errorCode, info.errorCode); in TEST()
388 .errorCode = ANEURALNETWORKS_NO_ERROR, in TEST()
404 EXPECT_EQ(key.errorCode, info.errorCode); in TEST()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/common/src/com/android/adservices/errorlogging/
DAdServicesErrorLoggerImplTest.java172 int errorCode = 1; in testIsEnabled_customSamplerEnabled_returnsTrue() local
173 when(mErrorCodeSampler.shouldLog(errorCode)).thenReturn(true); in testIsEnabled_customSamplerEnabled_returnsTrue()
177 expect.withMessage("shouldLog(%s)", errorCode) in testIsEnabled_customSamplerEnabled_returnsTrue()
178 .that(errorLogger.isEnabled(errorCode)) in testIsEnabled_customSamplerEnabled_returnsTrue()
185 int errorCode = 1; in testIsEnabled_customSamplerEnabled_returnsFalse() local
186 when(mErrorCodeSampler.shouldLog(errorCode)).thenReturn(false); in testIsEnabled_customSamplerEnabled_returnsFalse()
190 expect.withMessage("shouldLog(%s)", errorCode) in testIsEnabled_customSamplerEnabled_returnsFalse()
191 .that(errorLogger.isEnabled(errorCode)) in testIsEnabled_customSamplerEnabled_returnsFalse()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DDeviceOwnerProvisioningController.java87 protected String getErrorMsgId(AbstractProvisioningTask task, int errorCode) { in getErrorMsgId() argument
91 switch (errorCode) { in getErrorMsgId()
98 switch (errorCode) { in getErrorMsgId()
105 switch (errorCode) { in getErrorMsgId()
112 switch (errorCode) { in getErrorMsgId()
122 protected boolean getRequireFactoryReset(AbstractProvisioningTask task, int errorCode) { in getRequireFactoryReset() argument
DAbstractProvisioningController.java104 protected abstract String 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
176 mProvisioningAnalyticsTracker.logProvisioningError(mContext, task, errorCode); in onError()
178 mCallback.error(getErrorTitle(), getErrorMsgId(task, errorCode), in onError()
179 getRequireFactoryReset(task, errorCode)); in onError()
182 getErrorTitle(), errorMessage, getRequireFactoryReset(task, errorCode)); in onError()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/errorlogging/
DErrorLogUtil.java31 public static void e(Throwable tr, int errorCode, int ppapiName) { in e() argument
32 FieldHolder.ERROR_LOGGER.logErrorWithExceptionInfo(tr, errorCode, ppapiName); in e()
36 public static void e(int errorCode, int ppapiName) { in e() argument
37 FieldHolder.ERROR_LOGGER.logError(errorCode, ppapiName); in e()
/packages/modules/OnDevicePersonalization/framework/java/android/federatedcompute/
DFederatedComputeManager.java96 public void onFailure(int errorCode) { in schedule()
100 errorCode); in schedule()
104 new FederatedComputeException(errorCode))); in schedule()
142 public void onFailure(int errorCode) { in cancel()
146 errorCode); in cancel()
150 new FederatedComputeException(errorCode))); in cancel()
/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()

12345678910>>...17