Searched defs:events (Results 1 - 25 of 31) sorted by relevance

12

/system/extras/simpleperf/
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());
H A DIOEventLoop.cpp113 IOEventRef IOEventLoop::AddEvent(int fd_or_sig, short events, timeval* timeout, argument
119 e->e = event_new(ebase_, fd_or_sig, events, EventCallbackFn, e.get());
/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 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
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 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);
/system/core/logd/
H A DLogAudit.h33 bool events; member in class:LogAudit
/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;
/system/core/bootstat/
H A Dboot_event_record_store.cpp117 std::vector<BootEventRecord> events; local
139 events.push_back(record);
142 return events;
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...]
/system/netd/server/
H A DNetlinkListener.cpp110 const int events = POLLIN | POLLRDHUP | POLLERR | POLLHUP; local
113 ASSIGN_OR_RETURN(auto revents, sys.ppoll(fds, events, timeout));
/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_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_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_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/connectivity/wificond/
H A Dlooper_backed_event_loop.cpp51 virtual int handleEvent(int fd, int events, void* data) { argument
/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/netd/libnetdutils/include/netdutils/
H A DSyscalls.h130 StatusOr<std::array<uint16_t, size>> ppoll(const std::array<Fd, size>& fds, uint16_t events, argument
135 tmp[i].events = events;
/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/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/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/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/perfprofd/quipper/
H A Dperf_reader.h127 // Stores a list of unique filenames found in MMAP/MMAP2 events into
132 // Uses build id events to populate |filenames_to_build_ids|.
141 // If a program using PerfReader calls events(), it could work with the
142 // resulting events by importing kernel/perf_internals.h. This would also
144 // However, there is no easy way to work with the sample info within events.
160 const std::vector<malloced_unique_ptr<event_t>>& events() const { function in class:quipper::PerfReader
258 // Replaces existing filenames in MMAP/MMAP2 events based on |filename_map|.
/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 5113 milliseconds

12