Searched refs:fd2 (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/media/codec2/tests/vndk/ |
D | C2FenceTest.cpp | 33 static int fd_kcmp(int fd1, int fd2) { in fd_kcmp() argument 36 return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2); in fd_kcmp() 72 void validateTwoFdUnorderedFence(const C2Fence &fence, int fd1, int fd2, int mergeFd); 75 void validateThreeFdFence(const C2Fence &fence, int fd1, int fd2, int fd3); 80 int fd2 = memfd_create("test2", 0 /* flags */); in TEST_F() local 83 EXPECT_THAT(fd1, ::testing::Not(IsDupOf(fd2))); in TEST_F() 84 EXPECT_THAT(-1, ::testing::Not(IsDupOf(fd2))); in TEST_F() 93 close(fd2); in TEST_F() 208 int fd2 = memfd_create("test2", 0 /* flags */); in TEST_F() local 213 { fd1, fd2, fd3 }, &status); in TEST_F() [all …]
|
/frameworks/base/ravenwood/runtime-test/test/com/android/ravenwood/runtimetest/ |
D | OsTest.java | 112 private static void checkAreDup(FileDescriptor fd1, FileDescriptor fd2) throws Exception { in checkAreDup() argument 117 assertEquals(4, Os.lseek(fd2, 0, OsConstants.SEEK_CUR)); in checkAreDup() 120 assertEquals(6, Os.lseek(fd2, 0, OsConstants.SEEK_CUR)); in checkAreDup()
|
/frameworks/native/cmds/installd/tests/ |
D | installd_file_test.cpp | 118 const int fd2 = 102; in TEST_F() local 125 UniqueFile uf2(fd2, testFile2); in TEST_F() 128 ASSERT_EQ(fd2, uf2.fd()); in TEST_F() 200 int fd2 = rf2.fd(); in TEST_F() local 202 ASSERT_EQ(fd2, rf2.fd()); in TEST_F()
|
/frameworks/native/libs/binder/tests/ |
D | binderParcelUnitTest.cpp | 259 unique_fd fd2 = unique_fd(dup(0)); in TEST() local 268 p2.writeFileDescriptor(fd2.get()); // without ownership in TEST() 289 unique_fd fd2 = unique_fd(dup(0)); in TEST() local 298 p2.writeFileDescriptor(fd2.get()); // without ownership in TEST()
|
/frameworks/native/services/sensorservice/ |
D | SensorDirectConnection.cpp | 345 int fd2 = mem->handle->data[0]; in isEquivalent() local 346 ret = (fd1 == fd2); in isEquivalent()
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 520 android::base::unique_fd fd2{ in TEST_F() local 525 ASSERT_FALSE(findMapEntry(fd2, &k, cvals.data())); in TEST_F() 527 ASSERT_FALSE(writeToMapEntry(fd2, &k, cvals.data(), BPF_NOEXIST)); in TEST_F()
|
/frameworks/native/libs/vr/libpdx/ |
D | serialization_tests.cpp | 704 LocalHandle fd2; in TEST() local 714 fd2 = LocalHandle(200); in TEST() 715 Serialize(std::forward_as_tuple(fd1, fd2), &result); in TEST() 727 fd2.Release(); // Don't try to close fd 200. in TEST()
|