HomeSort by relevance Sort by last modified time
    Searched refs:pfd (Results 26 - 50 of 367) sorted by null

12 3 4 5 6 7 8 91011>>

  /hardware/qcom/audio/hal/audio_extn/
sndmonitor.c 425 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd), local
427 if (!pfd)
430 pfd[0].fd = sndmonitor.intpipe[0];
431 pfd[0].events = POLLPRI|POLLIN;
437 pfd[i].fd = s->fd;
438 pfd[i].events = POLLPRI;
444 pfd[i].fd = d->fd;
445 pfd[i].events = POLLPRI;
450 if (poll(pfd, num_poll_fds, -1) < 0) {
471 if (READY_TO_READ(&pfd[0]))
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/
1-1.c 66 int pfd[2]; local
73 rc = pipe(pfd);
96 child_busy(pfd[1]);
104 rc = read(pfd[0], buf, sizeof(buf));
  /external/mesa3d/src/gallium/state_trackers/wgl/
stw_pixelformat.h 43 PIXELFORMATDESCRIPTOR pfd; member in struct:stw_pixelformat_info
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowParcelFileDescriptor.java 35 ParcelFileDescriptor pfd; local
38 pfd = constructor.newInstance(new FileDescriptor());
42 Shadows.shadowOf(pfd).file = new RandomAccessFile(file, mode == ParcelFileDescriptor.MODE_READ_ONLY ? "r" : "rw");
43 return pfd;
  /development/samples/Vault/src/com/example/android/vault/
Utils.java 40 public static void closeWithErrorQuietly(ParcelFileDescriptor pfd, String msg) {
41 if (pfd != null) {
43 pfd.closeWithError(msg);
  /hardware/qcom/display/msm8084/libhwcomposer/
hwc_vsync.cpp 114 struct pollfd pfd[num_displays][num_events]; local
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
156 if (pfd[dpy][ev].fd >= 0)
157 pfd[dpy][ev].events = POLLPRI | POLLERR;
163 int err = poll(*pfd, num_displays * num_events, -1);
167 if (pfd[dpy][ev].revents & POLLPRI) {
168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
205 if(pfd[dpy][event].fd >= 0
    [all...]
  /hardware/qcom/display/msm8226/libhwcomposer/
hwc_vsync.cpp 104 struct pollfd pfd[num_displays][num_events]; local
128 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
144 if (pfd[dpy][ev].fd >= 0)
145 pfd[dpy][ev].events = POLLPRI | POLLERR;
151 int err = poll(*pfd, (int)(num_displays * num_events), -1);
155 if (pfd[dpy][ev].revents & POLLPRI) {
156 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
206 if(pfd[dpy][event].fd >= 0
    [all...]
  /hardware/qcom/display/msm8994/libhwcomposer/
hwc_vsync.cpp 123 struct pollfd pfd[num_displays][num_events]; local
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY);
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) {
159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0);
160 if (pfd[dpy][ev].fd >= 0)
161 pfd[dpy][ev].events = POLLPRI | POLLERR;
167 int err = poll(*pfd, (int)(num_displays * num_events), -1);
171 if (pfd[dpy][ev].revents & POLLPRI) {
172 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0);
209 if(pfd[dpy][event].fd >= 0
    [all...]
  /prebuilts/go/darwin-x86/src/net/
fd_windows.go 29 pfd poll.FD
42 pfd: poll.FD{
55 errcall, err := fd.pfd.Init(fd.net, true)
77 fd.pfd.SetWriteDeadline(deadline)
78 defer fd.pfd.SetWriteDeadline(noDeadline)
81 err := connectFunc(fd.pfd.Sysfd, ra)
94 if err := syscall.Bind(fd.pfd.Sysfd, la); err != nil {
109 fd.pfd.SetWriteDeadline(aLongTimeAgo)
116 if err := fd.pfd.ConnectEx(ra); err != nil {
128 return nil, os.NewSyscallError("setsockopt", syscall.Setsockopt(fd.pfd.Sysfd, syscall.SOL_SOCKET, syscall.SO_UPDATE_CONNECT_CONTEXT, (*byte)(unsafe.Pointer(&fd.pfd.Sysfd (…)
    [all...]
fd_unix.go 20 pfd poll.FD
33 pfd: poll.FD{
46 return fd.pfd.Init(fd.net, true)
70 switch err := connectFunc(fd.pfd.Sysfd, ra); err {
78 if err := fd.pfd.Init(fd.net, true); err != nil {
96 if err := fd.pfd.Init(fd.net, true); err != nil {
100 fd.pfd.SetWriteDeadline(deadline)
101 defer fd.pfd.SetWriteDeadline(noDeadline)
134 fd.pfd.SetWriteDeadline(aLongTimeAgo)
152 if err := fd.pfd.WaitWrite(); err != nil
    [all...]
  /prebuilts/go/linux-x86/src/net/
fd_windows.go 29 pfd poll.FD
42 pfd: poll.FD{
55 errcall, err := fd.pfd.Init(fd.net, true)
77 fd.pfd.SetWriteDeadline(deadline)
78 defer fd.pfd.SetWriteDeadline(noDeadline)
81 err := connectFunc(fd.pfd.Sysfd, ra)
94 if err := syscall.Bind(fd.pfd.Sysfd, la); err != nil {
109 fd.pfd.SetWriteDeadline(aLongTimeAgo)
116 if err := fd.pfd.ConnectEx(ra); err != nil {
128 return nil, os.NewSyscallError("setsockopt", syscall.Setsockopt(fd.pfd.Sysfd, syscall.SOL_SOCKET, syscall.SO_UPDATE_CONNECT_CONTEXT, (*byte)(unsafe.Pointer(&fd.pfd.Sysfd (…)
    [all...]
fd_unix.go 20 pfd poll.FD
33 pfd: poll.FD{
46 return fd.pfd.Init(fd.net, true)
70 switch err := connectFunc(fd.pfd.Sysfd, ra); err {
78 if err := fd.pfd.Init(fd.net, true); err != nil {
96 if err := fd.pfd.Init(fd.net, true); err != nil {
100 fd.pfd.SetWriteDeadline(deadline)
101 defer fd.pfd.SetWriteDeadline(noDeadline)
134 fd.pfd.SetWriteDeadline(aLongTimeAgo)
152 if err := fd.pfd.WaitWrite(); err != nil
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_FilesTest.java 191 ParcelFileDescriptor pfd = mResolver.openFileDescriptor(fileUri, "r"); local
192 pfd.close();
200 String realPathFor(ParcelFileDescriptor pfd) {
201 File real = new File("/proc/self/fd/" + pfd.getFd());
225 ParcelFileDescriptor pfd = null; local
227 pfd = mResolver.openFileDescriptor(uri, "r");
228 pfd.close();
239 pfd = mResolver.openFileDescriptor(uri, "w");
240 pfd.close();
247 pfd = mResolver.openFileDescriptor(uri, "r")
    [all...]
  /external/curl/lib/
select.c 151 struct pollfd pfd[3]; local
194 pfd[num].fd = readfd0;
195 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI;
196 pfd[num].revents = 0;
200 pfd[num].fd = readfd1;
201 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI;
202 pfd[num].revents = 0;
206 pfd[num].fd = writefd;
207 pfd[num].events = POLLWRNORM|POLLOUT;
208 pfd[num].revents = 0
    [all...]
  /frameworks/base/core/java/android/util/
MemoryIntArray.java 81 ParcelFileDescriptor pfd = parcel.readParcelable(null); local
82 if (pfd == null) {
85 mFd = pfd.detachFd();
178 ParcelFileDescriptor pfd = ParcelFileDescriptor.adoptFd(mFd); local
181 parcel.writeParcelable(pfd, flags & ~Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
183 pfd.detachFd();
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
RemoteSocketFactoryClient.java 87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); local
88 FileDescriptor fd = Os.dup(pfd.getFileDescriptor());
89 pfd.close();
  /frameworks/base/services/core/java/com/android/server/net/watchlist/
NetworkWatchlistShellCommand.java 76 final ParcelFileDescriptor pfd = openFileForSystem(configXmlPath, "r"); local
77 if (pfd != null) {
78 final InputStream fileStream = new FileInputStream(pfd.getFileDescriptor());
  /frameworks/support/compat/src/main/java/androidx/core/graphics/
TypefaceCompatApi21Impl.java 71 try (ParcelFileDescriptor pfd =
73 final File file = getFile(pfd);
77 try (FileInputStream fis = new FileInputStream(pfd.getFileDescriptor())) {
  /device/google/wahoo/power-libperfmgr/
InteractionHandler.cpp 188 struct pollfd pfd[2];
194 pfd[0].fd = mEventFd;
195 pfd[0].events = POLLIN;
196 pfd[1].fd = mIdleFd;
197 pfd[1].events = POLLPRI | POLLERR;
199 ret = poll(pfd, 1, wait_ms);
219 ret = poll(pfd, 2, timeout_ms);
224 else if (pfd[0].revents)
226 else if (pfd[1].revents)
  /external/adhd/cras/src/tests/
cras_router.c 130 int *pfd = malloc(sizeof(*pfd)); local
131 *pfd = fd;
147 pfd,
189 free(pfd);
256 int pfd[2]; local
258 rc = pipe(pfd);
263 run_file_io_stream(client, pfd[1], pfd[0], CRAS_STREAM_INPUT,
  /external/libcups/cups/
sidechannel.c 112 struct pollfd pfd; /* Poll structure for poll() */ local
135 pfd.fd = CUPS_SC_FD;
136 pfd.events = POLLIN;
138 while ((nfds = poll(&pfd, 1,
535 struct pollfd pfd; /* Poll structure for poll() */ local
555 pfd.fd = CUPS_SC_FD;
556 pfd.events = POLLOUT;
560 if (poll(&pfd, 1, -1) < 1)
563 else if (poll(&pfd, 1, (int)(timeout * 1000)) < 1)
  /external/ltp/testcases/kernel/syscalls/pread/
pread02.c 86 int pfd[2]; /* pair of file descriptors */ variable
135 fildes = pfd[0];
215 SAFE_PIPE(cleanup, pfd);
218 if (write(pfd[1], write_buf[0], K1) != K1) {
  /external/skia/tools/sk_app/win/
GLWindowContext_win.cpp 85 PIXELFORMATDESCRIPTOR pfd; local
86 DescribePixelFormat(dc, pixelFormat, sizeof(pfd), &pfd);
87 fStencilBits = pfd.cStencilBits;
  /external/skqp/tools/sk_app/win/
GLWindowContext_win.cpp 85 PIXELFORMATDESCRIPTOR pfd; local
86 DescribePixelFormat(dc, pixelFormat, sizeof(pfd), &pfd);
87 fStencilBits = pfd.cStencilBits;
  /frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DownloadManagerTestApp.java 188 ParcelFileDescriptor pfd = null; local
200 pfd = mDownloadManager.openDownloadedFile(dlRequest);
201 verifyFileSize(pfd, filesize);
209 if (pfd != null) {
210 pfd.close();
239 ParcelFileDescriptor pfd = null; local
243 pfd = mDownloadManager.openDownloadedFile(dlRequest);
244 verifyFileSize(pfd, filesize);
246 if (pfd != null) {
247 pfd.close()
321 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local
389 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local
460 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local
    [all...]

Completed in 1412 milliseconds

12 3 4 5 6 7 8 91011>>