/Zephyr-latest/tests/lib/math/interpolation/src/ |
D | main.c | 15 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() 17 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST() 33 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() 35 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST() 38 for (int i = 0; i < ARRAY_SIZE(x_axis); i++) { in ZTEST() 47 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() 49 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST() 69 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() 72 zassert_equal(ARRAY_SIZE(x_axis), ARRAY_SIZE(y_axis)); in ZTEST() 85 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/ |
D | test_vcp.c | 30 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_vcp_fixture_init() 57 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_vcp_after() 73 union bt_cap_set_member members[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 77 .count = ARRAY_SIZE(fixture->conns), in ZTEST_F() 82 for (size_t i = 0U; i < ARRAY_SIZE(members); i++) { in ZTEST_F() 89 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() 105 union bt_cap_set_member members[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 109 .count = ARRAY_SIZE(fixture->conns), in ZTEST_F() 114 for (size_t i = 0U; i < ARRAY_SIZE(members); i++) { in ZTEST_F() 121 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() [all …]
|
D | test_micp.c | 30 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_micp_fixture_init() 57 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_micp_after() 75 member_params[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 79 .count = ARRAY_SIZE(member_params), in ZTEST_F() 83 for (size_t i = 0U; i < ARRAY_SIZE(member_params); i++) { in ZTEST_F() 91 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() 108 member_params[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 112 .count = ARRAY_SIZE(member_params), in ZTEST_F() 116 for (size_t i = 0U; i < ARRAY_SIZE(member_params); i++) { in ZTEST_F() 124 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/zcbor_bulk/src/ |
D | main.c | 52 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 63 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 65 int rc = zcbor_map_decode_bulk(zsd, dm, ARRAY_SIZE(dm), &decoded); in ZTEST() 68 zassert_equal(decoded, ARRAY_SIZE(dm), "Expected %d got %d", in ZTEST() 69 ARRAY_SIZE(dm), decoded); in ZTEST() 93 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 104 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 106 int rc = zcbor_map_decode_bulk(zsd, dm, ARRAY_SIZE(dm), &decoded); in ZTEST() 109 zassert_equal(decoded, ARRAY_SIZE(dm), "Expected %d got %d", in ZTEST() 110 ARRAY_SIZE(dm), decoded); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/ |
D | main.c | 103 ok = zcbor_map_decode_bulk(state, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in mcumgr_ret_decode() 106 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), "group") && in mcumgr_ret_decode() 107 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), "rc")) { in mcumgr_ret_decode() 172 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 196 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 199 zassert_false(zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), in ZTEST() 201 zassert_true(zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), in ZTEST() 203 zassert_false(zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), in ZTEST() 234 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 258 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/ |
D | test_unicast_stop.c | 48 for (size_t i = 0U; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_stop_fixture_init() 52 for (size_t i = 0U; i < ARRAY_SIZE(fixture->eps); i++) { in cap_initiator_test_unicast_stop_fixture_init() 56 for (size_t i = 0U; i < ARRAY_SIZE(fixture->cap_streams); i++) { in cap_initiator_test_unicast_stop_fixture_init() 92 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_stop_after() 115 .count = ARRAY_SIZE(streams), in ZTEST_F() 121 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F() 124 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() 135 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F() 150 .count = ARRAY_SIZE(streams), in ZTEST_F() 156 for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { in ZTEST_F() [all …]
|
D | test_unicast_start.c | 47 for (size_t i = 0U; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_start_fixture_init() 51 for (size_t i = 0U; i < ARRAY_SIZE(fixture->cap_streams); i++) { in cap_initiator_test_unicast_start_fixture_init() 58 for (size_t i = 0U; i < ARRAY_SIZE(fixture->eps); i++) { in cap_initiator_test_unicast_start_fixture_init() 90 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_start_after() 113 .count = ARRAY_SIZE(stream_params), in ZTEST_F() 118 for (size_t i = 0U; i < ARRAY_SIZE(stream_params); i++) { in ZTEST_F() 122 stream_params[i].member.member = &fixture->conns[i % ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 132 for (size_t i = 0U; i < ARRAY_SIZE(stream_params); i++) { in ZTEST_F() 176 .count = ARRAY_SIZE(stream_params), in ZTEST_F() 181 for (size_t i = 0U; i < ARRAY_SIZE(stream_params); i++) { in ZTEST_F() [all …]
|
/Zephyr-latest/tests/drivers/i2c/i2c_ram/src/ |
D | test_i2c_ram.c | 75 addr += ARRAY_SIZE(tx_data) - TX_DATA_OFFSET; in i2c_ram_before() 76 memset(rx_data, 0, ARRAY_SIZE(rx_data)); in i2c_ram_before() 95 msgs[0].len = ARRAY_SIZE(tx_data); in ZTEST() 103 msgs[0].len = ARRAY_SIZE(rx_cmd); in ZTEST() 112 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST() 121 zassert_ok(i2c_write(i2c_dev, tx_data, ARRAY_SIZE(tx_data), RAM_ADDR), in ZTEST() 124 zassert_ok(i2c_write_read(i2c_dev, RAM_ADDR, rx_cmd, ARRAY_SIZE(rx_cmd), in ZTEST() 125 rx_data, ARRAY_SIZE(rx_data)), in ZTEST() 128 zassert_equal(memcmp(&tx_data[TX_DATA_OFFSET], &rx_data[0], ARRAY_SIZE(rx_data)), 0, in ZTEST() 146 msgs[0].len = ARRAY_SIZE(tx_data); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_type/src/ |
D | main.c | 42 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_lut) == CONFIG_BT_MAX_PAIRED); 43 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_lut) == ARRAY_SIZE(returned_keys_refs)); 44 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_no_type_lut) == CONFIG_BT_MAX_PAIRED); 45 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_no_type_lut) == ARRAY_SIZE(returned_keys_refs)); 51 ARRAY_SIZE(testing_id_addr_type_no_type_lut), in type_not_set_ts_setup() 82 for (size_t i = 0; i < ARRAY_SIZE(testing_id_addr_type_lut); i++) { in ZTEST() 95 ARRAY_SIZE(testing_id_addr_type_lut), returned_keys_refs); in type_set_ts_setup() 132 for (size_t i = 0; i < ARRAY_SIZE(testing_id_addr_type_lut); i++) { in ZTEST()
|
/Zephyr-latest/tests/net/lib/wifi_credentials/src/ |
D | main.c | 78 wifi_credentials_delete_by_ssid(SSID1, ARRAY_SIZE(SSID1)); in wifi_credentials_teardown() 79 wifi_credentials_delete_by_ssid(SSID2, ARRAY_SIZE(SSID2)); in wifi_credentials_teardown() 80 wifi_credentials_delete_by_ssid(SSID3, ARRAY_SIZE(SSID3)); in wifi_credentials_teardown() 81 wifi_credentials_delete_by_ssid(SSID4, ARRAY_SIZE(SSID4)); in wifi_credentials_teardown() 98 SSID1, sizeof(SSID1), &security, bssid_buf, ARRAY_SIZE(bssid_buf), psk_buf, in ZTEST() 99 ARRAY_SIZE(psk_buf), &psk_len, &flags, &channel, &timeout); in ZTEST() 123 SSID1, sizeof(SSID1), &security, bssid_buf, ARRAY_SIZE(bssid_buf), psk_buf, in ZTEST() 124 ARRAY_SIZE(psk_buf), &psk_len, &flags, &channel, &timeout); in ZTEST() 126 zassert_equal(strncmp(PSK1, psk_buf, ARRAY_SIZE(psk_buf)), 0, "PSK mismatch"); in ZTEST() 155 SSID1, sizeof(SSID1), &security, bssid_buf, ARRAY_SIZE(bssid_buf), psk_buf, in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_bond/src/ |
D | main.c | 28 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_pair_lut) == CONFIG_BT_MAX_PAIRED); 29 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_pair_lut) == ARRAY_SIZE(returned_keys_refs)); 35 ARRAY_SIZE(testing_id_addr_pair_lut), returned_keys_refs); in type_not_set_ts_setup() 66 for (size_t i = 0; i < ARRAY_SIZE(testing_id_addr_pair_lut); i++) { in ZTEST() 79 ARRAY_SIZE(testing_id_addr_pair_lut), returned_keys_refs); in type_set_ts_setup() 83 for (uint32_t i = 0; i < ARRAY_SIZE(returned_keys_refs); i++) { in type_set_ts_setup() 121 for (size_t i = 0; i < ARRAY_SIZE(testing_id_addr_pair_lut); i++) { in ZTEST()
|
/Zephyr-latest/tests/lib/c_lib/common/src/ |
D | test_qsort.c | 40 qsort(actual_int, ARRAY_SIZE(actual_int), sizeof(int), compare_ints); in ZTEST() 49 qsort(actual_int, ARRAY_SIZE(actual_int), sizeof(int), compare_ints); in ZTEST() 58 qsort(actual_int, ARRAY_SIZE(actual_int), sizeof(int), compare_ints); in ZTEST() 67 qsort(actual_int, ARRAY_SIZE(actual_int), sizeof(int), compare_ints); in ZTEST() 94 qsort(actual_int, ARRAY_SIZE(actual_int), sizeof(int), compare_ints); in ZTEST() 125 qsort(actual_int, ARRAY_SIZE(actual_int), sizeof(int), compare_ints); in ZTEST() 148 qsort_r(actual_int, ARRAY_SIZE(actual_int), sizeof(actual_int[0]), in ZTEST()
|
/Zephyr-latest/tests/drivers/fuel_gauge/max17048/src/ |
D | test_max17048.c | 45 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() 47 int ret = fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F() 63 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() 65 zassert_ok(fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props))); in ZTEST_USER_F() 76 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() 82 int ret = fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F()
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/ |
D | micp.c | 20 for (size_t i = 0; i < ARRAY_SIZE(mic_ctlrs); i++) { in bt_micp_mic_ctlr_get_by_conn() 56 for (size_t i = 0; i < ARRAY_SIZE(mic_ctlrs); i++) { in bt_micp_mic_ctlr_discover() 58 for (size_t j = 0U; j < ARRAY_SIZE(mic_ctlrs[i].aics); j++) { in bt_micp_mic_ctlr_discover() 81 for (size_t i = 0U; i < ARRAY_SIZE(mic_ctlrs); i++) { in bt_micp_mic_ctlr_cb_register() 82 for (size_t j = 0U; j < ARRAY_SIZE(mic_ctlrs[i].aics); j++) { in bt_micp_mic_ctlr_cb_register() 94 included->aics_cnt = ARRAY_SIZE(mic_ctlr->aics); in bt_micp_mic_ctlr_included_get() 103 for (size_t i = 0U; i < ARRAY_SIZE(mic_ctlrs); i++) { in mock_bt_micp_init() 104 for (size_t j = 0U; j < ARRAY_SIZE(mic_ctlrs[i].aics); j++) { in mock_bt_micp_init()
|
D | vcp.c | 21 for (size_t i = 0; i < ARRAY_SIZE(vol_ctlrs); i++) { in bt_vcp_vol_ctlr_get_by_conn() 66 for (size_t i = 0; i < ARRAY_SIZE(vol_ctlrs); i++) { in bt_vcp_vol_ctlr_discover() 68 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_discover() 91 for (size_t i = 0U; i < ARRAY_SIZE(vol_ctlrs); i++) { in bt_vcp_vol_ctlr_cb_register() 92 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in bt_vcp_vol_ctlr_cb_register() 103 included->vocs_cnt = ARRAY_SIZE(vol_ctlr->vocs); in bt_vcp_vol_ctlr_included_get() 106 included->aics_cnt = ARRAY_SIZE(vol_ctlr->aics); in bt_vcp_vol_ctlr_included_get() 115 for (size_t i = 0U; i < ARRAY_SIZE(vol_ctlrs); i++) { in mock_bt_vcp_init() 116 for (size_t j = 0U; j < ARRAY_SIZE(vol_ctlrs[i].vocs); j++) { in mock_bt_vcp_init()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/ |
D | main.c | 87 ok = zcbor_map_decode_bulk(state, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in mcumgr_ret_decode() 90 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), "group") && in mcumgr_ret_decode() 91 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), "rc")) { in mcumgr_ret_decode() 127 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 159 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 165 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), in ZTEST() 170 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), in ZTEST() 175 zcbor_map_decode_bulk_key_found(output_decode, ARRAY_SIZE(output_decode), in ZTEST() 214 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 246 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() [all …]
|
/Zephyr-latest/drivers/dac/ |
D | dac_ad56xx.c | 49 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in ad56xx_write_command() 52 .len = ARRAY_SIZE(buffer_tx), in ad56xx_write_command() 56 .len = ARRAY_SIZE(buffer_rx), in ad56xx_write_command() 60 .count = ARRAY_SIZE(tx_buf), in ad56xx_write_command() 64 .count = ARRAY_SIZE(rx_buf), in ad56xx_write_command() 191 #define DAC_AD5628_CHANNEL_COUNT ARRAY_SIZE(ad5628_channels) 204 #define DAC_AD5648_CHANNEL_COUNT ARRAY_SIZE(ad5648_channels) 217 #define DAC_AD5668_CHANNEL_COUNT ARRAY_SIZE(ad5668_channels) 230 #define DAC_AD5672_CHANNEL_COUNT ARRAY_SIZE(ad5672_channels) 243 #define DAC_AD5674_CHANNEL_COUNT ARRAY_SIZE(ad5674_channels) [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_addr/src/ |
D | main.c | 37 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_pair_lut) == CONFIG_BT_MAX_PAIRED); 38 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_pair_lut) == ARRAY_SIZE(returned_keys_refs)); 60 for (uint32_t i = 0; i < ARRAY_SIZE(testing_id_addr_pair_lut); i++) { in ZTEST() 76 ARRAY_SIZE(testing_id_addr_pair_lut), returned_keys_refs); in filled_list_ts_setup() 96 for (uint32_t i = 0; i < ARRAY_SIZE(testing_id_addr_pair_lut); i++) { in ZTEST()
|
/Zephyr-latest/scripts/coccinelle/ |
D | array_size.cocci | 1 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element 3 //# This makes an effort to find cases where ARRAY_SIZE can be used such as 6 //# division of the two sizeofs by ARRAY_SIZE. 49 + ARRAY_SIZE(E) 52 + ARRAY_SIZE(E) 55 + ARRAY_SIZE(E) 79 coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE") 85 msg="WARNING: Use ARRAY_SIZE"
|
/Zephyr-latest/tests/drivers/fuel_gauge/sbs_gauge/src/ |
D | test_sbs_gauge.c | 45 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() 47 int ret = fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F() 58 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() 60 int ret = fuel_gauge_set_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F() 88 int ret = fuel_gauge_set_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F() 123 union fuel_gauge_prop_val get_props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() 126 fuel_gauge_set_props(fixture->dev, prop_types, set_props, ARRAY_SIZE(set_props))); in ZTEST_USER_F() 129 fuel_gauge_get_props(fixture->dev, prop_types, get_props, ARRAY_SIZE(get_props))); in ZTEST_USER_F() 169 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() 171 zassert_ok(fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props))); in ZTEST_USER_F() [all …]
|
/Zephyr-latest/tests/bluetooth/adv/src/ |
D | main.c | 42 err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), in ZTEST() 43 sd, ARRAY_SIZE(sd)); in ZTEST() 49 err = bt_le_adv_update_data(ad, ARRAY_SIZE(ad), in ZTEST() 50 sd, ARRAY_SIZE(sd)); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/audio/codec/src/ |
D | main.c | 134 for (size_t i = 0U; i < ARRAY_SIZE(freq_test_inputs); i++) { in ZTEST() 201 for (size_t i = 0U; i < ARRAY_SIZE(frame_dur_test_inputs); i++) { in ZTEST() 614 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST() 615 zassert_mem_equal(expected_data, program_data, ARRAY_SIZE(expected_data)); in ZTEST() 631 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST() 632 zassert_mem_equal(expected_data, program_data, ARRAY_SIZE(expected_data)); in ZTEST() 635 ARRAY_SIZE(new_expected_data)); in ZTEST() 639 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST() 640 zassert_mem_equal(new_expected_data, program_data, ARRAY_SIZE(new_expected_data)); in ZTEST() 689 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find/src/ |
D | main.c | 33 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_lut) == CONFIG_BT_MAX_PAIRED); 34 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_lut) == ARRAY_SIZE(returned_keys_refs)); 56 for (uint32_t i = 0; i < ARRAY_SIZE(testing_id_addr_type_lut); i++) { in ZTEST() 72 testing_id_addr_type_lut, ARRAY_SIZE(testing_id_addr_type_lut), returned_keys_refs); in filled_list_ts_setup() 98 for (size_t it = 0; it < ARRAY_SIZE(testing_id_addr_type_lut); it++) { in ZTEST()
|
/Zephyr-latest/tests/drivers/gnss/gnss_nmea0183/src/ |
D | main.c | 40 for (size_t i = 0; i < ARRAY_SIZE(ddmm_mmmm_samples); i++) { in ZTEST() 85 for (size_t i = 0; i < ARRAY_SIZE(knots_to_mms_samples); i++) { in ZTEST() 112 for (size_t i = 0; i < ARRAY_SIZE(hhmmss_samples); i++) { in ZTEST() 156 for (size_t i = 0; i < ARRAY_SIZE(ddmmyy_samples); i++) { in ZTEST() 215 ret = gnss_nmea0183_parse_rmc(rmc_argv_no_fix, ARRAY_SIZE(rmc_argv_no_fix), &data); in ZTEST() 245 ret = gnss_nmea0183_parse_gga(gga_argv_no_fix, ARRAY_SIZE(gga_argv_no_fix), &data); in ZTEST() 280 ret = gnss_nmea0183_parse_rmc(rmc_argv_fix, ARRAY_SIZE(rmc_argv_fix), &data); in ZTEST() 321 ret = gnss_nmea0183_parse_gga(gga_argv_fix, ARRAY_SIZE(gga_argv_fix), &data); in ZTEST() 660 {.argv = gpgsv_8_1_25, .argc = ARRAY_SIZE(gpgsv_8_1_25), .header = &gpgsv_8_1_25_header, 661 .satellites = gpgsv_8_1_25_sats, .number_of_svs = ARRAY_SIZE(gpgsv_8_1_25_sats)}, [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_irk/src/ |
D | main.c | 48 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_lut) == CONFIG_BT_MAX_PAIRED); 49 BUILD_ASSERT(ARRAY_SIZE(testing_id_addr_type_lut) == ARRAY_SIZE(returned_keys_refs)); 103 for (size_t i = 0; i < ARRAY_SIZE(testing_id_addr_type_lut); i++) { in ZTEST() 120 testing_id_addr_type_lut, ARRAY_SIZE(testing_id_addr_type_lut), returned_keys_refs); in rpa_resolving_ts_setup() 127 for (size_t it = 0; it < ARRAY_SIZE(returned_keys_refs); it++) { in rpa_resolving_ts_setup() 156 for (size_t i = 0; i < ARRAY_SIZE(testing_id_addr_type_lut); i++) { in ZTEST() 190 for (size_t it = 0; it < ARRAY_SIZE(testing_id_addr_type_lut); it++) { in ZTEST() 237 testing_id_addr_type_lut, ARRAY_SIZE(testing_id_addr_type_lut), returned_keys_refs); in no_resolving_ts_setup() 244 for (size_t it = 0; it < ARRAY_SIZE(returned_keys_refs); it++) { in no_resolving_ts_setup() 249 for (size_t it = 0; it < ARRAY_SIZE(returned_keys_refs); it++) { in no_resolving_ts_setup() [all …]
|