/system/vold/bench/ |
H A D | benchgen.py | 56 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/netd/libnetdutils/include/netdutils/ |
H A D | Syscalls.h | 130 StatusOr<std::array<uint16_t, size>> ppoll(const std::array<Fd, size>& fds, uint16_t events, argument 135 tmp[i].events = events;
|
/system/netd/server/ |
H A D | NetlinkListener.cpp | 110 const int events = POLLIN | POLLRDHUP | POLLERR | POLLHUP; local 113 ASSIGN_OR_RETURN(auto revents, sys.ppoll(fds, events, timeout));
|
/system/extras/perfprofd/quipper/ |
H A D | perf_reader.h | 127 // 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/extras/simpleperf/ |
H A D | IOEventLoop.cpp | 113 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());
|
H A D | record_lib_test.cpp | 26 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/core/include/utils/ |
H A D | Looper.h | 39 * 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/libappfuse/ |
H A D | EpollController.cc | 38 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 D | FuseBridgeLoop.cc | 37 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/libutils/ |
H A D | Looper.cpp | 47 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/libutils/include/utils/ |
H A D | Looper.h | 39 * 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 D | Looper_test.cpp | 56 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 D | lmkd.c | 71 /* 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/logd/ |
H A D | LogAudit.h | 33 bool events; member in class:LogAudit
|
/system/connectivity/wificond/ |
H A D | looper_backed_event_loop.cpp | 51 virtual int handleEvent(int fd, int events, void* data) { argument
|
/system/core/adb/ |
H A D | adbd_auth.cpp | 112 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 D | fdevent.cpp | 69 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 D | fdevent.h | 25 /* 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 D | fdevent_test.cpp | 44 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 D | jdwp_service.cpp | 130 static void jdwp_process_event(int socket, unsigned events, void* _proc); 219 static void jdwp_process_event(int socket, unsigned events, void* _proc) { argument 222 if (events & FDE_READ) { 269 if (events & FDE_WRITE) { 371 static void jdwp_control_event(int s, unsigned events, void* user); 425 static void jdwp_control_event(int s, unsigned events, void* _control) { argument 428 if (events & FDE_READ) {
|
H A D | sysdeps.h | 216 short events; member in struct:adb_pollfd
|
H A D | transport.cpp | 151 static void transport_socket_events(int fd, unsigned events, void* _t) { argument 153 D("transport_socket_events(fd=%d, events=%04x,...)", fd, events); 154 if (events & FDE_READ) {
|
/system/core/bootstat/ |
H A D | boot_event_record_store.cpp | 117 std::vector<BootEventRecord> events; local 139 events.push_back(record); 142 return events;
|
H A D | boot_event_record_store_test.cpp | 144 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 D | bootstat.cpp | 17 // 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...] |