Home
last modified time | relevance | path

Searched refs:fake_dev (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.7.0/tests/subsys/input/api/src/
Dmain.c11 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()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/input/longpress/src/
Dmain.c12 static const struct device *const fake_dev = DEVICE_DT_GET( variable
52 input_report_key(fake_dev, INPUT_KEY_3, 1, true, K_FOREVER); in ZTEST()
53 input_report_key(fake_dev, INPUT_KEY_3, 0, true, K_FOREVER); in ZTEST()
56 input_report_abs(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST()
57 input_report_abs(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST()
62 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST()
64 input_report_key(fake_dev, INPUT_KEY_0, 0, true, K_FOREVER); in ZTEST()
75 input_report_key(fake_dev, INPUT_KEY_1, 1, true, K_FOREVER); in ZTEST()
77 input_report_key(fake_dev, INPUT_KEY_1, 0, true, K_FOREVER); in ZTEST()
88 input_report_key(fake_dev, INPUT_KEY_0, 1, true, K_FOREVER); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/pm/src/
Dmain.c96 PM_DEVICE_DEFINE(fake_dev, fake_dev_pm_action);
98 NET_DEVICE_INIT(fake_dev, "fake_dev",
99 NULL, PM_DEVICE_GET(fake_dev),
/Zephyr-Core-3.7.0/tests/drivers/input/kbd_matrix/src/
Dmain.c387 const struct device fake_dev = { in ZTEST() local
392 ret = input_kbd_matrix_actual_key_mask_set(&fake_dev, 0, 0, true); in ZTEST()
396 ret = input_kbd_matrix_actual_key_mask_set(&fake_dev, 2, 1, false); in ZTEST()
400 ret = input_kbd_matrix_actual_key_mask_set(&fake_dev, 2, 3, true); in ZTEST()
404 ret = input_kbd_matrix_actual_key_mask_set(&fake_dev, 3, 0, true); in ZTEST()
407 ret = input_kbd_matrix_actual_key_mask_set(&fake_dev, 0, 4, true); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/storage/stream/stream_flash/src/
Dmain.c343 struct device fake_dev = *ctx.fdev; in ZTEST() local
353 fake_dev.api = &fake_api; in ZTEST()
354 bad_ctx.fdev = &fake_dev; in ZTEST()
452 struct device fake_dev = *ctx.fdev; in ZTEST() local
458 fake_dev.api = &fake_api; in ZTEST()
459 bad_ctx.fdev = &fake_dev; in ZTEST()
/Zephyr-Core-3.7.0/tests/net/socket/af_packet_ipproto_raw/src/
Dmain.c93 NET_DEVICE_INIT(fake_dev, "fake_dev", fake_dev_init, NULL, &fake_dev_context_data, NULL,
/Zephyr-Core-3.7.0/tests/net/net_pkt/src/
Dmain.c78 NET_DEVICE_INIT(fake_dev, "fake_dev",