| /third_party/libinput/test/ |
| D | libinput-test-suite.man | 1 .TH libinput-test-suite "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual" 3 libinput\-test\-suite \- run the libinput test suite 5 .B libinput test\-suite [OPTIONS] 10 .B "libinput test\-suite" 11 command runs the libinput test suite. 12 Its primary purpose is to verify distribution composes after package updates. Test 13 suite failures usually indicate missing patches and/or incompatible lower 16 .B The test suite should not be run by users. Data loss is possible. 18 The test suite must be run as root. The test suite installs several files 23 It is recommended that the test suite is run in a virtual machine and/or on [all …]
|
| D | litest.c | 52 #include <systemd/sd-bus.h> 61 #include "litest-int.h" 62 #include "libinput-util.h" 72 "/91-litest-fuzz-override-REMOVEME-XXXXXX.rules" 74 "/91-litest-test-device-REMOVEME-XXXXXXX.rules" 76 "/80-libinput-device-groups-litest-XXXXXX.rules" 95 of the test run */ 129 if (pipe(pipefd) == -1) in litest_backtrace() 160 while ((nread = read(pipefd[0], buf, sizeof(buf) - 1)) > 0) { in litest_backtrace() 243 struct test { struct [all …]
|
| D | test-device.c | 29 #include <libinput.h> 34 #include "libinput-util.h" 39 struct libinput_device *device; in START_TEST() local 42 device = dev->libinput_device; in START_TEST() 44 modes = libinput_device_config_send_events_get_modes(device); in START_TEST() 53 struct libinput_device *device; in START_TEST() local 56 device = dev->libinput_device; in START_TEST() 58 status = libinput_device_config_send_events_set_mode(device, in START_TEST() 67 struct libinput_device *device; in START_TEST() local 72 /* The wacom devices in the test suite are external */ in START_TEST() [all …]
|
| D | test-log.c | 29 #include <libinput.h> 36 static struct libinput *log_handler_context; 39 simple_log_handler(struct libinput *libinput, in simple_log_handler() argument 46 litest_assert_ptr_eq(libinput, log_handler_context); in simple_log_handler() 55 return fd < 0 ? -errno : fd; in open_restricted() 70 struct libinput *li; in START_TEST() 83 struct libinput *li; in START_TEST() 107 struct libinput *li; in START_TEST() 127 struct libinput *li; in START_TEST() 142 /* event0 exists on any box we care to run the test suite on and we in START_TEST() [all …]
|
| D | litest-device-generic-pressurepad.c | 27 #include "litest-int.h" 29 /* This is the same device as the one from 30 https://gitlab.freedesktop.org/libinput/libinput/-/issues/562 33 resolution to test the generic pressure handling. 45 { .type = -1, .code = -1 }, 56 { .type = -1, .code = -1 }, 64 /* Always set pressure to zero. The real device sends pressure in get_axis_default() 65 * values > 30 when the device is clicked but until this is a) in get_axis_default() 66 * handled by libinput and b) integrated into this test suite in get_axis_default() 100 -1, -1, [all …]
|
| D | litest-device-synaptics-pressurepad.c | 27 #include "litest-int.h" 30 * Device from https://gitlab.freedesktop.org/libinput/libinput/-/issues/562 32 * This device relies on a quirk to disable the pressure axis, resolution is 45 { .type = -1, .code = -1 }, 56 { .type = -1, .code = -1 }, 64 /* Always set pressure to zero. The real device sends pressure in get_axis_default() 65 * values > 30 when the device is clicked but until this is a) in get_axis_default() 66 * handled by libinput and b) integrated into this test suite in get_axis_default() 100 -1, -1, 113 { .value = -1 } [all …]
|
| D | litest.h | 25 #include "litest-config.h" 34 #include <libevdev/libevdev-uinput.h> 35 #include <libinput.h> 42 #include "check-double-macros.h" 44 #include "libinput-private-config.h" 45 #include "libinput-util.h" 50 struct litest_test_device *device; member 88 * litest itself needs the user_data to store some test-suite-specific 157 litest_abort_msg("litest_assert_int_* used for non-integer value\n"); \ 196 if (!((_a) op_ (_b)) && fabs((_a) - (_b)) > EPSILON) \ [all …]
|
| /third_party/libinput/doc/user/ |
| D | test-suite.rst | 1 .. _test-suite: 4 libinput test suite 7 libinput's primary test suite can be invoked with 11 $ sudo ./builddir/libinput-test-suite 13 When developing libinput, the ``libinput-test-suite`` should always be 15 the number of tests to run can be filtered, see :ref:`test-filtering`. 17 touchpad tap-to-click) while hacking on that specific feature and only run 18 the full suite when development is done finished. 20 .. note:: The test suite relies on udev and the kernel, specifically uinput. 22 interfere with your running session. The test suite is not suitable [all …]
|
| D | contributing.rst | 5 Contributing to libinput 9 So you want to contribute to libinput? Great! We'd love to help you be a part 15 ------------------------------------------------------------------------------ 17 ------------------------------------------------------------------------------ 19 As a freedesktop.org project, libinput follows the `freedesktop.org 27 ------------------------------------------------------------------------------ 29 ------------------------------------------------------------------------------ 32 `wayland-devel@lists.freedesktop.org 33 <https://lists.freedesktop.org/mailman/listinfo/wayland-devel>`_ mailing 36 For IRC, ping user ``whot`` (Peter Hutterer, the libinput maintainer) though [all …]
|
| D | meson.build | 2 sphinx = find_program('sphinx-build-3', 'sphinx-build', required : false) 4 …error('Program "sphinx-build" not found or not executable. Try building with -Ddocumentation=false… 18 git_version_page = vcs_tag(command : ['git', 'log', '-1', '--format=%H'], 32 # We can't use htaccess on the server, so let's auto-generate a 404 list 36 # File list is: [current-sphinx-input-file, old-generated-page] 39 [ 'absolute-axes.rst', 'absolute_axes.html'], 40 [ 'absolute-coordinate-ranges.rst', 'absolute_coordinate_ranges.html'], 43 [ 'button-debouncing.rst', 'button_debouncing.html'], 44 [ 'clickpad-softbuttons.rst', 'clickpad_softbuttons.html'], 48 [ 'device-configuration-via-udev.rst', 'udev_config.html'], [all …]
|
| D | development.rst | 10 libinput itself. 12 .. note:: If you use or work on libinput you should get in touch with the 13 libinput developers on the wayland-devel@lists.freedesktop.org 18 ------------------------------------------------------------------------------ 19 Using libinput as library 20 ------------------------------------------------------------------------------ 22 See :ref:`building_against` for information on how to integrate libinput 25 .. note:: **libinput's API documentation is available here:** 26 http://wayland.freedesktop.org/libinput/doc/latest/api/ 29 Topics below explain some behaviors of libinput. [all …]
|
| D | building.rst | 4 libinput build instructions 12 Instructions on how to build libinput and its tools and how to build against 13 libinput. 16 system-provided libinput with one from the git repository, see 21 ------------------------------------------------------------------------------ 22 Distribution repositories for libinput from git 23 ------------------------------------------------------------------------------ 25 Some distributions provide package repositories for users that want to test 26 the latest libinput without building it manually. 28 .. note:: The list below is provided for convenience. The libinput community [all …]
|
| /third_party/libinput/ |
| D | meson.build | 1 project('libinput', 'c', project 9 dir_data = get_option('prefix') / get_option('datadir') / 'libinput' 11 dir_overrides = get_option('prefix') / get_option('sysconfdir') / 'libinput' 12 dir_libexec = get_option('prefix') / get_option('libexecdir') / 'libinput' 17 dir_src_test = meson.current_source_dir() / 'test' 19 dir_gitlab_ci = meson.current_source_dir() / '.gitlab-ci' 21 dir_udev = get_option('udev-dir') 31 # We use libtool-version numbers because it's easier to understand. 44 libinput_so_version = '@0@.@1@.@2@'.format((libinput_lt_c - libinput_lt_a), 50 '-Wno-unused-parameter', [all …]
|
| D | .gitlab-ci.yml | 9 # To change the gitlab CI, edit .gitlab-ci/ci.template and/or .gitlab-ci/config.yaml 10 # and run ci-fairy generate-template. For details, see 11 # https://freedesktop.pages.freedesktop.org/ci-templates/ci-fairy.html#templating-gitlab-ci-yml 14 # - we really want to run dnf/apt/... only once, updating on the test runner for 18 # This is handled by the ci-templates, ensuring containers are only rebuilt 21 # - GitLab only allows one script: set per job but we have a bunch of commands 22 # we need to re-run for each build (meson && ninja && etc). YAML cannot merge 27 # MESON_ARGS=-Denable-something=true 28 # NINJA_ARGS=dist ... to run 'ninja -C builddir dist' 35 # e.g. fedora:31@build-default [all …]
|
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 8 http://www.apache.org/licenses/LICENSE-2.0 18 --> 19 <!-- OAT(OSS Audit Tool) configuration guide: 56 --> 62 …<policyitem type="compatibility" name="GPL-2.0+" path="include/linux/.*" desc="linux头文件属于uapi,可以使用… 63 …<policyitem type="compatibility" name="GPL-2.0-only WITH Linux-syscall-note" path="include/linux/.… 64 …<policyitem type="compatibility" name="GPL-2.0 WITH Linux-syscall-note" path="include/linux/.*" de… 74 … <filteritem type="filepath" name="test/libinput-test-suite.man" desc="三方开源,不需检测文件头是否遗漏版权声明"/> [all …]
|
| /third_party/libinput/tools/ |
| D | libinput.man | 1 .TH libinput "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual" 3 libinput \- tool to interface with libinput 5 .B libinput [\-\-help|\-\-version] \fI<command>\fR \fI[<args>]\fR 8 libinput is a library to handle input devices and provides device 9 detection and input device event processing for most Wayland 10 compositors and the X.Org xf86-input-libinput driver. 13 .B "libinput" 15 libinput. These tools create libinput contexts separate from that of 21 libinput's API documentation and details on features and various high-level 23 .I https://wayland.freedesktop.org/libinput/doc/latest/ [all …]
|
| /third_party/libinput/src/ |
| D | evdev-tablet.c | 25 #include "evdev-tablet.h" 26 #include "util-input-event.h" 42 detect out-of-range. 43 This value is higher during test suite runs */ 46 #define tablet_set_status(tablet_,s_) (tablet_)->status |= (s_) 47 #define tablet_unset_status(tablet_,s_) (tablet_)->status &= ~(s_) 48 #define tablet_has_status(tablet_,s_) (!!((tablet_)->status & (s_))) 55 const struct button_state *state = &tablet->button_state, in tablet_get_pressed_buttons() 56 *prev_state = &tablet->prev_button_state; in tablet_get_pressed_buttons() 58 for (i = 0; i < sizeof(buttons->bits); i++) in tablet_get_pressed_buttons() [all …]
|
| D | evdev-mt-touchpad.c | 2 * Copyright © 2014-2015 Red Hat, Inc. 36 #include "evdev-mt-touchpad.h" 37 #include "util-input-event.h" 55 (t->history.index - offset + TOUCHPAD_HISTORY_LENGTH) % in tp_motion_history_offset() 58 return &t->history.samples[offset_index]; in tp_motion_history_offset() 72 /* Convert to device units with x/y in the same resolution */ in tp_filter_motion() 75 return filter_dispatch(tp->device->pointer.filter, in tp_filter_motion() 90 /* Convert to device units with x/y in the same resolution */ in tp_filter_motion_unaccelerated() 93 return filter_dispatch_constant(tp->device->pointer.filter, in tp_filter_motion_unaccelerated() 108 /* Convert to device units with x/y in the same resolution */ in tp_filter_scroll() [all …]
|
| /third_party/libevdev/export_include/libevdev/ |
| D | libevdev.h | 1 /* SPDX-License-Identifier: MIT */ 42 * the \ref ioctls through type-safe interfaces and provides functions to change 43 * the appearance of the device. 49 * - https://gitlab.freedesktop.org/libevdev/libevdev 52 * [input-tools@lists.freedesktop.org](http://lists.freedesktop.org/mailman/listinfo/input-tools). 61 * some events. This causes the device to get out of sync with the process' 63 * has been received and that the state of the device is different to what is 65 * the actual state of the device as a set of events. See 72 * libevdev is signal-safe for the majority of its operations, i.e. many of 77 * Device handling [all …]
|
| /third_party/libevdev/libevdev/ |
| D | libevdev.h | 1 /* SPDX-License-Identifier: MIT */ 42 * the \ref ioctls through type-safe interfaces and provides functions to change 43 * the appearance of the device. 49 * - https://gitlab.freedesktop.org/libevdev/libevdev 52 * [input-tools@lists.freedesktop.org](http://lists.freedesktop.org/mailman/listinfo/input-tools). 61 * some events. This causes the device to get out of sync with the process' 63 * has been received and that the state of the device is different to what is 65 * the actual state of the device as a set of events. See 72 * libevdev is signal-safe for the majority of its operations, i.e. many of 77 * Device handling [all …]
|