Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 7 of 7) sorted by relevance

/cts/tests/aslr/src/
DAslrMallocTest.cpp71 int fds[2]; in GetAddress() local
72 ASSERT_TRUE(pipe(fds) != -1); in GetAddress()
79 ASSERT_TRUE(TEMP_FAILURE_RETRY(dup2(fds[1], STDOUT_FILENO)) != -1); in GetAddress()
81 for (auto fd : fds) { in GetAddress()
92 TEMP_FAILURE_RETRY(close(fds[1])); in GetAddress()
95 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &output)); in GetAddress()
96 TEMP_FAILURE_RETRY(close(fds[0])); in GetAddress()
/cts/apps/CameraITS/tests/scene3/
Dtest_3a_consistency.py42 fds = []
54 fds.append(fd)
61 assert np.isclose(np.amax(fds), np.amin(fds), FD_TOL)
Dtest_lens_movement_reporting.py65 fds = [af_fd, min_fd]
66 fds = sorted(fds * NUM_IMGS)
68 for i, fd in enumerate(fds):
73 data = {'fd': fds[i]}
/cts/tests/tests/os/src/android/os/cts/
DCrossProcessExceptionTest.java138 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in doCommand() local
140 green.dump(fds[0].getFileDescriptor(), new String[] { cmd }); in doCommand()
142 fds[0].close(); in doCommand()
143 fds[1].close(); in doCommand()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_SyncTest.cpp45 jint* fds = static_cast<jint*>(env->GetPrimitiveArrayCritical(fds_array, nullptr)); in syncPoll() local
47 pollfds[i].fd = fds[i]; in syncPoll()
50 env->ReleasePrimitiveArrayCritical(fds_array, fds, 0); in syncPoll()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp267 int fds[2]; in TEST() local
268 err = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in TEST()
271 ClientData data(fds[1], buffer); in TEST()
276 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], NULL); in TEST()
280 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], &received); in TEST()
288 close(fds[0]); in TEST()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSyncTest.java124 private static native boolean nSyncPoll(int[] fds, int[] status); in nSyncPoll() argument