/system/update_engine/common/ |
prefs_unittest.cc | 46 ASSERT_TRUE(prefs_.Init(prefs_dir_)); 59 Prefs prefs_; member in class:chromeos_update_engine::PrefsTest 66 EXPECT_TRUE(prefs_.file_storage_.GetFileNameForKey(kAllvalidCharsKey, &path)); 72 EXPECT_FALSE(prefs_.file_storage_.GetFileNameForKey("ABC abc", &path)); 77 EXPECT_FALSE(prefs_.file_storage_.GetFileNameForKey("", &path)); 84 EXPECT_TRUE(prefs_.GetString(kKey, &value)); 90 EXPECT_FALSE(prefs_.GetString(",bad", &value)); 95 EXPECT_FALSE(prefs_.GetString("non-existent-key", &value)); 100 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); 108 EXPECT_FALSE(prefs_.SetString(kKeyWithDots, "some value")) 344 MemoryPrefs prefs_; member in class:chromeos_update_engine::MemoryPrefsTest [all...] |
/system/update_engine/ |
payload_state.cc | 55 : prefs_(nullptr), 73 prefs_ = system_state_->prefs(); 646 prefs_->SetBoolean(kPrefsAttemptInProgress, true); 650 prefs_->Delete(kPrefsAttemptInProgress); 655 if (!prefs_->GetBoolean(kPrefsAttemptInProgress, &attempt_in_progress)) 711 prefs_->Delete(kPrefsUpdateTimestampStart); 712 prefs_->Delete(kPrefsUpdateDurationUptime); 745 CHECK(prefs_); 747 prefs_->SetInt64(kPrefsNumReboots, num_reboots); 786 CHECK(prefs_); [all...] |
certificate_checker_unittest.cc | 61 MockPrefs prefs_; member in class:chromeos_update_engine::CertificateCheckerTest 74 CertificateChecker cert_checker{&prefs_, &openssl_wrapper_}; 85 EXPECT_CALL(prefs_, GetString(cert_key_, _)).WillOnce(Return(false)); 86 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); 102 EXPECT_CALL(prefs_, GetString(cert_key_, _)) 104 EXPECT_CALL(prefs_, SetString(_, _)).Times(0); 120 EXPECT_CALL(prefs_, GetString(cert_key_, _)) 125 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); 134 EXPECT_CALL(prefs_, GetString(_, _)).Times(0);
|
fake_system_state.cc | 31 prefs_(&mock_prefs_),
|
daemon_state_android.cc | 55 prefs_.reset(prefs); 63 new CertificateChecker(prefs_.get(), &openssl_wrapper_)); 68 this, prefs_.get(), boot_control_.get(), hardware_.get()));
|
daemon_state_android.h | 63 std::unique_ptr<PrefsInterface> prefs_; member in class:chromeos_update_engine::DaemonStateAndroid
|
update_attempter_android.cc | 85 prefs_(prefs), 165 DeltaPerformer::CanResumeUpdate(prefs_, payload_id); 167 if (!DeltaPerformer::ResetUpdateProgress(prefs_, false)) { 170 if (!prefs_->SetString(kPrefsUpdateCheckResponseHash, payload_id)) { 254 bool ret_value = prefs_->Delete(kPrefsUpdateCompletedOnBootId); 288 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0); 289 DeltaPerformer::ResetUpdateProgress(prefs_, false); 301 DeltaPerformer::ResetUpdateProgress(prefs_, false); 451 prefs_, 493 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) [all...] |
certificate_checker.cc | 62 : prefs_(prefs), openssl_wrapper_(openssl_wrapper) { 137 TEST_AND_RETURN_FALSE(prefs_ != nullptr); 169 if (!prefs_->GetString(storage_key, &stored_digest)) { 170 if (!prefs_->SetString(storage_key, digest_string)) { 181 if (!prefs_->SetString(storage_key, digest_string)) {
|
real_system_state.cc | 88 prefs_.reset(prefs = new Prefs()); 112 system_rebooted_ = (!prefs_->GetString(kPrefsBootId, &prev_boot_id) || 114 prefs_->SetString(kPrefsBootId, boot_id); 130 new CertificateChecker(prefs_.get(), &openssl_wrapper_));
|
update_attempter.cc | 151 prefs_ = system_state_->prefs(); 501 if (prefs_->GetInt64(kPrefsWallClockWaitPeriod, &wait_period_in_secs) && 561 prefs_->Delete(kPrefsWallClockWaitPeriod); 562 prefs_->Delete(kPrefsUpdateCheckCount); 631 prefs_, [all...] |
real_system_state.h | 98 inline PrefsInterface* prefs() override { return prefs_.get(); } 161 std::unique_ptr<PrefsInterface> prefs_; member in class:chromeos_update_engine::RealSystemState
|
update_attempter_unittest.cc | 145 prefs_ = fake_system_state_.mock_prefs(); 209 NiceMock<MockPrefs>* prefs_; // Shortcut to fake_system_state_->mock_prefs(). member in class:chromeos_update_engine::UpdateAttempterTest 225 DownloadAction action(prefs_, nullptr, nullptr, nullptr, fetcher.release()); 226 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0); 237 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) 253 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)).Times(0); 306 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) 310 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) 316 EXPECT_CALL(*prefs_, GetInt64(kPrefsDeltaUpdateFailures, _)) 322 EXPECT_CALL(*prefs_, GetInt64(_, _)).Times(0) [all...] |
certificate_checker.h | 162 PrefsInterface* prefs_; member in class:chromeos_update_engine::CertificateChecker
|
fake_system_state.h | 74 inline PrefsInterface* prefs() override { return prefs_; } 134 prefs_ = prefs ? prefs : &mock_prefs_; 200 CHECK(prefs_ == &mock_prefs_); 257 PrefsInterface* prefs_; member in class:chromeos_update_engine::FakeSystemState
|
update_attempter_android.h | 128 PrefsInterface* prefs_; member in class:chromeos_update_engine::UpdateAttempterAndroid
|
payload_state.h | 239 // Returns the persisted value from prefs_ for the given key. It also 428 PrefsInterface* prefs_; member in class:chromeos_update_engine::PayloadState
|
update_attempter.h | 436 PrefsInterface* prefs_ = nullptr; member in class:chromeos_update_engine::UpdateAttempter
|
/system/update_engine/update_manager/ |
real_updater_provider.cc | 310 prefs_(prefs), 317 prefs_->RemoveObserver(key_, this); 325 if (prefs_ && prefs_->Exists(key_) && !prefs_->GetBoolean(key_, &result)) 335 chromeos_update_engine::PrefsInterface* prefs_; member in class:chromeos_update_manager::BooleanPrefVariable
|
/system/update_engine/payload_consumer/ |
download_action.h | 138 PrefsInterface* prefs_; member in class:chromeos_update_engine::DownloadAction
|
delta_performer.cc | 627 LOG_IF(WARNING, !prefs_->SetInt64(kPrefsManifestMetadataSize, 630 LOG_IF(WARNING, !prefs_->SetInt64(kPrefsManifestSignatureSize, [all...] |
delta_performer.h | 82 : prefs_(prefs), 299 PrefsInterface* prefs_; member in class:chromeos_update_engine::DeltaPerformer
|
download_action.cc | 46 : prefs_(prefs), 189 prefs_, boot_control_, hardware_, delegate_, &install_plan_));
|
delta_performer_unittest.cc | 330 FakePrefs prefs_; member in class:chromeos_update_engine::DeltaPerformerTest 336 &prefs_, &fake_boot_control_, &fake_hardware_, &mock_delegate_, &install_plan_}; [all...] |