/frameworks/base/libs/androidfw/tests/ |
H A D | TestHelpers.h | 30 int fds[2]; local 31 ::pipe(fds); 33 receiveFd = fds[0]; 34 sendFd = fds[1];
|
/frameworks/native/libs/utils/tests/ |
H A D | TestHelpers.h | 30 int fds[2]; local 31 ::pipe(fds); 33 receiveFd = fds[0]; 34 sendFd = fds[1];
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | getch.c | 38 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/libs/ui/ |
H A D | Fence.cpp | 97 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 D | GraphicBuffer.cpp | 192 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/include/ui/ |
H A D | Fence.h | 92 int fds[], size_t count) const; 94 int fds[], size_t count);
|
H A D | GraphicBuffer.h | 142 int fds[], size_t count) const; 144 int fds[], size_t count);
|
/frameworks/base/core/jni/ |
H A D | android_os_ParcelFileDescriptor.cpp | 57 int fds[2]; local 58 if (pipe(fds) < 0) { 65 jobject fdObj = jniCreateFileDescriptor(env, fds[i]);
|
H A D | com_android_internal_os_ZygoteInit.cpp | 216 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 D | android_net_LocalSocketImpl.cpp | 593 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/native/include/utils/ |
H A D | Flattenable.h | 43 // file descriptors are written in the fds[] array but ownership is 47 int fds[], size_t count) const = 0; 52 // unflattened file descriptors are found in the fds[] array and 57 int fds[], size_t count) = 0;
|
H A D | BlobCache.h | 98 virtual status_t flatten(void* buffer, size_t size, int fds[], 109 virtual status_t unflatten(void const* buffer, size_t size, int fds[],
|
/frameworks/base/core/java/android/net/ |
H A D | LocalSocket.java | 263 * @param fds non-null; file descriptors to send. 265 public void setFileDescriptorsForSend(FileDescriptor[] fds) { argument 266 impl.setFileDescriptorsForSend(fds);
|
H A D | LocalSocketImpl.java | 432 * @param fds non-null; file descriptors to send. 435 public void setFileDescriptorsForSend(FileDescriptor[] fds) { argument 437 outboundFileDescriptors = fds;
|
/frameworks/base/core/java/android/os/ |
H A D | ParcelFileDescriptor.java | 222 FileDescriptor[] fds = new FileDescriptor[2]; 223 createPipeNative(fds); 225 pfds[0] = new ParcelFileDescriptor(fds[0]); 226 pfds[1] = new ParcelFileDescriptor(fds[1]);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 326 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/base/core/java/android/bluetooth/ |
H A D | BluetoothSocket.java | 191 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); 192 if (VDBG) Log.d(TAG, "socket fd passed by stack fds: " + fds); 193 if(fds == null || fds.length != 1) { 194 Log.e(TAG, "socket fd passed from stack failed, fds: " + fds); 197 as.mSocket = new LocalSocket(fds[0]);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteInit.java | 615 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/include/gui/ |
H A D | ISurfaceTexture.h | 110 int fds[], size_t count) const; 112 int fds[], size_t count);
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProvider.java | 991 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); 996 func.writeDataToPipe(fds[1], uri, mimeType, opts, args); 998 fds[1].close(); 1007 return fds[0];
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceTexture.cpp | 316 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/binder/ |
H A D | Parcel.cpp | 436 // 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...] |
/frameworks/native/libs/utils/ |
H A D | BlobCache.cpp | 183 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
|