Lines Matching refs:prefs
297 int64_t GetPersistedValue(const std::string& key, PrefsInterface* prefs) { in GetPersistedValue() argument
298 CHECK(prefs); in GetPersistedValue()
299 if (!prefs->Exists(key)) in GetPersistedValue()
303 if (!prefs->GetInt64(key, &stored_value)) in GetPersistedValue()
315 void SetNumReboots(int64_t num_reboots, PrefsInterface* prefs) { in SetNumReboots() argument
316 CHECK(prefs); in SetNumReboots()
317 prefs->SetInt64(kPrefsNumReboots, num_reboots); in SetNumReboots()
323 PrefsInterface* prefs) { in SetPayloadAttemptNumber() argument
324 CHECK(prefs); in SetPayloadAttemptNumber()
325 prefs->SetInt64(kPrefsPayloadAttemptNumber, payload_attempt_number); in SetPayloadAttemptNumber()
329 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs) { in SetSystemUpdatedMarker() argument
330 CHECK(prefs); in SetSystemUpdatedMarker()
333 prefs->SetInt64(kPrefsSystemUpdatedMarker, in SetSystemUpdatedMarker()
339 PrefsInterface* prefs) { in SetUpdateTimestampStart() argument
340 CHECK(prefs); in SetUpdateTimestampStart()
341 prefs->SetInt64(kPrefsUpdateTimestampStart, in SetUpdateTimestampStart()
348 PrefsInterface* prefs) { in SetUpdateBootTimestampStart() argument
349 CHECK(prefs); in SetUpdateBootTimestampStart()
350 prefs->SetInt64(kPrefsUpdateBootTimestampStart, in SetUpdateBootTimestampStart()
357 PrefsInterface* prefs, in LoadAndReportTimeToReboot() argument
359 CHECK(prefs); in LoadAndReportTimeToReboot()
361 int64_t stored_value = GetPersistedValue(kPrefsSystemUpdatedMarker, prefs); in LoadAndReportTimeToReboot()