/system/update_engine/common/ |
D | error_code_utils.cc | 26 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 …]
|
D | action_processor.h | 92 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/ |
D | metrics_utils.cc | 34 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 …]
|
D | payload_state.cc | 239 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 …]
|
D | update_boot_flags_action.cc | 32 processor_->ActionComplete(this, ErrorCode::kSuccess); in PerformAction() 37 processor_->ActionComplete(this, ErrorCode::kSuccess); in PerformAction() 80 processor_->ActionComplete(this, ErrorCode::kSuccess); in CompleteUpdateBootFlags()
|
D | omaha_request_action_unittest.cc | 251 : 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 …]
|
D | update_attempter_android.h | 77 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);
|
D | omaha_request_action.h | 85 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/ |
D | chromeos_policy.cc | 45 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 …]
|
D | api_restricted_downloads_policy_impl.cc | 19 using chromeos_update_engine::ErrorCode; 30 ErrorCode* result, in UpdateCanBeApplied() 37 *result = ErrorCode::kOmahaUpdateDeferredPerPolicy; in UpdateCanBeApplied()
|
/system/security/keystore/include/keystore/ |
D | keystore_return_types.h | 26 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/ |
D | payload_metadata.cc | 66 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 …]
|
D | filesystem_verifier_action.cc | 57 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 …]
|
D | delta_performer.h | 83 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 …]
|
D | postinstall_runner_action.cc | 65 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 …]
|
D | postinstall_runner_action_unittest.cc | 55 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 …]
|
D | filesystem_verifier_action_unittest.cc | 59 : 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 …]
|
D | delta_performer.cc | 290 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/ |
D | Keymaster.cpp | 38 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 …]
|
D | Keymaster.h | 49 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/ |
D | keymaster_enforcement.cpp | 43 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 …]
|
D | legacy_keymaster_device_wrapper.h | 31 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/ |
D | TrustyKeymaster3Device.h | 35 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/ |
D | keystore_hidl_support.h | 50 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()
|
D | AndroidKeymaster3Device.h | 36 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;
|