Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 11 of 11) 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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java95 ParcelFileDescriptor[] fds = uiAutomation().executeShellCommandRwe(command); in executeCommand() local
96 ParcelFileDescriptor fdOut = fds[OUT_DESCRIPTOR_INDEX]; in executeCommand()
97 ParcelFileDescriptor fdIn = fds[IN_DESCRIPTOR_INDEX]; in executeCommand()
98 ParcelFileDescriptor fdErr = fds[ERR_DESCRIPTOR_INDEX]; in executeCommand()
137 ParcelFileDescriptor[] fds = uiAutomation().executeShellCommandRwe(command); in executeCommandForBytes() local
138 ParcelFileDescriptor fdOut = fds[OUT_DESCRIPTOR_INDEX]; in executeCommandForBytes()
139 ParcelFileDescriptor fdIn = fds[IN_DESCRIPTOR_INDEX]; in executeCommandForBytes()
140 ParcelFileDescriptor fdErr = fds[ERR_DESCRIPTOR_INDEX]; in executeCommandForBytes()
/cts/tests/tests/os/src/android/os/cts/
DCrossProcessExceptionTest.java141 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in doCommand() local
143 green.dump(fds[0].getFileDescriptor(), new String[] { cmd }); in doCommand()
145 fds[0].close(); in doCommand()
146 fds[1].close(); in doCommand()
/cts/apps/CameraITS/tests/scene3/
Dtest_3a_consistency.py85 fds = []
118 fds.append(focus_distance_result)
136 fd_min = np.amin(fds)
137 fd_max = np.amax(fds)
Dtest_lens_movement_reporting.py66 fds = [af_fd] * NUM_FRAMES_PER_FD + [min_fd] * NUM_FRAMES_PER_FD
68 for i, fd in enumerate(fds):
74 data = {'fd': fds[i]}
/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java144 ParcelFileDescriptor[] fds = automation.executeShellCommandRwe(cmd); in runShellCommandOrThrow() local
145 ParcelFileDescriptor fdOut = fds[0]; in runShellCommandOrThrow()
146 ParcelFileDescriptor fdIn = fds[1]; in runShellCommandOrThrow()
147 ParcelFileDescriptor fdErr = fds[2]; in runShellCommandOrThrow()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp295 int fds[2]; in TEST() local
296 err = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in TEST()
299 ClientData data(fds[1], buffer); in TEST()
304 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], (AHardwareBuffer * * _Nonnull)NULL); in TEST()
308 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], &received); in TEST()
316 close(fds[0]); in TEST()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp373 int fds[2]; in checkFdRepeat() local
375 while (pipe(fds) == -1 && errno == EAGAIN) in checkFdRepeat()
378 ScopedFileDescriptor readFd(fds[0]); in checkFdRepeat()
379 ScopedFileDescriptor writeFd(fds[1]); in checkFdRepeat()
388 int fds[2]; in TEST_P() local
390 while (pipe(fds) == -1 && errno == EAGAIN) in TEST_P()
393 sfds.emplace_back(fds[0]); in TEST_P()
394 sfds.emplace_back(fds[1]); in TEST_P()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSyncTest.java117 private static native boolean nSyncPoll(int[] fds, int[] status); in nSyncPoll() argument
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-11173/
Dlocal_poc.h54 int *fds; member