Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 167) sorted by relevance

1234567

/system/core/adb/fdevent/
Dfdevent_epoll.cpp64 result.events = 0; in calculate_epoll_event()
66 result.events |= EPOLLIN; in calculate_epoll_event()
69 result.events |= EPOLLOUT; in calculate_epoll_event()
72 result.events |= EPOLLERR; in calculate_epoll_event()
74 result.events |= EPOLLRDHUP; in calculate_epoll_event()
92 void fdevent_context_epoll::Set(fdevent* fde, unsigned events) { in Set() argument
94 fde->state = events; in Set()
97 if ((previous_state & ~FDE_TIMEOUT) == (events & ~FDE_TIMEOUT)) { in Set()
140 unsigned events = 0; in Loop() local
141 if (epoll_events[i].events & EPOLLIN) { in Loop()
[all …]
Dfdevent_poll.cpp82 void fdevent_context_poll::Set(fdevent* fde, unsigned events) { in Set() argument
84 fde->state = events; in Set()
85 D("fdevent_set: %s, events = %u", dump_fde(fde).c_str(), events); in Set()
92 if (pollfd.events & POLLIN) { in dump_pollfds()
95 if (pollfd.events & POLLOUT) { in dump_pollfds()
119 pfd.events = 0; in Loop()
121 pfd.events |= POLLIN; in Loop()
124 pfd.events |= POLLOUT; in Loop()
127 pfd.events |= POLLERR; in Loop()
130 pfd.events |= POLLRDHUP; in Loop()
[all …]
Dfdevent.h44 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
45 typedef void (*fd_func2)(struct fdevent* fde, unsigned events, void* userdata);
47 void invoke_fde(struct fdevent* fde, unsigned events);
52 unsigned events; member
87 virtual void Set(fdevent* fde, unsigned events) = 0;
88 void Add(fdevent* fde, unsigned events);
89 void Del(fdevent* fde, unsigned events);
99 void HandleEvents(const std::vector<fdevent_event>& events);
145 void fdevent_set(fdevent *fde, unsigned events);
146 void fdevent_add(fdevent *fde, unsigned events);
[all …]
Dfdevent_test.cpp54 static void FdEventCallback(int fd, unsigned events, void* userdata) { in FdEventCallback() argument
56 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events; in FdEventCallback()
57 if (events & FDE_READ) { in FdEventCallback()
64 if (events & FDE_WRITE) { in FdEventCallback()
76 static void FdEventNewCallback(fdevent* fde, unsigned events, void* userdata) { in FdEventNewCallback() argument
79 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events; in FdEventNewCallback()
80 if (events & FDE_READ) { in FdEventNewCallback()
87 if (events & FDE_WRITE) { in FdEventNewCallback()
237 std::vector<std::pair<TimeoutEvent, std::chrono::steady_clock::time_point>> events; in TEST_F() member
246 test.fde = fdevent_create(fds[0], [](fdevent* fde, unsigned events, void* arg) { in TEST_F() argument
[all …]
Dfdevent.cpp38 void invoke_fde(struct fdevent* fde, unsigned events) { in invoke_fde() argument
40 (*f)(fde->fd.get(), events, fde->arg); in invoke_fde()
42 (*f)(fde, events, fde->arg); in invoke_fde()
105 void fdevent_context::Add(fdevent* fde, unsigned events) { in Add() argument
106 CHECK(!(events & FDE_TIMEOUT)); in Add()
107 Set(fde, fde->state | events); in Add()
110 void fdevent_context::Del(fdevent* fde, unsigned events) { in Del() argument
111 CHECK(!(events & FDE_TIMEOUT)); in Del()
112 Set(fde, fde->state & ~events); in Del()
147 void fdevent_context::HandleEvents(const std::vector<fdevent_event>& events) { in HandleEvents() argument
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Dgenfs_contexts165 genfscon debugfs /tracing/events/header_page u:object_r:debugfs_tracing:s0
166 genfscon debugfs /tracing/events/f2fs/f2fs_get_data_block/ u:object_r:debugfs_tracing:s0
167 genfscon debugfs /tracing/events/f2fs/f2fs_iget/ u:object_r:debugfs_tracing:s0
168 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_enter/ u:object_r:debugfs_tracing:s0
169 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_exit/ u:object_r:debugfs_tracing:s0
170 genfscon debugfs /tracing/events/f2fs/f2fs_write_begin/ u:object_r:debugfs_tracing:s0
171 genfscon debugfs /tracing/events/f2fs/f2fs_write_end/ u:object_r:debugfs_tracing:s0
172 genfscon debugfs /tracing/events/ext4/ext4_da_write_begin/ u:object_r:debugfs_tracing:s0
173 genfscon debugfs /tracing/events/ext4/ext4_da_write_end/ u:object_r:debugfs_tracing:s0
174 genfscon debugfs /tracing/events/ext4/ext4_es_lookup_extent_enter/ u:object_r:debugfs_tracing:s0
[all …]
/system/sepolicy/private/
Dgenfs_contexts175 genfscon debugfs /tracing/events/header_page u:object_r:debugfs_tracing:s0
176 genfscon debugfs /tracing/events/f2fs/f2fs_get_data_block/ u:object_r:debugfs_tracing:s0
177 genfscon debugfs /tracing/events/f2fs/f2fs_iget/ u:object_r:debugfs_tracing:s0
178 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_enter/ u:object_r:debugfs_tracing:s0
179 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_exit/ u:object_r:debugfs_tracing:s0
180 genfscon debugfs /tracing/events/f2fs/f2fs_write_begin/ u:object_r:debugfs_tracing:s0
181 genfscon debugfs /tracing/events/f2fs/f2fs_write_end/ u:object_r:debugfs_tracing:s0
182 genfscon debugfs /tracing/events/ext4/ext4_da_write_begin/ u:object_r:debugfs_tracing:s0
183 genfscon debugfs /tracing/events/ext4/ext4_da_write_end/ u:object_r:debugfs_tracing:s0
184 genfscon debugfs /tracing/events/ext4/ext4_es_lookup_extent_enter/ u:object_r:debugfs_tracing:s0
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Dgenfs_contexts174 genfscon debugfs /tracing/events/header_page u:object_r:debugfs_tracing:s0
175 genfscon debugfs /tracing/events/f2fs/f2fs_get_data_block/ u:object_r:debugfs_tracing:s0
176 genfscon debugfs /tracing/events/f2fs/f2fs_iget/ u:object_r:debugfs_tracing:s0
177 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_enter/ u:object_r:debugfs_tracing:s0
178 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_exit/ u:object_r:debugfs_tracing:s0
179 genfscon debugfs /tracing/events/f2fs/f2fs_write_begin/ u:object_r:debugfs_tracing:s0
180 genfscon debugfs /tracing/events/f2fs/f2fs_write_end/ u:object_r:debugfs_tracing:s0
181 genfscon debugfs /tracing/events/ext4/ext4_da_write_begin/ u:object_r:debugfs_tracing:s0
182 genfscon debugfs /tracing/events/ext4/ext4_da_write_end/ u:object_r:debugfs_tracing:s0
183 genfscon debugfs /tracing/events/ext4/ext4_es_lookup_extent_enter/ u:object_r:debugfs_tracing:s0
[all …]
/system/core/libappfuse/
DEpollController.cc38 bool EpollController::AddFd(int fd, int events, void* data) { in AddFd() argument
39 return InvokeControl(EPOLL_CTL_ADD, fd, events, data); in AddFd()
42 bool EpollController::UpdateFd(int fd, int events, void* data) { in UpdateFd() argument
43 return InvokeControl(EPOLL_CTL_MOD, fd, events, data); in UpdateFd()
50 const std::vector<epoll_event>& EpollController::events() const { in events() function in android::fuse::EpollController
54 bool EpollController::InvokeControl(int op, int fd, int events, void* data) const { in InvokeControl() argument
57 event.events = events; in InvokeControl()
DFuseBridgeLoop.cc37 int events; member
83 const bool unexpected_event = (last_device_events_.events & kUnexpectedEventMask) || in Transfer()
84 (last_proxy_events_.events & kUnexpectedEventMask); in Transfer()
85 const bool device_read_ready = last_device_events_.events & EPOLLIN; in Transfer()
86 const bool proxy_read_ready = last_proxy_events_.events & EPOLLIN; in Transfer()
87 const bool proxy_write_ready = last_proxy_events_.events & EPOLLOUT; in Transfer()
90 last_device_events_.events = 0; in Transfer()
91 last_proxy_events_.events = 0; in Transfer()
280 for (const auto& event : events()) { in Wait()
283 entry_event->events = event.events; in Wait()
/system/sepolicy/prebuilts/api/28.0/private/
Dgenfs_contexts144 genfscon debugfs /tracing/events/workqueue/ u:object_r:debugfs_tracing_deb…
145 genfscon debugfs /tracing/events/regulator/ u:object_r:debugfs_tracing_deb…
146 genfscon debugfs /tracing/events/pagecache/ u:object_r:debugfs_tracing_deb…
147 genfscon debugfs /tracing/events/irq/ u:object_r:debugfs_tracing_deb…
148 genfscon debugfs /tracing/events/ipi/ u:object_r:debugfs_tracing_deb…
149 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_enter/ u:object_r:debugfs_tracing:s0
150 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_exit/ u:object_r:debugfs_tracing:s0
151 genfscon debugfs /tracing/events/f2fs/f2fs_write_begin/ u:object_r:debugfs_tracing:s0
152 genfscon debugfs /tracing/events/f2fs/f2fs_write_end/ u:object_r:debugfs_tracing:s0
153 genfscon debugfs /tracing/events/ext4/ext4_da_write_begin/ u:object_r:debugfs_tracing:s0
[all …]
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py126 events = shutdown_event_all.get(k)
127 if not events:
128 events = []
129 shutdown_event_all[k] = events
130 events.append(v)
133 events = shutdown_timing_event_all.get(k)
134 if not events:
135 events = []
136 shutdown_timing_event_all[k] = events
137 events.append(v)
[all …]
/system/core/adb/libs/adbconnection/
Dadbconnection_server.cpp67 std::array<epoll_event, 16> events; in adbconnection_listen() local
69 events[0].events = EPOLLIN; in adbconnection_listen()
70 events[0].data.fd = -1; in adbconnection_listen()
71 if (epoll_ctl(epfd.get(), EPOLL_CTL_ADD, s.get(), &events[0]) != 0) { in adbconnection_listen()
76 int epoll_rc = TEMP_FAILURE_RETRY(epoll_wait(epfd.get(), events.data(), events.size(), -1)); in adbconnection_listen()
82 const epoll_event& event = events[i]; in adbconnection_listen()
93 register_event.events = EPOLLIN; in adbconnection_listen()
/system/sepolicy/prebuilts/api/27.0/private/
Dgenfs_contexts76 genfscon debugfs /tracing/events/sync/enable u:object_r:debugfs_tracing_deb…
77 genfscon debugfs /tracing/events/workqueue/enable u:object_r:debugfs_tracing_deb…
78 genfscon debugfs /tracing/events/regulator/enable u:object_r:debugfs_tracing_deb…
79 genfscon debugfs /tracing/events/pagecache/enable u:object_r:debugfs_tracing_deb…
80 genfscon debugfs /tracing/events/irq/enable u:object_r:debugfs_tracing_deb…
81 genfscon debugfs /tracing/events/ipi/enable u:object_r:debugfs_tracing_deb…
82 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_enter/enable u:object_r:debugfs_tracing_deb…
83 genfscon debugfs /tracing/events/f2fs/f2fs_sync_file_exit/enable u:object_r:debugfs_tracing_deb…
84 genfscon debugfs /tracing/events/f2fs/f2fs_write_begin/enable u:object_r:debugfs_tracing_deb…
85 genfscon debugfs /tracing/events/f2fs/f2fs_write_end/enable u:object_r:debugfs_tracing_deb…
[all …]
/system/core/libutils/
DLooper.cpp49 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) { in handleEvent() argument
50 return mCallback(fd, events, data); in handleEvent()
146 eventItem.events = EPOLLIN; in rebuildEpollLocked()
183 int events = response.events; in pollOnce() local
188 this, ident, fd, events, data); in pollOnce()
191 if (outEvents != nullptr) *outEvents = events; in pollOnce()
280 uint32_t epollEvents = eventItems[i].events; in pollInner()
290 int events = 0; in pollInner() local
291 if (epollEvents & EPOLLIN) events |= EVENT_INPUT; in pollInner()
292 if (epollEvents & EPOLLOUT) events |= EVENT_OUTPUT; in pollInner()
[all …]
/system/core/bootstat/
Dboot_event_record_store_test.cpp139 auto events = store.GetAllBootEvents(); in TEST_F() local
140 ASSERT_EQ(1U, events.size()); in TEST_F()
141 EXPECT_EQ("cenozoic", events[0].first); in TEST_F()
142 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second)); in TEST_F()
160 auto events = store.GetAllBootEvents(); in TEST_F() local
161 ASSERT_EQ(3U, events.size()); in TEST_F()
165 for (auto i = events.begin(); i != events.end(); ++i) { in TEST_F()
183 auto events = store.GetAllBootEvents(); in TEST_F() local
184 ASSERT_EQ(1U, events.size()); in TEST_F()
185 EXPECT_EQ("permian", events[0].first); in TEST_F()
[all …]
DREADME.md3 The bootstat command records boot events (e.g., `firmware_loaded`,
4 `boot_complete`) and the relative time at which these events occurred. The
22 ## Recording boot events ##
32 ## Logging boot events ##
34 To log the persisted boot events, call `bootstat` with the `-l` option.
38 bootstat logs all boot events recorded using the `-r` option to the EventLog
43 ## Printing boot events ##
45 To print the set of persisted boot events, call `bootstat` with the `-p` option.
48 Boot events:
/system/core/libappfuse/include/libappfuse/
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/
Dreactor.cc97 event.events = EPOLLIN; in reactor_new()
155 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_register()
156 if (write_ready) event.events |= EPOLLOUT; in reactor_register()
177 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_change_registration()
178 if (write_ready) event.events |= EPOLLOUT; in reactor_change_registration()
238 struct epoll_event events[MAX_EVENTS]; in run_reactor() local
246 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1)); in run_reactor()
257 if (events[j].data.ptr == NULL) { in run_reactor()
264 reactor_object_t* object = (reactor_object_t*)events[j].data.ptr; in run_reactor()
277 if (events[j].events & (EPOLLIN | EPOLLHUP | EPOLLRDHUP | EPOLLERR) && in run_reactor()
[all …]
/system/bt/stack/rfcomm/
Dport_rfc.cc144 uint32_t events = 0; in port_start_close() local
154 events |= port_get_signal_changes(p_port, old_signals, in port_start_close()
157 if (p_port->ev_mask & PORT_EV_CONNECT_ERR) events |= PORT_EV_CONNECT_ERR; in port_start_close()
159 if (p_port->ev_mask & PORT_EV_ERR) events |= PORT_EV_ERR; in port_start_close()
161 if ((p_port->p_callback != NULL) && events) in port_start_close()
162 p_port->p_callback(events, p_port->handle); in port_start_close()
759 uint32_t events = 0; in PORT_DataInd() local
807 events |= PORT_EV_RXFLAG; in PORT_DataInd()
825 if (events & PORT_EV_RXFLAG) { in PORT_DataInd()
831 events |= PORT_EV_RXCHAR; in PORT_DataInd()
[all …]
/system/core/libutils/include/utils/
DLooper.h49 typedef int (*Looper_callbackFunc)(int fd, int events, void* data);
116 virtual int handleEvent(int fd, int events, void* data) = 0;
128 virtual int handleEvent(int fd, int events, void* data);
321 int addFd(int fd, int ident, int events, Looper_callbackFunc callback, void* data);
322 int addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data);
427 int events; member
436 int events; member
479 void pushResponse(int events, const Request& request);
/system/core/adb/
Dsysdeps_test.cpp98 pfd[0].events = POLLRDNORM; in TEST_F()
100 pfd[1].events = POLLWRNORM; in TEST_F()
124 pfd.events = POLLRDNORM; in TEST_F()
138 pfd[0].events = POLLRDNORM; in TEST_F()
141 pfd[1].events = POLLRDNORM; in TEST_F()
144 pfd[2].events = POLLWRNORM; in TEST_F()
160 pfd[0].events = POLLRDNORM; in TEST_F()
163 pfd[1].events = POLLRDNORM; in TEST_F()
173 pfd[0].events = POLLRDNORM; in TEST_F()
190 pfd.events = POLLIN; in TEST_F()
[all …]
/system/core/init/
Depoll.cpp41 Result<void> Epoll::RegisterHandler(int fd, std::function<void()> handler, uint32_t events) { in RegisterHandler() argument
42 if (!events) { in RegisterHandler()
50 ev.events = events; in RegisterHandler()
/system/bt/gd/os/linux_generic/
Dreactor.cc97 epoll_event events[kEpollMaxEvents]; in Run() local
99 RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, timeout_ms)); in Run()
109 auto event = events[i]; in Run()
110 ASSERT(event.events != 0u); in Run()
141 …if (event.events & (EPOLLIN | EPOLLHUP | EPOLLRDHUP | EPOLLERR) && !reactable->on_read_ready_.is_n… in Run()
144 if (event.events & EPOLLOUT && !reactable->on_write_ready_.is_null()) { in Run()
177 .events = poll_event_type, in Register()
261 .events = poll_event_type, in ModifyRegistration()
/system/bt/gd/cert/
Dcert_self_test.py74 def __init__(self, events, delay_ms): argument
75 self.events_ = events
144 with EventStream(FetchEvents(events=[1, 2, 3, 1, 2, 3], delay_ms=40)) as event_stream:
149 with EventStream(FetchEvents(events=[1, 2, 3], delay_ms=50)) as event_stream:
154 with EventStream(FetchEvents(events=[1, 2, 3], delay_ms=50)) as event_stream:
162 with EventStream(FetchEvents(events=[1, 2, 3, 4], delay_ms=50)) as event_stream:
168 with EventStream(FetchEvents(events=[1, 2, 3, 4], delay_ms=50)) as event_stream:
260 with EventStream(FetchEvents(events=[1, 2, 3], delay_ms=50)) as event_stream:
264 with EventStream(FetchEvents(events=[1, 2, 3], delay_ms=50)) as event_stream:
269 with EventStream(FetchEvents(events=[1, 2, 3], delay_ms=50)) as event_stream:
[all …]

1234567