/frameworks/wilhelm/tests/sandbox/ |
D | getch.c | 38 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/ |
D | TestHelpers.h | 32 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/ |
D | PrintDocument.java | 77 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in getData() local 78 source = fds[0]; in getData() 79 sink = fds[1]; in getData()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_ZygoteInit.cpp | 186 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()
|
D | android_net_LocalSocketImpl.cpp | 571 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/ |
D | Fence.cpp | 137 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()
|
D | GraphicBuffer.cpp | 211 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/ |
D | Fence.h | 99 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);
|
D | GraphicBuffer.h | 109 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/ |
D | Parcel.h | 274 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/ |
D | utils.c | 397 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/ |
D | BluetoothSocket.java | 192 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/ |
D | IGraphicBufferConsumer.h | 47 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);
|
D | IGraphicBufferProducer.h | 132 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/ |
D | ZygoteInit.java | 618 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/ |
D | IGraphicBufferConsumer.cpp | 94 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()
|
D | IGraphicBufferProducer.cpp | 287 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/ |
D | LocalSocket.java | 287 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument 288 impl.setFileDescriptorsForSend(fds); in setFileDescriptorsForSend()
|
D | LocalSocketImpl.java | 485 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument 487 outboundFileDescriptors = fds; in setFileDescriptorsForSend()
|
/frameworks/base/core/java/android/os/ |
D | ParcelFileDescriptor.java | 361 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/ |
D | TestDocumentsProvider.java | 337 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/ |
D | Parcel.cpp | 841 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/ |
D | ContentProvider.java | 1505 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/ |
D | ProcessStatsService.java | 504 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); 507 FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream(fds[1]); 517 return fds[0];
|
/frameworks/base/docs/html/tools/help/ |
D | emulator.jd | 278 …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…
|