Lines Matching refs:table
635 lv_obj_t * table = lv_table_create(lv_screen_active()); in summary_create() local
636 lv_obj_set_width(table, lv_pct(100)); in summary_create()
637 lv_obj_set_style_max_height(table, lv_pct(100), 0); in summary_create()
638 lv_obj_add_flag(table, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS); in summary_create()
639 lv_obj_set_style_text_color(table, lv_palette_darken(LV_PALETTE_BLUE_GREY, 2), LV_PART_ITEMS); in summary_create()
640 lv_obj_set_style_border_color(table, lv_palette_darken(LV_PALETTE_BLUE_GREY, 2), LV_PART_ITEMS); in summary_create()
641 lv_obj_add_event_cb(table, table_draw_task_event_cb, LV_EVENT_DRAW_TASK_ADDED, NULL); in summary_create()
643 lv_table_set_cell_value(table, 0, 0, "Name"); in summary_create()
644 lv_table_set_cell_value(table, 0, 1, "Avg. CPU"); in summary_create()
645 lv_table_set_cell_value(table, 0, 2, "Avg. FPS"); in summary_create()
646 lv_table_set_cell_value(table, 0, 3, "Avg. time (render + flush)"); in summary_create()
656 lv_obj_update_layout(table); in summary_create()
657 int32_t col_w = lv_obj_get_content_width(table) / 4; in summary_create()
659 lv_table_set_column_width(table, 0, col_w); in summary_create()
660 lv_table_set_column_width(table, 1, col_w); in summary_create()
661 lv_table_set_column_width(table, 2, col_w); in summary_create()
662 lv_table_set_column_width(table, 3, col_w); in summary_create()
671 lv_table_set_cell_value(table, i + 2, 0, scenes[i].name); in summary_create()
675 lv_table_set_cell_value(table, i + 2, 1, "N/A"); in summary_create()
676 lv_table_set_cell_value(table, i + 2, 2, "N/A"); in summary_create()
677 lv_table_set_cell_value(table, i + 2, 3, "N/A"); in summary_create()
681 … lv_table_set_cell_value_fmt(table, i + 2, 1, "%"LV_PRIu32" %%", scenes[i].cpu_avg_usage / cnt); in summary_create()
682 … lv_table_set_cell_value_fmt(table, i + 2, 2, "%"LV_PRIu32" FPS", scenes[i].fps_avg / cnt); in summary_create()
686 … lv_table_set_cell_value_fmt(table, i + 2, 3, "%"LV_PRIu32" ms (%"LV_PRIu32" + %"LV_PRIu32")", in summary_create()
707 lv_table_set_cell_value(table, 1, 0, "All scenes avg."); in summary_create()
709 lv_table_set_cell_value(table, 1, 1, "N/A"); in summary_create()
710 lv_table_set_cell_value(table, 1, 2, "N/A"); in summary_create()
711 lv_table_set_cell_value(table, 1, 3, "N/A"); in summary_create()
714 … lv_table_set_cell_value_fmt(table, 1, 1, "%"LV_PRIu32" %%", total_avg_cpu / valid_scene_cnt); in summary_create()
715 … lv_table_set_cell_value_fmt(table, 1, 2, "%"LV_PRIu32" FPS", total_avg_fps / valid_scene_cnt); in summary_create()
719 lv_table_set_cell_value_fmt(table, 1, 3, "%"LV_PRIu32" ms (%"LV_PRIu32" + %"LV_PRIu32")", in summary_create()