Home
last modified time | relevance | path

Searched refs:input_event (Results 1 – 20 of 20) sorted by relevance

/external/oss-fuzz/projects/libyaml/
Dlibyaml_deconstructor_alt_fuzzer.c40 yaml_event_t input_event; in LLVMFuzzerTestOneInput() local
91 if (!yaml_parser_parse(&parser, &input_event)) in LLVMFuzzerTestOneInput()
96 done = (input_event.type == YAML_STREAM_END_EVENT); in LLVMFuzzerTestOneInput()
109 switch (input_event.type) { in LLVMFuzzerTestOneInput()
130 if (input_event.data.stream_start.encoding) { in LLVMFuzzerTestOneInput()
131 yaml_encoding_t encoding = input_event.data.stream_start.encoding; in LLVMFuzzerTestOneInput()
197 if (input_event.data.document_start.version_directive) { in LLVMFuzzerTestOneInput()
199 input_event.data.document_start.version_directive; in LLVMFuzzerTestOneInput()
254 if (input_event.data.document_start.tag_directives.start != in LLVMFuzzerTestOneInput()
255 input_event.data.document_start.tag_directives.end) { in LLVMFuzzerTestOneInput()
[all …]
Dlibyaml_deconstructor_fuzzer.c40 yaml_event_t input_event; in LLVMFuzzerTestOneInput() local
93 if (!yaml_parser_parse(&parser, &input_event)) in LLVMFuzzerTestOneInput()
98 done = (input_event.type == YAML_STREAM_END_EVENT); in LLVMFuzzerTestOneInput()
111 switch (input_event.type) { in LLVMFuzzerTestOneInput()
134 if (input_event.data.stream_start.encoding) { in LLVMFuzzerTestOneInput()
135 yaml_encoding_t encoding = input_event.data.stream_start.encoding; in LLVMFuzzerTestOneInput()
210 if (input_event.data.document_start.version_directive) { in LLVMFuzzerTestOneInput()
212 input_event.data.document_start.version_directive; in LLVMFuzzerTestOneInput()
280 if (input_event.data.document_start.tag_directives.start != in LLVMFuzzerTestOneInput()
281 input_event.data.document_start.tag_directives.end) { in LLVMFuzzerTestOneInput()
[all …]
/external/crosvm/devices/src/virtio/input/
Devent_source.rs11 use linux_input_sys::{input_event, virtio_input_event, InputEventDecoder};
109 evt = input_event::from_virtio_input_event(vio_evt); in send_event()
199 evt_source_impl: EventSourceImpl::new(source, 16 * input_event::SIZE), in new()
223 self.evt_source_impl.receive_events::<input_event>() in receive_events()
248 use crate::virtio::input::event_source::{input_event, virtio_input_event, EventSourceImpl};
255 fn new(evts: &Vec<input_event>) -> SourceMock { in new()
302 source.receive_events::<input_event>().unwrap(), in empty_receive()
313 fn instantiate_input_events(count: usize) -> Vec<input_event> { in instantiate_input_events() argument
314 let mut ret: Vec<input_event> = Vec::with_capacity(count); in instantiate_input_events()
316 ret.push(input_event { in instantiate_input_events()
[all …]
/external/ltp/testcases/kernel/input/
Dinput06.c40 struct input_event events[64];
113 static int check_event(struct input_event *iev, int event, int code, int value) in check_event()
127 if (rd % sizeof(struct input_event) != 0) { in read_events()
129 rd, sizeof(struct input_event)); in read_events()
133 num_events = rd / sizeof(struct input_event); in read_events()
141 static struct input_event *next_event(void) in next_event()
149 static int parse_autorepeat_config(struct input_event *iev) in parse_autorepeat_config()
166 static int parse_key(struct input_event *iev) in parse_key()
202 struct input_event *iev; in check_events()
Dinput01.c35 static int verify_data(struct input_event *iev, int nb);
102 struct input_event iev[64]; in check_events()
112 if (rd == 0 || rd % sizeof(struct input_event)) { in check_events()
117 for (i = 0; i < rd / sizeof(struct input_event); i++) { in check_events()
126 static int verify_data(struct input_event *iev, int nb) in verify_data()
Dinput_helper.h32 int check_event_code(struct input_event *iev, int event, int code);
33 int check_sync_event(struct input_event *iev);
Dinput_helper.c172 struct input_event ev = { in send_event()
232 int check_event_code(struct input_event *iev, int event, int code) in check_event_code()
237 int check_sync_event(struct input_event *iev) in check_sync_event()
253 struct input_event ev; in no_events_queued()
/external/crosvm/linux_input_sys/src/
Dlib.rs36 pub struct input_event { struct
43 unsafe impl DataInit for input_event {} implementation
45 impl input_event { implementation
46 pub fn from_virtio_input_event(other: &virtio_input_event) -> input_event { in from_virtio_input_event() argument
47 input_event { in from_virtio_input_event()
56 impl InputEventDecoder for input_event { implementation
61 struct Aligner([u8; input_event::SIZE]); in decode()
62 let data_aligned = Aligner(*<[u8; input_event::SIZE]>::from_slice(data).unwrap()); in decode()
/external/autotest/client/site_tests/hardware_Keyboard/src/
Devtest.c321 struct input_event ev[64]; in do_single_key_capture()
326 rd = read(fd, ev, sizeof(struct input_event) * 64); in do_single_key_capture()
328 if (rd < (int) sizeof(struct input_event)) { in do_single_key_capture()
333 for (i = 0; i < rd / sizeof(struct input_event); i++) in do_single_key_capture()
394 struct input_event ev[64]; in do_evtest_dumpall()
444 rd = read(fd, ev, sizeof(struct input_event) * 64); in do_evtest_dumpall()
446 if (rd < (int) sizeof(struct input_event)) { in do_evtest_dumpall()
451 for (i = 0; i < rd / sizeof(struct input_event); i++) in do_evtest_dumpall()
488 struct input_event ev[64]; in main()
/external/toybox/toys/android/
Dsendevent.c26 struct input_event ev; in sendevent_main()
/external/libkmsxx/utils/
Dkmstouch.cpp127 static void handle_event(struct input_event& ev, DumbFramebuffer* fb) in handle_event()
284 struct input_event ev { in main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c114 struct input_event event; in main()
/external/adhd/cras/src/server/
Dcras_alsa_jack.c361 static inline int is_audio_switch_event(const struct input_event *ev, in is_audio_switch_event()
388 struct input_event ev[64]; in gpio_switch_callback()
391 ARRAY_SIZE(ev) * sizeof(struct input_event)); in gpio_switch_callback()
395 for (i = 0; i < r / sizeof(struct input_event); ++i) in gpio_switch_callback()
/external/libxkbcommon/tools/
Dinteractive-evdev.c296 struct input_event evs[16]; in read_keyboard()
300 const size_t nevs = len / sizeof(struct input_event); in read_keyboard()
/external/cros/system_api/
Dsystem_api.gyp40 '<(proto_in_dir)/input_event.proto',
59 '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/input_event.pb.cc',
/external/kernel-headers/original/uapi/linux/
Dinput.h28 struct input_event { struct
/external/igt-gpu-tools/tests/
Dtestdisplay.c551 static gboolean input_event(GIOChannel *source, GIOCondition condition, in input_event() function
755 ret = g_io_add_watch(stdinchannel, G_IO_IN | G_IO_ERR, input_event, in igt_simple_main_args()
/external/igt-gpu-tools/tools/
Dintel_dp_compliance.c950 static gboolean input_event(GIOChannel *source, GIOCondition condition, in input_event() function
1095 ret = g_io_add_watch(stdinchannel, G_IO_IN | G_IO_ERR, input_event, in main()
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs180 pub struct input_event {
/external/rust/crates/libc/src/fuchsia/
Dmod.rs600 pub struct input_event {