/system/core/fs_mgr/libsnapshot/ |
D | snapshot_fuzz.cpp | 44 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 …]
|
D | snapshotctl.cpp | 44 namespace snapshot { namespace 68 using namespace android::snapshot; in main()
|
D | Android.bp | 71 "android/snapshot/snapshot.proto", 73 "snapshot.cpp", 132 "android/snapshot/snapshot.proto", 254 "android/snapshot/snapshot_fuzz.proto",
|
D | PowerTest.md | 1 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-…
|
D | snapshot_stats.cpp | 24 namespace snapshot { namespace 87 void SnapshotMergeStats::set_state(android::snapshot::UpdateState state) { in set_state()
|
D | snapshot_stub.cpp | 24 namespace android::snapshot { namespace 120 void set_state(android::snapshot::UpdateState) override {} in set_state()
|
D | return.cpp | 21 namespace android::snapshot { namespace
|
D | snapshot_fuzz_utils.cpp | 73 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()
|
D | device_info.h | 26 namespace snapshot {
|
D | dm_snapshot_internals.h | 22 namespace snapshot {
|
D | snapshot.cpp | 48 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, ¤t_status)) { in InitiateMerge() 632 if (!ReadSnapshotStatus(lock.get(), snapshot, &snapshot_status)) { in InitiateMerge() 655 for (const auto& snapshot : snapshots) { in InitiateMerge() local [all …]
|
D | snapshot_metadata_updater.h | 30 namespace snapshot {
|
D | partition_cow_creator.h | 29 namespace snapshot {
|
/system/update_engine/ |
D | cleanup_previous_update_action.h | 52 android::snapshot::ISnapshotManager* snapshot, 70 android::snapshot::ISnapshotManager* snapshot_; 72 std::unique_ptr<android::snapshot::AutoDevice> metadata_device_; 76 android::snapshot::ISnapshotMergeStats* merge_stats_;
|
D | cleanup_previous_update_action.cc | 34 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/ |
D | logd_writer.cpp | 120 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/ |
D | snapshot.proto | 16 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 …]
|
D | snapshot_fuzz.proto | 16 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/ |
D | snapshot_stats.h | 24 namespace snapshot { 31 virtual void set_state(android::snapshot::UpdateState state) = 0; 54 void set_state(android::snapshot::UpdateState state) override;
|
D | auto_device.h | 22 namespace snapshot {
|
D | mock_device_info.h | 21 namespace android::snapshot {
|
D | return.h | 22 namespace android::snapshot {
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 215 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/ |
D | statsd_writer.c | 200 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/ |
D | statsd_writer.c | 200 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()
|