Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/libevent/
Devent.c129 static inline int event_add_internal(struct event *ev,
131 static inline int event_del_internal(struct event *ev);
143 static inline void event_signal_closure(struct event_base *, struct event *ev);
144 static inline void event_persist_closure(struct event_base *, struct event *ev);
197 #define _event_debug_note_setup(ev) do { \ in HT_PROTOTYPE() argument
200 find.ptr = (ev); \ in HT_PROTOTYPE()
210 dent->ptr = (ev); \ in HT_PROTOTYPE()
219 #define _event_debug_note_teardown(ev) do { \ argument
222 find.ptr = (ev); \
232 #define _event_debug_note_add(ev) do { \ argument
[all …]
Devmap.c263 evmap_io_add(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_add() argument
272 EVUTIL_ASSERT(fd == ev->ev_fd); in evmap_io_add()
294 if (ev->ev_events & EV_READ) { in evmap_io_add()
298 if (ev->ev_events & EV_WRITE) { in evmap_io_add()
309 (old_ev->ev_events&EV_ET) != (ev->ev_events&EV_ET)) { in evmap_io_add()
320 if (evsel->add(base, ev->ev_fd, in evmap_io_add()
321 old, (ev->ev_events & EV_ET) | res, extra) == -1) in evmap_io_add()
328 TAILQ_INSERT_TAIL(&ctx->events, ev, ev_io_next); in evmap_io_add()
336 evmap_io_del(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_del() argument
347 EVUTIL_ASSERT(fd == ev->ev_fd); in evmap_io_del()
[all …]
/external/libedit/src/
Dhistory.c81 #define HNEXT(h, ev) (*(h)->h_next)((h)->h_ref, ev) argument
82 #define HFIRST(h, ev) (*(h)->h_first)((h)->h_ref, ev) argument
83 #define HPREV(h, ev) (*(h)->h_prev)((h)->h_ref, ev) argument
84 #define HLAST(h, ev) (*(h)->h_last)((h)->h_ref, ev) argument
85 #define HCURR(h, ev) (*(h)->h_curr)((h)->h_ref, ev) argument
86 #define HSET(h, ev, n) (*(h)->h_set)((h)->h_ref, ev, n) argument
87 #define HCLEAR(h, ev) (*(h)->h_clear)((h)->h_ref, ev) argument
88 #define HENTER(h, ev, str) (*(h)->h_enter)((h)->h_ref, ev, str) argument
89 #define HADD(h, ev, str) (*(h)->h_add)((h)->h_ref, ev, str) argument
90 #define HDEL(h, ev, n) (*(h)->h_del)((h)->h_ref, ev, n) argument
[all …]
Dreadline.c199 HistEvent ev; in _move_history() local
202 if (history(h, &ev, op) != 0) in _move_history()
205 rl_he.line = ev.str; in _move_history()
287 HistEvent ev; in rl_initialize() local
316 history(h, &ev, H_SETSIZE, INT_MAX); /* unlimited */ in rl_initialize()
386 HistEvent ev; in readline() local
434 history(h, &ev, H_GETSIZE); in readline()
435 history_length = ev.num; in readline()
514 HistEvent ev; in get_history_event() local
522 if (history(h, &ev, H_FIRST) != 0) in get_history_event()
[all …]
/external/libevent/include/event2/
Devent_compat.h176 #define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg)) argument
177 #define evsignal_set(ev, x, cb, arg) \ argument
178 event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
188 #define timeout_add(ev, tv) event_add((ev), (tv)) argument
189 #define timeout_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg)) argument
190 #define timeout_del(ev) event_del(ev) argument
191 #define timeout_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv)) argument
192 #define timeout_initialized(ev) event_initialized(ev) argument
202 #define signal_add(ev, tv) event_add((ev), (tv)) argument
203 #define signal_set(ev, x, cb, arg) \ argument
[all …]
Devent.h754 #define evtimer_assign(ev, b, cb, arg) \ argument
755 event_assign((ev), (b), -1, 0, (cb), (arg))
757 #define evtimer_add(ev, tv) event_add((ev), (tv)) argument
758 #define evtimer_del(ev) event_del(ev) argument
759 #define evtimer_pending(ev, tv) event_pending((ev), EV_TIMEOUT, (tv)) argument
760 #define evtimer_initialized(ev) event_initialized(ev) argument
769 #define evsignal_add(ev, tv) event_add((ev), (tv)) argument
770 #define evsignal_assign(ev, b, x, cb, arg) \ argument
771 event_assign((ev), (b), (x), EV_SIGNAL|EV_PERSIST, cb, (arg))
774 #define evsignal_del(ev) event_del(ev) argument
[all …]
/external/mesa3d/src/gallium/state_trackers/clover/api/
Devent.cpp42 clSetUserEventStatus(cl_event ev, cl_int status) { in clSetUserEventStatus() argument
43 if (!dynamic_cast<soft_event *>(ev)) in clSetUserEventStatus()
49 if (ev->status() <= 0) in clSetUserEventStatus()
53 ev->abort(status); in clSetUserEventStatus()
55 ev->trigger(); in clSetUserEventStatus()
65 std::for_each(evs, evs + num_evs, [&](const cl_event ev) { in clWaitForEvents() argument
66 if (!ev) in clWaitForEvents()
69 if (&ev->ctx != &evs[0]->ctx) in clWaitForEvents()
72 if (ev->status() < 0) in clWaitForEvents()
91 clGetEventInfo(cl_event ev, cl_event_info param, in clGetEventInfo() argument
[all …]
Dtransfer.cpp46 if (any_of([&](const cl_event ev) { in validate_base() argument
47 return &ev->ctx != &q->ctx; in validate_base()
141 cl_event *ev) try { in clEnqueueReadBuffer() argument
155 ret_object(ev, hev); in clEnqueueReadBuffer()
166 cl_event *ev) try { in clEnqueueWriteBuffer() argument
180 ret_object(ev, hev); in clEnqueueWriteBuffer()
195 cl_event *ev) try { in clEnqueueReadBufferRect() argument
211 ret_object(ev, hev); in clEnqueueReadBufferRect()
226 cl_event *ev) try { in clEnqueueWriteBufferRect() argument
242 ret_object(ev, hev); in clEnqueueWriteBufferRect()
[all …]
/external/libcxx/src/
Dsystem_error.cpp32 error_category::default_error_condition(int ev) const _NOEXCEPT in default_error_condition()
34 return error_condition(ev, *this); in default_error_condition()
50 __do_message::message(int ev) const in message()
52 return string(strerror(ev)); in message()
60 virtual string message(int ev) const;
70 __generic_error_category::message(int ev) const in message()
73 if (ev > _LIBCPP_ELAST) in message()
76 return __do_message::message(ev); in message()
91 virtual string message(int ev) const;
92 virtual error_condition default_error_condition(int ev) const _NOEXCEPT;
[all …]
/external/libchrome/base/synchronization/
Dwaitable_event_unittest.cc57 WaitableEvent* ev[5]; in TEST() local
59 ev[i] = new WaitableEvent(false, false); in TEST()
61 ev[3]->Signal(); in TEST()
62 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
64 ev[3]->Signal(); in TEST()
65 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
67 ev[4]->Signal(); in TEST()
68 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 4u); in TEST()
70 ev[0]->Signal(); in TEST()
71 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 0u); in TEST()
[all …]
/external/tinyalsa/
Dmixer.c303 struct snd_ctl_elem_value ev; in mixer_ctl_get_value() local
309 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_value()
310 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get_value()
311 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_value()
317 return !!ev.value.integer.value[id]; in mixer_ctl_get_value()
320 return ev.value.integer.value[id]; in mixer_ctl_get_value()
323 return ev.value.enumerated.item[id]; in mixer_ctl_get_value()
326 return ev.value.bytes.data[id]; in mixer_ctl_get_value()
337 struct snd_ctl_elem_value ev; in mixer_ctl_get_array() local
345 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_array()
[all …]
/external/libvncserver/examples/android/jni/
Dfbvncserver.c220 struct input_event ev; in injectKeyEvent() local
221 memset(&ev, 0, sizeof(ev)); in injectKeyEvent()
222 gettimeofday(&ev.time,0); in injectKeyEvent()
223 ev.type = EV_KEY; in injectKeyEvent()
224 ev.code = code; in injectKeyEvent()
225 ev.value = value; in injectKeyEvent()
226 if(write(kbdfd, &ev, sizeof(ev)) < 0) in injectKeyEvent()
309 struct input_event ev; in injectTouchEvent() local
319 memset(&ev, 0, sizeof(ev)); in injectTouchEvent()
322 gettimeofday(&ev.time,0); in injectTouchEvent()
[all …]
/external/autotest/client/site_tests/hardware_Keyboard/src/
Devtest.c321 struct input_event ev[64]; in do_single_key_capture() local
326 rd = read(fd, ev, sizeof(struct input_event) * 64); in do_single_key_capture()
334 if (ev[i].type == EV_KEY) { in do_single_key_capture()
335 if (0 == state && 1 == ev[i].value) { in do_single_key_capture()
336 code = ev[i].code; in do_single_key_capture()
338 } else if (code == ev[i].code && in do_single_key_capture()
339 0 == ev[i].value && in do_single_key_capture()
343 names[ev[i].type][ev[i].code]); in do_single_key_capture()
394 struct input_event ev[64]; in do_evtest_dumpall() local
444 rd = read(fd, ev, sizeof(struct input_event) * 64); in do_evtest_dumpall()
[all …]
/external/toybox/toys/posix/
Denv.c32 char **ev; in env_main() local
40 for (ev = toys.optargs; *ev; ev++) { in env_main()
41 char *name = *ev, *val = strchr(name, '='); in env_main()
46 } else xexec(ev); in env_main()
49 if (environ) for (ev = environ; *ev; ev++) xputs(*ev); in env_main()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util_posix.cc287 void send(Event *ev);
288 void HandleEvent(Event *ev);
291 void ScopedThread::Impl::HandleEvent(Event *ev) { in HandleEvent() argument
293 expect_report = ev->expect_report; in HandleEvent()
295 expect_report_type = ev->report_type; in HandleEvent()
296 switch (ev->type) { in HandleEvent()
300 if (ev->type == Event::READ) { in HandleEvent()
301 switch (ev->arg /*size*/) { in HandleEvent()
309 switch (ev->arg /*size*/) { in HandleEvent()
324 tsan_mop(ev->ptr); in HandleEvent()
[all …]
/external/strace/
Depoll.c56 print_epoll_event(struct epoll_event *ev) in print_epoll_event() argument
59 printflags(epollevents, ev->events, "EPOLL???"); in print_epoll_event()
63 ev->data.u32, ev->data.u64); in print_epoll_event()
71 struct epoll_event ev; in SYS_FUNC() local
82 else if (!umove_or_printaddr(tcp, tcp->u_arg[3], &ev)) in SYS_FUNC()
83 print_epoll_event(&ev); in SYS_FUNC()
95 struct epoll_event ev, *start, *cur, *end; in print_epoll_event_array() local
102 if (umove_or_printaddr(tcp, addr, &ev)) in print_epoll_event_array()
106 print_epoll_event(&ev); in print_epoll_event_array()
112 if (umove_or_printaddr(tcp, (long) cur, &ev)) in print_epoll_event_array()
[all …]
/external/icu/icu4c/source/data/locales/
Det.txt412 "pühapäev",
413 "esmaspäev",
414 "teisipäev",
415 "kolmapäev",
416 "neljapäev",
418 "laupäev",
450 "pühapäev",
451 "esmaspäev",
452 "teisipäev",
453 "kolmapäev",
[all …]
/external/ltrace/
Dlibltrace.c156 dispatch_callbacks(Event * ev) { in dispatch_callbacks() argument
159 if (ev->type==EVENT_SIGNAL && in dispatch_callbacks()
160 exiting && ev->e_un.signum == SIGSTOP) { in dispatch_callbacks()
164 if (ev->proc && ev->proc->state == STATE_IGNORED) { in dispatch_callbacks()
167 for (i=0; i<num_ltrace_callbacks[ev->type]; i++) { in dispatch_callbacks()
168 ltrace_callbacks[ev->type][i](ev); in dispatch_callbacks()
174 Event * ev; in ltrace_main() local
176 ev = next_event(); in ltrace_main()
177 dispatch_callbacks(ev); in ltrace_main()
178 handle_event(ev); in ltrace_main()
/external/opencv3/modules/calib3d/test/
Dtest_compose_rt.cpp54 : rv1(rv1_), tv1(tv1_), rv2(rv2_), tv2(tv2_), eps(eps_), ev(3, 1) {} in Differential()
62 ev.setTo(Scalar(0)); ev(i, 0) = eps; in dRv1()
64 composeRT( rv1 + ev, tv1, rv2, tv2, rv3_p, tv3_p); in dRv1()
65 composeRT( rv1 - ev, tv1, rv2, tv2, rv3_m, tv3_m); in dRv1()
79 ev.setTo(Scalar(0)); ev(i, 0) = eps; in dRv2()
81 composeRT( rv1, tv1, rv2 + ev, tv2, rv3_p, tv3_p); in dRv2()
82 composeRT( rv1, tv1, rv2 - ev, tv2, rv3_m, tv3_m); in dRv2()
96 ev.setTo(Scalar(0)); ev(i, 0) = eps; in dTv1()
98 composeRT( rv1, tv1 + ev, rv2, tv2, rv3_p, tv3_p); in dTv1()
99 composeRT( rv1, tv1 - ev, rv2, tv2, rv3_m, tv3_m); in dTv1()
[all …]
/external/autotest/client/cros/faft/utils/
Dfirmware_check_keys.py16 ev = None variable in firmwareCheckKeys
29 self.ev.read(self.device.f)
30 if self.ev.code != KEY_RESERVED:
31 print "EventCode is %d value is %d" % (self.ev.code, self.ev.value)
32 if self.ev.type == 0 or self.ev.type == 1:
33 self.actual_output.append(self.ev.code)
45 self.ev = InputEvent()
/external/libedit/examples/
Dtc1.c138 HistEvent ev; in main() local
148 history(hist, &ev, H_SETSIZE, 100); in main()
222 if (history(hist, &ev, H_SET, lastevent) == -1) in main()
223 err(1, "%d: %s", lastevent, ev.str); in main()
224 history(hist, &ev, H_ADD , buf); in main()
226 history(hist, &ev, H_ENTER, buf); in main()
227 lastevent = ev.num; in main()
231 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); in main()
254 for (rv = history(hist, &ev, H_LAST); rv != -1; in main()
255 rv = history(hist, &ev, H_PREV)) in main()
[all …]
/external/mesa3d/src/gallium/state_trackers/clover/core/
Devent.cpp33 for (auto ev : deps) in _cl_event() local
34 ev->chain(this); in _cl_event()
69 _cl_event::chain(clover::event *ev) { in chain() argument
71 ev->wait_count++; in chain()
72 __chain.push_back(ev); in chain()
73 ev->deps.push_back(this); in chain()
79 _cl_event(q.ctx, deps, action, [](event &ev){}), in hard_event() argument
149 any_of([](const ref_ptr<event> &ev) { in status() argument
150 return ev->status() != CL_COMPLETE; in status()
170 for (auto ev : deps) in wait() local
[all …]
Dqueue.cpp53 [](event_ptr &ev) { return !ev->signalled(); }); in flush() argument
57 std::for_each(first, last, [&](event_ptr &ev) { ev->fence(fence); }); in flush() argument
64 _cl_command_queue::sequence(clover::hard_event *ev) { in sequence() argument
66 queued_events.back()->chain(ev); in sequence()
68 queued_events.push_back(ev); in sequence()
/external/javassist/sample/duplicate/
DViewer.java34 public void mouseClicked(MouseEvent ev) { in mouseClicked() argument
35 ball.move(ev.getX(), ev.getY()); in mouseClicked()
39 public void mouseEntered(MouseEvent ev) {} in mouseEntered() argument
41 public void mouseExited(MouseEvent ev) {} in mouseExited() argument
43 public void mousePressed(MouseEvent ev) {} in mousePressed() argument
45 public void mouseReleased(MouseEvent ev) {} in mouseReleased() argument
/external/vulkan-validation-layers/demos/smoke/
DShellXcb.cpp210 void ShellXcb::handle_event(const xcb_generic_event_t *ev) in handle_event() argument
212 switch (ev->response_type & 0x7f) { in handle_event()
216 reinterpret_cast<const xcb_configure_notify_event_t *>(ev); in handle_event()
223 reinterpret_cast<const xcb_key_press_event_t *>(ev); in handle_event()
251 reinterpret_cast<const xcb_client_message_event_t *>(ev); in handle_event()
264 xcb_generic_event_t *ev = xcb_wait_for_event(c_); in loop_wait() local
265 if (!ev) in loop_wait()
268 handle_event(ev); in loop_wait()
269 free(ev); in loop_wait()
290 xcb_generic_event_t *ev = xcb_poll_for_event(c_); in loop_poll() local
[all …]

12345678910