/frameworks/av/media/libstagefright/bqhelper/ |
Conversion.cpp | 225 int* fds = new int[numFds]; local 243 std::copy(handle->data, intsStart, fds); 249 int const* constFds = static_cast<int const*>(fds); 252 delete [] fds; 274 * int*& fds, size_t& numFds) 279 * int*& fds, size_t& numFds) 290 * `fds` is the pointer to the fd buffer to be filled, and `numFds` is the 291 * size (in ints) of the fd buffer pointed to by `fds`. 294 * `buffer`, `fds` is the pointer to the fd buffer to be read from, and 295 * `numFds` is the size (in ints) of the fd buffer pointed to by `fds` 463 int* fds = static_cast<int*>(baseFds.get()); local 525 int* fds = static_cast<int*>(baseFds.get()); local 989 int* fds = baseFds.get(); local 1035 int* fds = static_cast<int*>(baseFds.get()); local 1375 int* fds = baseFds.get(); local 1421 int* fds = baseFds.get(); local [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
ZygoteServer.java | 174 ArrayList<FileDescriptor> fds = new ArrayList<FileDescriptor>(); local 177 fds.add(mServerSocket.getFileDescriptor()); 181 StructPollfd[] pollFds = new StructPollfd[fds.size()]; 184 pollFds[i].fd = fds.get(i); 200 fds.add(newPeer.getFileDesciptor()); 226 fds.remove(i); 244 fds.remove(i);
|
/frameworks/base/core/jni/ |
android_net_LocalSocketImpl.cpp | 256 int fds[countFds]; local 272 fds[i] = jniGetFDFromFileDescriptor(env, fdObject); 284 cmsg->cmsg_len = CMSG_LEN(sizeof fds); 285 memcpy(CMSG_DATA(cmsg), fds, sizeof fds); local
|
/frameworks/base/services/core/jni/ |
com_android_server_AlarmManagerService.cpp | 77 AlarmImpl(const TimerFds &fds, int epollfd, int rtc_id) : 78 fds{fds}, epollfd{epollfd}, rtc_id{rtc_id} { } 86 const TimerFds fds; member in class:android::AlarmImpl 93 for (auto fd : fds) { 118 return timerfd_settime(fds[type], TFD_TIMER_ABSTIME, &spec, NULL); 185 ssize_t err = read(fds[alarm_idx], &unused, sizeof(unused)); 330 TimerFds fds; local 332 epollfd = epoll_create(fds.size()); 334 ALOGE("epoll_create(%zu) failed: %s", fds.size() [all...] |
/frameworks/native/libs/vr/libbufferhub/ |
buffer_hub_client.cpp | 238 void BufferHubBuffer::GetBlobFds(int* fds, size_t* fds_count, 242 std::copy(native_handle()->data, native_handle()->data + *fds_count, fds); local
|
/frameworks/native/libs/vr/libpdx_uds/ |
client_channel.cpp | 303 auto fds = channel_data->TakeFds(); local 305 std::move(std::get<0>(fds)), std::move(std::get<1>(fds)), 306 std::move(std::get<2>(fds))); 309 // won't get shutdown in the destructor, while the FDs in ChannelParcelable
|
ipc_helper.cpp | 24 256; // Total of 1KiB of data to transfer these FDs. 320 const int* fds = reinterpret_cast<const int*>(CMSG_DATA(cmsg)); local 322 std::transform(fds, fds + fd_count, std::back_inserter(file_handles_),
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/ |
omx_video_encoder.cpp | 101 int fds[2]; local 420 if(pipe(fds)) 427 if(fds[0] == 0 || fds[1] == 0) 429 if(pipe(fds)) 437 m_pipe_in = fds[0]; 438 m_pipe_out = fds[1]; [all...] |
/system/bt/vendor_libs/test_vendor_lib/src/ |
async_manager.cc | 43 // starts a new thread which watches the given (and later provided) FDs using 46 // the addition of new FDs to watch on). Every access to internal state is 54 // AsyncTaskManager class. Like the one for FDs, this class shares no internal 197 // add watched FDs to the set 225 std::vector<decltype(watched_shared_fds_)::value_type> fds; local 230 fds.push_back(fdc); 234 for (auto& p : fds) {
|
/system/core/adb/ |
fdevent_test.cpp | 94 int fds[2]; local 95 ASSERT_EQ(0, adb_socketpair(fds)); 96 read_fds.push_back(fds[0]); 97 write_fds.push_back(fds[1]);
|
jdwp_service.cpp | 322 int fds[2]; local 324 if (adb_socketpair(fds) < 0) { 328 D("socketpair: (%d,%d)", fds[0], fds[1]); 330 proc->out_fds.emplace_back(fds[1]); 335 return fds[0];
|
/system/core/libsync/ |
sync.c | 103 struct pollfd fds; local 111 fds.fd = fd; 112 fds.events = POLLIN; 115 ret = poll(&fds, 1, timeout); 117 if (fds.revents & (POLLERR | POLLNVAL)) {
|
/system/core/libsync/tests/ |
sync_test.cpp | 399 struct pollfd fds; local 400 fds.fd = fenceKill.getFd(); 401 fds.events = POLLIN | POLLERR; 402 ASSERT_EQ(poll(&fds, 1, 0), 0);
|
/system/netd/server/dns/ |
DnsTlsSocket.cpp | 54 struct pollfd fds = { .fd = fd, .events = POLLIN }; local 55 const int ret = TEMP_FAILURE_RETRY(poll(&fds, 1, -1)); 60 struct pollfd fds = { .fd = fd, .events = POLLOUT }; local 61 const int ret = TEMP_FAILURE_RETRY(poll(&fds, 1, -1)); 349 // poll() ignores negative fds 350 struct pollfd fds[2] = { { .fd = -1 }, { .fd = -1 } }; local 354 fds[SSLFD].fd = mSslFd.get(); 355 fds[SSLFD].events = POLLIN; 360 fds[SSLFD].events |= POLLOUT; 362 fds[IPCFD].fd = mIpcOutFd.get() [all...] |
/system/netd/tests/dns_responder/ |
dns_tls_frontend.cpp | 264 struct pollfd fds[1] = {{ .fd = socket_, .events = POLLIN }}; local 267 int poll_code = poll(fds, 1, 10 /* ms */);
|
/external/autotest/client/site_tests/camera_V4L2/src/ |
media_v4l2_device.cc | 329 fd_set fds; local 330 FD_ZERO(&fds); 331 FD_SET(fd_, &fds); 335 int32_t r = select(fd_ + 1, &fds, NULL, NULL, &tv);
|
/external/iputils/ |
tracepath6.c | 82 fd_set fds; local 84 FD_ZERO(&fds); 85 FD_SET(fd, &fds); 88 select(fd+1, &fds, NULL, NULL, &tv);
|
/external/libvncserver/libvncclient/ |
tls_openssl.c | 217 fd_set fds; local 220 FD_ZERO(&fds); 222 FD_SET(SSL_get_fd(ssl), &fds); local 227 r = select (SSL_get_fd(ssl) + 1, &fds, NULL, NULL, &tv);
|
/external/ltp/testcases/kernel/sched/tool/ |
time-schedule.c | 98 int fds[2]; local 114 if (pipe(fds) != 0) { 118 read_fd = fds[0]; 119 pipe_write_fd = fds[1]; 178 if (pipe(fds) != 0) { 182 pipe_read_fd = fds[0]; 183 write_fd = fds[1];
|
/external/tinycompress/ |
compress.c | 354 struct pollfd fds; local 364 fds.fd = compress->fd; 365 fds.events = POLLOUT; 380 ret = poll(&fds, 1, compress->max_poll_wait_ms); 381 if (fds.revents & POLLERR) { 390 if (fds.revents & POLLOUT) { 416 struct pollfd fds; local 426 fds.fd = compress->fd; 427 fds.events = POLLIN; 440 ret = poll(&fds, 1, compress->max_poll_wait_ms) 612 struct pollfd fds; local [all...] |
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H2BGraphicBufferProducer.cpp | 155 int* fds = new int[numFds]; local 173 std::copy(handle->data, intsStart, fds); 179 int const* constFds = static_cast<int const*>(fds); 182 delete [] fds; 222 * \param[in,out] fds The pointer to the flat fd buffer. 231 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { 248 *nh = native_handle_create_from_fd(*fds); 253 ++fds; 269 * \param[in,out] fds The pointer to the flat fd buffer. 274 void*& buffer, size_t& size, int*& fds, size_t& numFds) 320 int* fds = static_cast<int*>(baseFds.get()); local 382 int* fds = static_cast<int*>(baseFds.get()); local 551 int* fds = baseFds.get(); local 887 int* fds = static_cast<int*>(baseFds.get()); local [all...] |
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/ |
omx_video_encoder.cpp | 123 int fds[2]; local 484 if (pipe(fds)) { 488 if (fds[0] == 0 || fds[1] == 0) { 489 if (pipe(fds)) { 495 m_pipe_in = fds[0]; 496 m_pipe_out = fds[1]; [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
FileInputStreamTest.java | 297 File[] fds = new File("/proc/self/fd").listFiles(); local 299 for (File fd : fds) {
|
/system/bt/hci/src/ |
hci_layer_linux.cc | 153 fd_set fds; local 154 FD_ZERO(&fds); 155 FD_SET(ctrl_fd, &fds); 156 FD_SET(fd, &fds); 157 int res = select(std::max(fd, ctrl_fd) + 1, &fds, NULL, NULL, NULL); 160 if (FD_ISSET(ctrl_fd, &fds)) { 283 struct pollfd fds[1]; local 307 fds[0].fd = fd; 308 fds[0].events = POLLIN; 325 OSI_NO_INTR(n = poll(fds, 1, MGMT_EV_POLL_TIMEOUT)) [all...] |
/system/bt/vendor_libs/linux/interface/ |
bluetooth_hci.cc | 118 struct pollfd fds[1]; local 139 fds[0].fd = fd; 140 fds[0].events = POLLIN; 157 WRITE_NO_INTR(n = poll(fds, 1, MGMT_EV_POLL_TIMEOUT)); 168 if (fds[0].revents & POLLIN) {
|