/system/update_engine/cros/ |
D | common_service.cc | 81 SystemState::Get()->update_attempter()->SetUpdateAttemptFlags(flags); in SetUpdateAttemptFlags() 100 *out_result = SystemState::Get()->update_attempter()->CheckForUpdate( in AttemptUpdate() 108 if (!SystemState::Get()->update_attempter()->CheckForInstall(dlc_ids, in AttemptInstall() 120 if (!SystemState::Get()->update_attempter()->Rollback(in_powerwash)) { in AttemptRollback() 130 bool can_rollback = SystemState::Get()->update_attempter()->CanRollback(); in CanRollback() 137 if (!SystemState::Get()->update_attempter()->ResetStatus()) { in ResetStatus() 148 if (!SystemState::Get()->update_attempter()->SetDlcActiveValue(is_active, in SetDlcActiveValue() 158 if (!SystemState::Get()->update_attempter()->GetStatus(out_status)) { in GetStatus() 166 if (!SystemState::Get()->update_attempter()->RebootIfNeeded()) { in RebootIfNeeded() 178 SystemState::Get()->device_policy(); in SetChannel() [all …]
|
D | update_attempter.cc | 151 prefs_ = SystemState::Get()->prefs(); in Init() 152 omaha_request_params_ = SystemState::Get()->request_params(); in Init() 172 SystemState::Get()->update_manager(); in ScheduleUpdates() 189 SystemState::Get()->boot_control()); in StartUpdater() 213 SystemState::Get()->metrics_reporter()->ReportCertificateCheckMetrics( in CertificateChecked() 219 Time now = SystemState::Get()->clock()->GetWallclockTime(); in CheckAndReportDailyMetrics() 220 if (SystemState::Get()->prefs()->Exists(kPrefsDailyMetricsLastReportedAt) && in CheckAndReportDailyMetrics() 221 SystemState::Get()->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics() 245 SystemState::Get()->prefs()->SetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics() 262 Time now = SystemState::Get()->clock()->GetWallclockTime(); in ReportOSAge() [all …]
|
D | omaha_response_handler_action.cc | 62 string current_url = SystemState::Get()->payload_state()->GetCurrentUrl(); in PerformAction() 78 OmahaRequestParams* const params = SystemState::Get()->request_params(); in PerformAction() 80 SystemState::Get()->payload_state(); in PerformAction() 117 SystemState::Get()->prefs(), update_check_response_hash); in PerformAction() 123 !DeltaPerformer::ResetUpdateProgress(SystemState::Get()->prefs(), in PerformAction() 127 !SystemState::Get()->prefs()->SetString( in PerformAction() 134 SystemState::Get()->boot_control()->GetCurrentSlot(); in PerformAction() 138 SystemState::Get()->boot_control()->GetCurrentSlot(); in PerformAction() 148 SystemState::Get()->prefs()->SetString(current_channel_key, in PerformAction() 161 SystemState::Get()->hardware()->GetMinKernelKeyVersion()); in PerformAction() [all …]
|
D | omaha_request_action.cc | 360 if (SystemState::Get()->prefs()->GetInt64(key, &last_ping) && in CalculatePingDays() 392 int powerwash_count = SystemState::Get()->hardware()->GetPowerwashCount(); in ShouldPing() 398 if (SystemState::Get()->hardware()->GetFirstActiveOmahaPingSent()) { in ShouldPing() 410 auto* prefs = SystemState::Get()->prefs(); in GetInstallDate() 443 if (!SystemState::Get()->hardware()->IsOOBEEnabled() || in GetInstallDate() 444 !SystemState::Get()->hardware()->IsOOBEComplete(&time_of_oobe)) { in GetInstallDate() 471 const auto* params = SystemState::Get()->request_params(); in StorePingReply() 483 auto* prefs = SystemState::Get()->prefs(); in StorePingReply() 527 const auto* params = SystemState::Get()->request_params(); in PerformAction() 587 auto* prefs = SystemState::Get()->prefs(); in UpdateLastPingDays() [all …]
|
D | excluder_chromeos.cc | 40 auto* prefs = SystemState::Get()->prefs(); in Exclude() 46 auto* prefs = SystemState::Get()->prefs(); in IsExcluded() 52 auto* prefs = SystemState::Get()->prefs(); in Reset()
|
D | payload_state.cc | 82 prefs_ = SystemState::Get()->prefs(); in Initialize() 83 powerwash_safe_prefs_ = SystemState::Get()->powerwash_safe_prefs(); in Initialize() 84 excluder_ = SystemState::Get()->update_attempter()->GetExcluder(); in Initialize() 199 const auto* clock = SystemState::Get()->clock(); in AttemptStarted() 208 SystemState::Get()->connection_manager(); in AttemptStarted() 238 SetUpdateTimestampEnd(SystemState::Get()->clock()->GetWallclockTime()); in UpdateSucceeded() 248 SystemState::Get()->metrics_reporter()->ReportRollbackMetrics( in UpdateSucceeded() 258 metrics_utils::SetSystemUpdatedMarker(SystemState::Get()->clock(), prefs_); in UpdateSucceeded() 281 SystemState::Get()->metrics_reporter()->ReportRollbackMetrics( in UpdateFailed() 411 if (SystemState::Get()->request_params()->interactive()) { in ShouldBackoffDownload() [all …]
|
D | download_action_chromeos.cc | 72 SystemState::Get()->p2p_manager()->FileGetPath(p2p_file_id_); in CloseP2PSharingFd() 85 P2PManager* p2p_manager = SystemState::Get()->p2p_manager(); in SetupP2PSharingFd() 299 if (SystemState::Get() != nullptr) { in StartDownloading() 301 SystemState::Get()->payload_state(); in StartDownloading() 314 FilePath path = SystemState::Get()->p2p_manager()->FileGetPath(file_id); in StartDownloading() 396 if (!p2p_visible_ && SystemState::Get() && delta_performer_.get() && in ReceivedBytes() 399 SystemState::Get()->p2p_manager()->FileMakeVisible(p2p_file_id_); in ReceivedBytes() 422 SystemState::Get()->payload_state()->NextPayload()) { in TransferComplete() 431 SystemState::Get()->payload_state()->GetCurrentUrl(); in TransferComplete()
|
D | daemon_chromeos.cc | 52 SystemState::Get()->update_attempter()->AddObserver(dbus_adaptor_.get()); in OnInit() 76 SystemState::Get()->update_attempter()->StartUpdater(); in OnDBusRegistered()
|
D | omaha_request_builder_xml.cc | 147 const auto* params = SystemState::Get()->request_params(); in GetAppBody() 174 auto* prefs = SystemState::Get()->prefs(); in GetAppBody() 231 const auto* prefs = SystemState::Get()->prefs(); in GetCohortArg() 269 const auto* params = SystemState::Get()->request_params(); in GetApp() 313 const auto* prefs = SystemState::Get()->prefs(); in GetApp() 403 const auto* params = SystemState::Get()->request_params(); in GetOs() 416 const auto* params = SystemState::Get()->request_params(); in GetRequest() 437 const auto* params = SystemState::Get()->request_params(); in GetApps()
|
D | connection_manager.cc | 66 SystemState::Get()->device_policy(); in IsUpdateAllowedOver() 71 UpdateAttempter* update_attempter = SystemState::Get()->update_attempter(); in IsUpdateAllowedOver() 74 device_policy = SystemState::Get()->device_policy(); in IsUpdateAllowedOver() 112 SystemState::Get()->device_policy(); in IsAllowedConnectionTypesForUpdateSet()
|
D | metrics_reporter_omaha.cc | 206 if (SystemState::Get()->request_params()) { in ReportUpdateCheckMetrics() 208 SystemState::Get()->request_params()->target_version_prefix(); in ReportUpdateCheckMetrics() 213 if (SystemState::Get()->request_params()->rollback_allowed()) { in ReportUpdateCheckMetrics() 557 Time now = SystemState::Get()->clock()->GetWallclockTime(); in WallclockDurationHelper() 559 if (SystemState::Get()->prefs()->GetInt64(state_variable_key, in WallclockDurationHelper() 571 if (!SystemState::Get()->prefs()->SetInt64(state_variable_key, in WallclockDurationHelper() 582 Time now = SystemState::Get()->clock()->GetMonotonicTime(); in MonotonicDurationHelper()
|
D | excluder_chromeos.h | 27 class SystemState; variable
|
D | omaha_request_params.cc | 87 hwid_ = SystemState::Get()->hardware()->GetHardwareClass(); in Init() 88 device_requisition_ = SystemState::Get()->hardware()->GetDeviceRequisition(); in Init()
|
D | real_system_state.h | 48 class RealSystemState : public SystemState {
|
/system/update_engine/update_manager/ |
D | real_system_provider.cc | 33 using chromeos_update_engine::SystemState; 104 SystemState::Get()->hardware()->IsNormalBootMode())); in Init() 107 "is_official_build", SystemState::Get()->hardware()->IsOfficialBuild())); in Init() 112 base::Unretained(SystemState::Get()->hardware()), in Init() 116 "num_slots", SystemState::Get()->boot_control()->GetNumSlots())); in Init() 126 base::Version(SystemState::Get()->request_params()->app_version()))); in Init()
|
D | real_updater_provider.cc | 40 using chromeos_update_engine::SystemState; 60 is_success_ = SystemState::Get()->update_attempter()->GetStatus( in GetStatusHelper() 233 if (!SystemState::Get()->update_attempter()->GetBootTimeAtUpdate( in GetValue() 240 const auto* clock = SystemState::Get()->clock(); in GetValue() 262 OmahaRequestParams* request_params = SystemState::Get()->request_params(); in GetValue() 283 OmahaRequestParams* request_params = SystemState::Get()->request_params(); in GetValue() 307 SystemState::Get()->prefs()->AddObserver(key, this); in BooleanPrefVariable() 311 SystemState::Get()->prefs()->RemoveObserver(key_, this); in ~BooleanPrefVariable() 319 auto* prefs = SystemState::Get()->prefs(); in OnPrefSet() 346 return new unsigned int(SystemState::Get() in GetValue() [all …]
|
D | real_time_provider.cc | 27 using chromeos_update_engine::SystemState; 43 SystemState::Get()->clock()->GetWallclockTime().LocalExplode(&now_exp); in GetValue() 66 SystemState::Get()->clock()->GetWallclockTime().LocalExplode(&exploded); in GetValue() 82 SystemState::Get()->clock()->GetWallclockTime().LocalExplode(&exploded); in GetValue()
|
D | update_time_restrictions_monitor.cc | 26 using chromeos_update_engine::SystemState; 52 return WeeklyTime::FromTime(SystemState::Get()->clock()->GetWallclockTime()); in Now() 103 << (SystemState::Get()->clock()->GetWallclockTime() + in WaitForRestrictedIntervalStarts()
|
D | state_factory.cc | 41 using chromeos_update_engine::SystemState; 50 new RealConfigProvider(SystemState::Get()->hardware())); in DefaultStateFactory()
|
D | evaluation_context.cc | 38 using chromeos_update_engine::SystemState; 101 monotonic_deadline - SystemState::Get()->clock()->GetMonotonicTime(); in RemainingTime() 108 : SystemState::Get()->clock()->GetMonotonicTime() + timeout); in MonotonicDeadline() 143 const auto* clock = SystemState::Get()->clock(); in ResetEvaluation()
|
D | staging_utils.cc | 33 using chromeos_update_engine::SystemState; 129 if (SystemState::Get()->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in CalculateStagingCase()
|
D | default_policy.cc | 22 using chromeos_update_engine::SystemState; 57 SystemState::Get()->clock()->GetMonotonicTime()); in UpdateCheckAllowed()
|
D | real_shill_provider.cc | 27 using chromeos_update_engine::SystemState; 102 SystemState::Get()->clock()->GetWallclockTime()); in ProcessDefaultService()
|
/system/update_engine/common/ |
D | system_state.h | 59 class SystemState { 61 virtual ~SystemState() = default; 63 static SystemState* Get() { in Get() 124 static SystemState* g_pointer_;
|
D | system_state.cc | 21 SystemState* SystemState::g_pointer_ = nullptr;
|