Searched refs:LoopbackDeviceUniqueFd (Results 1 – 5 of 5) sorted by relevance
32 struct LoopbackDeviceUniqueFd { struct36 LoopbackDeviceUniqueFd() {} in LoopbackDeviceUniqueFd() argument37 LoopbackDeviceUniqueFd(unique_fd&& fd, const std::string& name) in LoopbackDeviceUniqueFd() function40 LoopbackDeviceUniqueFd(LoopbackDeviceUniqueFd&& fd) noexcept in LoopbackDeviceUniqueFd() argument42 LoopbackDeviceUniqueFd& operator=(LoopbackDeviceUniqueFd&& other) noexcept {49 ~LoopbackDeviceUniqueFd() { MaybeCloseBad(); } in ~LoopbackDeviceUniqueFd() argument58 android::base::Result<LoopbackDeviceUniqueFd> WaitForDevice(int num); argument67 android::base::Result<LoopbackDeviceUniqueFd> CreateAndConfigureLoopDevice(
69 void LoopbackDeviceUniqueFd::MaybeCloseBad() { in MaybeCloseBad()436 Result<LoopbackDeviceUniqueFd> WaitForDevice(int num) { in WaitForDevice()462 return LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in WaitForDevice()476 Result<LoopbackDeviceUniqueFd> CreateLoopDevice(const std::string& target, in CreateLoopDevice()493 Result<LoopbackDeviceUniqueFd> loop_device = WaitForDevice(num); in CreateLoopDevice()508 Result<LoopbackDeviceUniqueFd> CreateAndConfigureLoopDevice( in CreateAndConfigureLoopDevice()
316 inline base::Result<loop::LoopbackDeviceUniqueFd> CreateLoopDeviceForTest( in CreateLoopDeviceForTest()346 inline base::Result<loop::LoopbackDeviceUniqueFd> MountViaLoopDevice( in MountViaLoopDevice()360 inline base::Result<loop::LoopbackDeviceUniqueFd> WriteBlockApex( in WriteBlockApex()
481 loop::LoopbackDeviceUniqueFd loopback_device; in MountPackageImpl()483 Result<loop::LoopbackDeviceUniqueFd> ret = in MountPackageImpl()538 loop::LoopbackDeviceUniqueFd loop_for_hash; in MountPackageImpl()
311 std::vector<loop::LoopbackDeviceUniqueFd> loop_devices_; // to be cleaned up