Searched refs:fds (Results 1 – 8 of 8) sorted by relevance
/cts/tests/aslr/src/ |
D | AslrMallocTest.cpp | 71 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/ |
D | test_3a_consistency.py | 40 fds = [] 51 fds.append(fd) 57 assert np.isclose(np.amax(fds), np.amin(fds), FD_TOL)
|
D | test_lens_movement_reporting.py | 58 fds = [af_fd, min_fd] 59 fds = sorted(fds * NUM_IMGS) 61 for i, fd in enumerate(fds): 66 data = {'fd': fds[i]}
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CrossProcessExceptionTest.java | 141 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/tests/tests/graphics/jni/ |
D | android_graphics_cts_SyncTest.cpp | 45 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/ |
D | AHardwareBufferTest.cpp | 294 int fds[2]; in TEST() local 295 err = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in TEST() 298 ClientData data(fds[1], buffer); in TEST() 303 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], NULL); in TEST() 307 err = AHardwareBuffer_recvHandleFromUnixSocket(fds[0], &received); in TEST() 315 close(fds[0]); in TEST()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SyncTest.java | 117 private static native boolean nSyncPoll(int[] fds, int[] status); in nSyncPoll() argument
|
/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_native_aidl_client.cpp | 257 int fds[2]; in checkFdRepeat() local 259 while (pipe(fds) == -1 && errno == EAGAIN) in checkFdRepeat() 262 ScopedFileDescriptor readFd(fds[0]); in checkFdRepeat() 263 ScopedFileDescriptor writeFd(fds[1]); in checkFdRepeat()
|