Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java110 ParcelFileDescriptor[] fds = executeShellCommandRwe(command); in executeCommandForStream() local
111 ParcelFileDescriptor fdOut = fds[OUT_DESCRIPTOR_INDEX]; in executeCommandForStream()
112 ParcelFileDescriptor fdIn = fds[IN_DESCRIPTOR_INDEX]; in executeCommandForStream()
113 ParcelFileDescriptor fdErr = fds[ERR_DESCRIPTOR_INDEX]; in executeCommandForStream()
136 ParcelFileDescriptor[] fds = executeShellCommandRwe(command); in executeCommand() local
137 ParcelFileDescriptor fdOut = fds[OUT_DESCRIPTOR_INDEX]; in executeCommand()
138 ParcelFileDescriptor fdIn = fds[IN_DESCRIPTOR_INDEX]; in executeCommand()
139 ParcelFileDescriptor fdErr = fds[ERR_DESCRIPTOR_INDEX]; in executeCommand()
174 ParcelFileDescriptor[] fds = executeShellCommandRwe(command); in executeCommandForBytes() local
175 ParcelFileDescriptor fdOut = fds[OUT_DESCRIPTOR_INDEX]; in executeCommandForBytes()
[all …]
/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/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationShellTest.java71 @NonNull ParcelFileDescriptor[] fds, in validateShellResults()
76 assertThat(fds.length).isAtLeast(1); in validateShellResults()
77 assertThat(fds.length).isAtMost(3); in validateShellResults()
78 if (fds.length > 1) { in validateShellResults()
79 writeString(fds[1], stdin); in validateShellResults()
82 assertThat(readString(fds[0])).isEqualTo(expectedStdout); in validateShellResults()
83 if (fds.length > 2) { in validateShellResults()
84 String stderr = readString(fds[2]); in validateShellResults()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9547/
Dpoc.cpp29 int const fds[] = {0, 0}; in main() local
30 size_t count = sizeof(fds) / sizeof(int); in main()
31 int const *fd = const_cast<int const *>(fds); in main()
/cts/tests/tests/os/src/android/os/cts/
DCrossProcessExceptionTest.java143 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in doCommand() local
145 green.dump(fds[0].getFileDescriptor(), new String[] { cmd }); in doCommand()
147 fds[0].close(); in doCommand()
148 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/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/inputmethod/util/src/android/view/inputmethod/cts/util/
DMetricsRecorder.java178 final var fds = automation.executeShellCommandRwe(cmd); in runShellCommandWithStdIn() local
179 final var fdOut = fds[OUT_DESCRIPTOR_INDEX]; in runShellCommandWithStdIn()
180 final var fdIn = fds[IN_DESCRIPTOR_INDEX]; in runShellCommandWithStdIn()
181 final var fdErr = fds[ERR_DESCRIPTOR_INDEX]; in runShellCommandWithStdIn()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp303 int fds[2]; in TEST() local
304 err = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in TEST()
307 ClientData data(fds[1], buffer); in TEST()
312 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], (AHardwareBuffer * * _Nonnull)NULL); in TEST()
316 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], &received); in TEST()
324 close(fds[0]); in TEST()
/cts/apps/CameraITS/tests/scene3/
Dtest_lens_movement_reporting.py71 fds = [af_fd] * _NUM_FRAMES_PER_FD + [min_fd] * _NUM_FRAMES_PER_FD
73 for i, fd in enumerate(fds):
79 data = {'fd': fds[i+_START_FRAME]}
/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
/cts/tests/surfacecontrol/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp406 struct pollfd fds; in sync_wait() local
414 fds.fd = fd; in sync_wait()
415 fds.events = POLLIN; in sync_wait()
418 ret = poll(&fds, 1, timeout); in sync_wait()
420 if (fds.revents & (POLLERR | POLLNVAL)) { in sync_wait()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java498 final FileDescriptor[] fds = Os.pipe(); in testNonSeekableInputStream() local
500 new ParcelFileDescriptor(fds[0]), 0, FILE_LENGTH); in testNonSeekableInputStream()
501 FileDescriptor writeFd = fds[1]; in testNonSeekableInputStream()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp385 int fds[2]; in checkFdRepeat() local
387 while (pipe(fds) == -1 && errno == EAGAIN) in checkFdRepeat()
390 ScopedFileDescriptor readFd(fds[0]); in checkFdRepeat()
391 ScopedFileDescriptor writeFd(fds[1]); in checkFdRepeat()
400 int fds[2]; in TEST_P() local
402 while (pipe(fds) == -1 && errno == EAGAIN) in TEST_P()
405 sfds.emplace_back(fds[0]); in TEST_P()
406 sfds.emplace_back(fds[1]); in TEST_P()