Lines Matching refs:K_SECONDS
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()
185 BT_MESH_SDU_UNSEG_MAX, 0, K_SECONDS(1)), in test_friend_msg()
191 ASSERT_OK_MSG(bt_mesh_test_recv(5, cfg->addr, NULL, K_SECONDS(10)), in test_friend_msg()
197 ASSERT_OK(bt_mesh_test_recv(15, cfg->addr, NULL, K_SECONDS(10))); in test_friend_msg()
218 K_SECONDS(5)), in test_friend_overflow()
222 k_sleep(K_SECONDS(3)); in test_friend_overflow()
237 K_SECONDS(35)), in test_friend_overflow()
241 k_sleep(K_SECONDS(10)); in test_friend_overflow()
249 0, K_SECONDS(1)), in test_friend_overflow()
255 K_SECONDS(35)), in test_friend_overflow()
259 k_sleep(K_SECONDS(10)); in test_friend_overflow()
269 0, K_SECONDS(1)); in test_friend_overflow()
275 0, K_SECONDS(1)); in test_friend_overflow()
280 K_SECONDS(35)), in test_friend_overflow()
303 K_SECONDS(5)), in test_friend_group()
311 K_SECONDS(10))); in test_friend_group()
313 k_sleep(K_SECONDS(2)); in test_friend_group()
318 ASSERT_OK_MSG(bt_mesh_test_send(GROUP_ADDR, NULL, 5, 0, K_SECONDS(1)), in test_friend_group()
321 ASSERT_OK_MSG(bt_mesh_test_send(va->addr, va->uuid, 5, 0, K_SECONDS(1)), in test_friend_group()
332 ASSERT_OK_MSG(bt_mesh_test_send(GROUP_ADDR + 1, NULL, 5, 0, K_SECONDS(1)), in test_friend_group()
335 bt_mesh_test_friendship_evt_wait(BT_MESH_TEST_FRIEND_POLLED, K_SECONDS(10)); in test_friend_group()
352 K_SECONDS(30))) { in test_friend_no_est()
370 K_SECONDS(5)), in test_friend_va_collision()
379 bt_mesh_test_friendship_evt_wait(BT_MESH_TEST_FRIEND_POLLED, K_SECONDS(10)); in test_friend_va_collision()
386 ASSERT_OK_MSG(bt_mesh_test_send(test_va_col_addr, va[i]->uuid, 5, 0, K_SECONDS(1)), in test_friend_va_collision()
403 ASSERT_OK_MSG(bt_mesh_test_send(test_va_col_addr, va[i]->uuid, 5, 0, K_SECONDS(1)), in test_friend_va_collision()
422 ASSERT_OK_MSG(bt_mesh_test_send(test_va_col_addr, va[i]->uuid, 5, 0, K_SECONDS(1)), in test_friend_va_collision()
455 K_SECONDS(5)), in test_lpn_est()
477 K_SECONDS(5)), "LPN not established"); in test_lpn_msg_frnd()
482 k_sleep(K_SECONDS(3)); in test_lpn_msg_frnd()
486 ASSERT_OK_MSG(bt_mesh_test_recv(5, cfg->addr, NULL, K_SECONDS(1)), in test_lpn_msg_frnd()
490 k_sleep(K_SECONDS(3)); in test_lpn_msg_frnd()
494 ASSERT_OK_MSG(bt_mesh_test_recv(13, cfg->addr, NULL, K_SECONDS(2)), in test_lpn_msg_frnd()
498 k_sleep(K_SECONDS(3)); in test_lpn_msg_frnd()
503 NULL, K_SECONDS(2)), in test_lpn_msg_frnd()
506 NULL, K_SECONDS(2)), in test_lpn_msg_frnd()
509 k_sleep(K_SECONDS(3)); in test_lpn_msg_frnd()
517 k_sleep(K_SECONDS(5)); in test_lpn_msg_frnd()
522 ASSERT_OK_MSG(bt_mesh_test_send(friend_cfg.addr, NULL, 15, 0, K_SECONDS(5)), in test_lpn_msg_frnd()
541 K_SECONDS(2)), "LPN not established"); in test_lpn_msg_mesh()
586 K_SECONDS(2)), in test_lpn_re_est()
591 K_SECONDS(5)), in test_lpn_re_est()
594 k_sleep(K_SECONDS(2)); in test_lpn_re_est()
610 K_SECONDS(5)), "LPN not established"); in test_lpn_poll()
617 k_sleep(K_SECONDS(10)); in test_lpn_poll()
639 K_SECONDS(5)), "LPN not established"); in test_lpn_overflow()
642 k_sleep(K_SECONDS(5)); in test_lpn_overflow()
648 ASSERT_OK_MSG(bt_mesh_test_recv_msg(&msg, K_SECONDS(2)), in test_lpn_overflow()
669 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(10)); in test_lpn_overflow()
683 ASSERT_OK_MSG(bt_mesh_test_recv_msg(&msg, K_SECONDS(2)), in test_lpn_overflow()
690 ASSERT_OK_MSG(bt_mesh_test_recv_msg(&msg, K_SECONDS(2)), in test_lpn_overflow()
697 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(10)); in test_lpn_overflow()
708 ASSERT_OK_MSG(bt_mesh_test_recv_msg(&msg, K_SECONDS(2)), in test_lpn_overflow()
715 ASSERT_OK_MSG(bt_mesh_test_recv_msg(&msg, K_SECONDS(20)), in test_lpn_overflow()
722 ASSERT_OK_MSG(bt_mesh_test_recv_msg(&msg, K_SECONDS(2)), in test_lpn_overflow()
728 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(10)); in test_lpn_overflow()
771 K_SECONDS(5)), "LPN not established"); in test_lpn_group()
779 ASSERT_OK(bt_mesh_test_send(other_cfg.addr, NULL, 5, 0, K_SECONDS(1))); in test_lpn_group()
781 k_sleep(K_SECONDS(5)); in test_lpn_group()
785 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
791 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
798 k_sleep(K_SECONDS(5)); in test_lpn_group()
802 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
808 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
814 k_sleep(K_SECONDS(1)); in test_lpn_group()
828 k_sleep(K_SECONDS(5)); in test_lpn_group()
832 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
877 K_SECONDS(5)), in test_lpn_loopback()
881 k_sleep(K_SECONDS(1)); in test_lpn_loopback()
885 ASSERT_OK(bt_mesh_test_recv(5, cfg->addr, NULL, K_SECONDS(1))); in test_lpn_loopback()
889 ASSERT_OK(bt_mesh_test_recv(5, GROUP_ADDR, NULL, K_SECONDS(1))); in test_lpn_loopback()
893 ASSERT_OK(bt_mesh_test_recv(5, va->addr, va->uuid, K_SECONDS(1))); in test_lpn_loopback()
896 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(2)); in test_lpn_loopback()
903 ASSERT_OK(bt_mesh_test_recv(5, va->addr, va->uuid, K_SECONDS(1))); in test_lpn_loopback()
905 k_sleep(K_SECONDS(2)); in test_lpn_loopback()
909 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(5)); in test_lpn_loopback()
946 k_sleep(K_SECONDS(2)); in test_other_msg()
957 k_sleep(K_SECONDS(2)); in test_other_msg()
985 ASSERT_OK(bt_mesh_test_recv(5, cfg->addr, NULL, K_SECONDS(1))); in test_other_group()
988 ASSERT_OK_MSG(bt_mesh_test_send(GROUP_ADDR, NULL, 5, 0, K_SECONDS(1)), in test_other_group()
991 ASSERT_OK_MSG(bt_mesh_test_send(va->addr, va->uuid, 5, 0, K_SECONDS(1)), in test_other_group()
1009 if (!bt_mesh_test_friendship_evt_wait(BT_MESH_TEST_LPN_POLLED, K_SECONDS(30))) { in test_lpn_disable()
1031 if (!bt_mesh_test_friendship_evt_wait(BT_MESH_TEST_LPN_TERMINATED, K_SECONDS(30))) { in test_lpn_term_cb_check()
1069 K_SECONDS(5)), "LPN not established"); in test_lpn_va_collision()
1075 k_sleep(K_SECONDS(3)); in test_lpn_va_collision()
1079 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(10))); in test_lpn_va_collision()
1088 k_sleep(K_SECONDS(3)); in test_lpn_va_collision()
1103 k_sleep(K_SECONDS(3)); in test_lpn_va_collision()
1111 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_va_collision()
1119 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(1)); in test_lpn_va_collision()
1125 k_sleep(K_SECONDS(3)); in test_lpn_va_collision()
1139 k_sleep(K_SECONDS(3)); in test_lpn_va_collision()
1148 err = bt_mesh_test_recv_msg(&msg, K_SECONDS(1)); in test_lpn_va_collision()