Home
last modified time | relevance | path

Searched refs:epoll_fd_ (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/vr/libpdx/
Dservice_dispatcher.cpp18 if (!dispatcher->epoll_fd_ || !dispatcher->event_fd_) { in Create()
32 epoll_fd_.Reset(epoll_create1(EPOLL_CLOEXEC)); in ServiceDispatcher()
33 if (!epoll_fd_) { in ServiceDispatcher()
44 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, event_fd_.Get(), &event) < 0) { in ServiceDispatcher()
49 epoll_fd_.Close(); in ServiceDispatcher()
78 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, service->endpoint()->epoll_fd(), in AddService()
96 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_DEL, service->endpoint()->epoll_fd(), in RemoveService()
117 int count = epoll_wait(epoll_fd_.Get(), events, kMaxEventsPerLoop, timeout); in ReceiveAndDispatch()
150 int count = epoll_wait(epoll_fd_.Get(), events, kMaxEventsPerLoop, -1); in EnterDispatchLoop()
/frameworks/native/libs/vr/libvrflinger/
Depoll_event_dispatcher.cpp14 epoll_fd_.Reset(epoll_create1(EPOLL_CLOEXEC)); in EpollEventDispatcher()
15 if (!epoll_fd_) { in EpollEventDispatcher()
30 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, event_fd_.Get(), &event) < 0) { in EpollEventDispatcher()
58 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, fd, &event) < 0) { in AddEventHandler()
72 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_DEL, fd, &ee) < 0) { in RemoveEventHandler()
100 const int num_events = epoll_wait(epoll_fd_.Get(), events, kMaxNumEvents, -1); in EventThread()
Depoll_event_dispatcher.h56 pdx::LocalHandle epoll_fd_; variable
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dchannel_event_set.h48 !!epoll_fd_;
51 BorrowedHandle event_fd() const { return epoll_fd_.Borrow(); } in event_fd()
60 epoll_fd_.Close(); in TakeFds()
74 LocalHandle epoll_fd_; variable
Dservice_endpoint.h108 int epoll_fd() const override { return epoll_fd_.Get(); } in epoll_fd()
153 LocalHandle epoll_fd_; variable
/frameworks/native/libs/adbd_auth/
Dadbd_auth.cpp84 epoll_fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in AdbdAuthContext()
85 if (epoll_fd_ == -1) { in AdbdAuthContext()
153 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_MOD, framework_fd_.get(), &event)); in UpdateFrameworkWritable()
165 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_DEL, framework_fd_.get(), nullptr)); in ReplaceFrameworkFd()
177 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, new_fd.get(), &event)); in ReplaceFrameworkFd()
303 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, sock_fd_.get(), &event)); in Run()
310 CHECK_EQ(0, epoll_ctl(epoll_fd_.get(), EPOLL_CTL_ADD, event_fd_.get(), &event)); in Run()
315 int rc = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_.get(), events, 3, -1)); in Run()
496 unique_fd epoll_fd_; member
/frameworks/native/libs/vr/libpdx_uds/
Dservice_endpoint.cpp182 epoll_fd_.Reset(epoll_create1(EPOLL_CLOEXEC)); in Init()
183 CHECK(epoll_fd_.IsValid()) in Init()
190 int ret = epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, socket_fd.Get(), in Init()
201 int ret = epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, cancel_event_fd_.Get(), in Init()
286 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, channel_fd.Get(), &event) < 0) { in OnNewChannelLocked()
313 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_MOD, fd.Get(), &event) < 0) { in ReenableEpollEvent()
338 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_DEL, channel_fd, &ee) < 0) { in CloseChannelLocked()
585 epoll_wait(epoll_fd_.Get(), &event, 1, is_blocking_ ? -1 : 0)); in MessageReceive()
Dchannel_event_set.cpp113 epoll_fd_ = std::move(epoll_fd); in ChannelEventReceiver()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dservice_dispatcher.h98 LocalHandle epoll_fd_; variable
/frameworks/native/libs/vr/libbufferhubqueue/benchmarks/
Dbuffer_transport_benchmark.cpp248 int ret = epoll_fd_.Create(); in Start()
269 const int ret = epoll_fd_.Wait(events.data(), events.size(), in Start()
309 const int ret = epoll_fd_.Control(EPOLL_CTL_ADD, queue_fd, &event); in CreateSurface()
406 dvr::EpollFileDescriptor epoll_fd_; member in BufferHubTransport
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_client.cpp60 int ret = epoll_fd_.Create(); in Initialize()
70 ret = epoll_fd_.Control(EPOLL_CTL_ADD, event_fd(), &event); in Initialize()
158 const int ret = epoll_fd_.Wait(events.data(), events.size(), in WaitForBuffers()
300 epoll_fd_.Control(EPOLL_CTL_ADD, event_source.event_fd, &event); in AddBuffer()
319 epoll_fd_.Control(EPOLL_CTL_DEL, event_source.event_fd, nullptr); in RemoveBuffer()
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h112 int queue_fd() const { return epoll_fd_.Get(); } in queue_fd()
268 EpollFileDescriptor epoll_fd_; variable