Searched refs:events (Results 1 - 25 of 70) 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::__anon1509::FuseBridgeEntryEvent
77 const bool unexpected_event = (last_device_events_.events & kUnexpectedEventMask) ||
78 (last_proxy_events_.events & kUnexpectedEventMask);
79 const bool device_read_ready = last_device_events_.events & EPOLLIN;
80 const bool proxy_read_ready = last_proxy_events_.events & EPOLLIN;
81 const bool proxy_write_ready = last_proxy_events_.events & EPOLLOUT;
83 last_device_events_.events = 0;
84 last_proxy_events_.events = 0;
262 for (const auto& event : events()) {
265 entry_event->events
[all...]
/system/core/adb/
H A Dfdevent.h23 /* events that may be observed */
28 /* features that may be set (via the events set/add/del interface) */
31 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
41 uint16_t events; member in struct:fdevent
67 /* Change which events should cause notifications
69 void fdevent_set(fdevent *fde, unsigned events);
70 void fdevent_add(fdevent *fde, unsigned events);
71 void fdevent_del(fdevent *fde, unsigned events);
75 /* loop forever, handling events.
H A Dfdevent.cpp65 pollfd.events = POLLRDHUP;
168 fde->events = 0;
172 static void fdevent_update(fdevent* fde, unsigned events) { argument
176 if (events & FDE_READ) {
177 node.pollfd.events |= POLLIN;
179 node.pollfd.events &= ~POLLIN;
182 if (events & FDE_WRITE) {
183 node.pollfd.events |= POLLOUT;
185 node.pollfd.events &= ~POLLOUT;
187 fde->state = (fde->state & FDE_STATEMASK) | events;
190 fdevent_set(fdevent* fde, unsigned events) argument
210 fdevent_add(fdevent* fde, unsigned events) argument
215 fdevent_del(fdevent* fde, unsigned events) argument
251 unsigned events = 0; local
283 unsigned events = fde->events; local
[all...]
H A Dfdevent_test.cpp43 static void FdEventCallback(int fd, unsigned events, void* userdata) { argument
45 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events;
46 if (events & FDE_READ) {
53 if (events & FDE_WRITE) {
146 static void InvalidFdEventCallback(int fd, unsigned events, void* userdata) { argument
148 ASSERT_EQ(arg->expected_events, events);
H A Dsysdeps_test.cpp131 pfd[0].events = POLLRDNORM;
133 pfd[1].events = POLLWRNORM;
157 pfd.events = POLLRDNORM;
171 pfd[0].events = POLLRDNORM;
173 pfd[1].events = POLLRDNORM;
175 pfd[2].events = POLLWRNORM;
192 pfd[0].events = POLLRDNORM;
209 pfd.events = POLLIN;
233 pfd.events = POLLIN;
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/bt/stack/rfcomm/
H A Dport_rfc.cc146 uint32_t events = 0; local
156 events |= port_get_signal_changes(p_port, old_signals,
159 if (p_port->ev_mask & PORT_EV_CONNECT_ERR) events |= PORT_EV_CONNECT_ERR;
161 if (p_port->ev_mask & PORT_EV_ERR) events |= PORT_EV_ERR;
163 if ((p_port->p_callback != NULL) && events)
164 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.cc385 * events to be send to the user based on the user's specified
426 uint32_t events = 0; local
429 events |= PORT_EV_DSR;
431 if (signal & PORT_DTRDSR_ON) events |= PORT_EV_DSRS;
435 events |= PORT_EV_CTS;
437 if (signal & PORT_CTSRTS_ON) events |= PORT_EV_CTSS;
440 if (changed_signals & PORT_RING_ON) events |= PORT_EV_RING;
443 events |= PORT_EV_RLSD;
445 if (signal & PORT_DCD_ON) events |= PORT_EV_RLSDS;
448 return (p_port->ev_mask & events);
[all...]
H A Dport_api.cc98 * mask - specifies events to be enabled. A value
99 * of zero disables all events.
102 * connection up/down events.
296 /* Do not report any events to the client any more. */
318 * function which will be called when one of the events
448 * mask - Bitmask of the events the host is interested in
780 uint32_t events; local
814 /* Need to take care of the case when we could not deliver events */
817 events = PORT_EV_RXCHAR;
820 events |
847 uint32_t events; local
1068 uint32_t events; local
[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/core/bootstat/
H A Dboot_event_record_store_test.cpp134 auto events = store.GetAllBootEvents(); local
135 ASSERT_EQ(1U, events.size());
136 EXPECT_EQ("cenozoic", events[0].first);
137 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second));
157 auto events = store.GetAllBootEvents(); local
158 ASSERT_EQ(3U, events.size());
162 for (auto i = events.begin(); i != events.end(); ++i) {
180 auto events = store.GetAllBootEvents(); local
181 ASSERT_EQ(1U, events
[all...]
H A Dboot_event_record_store.cpp112 std::vector<BootEventRecord> events; local
134 events.push_back(record);
137 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
50 auto events = boot_event_store.GetAllBootEvents(); local
51 for (auto i = events.cbegin(); i != events.cend(); ++i) {
73 printf("Boot events:\n");
77 auto events = boot_event_store.GetAllBootEvents(); local
78 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/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/core/lmkd/
H A Dlmkd.c65 /* default to old in-kernel interface if no memory pressure events */
390 static void ctrl_data_handler(uint32_t events) { argument
391 if (events & EPOLLHUP) {
395 } else if (events & EPOLLIN) {
400 static void ctrl_connect_handler(uint32_t events __unused) {
417 epev.events = EPOLLIN;
629 static void mp_event(uint32_t events __unused) {
704 epev.events = EPOLLIN;
753 epev.events = EPOLLIN;
768 ALOGE("Kernel does not support memory pressure events o
781 struct epoll_event events[maxevents]; 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,
/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:
/system/bt/btif/src/
H A Dbtif_sock_thread.cc372 ps->pfd.events = flags2pevents(flags);
401 // all monitored events signaled. To remove it, just clear the slot
408 // update the poll events mask
409 ps->pfd.events = flags2pevents(ps->flags);
454 static void print_events(short events) { argument
456 if ((events)&POLLIN) flags += " POLLIN";
457 if ((events)&POLLPRI) flags += " POLLPRI";
458 if ((events)&POLLOUT) flags += " POLLOUT";
459 if ((events)&POLLERR) flags += " POLLERR";
460 if ((events)
[all...]

Completed in 542 milliseconds

123