Home
last modified time | relevance | path

Searched refs:strneq (Results 1 – 14 of 14) sorted by relevance

/third_party/libinput/src/
Dutil-strings.h58 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()
Dquirks.c528 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()
Dudev-seat.c187 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()
Dutil-prop-parsers.c307 if (strneq(s, "EV_", 3)) { in parse_evcode_string()
/third_party/libinput/test/
Dlitest-device-keyboard-all-codes.c60 if (name && strneq(name, "BTN_", 4)) in all_codes_create()
Dtest-utils.c1415 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()
Dtest-keyboard.c347 if (!name || !strneq(name, "KEY_", 4)) in START_TEST()
Dtest-udev.c491 ck_assert(strneq(sysname, "event", 5)); in START_TEST()
Dtest-device.c1671 !strneq(keyname, "BTN_", 4) || in START_TEST()
1672 strneq(keyname, "BTN_TOOL_", 9)) in START_TEST()
Dtest-path.c497 ck_assert(strneq(sysname, "event", 5)); in START_TEST()
Dlitest.c757 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/
Dlibinput-record.c1365 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()
Dlibinput-quirks.c202 if (strneq(path, "/sys/", 5)) { in main()
Dshared.c488 if (!strneq("event", sysname, 5)) { in find_device()