/third_party/libinput/src/ |
D | util-strings.h | 58 strneq(const char *str1, const char *str2, int n) in strneq() function 387 return strneq(&str[offset], suffix, suffixlen); in strendswith() 395 return prefixlen > 0 ? strneq(str, prefix, strlen(prefix)) : false; in strstartswith()
|
D | quirks.c | 528 return strneq(value, "0x", 2) && in parse_hex() 603 if (!strneq(value, "dmi:", 4)) { in parse_match() 661 assert(strneq(key, "Model", 5)); in parse_model() 902 if (strneq(key, "Match", 5)) in parse_value_line() 904 else if (strneq(key, "Model", 5)) in parse_value_line() 906 else if (strneq(key, "Attr", 4)) in parse_value_line() 1034 if (!strneq(line, "Match", 5)) { in parse_file() 1042 if (!strneq(line, "Match", 5)) in parse_file() 1046 if (strneq(line, "Match", 5)) { in parse_file()
|
D | udev-seat.c | 187 if (!strneq("event", sysname, 5)) { in udev_input_add_devices() 231 if (!strneq("event", udev_device_get_sysname(udev_device), 5)) in evdev_udev_handler()
|
D | util-prop-parsers.c | 307 if (strneq(s, "EV_", 3)) { in parse_evcode_string()
|
/third_party/libinput/test/ |
D | litest-device-keyboard-all-codes.c | 60 if (name && strneq(name, "BTN_", 4)) in all_codes_create()
|
D | test-utils.c | 1415 ck_assert(strneq("", "", 1) == true); in START_TEST() 1416 ck_assert(strneq(NULL, NULL, 1) == true); in START_TEST() 1417 ck_assert(strneq("0.0.1", "", 6) == false); in START_TEST() 1418 ck_assert(strneq("foo", NULL, 5) == false); in START_TEST() 1419 ck_assert(strneq(NULL, "foo", 5) == false); in START_TEST() 1420 ck_assert(strneq("0.0.1", "0.0.1", 6) == true); in START_TEST()
|
D | test-keyboard.c | 347 if (!name || !strneq(name, "KEY_", 4)) in START_TEST()
|
D | test-udev.c | 491 ck_assert(strneq(sysname, "event", 5)); in START_TEST()
|
D | test-device.c | 1671 !strneq(keyname, "BTN_", 4) || in START_TEST() 1672 strneq(keyname, "BTN_TOOL_", 9)) in START_TEST()
|
D | test-path.c | 497 ck_assert(strneq(sysname, "event", 5)); in START_TEST()
|
D | litest.c | 757 if (strneq(kv->key, "EVDEV_ABS_", 10)) in litest_init_device_udev_rules() 824 if (strneq(path, prefix, strlen(prefix))) { in open_restricted()
|
/third_party/libinput/tools/ |
D | libinput-record.c | 1365 if (!distro && strneq(osrstr, "ID=", 3)) in print_system_header() 1367 else if (!version && strneq(osrstr, "VERSION_ID=", 11)) in print_system_header() 1721 if (strneq(key, "ID_INPUT", 8) || in print_udev_properties() 1722 strneq(key, "LIBINPUT", 8) || in print_udev_properties() 1723 strneq(key, "EVDEV_ABS", 9) || in print_udev_properties() 1724 strneq(key, "MOUSE_DPI", 9) || in print_udev_properties() 1725 strneq(key, "POINTINGSTICK_", 14)) { in print_udev_properties() 1861 return strneq(dir->d_name, "event", 5); in is_event_node() 2561 if (strneq(path, "/dev", 4)) in is_char_dev()
|
D | libinput-quirks.c | 202 if (strneq(path, "/sys/", 5)) { in main()
|
D | shared.c | 488 if (!strneq("event", sysname, 5)) { in find_device()
|