Searched refs:prefs_ (Results 1 - 23 of 23) sorted by relevance

/system/update_engine/common/
H A Dprefs_unittest.cc45 ASSERT_TRUE(prefs_.Init(prefs_dir_));
58 Prefs prefs_; member in class:chromeos_update_engine::PrefsTest
65 EXPECT_TRUE(prefs_.GetFileNameForKey(kAllvalidCharsKey, &path));
71 EXPECT_FALSE(prefs_.GetFileNameForKey("ABC abc", &path));
76 EXPECT_FALSE(prefs_.GetFileNameForKey("", &path));
83 EXPECT_TRUE(prefs_.GetString(kKey, &value));
89 EXPECT_FALSE(prefs_.GetString(",bad", &value));
94 EXPECT_FALSE(prefs_.GetString("non-existent-key", &value));
99 EXPECT_TRUE(prefs_.SetString(kKey, kValue));
107 EXPECT_FALSE(prefs_
[all...]
H A Dcertificate_checker_unittest.cc61 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);
H A Dcertificate_checker.cc62 : 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)) {
H A Dcertificate_checker.h162 PrefsInterface* prefs_; member in class:chromeos_update_engine::CertificateChecker
/system/update_engine/
H A Dpayload_state.cc55 : 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...]
H A Dfake_system_state.cc31 prefs_(&mock_prefs_),
H A Ddaemon_state_android.h63 std::unique_ptr<PrefsInterface> prefs_; member in class:chromeos_update_engine::DaemonStateAndroid
H A Ddaemon_state_android.cc55 prefs_.reset(prefs);
63 this, prefs_.get(), boot_control_.get(), hardware_.get()));
H A Dupdate_attempter_android.cc78 prefs_(prefs),
157 DeltaPerformer::CanResumeUpdate(prefs_, payload_id);
159 if (!DeltaPerformer::ResetUpdateProgress(prefs_, false)) {
162 if (!prefs_->SetString(kPrefsUpdateCheckResponseHash, payload_id)) {
228 bool ret_value = prefs_->Delete(kPrefsUpdateCompletedOnBootId);
261 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0);
262 DeltaPerformer::ResetUpdateProgress(prefs_, false);
397 prefs_,
438 prefs_->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size);
439 prefs_
[all...]
H A Dreal_system_state.cc88 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_));
H A Dupdate_attempter.cc151 prefs_ = system_state_->prefs();
501 if (prefs_->GetInt64(kPrefsWallClockWaitPeriod, &wait_period_in_secs) &&
561 prefs_->Delete(kPrefsWallClockWaitPeriod);
562 prefs_->Delete(kPrefsUpdateCheckCount);
630 prefs_,
837 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id);
840 prefs_->SetInt64(kPrefsUpdateCompletedBootTime, value);
940 prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0);
941 prefs_->SetString(kPrefsPreviousVersion,
943 DeltaPerformer::ResetUpdateProgress(prefs_, fals
[all...]
H A Dreal_system_state.h93 inline PrefsInterface* prefs() override { return prefs_.get(); }
156 std::unique_ptr<PrefsInterface> prefs_; member in class:chromeos_update_engine::RealSystemState
H A Dupdate_attempter_unittest.cc145 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_, GetInt6
[all...]
H A Dfake_system_state.h74 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
H A Dupdate_attempter_android.h128 PrefsInterface* prefs_; member in class:chromeos_update_engine::UpdateAttempterAndroid
H A Dpayload_state.h239 // Returns the persisted value from prefs_ for the given key. It also
428 PrefsInterface* prefs_; member in class:chromeos_update_engine::PayloadState
H A Dupdate_attempter.h432 PrefsInterface* prefs_ = nullptr; member in class:chromeos_update_engine::UpdateAttempter
/system/update_engine/update_manager/
H A Dreal_updater_provider.cc310 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/
H A Ddownload_action.h140 PrefsInterface* prefs_; member in class:chromeos_update_engine::DownloadAction
H A Ddelta_performer.cc582 LOG_IF(WARNING, !prefs_->SetInt64(kPrefsManifestMetadataSize,
585 LOG_IF(WARNING, !prefs_->SetInt64(kPrefsManifestSignatureSize,
1267 LOG_IF(WARNING, !prefs_->SetString(kPrefsUpdateStateSignatureBlob,
1738 ResetUpdateProgress(prefs_, true);
1740 prefs_->SetString(kPrefsUpdateStateSHA256Context,
1743 prefs_->SetString(kPrefsUpdateStateSignedSHA256Context,
1745 TEST_AND_RETURN_FALSE(prefs_->SetInt64(kPrefsUpdateStateNextDataOffset,
1757 TEST_AND_RETURN_FALSE(prefs_->SetInt64(kPrefsUpdateStateNextDataLength,
1760 TEST_AND_RETURN_FALSE(prefs_->SetInt64(kPrefsUpdateStateNextDataLength,
1764 TEST_AND_RETURN_FALSE(prefs_
[all...]
H A Ddelta_performer.h82 : prefs_(prefs),
295 PrefsInterface* prefs_; member in class:chromeos_update_engine::DeltaPerformer
H A Ddownload_action.cc46 : prefs_(prefs),
189 prefs_, boot_control_, hardware_, delegate_, &install_plan_));
H A Ddelta_performer_unittest.cc330 FakePrefs prefs_; member in class:chromeos_update_engine::DeltaPerformerTest
336 &prefs_, &fake_boot_control_, &fake_hardware_, &mock_delegate_, &install_plan_};

Completed in 161 milliseconds