Searched refs:events (Results 1 - 25 of 75) sorted by relevance

123

/system/core/libappfuse/
H A DEpollController.cc38 bool EpollController::AddFd(int fd, int events, void* data) { argument
39 return InvokeControl(EPOLL_CTL_ADD, fd, events, data);
42 bool EpollController::UpdateFd(int fd, int events, void* data) { argument
43 return InvokeControl(EPOLL_CTL_MOD, fd, events, data);
47 return InvokeControl(EPOLL_CTL_DEL, fd, /* events */ 0, nullptr);
50 const std::vector<epoll_event>& EpollController::events() const { function in class:android::fuse::EpollController
54 bool EpollController::InvokeControl(int op, int fd, int events, void* data) const { argument
57 event.events = events;
H A DFuseBridgeLoop.cc37 int events; member in struct:android::fuse::__anon1530::FuseBridgeEntryEvent
83 const bool unexpected_event = (last_device_events_.events & kUnexpectedEventMask) ||
84 (last_proxy_events_.events & kUnexpectedEventMask);
85 const bool device_read_ready = last_device_events_.events & EPOLLIN;
86 const bool proxy_read_ready = last_proxy_events_.events & EPOLLIN;
87 const bool proxy_write_ready = last_proxy_events_.events & EPOLLOUT;
89 last_device_events_.events = 0;
90 last_proxy_events_.events = 0;
279 for (const auto& event : events()) {
282 entry_event->events
[all...]
/system/core/adb/
H A Dfdevent.h25 /* events that may be observed */
30 /* features that may be set (via the events set/add/del interface) */
33 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
43 uint16_t events; member in struct:fdevent
69 /* Change which events should cause notifications
71 void fdevent_set(fdevent *fde, unsigned events);
72 void fdevent_add(fdevent *fde, unsigned events);
73 void fdevent_del(fdevent *fde, unsigned events);
77 /* loop forever, handling events.
H A Dfdevent.cpp69 pollfd.events = POLLRDHUP;
174 fde->events = 0;
178 static void fdevent_update(fdevent* fde, unsigned events) { argument
182 if (events & FDE_READ) {
183 node.pollfd.events |= POLLIN;
185 node.pollfd.events &= ~POLLIN;
188 if (events & FDE_WRITE) {
189 node.pollfd.events |= POLLOUT;
191 node.pollfd.events &= ~POLLOUT;
193 fde->state = (fde->state & FDE_STATEMASK) | events;
196 fdevent_set(fdevent* fde, unsigned events) argument
216 fdevent_add(fdevent* fde, unsigned events) argument
221 fdevent_del(fdevent* fde, unsigned events) argument
257 unsigned events = 0; local
288 unsigned events = fde->events; local
[all...]
H A Dsysdeps_test.cpp83 pfd[0].events = POLLRDNORM;
85 pfd[1].events = POLLWRNORM;
109 pfd.events = POLLRDNORM;
123 pfd[0].events = POLLRDNORM;
125 pfd[1].events = POLLRDNORM;
127 pfd[2].events = POLLWRNORM;
144 pfd[0].events = POLLRDNORM;
161 pfd.events = POLLIN;
185 pfd.events = POLLIN;
H A Dfdevent_test.cpp44 static void FdEventCallback(int fd, unsigned events, void* userdata) { argument
46 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events;
47 if (events & FDE_READ) {
54 if (events & FDE_WRITE) {
145 static void InvalidFdEventCallback(int fd, unsigned events, void* userdata) { argument
147 ASSERT_EQ(arg->expected_events, events);
H A Dadbd_auth.cpp112 static void adbd_auth_event(int fd, unsigned events, void*) { argument
113 if (events & FDE_READ) {
157 static void adbd_auth_listener(int fd, unsigned events, void* data) { argument
/system/core/libappfuse/include/libappfuse/
H A DEpollController.h34 bool AddFd(int fd, int events, void* data);
35 bool UpdateFd(int fd, int events, void* data);
38 const std::vector<epoll_event>& events() const;
41 bool InvokeControl(int op, int fd, int events, void* data) const;
/system/bt/osi/src/
H A Dreactor.cc53 int fd; // the file descriptor to monitor for events.
99 event.events = EPOLLIN;
157 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP);
158 if (write_ready) event.events |= EPOLLOUT;
179 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP);
180 if (write_ready) event.events |= EPOLLOUT;
240 struct epoll_event events[MAX_EVENTS]; local
248 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1));
260 if (events[j].data.ptr == NULL) {
267 reactor_object_t* object = (reactor_object_t*)events[
[all...]
/system/core/include/utils/
H A DLooper.h39 * a bitmask of the poll events that were triggered (typically EVENT_INPUT),
45 typedef int (*Looper_callbackFunc)(int fd, int events, void* data);
106 * a bitmask of the poll events that were triggered (typically EVENT_INPUT),
112 virtual int handleEvent(int fd, int events, void* data) = 0;
124 virtual int handleEvent(int fd, int events, void* data);
131 * A polling loop that supports monitoring file descriptor events, optionally
169 * Flags for file descriptor events that a looper can monitor.
171 * These flag bits can be combined to monitor multiple events at once.
227 * pollOnce() is prepared to handle callback-less events itself.
238 * Waits for events t
423 int events; member in struct:android::Looper::Request
432 int events; member in struct:android::Looper::Response
[all...]
/system/core/libutils/include/utils/
H A DLooper.h39 * a bitmask of the poll events that were triggered (typically EVENT_INPUT),
45 typedef int (*Looper_callbackFunc)(int fd, int events, void* data);
106 * a bitmask of the poll events that were triggered (typically EVENT_INPUT),
112 virtual int handleEvent(int fd, int events, void* data) = 0;
124 virtual int handleEvent(int fd, int events, void* data);
131 * A polling loop that supports monitoring file descriptor events, optionally
169 * Flags for file descriptor events that a looper can monitor.
171 * These flag bits can be combined to monitor multiple events at once.
227 * pollOnce() is prepared to handle callback-less events itself.
238 * Waits for events t
423 int events; member in struct:android::Looper::Request
432 int events; member in struct:android::Looper::Response
[all...]
/system/bt/stack/rfcomm/
H A Dport_rfc.cc147 uint32_t events = 0; local
157 events |= port_get_signal_changes(p_port, old_signals,
160 if (p_port->ev_mask & PORT_EV_CONNECT_ERR) events |= PORT_EV_CONNECT_ERR;
162 if (p_port->ev_mask & PORT_EV_ERR) events |= PORT_EV_ERR;
164 if ((p_port->p_callback != NULL) && events)
165 p_port->p_callback(events, p_port->inx);
612 /* execute call back function only if the application is registered for events
652 /* execute call back function only if the application is registered for events
759 uint32_t events = 0; local
807 events |
849 uint32_t events = 0; local
898 uint32_t events = 0; local
950 uint32_t events = 0; local
[all...]
H A Dport_utils.cc381 * events to be send to the user based on the user's specified
422 uint32_t events = 0; local
425 events |= PORT_EV_DSR;
427 if (signal & PORT_DTRDSR_ON) events |= PORT_EV_DSRS;
431 events |= PORT_EV_CTS;
433 if (signal & PORT_CTSRTS_ON) events |= PORT_EV_CTSS;
436 if (changed_signals & PORT_RING_ON) events |= PORT_EV_RING;
439 events |= PORT_EV_RLSD;
441 if (signal & PORT_DCD_ON) events |= PORT_EV_RLSDS;
444 return (p_port->ev_mask & events);
[all...]
H A Dport_api.cc99 * mask - specifies events to be enabled. A value
100 * of zero disables all events.
103 * connection up/down events.
294 /* Do not report any events to the client any more. */
316 * function which will be called when one of the events
446 * mask - Bitmask of the events the host is interested in
779 uint32_t events; local
813 /* Need to take care of the case when we could not deliver events */
816 events = PORT_EV_RXCHAR;
819 events |
846 uint32_t events; local
1067 uint32_t events; local
[all...]
/system/core/bootstat/
H A Dboot_event_record_store_test.cpp144 auto events = store.GetAllBootEvents(); local
145 ASSERT_EQ(1U, events.size());
146 EXPECT_EQ("cenozoic", events[0].first);
147 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second));
167 auto events = store.GetAllBootEvents(); local
168 ASSERT_EQ(3U, events.size());
172 for (auto i = events.begin(); i != events.end(); ++i) {
190 auto events = store.GetAllBootEvents(); local
191 ASSERT_EQ(1U, events
[all...]
H A Dboot_event_record_store.cpp117 std::vector<BootEventRecord> events; local
139 events.push_back(record);
142 return events;
H A Dbootstat.cpp17 // The bootstat command provides options to persist boot events with the current
18 // timestamp, dump the persisted events, and log all events to EventLog to be
51 auto events = boot_event_store.GetAllBootEvents(); local
52 for (auto i = events.cbegin(); i != events.cend(); ++i) {
74 printf("Boot events:\n");
78 auto events = boot_event_store.GetAllBootEvents(); local
79 for (auto i = events.cbegin(); i != events
[all...]
/system/core/libutils/
H A DLooper.cpp47 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) { argument
48 return mCallback(fd, events, data);
57 // Maximum number of file descriptors for which to retrieve poll events each iteration.
149 eventItem.events = EPOLLIN;
162 ALOGE("Error adding epoll events for fd %d while rebuilding epoll set: %s",
186 int events = response.events;
190 "fd=%d, events=0x%x, data=%p",
191 this, ident, fd, events, data);
194 if (outEvents != NULL) *outEvents = events;
[all...]
/system/core/logd/
H A DLogAudit.h33 bool events; member in class:LogAudit
/system/core/healthd/
H A Dhealthd_common.cpp94 ev.events = EPOLLIN;
97 ev.events |= EPOLLWAKEUP;
206 "register for uevent events failed\n");
237 struct epoll_event events[eventct]; local
250 nevents = epoll_wait(epollfd, events, eventct, timeout);
259 if (events[n].data.ptr)
260 (*(void (*)(int))events[n].data.ptr)(events[n].events);
/system/core/lmkd/
H A Dlmkd.c71 /* default to old in-kernel interface if no memory pressure events */
431 static void ctrl_data_handler(uint32_t events) { argument
432 if (events & EPOLLHUP) {
436 } else if (events & EPOLLIN) {
441 static void ctrl_connect_handler(uint32_t events __unused) {
458 epev.events = EPOLLIN;
729 static void mp_event(uint32_t events __unused) {
733 static void mp_event_critical(uint32_t events __unused) {
778 epev.events = EPOLLIN;
837 epev.events
867 struct epoll_event events[maxevents]; local
[all...]
/system/core/libutils/tests/
H A DLooper_test.cpp56 void setCallback(const sp<Looper>& looper, int fd, int events) { argument
57 looper->addFd(fd, 0, events, staticHandler, this);
63 virtual int handler(int fd, int events) = 0;
66 static int staticHandler(int fd, int events, void* data) { argument
67 return static_cast<CallbackHandler*>(data)->handler(fd, events);
77 int events; member in class:android::StubCallbackHandler
80 callbackCount(0), fd(-1), events(-1) {
84 virtual int handler(int fd, int events) { argument
87 this->events = events;
346 int events; local
[all...]
/system/extras/simpleperf/
H A DIOEventLoop.h30 // IOEventLoop is a class wrapper of libevent, it monitors events happened,
31 // and calls the corresponding callbacks. Possible events are: file ready to
77 IOEventRef AddEvent(int fd_or_sig, short events, timeval* timeout,
H A Drecord_lib_test.cpp26 std::vector<std::string> events = GetAllEvents(); local
27 ASSERT_GT(events.size(), 0u);
28 ASSERT_NE(std::find(events.begin(), events.end(), "cpu-cycles"), events.end());
/system/vold/bench/
H A Dbenchgen.py56 events = [] variable
125 events.append(Event(thread, time, call, args, ret))
175 events = sorted(events, key=lambda e: e.time) variable
178 for e in events:
335 for e in events:

Completed in 1102 milliseconds

123