/frameworks/base/libs/utils/tests/ |
D | TestHelpers.h | 30 int fds[2]; in Pipe() local 31 ::pipe(fds); in Pipe() 33 receiveFd = fds[0]; in Pipe() 34 sendFd = fds[1]; in Pipe()
|
/frameworks/base/libs/gui/ |
D | SensorChannel.cpp | 35 int fds[2]; in SensorChannel() local 36 if (pipe(fds) == 0) { in SensorChannel() 37 mReceiveFd = fds[0]; in SensorChannel() 38 mSendFd = fds[1]; in SensorChannel()
|
D | Sensor.cpp | 125 int fds[], size_t count) const in flatten() argument 165 int fds[], size_t count) in unflatten() argument
|
/frameworks/base/core/jni/ |
D | android_bluetooth_BluetoothAudioGateway.cpp | 371 struct pollfd fds[2]; in waitForHandsfreeConnectNative() local 377 fds[cnt].fd = nat->hf_ag_rfcomm_sock; in waitForHandsfreeConnectNative() 378 fds[cnt].events = POLLIN | POLLPRI | POLLOUT | POLLERR; in waitForHandsfreeConnectNative() 385 fds[cnt].fd = nat->hs_ag_rfcomm_sock; in waitForHandsfreeConnectNative() 386 fds[cnt].events = POLLIN | POLLPRI | POLLOUT | POLLERR; in waitForHandsfreeConnectNative() 393 n = poll(fds, cnt, timeout_ms); in waitForHandsfreeConnectNative() 409 for (cnt = 0; cnt < (int)(sizeof(fds)/sizeof(fds[0])); cnt++) { in waitForHandsfreeConnectNative() 411 if (fds[cnt].fd == nat->hf_ag_rfcomm_sock) { in waitForHandsfreeConnectNative() 412 if (fds[cnt].revents & (POLLIN | POLLPRI | POLLOUT)) { in waitForHandsfreeConnectNative() 414 err += do_accept(env, object, fds[cnt].fd, in waitForHandsfreeConnectNative() [all …]
|
D | com_android_internal_os_ZygoteInit.cpp | 257 JNIEnv *env, jobject clazz, jobjectArray fds) in com_android_internal_os_ZygoteInit_selectReadable() argument 259 if (fds == NULL) { in com_android_internal_os_ZygoteInit_selectReadable() 265 jsize length = env->GetArrayLength(fds); in com_android_internal_os_ZygoteInit_selectReadable() 276 jobject fdObj = env->GetObjectArrayElement(fds, i); in com_android_internal_os_ZygoteInit_selectReadable() 306 jobject fdObj = env->GetObjectArrayElement(fds, i); in com_android_internal_os_ZygoteInit_selectReadable()
|
D | android_os_ParcelFileDescriptor.cpp | 72 int fds[2]; in android_os_ParcelFileDescriptor_createPipeNative() local 73 if (pipe(fds) < 0) { in android_os_ParcelFileDescriptor_createPipeNative() 81 env->SetIntField(fdObj, gFileDescriptorOffsets.mDescriptor, fds[i]); in android_os_ParcelFileDescriptor_createPipeNative()
|
D | android_bluetooth_ScoSocket.cpp | 546 fd_set fds; in accept_work() local 571 FD_ZERO(&fds); in accept_work() 572 FD_SET(sk, &fds); in accept_work() 573 FD_SET(signal_sk, &fds); in accept_work() 577 while (select(max_fd + 1, &fds, NULL, NULL, NULL) < 0) { in accept_work() 585 if (FD_ISSET(signal_sk, &fds)) { in accept_work() 590 if (!FD_ISSET(sk, &fds)) { in accept_work()
|
D | android_net_LocalSocketImpl.cpp | 593 int fds[countFds]; in socket_write_all() local 609 fds[i] = jniGetFDFromFileDescriptor(env, fdObject); in socket_write_all() 621 cmsg->cmsg_len = CMSG_LEN(sizeof fds); in socket_write_all() 622 memcpy(CMSG_DATA(cmsg), fds, sizeof fds); in socket_write_all()
|
/frameworks/base/core/java/android/os/ |
D | ParcelFileDescriptor.java | 142 FileDescriptor[] fds = new FileDescriptor[2]; in createPipe() local 143 int res = createPipeNative(fds); in createPipe() 146 pfds[0] = new ParcelFileDescriptor(fds[0]); in createPipe() 147 pfds[1] = new ParcelFileDescriptor(fds[1]); in createPipe()
|
/frameworks/base/include/utils/ |
D | Flattenable.h | 42 int fds[], size_t count) const = 0; 52 int fds[], size_t count) = 0;
|
/frameworks/base/cmds/dumpstate/ |
D | utils.c | 280 int fds[2]; in redirect_to_file() local 281 if (pipe(fds)) { in redirect_to_file() 296 dup2(fds[0], STDIN_FILENO); in redirect_to_file() 300 close(fds[0]); in redirect_to_file() 301 close(fds[1]); in redirect_to_file() 311 close(fds[0]); in redirect_to_file() 312 fd = fds[1]; in redirect_to_file()
|
/frameworks/base/include/gui/ |
D | Sensor.h | 72 int fds[], size_t count) const; 74 int fds[], size_t count);
|
/frameworks/base/libs/ui/ |
D | GraphicBuffer.cpp | 199 int fds[], size_t count) const in flatten() argument 222 memcpy(fds, h->data, h->numFds*sizeof(int)); in flatten() 230 int fds[], size_t count) in unflatten() argument 259 memcpy(h->data, fds, numFds*sizeof(int)); in unflatten()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteInit.java | 652 ArrayList<FileDescriptor> fds = new ArrayList(); in runSelectLoopMode() local 656 fds.add(sServerSocket.getFileDescriptor()); in runSelectLoopMode() 681 fdArray = fds.toArray(fdArray); in runSelectLoopMode() 692 fds.add(newPeer.getFileDesciptor()); in runSelectLoopMode() 699 fds.remove(index); in runSelectLoopMode() 801 static native int selectReadable(FileDescriptor[] fds) throws IOException; in selectReadable() argument
|
/frameworks/base/core/java/android/net/ |
D | LocalSocket.java | 254 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument 255 impl.setFileDescriptorsForSend(fds); in setFileDescriptorsForSend()
|
D | LocalSocketImpl.java | 435 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument 437 outboundFileDescriptors = fds; in setFileDescriptorsForSend()
|
/frameworks/base/include/ui/ |
D | GraphicBuffer.h | 145 int fds[], size_t count) const; 147 int fds[], size_t count);
|
/frameworks/base/libs/binder/ |
D | Parcel.cpp | 723 int* fds = NULL; in write() local 725 fds = new int[fd_count]; in write() 728 err = val.flatten(buf, len, fds, fd_count); in write() 730 err = this->writeDupFileDescriptor( fds[i] ); in write() 734 delete [] fds; in write() 1034 int* fds = NULL; in read() local 1036 fds = new int[fd_count]; in read() 1041 fds[i] = dup(this->readFileDescriptor()); in read() 1042 if (fds[i] < 0) err = BAD_VALUE; in read() 1046 err = val.unflatten(buf, len, fds, fd_count); in read() [all …]
|
/frameworks/base/docs/html/guide/developing/tools/ |
D | emulator.jd | 506 …l fdpair:3:6</code> lets a parent process communicate with the shell using fds 3 (in) and 6 (out)<… 507 …<li><code>-shell-serial fdpair:0:1</code> uses the normal stdin and stdout fds, except that QEMU w…
|