Searched refs:base_fd_ (Results 1 – 2 of 2) sorted by relevance
/aosp12/system/core/fs_mgr/libsnapshot/ |
H A D | cow_snapuserd_test.cpp | 145 unique_fd base_fd_; member in android::snapshot::CowSnapuserdTest 264 base_fd_ = CreateTempFile("base_device", total_base_size_); in ReadLastBlock() 265 ASSERT_GE(base_fd_, 0); in ReadLastBlock() 277 ASSERT_EQ(lseek(base_fd_, 0, SEEK_SET), 0); in ReadLastBlock() 279 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in ReadLastBlock() 331 base_fd_ = CreateTempFile("base_device", total_base_size_); in CreateBaseDevice() 332 ASSERT_GE(base_fd_, 0); in CreateBaseDevice() 341 ASSERT_EQ(android::base::WriteFully(base_fd_, random_buffer.get(), 1_MiB), true); in CreateBaseDevice() 344 ASSERT_EQ(lseek(base_fd_, 0, SEEK_SET), 0); in CreateBaseDevice() 346 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in CreateBaseDevice() [all …]
|
/aosp12/system/core/fs_mgr/libdm/ |
H A D | dm_test.cpp | 216 int base_fd() const { return base_fd_; } in base_fd() 226 unique_fd base_fd_; member in SnapshotTestHarness 242 base_fd_ = CreateTempFile("base_device", kBaseDeviceSize); in SetupImpl() 243 ASSERT_GE(base_fd_, 0); in SetupImpl() 247 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in SetupImpl()
|