HomeSort by relevance Sort by last modified time
    Searched defs:num_fds (Results 1 - 24 of 24) sorted by null

  /bionic/tests/
sys_select_test.cpp 95 int num_fds = select(max, &r, &w, &e, nullptr); local
99 ASSERT_TRUE(num_fds == 2 || num_fds == 3) << "Num fds returned " << num_fds;
102 if (num_fds == 3) {
153 int num_fds = pselect(max, &r, &w, &e, nullptr, &ss); local
154 ASSERT_TRUE(num_fds == 2 || num_fds == 3) << "Num fds returned " << num_fds;
157 if (num_fds == 3)
    [all...]
  /device/google/cuttlefish_common/host/commands/launch/
process_monitor.cc 150 int num_fds = cvd::Select(&read_set, nullptr, nullptr, nullptr); local
151 if (num_fds < 0) {
155 if (num_fds > 0) {
158 --num_fds;
171 --num_fds;
181 assert(num_fds == 0);
  /external/adhd/cras/src/tests/
util_unittest.cc 26 unsigned int num_fds = 2; local
37 ASSERT_GE(cras_send_with_fds(sock[0], msg, strlen(msg), send_fds, num_fds),
39 ASSERT_GE(cras_recv_with_fds(sock[1], buf, strlen(msg), new_fds, &num_fds),
42 ASSERT_EQ(2, num_fds);
72 unsigned int num_fds = 2; local
81 ASSERT_GE(cras_recv_with_fds(sock[1], buf, strlen(msg), new_fds, &num_fds),
84 ASSERT_EQ(1, num_fds);
109 unsigned int num_fds = 1; local
117 ASSERT_EQ(5, cras_send_with_fds(sock[0], msg, strlen(msg), &fd[1], num_fds));
119 cras_recv_with_fds(sock[1], buf, strlen(msg), &new_fd, &num_fds));
140 unsigned int num_fds = 0; local
    [all...]
  /external/libchrome/mojo/public/cpp/platform/
socket_utils_posix.cc 157 size_t num_fds = payload_length / sizeof(int); local
159 for (size_t i = 0; i < num_fds; ++i) {
  /external/google-breakpad/src/client/linux/crash_generation/
crash_generation_server.cc 237 const unsigned num_fds = len / sizeof(int); local
238 if (num_fds > 1 || num_fds == 0) {
241 for (unsigned i = 0; i < num_fds; ++i)
  /external/grpc-grpc/test/core/iomgr/
pollset_set_test.cc 117 static void init_test_fds(test_fd* tfds, const int num_fds) {
118 for (int i = 0; i < num_fds; i++) {
126 static void cleanup_test_fds(test_fd* tfds, const int num_fds) {
129 for (int i = 0; i < num_fds; i++) {
146 static void make_test_fds_readable(test_fd* tfds, const int num_fds) {
147 for (int i = 0; i < num_fds; i++) {
152 static void verify_readable_and_reset(test_fd* tfds, const int num_fds) {
153 for (int i = 0; i < num_fds; i++) {
208 const int num_fds = GPR_ARRAY_SIZE(tfds); local
212 init_test_fds(tfds, num_fds);
310 const int num_fds = GPR_ARRAY_SIZE(tfds); local
380 const int num_fds = GPR_ARRAY_SIZE(tfds); local
    [all...]
tcp_server_posix_test.cc 383 const unsigned num_fds = grpc_tcp_server_port_fd_count(s, port_num); local
385 for (fd_num = 0; fd_num < num_fds; ++fd_num) {
  /device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
mm_qcamera_socket.c 629 int num_fds = 0; local
648 num_fds = TUNESERVER_MAX(server_socket, prev_server_socket);
649 LOGH("num_fds = %d\n", num_fds);
663 result = select(num_fds + 1, &tsfds, NULL, NULL, NULL);
688 num_fds = TUNESERVER_MAX(num_fds, client_socket);
783 num_fds = TUNESERVER_MAX(num_fds, prev_client_socket);
  /external/autotest/client/tests/hackbench/src/
hackbench.c 104 unsigned int num_fds; member in struct:sender_context
167 for (j = 0; j < ctx->num_fds; j++) {
264 unsigned int num_fds,
270 +num_fds*sizeof(int));
272 for (i = 0; i < num_fds; i++) {
283 ctx->num_packets = num_fds*loops;
297 for (i = 0; i < num_fds; i++) {
300 snd_ctx->num_fds = num_fds;
302 pth[num_fds+i] = create_worker(snd_ctx, (void *)(void *)sender)
318 unsigned int num_fds = 20; local
    [all...]
  /external/grpc-grpc/src/core/lib/iomgr/
tcp_server_posix.cc 449 unsigned num_fds = 0; local
453 ++num_fds;
456 return num_fds;
  /external/libchrome/ipc/
ipc_channel_nacl.cc 283 const size_t num_fds = msg->attachment_set()->size(); local
284 DCHECK(num_fds <= MessageAttachmentSet::kMaxDescriptorsPerMessage);
286 fds.reserve(num_fds);
287 for (size_t i = 0; i < num_fds; i++) {
298 NaClAbiNaClImcMsgHdr msgh = {&iov, 1, fds.data(), num_fds};
363 uint16_t header_fds = msg->header()->num_fds;
ipc_message.h 253 uint16_t num_fds; // the number of descriptors included with this message member in struct:IPC::Message::Header
  /external/ltp/testcases/kernel/sched/cfs-scheduler/
hackbench.c 76 unsigned int num_fds; member in struct:sender_context
139 for (j = 0; j < ctx->num_fds; j++) {
239 unsigned int num_fds, int ready_out, int wakefd)
242 struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) + num_fds * sizeof(int));
248 for (i = 0; i < num_fds; i++) {
255 rev_ctx_tab[gr_num * num_fds + i] = ctx;
260 ctx->num_packets = num_fds * loops;
274 for (i = 0; i < num_fds; i++) {
277 snd_ctx->num_fds = num_fds;
297 unsigned int num_fds = 20; local
    [all...]
  /external/perfetto/src/profiling/memory/
client.cc 174 size_t num_fds = 0; local
177 num_fds = 1;
181 sizeof(client_config) - recv, fd, num_fds);
  /external/wayland/tests/
test-runner.c 168 int num_fds; local
178 num_fds = count_open_fds();
179 if (supposed_fds != num_fds) {
181 "Opened %d files, unclosed %d\n", num_fds,
182 num_fds - supposed_fds);
  /external/adhd/cras/src/server/
cras_server.c 130 unsigned int num_fds = 1; local
132 nread = cras_recv_with_fds(client->fd, buf, sizeof(buf), &fd, &num_fds);
  /external/libchrome/mojo/core/
channel_posix.cc 633 size_t num_fds = payload_size / sizeof(int); variable
634 if (num_fds == 0 || payload_size % sizeof(int) != 0)
638 if (!CloseHandles(fds, num_fds))
650 // Closes handles referenced by |fds|. Returns false if |num_fds| is 0, or if
652 bool CloseHandles(const int* fds, size_t num_fds) {
654 if (!num_fds)
671 for (; i < num_fds && it != fds_to_close_.end(); i++, ++it) {
675 if (i != num_fds)
  /external/mesa3d/src/gbm/main/
gbm.h 280 uint32_t num_fds; member in struct:gbm_import_fd_modifier_data
  /bionic/libc/kernel/uapi/linux/android/
binder.h 81 binder_size_t num_fds; member in struct:binder_fd_array_object
  /external/kernel-headers/original/uapi/linux/android/
binder.h 145 * @num_fds: number of file descriptors in the buffer
166 binder_size_t num_fds; member in struct:binder_fd_array_object
  /external/openssh/regress/
netcat.c 777 int n, num_fds; local
826 num_fds = poll(pfd, 4, timeout);
829 if (num_fds == -1) {
835 if (num_fds == 0)
    [all...]
  /external/mesa3d/src/egl/drivers/dri2/
egl_dri2.c 2406 unsigned num_fds; local
    [all...]
  /device/google/marlin/camera/QCamera2/stack/mm-camera-interface/inc/
mm_camera.h 176 uint8_t num_fds; member in struct:__anon3431
  /external/adhd/cras/src/libcras/
cras_client.c 1708 unsigned int num_fds = 2; local
    [all...]

Completed in 7583 milliseconds