Home
last modified time | relevance | path

Searched refs:ErrorCode (Results 1 – 25 of 126) 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 void ActionComplete(AbstractAction* actionptr, ErrorCode code);
100 void StartNextActionOrFinish(ErrorCode code);
112 ErrorCode suspended_error_code_{ErrorCode::kSuccess};
134 ErrorCode code) {} in ProcessingDone()
144 ErrorCode code) {} in ActionCompleted()
/system/update_engine/
Dmetrics_utils.cc34 metrics::AttemptResult GetAttemptResult(ErrorCode code) { in GetAttemptResult()
35 ErrorCode base_code = static_cast<ErrorCode>( in GetAttemptResult()
36 static_cast<int>(code) & ~static_cast<int>(ErrorCode::kSpecialFlags)); in GetAttemptResult()
39 case ErrorCode::kSuccess: in GetAttemptResult()
42 case ErrorCode::kUpdatedButNotActive: in GetAttemptResult()
45 case ErrorCode::kDownloadTransferError: in GetAttemptResult()
48 case ErrorCode::kDownloadInvalidMetadataSize: in GetAttemptResult()
49 case ErrorCode::kDownloadInvalidMetadataMagicString: in GetAttemptResult()
50 case ErrorCode::kDownloadMetadataSignatureError: in GetAttemptResult()
51 case ErrorCode::kDownloadMetadataSignatureVerificationError: in GetAttemptResult()
[all …]
Dpayload_state.cc239 CollectAndReportAttemptMetrics(ErrorCode::kSuccess); in UpdateSucceeded()
258 void PayloadState::UpdateFailed(ErrorCode error) { in UpdateFailed()
259 ErrorCode base_error = utils::GetBaseErrorCode(error); in UpdateFailed()
288 case ErrorCode::kPayloadHashMismatchError: in UpdateFailed()
289 case ErrorCode::kPayloadSizeMismatchError: in UpdateFailed()
290 case ErrorCode::kDownloadPayloadVerificationError: in UpdateFailed()
291 case ErrorCode::kDownloadPayloadPubKeyVerificationError: in UpdateFailed()
292 case ErrorCode::kSignedDeltaPayloadExpectedError: in UpdateFailed()
293 case ErrorCode::kDownloadInvalidMetadataMagicString: in UpdateFailed()
294 case ErrorCode::kDownloadSignatureMissingInManifest: in UpdateFailed()
[all …]
Dupdate_boot_flags_action.cc32 processor_->ActionComplete(this, ErrorCode::kSuccess); in PerformAction()
37 processor_->ActionComplete(this, ErrorCode::kSuccess); in PerformAction()
80 processor_->ActionComplete(this, ErrorCode::kSuccess); in CompleteUpdateBootFlags()
Domaha_request_action_unittest.cc251 : expected_code_(ErrorCode::kSuccess), in OmahaRequestActionTestProcessorDelegate()
257 ErrorCode code) override { in ProcessingDone()
263 ErrorCode code) override { in ActionCompleted()
281 EXPECT_EQ(ErrorCode::kSuccess, code); in ActionCompleted()
287 EXPECT_EQ(ErrorCode::kSuccess, code); in ActionCompleted()
290 ErrorCode expected_code_;
344 ErrorCode expected_code,
356 ErrorCode expected_code,
411 ErrorCode expected_code, in TestUpdateCheck()
488 ErrorCode expected_code, in TestUpdateCheck()
[all …]
Dupdate_attempter_android.h77 ErrorCode code) override;
81 ErrorCode code) override;
87 bool ShouldCancel(ErrorCode* cancel_reason) override;
102 void TerminateUpdateAndNotify(ErrorCode error_code);
139 void CollectAndReportUpdateMetricsOnUpdateFinished(ErrorCode error_code);
Domaha_request_action.h85 error_code(ErrorCode::kError) {} in OmahaEvent()
89 error_code(ErrorCode::kSuccess) {} in OmahaEvent()
90 OmahaEvent(Type in_type, Result in_result, ErrorCode in_error_code) in OmahaEvent()
95 ErrorCode error_code;
163 void ActionCompleted(ErrorCode code) override;
305 ErrorCode* error) const;
313 ErrorCode* error, const OmahaResponse& response) const;
/system/update_engine/update_manager/
Dchromeos_policy.cc45 using chromeos_update_engine::ErrorCode;
61 bool HandleErrorCode(ErrorCode err_code, int* url_num_error_p) { in HandleErrorCode()
68 case ErrorCode::kPayloadHashMismatchError: in HandleErrorCode()
69 case ErrorCode::kPayloadSizeMismatchError: in HandleErrorCode()
70 case ErrorCode::kDownloadPayloadVerificationError: in HandleErrorCode()
71 case ErrorCode::kDownloadPayloadPubKeyVerificationError: in HandleErrorCode()
72 case ErrorCode::kSignedDeltaPayloadExpectedError: in HandleErrorCode()
73 case ErrorCode::kDownloadInvalidMetadataMagicString: in HandleErrorCode()
74 case ErrorCode::kDownloadSignatureMissingInManifest: in HandleErrorCode()
75 case ErrorCode::kDownloadManifestParseError: in HandleErrorCode()
[all …]
Dapi_restricted_downloads_policy_impl.cc19 using chromeos_update_engine::ErrorCode;
30 ErrorCode* result, in UpdateCanBeApplied()
37 *result = ErrorCode::kOmahaUpdateDeferredPerPolicy; in UpdateCanBeApplied()
/system/security/keystore/include/keystore/
Dkeystore_return_types.h26 using keymaster::ErrorCode;
45 KeyStoreServiceReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode()
53 inline KeyStoreServiceReturnCode& operator=(const ErrorCode& errorCode) {
67 errorCode_ == static_cast<int32_t>(ErrorCode::OK); in isOk()
76 errorCode_ == static_cast<int32_t>(ErrorCode::OK)) ||
79 inline bool operator==(const ErrorCode& rhs) const {
80 return (rhs == ErrorCode::OK &&
85 inline bool operator!=(const ErrorCode& rhs) const { return !(*this == rhs); }
94 inline bool operator==(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
100 inline bool operator!=(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
[all …]
/system/update_engine/payload_consumer/
Dpayload_metadata.cc66 const brillo::Blob& payload, ErrorCode* error) { in ParsePayloadHeader()
75 *error = ErrorCode::kDownloadInvalidMetadataMagicString; in ParsePayloadHeader()
92 *error = ErrorCode::kUnsupportedMajorPayloadVersion; in ParsePayloadHeader()
98 *error = ErrorCode::kUnsupportedMajorPayloadVersion; in ParsePayloadHeader()
116 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadHeader()
127 *error = ErrorCode::kError; in ParsePayloadHeader()
137 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadHeader()
145 ErrorCode error; in ParsePayloadHeader()
159 ErrorCode PayloadMetadata::ValidateMetadataSignature( in ValidateMetadataSignature()
164 return ErrorCode::kDownloadMetadataSignatureError; in ValidateMetadataSignature()
[all …]
Dfilesystem_verifier_action.cc57 abort_action_completer.set_code(ErrorCode::kSuccess); in PerformAction()
67 Cleanup(ErrorCode::kSuccess); // error code is ignored if canceled_ is true. in TerminateProcessing()
70 void FilesystemVerifierAction::Cleanup(ErrorCode code) { in Cleanup()
77 if (code == ErrorCode::kSuccess && HasOutputPipe()) in Cleanup()
84 Cleanup(ErrorCode::kSuccess); in StartPartitionHashing()
113 Cleanup(ErrorCode::kFilesystemVerifierError); in StartPartitionHashing()
129 Cleanup(ErrorCode::kFilesystemVerifierError); in StartPartitionHashing()
140 Cleanup(ErrorCode::kVerityCalculationError); in StartPartitionHashing()
181 Cleanup(ErrorCode::kError); in ScheduleRead()
187 Cleanup(ErrorCode::kError); in OnReadDoneCallback()
[all …]
Ddelta_performer.h83 ErrorCode error; in Write()
89 bool Write(const void* bytes, size_t count, ErrorCode* error) override;
118 ErrorCode VerifyPayload(const brillo::Blob& update_check_response_hash,
153 ErrorCode* error);
172 ErrorCode* error);
185 bool ParseManifestPartitions(ErrorCode* error);
197 ErrorCode* error);
211 ErrorCode ValidateManifest();
216 ErrorCode ValidateOperationHash(const InstallOperation& operation);
229 ErrorCode* error);
[all …]
Dpostinstall_runner_action.cc65 return CompletePostinstall(ErrorCode::kPostinstallPowerwashError); in PerformAction()
88 return CompletePostinstall(ErrorCode::kSuccess); in PerformPartitionPostinstall()
93 return CompletePostinstall(ErrorCode::kSuccess); in PerformPartitionPostinstall()
104 return CompletePostinstall(ErrorCode::kSuccess); in PerformPartitionPostinstall()
113 return CompletePostinstall(ErrorCode::kPostinstallRunnerError); in PerformPartitionPostinstall()
139 return CompletePostinstall(ErrorCode::kPostinstallRunnerError); in PerformPartitionPostinstall()
148 return CompletePostinstall(ErrorCode::kPostinstallRunnerError); in PerformPartitionPostinstall()
306 ErrorCode error_code = ErrorCode::kPostinstallRunnerError; in CompletePartitionPostinstall()
312 error_code = ErrorCode::kPostinstallBootedFromFirmwareB; in CompletePartitionPostinstall()
319 error_code = ErrorCode::kPostinstallFirmwareRONotUpdatable; in CompletePartitionPostinstall()
[all …]
Dpostinstall_runner_action_unittest.cc55 ErrorCode code) override { in ProcessingDone()
66 ErrorCode code) override { in ActionCompleted()
73 ErrorCode code_{ErrorCode::kError};
253 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
264 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
274 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
289 EXPECT_EQ(ErrorCode::kSuccess, processor_delegate_.code_); in TEST_F()
300 EXPECT_EQ(ErrorCode::kPostinstallRunnerError, processor_delegate_.code_); in TEST_F()
313 EXPECT_EQ(ErrorCode::kPostinstallRunnerError, processor_delegate_.code_); in TEST_F()
321 EXPECT_EQ(ErrorCode::kPostinstallBootedFromFirmwareB, in TEST_F()
[all …]
Dfilesystem_verifier_action_unittest.cc59 : ran_(false), code_(ErrorCode::kError) {} in FilesystemVerifierActionTestDelegate()
61 void ProcessingDone(const ActionProcessor* processor, ErrorCode code) { in ProcessingDone()
69 ErrorCode code) { in ActionCompleted()
82 ErrorCode code() const { return code_; } in code()
88 ErrorCode code_;
161 EXPECT_EQ(ErrorCode::kError, delegate.code()); in DoTest()
162 return (ErrorCode::kError == delegate.code()); in DoTest()
165 ErrorCode expected_exit_code = ErrorCode::kNewRootfsVerificationError; in DoTest()
169 EXPECT_EQ(ErrorCode::kSuccess, delegate.code()); in DoTest()
209 ErrorCode code) { in ActionCompleted()
[all …]
Ddelta_performer.cc290 ErrorCode* error) { in HandleOpResult()
301 if (*error == ErrorCode::kSuccess) in HandleOpResult()
302 *error = ErrorCode::kDownloadOperationExecutionError; in HandleOpResult()
481 const brillo::Blob& payload, ErrorCode* error) { in ParsePayloadMetadata()
482 *error = ErrorCode::kSuccess; in ParsePayloadMetadata()
503 *error = ErrorCode::kDownloadInvalidMetadataSize; in ParsePayloadMetadata()
532 *error = ErrorCode::kDownloadMetadataSignatureVerificationError; in ParsePayloadMetadata()
540 if (*error != ErrorCode::kSuccess) { in ParsePayloadMetadata()
550 *error = ErrorCode::kSuccess; in ParsePayloadMetadata()
556 *error = ErrorCode::kDownloadManifestParseError; in ParsePayloadMetadata()
[all …]
/system/vold/
DKeymaster.cpp38 km::ErrorCode km_error; in updateCompletely()
39 auto hidlCB = [&](km::ErrorCode ret, uint32_t inputConsumedDelta, in updateCompletely()
43 if (km_error != km::ErrorCode::OK) return; in updateCompletely()
59 if (km_error != km::ErrorCode::OK) { in updateCompletely()
74 km::ErrorCode km_error; in finish()
75 auto hidlCb = [&](km::ErrorCode ret, const hidl_vec<km::KeyParameter>& /*ignored*/, in finish()
78 if (km_error != km::ErrorCode::OK) return; in finish()
89 if (km_error != km::ErrorCode::OK) { in finish()
121 km::ErrorCode km_error; in generateKey()
122 auto hidlCb = [&](km::ErrorCode ret, const hidl_vec<uint8_t>& keyBlob, in generateKey()
[all …]
DKeymaster.h49 explicit operator bool() const { return mError == km::ErrorCode::OK; }
50 km::ErrorCode errorCode() const { return mError; } in errorCode()
66 KeymasterOperation() : mDevice{nullptr}, mOpHandle{0}, mError{km::ErrorCode::UNKNOWN_ERROR} {} in KeymasterOperation()
76 rhs.mError = km::ErrorCode::UNKNOWN_ERROR;
83 : mDevice{d}, mOpHandle{h}, mError{km::ErrorCode::OK} {} in KeymasterOperation()
84 KeymasterOperation(km::ErrorCode error) : mDevice{nullptr}, mOpHandle{0}, mError{error} {} in KeymasterOperation()
91 km::ErrorCode mError;
/system/security/keystore/
Dkeymaster_enforcement.cpp43 static ErrorCode authorized_purpose(const KeyPurpose purpose, const AuthorizationSet& auth_set) { in authorized_purpose()
49 if (auth_set.Contains(TAG_PURPOSE, purpose)) return ErrorCode::OK; in authorized_purpose()
50 return ErrorCode::INCOMPATIBLE_PURPOSE; in authorized_purpose()
53 return ErrorCode::UNSUPPORTED_PURPOSE; in authorized_purpose()
72 ErrorCode KeymasterEnforcement::AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeOperation()
82 return ErrorCode::OK; in AuthorizeOperation()
89 return ErrorCode::INCOMPATIBLE_PURPOSE; in AuthorizeOperation()
101 ErrorCode KeymasterEnforcement::AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, in AuthorizeUpdateOrFinish()
110 return ErrorCode::OK; in AuthorizeUpdateOrFinish()
138 return ErrorCode::OK; in AuthorizeUpdateOrFinish()
[all …]
Dlegacy_keymaster_device_wrapper.h31 using ::android::hardware::keymaster::V3_0::ErrorCode;
51 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
69 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
70 Return<ErrorCode> deleteAllKeys() override;
71 Return<ErrorCode> destroyAttestationIds() override;
79 Return<ErrorCode> abort(uint64_t operationHandle) override;
/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/keymaster/ng/include/
Dkeystore_hidl_support.h50 inline static ErrorCode ksHandleHidlError(const Return<ErrorCode>& error, Msgs&&... msgs) { in ksHandleHidlError()
54 return ErrorCode::UNKNOWN_ERROR; in ksHandleHidlError()
56 return ErrorCode(error); in ksHandleHidlError()
59 inline static ErrorCode ksHandleHidlError(const Return<void>& error, Msgs&&... msgs) { in ksHandleHidlError()
63 return ErrorCode::UNKNOWN_ERROR; in ksHandleHidlError()
65 return ErrorCode::OK; in ksHandleHidlError()
DAndroidKeymaster3Device.h36 using ::android::hardware::keymaster::V3_0::ErrorCode;
63 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
81 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
82 Return<ErrorCode> deleteAllKeys() override;
83 Return<ErrorCode> destroyAttestationIds() override;
91 Return<ErrorCode> abort(uint64_t operationHandle) override;

123456