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.h41 MOCK_CONST_METHOD1(Exists, bool(const std::string& key));
Dprefs_interface.h77 virtual bool Exists(const std::string& key) const = 0;
Dfake_prefs.h50 bool Exists(const std::string& key) const override;
Dprefs.h76 bool Exists(const std::string& key) const override;
Dfake_prefs.cc93 bool FakePrefs::Exists(const string& key) const { in Exists() function in chromeos_update_engine::FakePrefs
Dprefs.cc102 bool PrefsBase::Exists(const string& key) const { in Exists() function in chromeos_update_engine::PrefsBase
/system/update_engine/aosp/
Dupdate_attempter_android_unittest.cc94 ASSERT_TRUE(prefs_.Exists(kPrefsBootId)); in TEST_F()
99 ASSERT_TRUE(prefs_.Exists(kPrefsNumReboots)); in TEST_F()
122 EXPECT_FALSE(prefs_.Exists(kPrefsNumReboots)); in TEST_F()
123 EXPECT_FALSE(prefs_.Exists(kPrefsUpdateTimestampStart)); in TEST_F()
124 EXPECT_FALSE(prefs_.Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
126 EXPECT_TRUE(prefs_.Exists(kPrefsPayloadAttemptNumber)); in TEST_F()
164 EXPECT_FALSE(prefs_.Exists(kPrefsNumReboots)); in TEST_F()
165 EXPECT_FALSE(prefs_.Exists(kPrefsPayloadAttemptNumber)); in TEST_F()
166 EXPECT_FALSE(prefs_.Exists(kPrefsUpdateTimestampStart)); in TEST_F()
167 EXPECT_TRUE(prefs_.Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
Dupdate_attempter_android.cc257 if (install_plan_.is_resume && prefs_->Exists(kPrefsVerityWritten)) { in ApplyPayload()
801 return (prefs_->Exists(kPrefsUpdateCompletedOnBootId) && in UpdateCompletedOnThisBoot()
897 if (!prefs_->Exists(kPrefsPreviousVersion)) { in UpdatePrefsAndReportUpdateMetricsOnReboot()
913 bool is_reboot = prefs_->Exists(kPrefsBootId) && in UpdatePrefsAndReportUpdateMetricsOnReboot()
918 if (is_reboot && prefs_->Exists(kPrefsNumReboots)) { in UpdatePrefsAndReportUpdateMetricsOnReboot()
934 bool previous_attempt_exists = prefs_->Exists(kPrefsPayloadAttemptNumber); in UpdatePrefsAndReportUpdateMetricsOnReboot()
/system/bt/gd/storage/
Ddevice_test.cc44 ASSERT_FALSE(device.Exists()); in TEST()
51 ASSERT_TRUE(device2.Exists()); in TEST()
58 ASSERT_TRUE(device3.Exists()); in TEST()
69 ASSERT_FALSE(device.Exists()); in TEST()
76 ASSERT_TRUE(device2.Exists()); in TEST()
83 ASSERT_TRUE(device3.Exists()); in TEST()
94 ASSERT_FALSE(device.Exists()); in TEST()
105 ASSERT_TRUE(device2.Exists()); in TEST()
114 ASSERT_FALSE(device.Exists()); in TEST()
119 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/update_engine/cros/
Dexcluder_chromeos.cc48 return prefs->Exists(key); in IsExcluded()
Dcommon_service.cc240 if (prefs->Exists(kPrefsOmahaCohortHint) && in GetCohortHint()
265 if (prefs->Exists(kPrefsP2PEnabled) && in GetP2PUpdatePermission()
343 if (!prefs->Exists(kPrefsUpdateOverCellularPermission)) { in GetUpdateOverCellularPermission()
Dupdate_attempter_unittest.cc503 EXPECT_FALSE(prefs_->Exists(kPrefsDeltaUpdateFailures)); in TEST_F()
606 EXPECT_FALSE(prefs_->Exists(kPrefsDeltaUpdateFailures)); in TEST_F()
1122 EXPECT_TRUE(fake_prefs->Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
1135 EXPECT_TRUE(fake_prefs->Exists(kPrefsUpdateCheckCount)); in DecrementUpdateCheckCountTestStart()
1185 EXPECT_FALSE(fake_prefs->Exists(kPrefsWallClockScatteringWaitPeriod)); in NoScatteringDoneDuringManualUpdateTestStart()
1189 EXPECT_FALSE(fake_prefs->Exists(kPrefsUpdateCheckCount)); in NoScatteringDoneDuringManualUpdateTestStart()
1248 EXPECT_FALSE(fake_prefs->Exists(kPrefsWallClockScatteringWaitPeriod)); in StagingSetsPrefsAndTurnsOffScatteringStart()
1255 EXPECT_FALSE(prefs_->Exists(kPrefsUpdateCheckCount)); in CheckStagingOff()
1256 EXPECT_FALSE(prefs_->Exists(kPrefsWallClockScatteringWaitPeriod)); in CheckStagingOff()
1257 EXPECT_FALSE(prefs_->Exists(kPrefsWallClockStagingWaitPeriod)); in CheckStagingOff()
[all …]
Dupdate_attempter.cc220 if (SystemState::Get()->prefs()->Exists(kPrefsDailyMetricsLastReportedAt) && in CheckAndReportDailyMetrics()
674 if (!SystemState::Get()->prefs()->Exists(metadata_key)) in GetPingMetadata()
1462 if (SystemState::Get()->prefs()->Exists(kPrefsOmahaEolDate) && in GetStatus()
1659 if (!prefs_->Exists(kPrefsUpdateCheckCount)) { in DecrementUpdateCheckCount()
1712 prefs_->Exists(kPrefsSystemUpdatedMarker)) { in UpdateEngineStarted()
1731 if (!prefs_->Exists(key) && powerwash_safe_prefs->Exists(key)) { in MoveToPrefs()
1789 if (!prefs_->Exists(kPrefsUpdateCompletedOnBootId) || in GetBootTimeAtUpdate()
1843 if (SystemState::Get()->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in ReportTimeToUpdateAppliedMetric()
Dpayload_state.cc428 !prefs_->Exists(kPrefsNoIgnoreBackoff)) { in ShouldBackoffDownload()
883 if (prefs_->Exists(kPrefsCurrentResponseSignature) && in LoadResponseSignature()
1004 if (!prefs_->Exists(kPrefsBackoffExpiryTime)) in LoadBackoffExpiryTime()
1040 if (!prefs_->Exists(kPrefsUpdateTimestampStart)) { in LoadUpdateTimestampStart()
1086 if (!prefs_->Exists(kPrefsUpdateDurationUptime)) { in LoadUpdateDurationUptime()
1287 if (prefs_->Exists(kPrefsTargetVersionInstalledFrom)) { in ReportFailedBootIfNeeded()
1330 if (prefs_->Exists(kPrefsTargetVersionUniqueId) && in ExpectRebootInNewVersion()
Domaha_request_action.cc1342 if (SystemState::Get()->prefs()->Exists(kPrefsUpdateCheckCount)) { in IsUpdateCheckCountBasedWaitingSatisfied()
1409 return SystemState::Get()->prefs()->Exists(kPrefsInstallDateDays); in HasInstallDate()
1433 if (value.empty() && SystemState::Get()->prefs()->Exists(prefs_key)) { in PersistCohortData()
1593 if (prefs->Exists(kPrefsUpdateOverCellularPermission) && in IsUpdateAllowedOverCellularByPrefs()
1601 if (!prefs->Exists(kPrefsUpdateOverCellularTargetVersion) || in IsUpdateAllowedOverCellularByPrefs()
1602 !prefs->Exists(kPrefsUpdateOverCellularTargetSize)) { in IsUpdateAllowedOverCellularByPrefs()
1743 if (SystemState::Get()->prefs()->Exists(kPrefsUpdateFirstSeenAt)) { in LoadOrPersistUpdateFirstSeenAtPref()
Dpayload_state_unittest.cc602 EXPECT_CALL(*prefs, Exists(_)).WillRepeatedly(Return(true)); in TEST_F()
1124 EXPECT_TRUE(fake_prefs->Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
1143 EXPECT_FALSE(fake_prefs->Exists(kPrefsSystemUpdatedMarker)); in TEST_F()
1156 EXPECT_CALL(*prefs, Exists(_)).Times(0); in TEST_F()
1196 EXPECT_FALSE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
1215 EXPECT_FALSE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
1220 EXPECT_TRUE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
1225 EXPECT_FALSE(fake_prefs->Exists(kPrefsAttemptInProgress)); in TEST_F()
Domaha_request_action_unittest.cc682 EXPECT_FALSE(fake_prefs_->Exists(kPrefsOmahaCohort)); in TEST_F()
683 EXPECT_FALSE(fake_prefs_->Exists(kPrefsOmahaCohortHint)); in TEST_F()
684 EXPECT_FALSE(fake_prefs_->Exists(kPrefsOmahaCohortName)); in TEST_F()
2381 EXPECT_TRUE(fake_prefs_->Exists(kPrefsPreviousVersion)); in TEST_F()
2540 EXPECT_FALSE(fake_prefs_->Exists(kPrefsInstallDateDays)); in TEST_F()
2544 EXPECT_TRUE(fake_prefs_->Exists(kPrefsInstallDateDays)); in TEST_F()
2577 EXPECT_FALSE(fake_prefs_->Exists(kPrefsInstallDateDays)); in TEST_F()
2588 EXPECT_FALSE(fake_prefs_->Exists(kPrefsInstallDateDays)); in TEST_F()
2597 EXPECT_TRUE(fake_prefs_->Exists(kPrefsInstallDateDays)); in TEST_F()
2812 EXPECT_TRUE(fake_prefs_->Exists(kPrefsUpdateFirstSeenAt)); in TEST_F()
[all …]
/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()
/system/update_engine/update_manager/
Dreal_updater_provider.cc320 if (prefs->Exists(key_) && !prefs->GetBoolean(key_, &result)) in OnPrefSet()
449 if (prefs->Exists(key) && prefs->GetInt64(key, &result)) { in GetValue()
/system/apex/proto/
Dapex_manifest.proto76 // Exists only for compressed APEX

12