| /tests/subsys/display/cfb/basic/src/ |
| A D | utils.h | 18 uint32_t image_pixel(const uint32_t *img, size_t width, int x, int y); 20 bool verify_image(int x, int y, const uint32_t *img, size_t width, size_t height); 21 bool verify_color_inside_rect(int x, int y, size_t width, size_t height, uint32_t color); 22 bool verify_color_outside_rect(int x, int y, size_t width, size_t height, uint32_t color); 23 bool verify_image_and_bg(int x, int y, const uint32_t *img, size_t width, size_t height,
|
| A D | utils.c | 45 uint32_t image_pixel(const uint32_t *img, size_t width, int x, int y) in image_pixel() 66 bool verify_image(int cmp_x, int cmp_y, const uint32_t *img, size_t width, size_t height) in verify_image() 77 for (size_t y = 0; y < height; y++) { in verify_image() 78 for (size_t x = 0; x < width; x++) { in verify_image() 97 bool verify_color_inside_rect(int x, int y, size_t width, size_t height, uint32_t color) in verify_color_inside_rect() 108 for (size_t y_ = 0; y_ < height; y_++) { in verify_color_inside_rect() 109 for (size_t x_ = 0; x_ < width; x_++) { in verify_color_inside_rect() 121 bool verify_color_outside_rect(int x, int y, size_t width, size_t height, uint32_t color) in verify_color_outside_rect() 158 bool verify_image_and_bg(int x, int y, const uint32_t *img, size_t width, size_t height, in verify_image_and_bg()
|
| /tests/subsys/modem/mock/ |
| A D | modem_backend_mock.h | 17 size_t get_size; 21 size_t put_size; 34 size_t transaction_match_cnt; 37 size_t limit; 44 size_t rx_buf_size; 46 size_t tx_buf_size; 47 size_t limit; 55 int modem_backend_mock_get(struct modem_backend_mock *mock, uint8_t *buf, size_t size); 57 void modem_backend_mock_put(struct modem_backend_mock *mock, const uint8_t *buf, size_t size);
|
| /tests/drivers/flash/erase_blocks/src/ |
| A D | main.c | 59 for (size_t i = 0; i < size; i++) { in test_flash_mem_is_set_to() 72 size_t remaining; in test_flash_is_erased() 73 size_t readsize; in test_flash_is_erased() 76 remaining = size - (size_t)offset; in test_flash_is_erased() 131 size_t write_block_size) in test_flash_write_across_page_boundary() 137 size_t cross_write_size = write_block_size * 2; in test_flash_write_across_page_boundary() 140 (size_t)page_boundary, in test_flash_write_across_page_boundary() 150 size_t write_block_size = *((size_t *)data); in test_flash_write_across_page_boundaries() 178 size_t page_size = info->size; in test_flash_erase_page() 179 size_t page_index = info->index; in test_flash_erase_page() [all …]
|
| /tests/lib/cmsis_dsp/common/ |
| A D | test_common.h | 77 size_t index; in TOOLCHAIN_DISABLE_WARNING() 91 size_t index; in test_equal_f32() 106 size_t index; in test_equal_f16() 121 size_t index; in test_equal_q63() 135 size_t index; in test_equal_q31() 149 size_t index; in test_equal_q15() 163 size_t index; in test_equal_q7() 178 size_t index; in test_near_equal_f64() 193 size_t index; in test_near_equal_f32() 209 size_t index; in test_near_equal_f16() [all …]
|
| /tests/lib/cmsis_dsp/filtering/src/ |
| A D | misc_q15.c | 21 size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_correlate_q15() 22 size_t ref_length) in test_arm_correlate_q15() 78 size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_q15() 136 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_q15() 173 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_fast_q15() 210 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_opt_q15() 253 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_fast_opt_q15() 296 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_q15() 303 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_fast_q15() 310 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_opt_q15() [all …]
|
| A D | misc_q7.c | 20 size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_correlate_q7() 21 size_t ref_length) in test_arm_correlate_q7() 77 size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_q7() 78 size_t ref_length) in test_arm_conv_q7() 135 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_q7() 136 size_t ref_length) in test_arm_conv_partial_q7() 172 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_opt_q7() 173 size_t ref_length) in test_arm_conv_partial_opt_q7() 215 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_q7() 216 size_t ref_length) in test_arm_conv_partial_q7() [all …]
|
| A D | misc_q31.c | 22 size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_correlate_q31() 23 size_t ref_length) in test_arm_correlate_q31() 103 size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_conv_q31() 104 size_t ref_length) in test_arm_conv_q31() 176 size_t first, size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_conv_partial_q31() 177 size_t ref_length) in test_arm_conv_partial_q31() 213 size_t first, size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_conv_partial_fast_q31() 214 size_t ref_length) in test_arm_conv_partial_fast_q31() 250 size_t first, size_t in1_length, size_t in2_length, const q31_t *ref, in test_arm_conv_partial_q31() 251 size_t ref_length) in test_arm_conv_partial_q31() [all …]
|
| A D | misc_f32.c | 23 size_t in1_length, size_t in2_length, const uint32_t *ref, in test_arm_correlate_f32() 24 size_t ref_length) in test_arm_correlate_f32() 107 size_t in1_length, size_t in2_length, const uint32_t *ref, in test_arm_conv_f32() 108 size_t ref_length) in test_arm_conv_f32() 183 size_t first, size_t in1_length, size_t in2_length, in test_arm_conv_partial_f32() 184 const uint32_t *ref, size_t ref_length) in test_arm_conv_partial_f32() 222 size_t first, size_t in1_length, size_t in2_length, in test_arm_conv_partial_f32() 223 const uint32_t *ref, size_t ref_length) in test_arm_conv_partial_f32() 240 size_t in_length, size_t err_index, const uint32_t *in, in test_arm_levinson_durbin_f32() 241 const uint32_t *ref, size_t ref_length) in test_arm_levinson_durbin_f32()
|
| /tests/lib/heap/src/ |
| A D | main.c | 68 static size_t fill_token(void *p, size_t sz) in fill_token() 70 size_t pi = (size_t) p; in fill_token() 88 ((size_t *)p)[0] = sz; in fill_block() 91 ((size_t *)p)[1] = tok; in fill_block() 94 if (sz > 3*sizeof(size_t)) { in fill_block() 95 ((size_t *)p)[sz / sizeof(size_t) - 1] = tok; in fill_block() 102 size_t sz = ((size_t *)p)[0]; in check_fill() 111 if (sz > 3 * sizeof(size_t)) { in check_fill() 112 zassert_true(((size_t *)p)[sz / sizeof(size_t) - 1] == tok, ""); in check_fill() 127 size_t addr = (size_t) ret; in testalloc() [all …]
|
| /tests/bluetooth/host/crypto/mocks/ |
| A D | aes.c | 11 DEFINE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t); 13 size_t, mbedtls_svc_key_id_t *); 15 const uint8_t *, size_t, uint8_t *, size_t, size_t *);
|
| A D | aes.h | 20 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t); 22 size_t, mbedtls_svc_key_id_t *); 24 const uint8_t *, size_t, uint8_t *, size_t, size_t *);
|
| /tests/bluetooth/host/id/bt_id_get/src/ |
| A D | main.c | 32 for (size_t i = 0; i < CONFIG_BT_ID_MAX; i++) { in fff_reset_rule_before() 39 for (size_t i = 0; i < CONFIG_BT_ID_MAX; i++) { in fff_reset_rule_before() 59 size_t count; in ZTEST() 77 size_t stored_count = bt_dev.id_count; in ZTEST() 78 size_t testing_counts[] = {0, 1, bt_dev.id_count, bt_dev.id_count + 2}; in ZTEST() 80 for (size_t it = 0; it < ARRAY_SIZE(testing_counts); it++) { in ZTEST() 81 size_t count = testing_counts[it]; in ZTEST() 82 size_t expected_count = MIN(count, stored_count); in ZTEST() 89 for (size_t i = 0; i < count; i++) { in ZTEST() 98 for (size_t i = count; i < stored_count; i++) { in ZTEST()
|
| /tests/kernel/pipe/deprecated/pipe_api/src/ |
| A D | test_pipe_avail.c | 45 size_t r_avail; in ZTEST() 46 size_t w_avail; in ZTEST() 85 size_t r_avail; in ZTEST() 86 size_t w_avail; in ZTEST() 124 size_t r_avail; in ZTEST() 125 size_t w_avail; in ZTEST() 167 size_t r_avail; in ZTEST() 168 size_t w_avail; in ZTEST() 210 size_t r_avail; in ZTEST() 211 size_t w_avail; in ZTEST()
|
| /tests/drivers/display/display_check/src/ |
| A D | main.c | 31 size_t buf_size); 42 size_t buf_size) in fill_buffer_argb8888() 164 size_t buf_size) in fill_buffer_al_88() 205 size_t x; in test_display() 206 size_t y; in test_display() 207 size_t rect_w; in test_display() 208 size_t rect_h; in test_display() 209 size_t h_step; in test_display() 210 size_t scale; in test_display() 211 size_t grey_count; in test_display() [all …]
|
| /tests/subsys/secure_storage/psa/its/src/ |
| A D | custom_transform.c | 9 secure_storage_its_uid_t uid, size_t data_len, const void *data, in secure_storage_its_transform_to_store() 12 size_t *stored_data_len) in secure_storage_its_transform_to_store() 23 secure_storage_its_uid_t uid, size_t stored_data_len, in secure_storage_its_transform_from_store() 25 size_t data_size, void *data, size_t *data_len, in secure_storage_its_transform_from_store()
|
| /tests/lib/hash_function/src/ |
| A D | main.c | 17 static void print_buckets(const char *label, float *buckets, size_t n) in print_buckets() 22 for (size_t i = 0; i < n; ++i) { in print_buckets() 30 static void create_histogram(float *buckets, size_t n) in create_histogram() 34 size_t bucket; in create_histogram() 36 for (size_t i = 0; i < CONFIG_TEST_HASH_FUNC_NUM_ENTRIES; ++i) { in create_histogram() 56 static int kolmogorov_smirnov_test(float *buckets, size_t n) in kolmogorov_smirnov_test() 70 for (size_t i = 0; i < n; ++i) { in kolmogorov_smirnov_test() 75 for (size_t i = 0; i < n; ++i) { in kolmogorov_smirnov_test() 83 for (size_t i = 0; i < n; ++i) { in kolmogorov_smirnov_test()
|
| /tests/lib/heap_align/src/ |
| A D | main.c | 19 size_t heap_chunk_header_size; 25 static bool alignment_ok(void *ptr, size_t align) in alignment_ok() 28 size_t rew; in alignment_ok() 49 size_t prefix, size_t align, size_t size) in check_heap_align() 52 size_t suffix; in check_heap_align() 107 for (size_t align = 8; align < HEAP_SZ / 4; align *= 2) { in ZTEST() 108 for (size_t prefix = 0; prefix <= align; prefix += 8) { in ZTEST() 109 for (size_t size = 4; size <= align; size += 12) { in ZTEST() 111 for (size_t rew = 4; rew < MIN(align, 32); rew *= 2) { in ZTEST()
|
| /tests/subsys/settings/file/include/ |
| A D | settings_test_file.h | 38 int fsutil_read_file(const char *path, off_t offset, size_t len, void *dst, 39 size_t *out_len); 40 int fsutil_write_file(const char *path, const void *data, size_t len); 42 size_t str_len);
|
| /tests/subsys/modem/modem_ppp/src/ |
| A D | main.c | 156 static size_t test_modem_ppp_fill_net_pkt(struct net_pkt *pkt, size_t size) in test_modem_ppp_fill_net_pkt() 171 size_t wrapped_pos = 4; in test_modem_ppp_unwrap() 172 size_t unwrapped_pos = 0; in test_modem_ppp_unwrap() 231 static size_t test_modem_ppp_wrap_ppp_frame(uint8_t *wrapped, const uint8_t *frame, size_t size) in test_modem_ppp_wrap_ppp_frame() 233 size_t wrapped_pos = 4; in test_modem_ppp_wrap_ppp_frame() 303 size_t pkt_len; in ZTEST() 331 size_t pkt_len; in ZTEST() 387 size_t pkt_len; in ZTEST() 469 size_t size; in ZTEST() 500 size_t size; in ZTEST() [all …]
|
| /tests/subsys/lorawan/frag_decoder/src/ |
| A D | frag_encoder.h | 26 int lorawan_frag_encoder(const uint8_t *uncoded, size_t uncoded_len, uint8_t *coded, 27 size_t coded_size, size_t frag_size, unsigned int redundant_frags);
|
| /tests/net/lib/wifi_credentials_backend_settings/src/ |
| A D | main.c | 39 FAKE_VALUE_FUNC(int, settings_save_one, const char *, const void *, size_t); 46 static size_t fake_settings_buf_lens[CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES]; 79 ssize_t custom_settings_read_cb(void *cb_arg, void *data, size_t len) in custom_settings_read_cb() 81 size_t *idx = cb_arg; in custom_settings_read_cb() 88 static int custom_settings_save_one(const char *name, const void *value, size_t val_len) in custom_settings_save_one() 93 for (size_t i = 0; i < CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES; ++i) { in custom_settings_save_one() 108 for (size_t i = 0; i < CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES; ++i) { in custom_settings_delete() 122 size_t subtree_len = strlen(subtree); in custom_settings_load_subtree_direct() 126 for (size_t i = 0; i < CONFIG_WIFI_CREDENTIALS_MAX_ENTRIES; ++i) { in custom_settings_load_subtree_direct() 136 static void custom_wifi_credentials_cache_ssid(size_t idx, in custom_wifi_credentials_cache_ssid() [all …]
|
| /tests/subsys/settings/file/src/ |
| A D | settings_test_file.c | 23 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb, 27 const void *value, size_t val_len)); 67 int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb, in c1_handle_set() 72 size_t val_len; in c1_handle_set() 112 const void *value, size_t val_len)) in c1_handle_export() 146 size_t *out_len) in fsutil_read_file() 170 int fsutil_write_file(const char *path, const void *data, size_t len) in fsutil_write_file() 190 char const *memmem(char const *mem, size_t mem_len, char const *sub, in memmem() 191 size_t sub_len) in memmem() 207 size_t str_len) in settings_test_file_strstr() [all …]
|
| /tests/posix/net/src/ |
| A D | if.c | 16 size_t n = 0; in ZTEST() 23 for (size_t i = 0; i < n; i++) { in ZTEST() 44 size_t n = 0; in ZTEST() 56 for (size_t i = 0; i < n; i++) { in ZTEST() 69 size_t n = 0; in ZTEST() 74 for (size_t i = 0; i < n; i++) { in ZTEST()
|
| /tests/kernel/threads/thread_stack/src/ |
| A D | main.c | 42 size_t *size) in z_vrfy_stack_info_get() 79 size_t metadata_size; 82 size_t object_size; 85 size_t reported_size; 88 size_t declared_size; 97 size_t obj_size = scenario_data.object_size; in stack_buffer_scenarios() 330 size_t unused; in stest_thread_launch() 359 void scenario_entry(void *stack_obj, size_t obj_size, size_t reported_size, in scenario_entry() 360 size_t declared_size, bool is_array) in scenario_entry() 363 size_t metadata_size; in scenario_entry() [all …]
|