Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 25 of 188) sorted by relevance

12345678

/aosp12/packages/modules/adb/
H A Dsysdeps_test.cpp97 pfd[0].fd = fds[0]; in TEST_F()
99 pfd[1].fd = fds[1]; in TEST_F()
102 pfd[0].revents = -1; in TEST_F()
103 pfd[1].revents = -1; in TEST_F()
123 pfd.fd = fds[0]; in TEST_F()
137 pfd[0].fd = fds[0]; in TEST_F()
143 pfd[2].fd = fds[1]; in TEST_F()
159 pfd[0].fd = fds[0]; in TEST_F()
172 pfd[0].fd = fds[0]; in TEST_F()
174 pfd[1] = pfd[0]; in TEST_F()
[all …]
/aosp12/hardware/qcom/audio/hal/audio_extn/
H A Dsndmonitor.c464 if (!pfd) in monitor_thread_loop()
468 pfd[0].events = POLLPRI|POLLIN; in monitor_thread_loop()
474 pfd[i].fd = s->fd; in monitor_thread_loop()
475 pfd[i].events = POLLPRI; in monitor_thread_loop()
481 pfd[i].fd = d->fd; in monitor_thread_loop()
482 pfd[i].events = POLLPRI; in monitor_thread_loop()
508 if (READY_TO_READ(&pfd[0])) { in monitor_thread_loop()
510 read(pfd[0].fd, buf, 1); in monitor_thread_loop()
520 pfd[0].fd *= -1; in monitor_thread_loop()
535 pfd[i].fd *= -1; in monitor_thread_loop()
[all …]
/aosp12/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/
H A DUnionWithFd.java9 public final static int pfd = 1; // ParcelFileDescriptor pfd; field in UnionWithFd
50 public static UnionWithFd pfd(android.os.ParcelFileDescriptor _value) { in pfd() method in UnionWithFd
51 return new UnionWithFd(pfd, _value); in pfd()
55 _assertTag(pfd); in getPfd()
60 _set(pfd, _value); in setPfd()
81 case pfd: in writeToParcel()
102 case pfd: { in readFromParcel()
120 case pfd: in describeContents()
143 case pfd: return "pfd"; in _tagString()
/aosp12/hardware/qcom/display/msm8994/libhwcomposer/
H A Dhwc_vsync.cpp123 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
144 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
146 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
159 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
160 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
161 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
167 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop()
171 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
172 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
209 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/aosp12/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_vsync.cpp114 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
140 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
142 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
155 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
156 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
157 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
163 int err = poll(*pfd, num_displays * num_events, -1); in vsync_loop()
167 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
168 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
205 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/aosp12/hardware/qcom/display/msm8226/libhwcomposer/
H A Dhwc_vsync.cpp104 struct pollfd pfd[num_displays][num_events]; in vsync_loop() local
128 pfd[dpy][ev].fd = open(node_path, O_RDONLY); in vsync_loop()
130 if (dpy == HWC_DISPLAY_PRIMARY && pfd[dpy][ev].fd < 0) { in vsync_loop()
143 pread(pfd[dpy][ev].fd, vdata , MAX_DATA, 0); in vsync_loop()
144 if (pfd[dpy][ev].fd >= 0) in vsync_loop()
145 pfd[dpy][ev].events = POLLPRI | POLLERR; in vsync_loop()
151 int err = poll(*pfd, (int)(num_displays * num_events), -1); in vsync_loop()
155 if (pfd[dpy][ev].revents & POLLPRI) { in vsync_loop()
156 ssize_t len = pread(pfd[dpy][ev].fd, vdata, MAX_DATA, 0); in vsync_loop()
206 if(pfd[dpy][event].fd >= 0) in vsync_loop()
[all …]
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
H A Dinv_gesture_test.c107 struct pollfd pfd[NUM_DMP_FEATS]; variable
591 pfd[i].fd = -1; in init_fds()
594 pfd[i].events = POLLPRI|POLLERR, in init_fds()
595 pfd[i].revents = 0; in init_fds()
601 void parse_events(struct pollfd pfd[], int num_fds) in parse_events() argument
606 if(pfd[i].revents != 0) { in parse_events()
654 if (!pfd[i].fd) in close_fds()
655 close(pfd[i].fd); in close_fds()
702 read(pfd[i].fd, data, 4); in main()
703 poll(pfd, NUM_DMP_FEATS, POLL_TIME); in main()
[all …]
/aosp12/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerTestApp.java188 ParcelFileDescriptor pfd = null; in verifyFileDownloadSucceeded() local
201 verifyFileSize(pfd, filesize); in verifyFileDownloadSucceeded()
209 if (pfd != null) { in verifyFileDownloadSucceeded()
210 pfd.close(); in verifyFileDownloadSucceeded()
239 ParcelFileDescriptor pfd = null; in runLargeDownloadOverWiFi() local
244 verifyFileSize(pfd, filesize); in runLargeDownloadOverWiFi()
246 if (pfd != null) { in runLargeDownloadOverWiFi()
247 pfd.close(); in runLargeDownloadOverWiFi()
322 verifyFileSize(pfd, filesize); in runDownloadMultipleSwitching()
390 verifyFileSize(pfd, filesize); in runDownloadMultipleWiFiEnableDisable()
[all …]
/aosp12/packages/modules/adb/fdevent/
H A Dfdevent_poll.cpp117 adb_pollfd pfd; in Loop() local
118 pfd.fd = fd; in Loop()
119 pfd.events = 0; in Loop()
121 pfd.events |= POLLIN; in Loop()
124 pfd.events |= POLLOUT; in Loop()
127 pfd.events |= POLLERR; in Loop()
130 pfd.events |= POLLRDHUP; in Loop()
132 pfd.revents = 0; in Loop()
133 pollfds.push_back(pfd); in Loop()
/aosp12/hardware/google/pixel/power-libperfmgr/disp-power/
H A DInteractionHandler.cpp219 struct pollfd pfd[2]; in WaitForIdle() local
225 pfd[0].fd = mEventFd; in WaitForIdle()
226 pfd[0].events = POLLIN; in WaitForIdle()
227 pfd[1].fd = mIdleFd; in WaitForIdle()
228 pfd[1].events = POLLPRI | POLLERR; in WaitForIdle()
230 ret = poll(pfd, 1, wait_ms); in WaitForIdle()
250 ret = poll(pfd, 2, timeout_ms); in WaitForIdle()
255 else if (pfd[0].revents) in WaitForIdle()
257 else if (pfd[1].revents) in WaitForIdle()
/aosp12/system/bt/udrv/ulinux/
H A Duipc.cc137 struct pollfd pfd; in accept_server_socket() local
144 pfd.fd = sfd; in accept_server_socket()
145 pfd.events = POLLIN; in accept_server_socket()
335 struct pollfd pfd; in uipc_flush_ch_locked() local
337 pfd.events = POLLIN; in uipc_flush_ch_locked()
338 pfd.fd = uipc.ch[ch_id].fd; in uipc_flush_ch_locked()
347 OSI_NO_INTR(ret = poll(&pfd, 1, 1)); in uipc_flush_ch_locked()
360 pfd.fd, pfd.revents, ret); in uipc_flush_ch_locked()
631 struct pollfd pfd; in UIPC_Read() local
639 pfd.fd = fd; in UIPC_Read()
[all …]
/aosp12/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/
H A DUnionWithFd.cpp26 case pfd: { in readFromParcel()
30 set<pfd>(_aidl_value); in readFromParcel()
33 set<pfd>(std::move(_aidl_value)); in readFromParcel()
44 case pfd: return ::ndk::AParcel_writeRequiredParcelFileDescriptor(_parcel, get<pfd>()); in writeToParcel()
/aosp12/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/android/aidl/tests/
H A DUnionWithFd.cpp24 case pfd: { in readFromParcel()
28 set<pfd>(_aidl_value); in readFromParcel()
31 set<pfd>(std::move(_aidl_value)); in readFromParcel()
43 case pfd: return _aidl_parcel->writeParcelable(get<pfd>()); in writeToParcel()
/aosp12/hardware/qcom/wlan/cld80211-lib/
H A Dcld80211_lib.c399 struct pollfd pfd[2]; in cld80211_recv() local
412 memset(&pfd[0], 0, 2*sizeof(struct pollfd)); in cld80211_recv()
422 pfd[0].fd = nl_socket_get_fd(ctx->sock); in cld80211_recv()
423 pfd[0].events = POLLIN; in cld80211_recv()
425 pfd[1].fd = ctx->exit_sockets[1]; in cld80211_recv()
426 pfd[1].events = POLLIN; in cld80211_recv()
429 pfd[0].revents = 0; in cld80211_recv()
430 pfd[1].revents = 0; in cld80211_recv()
431 int result = poll(pfd, 2, timeout); in cld80211_recv()
434 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv()
[all …]
/aosp12/system/bt/btif/src/
H A Dbtif_sock_thread.cc81 struct pollfd pfd; member
341 ts[h].ps[i].pfd.fd = -1; in init_poll()
356 ps->pfd.fd = fd; in set_poll()
364 ps->pfd.events = flags2pevents(flags); in set_poll()
365 ps->pfd.revents = 0; in set_poll()
375 if (ps[i].pfd.fd == fd) { in add_poll()
396 ps->pfd.fd = -1; in remove_poll()
401 ps->pfd.events = flags2pevents(ps->flags); in remove_poll()
422 if (poll_slot->pfd.fd == cmd.fd) { in process_cmd_sock()
487 if (ts[h].ps[ps_i].pfd.fd >= 0) { in prepare_poll_fds()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/os/
H A DNativeTombstoneManager.java146 ParcelFileDescriptor pfd; in handleProtoTombstone() local
148 pfd = ParcelFileDescriptor.open(path, MODE_READ_WRITE); in handleProtoTombstone()
154 final Optional<TombstoneFile> parsedTombstone = TombstoneFile.parse(pfd); in handleProtoTombstone()
156 IoUtils.closeQuietly(pfd); in handleProtoTombstone()
326 TombstoneFile(ParcelFileDescriptor pfd) { in TombstoneFile() argument
327 mPfd = pfd; in TombstoneFile()
389 static Optional<TombstoneFile> parse(ParcelFileDescriptor pfd) { in parse() argument
390 final FileInputStream is = new FileInputStream(pfd.getFileDescriptor()); in parse()
457 StructStat stat = Os.fstat(pfd.getFileDescriptor()); in parse()
471 TombstoneFile result = new TombstoneFile(pfd); in parse()
[all …]
/aosp12/frameworks/base/core/java/android/hardware/
H A DSerialPort.java56 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { in open() argument
57 native_open(pfd.getFileDescriptor(), speed); in open()
58 mFileDescriptor = pfd; in open()
126 private native void native_open(FileDescriptor pfd, int speed) throws IOException; in native_open() argument
H A DSerialManager.java74 ParcelFileDescriptor pfd = mService.openSerialPort(name); in openSerialPort() local
75 if (pfd != null) { in openSerialPort()
77 port.open(pfd, speed); in openSerialPort()
/aosp12/frameworks/base/core/java/android/util/
H A DMemoryIntArray.java83 ParcelFileDescriptor pfd = parcel.readParcelable(null); in MemoryIntArray() local
84 if (pfd == null) { in MemoryIntArray()
87 mFd = pfd.detachFd(); in MemoryIntArray()
180 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.fromFd(mFd)) { in writeToParcel() argument
181 parcel.writeParcelable(pfd, flags); in writeToParcel()
/aosp12/frameworks/base/core/java/android/os/
H A DShellCommand.java65 ParcelFileDescriptor pfd = getShellCallback().openFile(path, in openFileForSystem() local
67 if (pfd != null) { in openFileForSystem()
68 if (DEBUG) Slog.d(TAG, "Got file: " + pfd); in openFileForSystem()
69 return pfd; in openFileForSystem()
/aosp12/packages/apps/Gallery/src/com/android/camera/
H A DUtil.java294 ParcelFileDescriptor pfd, boolean useNative) { in makeBitmap() argument
299 return makeBitmap(minSideLength, maxNumOfPixels, null, null, pfd, in makeBitmap()
304 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, in makeBitmap() argument
307 if (pfd == null) pfd = makeInputStream(uri, cr); in makeBitmap()
308 if (pfd == null) return null; in makeBitmap()
311 FileDescriptor fd = pfd.getFileDescriptor(); in makeBitmap()
329 closeSilently(pfd); in makeBitmap()
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
H A Dstress_iio.c301 struct pollfd pfd[ARRAY_SIZE(event_file)]; in get_dmp_event() local
307 pfd[i].fd = open(file_name, O_RDONLY | O_NONBLOCK); in get_dmp_event()
308 pfd[i].events = POLLPRI|POLLERR; in get_dmp_event()
309 pfd[i].revents = 0; in get_dmp_event()
310 read(pfd[i].fd, d, 4); in get_dmp_event()
313 poll(pfd, ARRAY_SIZE(event_file), -1); in get_dmp_event()
315 close(pfd[i].fd); in get_dmp_event()
318 for (i=0; i< ARRAY_SIZE(pfd); i++) { in get_dmp_event()
319 if(pfd[i].revents != 0) { in get_dmp_event()
761 struct pollfd pfd = { in read_data() local
[all …]
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DNetworkWatchlistTest.java151 private void consumeFile(ParcelFileDescriptor pfd) throws IOException { in consumeFile() argument
152 try (InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in consumeFile()
161 private void pipeResourceToFileDescriptor(String res, ParcelFileDescriptor pfd) in pipeResourceToFileDescriptor() argument
164 FileOutputStream fdStream = new ParcelFileDescriptor.AutoCloseOutputStream(pfd)) { in pipeResourceToFileDescriptor()
/aosp12/frameworks/base/tools/incident_report/
H A Dmain.cpp369 int pfd[2]; in main() local
370 if (pipe(pfd) != 0) { in main()
381 dup2(pfd[1], STDOUT_FILENO); in main()
382 close(pfd[0]); in main()
383 close(pfd[1]); in main()
411 inFd = pfd[0]; in main()
412 close(pfd[1]); in main()
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DNetwork.java385 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket); in bindSocket() local
386 bindSocket(pfd.getFileDescriptor()); in bindSocket()
391 pfd.close(); in bindSocket()
403 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in bindSocket() local
404 bindSocket(pfd.getFileDescriptor()); in bindSocket()
409 pfd.close(); in bindSocket()

12345678