Home
last modified time | relevance | path

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

12345678910>>...23

/aosp12/system/security/keystore/include/keystore/
H A Dkeystore_return_types.h43 KeyStoreServiceReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode() argument
45 KeyStoreServiceReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode() argument
50 explicit inline KeyStoreServiceReturnCode(const int32_t& errorCode) : errorCode_(errorCode) {} in KeyStoreServiceReturnCode() argument
52 errorCode_ = int32_t(errorCode);
56 errorCode_ = int32_t(errorCode);
60 errorCode_ = errorCode.errorCode_;
120 KeyStoreNativeReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreNativeReturnCode() argument
122 KeyStoreNativeReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreNativeReturnCode() argument
125 explicit inline KeyStoreNativeReturnCode(const int32_t& errorCode) : errorCode_(errorCode) {} in KeyStoreNativeReturnCode() argument
129 errorCode_ = int32_t(errorCode);
[all …]
/aosp12/packages/services/Car/cpp/computepipe/runner/graph/
H A DLocalPrebuiltGraph.cpp70 PrebuiltComputepipeRunner_ErrorCode errorCode = in handleConfigPhase() local
82 PrebuiltComputepipeRunner_ErrorCode errorCode = in handleConfigPhase() local
129 return static_cast<Status>(static_cast<int>(errorCode)); in handleExecutionPhase()
269 return static_cast<Status>(static_cast<int>(errorCode)); in GetStatus()
299 PrebuiltComputepipeRunner_ErrorCode errorCode = in SetInputStreamData() local
303 return static_cast<Status>(static_cast<int>(errorCode)); in SetInputStreamData()
316 PrebuiltComputepipeRunner_ErrorCode errorCode = in SetInputStreamPixelData() local
322 return static_cast<Status>(static_cast<int>(errorCode)); in SetInputStreamPixelData()
332 return static_cast<Status>(static_cast<int>(errorCode)); in StopGraphExecution()
338 return static_cast<Status>(static_cast<int>(errorCode)); in StartGraphProfiling()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/security/
H A DPasswordHelper.java99 int errorCode = NO_ERROR; in validatePassword() local
102 errorCode |= TOO_SHORT; 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()
155 errorCode |= CONTAINS_SEQUENTIAL_DIGITS; in validatePin()
159 return errorCode; in validatePin()
169 if ((errorCode & TOO_SHORT) > 0) { in convertPasswordErrorCodeToMessages()
179 if ((errorCode & CONTAINS_NON_DIGITS) > 0) { in convertPinErrorCodeToMessages()
[all …]
/aosp12/system/chre/core/
H A Dwifi_request_manager.cc182 uint8_t errorCode; in handleScanMonitorStateChange() member
194 cbState.errorCode = errorCode; in handleScanMonitorStateChange()
203 uint8_t errorCode; in handleScanResponse() member
215 cbState.errorCode = errorCode; in handleScanResponse()
382 event->errorCode = errorCode; in postScanMonitorAsyncResultEvent()
418 event->errorCode = errorCode; in postScanRequestAsyncResultEvent()
459 enabled, errorCode); in handleScanMonitorStateChangeSync()
514 errorCode = CHRE_ERROR; in handleScanResponseSync()
521 errorCode); in handleScanResponseSync()
563 event->errorCode = errorCode; in postRangingAsyncResult()
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A 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()
/aosp12/frameworks/base/keystore/java/android/security/
H A 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()
334 return new KeyStoreException(errorCode, "System error"); in getKeyStoreException()
338 return new KeyStoreException(errorCode, "Key not found"); in getKeyStoreException()
344 return new KeyStoreException(errorCode, String.valueOf(errorCode)); in getKeyStoreException()
348 switch (errorCode) { in getKeyStoreException()
352 return new KeyStoreException(errorCode, in getKeyStoreException()
355 return new KeyStoreException(errorCode, in getKeyStoreException()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/
H A DParseInputAndResultTest.kt77 fun errorCode() { regex
78 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE regex
79 val result = input.error<Any?>(errorCode)
81 assertThat(result.errorCode).isEqualTo(errorCode)
98 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE regex
100 val result = input.error<Any?>(errorCode, errorMessage)
102 assertThat(result.errorCode).isEqualTo(errorCode)
109 val errorCode = PackageManager.INSTALL_FAILED_UPDATE_INCOMPATIBLE regex
114 assertThat(result.errorCode).isEqualTo(errorCode)
126 assertThat(result.errorCode).isEqualTo(errorCode)
[all …]
/aosp12/system/chre/pal/tests/src/
H A Dwifi_pal_impl_test.cc63 gTest->scanResponseCallback(pending, errorCode); in chrePalScanResponseCallback()
73 void chrePalRangingEventCallback(uint8_t errorCode, in chrePalRangingEventCallback() argument
76 gTest->rangingEventCallback(errorCode, event); in chrePalRangingEventCallback()
116 errorCode); in scanMonitorStatusChangeCallback()
117 if (errorCode == CHRE_ERROR_LAST) { in scanMonitorStatusChangeCallback()
119 errorCode = CHRE_ERROR; in scanMonitorStatusChangeCallback()
123 errorCode_ = errorCode; in scanMonitorStatusChangeCallback()
129 errorCode); in scanResponseCallback()
130 if (errorCode == CHRE_ERROR_LAST) { in scanResponseCallback()
132 errorCode = CHRE_ERROR; in scanResponseCallback()
[all …]
H A Dgnss_pal_impl_test.cc66 gTest->locationStatusChangeCallback(enabled, errorCode); in chrePalLocationStatusChangeCallback()
78 gTest->measurementStatusChangeCallback(enabled, errorCode); in chrePalMeasurementStatusChangeCallback()
182 uint8_t errorCode) { in locationStatusChangeCallback() argument
184 errorCode); in locationStatusChangeCallback()
185 if (errorCode == CHRE_ERROR_LAST) { in locationStatusChangeCallback()
187 errorCode = CHRE_ERROR; in locationStatusChangeCallback()
190 errorCode_ = errorCode; in locationStatusChangeCallback()
209 enabled, errorCode); in measurementStatusChangeCallback()
210 if (errorCode == CHRE_ERROR_LAST) { in measurementStatusChangeCallback()
212 errorCode = CHRE_ERROR; in measurementStatusChangeCallback()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
H A 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()
H A 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()
/aosp12/frameworks/base/core/java/android/os/
H A 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()
/aosp12/system/chre/core/include/chre/core/
H A Dwifi_request_manager.h116 void handleRangingEvent(uint8_t errorCode,
129 void handleScanMonitorStateChange(bool enabled, uint8_t errorCode);
141 void handleScanResponse(bool pending, uint8_t errorCode);
320 bool enable, uint8_t errorCode,
332 uint8_t errorCode,
348 uint8_t errorCode, const void *cookie);
358 bool success, uint8_t errorCode,
382 void handleScanMonitorStateChangeSync(bool enabled, uint8_t errorCode);
396 void handleScanResponseSync(bool pending, uint8_t errorCode);
406 bool postRangingAsyncResult(uint8_t errorCode);
[all …]
/aosp12/frameworks/base/core/java/android/net/metrics/
H A 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()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A 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()
/aosp12/frameworks/base/identity/java/android/security/identity/
H A 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 …]
H A DCredstoreIdentityCredential.java107 + e.errorCode, e); in ensureEphemeralKeyPair()
134 + e.errorCode, e); in setReaderEphemeralPublicKey()
236 + e.errorCode, e); in getCredentialKeyCertificateChain()
277 + e.errorCode, e); in getCredstoreOperationHandle()
334 + e.errorCode, e); in getEntries()
368 + e.errorCode, e); in setAvailableAuthenticationKeys()
395 + e.errorCode, e); in getAuthKeysNeedingCertification()
416 + e.errorCode, e); in storeStaticAuthenticationData()
458 + e.errorCode, e); in getAuthenticationDataUsageCount()
488 + e.errorCode, e); in delete()
[all …]
/aosp12/frameworks/base/core/java/android/hardware/camera2/impl/
H A 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()
/aosp12/system/security/keystore2/src/km_compat/
H A Dkm_compat.cpp462 KMV1::ErrorCode errorCode; in generateKey() local
498 KMV1::ErrorCode errorCode; in importKey() local
545 KMV1::ErrorCode errorCode; in importWrappedKey() local
567 V4_0_ErrorCode errorCode; in upgradeKey() local
630 KMV1::ErrorCode errorCode; in begin() local
750 KMV1::ErrorCode errorCode; in updateAad() local
841 KMV1::ErrorCode errorCode; in finish() local
879 KMV1::ErrorCode errorCode; in generateTimeStamp() local
999 return errorCode; in makeCert()
1148 return errorCode; in signCertificate()
[all …]
/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
H A 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()
/aosp12/hardware/interfaces/keymaster/4.1/vts/functional/
H A DKeymaster4_1HidlTest.h47 ErrorCode errorCode = convert( in GenerateKeyData() local
49 return {errorCode, keyData}; in GenerateKeyData()
58 ErrorCode errorCode; in CreateTestKeys() local
62 std::tie(errorCode, aesKeyData) = in CreateTestKeys()
69 EXPECT_EQ(expectedReturn, errorCode); in CreateTestKeys()
73 std::tie(errorCode, hmacKeyData) = in CreateTestKeys()
80 EXPECT_EQ(expectedReturn, errorCode); in CreateTestKeys()
84 std::tie(errorCode, rsaKeyData) = in CreateTestKeys()
91 EXPECT_EQ(expectedReturn, errorCode); in CreateTestKeys()
95 std::tie(errorCode, ecdsaKeyData) = in CreateTestKeys()
[all …]
/aosp12/system/chre/chpp/test/
H A Dwwan_convert_test.cpp80 .errorCode = 0,
85 .errorCode = 0,
193 .errorCode = 2, in TEST()
210 EXPECT_EQ(chpp->errorCode, chreResult.errorCode); in TEST()
237 EXPECT_EQ(chre->errorCode, chpp.errorCode); in TEST()
261 EXPECT_EQ(chpp->errorCode, kChreResultOneCell.errorCode); in TEST()
299 EXPECT_EQ(chre->errorCode, chpp->errorCode); in TEST()
300 EXPECT_EQ(chre->errorCode, kChreResultOneCell.errorCode); in TEST()
325 EXPECT_EQ(chpp->errorCode, kChreResultTwoCell.errorCode); in TEST()
375 EXPECT_EQ(chre->errorCode, chpp->errorCode); in TEST()
[all …]
/aosp12/system/vold/
H A DKeymaster.h54 km::ErrorCode getErrorCode() const { return errorCode; } in getErrorCode()
71 KeymasterOperation() { errorCode = km::ErrorCode::UNKNOWN_ERROR; } in KeymasterOperation()
80 errorCode = rhs.errorCode;
81 rhs.errorCode = km::ErrorCode::UNKNOWN_ERROR;
89 : ks2Operation{ks2Op}, errorCode{km::ErrorCode::OK} { in KeymasterOperation()
96 KeymasterOperation(km::ErrorCode errCode) : errorCode{errCode} {} in KeymasterOperation()
103 km::ErrorCode errorCode; variable
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A 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()
/aosp12/frameworks/base/core/java/android/nfc/tech/
H A 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()

12345678910>>...23