Home
last modified time | relevance | path

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

12

/system/update_engine/common/
Dprefs_unittest.cc59 EXPECT_FALSE(common_prefs_->Exists(key0)); in MultiNamespaceKeyTest()
60 EXPECT_FALSE(common_prefs_->Exists(key1A)); in MultiNamespaceKeyTest()
61 EXPECT_FALSE(common_prefs_->Exists(key1B)); in MultiNamespaceKeyTest()
62 EXPECT_FALSE(common_prefs_->Exists(key2)); in MultiNamespaceKeyTest()
71 EXPECT_TRUE(common_prefs_->Exists(key0)); in MultiNamespaceKeyTest()
72 EXPECT_TRUE(common_prefs_->Exists(key0corner)); in MultiNamespaceKeyTest()
73 EXPECT_TRUE(common_prefs_->Exists(key1A)); in MultiNamespaceKeyTest()
74 EXPECT_TRUE(common_prefs_->Exists(key1B)); in MultiNamespaceKeyTest()
75 EXPECT_TRUE(common_prefs_->Exists(key2)); in MultiNamespaceKeyTest()
76 EXPECT_TRUE(common_prefs_->Exists(key2corner)); in MultiNamespaceKeyTest()
[all …]
Dmock_prefs.h42 MOCK_CONST_METHOD1(Exists, bool(const std::string& key));
Dprefs_interface.h77 virtual bool Exists(const std::string& key) const = 0;
Dfake_prefs.h49 bool Exists(const std::string& key) const override;
Dprefs.h75 bool Exists(const std::string& key) const override;
Dfake_prefs.cc92 bool FakePrefs::Exists(const string& key) const { in Exists() function in chromeos_update_engine::FakePrefs
Dprefs.cc100 bool PrefsBase::Exists(const string& key) const { in Exists() function in chromeos_update_engine::PrefsBase
/system/update_engine/
Dupdate_attempter_android_unittest.cc91 EXPECT_TRUE(prefs_.Exists(kPrefsBootId)); in TEST_F()
96 EXPECT_TRUE(prefs_.Exists(kPrefsNumReboots)); in TEST_F()
119 EXPECT_FALSE(prefs_.Exists(kPrefsNumReboots)); in TEST_F()
120 EXPECT_FALSE(prefs_.Exists(kPrefsUpdateTimestampStart)); in TEST_F()
121 EXPECT_FALSE(prefs_.Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
123 EXPECT_TRUE(prefs_.Exists(kPrefsPayloadAttemptNumber)); in TEST_F()
162 EXPECT_FALSE(prefs_.Exists(kPrefsNumReboots)); in TEST_F()
163 EXPECT_FALSE(prefs_.Exists(kPrefsPayloadAttemptNumber)); in TEST_F()
164 EXPECT_FALSE(prefs_.Exists(kPrefsUpdateTimestampStart)); in TEST_F()
165 EXPECT_TRUE(prefs_.Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
Dexcluder_chromeos.cc49 return prefs_->Exists(key); in IsExcluded()
Dcommon_service.cc241 if (prefs->Exists(kPrefsOmahaCohortHint) && in GetCohortHint()
269 if (prefs->Exists(kPrefsP2PEnabled) && in GetP2PUpdatePermission()
353 if (!prefs || !prefs->Exists(kPrefsUpdateOverCellularPermission)) { in GetUpdateOverCellularPermission()
Dupdate_attempter_unittest.cc1169 EXPECT_TRUE(fake_prefs.Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
1182 EXPECT_TRUE(fake_prefs.Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
1243 EXPECT_FALSE(fake_prefs.Exists(kPrefsWallClockScatteringWaitPeriod)); in NoScatteringDoneDuringManualUpdateTestStart()
1247 EXPECT_FALSE(fake_prefs.Exists(kPrefsUpdateCheckCount)); in NoScatteringDoneDuringManualUpdateTestStart()
1310 EXPECT_FALSE(fake_prefs.Exists(kPrefsWallClockScatteringWaitPeriod)); in StagingSetsPrefsAndTurnsOffScatteringStart()
1317 EXPECT_FALSE(attempter_.prefs_->Exists(kPrefsUpdateCheckCount)); in CheckStagingOff()
1318 EXPECT_FALSE(attempter_.prefs_->Exists(kPrefsWallClockScatteringWaitPeriod)); in CheckStagingOff()
1319 EXPECT_FALSE(attempter_.prefs_->Exists(kPrefsWallClockStagingWaitPeriod)); in CheckStagingOff()
2347 EXPECT_CALL(*prefs_, Exists(kPrefsOmahaEolDate)).WillOnce(Return(true)); in TEST_F()
2359 EXPECT_CALL(*prefs_, Exists(kPrefsOmahaEolDate)).WillOnce(Return(true)); in TEST_F()
[all …]
Dupdate_attempter_android.cc255 if (install_plan_.is_resume && prefs_->Exists(kPrefsVerityWritten)) { in ApplyPayload()
778 return (prefs_->Exists(kPrefsUpdateCompletedOnBootId) && in UpdateCompletedOnThisBoot()
874 if (!prefs_->Exists(kPrefsPreviousVersion)) { in UpdatePrefsAndReportUpdateMetricsOnReboot()
886 bool is_reboot = prefs_->Exists(kPrefsBootId) && in UpdatePrefsAndReportUpdateMetricsOnReboot()
891 if (is_reboot && prefs_->Exists(kPrefsNumReboots)) { in UpdatePrefsAndReportUpdateMetricsOnReboot()
905 bool previous_attempt_exists = prefs_->Exists(kPrefsPayloadAttemptNumber); in UpdatePrefsAndReportUpdateMetricsOnReboot()
Dpayload_state.cc428 !prefs_->Exists(kPrefsNoIgnoreBackoff)) { in ShouldBackoffDownload()
882 if (prefs_->Exists(kPrefsCurrentResponseSignature) && in LoadResponseSignature()
1010 if (!prefs_->Exists(kPrefsBackoffExpiryTime)) in LoadBackoffExpiryTime()
1050 if (!prefs_->Exists(kPrefsUpdateTimestampStart)) { in LoadUpdateTimestampStart()
1098 if (!prefs_->Exists(kPrefsUpdateDurationUptime)) { in LoadUpdateDurationUptime()
1307 if (prefs_->Exists(kPrefsTargetVersionInstalledFrom)) { in ReportFailedBootIfNeeded()
1349 if (prefs_->Exists(kPrefsTargetVersionUniqueId) && in ExpectRebootInNewVersion()
Domaha_request_action.cc1306 if (system_state_->prefs()->Exists(kPrefsUpdateCheckCount)) { in IsUpdateCheckCountBasedWaitingSatisfied()
1377 return prefs->Exists(kPrefsInstallDateDays); in HasInstallDate()
1402 if (new_value.empty() && system_state_->prefs()->Exists(prefs_key)) { in PersistCohortData()
1549 if (prefs->Exists(kPrefsUpdateOverCellularPermission) && in IsUpdateAllowedOverCellularByPrefs()
1557 if (!prefs->Exists(kPrefsUpdateOverCellularTargetVersion) || in IsUpdateAllowedOverCellularByPrefs()
1558 !prefs->Exists(kPrefsUpdateOverCellularTargetSize)) { in IsUpdateAllowedOverCellularByPrefs()
1698 if (system_state_->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in LoadOrPersistUpdateFirstSeenAtPref()
Dupdate_attempter.cc189 if (system_state_->prefs()->Exists(kPrefsDailyMetricsLastReportedAt) && in CheckAndReportDailyMetrics()
704 if (!system_state_->prefs()->Exists(metadata_key)) in GetPingMetadata()
1508 if (system_state_->prefs()->Exists(kPrefsOmahaEolDate) && in GetStatus()
1706 if (!prefs_->Exists(kPrefsUpdateCheckCount)) { in DecrementUpdateCheckCount()
1759 prefs_->Exists(kPrefsSystemUpdatedMarker)) { in UpdateEngineStarted()
1821 if (!prefs_->Exists(kPrefsUpdateCompletedOnBootId) || in GetBootTimeAtUpdate()
1874 if (system_state_->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in ReportTimeToUpdateAppliedMetric()
Dpayload_state_unittest.cc599 EXPECT_CALL(*prefs2, Exists(_)).WillRepeatedly(Return(true)); in TEST()
1139 EXPECT_TRUE(fake_prefs.Exists(kPrefsSystemUpdatedMarker)); in TEST()
1158 EXPECT_FALSE(fake_prefs.Exists(kPrefsSystemUpdatedMarker)); in TEST()
1171 EXPECT_CALL(*prefs, Exists(_)).Times(0); in TEST()
1215 EXPECT_FALSE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
1237 EXPECT_FALSE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
1242 EXPECT_TRUE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
1247 EXPECT_FALSE(fake_prefs.Exists(kPrefsAttemptInProgress)); in TEST()
Dimage_properties_android.cc209 if (!system_state->prefs()->Exists(current_channel_key) || in LoadImageProperties()
Domaha_request_action_unittest.cc665 EXPECT_FALSE(fake_prefs_.Exists(kPrefsOmahaCohort)); in TEST_F()
666 EXPECT_FALSE(fake_prefs_.Exists(kPrefsOmahaCohortHint)); in TEST_F()
667 EXPECT_FALSE(fake_prefs_.Exists(kPrefsOmahaCohortName)); in TEST_F()
2266 EXPECT_TRUE(fake_prefs_.Exists(kPrefsPreviousVersion)); in TEST_F()
2425 EXPECT_FALSE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2429 EXPECT_TRUE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2462 EXPECT_FALSE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2473 EXPECT_FALSE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2482 EXPECT_TRUE(fake_prefs_.Exists(kPrefsInstallDateDays)); in TEST_F()
2697 EXPECT_TRUE(fake_prefs_.Exists(kPrefsUpdateFirstSeenAt)); in TEST_F()
[all …]
Domaha_request_builder_xml.cc214 if (!prefs_->Exists(prefs_key)) in GetCohortArg()
/system/bt/gd/storage/
Ddevice_test.cc42 ASSERT_FALSE(device.Exists()); in TEST()
49 ASSERT_TRUE(device2.Exists()); in TEST()
56 ASSERT_TRUE(device3.Exists()); in TEST()
67 ASSERT_FALSE(device.Exists()); in TEST()
74 ASSERT_TRUE(device2.Exists()); in TEST()
81 ASSERT_TRUE(device3.Exists()); in TEST()
92 ASSERT_FALSE(device.Exists()); in TEST()
103 ASSERT_TRUE(device2.Exists()); in TEST()
112 ASSERT_FALSE(device.Exists()); in TEST()
117 ASSERT_TRUE(device.Exists()); in TEST()
[all …]
Ddevice.cc83 bool Device::Exists() { in Exists() function in bluetooth::storage::Device
Ddevice.h149 bool Exists();
/system/core/fs_mgr/libfs_avb/
Dutil.h61 enum class FileWaitMode { Exists, DoesNotExist }; enumerator
63 FileWaitMode wait_mode = FileWaitMode::Exists);
Dutil.cpp95 if (file_wait_mode == FileWaitMode::Exists) { in WaitForFile()
/system/core/fs_mgr/libfs_avb/tests/
Dutil_test.cpp182 auto wait_file = std::async(WaitForFile, wait_path.value(), 500ms, FileWaitMode::Exists); in TEST()
203 auto wait_file = std::async(WaitForFile, wait_path.value(), 50ms, FileWaitMode::Exists); in TEST()

12