Home
last modified time | relevance | path

Searched refs:queue_num_elements (Results 1 – 4 of 4) sorted by relevance

/third_party/libevdev/test/
Dtest-int-queue.c37 ck_assert_int_eq(queue_num_elements(&dev), 0); in START_TEST()
42 ck_assert_int_eq(queue_num_elements(&dev), 0); in START_TEST()
48 ck_assert_int_eq(queue_num_elements(&dev), 0); in START_TEST()
66 ck_assert_int_eq(queue_num_elements(&dev), 1); in START_TEST()
95 ck_assert_int_eq(queue_num_elements(&dev), 1); in START_TEST()
104 ck_assert_int_eq(queue_num_elements(&dev), 0); in START_TEST()
134 ck_assert_int_eq(queue_num_elements(&dev), 1); in START_TEST()
150 ck_assert_int_eq(queue_num_elements(&dev), 2); in START_TEST()
276 ck_assert_int_eq(queue_num_elements(&dev), 0); in START_TEST()
283 ck_assert_int_eq(queue_num_elements(&dev), 1); in START_TEST()
/third_party/libevdev/libevdev/
Dlibevdev.c865 queue_set_num_elements(dev, queue_num_elements(dev) + nev); in read_more_events()
880 queue_shift_multiple(dev, queue_num_elements(dev), NULL); in drain_events()
892 nelem = queue_num_elements(dev); in drain_events()
949 dev->queue_nsync = queue_num_elements(dev); in sync_state()
1168 if (queue_num_elements(dev) == 0) { in libevdev_next_event()
1222 if (queue_num_elements(dev) != 0) in libevdev_has_event_pending()
Dlibevdev-int.h240 queue_num_elements(struct libevdev *dev) in queue_num_elements() function
/third_party/libevdev/
Dthird_party_libevdev.diff26429 + ck_assert_int_eq(queue_num_elements(&dev), 0);
26434 + ck_assert_int_eq(queue_num_elements(&dev), 0);
26440 + ck_assert_int_eq(queue_num_elements(&dev), 0);
26458 + ck_assert_int_eq(queue_num_elements(&dev), 1);
26487 + ck_assert_int_eq(queue_num_elements(&dev), 1);
26496 + ck_assert_int_eq(queue_num_elements(&dev), 0);
26526 + ck_assert_int_eq(queue_num_elements(&dev), 1);
26542 + ck_assert_int_eq(queue_num_elements(&dev), 2);
26668 + ck_assert_int_eq(queue_num_elements(&dev), 0);
26675 + ck_assert_int_eq(queue_num_elements(&dev), 1);