CN114489551A - Data display method and device and electronic equipment - Google Patents
Data display method and device and electronic equipment Download PDFInfo
- Publication number
- CN114489551A CN114489551A CN202210133732.2A CN202210133732A CN114489551A CN 114489551 A CN114489551 A CN 114489551A CN 202210133732 A CN202210133732 A CN 202210133732A CN 114489551 A CN114489551 A CN 114489551A
- Authority
- CN
- China
- Prior art keywords
- cache
- data
- interface data
- cache block
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000012545 processing Methods 0.000 claims abstract description 47
- 238000013507 mapping Methods 0.000 claims description 19
- 238000003860 storage Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000005192 partition Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000001308 synthesis method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Digital Computer Display Output (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a data display method, a data display device and electronic equipment, which are applied to wearable equipment, wherein the wearable equipment comprises the following components: the wearable device comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are stored in the first caching block in advance and cannot be deleted; the method includes the steps that the sub-interface data except the main interface data are stored in the second cache block in advance, in the mode, the main interface data are stored in the first cache block, the sub-interface data are stored in the second cache block, display efficiency of the interface data can be improved by reading relevant data from a cache, and due to the fact that the using frequency of the main interface data is high, the main interface data stored in the first cache block cannot be deleted, the main interface data are directly read from the first cache block, display efficiency of the interface data of the wearable device can be further improved, and user experience is improved.
Description
Technical Field
The present invention relates to the field of data display technologies, and in particular, to a data display method and apparatus, and an electronic device.
Background
Along with the improvement of chip performance and manufacturing process, in a wearable device with a compact structure, the performance of a hardware platform is also greatly improved, which inevitably requires more diversified functions of firmware and higher requirements for interactive experience. The traditional wearable device display system is based on 2D drawing (displaying conventional geometric figures) and picture modes to display monochromatic content, the interface display content is single, and the interaction mode is hard and laggard.
In recent years, with the development of display screen technology, the application of a color screen on a wearable device becomes standard configuration, the requirements for functions and interaction experience are higher, but the color is more than the data processed by a monochrome processor, and the display system is limited by the main frequency, the memory space, the non-graphic hardware acceleration and the cost of a main control chip, so that the display efficiency of the display system of the wearable device is lower on the basis of the existing main control chip, and the user experience is reduced.
Disclosure of Invention
The invention aims to provide a data display method, a data display device and electronic equipment, so that the display efficiency of interface data of wearable equipment is improved, and the user experience is improved.
The invention provides a data display method, which comprises the following steps: application to wearable devices; the wearable device includes: the system comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content cache module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data of the wearable device except the main interface data; the method comprises the following steps: reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen; and reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen.
Further, the content caching module also comprises a caching linked list; the cache linked list stores first identification information corresponding to the main interface data in each first cache block and second identification information corresponding to the sub-interface data in each second cache block.
Further, storing the main interface data in the first cache block by: when a first power-on instruction is received, main interface data are loaded through the interface processing module and stored in the first cache block.
Further, storing the sub-interface data in the second cache block by: according to the size information of the display elements in the sub-interface data, a target cache region matched with the size information is obtained from a cache region except a first cache block in a content cache module through a resource loading module, and the target cache region is determined as a second cache block corresponding to the display elements; storing the display element into a corresponding second cache block; wherein the display elements comprise pictures and/or characters in the sub-interface data.
Further, if the sub-interface data contains pictures and characters at the same time, the content cache module stores the mapping relation between the pictures and the characters in the sub-interface data, and the pictures and the characters with the mapping relation are stored adjacently; the method further comprises the following steps: when the appointed picture in the sub-interface data is loaded through the resource loading module, the appointed characters which have the mapping relation with the appointed picture are loaded at the same time, and the appointed characters are displayed at the appointed position of the appointed picture according to the mapping relation.
Further, if the display element includes a character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.
Further, if the displayed element comprises a character and the character is not displayed in the display screen, storing character information associated with the character in a second cache block corresponding to the displayed element; wherein the character information includes: size information and encoding information of the character.
Further, the main interface data includes time interface data; the first cache block corresponding to the time interface data comprises: hour hand cache block, minute hand cache block and second hand cache block.
Further, the method further comprises: for each piece of main interface data, if the data content in the main interface data is larger than the displayable area corresponding to one display screen, performing paging processing on the data content in the main interface data through an interface processing module according to preset partition granularity to obtain a plurality of paging data corresponding to the main interface data; and storing each paging data into a corresponding first cache block respectively.
Further, the method further comprises: when the specified content in the main interface data needs to be displayed, obtaining specified paging data corresponding to the specified content; specified paginated data is synthesized and displayed.
The invention provides a data display device, which is arranged on wearable equipment; the wearable device includes: the system comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content cache module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data of the wearable device except the main interface data; the device comprises: the first reading module is used for reading main interface data of the wearable device from the first cache block through the interface processing module and displaying the main interface data through the display screen; and the second reading module is used for reading the sub-interface data from the second cache block through the resource loading module and displaying the sub-interface data through the display screen.
The invention provides an electronic device which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the data display method.
The invention provides a machine-readable storage medium, which stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to realize the data display method.
The invention provides a data display method, a data display device and electronic equipment, which are applied to wearable equipment, wherein the wearable equipment comprises the following components: the wearable device comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are stored in the first caching block in advance and cannot be deleted; the method includes the steps that the sub-interface data except the main interface data are stored in the second cache block in advance, in the mode, the main interface data are stored in the first cache block, the sub-interface data are stored in the second cache block, display efficiency of the interface data can be improved by reading relevant data from a cache, and due to the fact that the using frequency of the main interface data is high, the main interface data stored in the first cache block cannot be deleted, the main interface data are directly read from the first cache block, display efficiency of the interface data of the wearable device can be further improved, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a data display method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a wearable device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a content caching module according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a main interface caching method according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a sub-interface resource caching method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a text being displayed outside a display range according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a character information caching mechanism according to an embodiment of the present invention;
FIG. 8 is a flow chart of another data display method according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a time interface caching method according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a page composition method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a data display device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention are clearly and completely described in the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, with the development of display screen technology, the application of a color screen on wearable equipment becomes standard configuration, the requirements for functions and interaction experience are higher, but the color is more than the data processed by a monochrome processor, and the data is limited by the main frequency, the memory space, the acceleration of non-graphic hardware and the cost of a main control chip, so that the display efficiency of a display system of the wearable equipment is lower on the basis of the existing main control chip, and the user experience is reduced. Based on this, the embodiment of the invention provides a data display method, a data display device and electronic equipment, and the technology can be applied to applications needing to display data.
In order to facilitate understanding of the embodiment, a detailed description is first given of a data display method disclosed in the embodiment of the present invention; the method is applied to wearable equipment; the wearable device includes: the system comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content cache module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data of the wearable device except the main interface data;
as shown in fig. 1, the method comprises the steps of:
and S102, reading main interface data of the wearable device from the first cache block through the interface processing module, and displaying the main interface data through the display screen.
And step S104, reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen.
Referring to fig. 2, a schematic structural diagram of a wearable device is shown, in fig. 2, including: the system comprises a main interface, a function interface, a notification interface, an interface manager (corresponding to the interface processing module), a graphic library, a resource loader (corresponding to the resource loading module), an input subsystem, a content cache module and a display screen driving module (corresponding to the display screen). The input subsystem also includes a key drive and a touch screen drive. Wherein, the function interface and the notification interface belong to the sub-interfaces.
The content caching module is a caching pool, namely all available caching spaces; referring to the schematic structural diagram of a content caching module shown in fig. 3, a cache pool is divided into a plurality of cache blocks and a cache linked list; the cache block caches different contents according to different interfaces or display contents. The cache pool is provided with a fixed cache block (corresponding to the first cache block) and a releasable cache block (corresponding to the second cache block), the cache content of the fixed cache block cannot be deleted, the cache content of the releasable cache block can be deleted, the cache linked list is a directory of the cache blocks, and the logical sequence of the cache blocks is adjusted according to the use frequency and the current interface so as to improve the searching efficiency of the cache. The content caching module is used for caching the content to be displayed on the display screen in different modes, so that the aims of frame rate and experience optimization can be fulfilled.
The main interface is generally an interface displayed after the system is started and an interface which can be directly switched in a sliding manner in the transverse direction and the longitudinal direction, belongs to a first-level interface and is also an interface which appears at the highest frequency; the interface manager can rapidly read and display the whole screen content from the cache module when achieving the sliding switching interface by accessing a main interface cache mechanism, thereby reducing the reading time; meanwhile, the interface manager can perform cache locking on the main interface through the interface provided by the content cache module, and the interface is guaranteed not to be destroyed in the background.
The function interface is generally an interface entered by clicking an application icon, the reminding interface is generally a notification interface, and the function interface and the notification interface are both directly jumped. Because the capacity of the cache pool is limited, all interfaces of the device cannot be cached, and therefore, for the sub-interfaces, a resource cache is selected, and display elements used in each sub-interface are generally cached in a releasable cache block, so that the resource loading times are reduced and the reading speed is improved.
The resource loader is a module for reading pictures and characters. In practical implementation, the resource loader reads the sub-interface resource by calling the interface of the content cache module, and then quickly displays the sub-interface resource through the display screen. When the resource exists in the cache, the resource loader reads the resource data from the content cache module more quickly, and when the resource does not exist in the cache, the content cache module reads the resource data from a FLASH (which can be understood as hardware), applies a cache block with a corresponding size from the cache pool for storing the resource data, and transmits the cache block to the resource loader.
The data display method is applied to wearable equipment, and the wearable equipment comprises the following steps: the wearable device comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are stored in the first caching block in advance and cannot be deleted; the second cache block stores the sub-interface data except the main interface data in advance. Reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen; the sub-interface data are read from the second cache block through the resource loading module, the sub-interface data are displayed through the display screen, in the mode, the main interface data are stored in the first cache block, the sub-interface data are stored in the second cache block, the display efficiency of the interface data can be improved by reading related data from the cache, and the display efficiency of the interface data can be further improved due to the fact that the using frequency of the main interface data is high, and the main interface data stored in the first cache block cannot be deleted.
The embodiment of the invention also provides another data display method, which is realized on the basis of the method of the embodiment; in the method, if the sub-interface data contains pictures and characters at the same time, the content cache module stores the mapping relation between the pictures and the characters in the sub-interface data, and the pictures and the characters with the mapping relation are stored adjacently; the method comprises the following steps:
step one, reading main interface data of the wearable device from a first cache block through an interface processing module, and displaying the main interface data through a display screen.
Specifically, the main interface data may be stored in the first cache block by the following step a:
step a, when a first power-on instruction is received, loading main interface data through an interface processing module, and storing the main interface data into a first cache block.
Generally, the hardware resources of the small wearable device are limited, so that the interfaces cannot be displayed in a superposed manner, only one interface is in a created and displayed state at any moment, so that the switching between the interfaces can have the operations of destroying the old interface and creating a new interface, images and font resources used in the interfaces need to be initialized during creating, and the resources need to be stored in an internal memory.
For the main interfaces, the number of the main interfaces can be multiple, but is generally within 8, the capacity of a cache pool is fixed according to hardware selection, the size of a cache block is dynamically applicable, and the size of each main interface is a known fixed screen size, so that the size of the cache block can be estimated.
Referring to fig. 4, according to the type selection of the cache pool, different space capacities and cache allocation strategies, each main interface may dynamically apply for a cache block of a screen size, the main interface is locked and resides in a fixed cache block, and an interface needs to be preloaded and stored in a cache before the system is started, and specifically, when a boot animation is displayed on power, the display content of the main interface is prepared after the boot animation is played at the same time by using an animation playing interval, so that the interface can respond to user operations fastest without waiting for a creation process, and due to the resident cache property of the interface, the repeated destruction and creation process of the interface is not involved when the main interface is switched back and forth.
And step two, reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen.
Specifically, the sub-interface data is stored in the second cache block by the following steps b and c:
b, according to the size information of the display elements in the sub-interface data, acquiring a target cache region matched with the size information from a cache region except the first cache block in the content cache module through the resource loading module, and determining the target cache region as a second cache block corresponding to the display elements;
step c, storing the display elements into the corresponding second cache blocks; wherein the display elements comprise pictures and/or characters in the sub-interface data.
The display elements, that is, the resources, include pictures and fonts used in the sub-interfaces, and the display elements of all the sub-interfaces share all the cache spaces in the cache pool except the cache space locked by the main interface. Referring to fig. 5, a schematic diagram of a sub-interface resource caching method is shown, where each resource (picture or font) in a sub-interface dynamically applies for picture cache blocks or font cache blocks of different sizes from all cache spaces in a cache pool except that the cache space is locked by a main interface according to the size of the resource, and stores the picture or font into a corresponding picture cache block or font cache block.
The content cache module (corresponding to the cache pool) also comprises a cache linked list; the cache linked list stores first identification information corresponding to a main interface in each first cache block (corresponding to the fixed cache block), and second identification information corresponding to sub-interface data (corresponding to display elements of the sub-interface) in each second cache block (corresponding to the picture cache block or the font cache block).
Therefore, the cache linked list can be responsible for maintaining the sequence of the cache blocks corresponding to each main interface, keeping the main interface search path between adjacent interfaces to be nearest forever so as to improve the efficiency, and can also carry out content maintenance and replacement of the cache blocks so as to ensure that the common content of the current sub-interface can be cached to the maximum extent so as to improve the access speed. Meanwhile, the cache linked list can be related nearby according to the pictures and the fonts in the same sub-interface, namely the pictures and the fonts in the same sub-interface can be automatically adjusted to the front of the cache pool, and the searching hit rate of resources and fonts in the same sub-interface is improved.
In practical implementation, if a picture and characters exist in the display element at the same time, when a specified picture in the sub-interface data is loaded through the resource loading module, the specified characters having a mapping relation with the specified picture are loaded at the same time, and the specified characters are displayed at the specified position of the specified picture according to the mapping relation.
Specifically, N pictures are cached in the picture cache block, M groups of fonts are cached in the font cache block, the N pictures and the M groups of fonts have a mapping relation, when one or more pictures in the N pictures are loaded, one or more groups of fonts in the M groups of fonts are automatically loaded according to the mapping relation, the fonts also correspond to the positions of the pictures, and when the pictures are loaded, corresponding characters are loaded and displayed according to the mapping relation and the position relation of the fonts.
In actual implementation, if the display element includes a character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.
In actual implementation, if the display element comprises a character and the character is not displayed in the display screen, the second cache block corresponding to the display element stores character information associated with the character; wherein the character information includes: size information and encoding information of the character.
For some scenes, it may not be necessary that the characters are actually displayed on the screen, but size information and/or lattice information (graphic information of the characters) of the characters are used, and the content caching module may determine a next sliding behavior of the user according to a sliding/operating behavior of the user on the current interface, and determine whether a font caching mode is to cache the character information or the lattice information according to the next sliding behavior of the user. Fig. 6 is a schematic diagram of a text exceeding the display range, when the text exceeds the display range, the text does not need the lattice information of the characters, that is, when the characters are not displayed on the screen, only the information of the size, the code, and the like of the characters of the text is cached, and the total maximum draggable size is calculated according to the information of the size of the characters so as to be used for the typesetting calculation. The cache mechanism can save memory space, achieve high utilization rate and improve the hit rate of the character lattice data cache. Because the occupied space of the character information is less, the character information can be put into an internal RAM (random access memory) cache, and the RAM is used for exchanging data with a CPU or temporarily storing the data. Cache is only one use of RAM. For example, opening a file requires caching the file content with RAM, so that the file content can be modified and stored in FLASH (hard disk). The internal RAM refers to the space available for caching inside the main control chip, and the access speed of the RAM is far higher than that of the external RAM because the RAM is inside the chip.
Specifically, referring to a schematic diagram of a cache mechanism of character information shown in fig. 7, for a character "you", the size information of the cache is "16 wide" and "16 high"; the buffered coding information is "code ═ 0 × 1". For the character "good", the size information of the buffer is "16 wide and 16 high"; the buffered coding information is "code ═ 0 × 2". The sequence of character caching is realized by maintaining the content and the sequence of the cache linked list, the cache linked list can sequentially adjust the cached content in the next interface according to the current interface so as to improve the cache searching speed, in addition, the characters have no other special cache rules, and the character with the highest use frequency is positioned at the forefront of the cache linked list.
The file processing method is applied to wearable equipment, and the wearable equipment comprises the following steps: the system comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, and the content caching module comprises at least one first caching block and at least one second caching block. When a first power-on instruction is received, main interface data are loaded through the interface processing module and stored in the first cache block, so that the interface can respond to user operation at the fastest speed without waiting for a creation process; acquiring a second cache block through the resource loading module, and storing the display element into the corresponding second cache block; the frequency of resource loading can be reduced, and the reading speed is improved; the content caching module comprises a caching linked list; the cache linked list stores first identification information corresponding to the main interface data in each first cache block and second identification information corresponding to the sub-interface data in each second cache block, and the cache linked list maintains and replaces the contents of the cache blocks to ensure that the common contents of the current sub-interface can be cached to the maximum extent so as to improve the access speed. Meanwhile, the cache linked list can be related nearby according to the pictures and fonts in the same interface, namely the pictures and the fonts in the same interface can be automatically adjusted to the front of the cache pool, and the search hit rate of resources and fonts in the same interface is improved.
The embodiment of the invention also provides another data display method, which is realized on the basis of the method of the embodiment; as shown in fig. 8, the method includes the steps of:
step S202, main interface data of the wearable device are read from the first cache block through the interface processing module, and the main interface data are displayed through the display screen.
The primary interface data comprises time interface data; the first cache block corresponding to the time interface data comprises: hour hand cache block, minute hand cache block and second hand cache block.
In wearable devices, the time interface often needs to display different styles of time, such as a display with a pointer. Because the pointer is limited by hardware performance and storage space, the pointer needs to be rotated, the operation is extremely labor-consuming, and the time interface is generally a primary main interface, which results in poor device interaction experience. According to the characteristics of the hand clock, the occurrence frequency of the time hand, the minute hand and the second hand which need to be changed simultaneously is only once an hour, and only the second hand moves in most cases.
Specifically, referring to a schematic diagram of a time interface caching method shown in fig. 9, the hour, minute and second hands dynamically apply for corresponding hour hand cache blocks, minute hand cache blocks and second hand cache blocks from a cache pool according to the size of images of the hour, minute and second hands, each rotated hand is fixedly cached in a cache block with the size of the hand and is not released, the rotated hour hand is fixedly cached in the hour hand cache block, the rotated minute hand is fixedly cached in the minute hand cache block, and the rotated second hand is fixedly cached in the hand cache block, so that the second hand does not need to be rotated every time of displaying, the sequence of each hand cache block is maintained through a cache list, and target cache data is quickly found so as to control the display of three hands.
And step S204, reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen.
Step S206, aiming at each main interface data, if the data content in the main interface data is larger than the displayable area corresponding to one display screen, performing paging processing on the data content in the main interface data through an interface processing module according to preset partition granularity to obtain a plurality of paging data corresponding to the main interface data;
in step S208, each paging data is stored in the corresponding first cache block.
When the appointed content in the main interface data needs to be displayed, acquiring appointed paging data corresponding to the appointed content; specified paginated data is synthesized and displayed.
In general, a long text interface is also present in the primary main interface. For example, if the product definition main interface includes a squared menu list, it will also be an interface with pictures and texts and larger than one screen of content. Under the condition, the main interface data division granularity (cache length) needs to be subjected to paging cache, paging composition is carried out during display, cached paging data are combined into one screen of data to be displayed, the whole data exceeding one screen does not need to be read, data reading is reduced, and the efficiency of displaying the data is improved.
Specifically, referring to a schematic diagram of a page synthesis method shown in fig. 10, data in the main interface 1 is divided into granularity (cache length) according to a preset value, so as to obtain two pieces of paging data of an upper half portion of the main interface 1 and a lower half portion of the main interface 1, the two pieces of paging data are respectively stored in a cache block of the upper half portion of the main interface 1 and a cache block of the lower half portion of the main interface 1, and designated paging data corresponding to designated content to be displayed in the main interface 1 simultaneously exist in the cache block of the upper half portion of the main interface 1 and the cache block of the lower half portion of the main interface 1, so that the corresponding designated paging data are synthesized and displayed.
The embodiment of the invention also provides a data display device, which is arranged on the wearable equipment; the wearable device includes: the system comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content cache module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data of the wearable device except the main interface data; as shown in fig. 11, the apparatus includes: the first reading module 11 is configured to read main interface data of the wearable device from the first cache block through the interface processing module, and display the main interface data through a display screen; and the second reading module 12 is configured to read the sub-interface data from the second cache block through the resource loading module, and display the sub-interface data through the display screen.
Above-mentioned data display device sets up in wearable equipment, and wearable equipment includes: the wearable device comprises an interface processing module, a resource loading module and a content caching module, wherein the interface processing module and the resource loading module are respectively connected with the content caching module, the content caching module comprises at least one first caching block and at least one second caching block, and main interface data of the wearable device are stored in the first caching block in advance and cannot be deleted; the second cache block stores the sub-interface data except the main interface data in advance. Reading main interface data of the wearable device from the first cache block through an interface processing module, and displaying the main interface data through a display screen; the sub-interface data are read from the second cache block through the resource loading module, the sub-interface data are displayed through the display screen, in the device, the main interface data are stored in the first cache block, the sub-interface data are stored in the second cache block, the display efficiency of the interface data can be improved by reading related data from the cache, and the display efficiency of the interface data can be further improved due to the fact that the using frequency of the main interface data is high, and the main interface data stored in the first cache block cannot be deleted.
Further, the content caching module further comprises a caching linked list; the cache linked list stores first identification information corresponding to the main interface data in each first cache block and second identification information corresponding to the sub-interface data in each second cache block.
Further, the main interface data of the wearable device read by the first reading module from the first cache block is stored in the first cache block by: when a first power-on instruction is received, main interface data are loaded through the interface processing module and stored in the first cache block.
Further, the sub-interface data of the wearable device read by the second reading module from the second cache block is stored in the second cache block by: according to the size information of the display elements in the sub-interface data, a target cache region matched with the size information is obtained from a cache region except a first cache block in a content cache module through a resource loading module, and the target cache region is determined as a second cache block corresponding to the display elements; storing the display element into a corresponding second cache block; wherein the display elements comprise pictures and/or characters in the sub-interface data.
Further, if the sub-interface data contains pictures and characters at the same time, the content cache module stores the mapping relationship between the pictures and the characters in the sub-interface data, and the pictures and the characters with the mapping relationship are stored adjacently; when the appointed picture in the sub-interface data is loaded through the resource loading module, the appointed characters which have the mapping relation with the appointed picture are loaded at the same time, and the appointed characters are displayed at the appointed position of the appointed picture according to the mapping relation.
Further, if the display element includes a character, the second cache block corresponding to the display element also stores dot matrix information corresponding to the character.
Further, if the upper display element comprises a character and the character is not displayed in the display screen, storing character information associated with the character in a second cache block corresponding to the display element; wherein the character information includes: size information and encoding information of the character.
Further, the main interface data of the wearable device read by the first reading module from the first cache block includes time interface data; the first cache block corresponding to the time interface data comprises: hour hand cache block, minute hand cache block and second hand cache block.
Further, for each piece of main interface data, if the data content in the main interface data is larger than the displayable area corresponding to one display screen, performing paging processing on the data content in the main interface data through an interface processing module according to preset partition granularity to obtain a plurality of paging data corresponding to the main interface data; and storing each paging data into a corresponding first cache block respectively.
Further, the first reading module is further configured to, when the specified content in the main interface data needs to be displayed, obtain specified paging data corresponding to the specified content; specified paginated data is synthesized and displayed.
The data display device provided by the embodiment of the invention has the same implementation principle and technical effect as the data display method embodiment, and the data display device embodiment can refer to the corresponding content in the data display method embodiment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 12, where the electronic device includes a processor 130 and a memory 131, the memory 131 stores machine executable instructions that can be executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the data display method.
Further, the electronic device shown in fig. 12 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133, and the memory 131 are connected by the bus 132.
The Memory 131 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 132 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 12, but that does not indicate only one bus or one type of bus.
The processor 130 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 130. The Processor 130 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the data display method.
The data display method, the data display device, and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A data display method is applied to wearable equipment; the wearable device includes: the system comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data of the wearable device except the main interface data; the method comprises the following steps:
reading main interface data of the wearable device from the first cache block through the interface processing module, and displaying the main interface data through a display screen;
and reading the sub-interface data from the second cache block through the resource loading module, and displaying the sub-interface data through the display screen.
2. The method of claim 1, wherein the sub-interface data is stored in the second cache block by:
according to the size information of the display element in the sub-interface data, obtaining a target cache region matched with the size information from a cache region except the first cache block in the content cache module through the resource loading module, and determining the target cache region as a second cache block corresponding to the display element;
storing the display element into the corresponding second cache block; wherein the display elements comprise pictures and/or characters in the sub-interface data.
3. The method according to claim 2, wherein if the picture and the character exist in the sub-interface data at the same time, the content cache module stores a mapping relationship between the picture and the character in the sub-interface data, and the picture and the character having the mapping relationship are stored adjacently;
the method further comprises the following steps:
and when the specified picture in the sub-interface data is loaded through the resource loading module, loading specified characters having a mapping relation with the specified picture at the same time, and displaying the specified characters at the specified position of the specified picture according to the mapping relation.
4. The method of claim 2, wherein if the display element includes the character, the second cache block corresponding to the display element further stores lattice information corresponding to the character.
5. The method of claim 2, wherein if the display element includes the character and the character is not displayed on the display screen, the second cache block corresponding to the display element stores character information associated with the character; wherein the character information includes: size information and encoding information of the characters.
6. The method of claim 1, wherein the primary interface data comprises time interface data; the first cache block corresponding to the time interface data comprises: hour hand cache block, minute hand cache block and second hand cache block.
7. The method of claim 1, further comprising:
for each piece of main interface data, if the data content in the main interface data is larger than the displayable area corresponding to one display screen, performing paging processing on the data content in the main interface data through the interface processing module according to preset division granularity to obtain a plurality of paging data corresponding to the main interface data;
and respectively storing each paging data to a corresponding first cache block.
8. A data display device is characterized in that the device is arranged on wearable equipment; the wearable device includes: the system comprises an interface processing module, a resource loading module and a content caching module; the interface processing module and the resource loading module are respectively connected with the content caching module; the content caching module comprises at least one first caching block and at least one second caching block; the cache content in the first cache block can not be deleted, and the cache content in the second cache block can be deleted; the first cache block is pre-stored with main interface data of the wearable device, and the second cache block is pre-stored with sub-interface data of the wearable device except the main interface data; the device comprises:
the first reading module is used for reading main interface data of the wearable device from the first cache block through the interface processing module and displaying the main interface data through a display screen;
and the second reading module is used for reading the sub-interface data from the second cache block through the resource loading module and displaying the sub-interface data through the display screen.
9. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the data display method of any one of claims 1 to 7.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the data display method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210133732.2A CN114489551B (en) | 2022-02-09 | 2022-02-09 | Data display method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210133732.2A CN114489551B (en) | 2022-02-09 | 2022-02-09 | Data display method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114489551A true CN114489551A (en) | 2022-05-13 |
CN114489551B CN114489551B (en) | 2024-09-03 |
Family
ID=81480069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210133732.2A Active CN114489551B (en) | 2022-02-09 | 2022-02-09 | Data display method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114489551B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609432A (en) * | 2009-07-13 | 2009-12-23 | 中国科学院计算技术研究所 | Shared buffer memory management system and method |
CN102411493A (en) * | 2010-09-21 | 2012-04-11 | 金蝶软件(中国)有限公司 | Universal selection assisting system and method |
CN109213696A (en) * | 2017-06-30 | 2019-01-15 | 伊姆西Ip控股有限责任公司 | Method and apparatus for cache management |
CN109521920A (en) * | 2018-10-30 | 2019-03-26 | 维沃移动通信有限公司 | A kind of application icon control method and terminal device |
CN109740085A (en) * | 2019-01-10 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of methods of exhibiting of content of pages, device, equipment and storage medium |
CN110457613A (en) * | 2019-05-24 | 2019-11-15 | 平安普惠企业管理有限公司 | Page data loading control method, device, computer equipment and storage medium |
CN110609718A (en) * | 2019-09-23 | 2019-12-24 | 广州虎牙科技有限公司 | Picture loading method and device, electronic equipment and readable storage medium |
CN112181554A (en) * | 2020-09-08 | 2021-01-05 | 安徽鸿程光电有限公司 | Interactive interface display method and device, electronic device and storage medium |
CN112395322A (en) * | 2020-12-07 | 2021-02-23 | 湖南新云网科技有限公司 | List data display method and device based on hierarchical cache and terminal equipment |
CN113253922A (en) * | 2021-03-12 | 2021-08-13 | 北京百度网讯科技有限公司 | Cache management method and device, electronic equipment and computer readable storage medium |
CN113722023A (en) * | 2020-05-22 | 2021-11-30 | 华为技术有限公司 | Application data processing method and device |
CN113961277A (en) * | 2020-07-03 | 2022-01-21 | Oppo广东移动通信有限公司 | Information display method and device, wearable device and storage medium |
-
2022
- 2022-02-09 CN CN202210133732.2A patent/CN114489551B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609432A (en) * | 2009-07-13 | 2009-12-23 | 中国科学院计算技术研究所 | Shared buffer memory management system and method |
CN102411493A (en) * | 2010-09-21 | 2012-04-11 | 金蝶软件(中国)有限公司 | Universal selection assisting system and method |
CN109213696A (en) * | 2017-06-30 | 2019-01-15 | 伊姆西Ip控股有限责任公司 | Method and apparatus for cache management |
CN109521920A (en) * | 2018-10-30 | 2019-03-26 | 维沃移动通信有限公司 | A kind of application icon control method and terminal device |
CN109740085A (en) * | 2019-01-10 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of methods of exhibiting of content of pages, device, equipment and storage medium |
CN110457613A (en) * | 2019-05-24 | 2019-11-15 | 平安普惠企业管理有限公司 | Page data loading control method, device, computer equipment and storage medium |
CN110609718A (en) * | 2019-09-23 | 2019-12-24 | 广州虎牙科技有限公司 | Picture loading method and device, electronic equipment and readable storage medium |
CN113722023A (en) * | 2020-05-22 | 2021-11-30 | 华为技术有限公司 | Application data processing method and device |
CN113961277A (en) * | 2020-07-03 | 2022-01-21 | Oppo广东移动通信有限公司 | Information display method and device, wearable device and storage medium |
CN112181554A (en) * | 2020-09-08 | 2021-01-05 | 安徽鸿程光电有限公司 | Interactive interface display method and device, electronic device and storage medium |
CN112395322A (en) * | 2020-12-07 | 2021-02-23 | 湖南新云网科技有限公司 | List data display method and device based on hierarchical cache and terminal equipment |
CN113253922A (en) * | 2021-03-12 | 2021-08-13 | 北京百度网讯科技有限公司 | Cache management method and device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114489551B (en) | 2024-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10114865B2 (en) | Tile cache | |
CN106886570B (en) | Page processing method and device | |
JP7009479B2 (en) | Message processing method and device | |
CN111061535B (en) | Interface switching method and device | |
CN110020300B (en) | Browser page synthesis method and terminal | |
US20210160553A1 (en) | Method and system of displaying a video | |
CN112774192B (en) | Game scene jumping method and device, electronic equipment and storage medium | |
CN111432262B (en) | Page video rendering method and device | |
CN110609718A (en) | Picture loading method and device, electronic equipment and readable storage medium | |
US20160210938A1 (en) | Rendering Texts on Electronic Devices | |
CN111209422A (en) | Image display method, image display device, electronic device, and storage medium | |
CN113015003A (en) | Video frame caching method and device | |
CN111814427A (en) | Text display method and device, electronic equipment and readable storage medium | |
CN111258434A (en) | Method, device, equipment and storage medium for inserting pictures into chat interface | |
CN110209447B (en) | List page data display method and list page data display device | |
CN114282135A (en) | Data carousel method and device, electronic equipment and storage medium | |
CN114489551A (en) | Data display method and device and electronic equipment | |
US20170249292A1 (en) | Conditional determination of lookups in glyph processing | |
CN116339860A (en) | Resource loading method and device, electronic equipment and computer readable storage medium | |
CN112559922B (en) | Page rendering method, terminal device and storage medium | |
CN113095058B (en) | Method and device for processing page turning of streaming document, electronic equipment and storage medium | |
CN115186207A (en) | Method and device for loading page resources and electronic equipment | |
CN110287397B (en) | Content searching method and device based on screen saver and electronic equipment | |
CN111966262B (en) | Picture display method and computing device | |
AU2016266083A1 (en) | Method, system and apparatus for displaying an electronic document |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |