Static Widget Rendering for Lower Memory and Power Use
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Electronic devices with numerous widget subcomponents experience increased memory occupation and power consumption due to continuous running and refreshing of these components, leading to inefficient resource usage.
Innovation Solution
A widget display method that renders multiple components into a static image, reducing the need for continuous component refreshing and memory occupation by generating and displaying a static image instead, while maintaining interaction functionality through configured interaction areas.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple subcomponents are used in a widget to display various functions and content, then the widget functionality and information display are improved, but memory occupation and power consumption increase due to continuous running and refreshing
Solution Approach 1:
The patent merges multiple subcomponents into a single image file for display. Instead of rendering and managing multiple separate component objects (cover, song information, play/pause controls, etc.), the system combines all visual elements into one unified image resource that is displayed as a single widget component, thereby reducing the number of running objects while preserving full functionality
Solution Approach 2:
The patent uses image copying where the complete widget interface is captured as a static image file. This image copy replaces the need for multiple live rendering components, allowing the widget to display full functionality information without maintaining multiple active component instances in memory
2Reliability
If multiple subcomponents are continuously refreshed in a widget, then the display content remains updated, but memory usage increases
Solution Approach 1:
Multiple subcomponents are merged into a single image file, reducing memory overhead. Instead of allocating separate memory spaces for each subcomponent (cover, text, icons, controls), the system uses one unified image resource that occupies less memory while displaying all elements simultaneously
Solution Approach 2:
The widget interface is copied as a complete image file rather than maintaining multiple separate component objects. This image copy contains all visual information in a single data structure, reducing the total quantity of memory resources needed compared to managing multiple independent component instances
3Ease of operation
If multiple components run continuously to maintain widget display, then the widget remains functional and responsive, but background power consumption is caused
Solution Approach 1:
The patent merges multiple running components into a single static image display, eliminating the need for continuous background processes associated with each subcomponent. The unified image approach reduces CPU wake-ups and background thread activity, thereby reducing energy loss while maintaining widget functionality through image-based interaction
4Adaptability or versatility
If multiple subcomponents are rendered and managed individually, then each component can be controlled separately, but device complexity increases
Solution Approach 1:
The patent merges the management of multiple subcomponents into a single image resource management process. Instead of implementing separate control logic, rendering pipelines, and state management for each subcomponent, the system manages one unified image file, significantly simplifying the overall widget management architecture while preserving all functional capabilities
Data Source
Figure 1
Figure 2
Figure 3
AI summary
Embodiments of this application provide a widget display method and an electronic device, and relate to the field of terminal technologies. The method includes: receiving a first trigger operation of a user, where the first trigger operation is used to add a first static widget, and the first static widget corresponds to a plurality of components; rendering the plurality of components corresponding to the first static widget; and generating and displaying a first static image based on the plurality of rendered components, where the first static image is used to display first resource content corresponding to the first static widget. Replacing the plurality of rendered components with one static image can avoid continuous running and refreshing of a plurality of components corresponding to one static widget while ensuring normal display of the static widget. This reduces memory usage of the widget and reduces power consumption of the electronic device.