Home
last modified time | relevance | path

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

12345678910>>...13

/external/python/cpython2/Lib/test/
Dtest_kqueue.py26 ev = select.kevent(fd)
28 self.assertEqual(ev.ident, fd)
29 self.assertEqual(ev.filter, select.KQ_FILTER_READ)
30 self.assertEqual(ev.flags, select.KQ_EV_ADD)
31 self.assertEqual(ev.fflags, 0)
32 self.assertEqual(ev.data, 0)
33 self.assertEqual(ev.udata, 0)
34 self.assertEqual(ev, ev)
35 self.assertNotEqual(ev, other)
36 self.assertEqual(cmp(ev, other), -1)
[all …]
/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/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/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/libcxx/src/
Dsystem_error.cpp43 error_category::default_error_condition(int ev) const _NOEXCEPT in default_error_condition()
45 return error_condition(ev, *this); in default_error_condition()
66 string do_strerror_r(int ev);
69 string do_strerror_r(int ev) { in do_strerror_r() argument
71 if (::strerror_s(buffer, strerror_buff_size, ev) == 0) in do_strerror_r()
73 std::snprintf(buffer, strerror_buff_size, "unknown error %d", ev); in do_strerror_r()
79 string do_strerror_r(int ev) { in do_strerror_r() argument
81 char* ret = ::strerror_r(ev, buffer, strerror_buff_size); in do_strerror_r()
86 string do_strerror_r(int ev) { in do_strerror_r() argument
90 if ((ret = ::strerror_r(ev, buffer, strerror_buff_size)) != 0) { in do_strerror_r()
[all …]
/external/libchrome/base/synchronization/
Dwaitable_event_unittest.cc59 WaitableEvent* ev[5]; in TEST() local
61 ev[i] = new WaitableEvent(WaitableEvent::ResetPolicy::AUTOMATIC, in TEST()
65 ev[3]->Signal(); in TEST()
66 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
68 ev[3]->Signal(); in TEST()
69 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
71 ev[4]->Signal(); in TEST()
72 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 4u); in TEST()
74 ev[0]->Signal(); in TEST()
75 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 0u); in TEST()
[all …]
/external/toybox/toys/posix/
Denv.c35 char **ev = toys.optargs; in env_main() local
38 if (*ev && **ev == '-' && !(*ev)[1]) { in env_main()
40 ev++; in env_main()
49 for (; *ev; ev++) { in env_main()
50 char *name = *ev, *val = strchr(name, '='); in env_main()
55 } else xexec(ev); in env_main()
58 if (environ) for (ev = environ; *ev; ev++) in env_main()
59 xprintf("%s%c", *ev, '\n'*!(toys.optflags*FLAG_0)); in env_main()
/external/tinyalsa/
Dmixer.c304 struct snd_ctl_elem_value ev; in mixer_ctl_get_value() local
310 memset(&ev, 0, sizeof(ev)); in mixer_ctl_get_value()
311 ev.id.numid = ctl->info->id.numid; in mixer_ctl_get_value()
312 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_ELEM_READ, &ev); in mixer_ctl_get_value()
318 return !!ev.value.integer.value[id]; in mixer_ctl_get_value()
321 return ev.value.integer.value[id]; in mixer_ctl_get_value()
324 return ev.value.enumerated.item[id]; in mixer_ctl_get_value()
327 return ev.value.bytes.data[id]; in mixer_ctl_get_value()
343 struct snd_ctl_elem_value ev; in mixer_ctl_get_array() local
363 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/strace/tests/
Depoll_ctl.c12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) in invoke_syscall() argument
15 fd, (unsigned long) ev); in invoke_syscall()
21 TAIL_ALLOC_OBJECT_CONST_PTR(struct epoll_event, ev); in main()
22 ev->events = EPOLLIN; in main()
24 long rc = invoke_syscall(-1U, EPOLL_CTL_ADD, -2U, ev); in main()
27 ev->data.u32, ev->data.u64, rc, errno2name()); in main()
29 rc = invoke_syscall(-3U, EPOLL_CTL_DEL, -4U, ev); in main()
31 ev, rc, errno2name()); in main()
/external/strace/tests-mx32/
Depoll_ctl.c12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) in invoke_syscall() argument
15 fd, (unsigned long) ev); in invoke_syscall()
21 TAIL_ALLOC_OBJECT_CONST_PTR(struct epoll_event, ev); in main()
22 ev->events = EPOLLIN; in main()
24 long rc = invoke_syscall(-1U, EPOLL_CTL_ADD, -2U, ev); in main()
27 ev->data.u32, ev->data.u64, rc, errno2name()); in main()
29 rc = invoke_syscall(-3U, EPOLL_CTL_DEL, -4U, ev); in main()
31 ev, rc, errno2name()); in main()
/external/strace/tests-m32/
Depoll_ctl.c12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) in invoke_syscall() argument
15 fd, (unsigned long) ev); in invoke_syscall()
21 TAIL_ALLOC_OBJECT_CONST_PTR(struct epoll_event, ev); in main()
22 ev->events = EPOLLIN; in main()
24 long rc = invoke_syscall(-1U, EPOLL_CTL_ADD, -2U, ev); in main()
27 ev->data.u32, ev->data.u64, rc, errno2name()); in main()
29 rc = invoke_syscall(-3U, EPOLL_CTL_DEL, -4U, ev); in main()
31 ev, rc, errno2name()); in 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/mesa3d/src/gallium/state_trackers/clover/core/
Devent.cpp32 for (auto &ev : deps) in event() local
33 ev.chain(*this); in event()
59 for (event &ev : evs) in trigger()
60 ev.trigger(); in trigger()
80 for (event &ev : evs) in abort()
81 ev.abort(status); in abort()
97 event::chain(event &ev) { in chain() argument
99 std::unique_lock<std::mutex> lock_ev(ev.mutex, std::defer_lock); in chain()
103 ev.wait_count++; in chain()
104 _chain.push_back(ev); in chain()
[all …]
/external/strace/
Depoll.c56 const struct epoll_event *ev = elem_buf; in print_epoll_event() local
59 printflags(epollevents, ev->events, "EPOLL???"); in print_epoll_event()
63 ev->data.u32, ev->data.u64); in print_epoll_event()
79 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(tcp, &ev, sizeof(ev), 0); in SYS_FUNC()
95 struct epoll_event ev; in epoll_wait_common() local
96 print_array(tcp, tcp->u_arg[1], tcp->u_rval, &ev, sizeof(ev), in epoll_wait_common()
/external/mesa3d/src/gallium/state_trackers/clover/api/
Devent.cpp65 for (auto &ev : evs) { in clWaitForEvents() local
66 if (ev.context() != evs.front().context()) in clWaitForEvents()
69 if (ev.status() < 0) in clWaitForEvents()
90 auto &ev = obj(d_ev); in clGetEventInfo() local
94 buf.as_scalar<cl_command_queue>() = desc(ev.queue()); in clGetEventInfo()
98 buf.as_scalar<cl_context>() = desc(ev.context()); in clGetEventInfo()
102 buf.as_scalar<cl_command_type>() = ev.command(); in clGetEventInfo()
106 buf.as_scalar<cl_int>() = ev.status(); in clGetEventInfo()
110 buf.as_scalar<cl_uint>() = ev.ref_count(); in clGetEventInfo()
127 auto &ev = obj(d_ev); in clSetEventCallback() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
Dsystem_error.cpp30 error_category::default_error_condition(int ev) const { in default_error_condition()
31 return error_condition(ev, *this); in default_error_condition()
45 _do_message::message(int ev) const { in message()
46 return std::string(sys::StrError(ev)); in message()
52 virtual std::string message(int ev) const;
61 _generic_error_category::message(int ev) const { in message()
63 if (ev > ELAST) in message()
66 return _do_message::message(ev); in message()
78 virtual std::string message(int ev) const;
79 virtual error_condition default_error_condition(int ev) const;
/external/toybox/toys/android/
Dsendevent.c26 struct input_event ev; in sendevent_main() local
31 memset(&ev, 0, sizeof(ev)); in sendevent_main()
33 ev.type = atoi(toys.optargs[1]); in sendevent_main()
34 ev.code = atoi(toys.optargs[2]); in sendevent_main()
35 ev.value = atoi(toys.optargs[3]); in sendevent_main()
36 xwrite(fd, &ev, sizeof(ev)); in sendevent_main()
/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/icu/icu4c/source/data/locales/
Det.txt518 "pühapäev",
519 "esmaspäev",
520 "teisipäev",
521 "kolmapäev",
522 "neljapäev",
524 "laupäev",
556 "pühapäev",
557 "esmaspäev",
558 "teisipäev",
559 "kolmapäev",
[all …]

12345678910>>...13