Home
last modified time | relevance | path

Searched refs:ufd (Results 1 – 9 of 9) sorted by relevance

/system/libbase/tidy/
Dunique_fd_test.cpp27 android::base::unique_fd ufd(open("/dev/null", O_RDONLY | O_CLOEXEC)); in TEST() local
28 consume_unique_fd(std::move(ufd)); in TEST()
29 ufd.reset(open("/dev/null", O_RDONLY | O_CLOEXEC)); in TEST()
30 ufd.get(); in TEST()
31 consume_unique_fd(std::move(ufd)); in TEST()
/system/core/init/
Duevent_listener.cpp187 pollfd ufd; in Poll() local
188 ufd.events = POLLIN; in Poll()
189 ufd.fd = device_fd_; in Poll()
194 ufd.revents = 0; in Poll()
206 int nr = poll(&ufd, 1, timeout_ms); in Poll()
212 if (ufd.revents & POLLIN) { in Poll()
Dsubcontext.cpp120 pollfd ufd[1]; in MainLoop() local
121 ufd[0].events = POLLIN; in MainLoop()
122 ufd[0].fd = init_fd_; in MainLoop()
125 ufd[0].revents = 0; in MainLoop()
126 int nr = TEMP_FAILURE_RETRY(poll(ufd, arraysize(ufd), -1)); in MainLoop()
/system/libbase/include/android-base/
Dunique_fd.h240 inline FILE* Fdopen(unique_fd&& ufd, const char* mode) { in Fdopen() argument
241 int fd = ufd.release(); in Fdopen()
251 inline DIR* Fdopendir(unique_fd&& ufd) { in Fdopendir() argument
252 int fd = ufd.release(); in Fdopendir()
266 /* implicit */ borrowed_fd(const unique_fd_impl<T>& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd()
/system/update_engine/stable/
Dupdate_engine_stable_client.cc127 ndk::ScopedFileDescriptor ufd( in Run() local
129 if (ufd.get() < 0) { in Run()
133 status = service_->applyPayloadFd(ufd, FLAGS_offset, FLAGS_size, headers); in Run()
/system/netd/server/
DOffloadUtils.cpp42 base::unique_fd ufd(socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in doSIOCGIF() local
44 if (ufd < 0) { in doSIOCGIF()
59 if (ioctl(ufd, opt, &ifr, sizeof(ifr))) return -errno; in doSIOCGIF()
/system/bt/btif/src/
Dbtif_pan.cc651 struct pollfd ufd; in btu_exec_tap_fd_read() local
719 ufd.fd = fd; in btu_exec_tap_fd_read()
720 ufd.events = POLLIN; in btu_exec_tap_fd_read()
721 ufd.revents = 0; in btu_exec_tap_fd_read()
724 OSI_NO_INTR(ret = poll(&ufd, 1, 0)); in btu_exec_tap_fd_read()
725 if (ret <= 0 || IS_EXCEPTION(ufd.revents)) break; in btu_exec_tap_fd_read()
/system/netd/client/
DNetdClient.cpp574 unique_fd ufd(fd); in resNetworkResult() local
619 unique_fd ufd(fd); in getNetworkForDns() local
/system/vold/
DUtils.cpp689 android::base::unique_fd ufd) { in ReadLinesFromFdAndLog() argument
690 std::unique_ptr<FILE, int (*)(FILE*)> fp(android::base::Fdopen(std::move(ufd), "r"), fclose); in ReadLinesFromFdAndLog()