Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp58 AlarmImpl(int *fds, size_t n_fds);
66 int *fds; member in android::AlarmImpl
83 AlarmImplTimerFd(int fds[N_ANDROID_TIMERFDS], int epollfd) : in AlarmImplTimerFd()
84 AlarmImpl(fds, N_ANDROID_TIMERFDS), epollfd(epollfd) { } in AlarmImplTimerFd()
95 AlarmImpl::AlarmImpl(int *fds_, size_t n_fds) : fds(new int[n_fds]), in AlarmImpl()
98 memcpy(fds, fds_, n_fds * sizeof(fds[0])); in AlarmImpl()
104 close(fds[i]); in ~AlarmImpl()
106 delete [] fds; in ~AlarmImpl()
111 return ioctl(fds[0], ANDROID_ALARM_SET(type), ts); in set()
121 res = ioctl(fds[0], ANDROID_ALARM_SET_RTC, &ts); in setTime()
[all …]
/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/native/libs/gui/
DBufferItem.cpp97 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
112 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten()
118 status_t err = mFence->flatten(buffer, size, fds, count); in flatten()
144 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
154 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
161 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
DIGraphicBufferConsumer.cpp99 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
114 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten()
120 status_t err = mFence->flatten(buffer, size, fds, count); in flatten()
146 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
156 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
163 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
DIGraphicBufferProducer.cpp448 void*& buffer, size_t& size, int*& fds, size_t& count) const in flatten() argument
460 return fence->flatten(buffer, size, fds, count); in flatten()
464 void const*& buffer, size_t& size, int const*& fds, size_t& count) in unflatten() argument
488 return fence->unflatten(buffer, size, fds, count); in unflatten()
/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.cpp163 JNIEnv *env, jobject clazz, jobjectArray fds) in com_android_internal_os_ZygoteInit_selectReadable() argument
165 if (fds == NULL) { in com_android_internal_os_ZygoteInit_selectReadable()
170 jsize length = env->GetArrayLength(fds); in com_android_internal_os_ZygoteInit_selectReadable()
181 jobject fdObj = env->GetObjectArrayElement(fds, i); in com_android_internal_os_ZygoteInit_selectReadable()
211 jobject fdObj = env->GetObjectArrayElement(fds, i); in com_android_internal_os_ZygoteInit_selectReadable()
Dandroid_net_LocalSocketImpl.cpp567 int fds[countFds]; in socket_write_all() local
583 fds[i] = jniGetFDFromFileDescriptor(env, fdObject); in socket_write_all()
595 cmsg->cmsg_len = CMSG_LEN(sizeof fds); in socket_write_all()
596 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.cpp266 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
289 memcpy(fds, h->data, h->numFds*sizeof(int)); in flatten()
296 fds += handle->numFds; in flatten()
304 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
350 memcpy(h->data, fds, numFds*sizeof(int)); in unflatten()
376 fds += numFds; in unflatten()
/frameworks/native/include/gui/
DBufferItem.h40 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
41 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
DIGraphicBufferConsumer.h51 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
52 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
DIGraphicBufferProducer.h303 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
304 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/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.h117 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
118 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java187 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); in acceptSocket() local
188 if (DBG) Log.d(TAG, "socket fd passed by stack fds: " + fds); in acceptSocket()
189 if(fds == null || fds.length != 1) { in acceptSocket()
190 Log.e(TAG, "socket fd passed from stack failed, fds: " + fds); in acceptSocket()
194 as.mSocket = new LocalSocket(fds[0]); in acceptSocket()
/frameworks/native/include/binder/
DParcel.h295 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0;
296 … virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0;
312 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { in flatten() argument
313 return val.flatten(buffer, size, fds, count); in flatten()
315 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { in unflatten() argument
316 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count); in unflatten()
/frameworks/native/cmds/dumpstate/
Dutils.c454 int fds[2]; in redirect_to_file() local
455 if (pipe(fds)) { in redirect_to_file()
470 dup2(fds[0], STDIN_FILENO); in redirect_to_file()
474 close(fds[0]); in redirect_to_file()
475 close(fds[1]); in redirect_to_file()
485 close(fds[0]); in redirect_to_file()
486 fd = fds[1]; in redirect_to_file()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java362 final FileDescriptor[] fds = Os.pipe(); in createPipe() local
364 new ParcelFileDescriptor(fds[0]), in createPipe()
365 new ParcelFileDescriptor(fds[1]) }; in createPipe()
384 final FileDescriptor[] fds = Os.pipe(); in createReliablePipe() local
386 new ParcelFileDescriptor(fds[0], comm[0]), in createReliablePipe()
387 new ParcelFileDescriptor(fds[1], comm[1]) }; in createReliablePipe()
/frameworks/base/core/java/android/net/
DLocalSocket.java287 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument
288 impl.setFileDescriptorsForSend(fds); in setFileDescriptorsForSend()
DLocalSocketImpl.java488 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend() argument
490 outboundFileDescriptors = fds; in setFileDescriptorsForSend()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java745 ArrayList<FileDescriptor> fds = new ArrayList<FileDescriptor>(); in runSelectLoop() local
749 fds.add(sServerSocket.getFileDescriptor()); in runSelectLoop()
774 fdArray = fds.toArray(fdArray); in runSelectLoop()
785 fds.add(newPeer.getFileDescriptor()); in runSelectLoop()
792 fds.remove(index); in runSelectLoop()
865 static native int selectReadable(FileDescriptor[] fds) throws IOException; in selectReadable() argument
/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.cpp895 int* fds = NULL; in write() local
897 fds = new int[fd_count]; in write()
900 err = val.flatten(buf, len, fds, fd_count); in write()
902 err = this->writeDupFileDescriptor( fds[i] ); in write()
906 delete [] fds; in write()
1303 int* fds = NULL; in read() local
1305 fds = new int[fd_count]; in read()
1310 fds[i] = dup(this->readFileDescriptor()); in read()
1311 if (fds[i] < 0) { in read()
1314 i, fds[i], fd_count, strerror(errno)); in read()
[all …]

12