Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/vr/libpdx_uds/
Dchannel_event_set.cpp74 LocalHandle epoll_fd; in ChannelEventReceiver() local
75 if (!SetupHandle(epoll_create1(EPOLL_CLOEXEC), &epoll_fd, "epoll")) { in ChannelEventReceiver()
82 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, data_fd.Get(), &event) < 0) { in ChannelEventReceiver()
91 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, pollin_event_fd.Get(), &event) < in ChannelEventReceiver()
101 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, pollhup_event_fd.Get(), &event) < in ChannelEventReceiver()
113 epoll_fd_ = std::move(epoll_fd); in ChannelEventReceiver()
/frameworks/native/libs/vr/libpdx/
Dservice_dispatcher.cpp78 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()
133 service->endpoint()->epoll_fd()); in ReceiveAndDispatch()
165 service->endpoint()->epoll_fd()); in EnterDispatchLoop()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp114 LocalHandle epoll_fd{epoll_create1(EPOLL_CLOEXEC)}; in TEST_F() local
115 ASSERT_TRUE(epoll_fd.IsValid()); in TEST_F()
126 ASSERT_EQ(0, epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, event_source.event_fd, in TEST_F()
136 ASSERT_EQ(0, epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, event_source.event_fd, in TEST_F()
141 ASSERT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), 0)); in TEST_F()
146 ASSERT_EQ(1, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
155 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
157 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
159 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
161 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dmock_service_endpoint.h69 MOCK_CONST_METHOD0(epoll_fd, int());
Dservice_endpoint.h142 virtual int epoll_fd() const = 0;
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dservice_endpoint.h108 int epoll_fd() const override { return epoll_fd_.Get(); } in epoll_fd() function
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp1442 int epoll_fd; in run_server() local
1449 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in run_server()
1450 if (epoll_fd == -1) { in run_server()
1455 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in run_server()
1469 int numEvents = epoll_wait(epoll_fd, events, 1, 1000); in run_server()