/lvgl-latest/src/misc/ |
D | lv_text_ap.c | 115 uint32_t i, j; in lv_text_ap_calc_bytes_count() local 120 i = 0; in lv_text_ap_calc_bytes_count() 122 while(i < txt_length) { in lv_text_ap_calc_bytes_count() 138 i++; in lv_text_ap_calc_bytes_count() 147 uint32_t index_current, idx_next, idx_previous, i, j; in lv_text_ap_proc() local 157 i = 0; in lv_text_ap_proc() 160 ch_enc[j++] = lv_text_encoded_next(txt, &i); in lv_text_ap_proc() 164 i = 0; in lv_text_ap_proc() 167 while(i < txt_length) { in lv_text_ap_proc() 168 index_current = lv_ap_get_char_index(ch_enc[i]); in lv_text_ap_proc() [all …]
|
D | lv_text.c | 35 static uint32_t lv_text_utf8_next(const char * txt, uint32_t * i); 44 static uint32_t lv_text_iso8859_1_next(const char * txt, uint32_t * i); 211 uint32_t i = 0, i_next = 0, i_next_next = 0; /*Iterating index into txt*/ in lv_text_get_next_word() local 224 while(txt[i] != '\0') { in lv_text_get_next_word() 231 i = i_next; in lv_text_get_next_word() 247 break_index = i; in lv_text_get_next_word() 259 if(i == 0 && break_index == NO_BREAK_FOUND && word_w_ptr != NULL) *word_w_ptr = cur_w; in lv_text_get_next_word() 266 i = i_next; in lv_text_get_next_word() 273 i = i_next; in lv_text_get_next_word() 280 if(word_len == 0 || (letter == '\r' && letter_next == '\n')) i = i_next; in lv_text_get_next_word() [all …]
|
D | lv_bidi.c | 110 uint32_t i = 0; in lv_bidi_detect_base_dir() local 112 while(txt[i] != '\0') { in lv_bidi_detect_base_dir() 113 letter = lv_text_encoded_next(txt, &i); in lv_bidi_detect_base_dir() 167 for(uint16_t i = 0; i < pos_conv_len; i++) { in lv_bidi_get_visual_pos() local 168 if(GET_POS(pos_conv_buf[i]) == logical_pos) { in lv_bidi_get_visual_pos() 170 if(is_rtl) *is_rtl = IS_RTL_POS(pos_conv_buf[i]); in lv_bidi_get_visual_pos() 174 return i; in lv_bidi_get_visual_pos() 301 uint32_t i = 0; in lv_bidi_get_next_paragraph() local 303 lv_text_encoded_next(txt, &i); in lv_bidi_get_next_paragraph() 305 while(txt[i] != '\0' && txt[i] != '\n' && txt[i] != '\r') { in lv_bidi_get_next_paragraph() [all …]
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_image.c | 35 uint32_t i; in test_image_rotated_pivot_center() local 36 for(i = 0; i < 8; i++) { in test_image_rotated_pivot_center() 38 lv_obj_set_pos(img, 100 + (i % 4) * 160, 150 + (i / 4) * 150); in test_image_rotated_pivot_center() 39 lv_image_set_rotation(img, i * 450); in test_image_rotated_pivot_center() 49 uint32_t i; in test_image_rotated_pivot_top_left() local 50 for(i = 0; i < 8; i++) { in test_image_rotated_pivot_top_left() 52 lv_obj_set_pos(img, 120 + (i % 4) * 180, 100 + (i / 4) * 300); in test_image_rotated_pivot_top_left() 53 lv_image_set_rotation(img, i * 450); in test_image_rotated_pivot_top_left() 63 uint32_t i; in test_image_scale_pivot_center() local 64 for(i = 0; i < 8; i++) { in test_image_scale_pivot_center() [all …]
|
/lvgl-latest/tests/src/test_cases/libs/ |
D | test_memmove.c | 30 for(int i = 0; i < 4; i++) { in test_memmove() local 31 TEST_ASSERT_EQUAL_INT(i, buf[i]); in test_memmove() 38 for(int i = 0; i < 4; i++) { in test_memmove() local 39 TEST_ASSERT_EQUAL_INT(i + 1, buf[i]); in test_memmove() 43 for(int i = 0; i < 5; i++) buf[i] = i; in test_memmove() local 48 for(int i = 1; i < 5; i++) { in test_memmove() local 49 TEST_ASSERT_EQUAL_INT(i - 1, buf[i]); in test_memmove()
|
/lvgl-latest/tests/src/test_cases/ |
D | test_array.c | 23 for(int32_t i = 0; i < new_size; i++) { in test_array_append_values() local 24 lv_array_push_back(&array, &i); in test_array_append_values() 40 for(int32_t i = 0; i < 10; i++) { in test_array_size() local 41 lv_array_push_back(&array, &i); in test_array_size() 52 for(int32_t i = 0; i < LV_ARRAY_DEFAULT_CAPACITY; i++) { in test_array_resize() local 53 lv_array_push_back(&array, &i); in test_array_resize() 67 for(int32_t i = 0; i < LV_ARRAY_DEFAULT_CAPACITY; i++) { in test_array_copy() local 68 lv_array_push_back(&array, &i); in test_array_copy() 86 for(int32_t i = 0; i < 4; i++) { in test_array_concat() local 87 lv_array_push_back(&a, &i); in test_array_concat() [all …]
|
D | test_circle_buf.c | 22 for(int32_t i = 0; i < circle_buf_CAPACITY * 2; i++) { in setUp() local 23 const lv_result_t res = lv_circle_buf_write(circle_buf, &i); in setUp() 25 if(i < circle_buf_CAPACITY) TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in setUp() 58 for(int32_t i = 0, j = 1; i < circle_buf_CAPACITY * 10; i++, j++) { in test_circle_buf_read_write_peek_values() local 60 const lv_result_t res = lv_circle_buf_peek_at(circle_buf, i, &value); in test_circle_buf_read_write_peek_values() 72 for(int32_t i = 1; i < circle_buf_CAPACITY * 2; i++) { in test_circle_buf_read_write_peek_values() local 76 if(i < circle_buf_CAPACITY) { in test_circle_buf_read_write_peek_values() 78 TEST_ASSERT_EQUAL_INT32(i, value); in test_circle_buf_read_write_peek_values() 106 for(int32_t i = 1; i < circle_buf_CAPACITY * 2; i++) { in test_circle_buf_skip_values() local 109 if(i < circle_buf_CAPACITY) { in test_circle_buf_skip_values() [all …]
|
D | test_margin_grid.c | 49 for(int i = 0; i < M; ++i) { in test_grid() local 50 row_dsc[i] = 80; in test_grid() 52 for(int i = 0; i < N; ++i) { in test_grid() local 53 col_dsc[i] = 80; in test_grid() 76 for(int i = 0; i < M; ++i) { in test_grid() local 78 obj0s[i][j] = obj_create(obj0, in test_grid() 79 … lv_palette_main(colors[(i * M + j) % ((sizeof colors) / (sizeof(lv_palette_t)))])); in test_grid() 84 for(int i = 0; i < M; i++) { in test_grid() local 86 o = obj0s[i][j]; in test_grid() 92 lv_obj_set_grid_cell(o, LV_GRID_ALIGN_CENTER, j, 1, LV_GRID_ALIGN_STRETCH, i, 1); in test_grid() [all …]
|
D | test_file_explorer.c | 42 for(uint8_t i = 0; i < file_table->row_cnt; i++) { in test_file_explorer_read_dir() local 43 …if(lv_strcmp(lv_table_get_cell_value(file_explorer->file_table, i, 0), LV_SYMBOL_LEFT " Back") ==… in test_file_explorer_read_dir() 44 back_row = i; in test_file_explorer_read_dir() 46 …if(lv_strcmp(lv_table_get_cell_value(file_explorer->file_table, i, 0), LV_SYMBOL_DIRECTORY " dev"… in test_file_explorer_read_dir() 47 dev_row = i; in test_file_explorer_read_dir() 49 …if(lv_strcmp(lv_table_get_cell_value(file_explorer->file_table, i, 0), LV_SYMBOL_DIRECTORY " home… in test_file_explorer_read_dir() 50 home_row = i; in test_file_explorer_read_dir() 61 for(uint8_t i = 0; i < file_table->row_cnt; i++) { in test_file_explorer_read_dir() local 62 …if(lv_strcmp(lv_table_get_cell_value(file_explorer->file_table, i, 0), LV_SYMBOL_DIRECTORY " shm"… in test_file_explorer_read_dir() 63 shm_row = i; in test_file_explorer_read_dir() [all …]
|
D | test_fs.c | 98 uint32_t i; in read_range() local 99 for(i = 0; i < len; i++) { in read_range() 100 TEST_ASSERT_EQUAL(buf_rd[i], from + i); in read_range() 112 uint32_t i; in read_next() local 113 for(i = 0; i < br; i++) { in read_next() 114 TEST_ASSERT_EQUAL(buf_rd[i], from + i); in read_next() 134 uint32_t i; in read_random_drv() local 135 for(i = 0; i < 256; i++) buf256[i] = i; in read_random_drv() 162 for(i = 0; i < 1000; i++) { in read_random_drv() 163 uint8_t from = ranges[i][0]; in read_random_drv() [all …]
|
/lvgl-latest/src/libs/lodepng/ |
D | lodepng.c | 471 size_t i; in writeBits() local 472 for(i = 0; i != nbits; ++i) { in writeBits() 473 WRITEBIT(writer, (unsigned char)((value >> i) & 1)); in writeBits() 481 size_t i; in writeBitsReversed() local 482 for(i = 0; i != nbits; ++i) { in writeBitsReversed() 484 WRITEBIT(writer, (unsigned char)((value >> (nbits - 1u - i)) & 1u)); in writeBitsReversed() 627 unsigned i, result = 0; in reverseBits() local 628 for(i = 0; i < num; i++) result |= ((bits >> (num - i - 1u)) & 1u) << i; in reverseBits() 718 size_t i, numpresent, pointer, size; /*total table size*/ in HuffmanTree_makeTable() local 724 for(i = 0; i < tree->numcodes; i++) { in HuffmanTree_makeTable() [all …]
|
/lvgl-latest/src/core/ |
D | lv_obj_tree.c | 168 int32_t i; in lv_obj_set_parent() local 169 for(i = lv_obj_get_index(obj); i <= (int32_t)lv_obj_get_child_count(old_parent) - 2; i++) { in lv_obj_set_parent() 170 old_parent->spec_attr->children[i] = old_parent->spec_attr->children[i + 1]; in lv_obj_set_parent() 234 int32_t i = old_index; in lv_obj_move_to_index() local 236 while(i > index) { in lv_obj_move_to_index() 237 parent->spec_attr->children[i] = parent->spec_attr->children[i - 1]; in lv_obj_move_to_index() 238 i--; in lv_obj_move_to_index() 242 while(i < index) { in lv_obj_move_to_index() 243 parent->spec_attr->children[i] = parent->spec_attr->children[i + 1]; in lv_obj_move_to_index() 244 i++; in lv_obj_move_to_index() [all …]
|
D | lv_obj_style.c | 113 uint32_t i; in lv_obj_add_style() local 115 for(i = 0; i < obj->style_cnt; i++) { in lv_obj_add_style() 116 if(obj->styles[i].is_trans) continue; in lv_obj_add_style() 117 if(obj->styles[i].is_local) continue; in lv_obj_add_style() 130 for(j = obj->style_cnt - 1; j > i ; j--) { in lv_obj_add_style() 134 lv_memzero(&obj->styles[i], sizeof(lv_obj_style_t)); in lv_obj_add_style() 135 obj->styles[i].style = style; in lv_obj_add_style() 136 obj->styles[i].selector = selector; in lv_obj_add_style() 142 for(i = 0; props[i].prop != LV_STYLE_PROP_INV; i++) { in lv_obj_add_style() 143 (*prop_is_set) |= STYLE_PROP_SHIFTED(props[i].prop); in lv_obj_add_style() [all …]
|
/lvgl-latest/demos/render/ |
D | lv_demo_render.c | 65 uint32_t i; in fill_cb() local 66 for(i = 0; i < COL_CNT; i++) { in fill_cb() 67 fill_obj_create(parent, i, 0); in fill_cb() 70 for(i = 0; i < COL_CNT; i++) { in fill_cb() 71 lv_obj_t * obj = fill_obj_create(parent, i, 1); in fill_cb() 75 for(i = 0; i < COL_CNT; i++) { in fill_cb() 76 lv_obj_t * obj = fill_obj_create(parent, i, 2); in fill_cb() 80 for(i = 0; i < COL_CNT; i++) { in fill_cb() 81 lv_obj_t * obj = fill_obj_create(parent, i, 3); in fill_cb() 88 for(i = 0; i < COL_CNT; i++) { in fill_cb() [all …]
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | biginteger.h | 48 size_t i = 0; in BigInteger() local 51 AppendDecimal64(decimals + i, decimals + i + kMaxDigitPerIteration); in BigInteger() 53 i += kMaxDigitPerIteration; in BigInteger() 57 AppendDecimal64(decimals + i, decimals + i + length); in BigInteger() 78 for (size_t i = 0; i < count_ - 1; i++) { variable 79 if (digits_[i] >= backup) 81 backup = digits_[i + 1]; 82 digits_[i + 1] += 1; 98 for (size_t i = 0; i < count_; i++) { variable 100 digits_[i] = MulAdd64(digits_[i], u, k, &hi); [all …]
|
/lvgl-latest/examples/others/gridnav/ |
D | lv_example_gridnav_5.c | 12 uint8_t i = (uint32_t)(uintptr_t)lv_event_get_user_data(e); in slider_key_cb() local 13 lv_roller_set_selected(rollers[i], lv_slider_get_value(sliders[i]), LV_ANIM_ON); in slider_key_cb() 17 uint8_t i = (uint32_t)(uintptr_t)lv_event_get_user_data(e); in roller_key_cb() local 18 lv_slider_set_value(sliders[i], lv_roller_get_selected(rollers[i]), LV_ANIM_ON); in roller_key_cb() 41 for(uint32_t i = 0; i < 3; i++) { in lv_example_gridnav_5() local 43 lv_slider_set_range(slider, 0, opts_counts[i] - 1); in lv_example_gridnav_5() 46 sliders[i] = slider; in lv_example_gridnav_5() 47 lv_obj_add_event_cb(slider, slider_key_cb, LV_EVENT_KEY, (void *)(uintptr_t)i); in lv_example_gridnav_5() 59 for(uint32_t i = 0; i < 3; i++) { in lv_example_gridnav_5() local 61 lv_roller_set_options(roller, opts[i], LV_ROLLER_MODE_INFINITE); in lv_example_gridnav_5() [all …]
|
/lvgl-latest/src/indev/ |
D | lv_indev_gesture.c | 209 uint8_t i; in lv_indev_gesture_detect_pinch() local 227 for(i = 0; i < touch_cnt; i++) { in lv_indev_gesture_detect_pinch() 234 … i, touch->id, touch->state, touch->point.x, touch->point.y, r->info->finger_cnt); in lv_indev_gesture_detect_pinch() 370 uint8_t i; in init_gesture_info() local 378 for(i = 0; i < LV_GESTURE_MAX_POINTS; i++) { in init_gesture_info() 379 info->motions[i].finger = -1; in init_gesture_info() 393 uint8_t i; in get_motion() local 395 for(i = 0; i < LV_GESTURE_MAX_POINTS; i++) { in get_motion() 396 if(info->motions[i].finger == id) { in get_motion() 397 return &info->motions[i]; in get_motion() [all …]
|
/lvgl-latest/src/font/ |
D | lv_font_fmt_txt.c | 99 int32_t i = 0; in lv_font_get_bitmap_fmt_txt() local 104 for(x = 0; x < gdsc->box_w; x++, i++) { in lv_font_get_bitmap_fmt_txt() 105 i = i & 0x7; in lv_font_get_bitmap_fmt_txt() 106 if(i == 0) bitmap_out_tmp[x] = (*bitmap_in) & 0x80 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() 107 else if(i == 1) bitmap_out_tmp[x] = (*bitmap_in) & 0x40 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() 108 else if(i == 2) bitmap_out_tmp[x] = (*bitmap_in) & 0x20 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() 109 else if(i == 3) bitmap_out_tmp[x] = (*bitmap_in) & 0x10 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() 110 else if(i == 4) bitmap_out_tmp[x] = (*bitmap_in) & 0x08 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() 111 else if(i == 5) bitmap_out_tmp[x] = (*bitmap_in) & 0x04 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() 112 else if(i == 6) bitmap_out_tmp[x] = (*bitmap_in) & 0x02 ? 0xff : 0x00; in lv_font_get_bitmap_fmt_txt() [all …]
|
/lvgl-latest/src/libs/qrcode/ |
D | qrcodegen.c | 83 static bool getBit(int x, int i); 153 for(size_t i = 0; i < textLen; i++) in qrcodegen_encodeText() local 154 tempBuffer[i] = (uint8_t)text[i]; in qrcodegen_encodeText() 193 for(int i = numBits - 1; i >= 0; i--, (*bitLen)++) in appendBitsToBuffer() local 194 buffer[*bitLen >> 3] |= ((val >> i) & 1) << (7 - (*bitLen & 7)); in appendBitsToBuffer() 233 … for(int i = (int)qrcodegen_Ecc_MEDIUM; i <= (int)qrcodegen_Ecc_HIGH; i++) { // From low to high in qrcodegen_encodeSegmentsAdvanced() local 234 if(boostEcl && dataUsedBits <= getNumDataCodewords(version, (enum qrcodegen_Ecc)i) * 8) in qrcodegen_encodeSegmentsAdvanced() 235 ecl = (enum qrcodegen_Ecc)i; in qrcodegen_encodeSegmentsAdvanced() 241 for(size_t i = 0; i < len; i++) { in qrcodegen_encodeSegmentsAdvanced() local 242 const struct qrcodegen_Segment * seg = &segs[i]; in qrcodegen_encodeSegmentsAdvanced() [all …]
|
/lvgl-latest/src/layouts/grid/ |
D | lv_grid.c | 209 uint32_t i; in grid_update() local 210 for(i = 0; i < cont->spec_attr->child_cnt; i++) { in grid_update() 211 lv_obj_t * item = cont->spec_attr->children[i]; in grid_update() 306 uint32_t i; in calc_cols() local 307 for(i = 0; i < c->col_num; i++) { in calc_cols() 309 if(IS_CONTENT(col_templ[i])) { in calc_cols() 319 if(col_pos != i) continue; in calc_cols() 323 if(size >= 0) c->w[i] = size; in calc_cols() 324 else c->w[i] = 0; in calc_cols() 331 for(i = 0; i < c->col_num; i++) { in calc_cols() [all …]
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_utils.c | 119 for(uint8_t i = 0; i < cnt; i++) { in lv_nemagfx_grad_set() local 120 stops[i] = (float)(lv_grad.stops[i].frac) / 255.f; in lv_nemagfx_grad_set() 121 colors[i].a = LV_OPA_MIX2(lv_grad.stops[i].opa, opa); in lv_nemagfx_grad_set() 122 colors[i].r = lv_grad.stops[i].color.red; in lv_nemagfx_grad_set() 123 colors[i].g = lv_grad.stops[i].color.green; in lv_nemagfx_grad_set() 124 colors[i].b = lv_grad.stops[i].color.blue; in lv_nemagfx_grad_set()
|
/lvgl-latest/src/others/xml/parsers/ |
D | lv_xml_chart_parser.c | 57 for(int i = 0; attrs[i]; i += 2) { in lv_xml_chart_apply() local 58 const char * name = attrs[i]; in lv_xml_chart_apply() 59 const char * value = attrs[i + 1]; in lv_xml_chart_apply() 90 for(int i = 0; attrs[i]; i += 2) { in lv_xml_chart_series_apply() local 91 const char * name = attrs[i]; in lv_xml_chart_series_apply() 92 const char * value = attrs[i + 1]; in lv_xml_chart_series_apply() 121 for(int i = 0; attrs[i]; i += 2) { in lv_xml_chart_cursor_apply() local 122 const char * name = attrs[i]; in lv_xml_chart_cursor_apply() 123 const char * value = attrs[i + 1]; in lv_xml_chart_cursor_apply() 151 for(int i = 0; attrs[i]; i += 2) { in lv_xml_chart_axis_apply() local [all …]
|
/lvgl-latest/src/widgets/calendar/ |
D | lv_calendar.c | 88 uint32_t i; in lv_calendar_set_day_names() local 89 for(i = 0; i < 7; i++) { in lv_calendar_set_day_names() 90 calendar->map[i] = day_names[i]; in lv_calendar_set_day_names() 134 uint32_t i; in lv_calendar_set_month_shown() local 138 for(i = 0; i < 7; i++) { in lv_calendar_set_month_shown() 139 lv_buttonmatrix_set_button_ctrl(calendar->btnm, i, LV_BUTTONMATRIX_CTRL_DISABLED); in lv_calendar_set_month_shown() 151 for(i = day_first, c = 1; i < act_mo_len + day_first; i++, c++) { in lv_calendar_set_month_shown() 155 chinese_calendar_set_day_name(obj, i, c, &gregorian_time); in lv_calendar_set_month_shown() 159 lv_snprintf(calendar->nums[i], sizeof(calendar->nums[0]), "%d", c); in lv_calendar_set_month_shown() 168 for(i = 0, c = prev_mo_len - day_first + 1; i < day_first; i++, c++) { in lv_calendar_set_month_shown() [all …]
|
/lvgl-latest/src/stdlib/builtin/ |
D | lv_string_builtin.c | 188 size_t i = 0; in lv_strlen() local 189 while(str[i]) i++; in lv_strlen() 191 return i; in lv_strlen() 196 size_t i = 0; in lv_strlcpy() local 198 for(; i < dst_size - 1 && src[i]; i++) { in lv_strlcpy() 199 dst[i] = src[i]; in lv_strlcpy() 201 dst[i] = '\0'; in lv_strlcpy() 203 while(src[i]) i++; in lv_strlcpy() 204 return i; in lv_strlcpy() 209 size_t i; in lv_strncpy() local [all …]
|
/lvgl-latest/src/drivers/display/drm/ |
D | lv_linux_drm.c | 184 uint32_t i; in get_plane_property_id() local 188 for(i = 0; i < drm_dev->count_plane_props; ++i) in get_plane_property_id() 189 if(!lv_strcmp(drm_dev->plane_props[i]->name, name)) in get_plane_property_id() 190 return drm_dev->plane_props[i]->prop_id; in get_plane_property_id() 199 uint32_t i; in get_crtc_property_id() local 203 for(i = 0; i < drm_dev->count_crtc_props; ++i) in get_crtc_property_id() 204 if(!lv_strcmp(drm_dev->crtc_props[i]->name, name)) in get_crtc_property_id() 205 return drm_dev->crtc_props[i]->prop_id; in get_crtc_property_id() 214 uint32_t i; in get_conn_property_id() local 218 for(i = 0; i < drm_dev->count_conn_props; ++i) in get_conn_property_id() [all …]
|