Home
last modified time | relevance | path

Searched refs:SnapshotManager (Results 1 – 20 of 20) sorted by relevance

/system/core/init/
Dsnapuserd_transition.h36 using SnapshotManager = android::snapshot::SnapshotManager; variable
39 SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid);
55 std::unique_ptr<SnapshotManager> sm_;
Dsnapuserd_transition.cpp51 using android::snapshot::SnapshotManager;
150 SnapuserdSelinuxHelper::SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid) in SnapuserdSelinuxHelper()
282 auto sm = SnapshotManager::NewForFirstStageMount(); in CreateIfNeeded()
Dfirst_stage_mount.cpp70 using android::snapshot::SnapshotManager;
94 bool CreateSnapshotPartitions(android::snapshot::SnapshotManager* sm);
364 if (SnapshotManager::IsSnapshotManagerNeeded()) { in CreateLogicalPartitions()
365 auto sm = SnapshotManager::NewForFirstStageMount(); in CreateLogicalPartitions()
385 bool FirstStageMount::CreateSnapshotPartitions(SnapshotManager* sm) { in CreateSnapshotPartitions()
Dselinux.cpp87 using android::snapshot::SnapshotManager;
563 selinux_android_restorecon(SnapshotManager::GetGlobalRollbackIndicatorPath().c_str(), 0); in SelinuxRestoreContext()
Dinit.cpp100 using android::snapshot::SnapshotManager;
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp92 SnapshotManager::~SnapshotManager() {} in ~SnapshotManager()
94 std::unique_ptr<SnapshotManager> SnapshotManager::New(IDeviceInfo* info) { in New()
98 return std::unique_ptr<SnapshotManager>(new SnapshotManager(info)); in New()
101 std::unique_ptr<SnapshotManager> SnapshotManager::NewForFirstStageMount(IDeviceInfo* info) { in NewForFirstStageMount()
117 SnapshotManager::SnapshotManager(IDeviceInfo* device) : device_(device) { in SnapshotManager() function in android::snapshot::SnapshotManager
141 bool SnapshotManager::BeginUpdate() { in BeginUpdate()
173 bool SnapshotManager::CancelUpdate() { in CancelUpdate()
184 bool SnapshotManager::TryCancelUpdate(bool* needs_merge) { in TryCancelUpdate()
210 std::string SnapshotManager::ReadUpdateSourceSlotSuffix() { in ReadUpdateSourceSlotSuffix()
220 SnapshotManager::Slot SnapshotManager::GetCurrentSlot() { in GetCurrentSlot()
[all …]
Dsnapshotctl.cpp48 return SnapshotManager::New()->Dump(std::cout); in DumpCmdHandler()
54 return SnapshotManager::New()->MapAllSnapshots(5000ms); in MapCmdHandler()
59 return SnapshotManager::New()->UnmapAllSnapshots(); in UnmapCmdHandler()
Dutility.h86 AutoDeleteSnapshot(SnapshotManager* manager, SnapshotManager::LockedFile* lock, in AutoDeleteSnapshot()
94 SnapshotManager* manager_ = nullptr;
95 SnapshotManager::LockedFile* lock_ = nullptr;
Ddevice_info.h28 class DeviceInfo final : public SnapshotManager::IDeviceInfo {
Dsnapshot_test.cpp82 std::unique_ptr<SnapshotManager> sm;
399 std::unique_ptr<SnapshotManager> NewManagerForFirstStageMount( in NewManagerForFirstStageMount()
405 std::unique_ptr<SnapshotManager> NewManagerForFirstStageMount(TestDeviceInfo* info) { in NewManagerForFirstStageMount()
407 auto init = SnapshotManager::NewForFirstStageMount(info); in NewManagerForFirstStageMount()
419 std::unique_ptr<SnapshotManager::LockedFile> lock_;
790 std::unique_ptr<SnapshotManager::LockedFile> lock_;
1471 auto new_sm = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
1606 auto init = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
1719 auto new_sm = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
1751 auto new_sm = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
[all …]
Dsnapshot_stats.cpp26 SnapshotMergeStats* SnapshotMergeStats::GetInstance(SnapshotManager& parent) { in GetInstance()
Dsnapshot_fuzz_utils.cpp434 auto snapshot = SnapshotManager::New(ret.device_info /* takes ownership */); in CheckCreateSnapshotManager()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dmock_device_info.h23 class MockDeviceInfo : public SnapshotManager::IDeviceInfo {
Dsnapshot.h301 class SnapshotManager final : public ISnapshotManager {
313 ~SnapshotManager();
318 static std::unique_ptr<SnapshotManager> New(IDeviceInfo* device = nullptr);
322 static std::unique_ptr<SnapshotManager> NewForFirstStageMount(IDeviceInfo* device = nullptr);
424 explicit SnapshotManager(IDeviceInfo* info);
716 friend std::ostream& operator<<(std::ostream& os, SnapshotManager::Slot slot);
Dsnapshot_stats.h66 static SnapshotMergeStats* GetInstance(SnapshotManager& manager);
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h51 extern std::unique_ptr<SnapshotManager> sm;
72 class TestDeviceInfo : public SnapshotManager::IDeviceInfo {
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot_fuzz.proto30 // Controls the behavior of the test SnapshotManager.
Dsnapshot.proto71 // When SnapshotManager creates a COW device, it first searches for unused
/system/core/fastboot/device/
Dcommands.cpp62 using android::snapshot::SnapshotManager;
674 auto sm = SnapshotManager::New(); in SnapshotUpdateHandler()
/system/update_engine/aosp/
Ddynamic_partition_control_android.cc71 using android::snapshot::SnapshotManager;
131 snapshot_ = SnapshotManager::New(); in DynamicPartitionControlAndroid()