/system/update_engine/common/ |
D | prefs_unittest.cc | 59 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 …]
|
D | mock_prefs.h | 42 MOCK_CONST_METHOD1(Exists, bool(const std::string& key));
|
D | prefs_interface.h | 77 virtual bool Exists(const std::string& key) const = 0;
|
D | fake_prefs.h | 49 bool Exists(const std::string& key) const override;
|
D | prefs.h | 75 bool Exists(const std::string& key) const override;
|
D | fake_prefs.cc | 92 bool FakePrefs::Exists(const string& key) const { in Exists() function in chromeos_update_engine::FakePrefs
|
D | prefs.cc | 100 bool PrefsBase::Exists(const string& key) const { in Exists() function in chromeos_update_engine::PrefsBase
|
/system/update_engine/ |
D | update_attempter_android_unittest.cc | 91 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()
|
D | excluder_chromeos.cc | 49 return prefs_->Exists(key); in IsExcluded()
|
D | common_service.cc | 241 if (prefs->Exists(kPrefsOmahaCohortHint) && in GetCohortHint() 269 if (prefs->Exists(kPrefsP2PEnabled) && in GetP2PUpdatePermission() 353 if (!prefs || !prefs->Exists(kPrefsUpdateOverCellularPermission)) { in GetUpdateOverCellularPermission()
|
D | update_attempter_unittest.cc | 1169 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 …]
|
D | update_attempter_android.cc | 255 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()
|
D | payload_state.cc | 428 !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()
|
D | omaha_request_action.cc | 1306 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()
|
D | update_attempter.cc | 189 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()
|
D | payload_state_unittest.cc | 599 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()
|
D | image_properties_android.cc | 209 if (!system_state->prefs()->Exists(current_channel_key) || in LoadImageProperties()
|
D | omaha_request_action_unittest.cc | 665 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 …]
|
D | omaha_request_builder_xml.cc | 214 if (!prefs_->Exists(prefs_key)) in GetCohortArg()
|
/system/bt/gd/storage/ |
D | device_test.cc | 42 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 …]
|
D | device.cc | 83 bool Device::Exists() { in Exists() function in bluetooth::storage::Device
|
D | device.h | 149 bool Exists();
|
/system/core/fs_mgr/libfs_avb/ |
D | util.h | 61 enum class FileWaitMode { Exists, DoesNotExist }; enumerator 63 FileWaitMode wait_mode = FileWaitMode::Exists);
|
D | util.cpp | 95 if (file_wait_mode == FileWaitMode::Exists) { in WaitForFile()
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | util_test.cpp | 182 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()
|