• Home
  • Raw
  • Download

Lines Matching refs:system_state_

696     : system_state_(system_state),  in OmahaRequestAction()
713 if (system_state_->prefs()->GetInt64(key, &last_ping) && last_ping >= 0) { in CalculatePingDays()
744 int powerwash_count = system_state_->hardware()->GetPowerwashCount(); in ShouldPing()
750 if (system_state_->hardware()->GetFirstActiveOmahaPingSent()) { in ShouldPing()
838 GetInstallDate(system_state_), in PerformAction()
839 system_state_)); in PerformAction()
1049 !HasInstallDate(system_state_)) { in ParseResponse()
1056 if (PersistInstallDate(system_state_, in ParseResponse()
1217 PayloadStateInterface* const payload_state = system_state_->payload_state(); in TransferComplete()
1272 LOG_IF(ERROR, !UpdateLastPingDays(&parser_data, system_state_->prefs())) in TransferComplete()
1281 if (!system_state_->hardware()->GetFirstActiveOmahaPingSent()) { in TransferComplete()
1282 if (!system_state_->hardware()->SetFirstActiveOmahaPingSent()) { in TransferComplete()
1283 system_state_->metrics_reporter()->ReportInternalErrorCode( in TransferComplete()
1361 PayloadStateInterface* payload_state = system_state_->payload_state(); in CompleteProcessing()
1383 system_state_->payload_state()->SetP2PUrl(url); in OnLookupPayloadViaP2PCompleted()
1387 system_state_->payload_state()->SetUsingP2PForDownloading(false); in OnLookupPayloadViaP2PCompleted()
1411 if (system_state_ && in LookupPayloadViaP2P()
1412 system_state_->prefs()->GetInt64(kPrefsManifestMetadataSize, in LookupPayloadViaP2P()
1415 system_state_->prefs()->GetInt64(kPrefsManifestSignatureSize, in LookupPayloadViaP2P()
1418 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset, in LookupPayloadViaP2P()
1421 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataLength, in LookupPayloadViaP2P()
1433 if (system_state_->p2p_manager()) { in LookupPayloadViaP2P()
1436 system_state_->p2p_manager()->LookupUrlForFile( in LookupPayloadViaP2P()
1455 const PayloadStateInterface* payload_state = system_state_->payload_state(); in ShouldDeferDownload()
1512 system_state_->clock()->GetWallclockTime() - update_first_seen_at; in IsWallClockBasedWaitingSatisfied()
1517 if (system_state_->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in IsWallClockBasedWaitingSatisfied()
1577 if (system_state_->prefs()->Exists(kPrefsUpdateCheckCount)) { in IsUpdateCheckCountBasedWaitingSatisfied()
1578 if (!system_state_->prefs()->GetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1597 if (!system_state_->prefs()->SetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1673 if (new_value.empty() && system_state_->prefs()->Exists(prefs_key)) { in PersistCohortData()
1675 return system_state_->prefs()->Delete(prefs_key); in PersistCohortData()
1678 return system_state_->prefs()->SetString(prefs_key, new_value); in PersistCohortData()
1686 return system_state_->prefs()->SetString(kPrefsOmahaEolStatus, in PersistEolStatus()
1688 } else if (system_state_->prefs()->Exists(kPrefsOmahaEolStatus)) { in PersistEolStatus()
1689 return system_state_->prefs()->Delete(kPrefsOmahaEolStatus); in PersistEolStatus()
1753 system_state_->metrics_reporter()->ReportUpdateCheckMetrics( in ActionCompleted()
1754 system_state_, result, reaction, download_error_code); in ActionCompleted()
1761 system_state_->payload_state()->GetRollbackVersion(); in ShouldIgnoreUpdate()
1771 if (system_state_->hardware()->IsOOBEEnabled() && in ShouldIgnoreUpdate()
1772 !system_state_->hardware()->IsOOBEComplete(nullptr) && in ShouldIgnoreUpdate()
1774 system_state_->payload_state()->GetRollbackHappened()) && in ShouldIgnoreUpdate()
1798 PrefsInterface* prefs = system_state_->prefs(); in IsUpdateAllowedOverCellularByPrefs()
1855 system_state_->connection_manager(); in IsUpdateAllowedOverCurrentConnection()
1918 int min_kernel_version = system_state_->hardware()->GetMinKernelKeyVersion(); in SetMaxKernelKeyVersionForRollback()
1944 system_state_->hardware()->SetMaxKernelKeyRollforward( in SetMaxKernelKeyVersionForRollback()
1950 system_state_->metrics_reporter()->ReportKeyVersionMetrics( in SetMaxKernelKeyVersionForRollback()
1957 if (system_state_->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in LoadOrPersistUpdateFirstSeenAtPref()
1958 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()
1979 update_first_seen_at = system_state_->clock()->GetWallclockTime(); in LoadOrPersistUpdateFirstSeenAtPref()
1981 if (system_state_->prefs()->SetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()