Home
last modified time | relevance | path

Searched refs:snapshot (Results 1 – 25 of 64) sorted by relevance

123

/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz.cpp44 using android::snapshot::SnapshotFuzzData;
45 using android::snapshot::SnapshotFuzzEnv;
63 namespace android::snapshot { namespace
87 FUZZ_FUNCTION(SnapshotManagerAction, FunctionName, ReturnType, ISnapshotManager* snapshot, \
91 return snapshot->FinishedSnapshotWrites(wipe); in SNAPSHOT_FUZZ_FUNCTION()
99 return snapshot->ProcessUpdateState({}, before_cancel); in SNAPSHOT_FUZZ_FUNCTION()
104 return snapshot->GetUpdateState(has_progress_arg ? &progress : nullptr); in SNAPSHOT_FUZZ_FUNCTION()
112 return snapshot->HandleImminentDataWipe(callback); in SNAPSHOT_FUZZ_FUNCTION()
117 return snapshot->Dump(ss); in SNAPSHOT_FUZZ_FUNCTION()
121 return snapshot->CreateUpdateSnapshots(manifest); in SNAPSHOT_FUZZ_FUNCTION()
[all …]
Dsnapshotctl.cpp44 namespace snapshot { namespace
68 using namespace android::snapshot; in main()
DAndroid.bp71 "android/snapshot/snapshot.proto",
73 "snapshot.cpp",
132 "android/snapshot/snapshot.proto",
254 "android/snapshot/snapshot_fuzz.proto",
DPowerTest.md1 snapshot\_power\_test
4 snapshot\_power\_test is a standalone test to simulate power failures during a snapshot-merge opera…
36 …the test will run a final check command to validate the contents of the snapshot against the post-…
Dsnapshot_stats.cpp24 namespace snapshot { namespace
87 void SnapshotMergeStats::set_state(android::snapshot::UpdateState state) { in set_state()
Dsnapshot_stub.cpp24 namespace android::snapshot { namespace
120 void set_state(android::snapshot::UpdateState) override {} in set_state()
Dreturn.cpp21 namespace android::snapshot { namespace
Dsnapshot_fuzz_utils.cpp73 namespace android::snapshot { namespace
433 auto snapshot = SnapshotManager::New(ret.device_info /* takes ownership */); in CheckCreateSnapshotManager() local
434 snapshot->images_ = in CheckCreateSnapshotManager()
437 snapshot->has_local_image_manager_ = data.manager_data().is_local_image_manager(); in CheckCreateSnapshotManager()
438 ret.snapshot = std::move(snapshot); in CheckCreateSnapshotManager()
Ddevice_info.h26 namespace snapshot {
Ddm_snapshot_internals.h22 namespace snapshot {
Dsnapshot.cpp48 namespace snapshot { namespace
582 for (const auto& snapshot : snapshots) { in InitiateMerge() local
583 if (android::base::EndsWith(snapshot, other_suffix)) { in InitiateMerge()
585 LOG(ERROR) << "Unexpected snapshot found during merge: " << snapshot; in InitiateMerge()
593 if (dm.GetState(snapshot) == DmDeviceState::INVALID) { in InitiateMerge()
594 LOG(ERROR) << "Cannot begin merge; device " << snapshot << " is not mapped."; in InitiateMerge()
622 for (const auto& snapshot : snapshots) { in InitiateMerge() local
624 if (!QuerySnapshotStatus(snapshot, nullptr, &current_status)) { in InitiateMerge()
632 if (!ReadSnapshotStatus(lock.get(), snapshot, &snapshot_status)) { in InitiateMerge()
655 for (const auto& snapshot : snapshots) { in InitiateMerge() local
[all …]
Dsnapshot_metadata_updater.h30 namespace snapshot {
Dpartition_cow_creator.h29 namespace snapshot {
/system/update_engine/
Dcleanup_previous_update_action.h52 android::snapshot::ISnapshotManager* snapshot,
70 android::snapshot::ISnapshotManager* snapshot_;
72 std::unique_ptr<android::snapshot::AutoDevice> metadata_device_;
76 android::snapshot::ISnapshotMergeStats* merge_stats_;
Dcleanup_previous_update_action.cc34 using android::snapshot::ISnapshotManager;
35 using android::snapshot::SnapshotMergeStats;
36 using android::snapshot::UpdateState;
59 android::snapshot::ISnapshotManager* snapshot, in CleanupPreviousUpdateAction() argument
63 snapshot_(snapshot), in CleanupPreviousUpdateAction()
177 case android::snapshot::CreateResult::CREATED: { in CheckSlotMarkedSuccessfulOrSchedule()
183 case android::snapshot::CreateResult::NOT_CREATED: { in CheckSlotMarkedSuccessfulOrSchedule()
190 case android::snapshot::CreateResult::ERROR: in CheckSlotMarkedSuccessfulOrSchedule()
195 std::underlying_type_t<android::snapshot::CreateResult>>( in CheckSlotMarkedSuccessfulOrSchedule()
375 << android::snapshot::UpdateState_Name(state) in InitiateMergeAndWait()
[all …]
/system/core/liblog/
Dlogd_writer.cpp120 int32_t snapshot = atomic_exchange_explicit(&droppedSecurity, 0, memory_order_relaxed); in LogdWrite() local
121 if (snapshot) { in LogdWrite()
127 buffer.payload.data = snapshot; in LogdWrite()
134 atomic_fetch_add_explicit(&droppedSecurity, snapshot, memory_order_relaxed); in LogdWrite()
137 snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in LogdWrite()
138 if (snapshot && __android_log_is_loggable_len(ANDROID_LOG_INFO, "liblog", strlen("liblog"), in LogdWrite()
145 buffer.payload.data = snapshot; in LogdWrite()
152 atomic_fetch_add_explicit(&dropped, snapshot, memory_order_relaxed); in LogdWrite()
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot.proto16 package android.snapshot;
22 // No snapshot is found.
25 // The snapshot has been created and possibly written to. Rollbacks are
26 // possible by destroying the snapshot.
39 // Name of the snapshot. This is usually the name of the snapshotted
48 // Size of the snapshot. This is the sum of lengths of ranges in the base
51 // This value is 0 if no snapshot is needed for this device because
57 // the "COW image" form the "COW device" that supports the snapshot device.
70 // snapshot device.
73 // to the snapshot device.
[all …]
Dsnapshot_fuzz.proto16 package android.snapshot;
49 // Mimics the API of ISnapshotManager. Defines one action on the snapshot
104 // Whether the directory that mocks /metadata/ota/snapshot is created.
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_stats.h24 namespace snapshot {
31 virtual void set_state(android::snapshot::UpdateState state) = 0;
54 void set_state(android::snapshot::UpdateState state) override;
Dauto_device.h22 namespace snapshot {
Dmock_device_info.h21 namespace android::snapshot {
Dreturn.h22 namespace android::snapshot {
/system/core/liblog/tests/
Dliblog_benchmark.cpp215 uint32_t snapshot = 0; in BM_pmsg_short() local
216 buffer.payload.data = snapshot; in BM_pmsg_short()
222 ++snapshot; in BM_pmsg_short()
223 buffer.payload.data = snapshot; in BM_pmsg_short()
291 uint32_t snapshot = 0; in BM_pmsg_short_aligned() local
292 buffer->payload.payload.data = snapshot; in BM_pmsg_short_aligned()
295 ++snapshot; in BM_pmsg_short_aligned()
296 buffer->payload.payload.data = snapshot; in BM_pmsg_short_aligned()
366 uint32_t snapshot = 0; in BM_pmsg_short_unaligned1() local
367 buffer->payload.payload.data = snapshot; in BM_pmsg_short_unaligned1()
[all …]
/system/core/libstats/socket/
Dstatsd_writer.c200 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in statsdWrite() local
201 if (snapshot) { in statsdWrite()
211 composed_long = ((composed_long << 32) | ((int64_t)snapshot)); in statsdWrite()
219 atomic_fetch_add_explicit(&dropped, snapshot, memory_order_relaxed); in statsdWrite()
/system/core/libstats/push_compat/
Dstatsd_writer.c200 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in statsdWrite() local
201 if (snapshot) { in statsdWrite()
211 composed_long = ((composed_long << 32) | ((int64_t)snapshot)); in statsdWrite()
219 atomic_fetch_add_explicit(&dropped, snapshot, memory_order_relaxed); in statsdWrite()

123