Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/codec2/tests/vndk/
DC2FenceTest.cpp33 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);
79 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
83 EXPECT_THAT(fd1, ::testing::Not(IsDupOf(fd2))); in TEST_F()
92 close(fd1); in TEST_F()
207 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
213 { fd1, fd2, fd3 }, &status); in TEST_F()
216 validateThreeFdFence(fence, fd1, fd2, fd3); in TEST_F()
[all …]
/frameworks/base/ravenwood/runtime-test/test/com/android/ravenwood/runtimetest/
DOsTest.java112 private static void checkAreDup(FileDescriptor fd1, FileDescriptor fd2) throws Exception { in checkAreDup() argument
113 assertEquals(4, Os.lseek(fd1, 4, OsConstants.SEEK_SET)); in checkAreDup()
114 assertEquals(4, Os.lseek(fd1, 0, OsConstants.SEEK_CUR)); in checkAreDup()
119 assertEquals(6, Os.lseek(fd1, 2, OsConstants.SEEK_CUR)); in checkAreDup()
/frameworks/av/media/codec2/sfplugin/
DC2NodeImpl.cpp65 android::base::unique_fd &&fd1) { in queue() argument
69 std::move(work), fenceFd, std::move(fd0), std::move(fd1)); in queue()
122 uniqueFds.push_back(std::move(queue.workList.front().fd1)); in threadLoop()
167 fd1(std::move(uniqueFd1)) {} in WorkFence()
172 android::base::unique_fd fd1; member
295 android::base::unique_fd fd0, fd1; in submitBuffer() local
313 fd1.reset(nativeHandle->numFds > 1 ? nativeHandle->data[1] : -1); in submitBuffer()
318 (void)fd1.release(); in submitBuffer()
381 mQueueThread->queue(comp, fenceFd, std::move(work), std::move(fd0), std::move(fd1)); in submitBuffer()
/frameworks/native/cmds/installd/tests/
Dinstalld_file_test.cpp117 const int fd1 = 101; in TEST_F() local
122 UniqueFile uf1(fd1, testFile1); in TEST_F()
133 ASSERT_EQ(fd1, uf2.fd()); in TEST_F()
197 int fd1 = rf1.fd(); in TEST_F() local
207 ASSERT_EQ(fd1, rf2.fd()); in TEST_F()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java585 final FileDescriptor fd1 = new FileDescriptor(); in createSocketPair() local
586 Os.socketpair(AF_UNIX, type | ifAtLeastQ(SOCK_CLOEXEC), 0, fd0, fd1); in createSocketPair()
589 new ParcelFileDescriptor(fd1) }; in createSocketPair()
617 final FileDescriptor fd1 = new FileDescriptor(); in createReliableSocketPair() local
618 Os.socketpair(AF_UNIX, type | ifAtLeastQ(SOCK_CLOEXEC), 0, fd0, fd1); in createReliableSocketPair()
621 new ParcelFileDescriptor(fd1, comm[1]) }; in createReliableSocketPair()
/frameworks/native/libs/binder/tests/
DbinderParcelUnitTest.cpp258 unique_fd fd1 = unique_fd(dup(0)); in TEST() local
264 p1.writeFileDescriptor(fd1.get()); // without ownership in TEST()
288 unique_fd fd1 = unique_fd(dup(0)); in TEST() local
294 p1.writeFileDescriptor(fd1.get()); // without ownership in TEST()
/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java199 final FileDescriptor fd1 = new FileDescriptor(); in createSeqPacketSocketPair() local
200 Os.socketpair(OsConstants.AF_UNIX, OsConstants.SOCK_SEQPACKET, 0, fd0, fd1); in createSeqPacketSocketPair()
201 return new FileDescriptor[] { fd0, fd1 }; in createSeqPacketSocketPair()
/frameworks/native/services/sensorservice/
DSensorDirectConnection.cpp344 int fd1 = mMem.handle->data[0]; in isEquivalent() local
346 ret = (fd1 == fd2); in isEquivalent()
/frameworks/native/libs/vr/libpdx/
Dserialization_tests.cpp703 LocalHandle fd1; in TEST() local
706 fd1 = LocalHandle(100); in TEST()
707 Serialize(fd1, &result); in TEST()
715 Serialize(std::forward_as_tuple(fd1, fd2), &result); in TEST()
726 fd1.Release(); // Don't try to close fd 100. in TEST()
729 fd1 = LocalHandle(-2); in TEST()
730 Serialize(fd1, &result); in TEST()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...