Home
last modified time | relevance | path

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

12345678910>>...31

/third_party/alsa-lib/include/
Dseqmid.h48 #define snd_seq_ev_clear(ev) \ argument
49 memset(ev, 0, sizeof(snd_seq_event_t))
58 #define snd_seq_ev_set_tag(ev,t) \ argument
59 ((ev)->tag = (t))
71 #define snd_seq_ev_set_dest(ev,c,p) \ argument
72 ((ev)->dest.client = (c), (ev)->dest.port = (p))
82 #define snd_seq_ev_set_subs(ev) \ argument
83 ((ev)->dest.client = SND_SEQ_ADDRESS_SUBSCRIBERS,\
84 (ev)->dest.port = SND_SEQ_ADDRESS_UNKNOWN)
94 #define snd_seq_ev_set_broadcast(ev) \ argument
[all …]
Dseq.h519 int snd_seq_free_event(snd_seq_event_t *ev);
520 ssize_t snd_seq_event_length(snd_seq_event_t *ev);
521 int snd_seq_event_output(snd_seq_t *handle, snd_seq_event_t *ev);
522 int snd_seq_event_output_buffer(snd_seq_t *handle, snd_seq_event_t *ev);
523 int snd_seq_event_output_direct(snd_seq_t *handle, snd_seq_event_t *ev);
524 int snd_seq_event_input(snd_seq_t *handle, snd_seq_event_t **ev);
528 int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev);
642 #define snd_seq_type_check(ev,x) (snd_seq_event_types[(ev)->type] & _SND_SEQ_TYPE(x)) argument
645 #define snd_seq_ev_is_result_type(ev) \ argument
646 snd_seq_type_check(ev, SND_SEQ_EVFLG_RESULT)
[all …]
/third_party/alsa-lib/test/lsb/
Dmidi_event.c37 snd_seq_event_t ev; in test_decode() local
44 #define DECODE() snd_midi_event_decode(midi_event, buf, sizeof(buf), &ev) in test_decode()
48 snd_seq_ev_clear(&ev); in test_decode()
50 snd_seq_ev_set_fixed(&ev); in test_decode()
51 ev.type = SND_SEQ_EVENT_NONE; in test_decode()
54 snd_seq_ev_set_noteoff(&ev, 1, 2, 3); in test_decode()
57 snd_seq_ev_set_noteon(&ev, 4, 5, 6); in test_decode()
60 snd_seq_ev_set_keypress(&ev, 7, 8, 9); in test_decode()
63 snd_seq_ev_set_controller(&ev, 10, 11, 12); in test_decode()
66 snd_seq_ev_set_pgmchange(&ev, 13, 14); in test_decode()
[all …]
/third_party/flutter/engine/flutter/fml/synchronization/
Dwaitable_event_unittest.cc42 AutoResetWaitableEvent ev; in TEST() local
43 EXPECT_FALSE(ev.IsSignaledForTest()); in TEST()
44 ev.Signal(); in TEST()
45 EXPECT_TRUE(ev.IsSignaledForTest()); in TEST()
46 ev.Wait(); in TEST()
47 EXPECT_FALSE(ev.IsSignaledForTest()); in TEST()
48 ev.Reset(); in TEST()
49 EXPECT_FALSE(ev.IsSignaledForTest()); in TEST()
50 ev.Signal(); in TEST()
51 EXPECT_TRUE(ev.IsSignaledForTest()); in TEST()
[all …]
/third_party/python/Lib/test/
Dtest_kqueue.py29 ev = select.kevent(fd)
31 self.assertEqual(ev.ident, fd)
32 self.assertEqual(ev.filter, select.KQ_FILTER_READ)
33 self.assertEqual(ev.flags, select.KQ_EV_ADD)
34 self.assertEqual(ev.fflags, 0)
35 self.assertEqual(ev.data, 0)
36 self.assertEqual(ev.udata, 0)
37 self.assertEqual(ev, ev)
38 self.assertNotEqual(ev, other)
39 self.assertTrue(ev < other)
[all …]
/third_party/alsa-utils/seq/aseqdump/
Daseqdump.c131 static void dump_event(const snd_seq_event_t *ev) in dump_event() argument
133 printf("%3d:%-3d ", ev->source.client, ev->source.port); in dump_event()
134 switch (ev->type) { in dump_event()
136 if (ev->data.note.velocity) in dump_event()
138 ev->data.note.channel, ev->data.note.note, ev->data.note.velocity); in dump_event()
141 ev->data.note.channel, ev->data.note.note); in dump_event()
145 ev->data.note.channel, ev->data.note.note, ev->data.note.velocity); in dump_event()
149 ev->data.note.channel, ev->data.note.note, ev->data.note.velocity); in dump_event()
153 ev->data.control.channel, ev->data.control.param, ev->data.control.value); in dump_event()
157 ev->data.control.channel, ev->data.control.value); in dump_event()
[all …]
/third_party/boost/boost/thread/
Dexceptions.hpp50 thread_exception( int ev, const char * what_arg ) in thread_exception() argument
51 : base_type(system::error_code(ev, system::generic_category()), what_arg) in thread_exception()
54 thread_exception( int ev, const std::string & what_arg ) in thread_exception() argument
55 : base_type(system::error_code(ev, system::generic_category()), what_arg) in thread_exception()
79 condition_error( int ev ) in condition_error() argument
80 : base_type(system::error_code(ev, system::generic_category()), "Condition error") in condition_error()
83 condition_error( int ev, const char * what_arg ) in condition_error() argument
84 : base_type(system::error_code(ev, system::generic_category()), what_arg) in condition_error()
87 condition_error( int ev, const std::string & what_arg ) in condition_error() argument
88 : base_type(system::error_code(ev, system::generic_category()), what_arg) in condition_error()
[all …]
/third_party/typescript/tests/lib/
Dlib.d.ts4296 oncached: (ev: Event) => any;
4297 onchecking: (ev: Event) => any;
4298 ondownloading: (ev: Event) => any;
4299 onerror: (ev: Event) => any;
4300 onnoupdate: (ev: Event) => any;
4301 onobsolete: (ev: Event) => any;
4302 onprogress: (ev: ProgressEvent) => any;
4303 onupdateready: (ev: Event) => any;
4314 addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void;
4315 addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void;
[all …]
/third_party/alsa-lib/src/seq/
Dseq_midi_event.c57 typedef void (*event_encode_t)(snd_midi_event_t *dev, snd_seq_event_t *ev);
58 typedef void (*event_decode_t)(const snd_seq_event_t *ev, unsigned char *buf);
65 static void note_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
66 static void one_param_ctrl_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
67 static void pitchbend_ctrl_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
68 static void two_param_ctrl_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
69 static void one_param_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
70 static void songpos_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
71 static void note_decode(const snd_seq_event_t *ev, unsigned char *buf);
72 static void one_param_decode(const snd_seq_event_t *ev, unsigned char *buf);
[all …]
/third_party/boost/libs/system/test/
Dstd_interop_test.cpp45 int ev = ENOENT; in test_generic_category() local
47 BOOST_TEST_EQ( bt.message( ev ), st.message( ev ) ); in test_generic_category()
50 boost::system::error_code bc( ev, bt ); in test_generic_category()
52 BOOST_TEST_EQ( bc.value(), ev ); in test_generic_category()
57 BOOST_TEST_EQ( sc.value(), ev ); in test_generic_category()
62 boost::system::error_condition bn = bt.default_error_condition( ev ); in test_generic_category()
64 BOOST_TEST_EQ( bn.value(), ev ); in test_generic_category()
67 BOOST_TEST( bt.equivalent( ev, bn ) ); in test_generic_category()
71 BOOST_TEST_EQ( sn.value(), ev ); in test_generic_category()
74 BOOST_TEST( st.equivalent( ev, sn ) ); in test_generic_category()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/SystemUnitTests/
DSynchronizationTests.cpp24 sw::CountedEvent ev; in TEST() local
25 ASSERT_FALSE(ev.signalled()); in TEST()
30 sw::CountedEvent ev(true); in TEST() local
31 ASSERT_TRUE(ev.signalled()); in TEST()
36 sw::CountedEvent ev(true); in TEST() local
37 ev.reset(); in TEST()
38 ASSERT_FALSE(ev.signalled()); in TEST()
43 sw::CountedEvent ev; in TEST() local
44 ev.add(); in TEST()
45 ASSERT_FALSE(ev.signalled()); in TEST()
[all …]
/third_party/alsa-lib/test/
Dseq-decoder.c105 int decode_event(snd_seq_event_t * ev) in decode_event() argument
109 printf("EVENT>>> Type = %d, flags = 0x%x", ev->type, ev->flags); in decode_event()
110 switch (ev->flags & SND_SEQ_TIME_STAMP_MASK) { in decode_event()
113 ev->time.tick); in decode_event()
117 (int)ev->time.time.tv_sec, in decode_event()
118 (int)ev->time.time.tv_nsec); in decode_event()
123 ev->source.client, in decode_event()
124 ev->source.port, in decode_event()
125 ev->dest.client, in decode_event()
126 ev->dest.port, in decode_event()
[all …]
Dplaymidi1.c106 static void write_ev(snd_seq_event_t *ev) in write_ev() argument
111 rc = snd_seq_event_output(seq_handle, ev); in write_ev()
118 while ((rc = snd_seq_event_output(seq_handle, ev)) < 0) { in write_ev()
203 static void set_event_time(snd_seq_event_t *ev, unsigned int currtime) in set_event_time() argument
210 snd_seq_ev_schedule_real(ev, dest_queue, 0, &rtime); in set_event_time()
215 snd_seq_ev_schedule_tick(ev, dest_queue, 0, currtime); in set_event_time()
220 static void set_event_header(snd_seq_event_t *ev) in set_event_header() argument
222 snd_seq_ev_clear(ev); in set_event_header()
223 snd_seq_ev_set_dest(ev, dest_client, dest_port); in set_event_header()
224 snd_seq_ev_set_source(ev, my_port); in set_event_header()
[all …]
Dseq-sender.c114 snd_seq_event_t ev; in send_event() local
116 bzero(&ev, sizeof(ev)); in send_event()
117 ev.queue = queue; in send_event()
118 ev.source.client = ev.dest.client = client; in send_event()
119 ev.source.port = ev.dest.port = port; in send_event()
120 ev.flags = SND_SEQ_TIME_STAMP_REAL | SND_SEQ_TIME_MODE_ABS; in send_event()
121 ev.time.time.tv_sec = *time; (*time)++; in send_event()
122 ev.type = SND_SEQ_EVENT_ECHO; in send_event()
123 if ((err = snd_seq_event_output(handle, &ev))<0) in send_event()
125 ev.dest = *dest; in send_event()
[all …]
/third_party/alsa-utils/seq/aplaymidi/
Darecordmidi.c215 snd_seq_event_t ev; in metronome_note() local
216 snd_seq_ev_clear(&ev); in metronome_note()
217 snd_seq_ev_set_note(&ev, metronome_channel, note, metronome_velocity, 1); in metronome_note()
218 snd_seq_ev_schedule_tick(&ev, queue, 0, tick); in metronome_note()
219 snd_seq_ev_set_source(&ev, port_count); in metronome_note()
220 snd_seq_ev_set_subs(&ev); in metronome_note()
221 snd_seq_event_output(seq, &ev); in metronome_note()
226 snd_seq_event_t ev; in metronome_echo() local
227 snd_seq_ev_clear(&ev); in metronome_echo()
228 ev.type = SND_SEQ_EVENT_USR0; in metronome_echo()
[all …]
Daplaymidi.c611 static void handle_big_sysex(snd_seq_event_t *ev) in handle_big_sysex() argument
617 length = ev->data.ext.len; in handle_big_sysex()
619 ev->data.ext.len = MIDI_BYTES_PER_SEC; in handle_big_sysex()
620 event_size = snd_seq_event_length(ev); in handle_big_sysex()
628 err = snd_seq_event_output(seq, ev); in handle_big_sysex()
636 ev->data.ext.ptr = (char *)ev->data.ext.ptr + MIDI_BYTES_PER_SEC; in handle_big_sysex()
639 ev->data.ext.len = length; in handle_big_sysex()
644 snd_seq_event_t ev; in play_midi() local
659 snd_seq_ev_clear(&ev); in play_midi()
660 ev.queue = queue; in play_midi()
[all …]
/third_party/weston/libweston/backend-drm/
Dstate-propose.c167 drm_output_plane_cursor_has_valid_format(struct weston_view *ev) in drm_output_plane_cursor_has_valid_format() argument
170 wl_shm_buffer_get(ev->surface->buffer_ref.buffer->resource); in drm_output_plane_cursor_has_valid_format()
181 struct weston_view *ev, in drm_output_prepare_overlay_view() argument
196 " couldn't get fb\n", ev); in drm_output_prepare_overlay_view()
204 state->ev = ev; in drm_output_prepare_overlay_view()
207 if (!drm_plane_state_coords_for_view(state, ev, zpos)) { in drm_output_prepare_overlay_view()
209 "unsuitable transform\n", ev); in drm_output_prepare_overlay_view()
218 if (ev->surface->acquire_fence_fd >= 0 && in drm_output_prepare_overlay_view()
221 "no in-fence support\n", ev); in drm_output_prepare_overlay_view()
232 state->in_fence_fd = ev->surface->acquire_fence_fd; in drm_output_prepare_overlay_view()
[all …]
/third_party/node/test/parallel/
Dtest-eventtarget.js40 const ev = new Event('foo'); constant
41 strictEqual(ev.type, 'foo');
42 strictEqual(ev.cancelable, false);
43 strictEqual(ev.defaultPrevented, false);
44 strictEqual(typeof ev.timeStamp, 'number');
47 deepStrictEqual(ev.composedPath(), []);
48 strictEqual(ev.returnValue, true);
49 strictEqual(ev.bubbles, false);
50 strictEqual(ev.composed, false);
51 strictEqual(ev.isTrusted, false);
[all …]
/third_party/libinput/tools/
Dlibinput-debug-events.c57 print_event_header(struct libinput_event *ev) in print_event_header() argument
61 struct libinput_device *dev = libinput_event_get_device(ev); in print_event_header()
65 switch(libinput_event_get_type(ev)) { in print_event_header()
232 print_device_notify(struct libinput_event *ev) in print_device_notify() argument
234 struct libinput_device *dev = libinput_event_get_device(ev); in print_device_notify()
284 if (libinput_event_get_type(ev) == LIBINPUT_EVENT_DEVICE_ADDED) in print_device_notify()
292 print_key_event(struct libinput *li, struct libinput_event *ev) in print_key_event() argument
294 struct libinput_event_keyboard *k = libinput_event_get_keyboard_event(ev); in print_key_event()
317 print_motion_event(struct libinput_event *ev) in print_motion_event() argument
319 struct libinput_event_pointer *p = libinput_event_get_pointer_event(ev); in print_motion_event()
[all …]
/third_party/toybox/toys/posix/
Denv.c33 char **ev = toys.optargs; in env_main() local
37 if (*ev && **ev == '-' && !(*ev)[1]) { in env_main()
39 ev++; in env_main()
45 for (; *ev; ev++) in env_main()
46 if (strchr(*ev, '=')) xsetenv(xstrdup(*ev), 0); in env_main()
50 xexec(ev); in env_main()
53 for (ev = environ; *ev; ev++) xprintf("%s%c", *ev, '\n'*!FLAG(0)); in env_main()
/third_party/libinput/test/
Dtest-touch.c90 struct libinput_event *ev; in START_TEST() local
113 while ((ev = libinput_get_event(libinput))) { in START_TEST()
114 if (libinput_event_get_type(ev) != LIBINPUT_EVENT_TOUCH_DOWN) { in START_TEST()
115 libinput_event_destroy(ev); in START_TEST()
119 tev = libinput_event_get_touch_event(ev); in START_TEST()
127 libinput_event_destroy(ev); in START_TEST()
142 struct libinput_event *ev; in touch_assert_seat_slot() local
146 ev = libinput_get_event(li); in touch_assert_seat_slot()
147 tev = litest_is_touch_event(ev, type); in touch_assert_seat_slot()
152 libinput_event_destroy(ev); in touch_assert_seat_slot()
[all …]
/third_party/mtdev/test/
Dmtdev-test.c43 static int use_event(const struct input_event *ev) in use_event() argument
46 return ev->type == EV_ABS && mtdev_is_absmt(ev->code); in use_event()
52 static void print_event(const struct input_event *ev) in print_event() argument
56 mstime_t evtime = ev->input_event_usec / ms + ev->input_event_sec * ms; in print_event()
57 if (ev->type == EV_ABS && ev->code == ABS_MT_SLOT) in print_event()
58 slot = ev->value; in print_event()
60 evtime, slot, ev->type, ev->code, ev->value); in print_event()
88 struct input_event ev; in loop_device() local
98 while (mtdev_get(&dev, fd, &ev, 1) > 0) { in loop_device()
99 if (use_event(&ev)) in loop_device()
[all …]
/third_party/boost/libs/process/test/
Denvironment.cpp29 bp::environment ev ; variable
30 BOOST_CHECK(ev.empty());
31 BOOST_CHECK_EQUAL(ev.size(), 0u);
32 BOOST_CHECK_EQUAL(ev.end() - ev.begin(), 0);
33 ev["Thingy"] = "My value";
35 BOOST_CHECK(!ev.empty());
36 BOOST_CHECK_EQUAL(ev.size(), 1u);
37 BOOST_CHECK_EQUAL(ev.end() - ev.begin(), 1);
39 for (auto x : ev)
45 ev["Thingy"].clear();
[all …]
/third_party/grpc/test/core/iomgr/
Dresource_quota_test.cc50 grpc_closure* set_event(gpr_event* ev) { in set_event() argument
51 return GRPC_CLOSURE_CREATE(set_event_cb, ev, grpc_schedule_on_exec_ctx); in set_event()
155 gpr_event ev; in test_simple_async_alloc() local
156 gpr_event_init(&ev); in test_simple_async_alloc()
158 GPR_ASSERT(!grpc_resource_user_alloc(usr, 1024, set_event(&ev))); in test_simple_async_alloc()
160 GPR_ASSERT(gpr_event_wait(&ev, grpc_timeout_seconds_to_deadline(5)) != in test_simple_async_alloc()
183 gpr_event ev; in test_async_alloc_blocked_by_size() local
184 gpr_event_init(&ev); in test_async_alloc_blocked_by_size()
187 GPR_ASSERT(!grpc_resource_user_alloc(usr, 1024, set_event(&ev))); in test_async_alloc_blocked_by_size()
190 &ev, grpc_timeout_milliseconds_to_deadline(100)) == nullptr); in test_async_alloc_blocked_by_size()
[all …]
/third_party/mtdev/src/
Dcore.c159 struct input_event ev; in process_typeA() local
164 evbuf_get(&state->inbuf, &ev); in process_typeA()
166 switch (ev.type) { in process_typeA()
168 switch (ev.code) { in process_typeA()
180 switch (ev.code) { in process_typeA()
187 if (size < DIM_FINGER && mtdev_is_absmt(ev.code)) { in process_typeA()
188 mtcode = mtdev_abs2mt(ev.code); in process_typeA()
189 set_sval(&data[size], mtcode, ev.value); in process_typeA()
197 evbuf_put(&state->outbuf, &ev); in process_typeA()
211 struct input_event ev; in process_typeB() local
[all …]

12345678910>>...31