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

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

Completed in 150 milliseconds