• Home
  • Raw
  • Download

Lines Matching refs:prefs

360   if (SystemState::Get()->prefs()->GetInt64(key, &last_ping) &&  in CalculatePingDays()
410 auto* prefs = SystemState::Get()->prefs(); in GetInstallDate() local
413 if (prefs->GetInt64(kPrefsInstallDateDays, &stored_value)) { in GetInstallDate()
420 prefs->Delete(kPrefsInstallDateDays); in GetInstallDate()
483 auto* prefs = SystemState::Get()->prefs(); in StorePingReply() local
486 prefs->CreateSubKey({kDlcPrefsSubDir, dlc_id, kPrefsPingActive}); in StorePingReply()
487 if (!prefs->SetInt64(active_key, kPingInactiveValue)) in StorePingReply()
492 prefs->CreateSubKey({kDlcPrefsSubDir, dlc_id, kPrefsPingLastRollcall}); in StorePingReply()
493 if (!prefs->SetString(last_rollcall_key, parser_data.daystart.elapsed_days)) in StorePingReply()
501 prefs->CreateSubKey({kDlcPrefsSubDir, dlc_id, kPrefsPingLastActive}); in StorePingReply()
502 if (!prefs->SetString(last_active_key, parser_data.daystart.elapsed_days)) in StorePingReply()
587 auto* prefs = SystemState::Get()->prefs(); in UpdateLastPingDays() local
589 prefs->SetInt64(kPrefsLastActivePingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
590 prefs->SetInt64(kPrefsLastRollCallPingDay, daystart.ToInternalValue()); in UpdateLastPingDays()
751 !SystemState::Get()->prefs()->SetString( in PersistEolInfo()
1173 if (SystemState::Get()->prefs()->GetInt64(kPrefsManifestMetadataSize, in LookupPayloadViaP2P()
1176 SystemState::Get()->prefs()->GetInt64(kPrefsManifestSignatureSize, in LookupPayloadViaP2P()
1179 SystemState::Get()->prefs()->GetInt64(kPrefsUpdateStateNextDataOffset, in LookupPayloadViaP2P()
1182 SystemState::Get()->prefs()->GetInt64(kPrefsUpdateStateNextDataLength, in LookupPayloadViaP2P()
1280 if (SystemState::Get()->prefs()->GetInt64(kPrefsWallClockStagingWaitPeriod, in IsWallClockBasedWaitingSatisfied()
1342 if (SystemState::Get()->prefs()->Exists(kPrefsUpdateCheckCount)) { in IsUpdateCheckCountBasedWaitingSatisfied()
1343 if (!SystemState::Get()->prefs()->GetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1362 if (!SystemState::Get()->prefs()->SetInt64(kPrefsUpdateCheckCount, in IsUpdateCheckCountBasedWaitingSatisfied()
1409 return SystemState::Get()->prefs()->Exists(kPrefsInstallDateDays); in HasInstallDate()
1418 auto* prefs = SystemState::Get()->prefs(); in PersistInstallDate() local
1419 if (!prefs->SetInt64(kPrefsInstallDateDays, install_date_days)) in PersistInstallDate()
1433 if (value.empty() && SystemState::Get()->prefs()->Exists(prefs_key)) { in PersistCohortData()
1434 if (!SystemState::Get()->prefs()->Delete(prefs_key)) in PersistCohortData()
1439 if (!SystemState::Get()->prefs()->SetString(prefs_key, value)) in PersistCohortData()
1462 auto* prefs = SystemState::Get()->prefs(); in PersistCohorts() local
1464 prefs->CreateSubKey({kDlcPrefsSubDir, dlc_id, kPrefsOmahaCohort}), in PersistCohorts()
1467 prefs->CreateSubKey({kDlcPrefsSubDir, dlc_id, kPrefsOmahaCohortName}), in PersistCohorts()
1470 prefs->CreateSubKey({kDlcPrefsSubDir, dlc_id, kPrefsOmahaCohortHint}), in PersistCohorts()
1591 auto* prefs = SystemState::Get()->prefs(); in IsUpdateAllowedOverCellularByPrefs() local
1593 if (prefs->Exists(kPrefsUpdateOverCellularPermission) && in IsUpdateAllowedOverCellularByPrefs()
1594 prefs->GetBoolean(kPrefsUpdateOverCellularPermission, &is_allowed) && in IsUpdateAllowedOverCellularByPrefs()
1601 if (!prefs->Exists(kPrefsUpdateOverCellularTargetVersion) || in IsUpdateAllowedOverCellularByPrefs()
1602 !prefs->Exists(kPrefsUpdateOverCellularTargetSize)) { in IsUpdateAllowedOverCellularByPrefs()
1611 if (!prefs->GetString(kPrefsUpdateOverCellularTargetVersion, in IsUpdateAllowedOverCellularByPrefs()
1613 !prefs->GetInt64(kPrefsUpdateOverCellularTargetSize, &target_size)) { in IsUpdateAllowedOverCellularByPrefs()
1743 if (SystemState::Get()->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in LoadOrPersistUpdateFirstSeenAtPref()
1744 if (SystemState::Get()->prefs()->GetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()
1767 if (SystemState::Get()->prefs()->SetInt64(kPrefsUpdateFirstSeenAt, in LoadOrPersistUpdateFirstSeenAtPref()