Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp60 AlarmImpl(int *fds, size_t n_fds);
68 int *fds; member in android::AlarmImpl
85 AlarmImplTimerFd(int fds[N_ANDROID_TIMERFDS], int epollfd, int rtc_id) : in AlarmImplTimerFd()
86 AlarmImpl(fds, N_ANDROID_TIMERFDS), epollfd(epollfd), rtc_id(rtc_id) { } in AlarmImplTimerFd()
98 AlarmImpl::AlarmImpl(int *fds_, size_t n_fds) : fds(new int[n_fds]), in AlarmImpl()
101 memcpy(fds, fds_, n_fds * sizeof(fds[0])); in AlarmImpl()
107 close(fds[i]); in ~AlarmImpl()
109 delete [] fds; in ~AlarmImpl()
114 return ioctl(fds[0], ANDROID_ALARM_SET(type), ts); in set()
124 res = ioctl(fds[0], ANDROID_ALARM_SET_RTC, &ts); in setTime()
[all …]
Dcom_android_server_UsbMidiDevice.cpp78 jobjectArray fds = env->NewObjectArray(subdevice_count + 1, sFileDescriptorClass, NULL); in android_server_UsbMidiDevice_open() local
79 if (!fds) { in android_server_UsbMidiDevice_open()
92 env->SetObjectArrayElement(fds, i, fileDescriptor); in android_server_UsbMidiDevice_open()
100 env->SetObjectArrayElement(fds, subdevice_count, fileDescriptor); in android_server_UsbMidiDevice_open()
105 return fds; in android_server_UsbMidiDevice_open()
109 android_server_UsbMidiDevice_close(JNIEnv *env, jobject thiz, jobjectArray fds) in android_server_UsbMidiDevice_close() argument
117 int count = env->GetArrayLength(fds); in android_server_UsbMidiDevice_close()
119 jobject fd = env->GetObjectArrayElement(fds, i); in android_server_UsbMidiDevice_close()
/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/native/libs/gui/
DBufferItem.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()
159 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
170 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
177 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
DIGraphicBufferProducer.cpp515 void*& buffer, size_t& size, int*& fds, size_t& count) const in flatten() argument
528 status_t result = fence->flatten(buffer, size, fds, count); in flatten()
536 void const*& buffer, size_t& size, int const*& fds, size_t& count) in unflatten() argument
562 status_t result = fence->unflatten(buffer, size, fds, count); in unflatten()
/frameworks/native/libs/ui/
DFence.cpp140 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
148 *fds++ = mFenceFd; in flatten()
154 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
176 mFenceFd = *fds++; in unflatten()
DGraphicBuffer.cpp288 status_t GraphicBuffer::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
311 memcpy(fds, handle->data, in flatten()
320 fds += handle->numFds; in flatten()
328 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
375 memcpy(h->data, fds, numFds * sizeof(int)); in unflatten()
403 fds += numFds; in unflatten()
/frameworks/native/include/gui/
DBufferItem.h41 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
42 status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
DIGraphicBufferProducer.h308 status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
309 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.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/native/include/binder/
DParcel.h302 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0;
303 … virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0;
319 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { in flatten() argument
320 return val.flatten(buffer, size, fds, count); in flatten()
322 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { in unflatten() argument
323 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fds, count); in unflatten()
/frameworks/base/core/java/android/bluetooth/
DBluetoothSocket.java236 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); in acceptSocket() local
237 if (DBG) Log.d(TAG, "socket fd passed by stack fds: " + fds); in acceptSocket()
238 if(fds == null || fds.length != 1) { in acceptSocket()
239 Log.e(TAG, "socket fd passed from stack failed, fds: " + fds); in acceptSocket()
244 as.mPfd = new ParcelFileDescriptor(fds[0]); in acceptSocket()
245 as.mSocket = new LocalSocket(fds[0]); in acceptSocket()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java663 ArrayList<FileDescriptor> fds = new ArrayList<FileDescriptor>(); in runSelectLoop() local
666 fds.add(sServerSocket.getFileDescriptor()); in runSelectLoop()
670 StructPollfd[] pollFds = new StructPollfd[fds.size()]; in runSelectLoop()
673 pollFds[i].fd = fds.get(i); in runSelectLoop()
688 fds.add(newPeer.getFileDesciptor()); in runSelectLoop()
693 fds.remove(i); in runSelectLoop()
/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/android/os/
DParcelFileDescriptor.java379 final FileDescriptor[] fds = Os.pipe(); in createPipe() local
381 new ParcelFileDescriptor(fds[0]), in createPipe()
382 new ParcelFileDescriptor(fds[1]) }; in createPipe()
401 final FileDescriptor[] fds = Os.pipe(); in createReliablePipe() local
403 new ParcelFileDescriptor(fds[0], comm[0]), in createReliablePipe()
404 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.cpp992 int* fds = NULL; in write() local
994 fds = new int[fd_count]; in write()
997 err = val.flatten(buf, len, fds, fd_count); in write()
999 err = this->writeDupFileDescriptor( fds[i] ); in write()
1003 delete [] fds; in write()
1424 int* fds = NULL; in read() local
1426 fds = new int[fd_count]; in read()
1431 fds[i] = dup(this->readFileDescriptor()); in read()
1432 if (fds[i] < 0) { in read()
1435 i, fds[i], fd_count, strerror(errno)); in read()
[all …]
/frameworks/base/core/jni/
Dandroid_net_LocalSocketImpl.cpp569 int fds[countFds]; in socket_write_all() local
585 fds[i] = jniGetFDFromFileDescriptor(env, fdObject); in socket_write_all()
597 cmsg->cmsg_len = CMSG_LEN(sizeof fds); in socket_write_all()
598 memcpy(CMSG_DATA(cmsg), fds, sizeof fds); in socket_write_all()
/frameworks/base/core/java/android/content/
DContentProvider.java1666 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in openPipeHelper() local
1671 func.writeDataToPipe(fds[1], uri, mimeType, opts, args); in openPipeHelper()
1673 fds[1].close(); in openPipeHelper()
1682 return fds[0]; in openPipeHelper()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java526 final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe();
529 FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream(fds[1]);
539 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…

12