Searched defs:events (Results 1 - 25 of 32) 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.cpp128 IOEventRef IOEventLoop::AddEvent(int fd_or_sig, short events, timeval* timeout, argument
134 e->e = event_new(ebase_, fd_or_sig, events, EventCallbackFn, e.get());
H A Dcmd_record_test.cpp507 // Check if the kernel can dump registers for tracepoint events.
509 // "5b09a094f2 arm64: perf: Fix callchain parse error with kernel tracepoint events"
514 // On linux host, we need root privilege to read tracepoint events.
546 std::vector<std::string> events = {"cpu-cycles", "instructions"}; local
547 for (auto& event : events) {
/system/core/logd/
H A DLogAudit.h33 bool events; member in class:LogAudit
/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.cpp113 static void adbd_auth_event(int fd, unsigned events, void*) { argument
114 if (events & FDE_READ) {
158 static void adbd_auth_listener(int fd, unsigned events, void* data) { argument
H A Dfdevent.cpp63 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
282 unsigned events = fde->events; local
[all...]
H A Dfdevent_test.cpp45 static void FdEventCallback(int fd, unsigned events, void* userdata) { argument
47 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events;
48 if (events & FDE_READ) {
55 if (events & FDE_WRITE) {
146 static void InvalidFdEventCallback(int fd, unsigned events, void* userdata) { argument
148 ASSERT_EQ(arg->expected_events, events);
/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/adb/daemon/
H A Dusb.h28 std::vector<struct io_event> events; member in struct:aio_block
/system/core/bootstat/
H A Dboot_event_record_store.cpp114 std::vector<BootEventRecord> events; local
136 events.push_back(record);
139 return events;
H A Dboot_event_record_store_test.cpp140 auto events = store.GetAllBootEvents(); local
141 ASSERT_EQ(1U, events.size());
142 EXPECT_EQ("cenozoic", events[0].first);
143 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second));
161 auto events = store.GetAllBootEvents(); local
162 ASSERT_EQ(3U, events.size());
166 for (auto i = events.begin(); i != events.end(); ++i) {
184 auto events = store.GetAllBootEvents(); local
185 ASSERT_EQ(1U, events
[all...]
/system/core/libasyncio/
H A DAsyncIO.cpp34 int io_getevents(aio_context_t ctx, long min_nr, long max_nr, io_event* events, timespec* timeout) { argument
35 return syscall(__NR_io_getevents, ctx, min_nr, max_nr, events, timeout);
/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.cc376 * events to be send to the user based on the user's specified
417 uint32_t events = 0; local
420 events |= PORT_EV_DSR;
422 if (signal & PORT_DTRDSR_ON) events |= PORT_EV_DSRS;
426 events |= PORT_EV_CTS;
428 if (signal & PORT_CTSRTS_ON) events |= PORT_EV_CTSS;
431 if (changed_signals & PORT_RING_ON) events |= PORT_EV_RING;
434 events |= PORT_EV_RLSD;
436 if (signal & PORT_DCD_ON) events |= PORT_EV_RLSDS;
439 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);
616 /* execute call back function only if the application is registered for events
656 /* execute call back function only if the application is registered for events
763 uint32_t events = 0; local
811 events |
853 uint32_t events = 0; local
902 uint32_t events = 0; local
954 uint32_t events = 0; 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.h141 StatusOr<std::array<uint16_t, size>> ppoll(const std::array<Fd, size>& fds, uint16_t events, argument
146 tmp[i].events = events;
/system/vold/bench/
H A Dbenchgen.py56 events = [] variable
125 events.append(Event(thread, time, call, args, ret))
177 events = sorted(events, key=lambda e: e.time) variable
181 total = len(events)
182 for e in events:
349 for e in 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/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 9722 milliseconds

12