Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_loop.h32 struct LoopbackDeviceUniqueFd { struct
36 LoopbackDeviceUniqueFd() {} in LoopbackDeviceUniqueFd() argument
37 LoopbackDeviceUniqueFd(unique_fd&& fd, const std::string& name) in LoopbackDeviceUniqueFd() function
40 LoopbackDeviceUniqueFd(LoopbackDeviceUniqueFd&& fd) noexcept in LoopbackDeviceUniqueFd() argument
42 LoopbackDeviceUniqueFd& operator=(LoopbackDeviceUniqueFd&& other) noexcept {
49 ~LoopbackDeviceUniqueFd() { MaybeCloseBad(); } in ~LoopbackDeviceUniqueFd() argument
58 android::base::Result<LoopbackDeviceUniqueFd> WaitForDevice(int num); argument
67 android::base::Result<LoopbackDeviceUniqueFd> CreateAndConfigureLoopDevice(
Dapexd_loop.cpp69 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()
Dapexd_test_utils.h316 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()
Dapexd.cpp481 loop::LoopbackDeviceUniqueFd loopback_device; in MountPackageImpl()
483 Result<loop::LoopbackDeviceUniqueFd> ret = in MountPackageImpl()
538 loop::LoopbackDeviceUniqueFd loop_for_hash; in MountPackageImpl()
Dapexd_test.cpp311 std::vector<loop::LoopbackDeviceUniqueFd> loop_devices_; // to be cleaned up