Home
last modified time | relevance | path

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

/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp94 SnapshotManager::~SnapshotManager() {} in ~SnapshotManager()
96 std::unique_ptr<SnapshotManager> SnapshotManager::New(IDeviceInfo* info) { in New()
101 return std::unique_ptr<SnapshotManager>(new SnapshotManager(info)); in New()
104 std::unique_ptr<SnapshotManager> SnapshotManager::NewForFirstStageMount(IDeviceInfo* info) { in NewForFirstStageMount()
120 SnapshotManager::SnapshotManager(IDeviceInfo* device) in SnapshotManager() function in android::snapshot::SnapshotManager
129 SnapshotManager::SnapshotDriver SnapshotManager::GetSnapshotDriver(LockedFile* lock) { in GetSnapshotDriver()
131 return SnapshotManager::SnapshotDriver::DM_USER; in GetSnapshotDriver()
133 return SnapshotManager::SnapshotDriver::DM_SNAPSHOT; in GetSnapshotDriver()
138 SnapshotManager::SnapshotDriver driver) { in GetDmUserCowName()
144 case SnapshotManager::SnapshotDriver::DM_USER: { in GetDmUserCowName()
[all …]
Dutility.h84 AutoDeleteSnapshot(SnapshotManager* manager, SnapshotManager::LockedFile* lock, in AutoDeleteSnapshot()
91 SnapshotManager* manager_ = nullptr;
92 SnapshotManager::LockedFile* lock_ = nullptr;
Dsnapshotctl.cpp68 return SnapshotManager::New()->Dump(std::cout); in DumpCmdHandler()
74 return SnapshotManager::New()->MapAllSnapshots(5000ms); in MapCmdHandler()
79 return SnapshotManager::New()->UnmapAllSnapshots(); in UnmapCmdHandler()
89 bool CreateTestUpdate(SnapshotManager* sm) { in CreateTestUpdate()
195 auto sm = SnapshotManager::New(); in TestOtaHandler()
Ddevice_info.h28 class DeviceInfo final : public SnapshotManager::IDeviceInfo {
Dsnapshot_test.cpp100 std::unique_ptr<SnapshotManager> sm;
509 std::unique_ptr<SnapshotManager> NewManagerForFirstStageMount( in NewManagerForFirstStageMount()
515 std::unique_ptr<SnapshotManager> NewManagerForFirstStageMount(TestDeviceInfo* info) { in NewManagerForFirstStageMount()
517 auto init = SnapshotManager::NewForFirstStageMount(info); in NewManagerForFirstStageMount()
529 std::unique_ptr<SnapshotManager::LockedFile> lock_;
914 std::unique_ptr<SnapshotManager::LockedFile> lock_;
1788 auto new_sm = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
1916 auto init = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
2029 auto new_sm = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
2061 auto new_sm = SnapshotManager::New(new TestDeviceInfo(fake_super, "_b")); in TEST_F()
[all …]
Dsnapshot_stats.cpp26 SnapshotMergeStats* SnapshotMergeStats::GetInstance(SnapshotManager& parent) { in GetInstance()
/system/core/init/
Dsnapuserd_transition.h41 using SnapshotManager = android::snapshot::SnapshotManager; variable
44 SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid);
61 std::unique_ptr<SnapshotManager> sm_;
Dsnapuserd_transition.cpp54 using android::snapshot::SnapshotManager;
177 SnapuserdSelinuxHelper::SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid) in SnapuserdSelinuxHelper()
390 auto sm = SnapshotManager::NewForFirstStageMount(); in CreateIfNeeded()
Dfirst_stage_mount.cpp70 using android::snapshot::SnapshotManager;
93 bool CreateSnapshotPartitions(android::snapshot::SnapshotManager* sm);
347 if (SnapshotManager::IsSnapshotManagerNeeded()) { in CreateLogicalPartitions()
348 auto sm = SnapshotManager::NewForFirstStageMount(); in CreateLogicalPartitions()
368 bool FirstStageMount::CreateSnapshotPartitions(SnapshotManager* sm) { in CreateSnapshotPartitions()
Dselinux.cpp96 using android::snapshot::SnapshotManager;
810 selinux_android_restorecon(SnapshotManager::GetGlobalRollbackIndicatorPath().c_str(), 0); in SelinuxRestoreContext()
Dinit.cpp112 using android::snapshot::SnapshotManager;
Dreboot.cpp426 auto sm = snapshot::SnapshotManager::New(); in TryUmountAndFsck()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dmock_device_info.h23 class MockDeviceInfo : public SnapshotManager::IDeviceInfo {
Dsnapshot.h305 class SnapshotManager final : public ISnapshotManager {
317 ~SnapshotManager();
322 static std::unique_ptr<SnapshotManager> New(IDeviceInfo* device = nullptr);
326 static std::unique_ptr<SnapshotManager> NewForFirstStageMount(IDeviceInfo* device = nullptr);
456 explicit SnapshotManager(IDeviceInfo* info);
766 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/update_engine/aosp/
Ddynamic_partition_control_android.cc71 using android::snapshot::SnapshotManager;
140 snapshot_ = SnapshotManager::New(); in DynamicPartitionControlAndroid()
321 snapshot_ = SnapshotManager::New(); in Cleanup()
/system/core/fastboot/device/
Dcommands.cpp60 using android::snapshot::SnapshotManager;
732 auto sm = SnapshotManager::New(); in SnapshotUpdateHandler()
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot.proto71 // When SnapshotManager creates a COW device, it first searches for unused