• Home
  • Raw
  • Download

Lines Matching refs:prefs

155                   PrefsInterface* prefs) {  in GetAppBody()  argument
185 if (!prefs->GetString(kPrefsPreviousVersion, &prev_version)) { in GetAppBody()
198 LOG_IF(WARNING, !prefs->SetString(kPrefsPreviousVersion, "")) in GetAppBody()
223 string GetCohortArgXml(PrefsInterface* prefs, in GetCohortArgXml() argument
228 if (!prefs->Exists(prefs_key)) in GetCohortArgXml()
231 if (!prefs->GetString(prefs_key, &cohort_value) || cohort_value.empty()) in GetCohortArgXml()
287 system_state->prefs()); in GetAppXml()
323 GetCohortArgXml(system_state->prefs(), "cohort", kPrefsOmahaCohort); in GetAppXml()
325 system_state->prefs(), "cohorthint", kPrefsOmahaCohortHint); in GetAppXml()
327 system_state->prefs(), "cohortname", kPrefsOmahaCohortName); in GetAppXml()
713 if (system_state_->prefs()->GetInt64(key, &last_ping) && last_ping >= 0) { in CalculatePingDays()
762 PrefsInterface* prefs = system_state->prefs(); in GetInstallDate() local
763 if (prefs == nullptr) in GetInstallDate()
768 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) { in GetInstallDate()
775 prefs->Delete(kPrefsInstallDateDays); in GetInstallDate()
893 bool UpdateLastPingDays(OmahaParserData* parser_data, PrefsInterface* prefs) { in UpdateLastPingDays() argument
902 prefs->SetInt64(kPrefsLastActivePingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
903 prefs->SetInt64(kPrefsLastRollCallPingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
1272 LOG_IF(ERROR, !UpdateLastPingDays(&parser_data, system_state_->prefs())) in TransferComplete()
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()
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()
1644 PrefsInterface* prefs = system_state->prefs(); in HasInstallDate() local
1645 if (prefs == nullptr) in HasInstallDate()
1648 return prefs->Exists(kPrefsInstallDateDays); in HasInstallDate()
1658 PrefsInterface* prefs = system_state->prefs(); in PersistInstallDate() local
1659 if (prefs == nullptr) in PersistInstallDate()
1662 if (!prefs->SetInt64(kPrefsInstallDateDays, install_date_days)) in PersistInstallDate()
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()
1798 PrefsInterface* prefs = system_state_->prefs(); in IsUpdateAllowedOverCellularByPrefs() local
1800 if (!prefs) { in IsUpdateAllowedOverCellularByPrefs()
1808 if (prefs->Exists(kPrefsUpdateOverCellularPermission) && in IsUpdateAllowedOverCellularByPrefs()
1809 prefs->GetBoolean(kPrefsUpdateOverCellularPermission, &is_allowed) && in IsUpdateAllowedOverCellularByPrefs()
1816 if (!prefs->Exists(kPrefsUpdateOverCellularTargetVersion) || in IsUpdateAllowedOverCellularByPrefs()
1817 !prefs->Exists(kPrefsUpdateOverCellularTargetSize)) { in IsUpdateAllowedOverCellularByPrefs()
1826 if (!prefs->GetString(kPrefsUpdateOverCellularTargetVersion, in IsUpdateAllowedOverCellularByPrefs()
1828 !prefs->GetInt64(kPrefsUpdateOverCellularTargetSize, &target_size)) { in IsUpdateAllowedOverCellularByPrefs()
1957 if (system_state_->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in LoadOrPersistUpdateFirstSeenAtPref()
1958 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()
1981 if (system_state_->prefs()->SetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()