Home
last modified time | relevance | path

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

/frameworks/wilhelm/tests/sandbox/
Dgetch.c38 fd_set fds; in kbhit() local
39 FD_ZERO(&fds); // not in original posting to stackoverflow in kbhit()
40 FD_SET(0, &fds); in kbhit()
41 return select(1, &fds, NULL, NULL, &tv); in kbhit()
/frameworks/native/libs/input/tests/
DTestHelpers.h32 int fds[2]; in Pipe() local
33 ::pipe(fds); in Pipe()
35 receiveFd = fds[0]; in Pipe()
36 sendFd = fds[1]; in Pipe()
/frameworks/base/core/java/android/printservice/
DPrintDocument.java77 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in getData() local
78 source = fds[0]; in getData()
79 sink = fds[1]; in getData()
/frameworks/base/core/jni/
Dcom_android_internal_os_ZygoteInit.cpp186 JNIEnv *env, jobject clazz, jobjectArray fds) in com_android_internal_os_ZygoteInit_selectReadable() argument
188 if (fds == NULL) { in com_android_internal_os_ZygoteInit_selectReadable()
193 jsize length = env->GetArrayLength(fds); in com_android_internal_os_ZygoteInit_selectReadable()
204 jobject fdObj = env->GetObjectArrayElement(fds, i); in com_android_internal_os_ZygoteInit_selectReadable()
234 jobject fdObj = env->GetObjectArrayElement(fds, i); in com_android_internal_os_ZygoteInit_selectReadable()
Dandroid_net_LocalSocketImpl.cpp571 int fds[countFds]; in socket_write_all() local
587 fds[i] = jniGetFDFromFileDescriptor(env, fdObject); in socket_write_all()
599 cmsg->cmsg_len = CMSG_LEN(sizeof fds); in socket_write_all()
600 memcpy(CMSG_DATA(cmsg), fds, sizeof fds); in socket_write_all()
/frameworks/native/libs/ui/
DFence.cpp137 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
143 *fds++ = mFenceFd; in flatten()
149 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
171 mFenceFd = *fds++; in unflatten()
DGraphicBuffer.cpp211 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
232 memcpy(fds, h->data, h->numFds*sizeof(int)); in flatten()
238 fds += handle->numFds; in flatten()
245 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
272 memcpy(h->data, fds, numFds*sizeof(int)); in unflatten()
293 fds += numFds; in unflatten()
/frameworks/native/include/ui/
DFence.h99 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
100 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
DGraphicBuffer.h109 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
110 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/native/include/binder/
DParcel.h274 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0;
275 … virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0;
291 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { in flatten() argument
292 return val.flatten(buffer, size, fds, count); in flatten()
294 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { in unflatten() argument
295 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count); in unflatten()
/frameworks/native/cmds/dumpstate/
Dutils.c397 int fds[2]; in redirect_to_file() local
398 if (pipe(fds)) { in redirect_to_file()
413 dup2(fds[0], STDIN_FILENO); in redirect_to_file()
417 close(fds[0]); in redirect_to_file()
418 close(fds[1]); in redirect_to_file()
428 close(fds[0]); in redirect_to_file()
429 fd = fds[1]; in redirect_to_file()
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java192 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); in acceptSocket() local
193 if (VDBG) Log.d(TAG, "socket fd passed by stack fds: " + fds); in acceptSocket()
194 if(fds == null || fds.length != 1) { in acceptSocket()
195 Log.e(TAG, "socket fd passed from stack failed, fds: " + fds); in acceptSocket()
199 as.mSocket = new LocalSocket(fds[0]); in acceptSocket()
/frameworks/native/include/gui/
DIGraphicBufferConsumer.h47 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
48 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
DIGraphicBufferProducer.h132 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
133 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java618 ArrayList<FileDescriptor> fds = new ArrayList<FileDescriptor>(); in runSelectLoop() local
622 fds.add(sServerSocket.getFileDescriptor()); in runSelectLoop()
647 fdArray = fds.toArray(fdArray); in runSelectLoop()
658 fds.add(newPeer.getFileDesciptor()); in runSelectLoop()
665 fds.remove(index); in runSelectLoop()
747 static native int selectReadable(FileDescriptor[] fds) throws IOException; in selectReadable() argument
/frameworks/native/libs/gui/
DIGraphicBufferConsumer.cpp94 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
109 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten()
115 status_t err = mFence->flatten(buffer, size, fds, count); in flatten()
141 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
151 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
158 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
DIGraphicBufferProducer.cpp287 void*& buffer, size_t& size, int*& fds, size_t& count) const in flatten() argument
298 return fence->flatten(buffer, size, fds, count); in flatten()
302 void const*& buffer, size_t& size, int const*& fds, size_t& count) in unflatten() argument
324 return fence->unflatten(buffer, size, fds, count); in unflatten()
/frameworks/base/core/java/android/net/
DLocalSocket.java287 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument
288 impl.setFileDescriptorsForSend(fds); in setFileDescriptorsForSend()
DLocalSocketImpl.java485 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument
487 outboundFileDescriptors = fds; in setFileDescriptorsForSend()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java361 final FileDescriptor[] fds = Libcore.os.pipe(); in createPipe() local
363 new ParcelFileDescriptor(fds[0]), in createPipe()
364 new ParcelFileDescriptor(fds[1]) }; in createPipe()
383 final FileDescriptor[] fds = Libcore.os.pipe(); in createReliablePipe() local
385 new ParcelFileDescriptor(fds[0], comm[0]), in createReliablePipe()
386 new ParcelFileDescriptor(fds[1], comm[1]) }; in createReliablePipe()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DTestDocumentsProvider.java337 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createReliablePipe(); in openDocumentThumbnail() local
341 final FileOutputStream fos = new FileOutputStream(fds[1].getFileDescriptor()); in openDocumentThumbnail()
347 IoUtils.closeQuietly(fds[1]); in openDocumentThumbnail()
351 return new AssetFileDescriptor(fds[0], 0, AssetFileDescriptor.UNKNOWN_LENGTH); in openDocumentThumbnail()
/frameworks/native/libs/binder/
DParcel.cpp841 int* fds = NULL; in write() local
843 fds = new int[fd_count]; in write()
846 err = val.flatten(buf, len, fds, fd_count); in write()
848 err = this->writeDupFileDescriptor( fds[i] ); in write()
852 delete [] fds; in write()
1211 int* fds = NULL; in read() local
1213 fds = new int[fd_count]; in read()
1218 fds[i] = dup(this->readFileDescriptor()); in read()
1219 if (fds[i] < 0) err = BAD_VALUE; in read()
1223 err = val.unflatten(buf, len, fds, fd_count); in read()
[all …]
/frameworks/base/core/java/android/content/
DContentProvider.java1505 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in openPipeHelper() local
1510 func.writeDataToPipe(fds[1], uri, mimeType, opts, args); in openPipeHelper()
1512 fds[1].close(); in openPipeHelper()
1521 return fds[0]; in openPipeHelper()
/frameworks/base/services/java/com/android/server/am/
DProcessStatsService.java504 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe();
507 FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream(fds[1]);
517 return fds[0];
/frameworks/base/docs/html/tools/help/
Demulator.jd278 …l fdpair:3:6</code> lets a parent process communicate with the shell using fds 3 (in) and 6 (out)<…
279 …<li><code>-shell-serial fdpair:0:1</code> uses the normal stdin and stdout fds, except that QEMU w…