Searched refs:prefs (Results 1 - 25 of 30) sorted by relevance

12

/system/update_engine/
H A Dimage_properties_android.cc87 // channel where we got the image from in prefs at the time of the update, so
94 if (!system_state->prefs()->Exists(current_channel_key) ||
95 !system_state->prefs()->GetString(current_channel_key, &current_channel))
107 PrefsInterface* const prefs = system_state->prefs(); local
108 if (!prefs->GetString(kPrefsImgPropChannelName, &result.target_channel))
110 if (!prefs->GetBoolean(kPrefsImgPropPowerwashAllowed,
119 PrefsInterface* const prefs = system_state->prefs(); local
121 prefs
[all...]
H A Dcommon_service.cc32 #include "update_engine/common/prefs.h"
192 PrefsInterface* prefs = system_state_->prefs(); local
197 if (!prefs->SetString(kPrefsOmahaCohortHint, in_cohort_hint)) {
210 PrefsInterface* prefs = system_state_->prefs(); local
213 if (prefs->Exists(kPrefsOmahaCohortHint) &&
214 !prefs->GetString(kPrefsOmahaCohortHint, out_cohort_hint)) {
223 PrefsInterface* prefs = system_state_->prefs(); local
238 PrefsInterface* prefs = system_state_->prefs(); local
279 PrefsInterface* prefs = system_state_->prefs(); local
362 PrefsInterface* prefs = system_state_->prefs(); local
[all...]
H A Dpayload_state_unittest.cc30 #include "update_engine/common/prefs.h"
107 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
108 EXPECT_CALL(*prefs, SetInt64(_, _)).Times(AnyNumber());
109 EXPECT_CALL(*prefs, SetInt64(kPrefsPayloadAttemptNumber, 0))
111 EXPECT_CALL(*prefs, SetInt64(kPrefsFullPayloadAttemptNumber, 0))
113 EXPECT_CALL(*prefs, SetInt64(kPrefsBackoffExpiryTime, 0)).Times(AtLeast(1));
114 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlIndex, 0)).Times(AtLeast(1));
115 EXPECT_CALL(*prefs, SetInt64(kPrefsCurrentUrlFailureCount, 0))
117 EXPECT_CALL(*prefs, SetInt64(kPrefsUpdateTimestampStart, _))
119 EXPECT_CALL(*prefs, SetInt6
155 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
208 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
253 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
358 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
503 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
544 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
962 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
1139 NiceMock<MockPrefs>* prefs = fake_system_state.mock_prefs(); local
[all...]
H A Ddaemon_state_android.cc24 #include "update_engine/common/prefs.h"
46 // Initialize prefs.
48 // TODO(deymo): Fall back to in-memory prefs if there's no physical directory
54 Prefs* prefs = new Prefs(); local
55 prefs_.reset(prefs);
56 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) {
H A Domaha_request_action.cc120 PrefsInterface* prefs) {
140 if (!prefs->GetString(kPrefsPreviousVersion, &prev_version)) {
153 LOG_IF(WARNING, !prefs->SetString(kPrefsPreviousVersion, ""))
176 string GetCohortArgXml(PrefsInterface* prefs, argument
181 if (!prefs->Exists(prefs_key))
184 if (!prefs->GetString(prefs_key, &cohort_value) || cohort_value.empty())
219 system_state->prefs());
254 app_cohort_args += GetCohortArgXml(system_state->prefs(),
256 app_cohort_args += GetCohortArgXml(system_state->prefs(),
258 app_cohort_args += GetCohortArgXml(system_state->prefs(),
114 GetAppBody(const OmahaEvent* event, OmahaRequestParams* params, bool ping_only, bool include_ping, int ping_active_days, int ping_roll_call_days, PrefsInterface* prefs) argument
584 PrefsInterface* prefs = system_state->prefs(); local
715 UpdateLastPingDays(OmahaParserData *parser_data, PrefsInterface* prefs) argument
1381 PrefsInterface* prefs = system_state->prefs(); local
1395 PrefsInterface* prefs = system_state->prefs(); local
[all...]
H A Dconnection_manager.cc28 #include "update_engine/common/prefs.h"
87 PrefsInterface* prefs = system_state_->prefs(); local
89 if (!prefs || !prefs->Exists(kPrefsUpdateOverCellularPermission)) {
96 if (!prefs->GetBoolean(kPrefsUpdateOverCellularPermission,
H A Dreal_system_state.cc78 // Initialize standard and powerwash-safe prefs.
80 // TODO(deymo): Fall back to in-memory prefs if there's no physical directory
86 Prefs* prefs; local
87 prefs_.reset(prefs = new Prefs());
88 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) {
95 // TODO(deymo): Fall-back to in-memory prefs if there's no powerwash-safe
100 powerwash_safe_prefs_.reset(prefs = new Prefs());
101 if (!prefs->Init(
H A Domaha_request_action_unittest.cc44 #include "update_engine/common/prefs.h"
166 // OmahaRequestAction. |prefs| may be null, in which case a local MockPrefs
1231 NiceMock<MockPrefs> prefs; local
1232 fake_system_state_.set_prefs(&prefs);
1234 EXPECT_CALL(prefs, GetString(kPrefsPreviousVersion, _))
1238 EXPECT_CALL(prefs, SetString(kPrefsPreviousVersion, _)).Times(0);
1432 NiceMock<MockPrefs> prefs; local
1433 fake_system_state_.set_prefs(&prefs);
1434 EXPECT_CALL(prefs, GetInt64(kPrefsMetricsCheckLastReportingTime, _))
1436 EXPECT_CALL(prefs, SetInt6
1481 NiceMock<MockPrefs> prefs; local
1513 NiceMock<MockPrefs> prefs; local
1545 NiceMock<MockPrefs> prefs; local
1582 NiceMock<MockPrefs> prefs; local
1607 NiceMock<MockPrefs> prefs; local
1652 NiceMock<MockPrefs> prefs; local
1679 NiceMock<MockPrefs> prefs; local
1702 NiceMock<MockPrefs> prefs; local
[all...]
H A Domaha_response_handler_action.cc95 DeltaPerformer::CanResumeUpdate(system_state_->prefs(), response.hash);
101 system_state_->prefs(), false))
103 LOG_IF(WARNING, !system_state_->prefs()->SetString(
120 system_state_->prefs()->SetString(current_channel_key,
H A Dfake_system_state.h73 inline PrefsInterface* prefs() override { return prefs_; }
131 inline void set_prefs(PrefsInterface* prefs) { argument
132 prefs_ = prefs ? prefs : &mock_prefs_;
H A Dsystem_state.h83 virtual PrefsInterface* prefs() = 0;
H A Dconnection_manager_unittest.cc335 testing::NiceMock<MockPrefs>* prefs = fake_system_state_.mock_prefs(); local
339 // No setting enforced by the device policy, user prefs should be used.
345 EXPECT_CALL(*prefs, Exists(kPrefsUpdateOverCellularPermission))
352 EXPECT_CALL(*prefs, Exists(kPrefsUpdateOverCellularPermission))
355 EXPECT_CALL(*prefs, GetBoolean(kPrefsUpdateOverCellularPermission, _))
362 EXPECT_CALL(*prefs, Exists(kPrefsUpdateOverCellularPermission))
365 EXPECT_CALL(*prefs, GetBoolean(kPrefsUpdateOverCellularPermission, _))
H A Dcertificate_checker.cc60 CertificateChecker::CertificateChecker(PrefsInterface* prefs, argument
62 : prefs_(prefs), openssl_wrapper_(openssl_wrapper) {
161 // prefs.
H A Dcertificate_checker.h73 // These values are used to generate the keys of files persisted via prefs.
102 CertificateChecker(PrefsInterface* prefs, OpenSSLWrapper* openssl_wrapper);
H A Dreal_system_state.h32 #include "update_engine/common/prefs.h"
95 inline PrefsInterface* prefs() override { return prefs_.get(); }
H A Dupdate_attempter_android.h52 PrefsInterface* prefs,
H A Dmetrics_utils.cc273 if (system_state->prefs()->GetInt64(state_variable_key, &stored_value)) {
284 if (!system_state->prefs()->SetInt64(state_variable_key,
H A Dsideload_main.cc36 #include "update_engine/common/prefs.h"
159 // During the sideload we don't access the prefs persisted on disk but instead
161 MemoryPrefs prefs; local
177 &sideload_daemon_state, &prefs, boot_control.get(), hardware.get());
/system/update_engine/payload_consumer/
H A Ddelta_performer.h77 DeltaPerformer(PrefsInterface* prefs, argument
82 : prefs_(prefs),
142 static bool CanResumeUpdate(PrefsInterface* prefs,
149 static bool ResetUpdateProgress(PrefsInterface* prefs, bool quick);
H A Ddownload_action_unittest.cc159 MockPrefs prefs; local
164 DownloadAction download_action(&prefs,
277 MockPrefs prefs; local
279 &prefs,
377 MockPrefs prefs; local
379 DownloadAction download_action(&prefs,
462 MockPrefs prefs; local
467 download_action_.reset(new DownloadAction(&prefs,
H A Ddownload_action.h74 // DownloadAction(prefs, boot_contol, hardware, system_state,
76 DownloadAction(PrefsInterface* prefs,
H A Ddelta_performer.cc1677 bool DeltaPerformer::CanResumeUpdate(PrefsInterface* prefs, argument
1680 if (!(prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) &&
1686 if (!(prefs->GetString(kPrefsUpdateCheckResponseHash, &interrupted_hash) &&
1694 if (prefs->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures) &&
1700 if (!(prefs->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) &&
1705 if (!(prefs->GetString(kPrefsUpdateStateSHA256Context, &sha256_context) &&
1710 if (!(prefs->GetInt64(kPrefsManifestMetadataSize, &manifest_metadata_size) &&
1715 if (!(prefs->GetInt64(kPrefsManifestSignatureSize,
1723 bool DeltaPerformer::ResetUpdateProgress(PrefsInterface* prefs, bool quick) { argument
1724 TEST_AND_RETURN_FALSE(prefs
[all...]
H A Ddelta_performer_integration_test.cc695 MockPrefs prefs; local
696 EXPECT_CALL(prefs, SetInt64(kPrefsManifestMetadataSize,
698 EXPECT_CALL(prefs, SetInt64(kPrefsManifestSignatureSize, 0))
700 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextOperation, _))
702 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextOperation, _))
704 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextDataOffset, _))
706 EXPECT_CALL(prefs, SetInt64(kPrefsUpdateStateNextDataLength, _))
708 EXPECT_CALL(prefs, SetString(kPrefsUpdateStateSHA256Context, _))
710 EXPECT_CALL(prefs, SetString(kPrefsUpdateStateSignedSHA256Context, _))
713 EXPECT_CALL(prefs, SetStrin
[all...]
H A Ddownload_action.cc42 DownloadAction::DownloadAction(PrefsInterface* prefs, argument
47 : prefs_(prefs),
/system/update_engine/update_manager/
H A Dreal_updater_provider.cc29 #include "update_engine/common/prefs.h"
300 // A variable class for reading Boolean prefs values.
306 chromeos_update_engine::PrefsInterface* prefs,
310 prefs_(prefs),
313 prefs->AddObserver(key, this);
435 new BooleanPrefVariable("p2p_enabled", system_state_->prefs(),
440 "cellular_enabled", system_state_->prefs(),
305 BooleanPrefVariable(const string& name, chromeos_update_engine::PrefsInterface* prefs, const char* key, bool default_val) argument

Completed in 203 milliseconds

12