Lines Matching refs:Get
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()
271 SystemState::Get()->metrics_reporter()->ReportDailyMetrics(age); in ReportOSAge()
290 SystemState::Get()->metrics_reporter()->ReportUpdateCheckMetrics( in Update()
333 SystemState::Get()->set_device_policy(device_policy); in RefreshDevicePolicy()
334 SystemState::Get()->p2p_manager()->SetDevicePolicy(device_policy); in RefreshDevicePolicy()
347 if (!SystemState::Get()->p2p_manager()->IsP2PEnabled()) { in CalculateP2PParams()
363 SystemState::Get()->payload_state(); in CalculateP2PParams()
371 SystemState::Get()->payload_state(); in CalculateUpdateParams()
458 SystemState::Get()->device_policy(); in CalculateScatteringParams()
472 } else if (SystemState::Get()->hardware()->IsOOBEEnabled() && in CalculateScatteringParams()
473 !SystemState::Get()->hardware()->IsOOBEComplete(nullptr)) { in CalculateScatteringParams()
575 SystemState::Get()->payload_state()->SetScatteringWaitPeriod( in GenerateNewWaitingPeriod()
580 bool oobe_complete = SystemState::Get()->hardware()->IsOOBEEnabled() && in CalculateStagingParams()
581 SystemState::Get()->hardware()->IsOOBEComplete(nullptr); in CalculateStagingParams()
582 auto device_policy = SystemState::Get()->device_policy(); in CalculateStagingParams()
674 if (!SystemState::Get()->prefs()->Exists(metadata_key)) in GetPingMetadata()
678 if (SystemState::Get()->prefs()->GetInt64(metadata_key, &value)) in GetPingMetadata()
690 !SystemState::Get()->dlcservice()->GetDlcsToUpdate(&dlc_ids_)) { in CalculateDlcParams()
745 GetProxyResolver(), SystemState::Get()->hardware()); in BuildUpdateActions()
755 SystemState::Get()->boot_control()); in BuildUpdateActions()
759 SystemState::Get()->hardware()), in BuildUpdateActions()
764 GetProxyResolver(), SystemState::Get()->hardware()); in BuildUpdateActions()
771 SystemState::Get()->boot_control(), in BuildUpdateActions()
772 SystemState::Get()->hardware(), in BuildUpdateActions()
780 SystemState::Get()->hardware()), in BuildUpdateActions()
784 SystemState::Get()->boot_control()->GetDynamicPartitionControl()); in BuildUpdateActions()
788 SystemState::Get()->hardware()), in BuildUpdateActions()
793 SystemState::Get()->boot_control(), SystemState::Get()->hardware()); in BuildUpdateActions()
828 SystemState::Get()->device_policy(); in Rollback()
848 SystemState::Get()->boot_control()->GetCurrentSlot(); in Rollback()
851 SystemState::Get()->boot_control())); in Rollback()
859 SystemState::Get()->boot_control(), SystemState::Get()->hardware()); in Rollback()
866 SystemState::Get()->payload_state()->Rollback(); in Rollback()
884 SystemState::Get()->boot_control()->GetNumSlots(); in GetRollbackSlot()
886 SystemState::Get()->boot_control()->GetCurrentSlot(); in GetRollbackSlot()
900 SystemState::Get()->boot_control()->IsSlotBootable(slot)) { in GetRollbackSlot()
1006 if (SystemState::Get()->power_manager()->RequestReboot()) in RebootIfNeeded()
1018 int64_t value = SystemState::Get()->clock()->GetBootTime().ToInternalValue(); in WriteUpdateCompletedMarker()
1079 SystemState::Get()->clock()->GetWallclockTime().ToTimeT(); in UpdateLastCheckedTime()
1083 DCHECK(SystemState::Get()->payload_state()); in UpdateRollbackHappened()
1085 if (SystemState::Get()->payload_state()->GetRollbackHappened() && in UpdateRollbackHappened()
1090 SystemState::Get()->payload_state()->SetRollbackHappened(false); in UpdateRollbackHappened()
1133 SystemState::Get()->payload_state()->UpdateSucceeded(); in ProcessingDoneInternal()
1145 SystemState::Get()->payload_state()->SetScatteringWaitPeriod(TimeDelta()); in ProcessingDoneInternal()
1146 SystemState::Get()->payload_state()->SetStagingWaitPeriod(TimeDelta()); in ProcessingDoneInternal()
1167 if (!SystemState::Get()->dlcservice()->InstallCompleted( in ProcessingDoneInstall()
1179 if (!SystemState::Get()->dlcservice()->UpdateCompleted(GetSuccessfulDlcIds())) in ProcessingDoneUpdate()
1201 SystemState::Get()->payload_state()->SetRollbackHappened(true); in ProcessingDoneUpdate()
1202 SystemState::Get()->metrics_reporter()->ReportEnterpriseRollbackMetrics( in ProcessingDoneUpdate()
1208 SystemState::Get()->payload_state()->ExpectRebootInNewVersion( in ProcessingDoneUpdate()
1213 if (SystemState::Get()->payload_state()->GetRollbackVersion().empty()) { in ProcessingDoneUpdate()
1362 SystemState::Get()->payload_state()->DownloadProgress(bytes_progressed); in BytesReceived()
1376 SystemState::Get()->payload_state()->DownloadComplete(); in DownloadComplete()
1421 BootControlInterface* boot_control = SystemState::Get()->boot_control(); in ResetStatus()
1432 SystemState::Get()->payload_state()->ResetUpdateStatus(); in ResetStatus()
1462 if (SystemState::Get()->prefs()->Exists(kPrefsOmahaEolDate) && in GetStatus()
1463 !SystemState::Get()->prefs()->GetString(kPrefsOmahaEolDate, in GetStatus()
1491 if (!SystemState::Get()->hardware()->IsNormalBootMode()) in GetErrorCodeFlags()
1497 if (!SystemState::Get()->hardware()->IsOfficialBuild()) in GetErrorCodeFlags()
1510 OmahaRequestParams* params = SystemState::Get()->request_params(); in ShouldCancel()
1568 SystemState::Get()->payload_state()->UpdateFailed(error_event_->error_code); in ScheduleErrorEventAction()
1572 SystemState::Get()->metrics_reporter()->ReportEnterpriseRollbackMetrics( in ScheduleErrorEventAction()
1581 SystemState::Get()->hardware()), in ScheduleErrorEventAction()
1626 SystemState::Get()->hardware()), in PingOmaha()
1711 if (SystemState::Get()->system_rebooted() && in UpdateEngineStarted()
1721 SystemState::Get()->payload_state()->UpdateEngineStarted(); in UpdateEngineStarted()
1728 auto* powerwash_safe_prefs = SystemState::Get()->powerwash_safe_prefs(); in MoveToPrefs()
1745 if (!SystemState::Get()->p2p_manager()->IsP2PEnabled()) { in StartP2PAtStartup()
1750 if (SystemState::Get()->p2p_manager()->CountSharedFiles() < 1) { in StartP2PAtStartup()
1760 if (!SystemState::Get()->p2p_manager()->IsP2PEnabled()) { in StartP2PAndPerformHousekeeping()
1766 if (!SystemState::Get()->p2p_manager()->EnsureP2PRunning()) { in StartP2PAndPerformHousekeeping()
1772 if (!SystemState::Get()->p2p_manager()->PerformHousekeeping()) { in StartP2PAndPerformHousekeeping()
1819 if (!SystemState::Get()->hardware()->IsOfficialBuild()) { in IsAnyUpdateSourceAllowed()
1824 if (SystemState::Get()->hardware()->AreDevFeaturesEnabled()) { in IsAnyUpdateSourceAllowed()
1836 SystemState::Get()->device_policy(); in ReportTimeToUpdateAppliedMetric()
1843 if (SystemState::Get()->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in ReportTimeToUpdateAppliedMetric()
1844 if (SystemState::Get()->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in ReportTimeToUpdateAppliedMetric()
1847 SystemState::Get()->clock()->GetWallclockTime() - in ReportTimeToUpdateAppliedMetric()
1849 SystemState::Get() in ReportTimeToUpdateAppliedMetric()