/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_friendship.c | 75 K_SECONDS(30)), "LPN never polled"); in friend_wait_for_polls() 82 K_SECONDS(2)), in friend_wait_for_polls() 87 K_SECONDS(2)) != -EAGAIN) { in friend_wait_for_polls() 104 K_SECONDS(5)), in test_friend_est() 125 K_SECONDS(5)), in test_friend_est_multi() 150 K_SECONDS(5)), in test_friend_msg() 155 k_sleep(K_SECONDS(1)); in test_friend_msg() 160 K_SECONDS(1)), in test_friend_msg() 168 K_SECONDS(1)), in test_friend_msg() 182 BT_MESH_SDU_UNSEG_MAX, 0, K_SECONDS(1)), in test_friend_msg() [all …]
|
D | test_transport.c | 145 test_vector[i].flags, K_SECONDS(10)); in test_tx_unicast() 162 test_vector[i].flags, K_SECONDS(20)); in test_tx_group() 175 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed() 177 k_sleep(K_SECONDS(2)); in test_tx_fixed() 180 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed() 182 k_sleep(K_SECONDS(2)); in test_tx_fixed() 185 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed() 203 k_sleep(K_SECONDS(1)); in test_tx_va() 207 test_vector[i].flags, K_SECONDS(20)); in test_tx_va() 230 k_sleep(K_SECONDS(1)); in test_tx_va_collision() [all …]
|
D | test_replay_cache.c | 143 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_immediate_replay_attack() 149 k_sleep(K_SECONDS(1)); in test_tx_immediate_replay_attack() 161 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_immediate_replay_attack() 167 k_sleep(K_SECONDS(1)); in test_tx_immediate_replay_attack() 179 k_sleep(K_SECONDS(6 * TEST_DATA_WAITING_TIME)); in test_rx_immediate_replay_attack() 206 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_power_replay_attack() 212 k_sleep(K_SECONDS(1)); in test_tx_power_replay_attack() 222 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_power_replay_attack() 228 k_sleep(K_SECONDS(1)); in test_tx_power_replay_attack() 240 k_sleep(K_SECONDS(6 * TEST_DATA_WAITING_TIME)); in test_rx_power_replay_attack() [all …]
|
D | test_proxy_sol.c | 203 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_beacon_rcvd() 207 ASSERT_OK_MSG(k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT)), in test_tester_beacon_rcvd() 218 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack() 223 ASSERT_OK_MSG(k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT)), in test_tester_immediate_replay_attack() 229 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack() 234 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack() 244 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_power_replay_attack() 252 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_power_replay_attack() 256 ASSERT_OK_MSG(k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT)), in test_tester_power_replay_attack() 265 k_sleep(K_SECONDS(3 * SEM_TIMEOUT)); in test_iut_beacon_send() [all …]
|
D | test_blob.c | 409 if (k_sem_take(&lost_target_sem, K_SECONDS(60))) { in cli_caps_common_procedure() 414 if (k_sem_take(&blob_caps_sem, K_SECONDS(60))) { in cli_caps_common_procedure() 487 k_sleep(K_SECONDS(15)); in test_cli_caps_cancelled() 494 if (!k_sem_take(&blob_caps_sem, K_SECONDS(60))) { in test_cli_caps_cancelled() 512 if (k_sem_take(&blob_caps_sem, K_SECONDS(60))) { in test_cli_caps_cancelled() 547 int err = k_sem_take(&info_get_sem, K_SECONDS(15)); in test_srv_caps_no_rsp() 603 if (k_sem_take(&blob_broad_send_sem, K_SECONDS(15))) { in test_cli_broadcast_basic() 612 if (k_sem_take(&blob_broad_send_sem, K_SECONDS(15))) { in test_cli_broadcast_basic() 623 if (k_sem_take(&blob_broad_send_sem, K_SECONDS(15))) { in test_cli_broadcast_basic() 634 if (k_sem_take(&blob_broad_next_sem, K_SECONDS(15))) { in test_cli_broadcast_basic() [all …]
|
D | test_provision.c | 323 k_work_reschedule(&oob_timer, K_SECONDS(1)); in input() 489 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in oob_device() 494 k_sleep(K_SECONDS(2)); in oob_device() 508 k_sleep(K_SECONDS(1)); in oob_provisioner() 531 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in oob_provisioner() 539 k_sleep(K_SECONDS(1)); in oob_provisioner() 580 k_sleep(K_SECONDS(2)); in node_configure_and_reset() 586 k_sleep(K_SECONDS(2)); in node_configure_and_reset() 592 k_sleep(K_SECONDS(2)); in node_configure_and_reset() 599 k_sleep(K_SECONDS(2)); in node_configure_and_reset() [all …]
|
D | test_scanner.c | 120 k_sleep(K_SECONDS(1)); in test_tx_invalid_ad_type() 127 k_sleep(K_SECONDS(10)); in test_tx_invalid_ad_type() 148 k_sleep(K_SECONDS(1)); in test_tx_wrong_packet_length() 161 k_sleep(K_SECONDS(10)); in test_tx_wrong_packet_length() 181 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(10)); in test_rx_invalid_packet() 187 err = bt_mesh_test_recv(10, cfg->addr, NULL, K_SECONDS(10)); in test_rx_invalid_packet()
|
D | test_beacon.c | 158 k_sleep(K_SECONDS(1)); in tx_on_iv_update_test() 167 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_iv_update_test() 173 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_iv_update_test() 179 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_iv_update_test() 204 k_sleep(K_SECONDS(1)); in test_rx_on_iv_update() 210 k_sleep(K_SECONDS(BEACON_INTERVAL)); in test_rx_on_iv_update() 216 k_sleep(K_SECONDS(BEACON_INTERVAL)); in test_rx_on_iv_update() 222 k_sleep(K_SECONDS(BEACON_INTERVAL)); in test_rx_on_iv_update() 242 k_sleep(K_SECONDS(1)); in tx_on_key_refresh_test() 250 k_sleep(K_SECONDS(BEACON_INTERVAL)); in tx_on_key_refresh_test() [all …]
|
D | test_brg.c | 449 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in tester_init_common() 490 ASSERT_OK(k_sem_take(&status_msg_recvd_sem, K_SECONDS(5))); in send_and_receive() 540 ASSERT_OK(k_sem_take(&status_msg_recvd_sem, K_SECONDS(5))); in test_tester_simple() 582 ASSERT_OK(k_sem_take(&status_msg_recvd_sem, K_SECONDS(5))); in tester_simple_multicast() 613 ASSERT_OK(k_sem_take(&status_msg_recvd_sem, K_SECONDS(5))); in tester_simple_multicast() 680 err = k_sem_take(&status_msg_recvd_sem, K_SECONDS(5)); in test_tester_table_state_change() 689 err = k_sem_take(&status_msg_recvd_sem, K_SECONDS(5)); in test_tester_table_state_change() 711 k_sleep(K_SECONDS(1)); in test_tester_table_state_change() 715 ASSERT_OK(k_sem_take(&status_msg_recvd_sem, K_SECONDS(5))); in test_tester_table_state_change() 733 ASSERT_OK(k_sem_take(&status_msg_recvd_sem, K_SECONDS(5))); in test_tester_table_state_change() [all …]
|
/Zephyr-latest/drivers/modem/ |
D | simcom-sim7080.h | 37 #define BUF_ALLOC_TIMEOUT K_SECONDS(1) 38 #define MDM_CMD_TIMEOUT K_SECONDS(10) 39 #define MDM_REGISTRATION_TIMEOUT K_SECONDS(180) 40 #define MDM_CONNECT_TIMEOUT K_SECONDS(90) 41 #define MDM_PDP_TIMEOUT K_SECONDS(120) 42 #define MDM_DNS_TIMEOUT K_SECONDS(210) 43 #define MDM_WAIT_FOR_RSSI_DELAY K_SECONDS(2)
|
D | quectel-bg9x.h | 29 #define MDM_CMD_TIMEOUT K_SECONDS(10) 30 #define MDM_CMD_CONN_TIMEOUT K_SECONDS(120) 31 #define MDM_REGISTRATION_TIMEOUT K_SECONDS(180) 42 #define MDM_WAIT_FOR_RSSI_DELAY K_SECONDS(2) 43 #define BUF_ALLOC_TIMEOUT K_SECONDS(1) 44 #define MDM_MAX_BOOT_TIME K_SECONDS(50)
|
/Zephyr-latest/samples/boards/st/power_mgmt/stm32wb_ble/src/ |
D | main.c | 80 k_sleep(K_SECONDS(2)); in bt_ready() 90 k_sleep(K_SECONDS(1)); in bt_ready() 123 k_sleep(K_SECONDS(6)); in main() 131 k_sleep(K_SECONDS(2)); in main() 141 k_sleep(K_SECONDS(6)); in main()
|
/Zephyr-latest/samples/drivers/led/xec/src/ |
D | main.c | 64 k_sleep(K_SECONDS(1)); in led_test() 90 k_sleep(K_SECONDS(5)); in led_test() 102 k_sleep(K_SECONDS(15)); in led_test() 112 k_sleep(K_SECONDS(2)); in led_test() 122 k_sleep(K_SECONDS(2)); in led_test()
|
/Zephyr-latest/samples/boards/bbc/microbit/display/src/ |
D | main.c | 75 k_sleep(K_SECONDS(11)); in main() 91 k_sleep(K_SECONDS(2)); in main() 96 k_sleep(K_SECONDS((ARRAY_SIZE(scroll) + 2))); in main()
|
/Zephyr-latest/samples/bluetooth/periodic_adv/src/ |
D | main.c | 73 k_sleep(K_SECONDS(10)); in main() 86 k_sleep(K_SECONDS(10)); in main() 97 k_sleep(K_SECONDS(10)); in main()
|
/Zephyr-latest/tests/subsys/modem/backends/tty/src/ |
D | main.c | 111 __ASSERT_NO_MSG(modem_pipe_open(tty_pipe, K_SECONDS(10)) == 0); in test_modem_backend_tty_setup() 122 modem_pipe_close(tty_pipe, K_SECONDS(10)); in test_modem_backend_tty_teardown() 132 zassert_ok(modem_pipe_close(tty_pipe, K_SECONDS(10)), "Failed to close pipe"); in ZTEST() 133 zassert_ok(modem_pipe_close(tty_pipe, K_SECONDS(10)), "Pipe should already be closed"); in ZTEST() 134 zassert_ok(modem_pipe_open(tty_pipe, K_SECONDS(10)), "Failed to open pipe"); in ZTEST() 137 zassert_ok(modem_pipe_open(tty_pipe, K_SECONDS(10)), "Pipe should already be open"); in ZTEST()
|
/Zephyr-latest/samples/boards/nordic/clock_control/src/ |
D | main.c | 20 #define SAMPLE_NOTIFY_TIMEOUT K_SECONDS(2) 21 #define SAMPLE_PRE_REQUEST_TIMEOUT K_SECONDS(CONFIG_SAMPLE_PRE_REQUEST_TIMEOUT) 22 #define SAMPLE_KEEP_REQUEST_TIMEOUT K_SECONDS(CONFIG_SAMPLE_KEEP_REQUEST_TIMEOUT)
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | ias_client_test.c | 126 k_sleep(K_SECONDS(1)); in test_main() 129 k_sleep(K_SECONDS(1)); in test_main() 132 k_sleep(K_SECONDS(1)); in test_main()
|
/Zephyr-latest/tests/kernel/sleep/src/ |
D | main.c | 115 k_sleep(K_SECONDS(1)); in test_thread() 129 k_sleep(K_SECONDS(1)); in test_thread() 142 k_sleep(K_SECONDS(1)); in test_thread() 155 k_sleep(K_SECONDS(1)); /* Task will execute */ in test_thread() 232 k_sleep(K_SECONDS(1)); in ZTEST()
|
/Zephyr-latest/tests/subsys/lorawan/clock_sync/src/ |
D | main.c | 77 ret = k_msgq_get(&uplink_msgq, &req, K_SECONDS(128 + 30 + 1)); in ZTEST() 124 ret = k_msgq_get(&uplink_msgq, &app_time_req, K_SECONDS(128 + 30 + 1)); in ZTEST() 128 ret = k_msgq_get(&uplink_msgq, &app_time_req, K_SECONDS(128)); in ZTEST() 159 ret = k_msgq_get(&uplink_msgq, &app_time_req, K_SECONDS(11)); in ZTEST() 186 k_sleep(K_SECONDS(1)); in clock_sync_setup()
|
/Zephyr-latest/tests/kernel/mutex/sys_mutex/src/ |
D | main.c | 114 rv = sys_mutex_lock(&mutex_4, K_SECONDS(1)); in thread_05() 148 rv = sys_mutex_lock(&mutex_4, K_SECONDS(2)); in thread_06() 182 rv = sys_mutex_lock(&mutex_3, K_SECONDS(3)); in thread_07() 361 k_sleep(K_SECONDS(1)); in ZTEST_USER_OR_NOT() 376 k_sleep(K_SECONDS(1)); /* thread_05 should time out */ in ZTEST_USER_OR_NOT() 390 k_sleep(K_SECONDS(1)); /* thread_07 should time out */ in ZTEST_USER_OR_NOT() 406 k_sleep(K_SECONDS(1)); /* Give thread_11 time to run */ in ZTEST_USER_OR_NOT() 432 rv = sys_mutex_lock(&private_mutex, K_SECONDS(1)); in ZTEST_USER_OR_NOT()
|
/Zephyr-latest/tests/lib/time/src/ |
D | main.c | 35 k_sleep(K_SECONDS(1)); in ZTEST() 56 k_sleep(K_SECONDS(1)); in ZTEST()
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | main.c | 109 board_show_text("Pairing Complete", false, K_SECONDS(2)); in pairing_complete() 115 board_show_text("Pairing Failed", false, K_SECONDS(2)); in pairing_failed() 133 board_show_text("Connection failed", false, K_SECONDS(2)); in connected() 149 board_show_text("Disconnected", false, K_SECONDS(2)); in disconnected()
|
/Zephyr-latest/tests/subsys/modem/modem_cmux/src/ |
D | main.c | 294 __ASSERT_NO_MSG(modem_pipe_open(bus_mock_pipe, K_SECONDS(10)) == 0); in test_modem_cmux_setup() 742 zassert_true(modem_pipe_close(dlci1_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI1"); in ZTEST() 744 zassert_true(modem_pipe_close(dlci2_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI2"); in ZTEST() 756 zassert_true(modem_pipe_open(dlci1_pipe, K_SECONDS(10)) == 0, in ZTEST() 759 zassert_true(modem_pipe_open(dlci2_pipe, K_SECONDS(10)) == 0, in ZTEST() 766 zassert_true(modem_pipe_close(dlci1_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI1"); in ZTEST() 768 zassert_true(modem_pipe_close(dlci2_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI2"); in ZTEST() 770 zassert_true(modem_pipe_open(dlci1_pipe, K_SECONDS(10)) == 0, in ZTEST() 773 zassert_true(modem_pipe_open(dlci2_pipe, K_SECONDS(10)) == 0, in ZTEST() 804 modem_pipe_open(dlci1_pipe, K_SECONDS(10)); in ZTEST() [all …]
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_luatos_air530z.c | 191 ret = modem_pipe_open(data->uart_pipe, K_SECONDS(10)); in gnss_luatos_air530z_init() 198 modem_pipe_close(data->uart_pipe, K_SECONDS(10)); in gnss_luatos_air530z_init() 205 modem_pipe_close(data->uart_pipe, K_SECONDS(10)); in gnss_luatos_air530z_init() 225 ret = modem_pipe_open(data->uart_pipe, K_SECONDS(10)); in luatos_air530z_pm_resume() 232 modem_pipe_close(data->uart_pipe, K_SECONDS(10)); in luatos_air530z_pm_resume() 238 modem_pipe_close(data->uart_pipe, K_SECONDS(10)); in luatos_air530z_pm_resume() 254 ret = modem_pipe_close(data->uart_pipe, K_SECONDS(10)); in luatos_air530z_pm_action()
|