Home
last modified time | relevance | path

Searched refs:Exists (Results 1 – 19 of 19) sorted by relevance

/system/update_engine/common/
Dprefs_unittest.cc261 EXPECT_FALSE(prefs_.Exists(kKey)); in TEST_F()
265 EXPECT_TRUE(prefs_.Exists(kKey)); in TEST_F()
277 EXPECT_FALSE(prefs_.Exists(kKey)); in TEST_F()
348 EXPECT_FALSE(prefs_.Exists(kKey)); in TEST_F()
353 EXPECT_TRUE(prefs_.Exists(kKey)); in TEST_F()
358 EXPECT_FALSE(prefs_.Exists(kKey)); in TEST_F()
Dmock_prefs.h41 MOCK_CONST_METHOD1(Exists, bool(const std::string& key));
Dprefs_interface.h76 virtual bool Exists(const std::string& key) const = 0;
Dfake_prefs.h49 bool Exists(const std::string& key) const override;
Dprefs.h70 bool Exists(const std::string& key) const override;
Dfake_prefs.cc91 bool FakePrefs::Exists(const string& key) const { in Exists() function in chromeos_update_engine::FakePrefs
Dprefs.cc80 bool PrefsBase::Exists(const string& key) const { in Exists() function in chromeos_update_engine::PrefsBase
/system/update_engine/
Dpayload_state.cc787 if (!prefs_->Exists(key)) in GetPersistedValue()
833 if (prefs_->Exists(kPrefsCurrentResponseSignature) && in LoadResponseSignature()
930 if (!prefs_->Exists(kPrefsBackoffExpiryTime)) in LoadBackoffExpiryTime()
970 if (!prefs_->Exists(kPrefsUpdateTimestampStart)) { in LoadUpdateTimestampStart()
1023 if (!prefs_->Exists(kPrefsUpdateDurationUptime)) { in LoadUpdateDurationUptime()
1217 if (prefs_->Exists(kPrefsSystemUpdatedMarker)) { in UpdateEngineStarted()
1243 if (prefs_->Exists(kPrefsTargetVersionInstalledFrom)) { in ReportFailedBootIfNeeded()
1292 if (prefs_->Exists(kPrefsTargetVersionUniqueId) && in ExpectRebootInNewVersion()
Dimage_properties_android.cc79 if (!system_state->prefs()->Exists(current_channel_key) || in LoadImageProperties()
Dconnection_manager_unittest.cc355 EXPECT_CALL(*prefs, Exists(kPrefsUpdateOverCellularPermission)) in TEST_F()
362 EXPECT_CALL(*prefs, Exists(kPrefsUpdateOverCellularPermission)) in TEST_F()
372 EXPECT_CALL(*prefs, Exists(kPrefsUpdateOverCellularPermission)) in TEST_F()
Domaha_request_action.cc173 if (!prefs->Exists(prefs_key)) in GetCohortArgXml()
1171 if (system_state_->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in IsWallClockBasedWaitingSatisfied()
1271 if (system_state_->prefs()->Exists(kPrefsUpdateCheckCount)) { in IsUpdateCheckCountBasedWaitingSatisfied()
1344 return prefs->Exists(kPrefsInstallDateDays); in HasInstallDate()
1373 if (new_value.empty() && system_state_->prefs()->Exists(prefs_key)) { in PersistCohortData()
Dpayload_state_unittest.cc603 EXPECT_CALL(*prefs2, Exists(_)).WillRepeatedly(Return(true)); in TEST()
1113 EXPECT_TRUE(fake_prefs.Exists(kPrefsSystemUpdatedMarker)); in TEST()
1133 EXPECT_FALSE(fake_prefs.Exists(kPrefsSystemUpdatedMarker)); in TEST()
1144 EXPECT_CALL(*prefs, Exists(_)).Times(0); in TEST()
1196 EXPECT_FALSE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
1221 EXPECT_FALSE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
1226 EXPECT_TRUE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
1231 EXPECT_FALSE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
Domaha_request_action_unittest.cc463 EXPECT_FALSE(fake_prefs_.Exists(kPrefsOmahaCohort)); in TEST_F()
464 EXPECT_FALSE(fake_prefs_.Exists(kPrefsOmahaCohortHint)); in TEST_F()
465 EXPECT_FALSE(fake_prefs_.Exists(kPrefsOmahaCohortName)); in TEST_F()
1922 EXPECT_TRUE(fake_prefs_.Exists(kPrefsPreviousVersion)); in TEST_F()
2094 EXPECT_FALSE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2098 EXPECT_TRUE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2130 EXPECT_FALSE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2141 EXPECT_FALSE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2150 EXPECT_TRUE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
Dconnection_manager.cc110 if (!prefs || !prefs->Exists(kPrefsUpdateOverCellularPermission)) { in IsUpdateAllowedOver()
Dcommon_service.cc209 if (prefs->Exists(kPrefsP2PEnabled) && in GetP2PUpdatePermission()
Dupdate_attempter.cc194 if (system_state_->prefs()->Exists(kPrefsDailyMetricsLastReportedAt) && in CheckAndReportDailyMetrics()
1458 if (!prefs_->Exists(kPrefsUpdateCheckCount)) { in DecrementUpdateCheckCount()
1512 prefs_->Exists(kPrefsSystemUpdatedMarker)) { in UpdateEngineStarted()
1572 if (!prefs_->Exists(kPrefsUpdateCompletedOnBootId) || in GetBootTimeAtUpdate()
Dupdate_attempter_unittest.cc801 EXPECT_TRUE(fake_prefs.Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
814 EXPECT_TRUE(fake_prefs.Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
864 EXPECT_FALSE(fake_prefs.Exists(kPrefsWallClockWaitPeriod)); in NoScatteringDoneDuringManualUpdateTestStart()
868 EXPECT_FALSE(fake_prefs.Exists(kPrefsUpdateCheckCount)); in NoScatteringDoneDuringManualUpdateTestStart()
Dupdate_attempter_android.cc536 return (prefs_->Exists(kPrefsUpdateCompletedOnBootId) && in UpdateCompletedOnThisBoot()
/system/update_engine/update_manager/
Dreal_updater_provider.cc325 if (prefs_ && prefs_->Exists(key_) && !prefs_->GetBoolean(key_, &result)) in OnPrefSet()