Lines Matching refs:fake_dev
11 static const struct device fake_dev; variable
26 if (evt->dev == &fake_dev && evt->code == message_count_filtered) { in input_cb_filtered()
32 INPUT_CALLBACK_DEFINE(&fake_dev, input_cb_filtered, NULL);
62 ret = input_report_key(&fake_dev, i, 1, false, K_FOREVER); in ZTEST()
75 ret = input_report_key(&fake_dev, 0, 1, false, K_NO_WAIT); in ZTEST()
91 if (evt->dev == &fake_dev) { in input_cb_filtered()
95 INPUT_CALLBACK_DEFINE(&fake_dev, input_cb_filtered, NULL);
110 ret = input_report_key(&fake_dev, 0, 1, false, K_FOREVER); in ZTEST()
132 ret = input_report_key(&fake_dev, INPUT_KEY_A, 1, false, K_FOREVER); in ZTEST()
134 zassert_equal(last_event.dev, &fake_dev); in ZTEST()
140 ret = input_report_key(&fake_dev, INPUT_KEY_B, 1234, true, K_FOREVER); in ZTEST()
142 zassert_equal(last_event.dev, &fake_dev); in ZTEST()
148 ret = input_report_abs(&fake_dev, INPUT_ABS_X, 100, false, K_FOREVER); in ZTEST()
150 zassert_equal(last_event.dev, &fake_dev); in ZTEST()
156 ret = input_report_rel(&fake_dev, INPUT_REL_Y, -100, true, K_FOREVER); in ZTEST()
158 zassert_equal(last_event.dev, &fake_dev); in ZTEST()
164 ret = input_report(&fake_dev, INPUT_EV_MSC, INPUT_MSC_SCAN, 0x12341234, true, K_FOREVER); in ZTEST()
166 zassert_equal(last_event.dev, &fake_dev); in ZTEST()
172 ret = input_report(&fake_dev, INPUT_EV_VENDOR_START, 0xaaaa, 0xaaaaaaaa, true, K_FOREVER); in ZTEST()
174 zassert_equal(last_event.dev, &fake_dev); in ZTEST()
180 ret = input_report(&fake_dev, INPUT_EV_VENDOR_STOP, 0x5555, 0x55555555, true, K_FOREVER); in ZTEST()
182 zassert_equal(last_event.dev, &fake_dev); in ZTEST()