Searched defs:fds (Results 1 - 15 of 15) sorted by relevance

/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/base/libs/androidfw/tests/
H A DTestHelpers.h30 int fds[2]; local
31 ::pipe(fds);
33 receiveFd = fds[0];
34 sendFd = fds[1];
/frameworks/native/libs/utils/tests/
H A DTestHelpers.h30 int fds[2]; local
31 ::pipe(fds);
33 receiveFd = fds[0];
34 sendFd = fds[1];
/frameworks/base/core/jni/
H A Dandroid_os_ParcelFileDescriptor.cpp57 int fds[2]; local
58 if (pipe(fds) < 0) {
65 jobject fdObj = jniCreateFileDescriptor(env, fds[i]);
H A Dcom_android_internal_os_ZygoteInit.cpp216 JNIEnv *env, jobject clazz, jobjectArray fds)
218 if (fds == NULL) {
219 jniThrowNullPointerException(env, "fds == null");
223 jsize length = env->GetArrayLength(fds);
234 jobject fdObj = env->GetObjectArrayElement(fds, i);
264 jobject fdObj = env->GetObjectArrayElement(fds, i);
215 com_android_internal_os_ZygoteInit_selectReadable( JNIEnv *env, jobject clazz, jobjectArray fds) argument
H A Dandroid_net_LocalSocketImpl.cpp593 int fds[countFds]; local
609 fds[i] = jniGetFDFromFileDescriptor(env, fdObject);
621 cmsg->cmsg_len = CMSG_LEN(sizeof fds);
622 memcpy(CMSG_DATA(cmsg), fds, sizeof fds); local
/frameworks/base/core/java/android/net/
H A DLocalSocket.java263 * @param fds non-null; file descriptors to send.
265 public void setFileDescriptorsForSend(FileDescriptor[] fds) { argument
266 impl.setFileDescriptorsForSend(fds);
H A DLocalSocketImpl.java432 * @param fds non-null; file descriptors to send.
435 public void setFileDescriptorsForSend(FileDescriptor[] fds) { argument
437 outboundFileDescriptors = fds;
/frameworks/native/libs/ui/
H A DFence.cpp97 status_t Fence::flatten(void* buffer, size_t size, int fds[], argument
103 fds[0] = mFenceFd;
107 status_t Fence::unflatten(void const* buffer, size_t size, int fds[], argument
117 mFenceFd = fds[0];
H A DGraphicBuffer.cpp192 int fds[], size_t count) const
214 memcpy(fds, h->data, h->numFds*sizeof(int));
222 int fds[], size_t count)
250 memcpy(h->data, fds, numFds*sizeof(int));
191 flatten(void* buffer, size_t size, int fds[], size_t count) const argument
221 unflatten(void const* buffer, size_t size, int fds[], size_t count) argument
/frameworks/native/libs/gui/
H A DISurfaceTexture.cpp316 int fds[], size_t count) const
327 err = fence->flatten(p, size - (p - (char*)buffer), fds, count);
333 size_t size, int fds[], size_t count)
345 err = fence->unflatten(p, size - (p - (const char*)buffer), fds, count);
315 flatten(void* buffer, size_t size, int fds[], size_t count) const argument
332 unflatten(void const* buffer, size_t size, int fds[], size_t count) argument
/frameworks/native/libs/utils/
H A DBlobCache.cpp183 status_t BlobCache::flatten(void* buffer, size_t size, int fds[], size_t count) argument
231 status_t BlobCache::unflatten(void const* buffer, size_t size, int fds[], argument
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java615 ArrayList<FileDescriptor> fds = new ArrayList();
619 fds.add(sServerSocket.getFileDescriptor());
644 fdArray = fds.toArray(fdArray);
655 fds.add(newPeer.getFileDesciptor());
662 fds.remove(index);
751 * @param fds non-null; array of readable file descriptors
755 static native int selectReadable(FileDescriptor[] fds) throws IOException; argument
/frameworks/native/cmds/dumpstate/
H A Dutils.c326 int fds[2]; local
327 if (pipe(fds)) {
342 dup2(fds[0], STDIN_FILENO);
346 close(fds[0]);
347 close(fds[1]);
357 close(fds[0]);
358 fd = fds[1];
/frameworks/native/libs/binder/
H A DParcel.cpp436 // officially know we have fds.
803 int* fds = NULL; local
805 fds = new int[fd_count];
808 err = val.flatten(buf, len, fds, fd_count);
810 err = this->writeDupFileDescriptor( fds[i] );
814 delete [] fds;
1144 int* fds = NULL; local
1146 fds = new int[fd_count];
1151 fds[i] = dup(this->readFileDescriptor());
1152 if (fds[
[all...]

Completed in 839 milliseconds