Home
last modified time | relevance | path

Searched refs:prefs (Results 1 – 25 of 28) sorted by relevance

12

/system/update_engine/
Ddownload_action_android_unittest.cc59 MockPrefs prefs; in TEST_F() local
60 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStatePayloadIndex, _)) in TEST_F()
62 EXPECT_CALL(prefs, GetInt64(kPrefsManifestMetadataSize, _)) in TEST_F()
64 EXPECT_CALL(prefs, GetInt64(kPrefsManifestSignatureSize, _)) in TEST_F()
66 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStateNextDataOffset, _)) in TEST_F()
68 EXPECT_CALL(prefs, GetString(kPrefsManifestBytes, _)) in TEST_F()
84 &prefs, &boot_control, nullptr, http_fetcher, false /* interactive */); in TEST_F()
122 MockPrefs prefs; in TEST_F() local
123 EXPECT_CALL(prefs, GetInt64(kPrefsUpdateStatePayloadIndex, _)) in TEST_F()
125 EXPECT_CALL(prefs, GetInt64(kPrefsManifestMetadataSize, _)) in TEST_F()
[all …]
Dmetrics_utils.h57 int64_t GetPersistedValue(std::string_view key, PrefsInterface* prefs);
60 void SetNumReboots(int64_t num_reboots, PrefsInterface* prefs);
64 PrefsInterface* prefs);
67 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs);
72 PrefsInterface* prefs);
77 PrefsInterface* prefs);
85 PrefsInterface* prefs,
91 PersistedValue(std::string_view key, PrefsInterface* prefs) in PersistedValue() argument
92 : key_(key), prefs_(prefs) { in PersistedValue()
93 val_ = metrics_utils::GetPersistedValue(key, prefs); in PersistedValue()
Dmetrics_utils.cc297 int64_t GetPersistedValue(std::string_view key, PrefsInterface* prefs) { in GetPersistedValue() argument
298 CHECK(prefs); in GetPersistedValue()
299 if (!prefs->Exists(key)) in GetPersistedValue()
303 if (!prefs->GetInt64(key, &stored_value)) in GetPersistedValue()
315 void SetNumReboots(int64_t num_reboots, PrefsInterface* prefs) { in SetNumReboots() argument
316 CHECK(prefs); in SetNumReboots()
317 prefs->SetInt64(kPrefsNumReboots, num_reboots); in SetNumReboots()
323 PrefsInterface* prefs) { in SetPayloadAttemptNumber() argument
324 CHECK(prefs); in SetPayloadAttemptNumber()
325 prefs->SetInt64(kPrefsPayloadAttemptNumber, payload_attempt_number); in SetPayloadAttemptNumber()
[all …]
Dcertificate_checker.cc60 CertificateChecker::CertificateChecker(PrefsInterface* prefs, in CertificateChecker() argument
62 : prefs_(prefs), openssl_wrapper_(openssl_wrapper) {} in CertificateChecker()
Dcertificate_checker.h102 CertificateChecker(PrefsInterface* prefs, OpenSSLWrapper* openssl_wrapper);
Ddownload_action.cc39 DownloadAction::DownloadAction(PrefsInterface* prefs, in DownloadAction() argument
45 : prefs_(prefs), in DownloadAction()
/system/update_engine/aosp/
Ddaemon_state_android.cc54 Prefs* prefs = new Prefs(); in Initialize() local
55 prefs_.reset(prefs); in Initialize()
56 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
Dsideload_main.cc142 MemoryPrefs prefs; in ApplyUpdatePayload() local
158 &prefs, in ApplyUpdatePayload()
Dcleanup_previous_update_action.h51 PrefsInterface* prefs,
Ddynamic_partition_control_android.h62 PrefsInterface* prefs,
65 bool ResetUpdate(PrefsInterface* prefs) override;
Dcleanup_previous_update_action.cc58 PrefsInterface* prefs, in CleanupPreviousUpdateAction() argument
62 : prefs_(prefs), in CleanupPreviousUpdateAction()
Ddynamic_partition_control_android.cc1293 PrefsInterface* prefs, in GetCleanupPreviousUpdateAction() argument
1299 prefs, boot_control, snapshot_.get(), delegate); in GetCleanupPreviousUpdateAction()
1302 bool DynamicPartitionControlAndroid::ResetUpdate(PrefsInterface* prefs) { in ResetUpdate() argument
1311 TEST_AND_RETURN_FALSE(prefs != nullptr); in ResetUpdate()
1318 DeltaPerformer::ResetUpdateProgress(prefs, false /* quick */)); in ResetUpdate()
Dupdate_attempter_android.h66 PrefsInterface* prefs,
Dupdate_attempter_android.cc138 PrefsInterface* prefs, in UpdateAttempterAndroid() argument
143 prefs_(prefs), in UpdateAttempterAndroid()
162 [[nodiscard]] static bool DidSystemReboot(PrefsInterface* prefs) { in DidSystemReboot() argument
167 if (!prefs->GetString(kPrefsBootId, &old_boot_id)) { in DidSystemReboot()
/system/update_engine/payload_consumer/
Ddelta_performer.cc816 PrefsInterface* prefs, in PreparePartitionsForUpdate() argument
824 prefs->GetString(kPrefsDynamicPartitionMetadataUpdated, &last_hash)); in PreparePartitionsForUpdate()
835 ResetUpdateProgress(prefs, false); in PreparePartitionsForUpdate()
849 TEST_AND_RETURN_FALSE(prefs->SetString(kPrefsDynamicPartitionMetadataUpdated, in PreparePartitionsForUpdate()
1304 bool DeltaPerformer::CanResumeUpdate(PrefsInterface* prefs, in CanResumeUpdate() argument
1307 if (!(prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) && in CanResumeUpdate()
1315 if (!(prefs->GetString(kPrefsUpdateCheckResponseHash, &interrupted_hash) && in CanResumeUpdate()
1327 if (prefs->GetInt64(kPrefsResumedUpdateFailures, &resumed_update_failures) && in CanResumeUpdate()
1336 if (!(prefs->GetInt64(kPrefsUpdateStateNextDataOffset, &next_data_offset) && in CanResumeUpdate()
1345 if (!(prefs->GetString(kPrefsUpdateStateSHA256Context, &sha256_context) && in CanResumeUpdate()
[all …]
Ddelta_performer.h68 PrefsInterface* prefs,
76 : prefs_(prefs), in prefs_() argument
141 static bool CanResumeUpdate(PrefsInterface* prefs,
150 static bool ResetUpdateProgress(PrefsInterface* prefs, bool quick);
184 PrefsInterface* prefs,
Ddelta_performer_integration_test.cc133 FakePrefs prefs; in RunManifestValidation() local
136 DeltaPerformer performer{&prefs, in RunManifestValidation()
716 NiceMock<MockPrefs> prefs; in ApplyDeltaFile() local
717 ON_CALL(prefs, SetInt64(kPrefsManifestMetadataSize, -1)) in ApplyDeltaFile()
719 ON_CALL(prefs, SetInt64(kPrefsUpdateCheckResponseHash, -1)) in ApplyDeltaFile()
721 ON_CALL(prefs, GetString(kPrefsUpdateCheckResponseHash, _)) in ApplyDeltaFile()
723 ON_CALL(prefs, GetString(kPrefsDynamicPartitionMetadataUpdated, _)) in ApplyDeltaFile()
730 EXPECT_CALL(prefs, SetString(_, IsEmpty())).WillRepeatedly(Return(true)); in ApplyDeltaFile()
731 EXPECT_CALL(prefs, SetInt64(_, -1)).WillRepeatedly(Return(true)); in ApplyDeltaFile()
732 EXPECT_CALL(prefs, SetInt64(_, 0)).WillRepeatedly(Return(true)); in ApplyDeltaFile()
[all …]
Ddelta_performer_fuzzer.cc48 MemoryPrefs prefs; in FuzzDeltaPerformer() local
75 DeltaPerformer performer(&prefs, in FuzzDeltaPerformer()
/system/update_engine/common/
Ddynamic_partition_control_stub.h50 PrefsInterface* prefs,
52 bool ResetUpdate(PrefsInterface* prefs) override;
Ddynamic_partition_control_stub.cc76 PrefsInterface* prefs, in GetCleanupPreviousUpdateAction() argument
81 bool DynamicPartitionControlStub::ResetUpdate(PrefsInterface* prefs) { in ResetUpdate() argument
Ddynamic_partition_control_interface.h129 PrefsInterface* prefs,
143 virtual bool ResetUpdate(PrefsInterface* prefs) = 0;
Dsystem_state.h88 virtual PrefsInterface* prefs() = 0;
Ddownload_action.h76 PrefsInterface* prefs,
Dprefs_unittest.cc164 Prefs prefs; in TEST() local
184 ASSERT_TRUE(prefs.Init(temp_dir.GetPath())); in TEST()
/system/update_engine/payload_generator/
Dgenerate_delta_main.cc183 MemoryPrefs prefs; in ApplyPayload() local
227 std::make_unique<DownloadAction>(&prefs, in ApplyPayload()

12