code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
#include "../lv_conf_internal.h" #if LV_MEM_CUSTOM == 0 #ifndef LV_TLSF_H #define LV_TLSF_H /* ** Two Level Segregated Fit memory allocator, version 3.1. ** Written by Matthew Conte ** http://tlsf.baisoku.org ** ** Based on the original documentation by Miguel Masmano: ** http://www.gii.upv.es/tlsf/main/docs ** ** ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_tlsf.h
C
apache-2.0
3,668
/** * @file lv_text.c * */ /********************* * INCLUDES *********************/ #include <stdarg.h> #include "lv_txt.h" #include "lv_txt_ap.h" #include "lv_math.h" #include "lv_log.h" #include "lv_mem.h" #include "lv_assert.h" /********************* * DEFINES *********************/ #define NO_BRE...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_txt.c
C
apache-2.0
28,172
/** * @file lv_text.h * */ #ifndef LV_TXT_H #define LV_TXT_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #include <stdbool.h> #include <stdarg.h> #include "lv_area.h" #include "../font/lv_font.h" #include "lv_printf.h" #i...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_txt.h
C
apache-2.0
8,837
/** * @file lv_txt_ap.c * */ /********************* * INCLUDES *********************/ #include <stddef.h> #include "lv_bidi.h" #include "lv_txt.h" #include "lv_txt_ap.h" #include "lv_mem.h" #include "../draw/lv_draw.h" /********************* * DEFINES *********************/ /********************** ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_txt_ap.c
C
apache-2.0
10,026
/** * @file lv_txt_ap.h * */ #ifndef LV_TXT_AP_H #define LV_TXT_AP_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include <stddef.h> #include "lv_txt.h" #include "../draw/lv_draw.h" #if LV_USE_ARABIC_PERSIAN_CHARS == 1 /********************* * DEF...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_txt_ap.h
C
apache-2.0
933
/** * @file lv_types.h * */ #ifndef LV_TYPES_H #define LV_TYPES_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include <stdint.h> /********************* * DEFINES *********************/ // If __UINTPTR_MAX__ or UINTPTR_MAX are available, use them...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_types.h
C
apache-2.0
2,240
/** * @file lv_utils.c * */ /********************* * INCLUDES *********************/ #include <stddef.h> #include "lv_utils.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ /********************** * STATIC PROTOTYPES **...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_utils.c
C
apache-2.0
1,878
/** * @file lv_utils.h * */ #ifndef LV_UTILS_H #define LV_UTILS_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include <stdint.h> /********************* * DEFINES *********************/ /********************** * TYPEDEFS ******************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/misc/lv_utils.h
C
apache-2.0
1,359
/** * @file lv_arc.c * */ /********************* * INCLUDES *********************/ #include "lv_arc.h" #if LV_USE_ARC != 0 #include "../core/lv_group.h" #include "../core/lv_indev.h" #include "../misc/lv_assert.h" #include "../misc/lv_math.h" #include "../draw/lv_draw_arc.h" /********************* * ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_arc.c
C
apache-2.0
26,015
/** * @file lv_arc.h * */ #ifndef LV_ARC_H #define LV_ARC_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_ARC != 0 #include "../core/lv_obj.h" /********************* * DEFINES *********************/ /**...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_arc.h
C
apache-2.0
6,036
/** * @file lv_bar.c * */ /********************* * INCLUDES *********************/ #include "lv_bar.h" #if LV_USE_BAR != 0 #include "../misc/lv_assert.h" #include "../draw/lv_draw.h" #include "../misc/lv_anim.h" #include "../misc/lv_math.h" /********************* * DEFINES *********************/ #de...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_bar.c
C
apache-2.0
19,891
/** * @file lv_bar.h * */ #ifndef LV_BAR_H #define LV_BAR_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_BAR != 0 #include "../core/lv_obj.h" #include "../misc/lv_anim.h" #include "lv_btn.h" #include "lv_label....
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_bar.h
C
apache-2.0
4,012
/** * @file lv_btn.c * */ /********************* * INCLUDES *********************/ #include "lv_btn.h" #if LV_USE_BTN != 0 #include "../extra/layouts/flex/lv_flex.h" /********************* * DEFINES *********************/ #define MY_CLASS &lv_btn_class /********************** * TYPEDEFS ***...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_btn.c
C
apache-2.0
1,526
/** * @file lv_btn.h * */ #ifndef LV_BTN_H #define LV_BTN_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_BTN != 0 #include "../core/lv_obj.h" /********************* * DEFINES *********************/ /***...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_btn.h
C
apache-2.0
909
/** * @file lv_btnmatrix.c * */ /********************* * INCLUDES *********************/ #include "lv_btnmatrix.h" #if LV_USE_BTNMATRIX != 0 #include "../misc/lv_assert.h" #include "../core/lv_indev.h" #include "../core/lv_group.h" #include "../draw/lv_draw.h" #include "../core/lv_refr.h" #include "../misc/...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_btnmatrix.c
C
apache-2.0
38,344
/** * @file lv_btnm.h * */ #ifndef LV_BTNMATRIX_H #define LV_BTNMATRIX_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_BTNMATRIX != 0 #include "../core/lv_obj.h" /********************* * DEFINES ********...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_btnmatrix.h
C
apache-2.0
8,928
/** * @file lv_canvas.c * */ /********************* * INCLUDES *********************/ #include "lv_canvas.h" #include "../misc/lv_assert.h" #include "../misc/lv_math.h" #include "../draw/lv_draw.h" #include "../core/lv_refr.h" #if LV_USE_CANVAS != 0 /********************* * DEFINES *****************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_canvas.c
C
apache-2.0
29,581
/** * @file lv_canvas.h * */ #ifndef LV_CANVAS_H #define LV_CANVAS_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_CANVAS != 0 #include "../core/lv_obj.h" #include "../widgets/lv_img.h" #include "../draw/lv_draw...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_canvas.h
C
apache-2.0
9,907
/** * @file lv_cb.c * */ /********************* * INCLUDES *********************/ #include "lv_checkbox.h" #if LV_USE_CHECKBOX != 0 #include "../misc/lv_assert.h" #include "../misc/lv_txt_ap.h" #include "../core/lv_group.h" #include "../draw/lv_draw.h" /********************* * DEFINES **************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_checkbox.c
C
apache-2.0
8,869
/** * @file lv_cb.h * */ #ifndef LV_CHECKBOX_H #define LV_CHECKBOX_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #include "../core/lv_obj.h" #if LV_USE_CHECKBOX != 0 /********************* * DEFINES **************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_checkbox.h
C
apache-2.0
2,144
/** * @file lv_dropdown.c * */ /********************* * INCLUDES *********************/ #include "../core/lv_obj.h" #include "lv_dropdown.h" #if LV_USE_DROPDOWN != 0 #include "../misc/lv_assert.h" #include "../draw/lv_draw.h" #include "../core/lv_group.h" #include "../core/lv_indev.h" #include "../core/lv_d...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_dropdown.c
C
apache-2.0
36,234
/** * @file lv_dropdown.h * */ #ifndef LV_DROPDOWN_H #define LV_DROPDOWN_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_DROPDOWN != 0 /*Testing of dependencies*/ #if LV_USE_LABEL == 0 #error "lv_dropdown: lv_l...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_dropdown.h
C
apache-2.0
7,837
/** * @file lv_img.c * */ /********************* * INCLUDES *********************/ #include "lv_img.h" #if LV_USE_IMG != 0 #include "../misc/lv_assert.h" #include "../draw/lv_img_decoder.h" #include "../misc/lv_fs.h" #include "../misc/lv_txt.h" #include "../misc/lv_math.h" #include "../misc/lv_log.h" /****...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_img.c
C
apache-2.0
23,139
/** * @file lv_img.h * */ #ifndef LV_IMG_H #define LV_IMG_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_IMG != 0 #include "../core/lv_obj.h" #include "../misc/lv_fs.h" #include "../draw/lv_draw.h" /**********...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_img.h
C
apache-2.0
6,617
/** * @file lv_label.c * */ /********************* * INCLUDES *********************/ #include "lv_label.h" #if LV_USE_LABEL != 0 #include "../core/lv_obj.h" #include "../misc/lv_assert.h" #include "../core/lv_group.h" #include "../draw/lv_draw.h" #include "../misc/lv_color.h" #include "../misc/lv_math.h" #i...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_label.c
C
apache-2.0
42,285
/** * @file lv_label.h * */ #ifndef LV_LABEL_H #define LV_LABEL_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_LABEL != 0 #include <stdarg.h> #include "../core/lv_obj.h" #include "../font/lv_font.h" #include "....
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_label.h
C
apache-2.0
8,420
/** * @file lv_line.c * */ /********************* * INCLUDES *********************/ #include "lv_line.h" #if LV_USE_LINE != 0 #include "../misc/lv_assert.h" #include "../draw/lv_draw.h" #include "../misc/lv_math.h" #include <stdbool.h> #include <stdint.h> #include <string.h> /********************* * ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_line.c
C
apache-2.0
5,256
/** * @file lv_line.h * */ #ifndef LV_LINE_H #define LV_LINE_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_LINE != 0 #include "../core/lv_obj.h" /********************* * DEFINES *********************/ ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_line.h
C
apache-2.0
2,272
/** * @file lv_templ.c * */ /** * TODO Remove these instructions * Search and replace: templ -> object short name with lower case(e.g. btn, label etc) * TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.) * * You can remove the defined() clause from the #if statement below. Thi...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_objx_templ.c
C
apache-2.0
3,300
/** * @file lv_templ.h * */ /** * TODO Remove these instructions * Search and replace: templ -> object short name with lower case(e.g. btn, label etc) * TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.) * */ #ifndef LV_TEMPL_H #define LV_TEMPL_H #ifdef __cplusplus extern "C...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_objx_templ.h
C
apache-2.0
1,540
/** * @file lv_roller.c * */ /********************* * INCLUDES *********************/ #include "lv_roller.h" #if LV_USE_ROLLER != 0 #include "../misc/lv_assert.h" #include "../draw/lv_draw.h" #include "../core/lv_group.h" #include "../core/lv_indev.h" #include "../core/lv_indev_scroll.h" /*****************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_roller.c
C
apache-2.0
26,603
/** * @file lv_roller.h * */ #ifndef LV_ROLLER_H #define LV_ROLLER_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_ROLLER != 0 #include "../core/lv_obj.h" #include "lv_label.h" /********************* * DE...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_roller.h
C
apache-2.0
3,449
/** * @file lv_slider.c * */ /********************* * INCLUDES *********************/ #include "lv_slider.h" #if LV_USE_SLIDER != 0 #include "../misc/lv_assert.h" #include "../core/lv_group.h" #include "../core/lv_indev.h" #include "../draw/lv_draw.h" #include "../misc/lv_math.h" #include "../core/lv_disp.h...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_slider.c
C
apache-2.0
17,277
/** * @file lv_slider.h * */ #ifndef LV_SLIDER_H #define LV_SLIDER_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_SLIDER != 0 /*Testing of dependencies*/ #if LV_USE_BAR == 0 #error "lv_slider: lv_bar is require...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_slider.h
C
apache-2.0
5,113
/** * @file lv_sw.c * */ /********************* * INCLUDES *********************/ #include "lv_switch.h" #if LV_USE_SWITCH != 0 #include "../misc/lv_assert.h" #include "../misc/lv_math.h" #include "../misc/lv_anim.h" #include "../core/lv_indev.h" #include "../core/lv_disp.h" #include "lv_img.h" /*********...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_switch.c
C
apache-2.0
8,860
/** * @file lv_sw.h * */ #ifndef LV_SWITCH_H #define LV_SWITCH_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_SWITCH != 0 #include "../core/lv_obj.h" /********************* * DEFINES *******************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_switch.h
C
apache-2.0
946
/** * @file lv_table.c * */ /********************* * INCLUDES *********************/ #include "lv_table.h" #if LV_USE_TABLE != 0 #include "../core/lv_indev.h" #include "../misc/lv_assert.h" #include "../misc/lv_txt.h" #include "../misc/lv_txt_ap.h" #include "../misc/lv_math.h" #include "../misc/lv_printf.h"...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_table.c
C
apache-2.0
30,962
/** * @file lv_table.h * */ #ifndef LV_TABLE_H #define LV_TABLE_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_TABLE != 0 /*Testing of dependencies*/ #if LV_USE_LABEL == 0 #error "lv_table: lv_label is required...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_table.h
C
apache-2.0
6,188
/** * @file lv_ta.c * */ /********************* * INCLUDES *********************/ #include "lv_textarea.h" #if LV_USE_TEXTAREA != 0 #include <string.h> #include "../misc/lv_assert.h" #include "../core/lv_group.h" #include "../core/lv_refr.h" #include "../core/lv_indev.h" #include "../draw/lv_draw.h" #includ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_textarea.c
C
apache-2.0
41,357
/** * @file lv_ta.h * */ #ifndef LV_TEXTAREA_H #define LV_TEXTAREA_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #if LV_USE_TEXTAREA != 0 /*Testing of dependencies*/ #if LV_USE_LABEL == 0 #error "lv_ta: lv_label is requi...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_textarea.h
C
apache-2.0
10,828
CSRCS += lv_arc.c CSRCS += lv_bar.c CSRCS += lv_btn.c CSRCS += lv_btnmatrix.c CSRCS += lv_canvas.c CSRCS += lv_checkbox.c CSRCS += lv_dropdown.c CSRCS += lv_img.c CSRCS += lv_label.c CSRCS += lv_line.c CSRCS += lv_roller.c CSRCS += lv_slider.c CSRCS += lv_switch.c CSRCS += lv_table.c CSRCS += lv_textarea.c DEPPATH += ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/src/widgets/lv_widgets.mk
Makefile
apache-2.0
479
if(ESP_PLATFORM) ################################### # Tests do not build for ESP-IDF. # ################################### else() cmake_minimum_required(VERSION 3.13) project(lvgl_tests LANGUAGES C) include(CTest) set(LVGL_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(LVGL_TEST_OPTIONS_MINIMAL_MONOCH...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/CMakeLists.txt
CMake
apache-2.0
9,496
#!/usr/bin/env python3 import argparse import errno import glob import shutil import subprocess import sys import os lvgl_test_dir = os.path.dirname(os.path.realpath(__file__)) # Key values must match variable names in CMakeLists.txt. build_only_options = { 'OPTIONS_MINIMAL_MONOCHROME': 'Minimal config monochrom...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/main.py
Python
apache-2.0
6,891
/** * @file lv_test_conf.h * */ #ifndef LV_TEST_CONF_H #define LV_TEST_CONF_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ u...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/lv_test_conf.h
C
apache-2.0
645
#if LV_BUILD_TEST #include "../lvgl.h" #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "lv_test_indev.h" #include "lv_test_init.h" static lv_coord_t x_act; static lv_coord_t y_act; static uint32_t key_act; static int32_t diff_act; static bool mouse_pressed; static bool key_pressed; static bool e...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/lv_test_indev.c
C
apache-2.0
2,523
#ifndef LV_TEST_INDEV_H #define LV_TEST_INDEV_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include "../lvgl.h" void lv_test_mouse_read_cb(lv_indev_drv_t * drv, lv_indev_data_t * data); void lv_test_mouse_move_to(lv_coord_t x, lv_coord_t y); void lv_test_mouse_move_by(lv_coord_t x, lv_coord_t y); vo...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/lv_test_indev.h
C
apache-2.0
1,124
#if LV_BUILD_TEST #include "lv_test_init.h" #include "lv_test_indev.h" #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #define HOR_RES 800 #define VER_RES 480 static void hal_init(void); static void dummy_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p); lv_indev_t * lv_...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/lv_test_init.c
C
apache-2.0
4,313
#ifndef LV_TEST_INIT_H #define LV_TEST_INIT_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <../lvgl.h> void lv_test_init(void); void lv_test_deinit(void); #ifdef __cplusplus } /*extern "C"*/ #endif #endif /*LV_TEST_INIT_H*/
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/lv_test_init.h
C
apache-2.0
253
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" void setUp(void); void tearDown(void); void test_func_1(void); void setUp(void) { /* Function run before every test */ } void tearDown(void) { /* Function run after every test */ } void test_func_1(void) { TEST_ASSERT_EQUAL(actual, expected...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/_test_template.c
C
apache-2.0
333
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" #include "lv_test_indev.h" /* This function runs before each test */ void setUp(void); void test_arc_creation_successfull(void); void test_arc_should_truncate_to_max_range_when_new_value_exceeds_it(void); void test_arc_should_truncate_to_min_range_when_...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_arc.c
C
apache-2.0
4,918
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" #include "lv_test_indev.h" void test_checkbox_creation_successfull(void); void test_checkbox_should_call_event_handler_on_click_when_enabled(void); void test_checkbox_should_have_default_text_when_created(void); void test_checkbox_should_return_dinamica...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_checkbox.c
C
apache-2.0
2,516
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" void test_config(void); void test_config(void) { TEST_ASSERT_EQUAL(130, LV_DPI_DEF); TEST_ASSERT_EQUAL(130, lv_disp_get_dpi(NULL)); TEST_ASSERT_EQUAL(800, LV_HOR_RES); TEST_ASSERT_EQUAL(800, lv_disp_get_hor_res(NULL)); TEST_ASSERT_EQUAL(480, L...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_config.c
C
apache-2.0
436
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" #include "lv_test_indev.h" void test_dropdown_create_delete(void); void test_dropdown_set_options(void); void test_dropdown_select(void); void test_dropdown_click(void); void test_dropdown_keypad(void); void test_dropdown_encoder(void); void test_dropdow...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_dropdown.c
C
apache-2.0
14,575
/** * @file test_font_loader.c * */ /********************* * INCLUDES *********************/ #if LV_BUILD_TEST #include "../../lvgl.h" #include "unity/unity.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ /**************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_font_loader.c
C
apache-2.0
8,196
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" void test_obj_tree_1(void); void test_obj_tree_2(void); void test_obj_tree_1(void) { TEST_ASSERT_EQUAL(lv_obj_get_child_cnt(lv_scr_act()), 0); } void test_obj_tree_2(void) { lv_obj_create(lv_scr_act()); lv_obj_t * o2 = lv_obj_create(lv_scr_act()...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_obj_tree.c
C
apache-2.0
929
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" //void test_func_1(void); //void test_func_1(void) //{ // TEST_ASSERT_EQUAL(actual, expected); //} #endif
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_style.c
C
apache-2.0
175
#if LV_BUILD_TEST #include "../lvgl.h" #include "unity/unity.h" static const char color_cmd = LV_TXT_COLOR_CMD[0]; void test_txt_should_identify_valid_start_of_command(void) { uint32_t character = color_cmd; lv_text_cmd_state_t state = LV_TEXT_CMD_STATE_WAIT; bool is_cmd = _lv_txt_is_cmd(&state, charact...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_cases/test_txt.c
C
apache-2.0
4,865
#if LV_BUILD_TEST #include "../../lvgl.h" /******************************************************************************* * Size: 8 px * Bpp: 4 * Opts: --bpp 4 --size 8 --font ../Montserrat-Medium.ttf -r 0x20-0x7F,0xB0,0x2022 --font ../FontAwesome5-Solid+Brands+Regular.woff -r 61441,61448,61451,61452,61452,61453,6...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_fonts/font_1.c
C
apache-2.0
49,822
#if LV_BUILD_TEST #include "../../lvgl.h" /******************************************************************************* * Size: 8 px * Bpp: 4 * Opts: --bpp 4 --size 8 --font ../Montserrat-Medium.ttf -r 0x20-0x7F,0xB0,0x2022 --font ../FontAwesome5-Solid+Brands+Regular.woff -r 61441,61448,61451,61452,61452,61453,6...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_fonts/font_2.c
C
apache-2.0
51,460
#if LV_BUILD_TEST #include "../../lvgl.h" /******************************************************************************* * Size: 20 px * Bpp: 4 * Opts: --bpp 4 --size 20 --font ../RobotoMono-Regular.ttf -r 0x20-0x7f --format lvgl -o ..\generated_fonts/font_3.c ****************************************************...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/src/test_fonts/font_3.c
C
apache-2.0
40,236
# ========================================== # Unity Project - A Test Framework for C # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams # [Released under MIT License. Please refer to license.txt for details] # ========================================== class UnityTestRunnerGenerator def initi...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/generate_test_runner.rb
Ruby
apache-2.0
20,468
/*=======Test Runner Used To Run Each Test=====*/ static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) { Unity.CurrentTestName = name; Unity.CurrentTestLineNumber = line_num; #ifdef UNITY_USE_COMMAND_LINE_ARGS if (!UnityTestMatches()) return; #endif Unity.Numb...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/run_test.erb
HTML+ERB
apache-2.0
969
module TypeSanitizer def self.sanitize_c_identifier(unsanitized) # convert filename to valid C identifier by replacing invalid chars with '_' unsanitized.gsub(/[-\/\\\.\,\s]/, '_') end end
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/type_sanitizer.rb
Ruby
apache-2.0
201
/* ========================================================================= Unity Project - A Test Framework for C Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] =====================================================...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/unity.c
C
apache-2.0
65,571
/* ========================================== Unity Project - A Test Framework for C Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ========================================== */ #if LV_BUILD_TEST #define UNITY_INCLUD...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/unity.h
C
apache-2.0
89,128
/* ========================================== Unity Project - A Test Framework for C Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ========================================== */ #if LV_BUILD_TEST #ifndef UNITY_INTER...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/unity_internals.h
C
apache-2.0
87,021
/** * @file lv_test_assert.c * * Copyright 2002-2010 Guillaume Cottenceau. * * This software may be freely redistributed under the terms * of the X11 license. * */ /********************* * INCLUDES *********************/ #if LV_BUILD_TEST #include "../lvgl.h" #include <unistd.h> #include <stdlib.h> #in...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/unity_support.c
C
apache-2.0
5,831
#ifndef LV_UNITY_SUPPORT_H #define LV_UNITY_SUPPORT_H #ifdef __cplusplus extern "C" { #endif #include <stdbool.h> #include "../../lvgl.h" bool lv_test_assert_img_eq(const char * fn_ref); #if LV_COLOR_DEPTH != 32 # define TEST_ASSERT_EQUAL_SCREENSHOT(path) TEST_IGNORE_MESSAGE("Requires LV_COLOR_DE...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/lvgl/tests/unity/unity_support.h
C
apache-2.0
2,070
find_package(Python3 REQUIRED COMPONENTS Interpreter) find_program(AWK awk mawk gawk) set(LV_BINDINGS_DIR ${CMAKE_CURRENT_LIST_DIR}) # Common function for creating LV bindings function(lv_bindings) set(_options) set(_one_value_args OUTPUT) set(_multi_value_args INPUT DEPENDS COMPILE_OPTIONS PP_OPTIONS G...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/mkrules.cmake
CMake
apache-2.0
5,356
# Cleanup all tables and PYC files to ensure no PLY stuff is cached from __future__ import print_function import itertools import fnmatch import os, shutil file_patterns = ('yacctab.*', 'lextab.*', '*.pyc', '__pycache__') def do_cleanup(root): for path, dirs, files in os.walk(root): for file in itertools...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/_clean_tables.py
Python
apache-2.0
871
#------------------------------------------------------------------------------ # pycparser: c-to-c.py # # Example of using pycparser.c_generator, serving as a simplistic translator # from C to AST and back to C. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c-to-c.py
Python
apache-2.0
957
char foo(void) { return '1'; } int maxout_in(int paste, char** matrix) { char o = foo(); return (int) matrix[1][2] * 5 - paste; } int main() { auto char* multi = "a multi"; }
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c_files/funky.c
C
apache-2.0
206
/* ** C implementation of a hash table ADT */ typedef enum tagReturnCode {SUCCESS, FAIL} ReturnCode; typedef struct tagEntry { char* key; char* value; } Entry; typedef struct tagNode { Entry* entry; struct tagNode* next; } Node; typedef struct tagHash { unsigned int table_size; Node** h...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c_files/hash.c
C
apache-2.0
3,790
//---------------------------------------------------------------- // Statically-allocated memory manager // // by Eli Bendersky (eliben@gmail.com) // // This code is in the public domain. //---------------------------------------------------------------- #include "memmgr.h" typedef ulong Align; union mem_header_unio...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c_files/memmgr.c
C
apache-2.0
5,379
//---------------------------------------------------------------- // Statically-allocated memory manager // // by Eli Bendersky (eliben@gmail.com) // // This code is in the public domain. //---------------------------------------------------------------- #ifndef MEMMGR_H #define MEMMGR_H // // Memory manager: dynamic...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c_files/memmgr.h
C
apache-2.0
2,883
#include <stdio.h> #include <string.h> #include <stdlib.h> void convert(int thousands, int hundreds, int tens, int ones) { char *num[] = {"", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"}; char *for_ten[] = {"", "", "Twenty", "Thirty", "Fourty", "Fifty", "Sixty", "Seventy", "Eig...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c_files/year.c
C
apache-2.0
1,109
#------------------------------------------------------------------------------ # pycparser: c_json.py # # by Michael White (@mypalmike) # # This example includes functions to serialize and deserialize an ast # to and from json format. Serializing involves walking the ast and converting # each node from a python Node o...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/c_json.py
Python
apache-2.0
6,398
#----------------------------------------------------------------- # pycparser: dump_ast.py # # Basic example of parsing a file and dumping its parsed AST. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- from __future__ import print_fu...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/dump_ast.py
Python
apache-2.0
922
#----------------------------------------------------------------- # pycparser: explore_ast.py # # This example demonstrates how to "explore" the AST created by # pycparser to understand its structure. The AST is a n-nary tree # of nodes, each node having several children, each with a name. # Just read the code, and le...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/explore_ast.py
Python
apache-2.0
5,496
#----------------------------------------------------------------- # pycparser: func_calls.py # # Using pycparser for printing out all the calls of some function # in a C file. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- from __fut...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/func_calls.py
Python
apache-2.0
1,353
#----------------------------------------------------------------- # pycparser: func_defs_add_param.py # # Example of rewriting AST nodes to add parameters to function # definitions. Adds an "int _hidden" to every function. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #-----------------------------...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/func_defs_add_param.py
Python
apache-2.0
1,532
#----------------------------------------------------------------- # pycparser: rewrite_ast.py # # Tiny example of rewriting a AST node # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- from __future__ import print_function import sys f...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/rewrite_ast.py
Python
apache-2.0
675
#----------------------------------------------------------------- # pycparser: serialize_ast.py # # Simple example of serializing AST # # Hart Chu [https://github.com/CtheSky] # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- from __futur...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/serialize_ast.py
Python
apache-2.0
907
#----------------------------------------------------------------- # pycparser: using_cpp_libc.py # # Shows how to use the provided 'cpp' (on Windows, substitute for # the 'real' cpp if you're on Linux/Unix) and "fake" libc includes # to parse a file that includes standard C headers. # # Eli Bendersky [https://eli.theg...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/using_cpp_libc.py
Python
apache-2.0
871
#------------------------------------------------------------------------------- # pycparser: using_gcc_E_libc.py # # Similar to the using_cpp_libc.py example, but uses 'gcc -E' instead # of 'cpp'. The same can be achieved with Clang instead of gcc. If you have # Clang installed, simply replace 'gcc' with 'clang' here....
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/examples/using_gcc_E_libc.py
Python
apache-2.0
929
#----------------------------------------------------------------- # pycparser: __init__.py # # This package file exports some convenience functions for # interacting with pycparser # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- __all...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/__init__.py
Python
apache-2.0
2,815
#----------------------------------------------------------------- # _ast_gen.py # # Generates the AST Node classes from a specification given in # a configuration file # # The design of this module was inspired by astgen.py from the # Python 2.5 code-base. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/_ast_gen.py
Python
apache-2.0
10,570
#----------------------------------------------------------------- # pycparser: _build_tables.py # # A dummy for generating the lexing/parsing tables and and # compiling them into .pyc for faster execution in optimized mode. # Also generates AST code from the configuration file. # Should be called from the pycparser di...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/_build_tables.py
Python
apache-2.0
1,039
#------------------------------------------------------------------------------ # pycparser: ast_transforms.py # # Some utilities used by the parser to create a friendlier AST. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------------------...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ast_transforms.py
Python
apache-2.0
3,648
#------------------------------------------------------------------------------ # pycparser: c_generator.py # # C code generator from pycparser AST nodes. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #------------------------------------------------------------------------------ from . import c_ast...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/c_generator.py
Python
apache-2.0
17,407
#------------------------------------------------------------------------------ # pycparser: c_lexer.py # # CLexer class: lexer for the C language # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #------------------------------------------------------------------------------ import re import sys from ...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/c_lexer.py
Python
apache-2.0
16,208
#------------------------------------------------------------------------------ # pycparser: c_parser.py # # CParser class: Parser and AST builder for the C language # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #------------------------------------------------------------------------------ import r...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/c_parser.py
Python
apache-2.0
69,931
# PLY package # Author: David Beazley (dave@dabeaz.com) __version__ = '3.9' __all__ = ['lex','yacc']
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ply/__init__.py
Python
apache-2.0
102
# ----------------------------------------------------------------------------- # cpp.py # # Author: David Beazley (http://www.dabeaz.com) # Copyright (C) 2017 # All rights reserved # # This module implements an ANSI-C style lexical preprocessor for PLY. # --------------------------------------------------------------...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ply/cpp.py
Python
apache-2.0
33,282
# ---------------------------------------------------------------------- # ctokens.py # # Token specifications for symbols in ANSI C and C++. This file is # meant to be used as a library in other tokenizers. # ---------------------------------------------------------------------- # Reserved words tokens = [ # Li...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ply/ctokens.py
Python
apache-2.0
3,177
# ----------------------------------------------------------------------------- # ply: lex.py # # Copyright (C) 2001-2017 # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ply/lex.py
Python
apache-2.0
42,918
# ----------------------------------------------------------------------------- # ply: yacc.py # # Copyright (C) 2001-2017 # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ply/yacc.py
Python
apache-2.0
137,323
# ply: ygen.py # # This is a support program that auto-generates different versions of the YACC parsing # function with different features removed for the purposes of performance. # # Users should edit the method LParser.parsedebug() in yacc.py. The source code # for that method is then used to create the other meth...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/ply/ygen.py
Python
apache-2.0
2,251
#----------------------------------------------------------------- # plyparser.py # # PLYParser class and other utilites for simplifying programming # parsers with PLY # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- import warnings c...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/pycparser/plyparser.py
Python
apache-2.0
4,873
import os, sys try: from setuptools import setup from setuptools.command.install import install as _install from setuptools.command.sdist import sdist as _sdist except ImportError: from distutils.core import setup from distutils.command.install import install as _install from distutils.command.s...
YifuLiu/AliOS-Things
components/py_engine/engine/lib/lv_bindings/pycparser/setup.py
Python
apache-2.0
2,464