Home
last modified time | relevance | path

Searched refs:AutoDevice (Results 1 – 14 of 14) sorted by relevance

/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dauto_device.h26 struct AutoDevice { struct
27 virtual ~AutoDevice(){}; in ~AutoDevice() argument
33 AutoDevice(const std::string& name) : name_(name) {} in AutoDevice() argument
37 DISALLOW_COPY_AND_ASSIGN(AutoDevice); argument
38 AutoDevice(AutoDevice&& other) = delete;
Dsnapshot_stub.h47 const std::unique_ptr<AutoDevice>& metadata_device) override;
49 std::unique_ptr<AutoDevice> EnsureMetadataMounted() override;
Dmock_snapshot.h49 (const std::unique_ptr<AutoDevice>& metadata_device), (override));
51 MOCK_METHOD(std::unique_ptr<AutoDevice>, EnsureMetadataMounted, (), (override));
Dsnapshot.h225 const std::unique_ptr<AutoDevice>& metadata_device) = 0;
244 virtual std::unique_ptr<AutoDevice> EnsureMetadataMounted() = 0;
300 const std::unique_ptr<AutoDevice>& metadata_device) override;
302 std::unique_ptr<AutoDevice> EnsureMetadataMounted() override;
/system/core/fs_mgr/libsnapshot/
Dutility.h54 std::vector<std::unique_ptr<AutoDevice>> devices_;
58 struct AutoUnmapDevice : AutoDevice {
61 : AutoDevice(name), dm_(dm) {} in AutoUnmapDevice()
71 struct AutoUnmapImage : AutoDevice {
74 : AutoDevice(name), images_(images) {} in AutoUnmapImage()
85 struct AutoDeleteSnapshot : AutoDevice {
88 : AutoDevice(name), manager_(manager), lock_(lock) {} in AutoDeleteSnapshot()
98 struct AutoUnmountDevice : AutoDevice {
100 AutoUnmountDevice() : AutoDevice("") {} in AutoUnmountDevice()
106 : AutoDevice(path), fstab_(std::move(fstab)) {} in AutoUnmountDevice()
Dsnapshot_fuzz_utils.h38 class NoOpAutoDevice : public AutoDevice {
40 NoOpAutoDevice(bool mounted) : AutoDevice(mounted ? "no_op" : "") {} in NoOpAutoDevice()
75 std::unique_ptr<AutoDevice> auto_delete_data_mount_point_;
76 std::unique_ptr<AutoDevice> mapped_super_;
78 std::unique_ptr<AutoDevice> mapped_data_;
80 std::unique_ptr<AutoDevice> mounted_data_;
84 static std::unique_ptr<AutoDevice> CheckMapImage(const std::string& fake_persist_path,
88 static std::unique_ptr<AutoDevice> CheckMountFormatData(const std::string& blk_device,
Dsnapshot_fuzz_utils.cpp248 class AutoDeleteDir : public AutoDevice {
262 AutoDeleteDir(const std::string& path) : AutoDevice(path) {} in AutoDeleteDir()
265 class AutoUnmount : public AutoDevice {
271 AutoUnmount(const std::string& path) : AutoDevice(path) {} in AutoUnmount()
289 class AutoMemBasedDir : public AutoDevice {
328 AutoMemBasedDir(const std::string& name) : AutoDevice(name) {} in AutoMemBasedDir()
401 class AutoDetachLoopDevice : public AutoDevice {
404 : AutoDevice(device), control_(control) {} in AutoDetachLoopDevice()
411 std::unique_ptr<AutoDevice> SnapshotFuzzEnv::CheckMapImage(const std::string& img_path, in CheckMapImage()
486 std::unique_ptr<AutoDevice> SnapshotFuzzEnv::CheckMountFormatData(const std::string& blk_device, in CheckMountFormatData()
Dsnapshot_stub.cpp103 const std::unique_ptr<AutoDevice>&) { in RecoveryCreateSnapshotDevices() argument
113 std::unique_ptr<AutoDevice> SnapshotManagerStub::EnsureMetadataMounted() { in EnsureMetadataMounted()
Dutility.cpp42 void AutoDevice::Release() { in Release()
Dsnapshot_fuzz.cpp142 std::unique_ptr<AutoDevice> device; in SNAPSHOT_FUZZ_FUNCTION()
Dsnapshot.cpp2516 std::unique_ptr<AutoDevice> SnapshotManager::EnsureMetadataMounted() { in EnsureMetadataMounted()
2716 const std::unique_ptr<AutoDevice>& metadata_device) { in RecoveryCreateSnapshotDevices()
/system/update_engine/
Dcleanup_previous_update_action.h72 std::unique_ptr<android::snapshot::AutoDevice> metadata_device_;
Ddynamic_partition_control_android.h274 std::unique_ptr<android::snapshot::AutoDevice> metadata_device_;
Ddynamic_partition_control_android_unittest.cc916 class FakeAutoDevice : public android::snapshot::AutoDevice {
918 FakeAutoDevice() : AutoDevice("") {} in FakeAutoDevice()