Lines Matching refs:prefs
112 PrefsInterface* prefs) { in GetAppBody() argument
132 if (!prefs->GetString(kPrefsPreviousVersion, &prev_version)) { in GetAppBody()
145 LOG_IF(WARNING, !prefs->SetString(kPrefsPreviousVersion, "")) in GetAppBody()
168 string GetCohortArgXml(PrefsInterface* prefs, in GetCohortArgXml() argument
173 if (!prefs->Exists(prefs_key)) in GetCohortArgXml()
176 if (!prefs->GetString(prefs_key, &cohort_value) || cohort_value.empty()) in GetCohortArgXml()
211 system_state->prefs()); in GetAppXml()
246 app_cohort_args += GetCohortArgXml(system_state->prefs(), in GetAppXml()
248 app_cohort_args += GetCohortArgXml(system_state->prefs(), in GetAppXml()
250 app_cohort_args += GetCohortArgXml(system_state->prefs(), in GetAppXml()
518 if (system_state_->prefs()->GetInt64(key, &last_ping) && last_ping >= 0) { in CalculatePingDays()
562 PrefsInterface* prefs = system_state->prefs(); in GetInstallDate() local
563 if (prefs == nullptr) in GetInstallDate()
568 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) { in GetInstallDate()
575 prefs->Delete(kPrefsInstallDateDays); in GetInstallDate()
683 bool UpdateLastPingDays(OmahaParserData *parser_data, PrefsInterface* prefs) { in UpdateLastPingDays() argument
693 prefs->SetInt64(kPrefsLastActivePingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
694 prefs->SetInt64(kPrefsLastRollCallPingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
958 LOG_IF(ERROR, !UpdateLastPingDays(&parser_data, system_state_->prefs())) in TransferComplete()
1081 system_state_->prefs()->GetInt64(kPrefsManifestMetadataSize, in LookupPayloadViaP2P()
1084 system_state_->prefs()->GetInt64(kPrefsManifestSignatureSize, in LookupPayloadViaP2P()
1087 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset, in LookupPayloadViaP2P()
1090 system_state_->prefs()->GetInt64(kPrefsUpdateStateNextDataLength, in LookupPayloadViaP2P()
1171 if (system_state_->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in IsWallClockBasedWaitingSatisfied()
1172 if (system_state_->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in IsWallClockBasedWaitingSatisfied()
1196 if (system_state_->prefs()->SetInt64(kPrefsUpdateFirstSeenAt, in IsWallClockBasedWaitingSatisfied()
1271 if (system_state_->prefs()->Exists(kPrefsUpdateCheckCount)) { in IsUpdateCheckCountBasedWaitingSatisfied()
1272 if (!system_state_->prefs()->GetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1291 if (!system_state_->prefs()->SetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1340 PrefsInterface* prefs = system_state->prefs(); in HasInstallDate() local
1341 if (prefs == nullptr) in HasInstallDate()
1344 return prefs->Exists(kPrefsInstallDateDays); in HasInstallDate()
1354 PrefsInterface* prefs = system_state->prefs(); in PersistInstallDate() local
1355 if (prefs == nullptr) in PersistInstallDate()
1358 if (!prefs->SetInt64(kPrefsInstallDateDays, install_date_days)) in PersistInstallDate()
1373 if (new_value.empty() && system_state_->prefs()->Exists(prefs_key)) { in PersistCohortData()
1375 return system_state_->prefs()->Delete(prefs_key); in PersistCohortData()
1378 return system_state_->prefs()->SetString(prefs_key, new_value); in PersistCohortData()