Searched refs:fd_ (Results 1 – 3 of 3) sorted by relevance
/test/vts-testcase/kernel/api/tun/ |
D | vts_kernel_tun_test.cpp | 54 unique_fd fd_; member in VtsKernelTunTest 75 fd_ = unique_fd(TunInit(GetParam())); in TEST_P() 76 ASSERT_TRUE(fd_ >= 0); in TEST_P() 81 fd_ = unique_fd(TunInit(GetParam())); in TEST_P() 82 ASSERT_TRUE(fd_ >= 0); in TEST_P() 86 ASSERT_TRUE(read(fd_, &test_output, 1) < 0); in TEST_P()
|
/test/vts-testcase/kernel/bow/ |
D | BowTest.cpp | 247 fd_ = unique_fd(open(bow_device_.c_str(), O_RDWR)); in SetUp() 248 ASSERT_NE(fd_.get(), -1); in SetUp() 252 fd_ = unique_fd(); in TearDown() 256 unique_fd fd_; member in android::FileBowTestFixture 261 EXPECT_EQ(ioctl(fd_.get(), BLKDISCARD, range), 0); in Discard() 267 EXPECT_NE(lseek(fd_, i.offset * sector_size_, SEEK_SET), -1); in Write() 268 EXPECT_EQ(write(fd_, "Changed", 8), 8); in Write() 312 lseek(fd_.get(), 0, SEEK_SET); in DumpSector0() 313 read(fd_.get(), buffer, sizeof(buffer)); in DumpSector0()
|
/test/vts-testcase/kernel/encryption/ |
D | file_based_encryption_tests.cpp | 201 explicit ScopedF2fsFilePinning(int fd) : fd_(fd) { in ScopedF2fsFilePinning() 203 ioctl(fd_, F2FS_IOC_SET_PIN_FILE, &set); in ScopedF2fsFilePinning() 208 ioctl(fd_, F2FS_IOC_SET_PIN_FILE, &set); in ~ScopedF2fsFilePinning() 212 int fd_; member in android::kernel::ScopedF2fsFilePinning
|