Searched refs:fds (Results 1 - 25 of 56) sorted by relevance

123

/frameworks/native/libs/input/tests/
H A DTestHelpers.h32 int fds[2]; local
33 ::pipe(fds);
35 receiveFd = fds[0];
36 sendFd = fds[1];
/frameworks/wilhelm/tests/sandbox/
H A Dgetch.c38 fd_set fds; local
39 FD_ZERO(&fds); // not in original posting to stackoverflow
40 FD_SET(0, &fds);
41 return select(1, &fds, NULL, NULL, &tv);
/frameworks/native/cmds/bugreportz/
H A Dbugreportz_test.cpp36 int fds[2]; local
37 ASSERT_EQ(0, pipe(fds));
38 read_fd_ = fds[0];
39 write_fd_ = fds[1];
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp77 AlarmImpl(const TimerFds &fds, int epollfd, int rtc_id) : argument
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
[all...]
H A Dcom_android_server_UsbMidiDevice.cpp92 jobjectArray fds = env->NewObjectArray(subdevice_count + 1, sFileDescriptorClass, NULL); local
93 if (!fds) {
106 env->SetObjectArrayElement(fds, i, fileDescriptor);
114 env->SetObjectArrayElement(fds, subdevice_count, fileDescriptor);
119 return fds;
123 android_server_UsbMidiDevice_close(JNIEnv *env, jobject thiz, jobjectArray fds) argument
131 int count = env->GetArrayLength(fds);
133 jobject fd = env->GetObjectArrayElement(fds, i);
/frameworks/base/core/java/android/printservice/
H A DPrintDocument.java79 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe();
80 source = fds[0];
81 sink = fds[1];
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteServer.java174 ArrayList<FileDescriptor> fds = new ArrayList<FileDescriptor>();
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/tools/bit/
H A Dcommand.cpp107 int fds[2]; local
108 if (0 != pipe(fds)) {
120 while ((dup2(fds[1], STDOUT_FILENO) == -1) && (errno == EINTR)) {}
121 close(fds[1]);
122 close(fds[0]);
133 close(fds[1]);
138 ssize_t amt = read(fds[0], buf, size);
H A Dadb.cpp304 int fds[2];
305 if (0 != pipe(fds)) {
316 while ((dup2(fds[1], STDOUT_FILENO) == -1) && (errno == EINTR)) {}
317 close(fds[1]);
318 close(fds[0]);
327 close(fds[1]);
331 int err = read_instrumentation_results(fds[0], buf, size, callbacks);
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
H A DConversion.h235 * int*& fds, size_t& numFds)
240 * int*& fds, size_t& numFds)
251 * `fds` is the pointer to the fd buffer to be filled, and `numFds` is the
252 * size (in ints) of the fd buffer pointed to by `fds`.
255 * `buffer`, `fds` is the pointer to the fd buffer to be read from, and
256 * `numFds` is the size (in ints) of the fd buffer pointed to by `fds`.
257 * - After a successful call to `flatten()` or `unflatten()`, `buffer` and `fds`
260 * - After an unsuccessful call, the values of `buffer`, `size`, `fds` and
277 * flatten(x, buffer, size, fds, numFds)
281 * x.flatten(buffer, size, fds, numFd
[all...]
/frameworks/native/include/gui/
H A DBufferItem.h41 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
42 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
H A DIGraphicBufferProducer.h360 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
361 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
397 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
398 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/native/libs/gui/include/gui/
H A DBufferItem.h41 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
42 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
H A DIGraphicBufferProducer.h360 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
361 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
397 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
398 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/av/media/libstagefright/bqhelper/
H A DConversion.cpp225 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`
373 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
416 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
463 int* fds = static_cast<int*>(baseFds.get()); local
525 int* fds = static_cast<int*>(baseFds.get()); local
595 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
634 unflatten( HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
731 unflatten(HGraphicBufferProducer::FrameEventsDelta* t, std::vector<native_handle_t*>* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
800 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
892 unflatten( HGraphicBufferProducer::FrameEventHistoryDelta* t, std::vector<std::vector<native_handle_t*> >* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
933 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
989 int* fds = baseFds.get(); local
1035 int* fds = static_cast<int*>(baseFds.get()); local
1252 flatten(HGraphicBufferProducer::QueueBufferInput const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1303 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1375 int* fds = baseFds.get(); local
1421 int* fds = baseFds.get(); local
[all...]
/frameworks/native/libs/gui/bufferqueue/1.0/
H A DH2BGraphicBufferProducer.cpp155 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_
230 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
273 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
320 int* fds = static_cast<int*>(baseFds.get()); local
382 int* fds = static_cast<int*>(baseFds.get()); local
480 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
551 int* fds = baseFds.get(); local
620 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
719 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, std::vector<native_handle_t*>* nh, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
823 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, std::vector<std::vector<native_handle_t*> >* nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
887 int* fds = static_cast<int*>(baseFds.get()); local
[all...]
/frameworks/native/libs/ui/
H A DFence.cpp142 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { argument
150 *fds++ = mFenceFd;
156 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument
178 mFenceFd.reset(*fds++);
/frameworks/native/include/ui/
H A DFence.h135 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
136 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
H A DFenceTime.h66 status_t flatten(void*& buffer, size_t& size, int*& fds,
68 status_t unflatten(void const*& buffer, size_t& size, int const*& fds,
/frameworks/native/libs/ui/include/ui/
H A DFence.h135 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
136 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/native/libs/ui/include_vndk/ui/
H A DFence.h135 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
136 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/base/cmds/incident/
H A Dmain.cpp255 int fds[2]; local
256 pipe(fds);
258 unique_fd readEnd(fds[0]);
259 unique_fd writeEnd(fds[1]);
275 int amt = splice(fds[0], NULL, STDOUT_FILENO, NULL, 4096, 0);
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DMtpManagerTest.java137 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe();
140 new ParcelFileDescriptor.AutoCloseOutputStream(fds[1])) {
151 fds[0]);
/frameworks/native/libs/gui/
H A DBufferItem.cpp126 void*& buffer, size_t& size, int*& fds, size_t& count) const {
141 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
147 status_t err = mFence->flatten(buffer, size, fds, count);
194 void const*& buffer, size_t& size, int const*& fds, size_t& count) {
205 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count);
212 status_t err = mFence->unflatten(buffer, size, fds, count);
125 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
193 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
/frameworks/base/core/java/android/net/
H A DLocalSocket.java300 * @param fds non-null; file descriptors to send.
302 public void setFileDescriptorsForSend(FileDescriptor[] fds) { argument
303 impl.setFileDescriptorsForSend(fds);

Completed in 174 milliseconds

123