/lvgl-latest/tests/src/test_cases/ |
D | test_fs.c | 30 lv_fs_res_t res; in test_read() local 41 res = lv_fs_open(&fa, "A:src/test_files/readtest.txt", LV_FS_MODE_RD); in test_read() 42 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 46 res = lv_fs_open(&fb, "B:src/test_files/readtest.txt", LV_FS_MODE_RD); in test_read() 47 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 54 res = lv_fs_read(&fa, buf, sizeof(buf), &br); in test_read() 55 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 58 res = lv_fs_read(&fb, buf, sizeof(buf), &br); in test_read() 59 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 128 lv_fs_res_t res; in read_random_drv() local [all …]
|
D | test_circle_buf.c | 23 const lv_result_t res = lv_circle_buf_write(circle_buf, &i); in setUp() local 25 if(i < circle_buf_CAPACITY) TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in setUp() 26 else TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in setUp() 48 const lv_result_t res = lv_circle_buf_read(circle_buf, &value); in test_circle_buf_read_write_peek_values() local 50 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_write_peek_values() 60 const lv_result_t res = lv_circle_buf_peek_at(circle_buf, i, &value); in test_circle_buf_read_write_peek_values() local 62 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_write_peek_values() 74 const lv_result_t res = lv_circle_buf_read(circle_buf, &value); in test_circle_buf_read_write_peek_values() local 77 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_write_peek_values() 81 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_circle_buf_read_write_peek_values() [all …]
|
D | test_draw_buf_stride.c | 64 lv_result_t res = lv_image_decoder_open(&decoder_dsc, img_src, &args); in test_draw_buf_stride_adjust() local 65 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_draw_buf_stride_adjust() 79 res = lv_draw_buf_adjust_stride(decoded, min_stride - 1); in test_draw_buf_stride_adjust() 80 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_draw_buf_stride_adjust() 83 res = lv_draw_buf_adjust_stride(decoded, image_stride + 1); in test_draw_buf_stride_adjust() 84 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_draw_buf_stride_adjust() 96 res = lv_draw_buf_adjust_stride(larger, min_stride); in test_draw_buf_stride_adjust() 97 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_draw_buf_stride_adjust() 103 res = lv_draw_buf_adjust_stride(larger, min_stride + 20); in test_draw_buf_stride_adjust() 104 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_draw_buf_stride_adjust()
|
/lvgl-latest/examples/porting/ |
D | lv_port_fs_template.c | 107 lv_fs_res_t res = LV_FS_RES_NOT_IMP; 135 lv_fs_res_t res = LV_FS_RES_NOT_IMP; 139 return res; 153 lv_fs_res_t res = LV_FS_RES_NOT_IMP; 157 return res; 171 lv_fs_res_t res = LV_FS_RES_NOT_IMP; 175 return res; 188 lv_fs_res_t res = LV_FS_RES_NOT_IMP; 192 return res; 203 lv_fs_res_t res = LV_FS_RES_NOT_IMP; [all …]
|
/lvgl-latest/tests/src/test_cases/libs/ |
D | test_barcode.c | 31 lv_result_t res; in test_barcode_normal() local 44 res = lv_barcode_update(barcode, "https://lvgl.io"); in test_barcode_normal() 45 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal() 51 res = lv_barcode_update(barcode, "https://lvgl.io"); in test_barcode_normal() 52 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal() 60 res = lv_barcode_update(barcode, "https://lvgl.io"); in test_barcode_normal() 61 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal() 67 res = lv_barcode_update(barcode, "https://lvgl.io"); in test_barcode_normal() 68 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal()
|
/lvgl-latest/src/misc/ |
D | lv_fs.c | 166 lv_fs_res_t res = file_p->drv->close_cb(file_p->drv, file_p->file_d); in lv_fs_close() local 183 return res; in lv_fs_close() 201 lv_fs_res_t res; in lv_fs_read() local 204 res = lv_fs_read_cached(file_p, buf, btr, &br_tmp); in lv_fs_read() 207 res = file_p->drv->read_cb(file_p->drv, file_p->file_d, buf, btr, &br_tmp); in lv_fs_read() 214 return res; in lv_fs_read() 234 lv_fs_res_t res; in lv_fs_write() local 237 res = lv_fs_write_cached(file_p, buf, btw, &bw_tmp); in lv_fs_write() 240 res = file_p->drv->write_cb(file_p->drv, file_p->file_d, buf, btw, &bw_tmp); in lv_fs_write() 245 return res; in lv_fs_write() [all …]
|
D | lv_utils.c | 64 lv_fs_res_t res = lv_fs_open(&file, path, LV_FS_MODE_WR); in lv_draw_buf_save_to_file() local 65 if(res != LV_FS_RES_OK) { in lv_draw_buf_save_to_file() 74 res = lv_fs_write(&file, &draw_buf->header, sizeof(draw_buf->header), &bw); in lv_draw_buf_save_to_file() 75 if(res != LV_FS_RES_OK || bw != sizeof(draw_buf->header)) { in lv_draw_buf_save_to_file() 81 res = lv_fs_write(&file, draw_buf->data, draw_buf->data_size, &bw); in lv_draw_buf_save_to_file() 82 if(res != LV_FS_RES_OK || bw != draw_buf->data_size) { in lv_draw_buf_save_to_file()
|
/lvgl-latest/scripts/gen_json/ |
D | pycparser_monkeypatch.py | 121 res = self.type.to_dict() 122 res['json_type'] = 'array' 123 res['dim'] = dim 124 res['quals'].extend(self.dim_quals) 125 return res 127 res = OrderedDict([ 134 return res 210 res = OrderedDict([ 217 res = OrderedDict([ 223 res = self.type.to_dict() [all …]
|
/lvgl-latest/src/draw/sw/blend/ |
D | lv_draw_sw_blend_to_rgb565.c | 481 uint16_t res = 0; in i1_image_blend() local 486 res = (LV_MIN(dest_buf_u16[dest_x] + l8_to_rgb565(chan_val), 0xFFFF)); in i1_image_blend() 490 res = (LV_MAX(dest_buf_u16[dest_x] - l8_to_rgb565(chan_val), 0)); in i1_image_blend() 494 … res = ((((dest_buf_u16[dest_x] >> 11) * (l8_to_rgb565(chan_val) >> 3)) & 0x1F) << 11) | in i1_image_blend() 504 dest_buf_u16[dest_x] = res; in i1_image_blend() 507 dest_buf_u16[dest_x] = lv_color_16_16_mix(res, dest_buf_u16[dest_x], opa); in i1_image_blend() 511 … dest_buf_u16[dest_x] = lv_color_16_16_mix(res, dest_buf_u16[dest_x], mask_buf[dest_x]); in i1_image_blend() 513 …dest_buf_u16[dest_x] = lv_color_16_16_mix(res, dest_buf_u16[dest_x], LV_OPA_MIX2(mask_buf[dest_x],… in i1_image_blend() 594 uint16_t res = 0; in al88_image_blend() local 602 res = (LV_MIN(dest_buf_c16[dest_x].red + rb, 31)) << 11; in al88_image_blend() [all …]
|
/lvgl-latest/src/libs/bin_decoder/ |
D | lv_bin_decoder.c | 129 lv_fs_res_t res; in lv_bin_decoder_info() local 131 res = lv_fs_read(&dsc->file, header, sizeof(lv_image_header_t), &rn); in lv_bin_decoder_info() 133 if(res != LV_FS_RES_OK || rn != sizeof(lv_image_header_t)) { in lv_bin_decoder_info() 134 LV_LOG_WARN("Read file header failed: %d", res); in lv_bin_decoder_info() 184 lv_result_t res = LV_RESULT_INVALID; in lv_bin_decoder_open() local 219 res = decode_compressed(decoder, dsc); in lv_bin_decoder_open() 224 res = load_indexed(decoder, dsc); in lv_bin_decoder_open() 227 res = decode_indexed(decoder, dsc); in lv_bin_decoder_open() 231 res = decode_alpha_only(decoder, dsc); in lv_bin_decoder_open() 240 res = decode_rgb(decoder, dsc); in lv_bin_decoder_open() [all …]
|
/lvgl-latest/src/core/ |
D | lv_obj_event.c | 67 lv_result_t res = event_send_core(&e); in lv_obj_send_event() local 72 return res; in lv_obj_send_event() 93 lv_result_t res = LV_RESULT_OK; in lv_obj_event_base() local 95 if(e->deleted) res = LV_RESULT_INVALID; in lv_obj_event_base() 97 return res; in lv_obj_event_base() 321 void lv_event_set_cover_res(lv_event_t * e, lv_cover_res_t res) in lv_event_set_cover_res() argument 325 if(res > p->res) p->res = res; /*Save only "stronger" results*/ in lv_event_set_cover_res() 360 lv_result_t res = LV_RESULT_OK; in event_send_core() local 363 res = lv_event_send(list, e, true); in event_send_core() 364 if(res != LV_RESULT_OK || e->stop_processing) return res; in event_send_core() [all …]
|
D | lv_obj_event_private.h | 36 bool res; /**< true: `point` can click the object; false: it cannot*/ member 45 lv_cover_res_t res; member
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_vg_lite_decoder.c | 155 lv_result_t res = lv_bin_decoder_info(decoder, dsc, header); in decoder_info() local 156 if(res != LV_RESULT_OK) { in decoder_info() 157 return res; in decoder_info() 245 lv_fs_res_t res = lv_fs_open(&file, path, LV_FS_MODE_RD); in decoder_open_file() local 246 if(res != LV_FS_RES_OK) { in decoder_open_file() 254 res = lv_fs_read(&file, &src_header, sizeof(src_header), &header_br); in decoder_open_file() 255 if(res != LV_FS_RES_OK || header_br != sizeof(src_header)) { in decoder_open_file() 288 res = lv_fs_read(&file, dest, palette_size_bytes, &palette_br); in decoder_open_file() 289 if(res != LV_FS_RES_OK || palette_br != palette_size_bytes) { in decoder_open_file() 312 res = lv_fs_read(&file, src_temp, src_stride, &br); in decoder_open_file() [all …]
|
/lvgl-latest/src/draw/ |
D | lv_draw_image.c | 113 lv_result_t res = lv_image_decoder_get_info(new_image_dsc->src, &new_image_dsc->header); in lv_draw_image() local 114 if(res != LV_RESULT_OK) { in lv_draw_image() 179 lv_result_t res = lv_image_decoder_open(&decoder_dsc, draw_dsc->src, NULL); in lv_draw_image_normal_helper() local 180 if(res != LV_RESULT_OK) { in lv_draw_image_normal_helper() 199 lv_result_t res = lv_image_decoder_open(&decoder_dsc, draw_dsc->src, NULL); in lv_draw_image_tiled_helper() local 200 if(res != LV_RESULT_OK) { in lv_draw_image_tiled_helper() 249 void lv_image_buf_get_transformed_area(lv_area_t * res, int32_t w, int32_t h, int32_t angle, in lv_image_buf_get_transformed_area() argument 253 res->x1 = 0; in lv_image_buf_get_transformed_area() 254 res->y1 = 0; in lv_image_buf_get_transformed_area() 255 res->x2 = w - 1; in lv_image_buf_get_transformed_area() [all …]
|
D | lv_image_decoder.c | 129 lv_result_t res = dsc->decoder->open_cb(dsc->decoder, dsc); in lv_image_decoder_open() local 132 if(dsc->args.flush_cache && res == LV_RESULT_OK && dsc->decoded != NULL) { in lv_image_decoder_open() 143 return res; in lv_image_decoder_open() 149 lv_result_t res = LV_RESULT_INVALID; in lv_image_decoder_get_area() local 150 …if(dsc->decoder->get_area_cb) res = dsc->decoder->get_area_cb(dsc->decoder, dsc, full_area, decode… in lv_image_decoder_get_area() 152 return res; in lv_image_decoder_get_area() 249 lv_result_t res = lv_draw_buf_adjust_stride(decoded, stride_expect); in lv_image_decoder_post_process() local 250 if(res != LV_RESULT_OK) { in lv_image_decoder_post_process() 343 lv_result_t res = decoder->info_cb(decoder, dsc, header); in image_decoder_get_info() local 347 if(res == LV_RESULT_OK) { in image_decoder_get_info()
|
/lvgl-latest/src/libs/fsdrv/ |
D | lv_fs_win32.c | 115 lv_fs_res_t res; in fs_error_from_win32() local 119 res = LV_FS_RES_OK; in fs_error_from_win32() 130 res = LV_FS_RES_HW_ERR; in fs_error_from_win32() 134 res = LV_FS_RES_FS_ERR; in fs_error_from_win32() 145 res = LV_FS_RES_NOT_EX; in fs_error_from_win32() 148 res = LV_FS_RES_FULL; in fs_error_from_win32() 153 res = LV_FS_RES_LOCKED; in fs_error_from_win32() 164 res = LV_FS_RES_DENIED; in fs_error_from_win32() 167 res = LV_FS_RES_BUSY; in fs_error_from_win32() 170 res = LV_FS_RES_TOUT; in fs_error_from_win32() [all …]
|
D | lv_fs_fatfs.c | 123 FRESULT res = f_open(f, buf, flags); in fs_open() local 124 if(res == FR_OK) { in fs_open() 161 FRESULT res = f_read(file_p, buf, btr, (UINT *)br); in fs_read() local 162 if(res == FR_OK) return LV_FS_RES_OK; in fs_read() 178 FRESULT res = f_write(file_p, buf, btw, (UINT *)bw); in fs_write() local 179 if(res == FR_OK) return LV_FS_RES_OK; in fs_write() 241 FRESULT res = f_opendir(d, buf); in fs_dir_open() local 242 if(res != FR_OK) { in fs_dir_open() 263 FRESULT res; in fs_dir_read() local 268 res = f_readdir(dir_p, &fno); in fs_dir_read() [all …]
|
/lvgl-latest/src/font/ |
D | lv_binfont_loader.c | 69 static int read_bits_signed(bit_iterator_t * it, int n_bits, lv_fs_res_t * res); 70 static unsigned int read_bits(bit_iterator_t * it, int n_bits, lv_fs_res_t * res); 170 static unsigned int read_bits(bit_iterator_t * it, int n_bits, lv_fs_res_t * res) in read_bits() argument 179 *res = lv_fs_read(it->fp, &(it->byte_value), 1, NULL); in read_bits() 180 if(*res != LV_FS_RES_OK) { in read_bits() 188 *res = LV_FS_RES_OK; in read_bits() 192 static int read_bits_signed(bit_iterator_t * it, int n_bits, lv_fs_res_t * res) in read_bits_signed() argument 194 unsigned int value = read_bits(it, n_bits, res); in read_bits_signed() 226 lv_fs_res_t res = lv_fs_seek(fp, cmaps_start + cmap_table[i].data_offset, LV_FS_SEEK_SET); in load_cmaps_tables() local 227 if(res != LV_FS_RES_OK) { in load_cmaps_tables() [all …]
|
/lvgl-latest/src/libs/libpng/ |
D | lv_libpng.c | 214 lv_fs_res_t res; in alloc_file() local 218 res = lv_fs_open(&f, filename, LV_FS_MODE_RD); in alloc_file() 219 if(res != LV_FS_RES_OK) { in alloc_file() 224 res = lv_fs_seek(&f, 0, LV_FS_SEEK_END); in alloc_file() 225 if(res != LV_FS_RES_OK) { in alloc_file() 229 res = lv_fs_tell(&f, &data_size); in alloc_file() 230 if(res != LV_FS_RES_OK) { in alloc_file() 234 res = lv_fs_seek(&f, 0, LV_FS_SEEK_SET); in alloc_file() 235 if(res != LV_FS_RES_OK) { in alloc_file() 246 res = lv_fs_read(&f, data, data_size, &rn); in alloc_file() [all …]
|
/lvgl-latest/src/others/snapshot/ |
D | lv_snapshot.c | 78 lv_result_t res; in lv_snapshot_take_to_draw_buf() local 98 res = lv_snapshot_reshape_draw_buf(obj, draw_buf); in lv_snapshot_take_to_draw_buf() 99 if(res != LV_RESULT_OK) return res; in lv_snapshot_take_to_draw_buf() 169 lv_result_t res = lv_snapshot_take_to_draw_buf(obj, cf, &draw_buf); in lv_snapshot_take_to_buf() local 170 if(res == LV_RESULT_OK) { in lv_snapshot_take_to_buf() 173 return res; in lv_snapshot_take_to_buf()
|
/lvgl-latest/examples/others/xml/ |
D | lv_example_xml_2.c | 6 lv_result_t res; in lv_example_xml_2() local 7 res = lv_xml_component_register_from_file("A:lvgl/examples/others/xml/my_h3.xml"); in lv_example_xml_2() 8 if(res != LV_RESULT_OK) { in lv_example_xml_2()
|
/lvgl-latest/src/libs/tiny_ttf/ |
D | stb_rect_pack.h | 451 stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); in stbrp__skyline_pack_rectangle() local 458 if(res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { in stbrp__skyline_pack_rectangle() 459 res.prev_link = NULL; in stbrp__skyline_pack_rectangle() 460 return res; in stbrp__skyline_pack_rectangle() 465 node->x = (stbrp_coord) res.x; in stbrp__skyline_pack_rectangle() 466 node->y = (stbrp_coord)(res.y + height); in stbrp__skyline_pack_rectangle() 474 cur = *res.prev_link; in stbrp__skyline_pack_rectangle() 475 if(cur->x < res.x) { in stbrp__skyline_pack_rectangle() 482 *res.prev_link = node; in stbrp__skyline_pack_rectangle() 487 while(cur->next && cur->next->x <= res.x + width) { in stbrp__skyline_pack_rectangle() [all …]
|
/lvgl-latest/src/libs/freetype/ |
D | lv_ftsystem.c | 105 lv_fs_res_t res = lv_fs_open(&file, filepathname, LV_FS_MODE_RD); in FT_Stream_Open() local 107 if(res != LV_FS_RES_OK) { in FT_Stream_Open() 117 res = lv_fs_tell(&file, &pos); in FT_Stream_Open() 118 if(res != LV_FS_RES_OK) { in FT_Stream_Open() 284 lv_fs_res_t res = lv_fs_read(file_p, buffer, count, &br); in ft_lv_fs_stream_io() local 286 return res == LV_FS_RES_OK ? br : 0; in ft_lv_fs_stream_io()
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | diyfp.h | 112 DiyFp res = *this; in NormalizeBoundary() local 113 while (!(res.f & (kDpHiddenBit << 1))) { in NormalizeBoundary() 114 res.f <<= 1; in NormalizeBoundary() 115 res.e--; in NormalizeBoundary() 117 res.f <<= (kDiySignificandSize - kDpSignificandSize - 2); in NormalizeBoundary() 118 res.e = res.e - (kDiySignificandSize - kDpSignificandSize - 2); in NormalizeBoundary() 119 return res; in NormalizeBoundary()
|
/lvgl-latest/src/widgets/objx_templ/ |
D | lv_objx_templ.c | 128 lv_result_t res; in lv_templ_event() local 131 res = lv_obj_event_base(MY_CLASS, e); in lv_templ_event() 132 if(res != LV_RESULT_OK) return; in lv_templ_event()
|