Home
last modified time | relevance | path

Searched refs:PartitionHandle (Results 1 – 5 of 5) sorted by relevance

/aosp12/system/core/fastboot/device/
H A Dutility.h30 class PartitionHandle {
32 PartitionHandle() {} in PartitionHandle() function
33 explicit PartitionHandle(const std::string& path) : path_(path) {} in PartitionHandle() function
34 PartitionHandle(const std::string& path, std::function<void()>&& closer) in PartitionHandle() function
36 PartitionHandle(PartitionHandle&& other) = default;
37 PartitionHandle& operator=(PartitionHandle&& other) = default;
38 ~PartitionHandle() { in ~PartitionHandle()
80 bool OpenPartition(FastbootDevice* device, const std::string& name, PartitionHandle* handle,
H A Dutility.cpp43 bool OpenPhysicalPartition(const std::string& name, PartitionHandle* handle) { in OpenPhysicalPartition()
48 *handle = PartitionHandle(*path); in OpenPhysicalPartition()
53 PartitionHandle* handle) { in OpenLogicalPartition()
74 *handle = PartitionHandle(dm_path, std::move(closer)); in OpenLogicalPartition()
80 bool OpenPartition(FastbootDevice* device, const std::string& name, PartitionHandle* handle, in OpenPartition()
H A Dflashing.cpp149 PartitionHandle handle; in Flash()
H A Dcommands.cpp216 PartitionHandle handle; in EraseHandler()
845 PartitionHandle handle_;
H A Dvariables.cpp317 PartitionHandle handle; in GetPartitionSize()