/system/update_engine/ |
D | download_action_android_unittest.cc | 59 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 …]
|
D | metrics_utils.h | 57 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()
|
D | metrics_utils.cc | 297 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 …]
|
D | certificate_checker.cc | 60 CertificateChecker::CertificateChecker(PrefsInterface* prefs, in CertificateChecker() argument 62 : prefs_(prefs), openssl_wrapper_(openssl_wrapper) {} in CertificateChecker()
|
D | certificate_checker.h | 102 CertificateChecker(PrefsInterface* prefs, OpenSSLWrapper* openssl_wrapper);
|
D | download_action.cc | 39 DownloadAction::DownloadAction(PrefsInterface* prefs, in DownloadAction() argument 45 : prefs_(prefs), in DownloadAction()
|
/system/update_engine/aosp/ |
D | daemon_state_android.cc | 54 Prefs* prefs = new Prefs(); in Initialize() local 55 prefs_.reset(prefs); in Initialize() 56 if (!prefs->Init(non_volatile_path.Append(kPrefsSubDirectory))) { in Initialize()
|
D | sideload_main.cc | 142 MemoryPrefs prefs; in ApplyUpdatePayload() local 158 &prefs, in ApplyUpdatePayload()
|
D | cleanup_previous_update_action.h | 51 PrefsInterface* prefs,
|
D | dynamic_partition_control_android.h | 62 PrefsInterface* prefs, 65 bool ResetUpdate(PrefsInterface* prefs) override;
|
D | cleanup_previous_update_action.cc | 58 PrefsInterface* prefs, in CleanupPreviousUpdateAction() argument 62 : prefs_(prefs), in CleanupPreviousUpdateAction()
|
D | dynamic_partition_control_android.cc | 1293 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()
|
D | update_attempter_android.h | 66 PrefsInterface* prefs,
|
D | update_attempter_android.cc | 138 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/ |
D | delta_performer.cc | 816 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 …]
|
D | delta_performer.h | 68 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,
|
D | delta_performer_integration_test.cc | 133 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 …]
|
D | delta_performer_fuzzer.cc | 48 MemoryPrefs prefs; in FuzzDeltaPerformer() local 75 DeltaPerformer performer(&prefs, in FuzzDeltaPerformer()
|
/system/update_engine/common/ |
D | dynamic_partition_control_stub.h | 50 PrefsInterface* prefs, 52 bool ResetUpdate(PrefsInterface* prefs) override;
|
D | dynamic_partition_control_stub.cc | 76 PrefsInterface* prefs, in GetCleanupPreviousUpdateAction() argument 81 bool DynamicPartitionControlStub::ResetUpdate(PrefsInterface* prefs) { in ResetUpdate() argument
|
D | dynamic_partition_control_interface.h | 129 PrefsInterface* prefs, 143 virtual bool ResetUpdate(PrefsInterface* prefs) = 0;
|
D | system_state.h | 88 virtual PrefsInterface* prefs() = 0;
|
D | download_action.h | 76 PrefsInterface* prefs,
|
D | prefs_unittest.cc | 164 Prefs prefs; in TEST() local 184 ASSERT_TRUE(prefs.Init(temp_dir.GetPath())); in TEST()
|
/system/update_engine/payload_generator/ |
D | generate_delta_main.cc | 183 MemoryPrefs prefs; in ApplyPayload() local 227 std::make_unique<DownloadAction>(&prefs, in ApplyPayload()
|