Lines Matching full:system_state_
130 system_state_(system_state),
151 prefs_ = system_state_->prefs();
152 omaha_request_params_ = system_state_->request_params();
174 system_state_->update_manager();
186 metrics::ReportCertificateCheckMetrics(system_state_,
193 Time now = system_state_->clock()->GetWallclockTime();
194 if (system_state_->prefs()->Exists(kPrefsDailyMetricsLastReportedAt) &&
195 system_state_->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt,
219 system_state_->prefs()->SetInt64(kPrefsDailyMetricsLastReportedAt,
230 if (system_state_ == nullptr)
240 Time now = system_state_->clock()->GetWallclockTime();
249 metrics::ReportDailyMetrics(system_state_, age);
277 metrics::ReportUpdateCheckMetrics(system_state_,
328 system_state_->set_device_policy(device_policy);
329 system_state_->p2p_manager()->SetDevicePolicy(device_policy);
343 if (system_state_ != nullptr) {
344 if (!system_state_->p2p_manager()->IsP2PEnabled()) {
360 PayloadStateInterface* const payload_state = system_state_->payload_state();
372 PayloadStateInterface* const payload_state = system_state_->payload_state();
468 const policy::DevicePolicy* device_policy = system_state_->device_policy();
482 } else if (!system_state_->hardware()->IsOOBEComplete(nullptr)) {
581 system_state_->payload_state()->SetScatteringWaitPeriod(
588 new PostinstallRunnerAction(system_state_->boot_control(),
589 system_state_->hardware()));
602 new LibcurlHttpFetcher(GetProxyResolver(), system_state_->hardware()));
608 new OmahaRequestAction(system_state_,
613 new OmahaResponseHandlerAction(system_state_));
615 new FilesystemVerifierAction(system_state_->boot_control(),
619 new OmahaRequestAction(system_state_,
624 system_state_->hardware())),
628 new LibcurlHttpFetcher(GetProxyResolver(), system_state_->hardware());
632 system_state_->boot_control(),
633 system_state_->hardware(),
634 system_state_,
638 system_state_,
642 system_state_->hardware())),
645 new FilesystemVerifierAction(system_state_->boot_control(),
649 system_state_,
653 system_state_->hardware())),
701 const policy::DevicePolicy* device_policy = system_state_->device_policy();
721 install_plan.source_slot = system_state_->boot_control()->GetCurrentSlot();
724 install_plan.LoadPartitionsFromSlots(system_state_->boot_control()));
742 system_state_->payload_state()->Rollback();
763 const unsigned int num_slots = system_state_->boot_control()->GetNumSlots();
765 system_state_->boot_control()->GetCurrentSlot();
779 system_state_->boot_control()->IsSlotBootable(slot)) {
840 int64_t value = system_state_->clock()->GetBootTime().ToInternalValue();
846 system_state_->power_manager_proxy();
913 last_checked_time_ = system_state_->clock()->GetWallclockTime().ToTimeT();
946 system_state_->payload_state()->UpdateSucceeded();
958 system_state_->payload_state()->SetScatteringWaitPeriod(TimeDelta());
977 system_state_->payload_state()->ExpectRebootInNewVersion(
982 if (system_state_->payload_state()->GetRollbackVersion().empty()) {
1078 system_state_->payload_state()->DownloadProgress(bytes_progressed);
1092 system_state_->payload_state()->DownloadComplete();
1105 if (!system_state_->request_params()->SetTargetChannel(
1127 OmahaRequestParams* rp = system_state_->request_params();
1165 BootControlInterface* boot_control = system_state_->boot_control();
1170 system_state_->payload_state()->ResetUpdateStatus();
1218 if (!system_state_->boot_control()->MarkBootSuccessfulAsync(Bind(
1247 system_state_->request_params()->target_channel());
1254 if (!system_state_->hardware()->IsNormalBootMode())
1261 if (!system_state_->hardware()->IsOfficialBuild())
1275 OmahaRequestParams* params = system_state_->request_params();
1344 system_state_->payload_state()->UpdateFailed(error_event_->error_code);
1349 new OmahaRequestAction(system_state_,
1353 system_state_->hardware())),
1420 system_state_,
1424 system_state_->hardware())),
1509 // system_state_->payload_state()->UpdateEngineStarted() since it will
1511 if (system_state_->system_rebooted() &&
1519 system_state_->payload_state()->UpdateEngineStarted();
1524 if (system_state_ == nullptr ||
1525 !system_state_->p2p_manager()->IsP2PEnabled()) {
1530 if (system_state_->p2p_manager()->CountSharedFiles() < 1) {
1540 if (system_state_ == nullptr)
1543 if (!system_state_->p2p_manager()->IsP2PEnabled()) {
1549 if (!system_state_->p2p_manager()->EnsureP2PRunning()) {
1555 if (!system_state_->p2p_manager()->PerformHousekeeping()) {
1602 if (!system_state_->hardware()->IsOfficialBuild()) {
1609 if (system_state_->hardware()->IsNormalBootMode()) {