Home
last modified time | relevance | path

Searched refs:ErrorCode (Results 1 – 25 of 134) sorted by relevance

123456

/system/update_engine/common/
Derror_code_utils.cc26 string ErrorCodeToString(ErrorCode code) { in ErrorCodeToString()
31 if ((static_cast<int>(code) & static_cast<int>(ErrorCode::kSpecialFlags)) && in ErrorCodeToString()
32 (static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags))) in ErrorCodeToString()
33 code = static_cast<ErrorCode>(static_cast<int>(code) & in ErrorCodeToString()
34 ~static_cast<int>(ErrorCode::kSpecialFlags)); in ErrorCodeToString()
36 case ErrorCode::kSuccess: in ErrorCodeToString()
38 case ErrorCode::kError: in ErrorCodeToString()
40 case ErrorCode::kOmahaRequestError: in ErrorCodeToString()
42 case ErrorCode::kOmahaResponseHandlerError: in ErrorCodeToString()
44 case ErrorCode::kFilesystemCopierError: in ErrorCodeToString()
[all …]
Daction_processor.h92 virtual void ActionComplete(AbstractAction* actionptr, ErrorCode code);
100 void StartNextActionOrFinish(ErrorCode code);
112 ErrorCode suspended_error_code_{ErrorCode::kSuccess};
134 [[maybe_unused]] ErrorCode code) {} in ProcessingDone()
145 [[maybe_unused]] ErrorCode code) {} in ActionCompleted()
/system/update_engine/
Dmetrics_utils.cc33 metrics::AttemptResult GetAttemptResult(ErrorCode code) { in GetAttemptResult()
34 ErrorCode base_code = static_cast<ErrorCode>( in GetAttemptResult()
35 static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags)); in GetAttemptResult()
38 case ErrorCode::kSuccess: in GetAttemptResult()
41 case ErrorCode::kUpdatedButNotActive: in GetAttemptResult()
44 case ErrorCode::kDownloadTransferError: in GetAttemptResult()
45 case ErrorCode::kInternalLibCurlError: in GetAttemptResult()
46 case ErrorCode::kUnresolvedHostError: in GetAttemptResult()
47 case ErrorCode::kUnresolvedHostRecovered: in GetAttemptResult()
50 case ErrorCode::kDownloadInvalidMetadataSize: in GetAttemptResult()
[all …]
Dlibcurl_http_fetcher_unittest.cc109 libcurl_fetcher_.GetAuxiliaryErrorCode() == ErrorCode::kSuccess) { in TEST_F()
114 ErrorCode::kUnresolvedHostError); in TEST_F()
121 ErrorCode::kUnresolvedHostError); in TEST_F()
146 libcurl_fetcher_.GetAuxiliaryErrorCode() == ErrorCode::kSuccess) { in TEST_F()
151 ErrorCode::kUnresolvedHostError); in TEST_F()
166 ErrorCode::kUnresolvedHostError) { in TEST_F()
171 ErrorCode::kUnresolvedHostRecovered); in TEST_F()
178 ErrorCode::kUnresolvedHostRecovered); in TEST_F()
Ddownload_action.cc51 code_(ErrorCode::kSuccess), in DownloadAction()
109 ErrorCode error; in LoadCachedManifest()
226 if (code_ != ErrorCode::kSuccess) { in ReceivedBytes()
247 ErrorCode code = in TransferComplete()
248 successful ? ErrorCode::kSuccess : ErrorCode::kDownloadTransferError; in TransferComplete()
249 if (code == ErrorCode::kSuccess) { in TransferComplete()
252 if (code == ErrorCode::kSuccess) { in TransferComplete()
271 if (code == ErrorCode::kSuccess && HasOutputPipe()) in TransferComplete()
277 if (code_ != ErrorCode::kSuccess) { in TransferTerminated()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dreturn.h30 enum class ErrorCode : int32_t { enum
31 SUCCESS = static_cast<int32_t>(FiemapStatus::ErrorCode::SUCCESS),
32 ERROR = static_cast<int32_t>(FiemapStatus::ErrorCode::ERROR),
33 NO_SPACE = static_cast<int32_t>(FiemapStatus::ErrorCode::NO_SPACE),
35 ErrorCode error_code() const { return error_code_; } in error_code()
36 bool is_ok() const { return error_code() == ErrorCode::SUCCESS; } in is_ok()
42 static Return Ok() { return Return(ErrorCode::SUCCESS); } in Ok()
43 static Return Error() { return Return(ErrorCode::ERROR); } in Error()
44 static Return NoSpace(uint64_t size) { return Return(ErrorCode::NO_SPACE, size); } in NoSpace()
50 ErrorCode error_code_;
[all …]
/system/core/fs_mgr/libsnapshot/
Dreturn.cpp25 case ErrorCode::ERROR: in string()
27 case ErrorCode::SUCCESS: in string()
29 case ErrorCode::NO_SPACE: in string()
34 Return::ErrorCode Return::FromFiemapStatusErrorCode(FiemapStatus::ErrorCode error_code) { in FromFiemapStatusErrorCode()
36 case FiemapStatus::ErrorCode::SUCCESS: in FromFiemapStatusErrorCode()
37 case FiemapStatus::ErrorCode::ERROR: in FromFiemapStatusErrorCode()
38 case FiemapStatus::ErrorCode::NO_SPACE: in FromFiemapStatusErrorCode()
39 return static_cast<ErrorCode>(error_code); in FromFiemapStatusErrorCode()
41 return ErrorCode::ERROR; in FromFiemapStatusErrorCode()
/system/security/keystore2/src/km_compat/
Dkm_compat_type_conversion.h30 static KMV1::ErrorCode convert(V4_0::ErrorCode error) { in convert()
32 case V4_0::ErrorCode::OK: in convert()
33 return KMV1::ErrorCode::OK; in convert()
34 case V4_0::ErrorCode::ROOT_OF_TRUST_ALREADY_SET: in convert()
35 return KMV1::ErrorCode::ROOT_OF_TRUST_ALREADY_SET; in convert()
36 case V4_0::ErrorCode::UNSUPPORTED_PURPOSE: in convert()
37 return KMV1::ErrorCode::UNSUPPORTED_PURPOSE; in convert()
38 case V4_0::ErrorCode::INCOMPATIBLE_PURPOSE: in convert()
39 return KMV1::ErrorCode::INCOMPATIBLE_PURPOSE; in convert()
40 case V4_0::ErrorCode::UNSUPPORTED_ALGORITHM: in convert()
[all …]
Dkm_compat.cpp263 ScopedAStatus convertErrorCode(KMV1::ErrorCode result) { in convertErrorCode()
264 if (result == KMV1::ErrorCode::OK) { in convertErrorCode()
275 static KMV1::ErrorCode toErrorCode(const ScopedAStatus& status) { in toErrorCode()
277 return static_cast<KMV1::ErrorCode>(status.getServiceSpecificError()); in toErrorCode()
279 return KMV1::ErrorCode::UNKNOWN_ERROR; in toErrorCode()
439 return convertErrorCode(KMV1::ErrorCode::UNKNOWN_ERROR); in addRngEntropy()
471 KMV1::ErrorCode errorCode; in generateKey()
482 return convertErrorCode(KMV1::ErrorCode::UNKNOWN_ERROR); in generateKey()
484 if (errorCode == KMV1::ErrorCode::OK) { in generateKey()
486 if (std::holds_alternative<KMV1::ErrorCode>(cert)) { in generateKey()
[all …]
/system/core/fs_mgr/libfiemap/
Dfiemap_status.cpp23 if (error_code() == ErrorCode::ERROR) { in string()
31 FiemapStatus::ErrorCode FiemapStatus::CastErrorCode(int error_code) { in CastErrorCode()
33 case static_cast<int32_t>(ErrorCode::SUCCESS): in CastErrorCode()
34 case static_cast<int32_t>(ErrorCode::NO_SPACE): in CastErrorCode()
35 return static_cast<ErrorCode>(error_code); in CastErrorCode()
36 case static_cast<int32_t>(ErrorCode::ERROR): in CastErrorCode()
38 return ErrorCode::ERROR; in CastErrorCode()
/system/security/keystore/include/keystore/
Dkeystore_return_types.h43 KeyStoreServiceReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode()
51 inline KeyStoreServiceReturnCode& operator=(const ErrorCode& errorCode) {
65 errorCode_ == static_cast<int32_t>(ErrorCode::OK); in isOk()
74 errorCode_ == static_cast<int32_t>(ErrorCode::OK)) ||
77 inline bool operator==(const ErrorCode& rhs) const {
78 return (rhs == ErrorCode::OK &&
83 inline bool operator!=(const ErrorCode& rhs) const { return !(*this == rhs); }
92 inline bool operator==(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
98 inline bool operator!=(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
120 KeyStoreNativeReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreNativeReturnCode()
[all …]
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dfiemap_status.h29 enum class ErrorCode : int32_t { enum
47 static FiemapStatus Error() { return FiemapStatus(ErrorCode::ERROR); } in Error()
50 static FiemapStatus Ok() { return FiemapStatus(ErrorCode::SUCCESS); } in Ok()
52 ErrorCode error_code() const { return error_code_; } in error_code()
53 bool is_ok() const { return error_code() == ErrorCode::SUCCESS; } in is_ok()
60 FiemapStatus(ErrorCode code) : error_code_(code) {} in FiemapStatus()
63 ErrorCode error_code_;
65 static ErrorCode CastErrorCode(int error);
/system/update_engine/payload_consumer/
Ddelta_performer.cc195 ErrorCode* error) { in HandleOpResult()
203 if (*error == ErrorCode::kSuccess) in HandleOpResult()
204 *error = ErrorCode::kDownloadOperationExecutionError; in HandleOpResult()
291 const brillo::Blob& payload, ErrorCode* error) { in ParsePayloadMetadata()
292 *error = ErrorCode::kSuccess; in ParsePayloadMetadata()
313 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadMetadata()
329 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadMetadata()
358 *error = ErrorCode::kDownloadMetadataSignatureVerificationError; in ParsePayloadMetadata()
368 if (*error != ErrorCode::kSuccess) { in ParsePayloadMetadata()
378 *error = ErrorCode::kSuccess; in ParsePayloadMetadata()
[all …]
Dpayload_metadata.cc52 const brillo::Blob& payload, ErrorCode* error) { in ParsePayloadHeader()
57 const unsigned char* payload, size_t size, ErrorCode* error) { in ParsePayloadHeader()
76 *error = ErrorCode::kDownloadInvalidMetadataMagicString; in ParsePayloadHeader()
98 *error = ErrorCode::kUnsupportedMajorPayloadVersion; in ParsePayloadHeader()
114 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadHeader()
131 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadHeader()
138 ErrorCode error; in ParsePayloadHeader()
156 ErrorCode PayloadMetadata::ValidateMetadataSignature( in ValidateMetadataSignature()
161 return ErrorCode::kDownloadMetadataSignatureError; in ValidateMetadataSignature()
174 return ErrorCode::kDownloadMetadataSignatureError; in ValidateMetadataSignature()
[all …]
Dfilesystem_verifier_action.cc97 abort_action_completer.set_code(ErrorCode::kSuccess); in PerformAction()
107 Cleanup(ErrorCode::kSuccess); // error code is ignored if canceled_ is true. in TerminateProcessing()
110 void FilesystemVerifierAction::Cleanup(ErrorCode code) { in Cleanup()
125 if (code == ErrorCode::kSuccess && HasOutputPipe()) in Cleanup()
212 Cleanup(ErrorCode::kVerityCalculationError); in WriteVerityAndHashPartition()
219 Cleanup(ErrorCode::kFilesystemVerifierError); in WriteVerityAndHashPartition()
229 Cleanup(ErrorCode::kVerityCalculationError); in WriteVerityAndHashPartition()
238 Cleanup(ErrorCode::kVerityCalculationError); in WriteVerityAndHashPartition()
244 Cleanup(ErrorCode::kVerityCalculationError); in WriteVerityAndHashPartition()
275 Cleanup(ErrorCode::kFilesystemVerifierError); in HashPartition()
[all …]
Dpostinstall_runner_action.cc119 return CompletePostinstall(ErrorCode::kPostInstallMountError); in PerformAction()
132 return CompletePostinstall(ErrorCode::kPostinstallPowerwashError); in PerformAction()
205 return CompletePostinstall(ErrorCode::kSuccess); in PerformPartitionPostinstall()
226 return CompletePostinstall(ErrorCode::kPostInstallMountError); in PerformPartitionPostinstall()
237 return CompletePostinstall(ErrorCode::kSuccess); in PerformPartitionPostinstall()
248 CompletePostinstall(ErrorCode::kPostInstallMountError); in PerformPartitionPostinstall()
257 return CompletePostinstall(ErrorCode::kPostinstallRunnerError); in PerformPartitionPostinstall()
266 return CompletePostinstall(ErrorCode::kPostinstallRunnerError); in PerformPartitionPostinstall()
400 ErrorCode error_code = ErrorCode::kPostinstallRunnerError; in Cleanup()
406 error_code = ErrorCode::kPostinstallBootedFromFirmwareB; in Cleanup()
[all …]
Dpostinstall_runner_action_unittest.cc59 ErrorCode code) override { in ProcessingDone()
70 ErrorCode code) override { in ActionCompleted()
77 ErrorCode code_{ErrorCode::kError};
284 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
295 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
306 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
322 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
338 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
350 EXPECT_EQ(ErrorCode::kPostInstallMountError, processor_delegate_.code_); in TEST_F()
373 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
[all …]
Ddelta_performer.h91 ErrorCode error; in Write()
97 bool Write(const void* bytes, size_t count, ErrorCode* error) override;
122 ErrorCode VerifyPayload(const brillo::Blob& update_check_response_hash,
162 ErrorCode* error);
225 bool ParseManifestPartitions(ErrorCode* error);
237 ErrorCode* error);
251 ErrorCode ValidateManifest();
256 ErrorCode ValidateOperationHash(const InstallOperation& operation);
267 ErrorCode* error);
269 ErrorCode* error);
[all …]
Dpartition_writer.h48 ErrorCode* error);
52 ErrorCode* error);
82 const InstallOperation& operation, ErrorCode* error) override;
84 ErrorCode* error,
100 ErrorCode* error);
/system/update_engine/aosp/
Dcleanup_previous_update_action.cc91 void CleanupPreviousUpdateAction::ActionCompleted(ErrorCode error_code) { in ActionCompleted()
122 processor_->ActionComplete(this, ErrorCode::kError); in CheckTaskScheduled()
155 processor_->ActionComplete(this, ErrorCode::kSuccess); in StartActionInternal()
222 this, kIsRecovery ? ErrorCode::kSuccess : ErrorCode::kError); in CheckSlotMarkedSuccessfulOrSchedule()
250 processor_->ActionComplete(this, ErrorCode::kError); in CheckSlotMarkedSuccessfulOrSchedule()
298 ErrorCode error_code = ErrorCode::kSuccess; in WaitForMergeOrSchedule()
300 error_code = ErrorCode::kError; in WaitForMergeOrSchedule()
309 processor_->ActionComplete(this, ErrorCode::kSuccess); in WaitForMergeOrSchedule()
325 processor_->ActionComplete(this, ErrorCode::kError); in WaitForMergeOrSchedule()
331 processor_->ActionComplete(this, ErrorCode::kSuccess); in WaitForMergeOrSchedule()
[all …]
/system/incremental_delivery/incfs/include/
Dincfs.h183 using ErrorCode = IncFsErrorCode; variable
217 ErrorCode setOptions(const Control& control, MountOptions newOptions);
219 ErrorCode bindMount(std::string_view sourceDir, std::string_view targetDir);
220 ErrorCode unmount(std::string_view dir);
224 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId,
226 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode,
228 ErrorCode makeDir(const Control& control, std::string_view path, int mode = 0555);
229 ErrorCode makeDirs(const Control& control, std::string_view path, int mode = 0555);
238 ErrorCode link(const Control& control, std::string_view sourcePath, std::string_view targetPath);
239 ErrorCode unlink(const Control& control, std::string_view path);
[all …]
/system/security/keystore2/src/
Derror.rs33 …ndroid_hardware_security_keymint::aidl::android::hardware::security::keymint::ErrorCode::ErrorCode;
51 Km(ErrorCode),
61 Rp(ErrorCode),
93 Error::Km(ErrorCode(s.service_specific_error())) in map_km_error()
116 ExceptionCode::SERVICE_SPECIFIC => Error::Rp(ErrorCode(s.service_specific_error())), in map_rem_prov_error()
269 fn nested_nested_ec(ec: ErrorCode) -> anyhow::Result<()> { in nested_nested_ec()
273 fn nested_ec(ec: ErrorCode) -> anyhow::Result<()> { in nested_ec()
334 for ec in ErrorCode::UNKNOWN_ERROR.0..ErrorCode::ROOT_OF_TRUST_ALREADY_SET.0 { in keystore_error_test()
337 map_or_log_err(nested_ec(ErrorCode(ec)), |_| Err(BinderStatus::ok())) in keystore_error_test()
344 for ec in ErrorCode::UNKNOWN_ERROR.0..ErrorCode::ROOT_OF_TRUST_ALREADY_SET.0 { in keystore_error_test()
/system/keymaster/ng/include/
DAndroidKeymaster41Device.h37 using ::android::hardware::keymaster::V4_0::ErrorCode;
51 using V41ErrorCode = ::android::hardware::keymaster::V4_1::ErrorCode;
53 inline V41ErrorCode convert(ErrorCode error_code) { in convert()
57 inline ErrorCode convert(V41ErrorCode error_code) { in convert()
58 return static_cast<ErrorCode>(error_code); in convert()
93 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override { in addRngEntropy()
143 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override { in deleteKey()
147 Return<ErrorCode> deleteAllKeys() override { return super::deleteAllKeys(); } in deleteAllKeys()
149 Return<ErrorCode> destroyAttestationIds() override { return super::destroyAttestationIds(); } in destroyAttestationIds()
174 Return<ErrorCode> abort(uint64_t operationHandle) override { in abort()
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeymaster3Device.h35 using ::android::hardware::keymaster::V3_0::ErrorCode;
48 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
66 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
67 Return<ErrorCode> deleteAllKeys() override;
68 Return<ErrorCode> destroyAttestationIds() override;
76 Return<ErrorCode> abort(uint64_t operationHandle) override;
/system/vold/
DKeystore.h53 km::ErrorCode getErrorCode() const { return errorCode; } in getErrorCode()
70 KeystoreOperation() { errorCode = km::ErrorCode::UNKNOWN_ERROR; } in KeystoreOperation()
80 rhs.errorCode = km::ErrorCode::UNKNOWN_ERROR;
88 : ks2Operation{ks2Op}, errorCode{km::ErrorCode::OK} { in KeystoreOperation()
95 KeystoreOperation(km::ErrorCode errCode) : errorCode{errCode} {} in KeystoreOperation()
102 km::ErrorCode errorCode;

123456