CN113760412A - Method and device for refreshing display elements on dial interface, watch and computer-readable storage medium - Google Patents

Method and device for refreshing display elements on dial interface, watch and computer-readable storage medium Download PDF

Info

Publication number
CN113760412A
CN113760412A CN202010484896.0A CN202010484896A CN113760412A CN 113760412 A CN113760412 A CN 113760412A CN 202010484896 A CN202010484896 A CN 202010484896A CN 113760412 A CN113760412 A CN 113760412A
Authority
CN
China
Prior art keywords
display element
refreshing
attribute
dial interface
display
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
Application number
CN202010484896.0A
Other languages
Chinese (zh)
Other versions
CN113760412B (en
Inventor
胡志通
陈德银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010484896.0A priority Critical patent/CN113760412B/en
Publication of CN113760412A publication Critical patent/CN113760412A/en
Application granted granted Critical
Publication of CN113760412B publication Critical patent/CN113760412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application relates to a method and a device for refreshing display elements on a dial interface, a watch and a computer readable storage medium, which are applied to the watch and used for acquiring the dial interface on the watch, wherein the dial interface comprises a plurality of display elements. And acquiring the attribute of the display element on the dial interface to be refreshed, and controlling the display element to refresh according to the refresh mode corresponding to the attribute of the display element. Therefore, different refreshing modes are implemented for the display elements with different attributes on the dial interface, and the situation that power consumption is additionally increased due to unnecessary refreshing of part of display elements caused by the fact that all display elements on the dial interface are refreshed in a unified mode in the traditional mode is avoided. Therefore, the display elements on the dial plate can be controlled to be refreshed more accurately by the method for refreshing the display elements on the dial plate interface, and the power consumption of the watch is further greatly reduced.

Description

Method and device for refreshing display elements on dial interface, watch and computer-readable storage medium
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a method and a device for refreshing display elements on a dial interface, a watch and a computer-readable storage medium.
Background
With the development of mobile technology, a variety of smart devices have emerged. The intelligent watch has come and go, brings great changes to the life of people, and brings convenience. The dial plate of the intelligent watch not only can display time information like a traditional watch, but also can display patterns. In the conventional method for refreshing the display elements on the dial interface, the power consumption is additionally increased because part of the display elements are unnecessarily refreshed.
Therefore, the problem of high power consumption of the conventional method for refreshing the display elements on the dial interface is urgently needed to be solved.
Disclosure of Invention
The embodiment of the application provides a method and a device for refreshing display elements on a dial interface, a watch and a computer readable storage medium, which can reduce the power consumption for refreshing the display elements on the dial interface.
A method of refreshing display elements on a dial interface, the method comprising:
acquiring a dial interface to be refreshed on the watch, wherein the dial interface comprises a plurality of display elements;
acquiring the attribute of a display element on the dial interface to be refreshed;
and controlling the display elements to be refreshed according to the refreshing mode corresponding to the attributes of the display elements.
A device for refreshing display elements on a dial interface, for use in a watch, said device comprising:
the watch dial interface acquisition module is used for acquiring a watch dial interface to be refreshed on the watch, and the watch dial interface comprises a plurality of display elements;
the display element attribute acquisition module is used for acquiring the attribute of the display element on the dial interface to be refreshed;
and the refreshing control module is used for controlling the display elements to refresh according to the refreshing mode corresponding to the attributes of the display elements. A watch comprising a memory and a processor, said memory having stored therein a computer program, characterized in that said computer program, when executed by said processor, causes said processor to carry out the steps of the method for refreshing display elements on a dial interface as described above.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method for refreshing display elements on a dial interface as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for refreshing display elements on a dial interface as described above.
The method and the device for refreshing the display elements on the dial interface, the watch and the computer readable storage medium are applied to the watch, the dial interface on the watch is obtained, and the dial interface comprises a plurality of display elements. And acquiring the attribute of the display element on the dial interface to be refreshed, and controlling the display element to refresh according to the refresh mode corresponding to the attribute of the display element.
Because the refreshing mode corresponds to the attribute of the display element, after the dial interface on the watch is obtained and the attribute of the display element on the dial interface is further obtained, the display element on the dial interface can be controlled to be refreshed according to the refreshing mode corresponding to the attribute of the display element. Therefore, different refreshing modes are implemented for the display elements with different attributes on the dial interface, and the situation that power consumption is additionally increased due to unnecessary refreshing of part of display elements caused by the fact that all display elements on the dial interface are refreshed in a unified mode in the traditional mode is avoided. Therefore, the display elements on the dial plate can be controlled to be refreshed more accurately by the method for refreshing the display elements on the dial plate interface, and the power consumption of the watch is further greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a method for refreshing display elements on a dial interface in one embodiment;
FIG. 2 is a flow diagram of a method for refreshing display elements on a dial interface in one embodiment;
FIG. 3 is a flowchart of a method for controlling the display elements in FIG. 2 to refresh according to a refresh mode corresponding to the attributes of the display elements;
FIG. 4 is a flowchart of a method for refreshing display elements on a dial interface in another embodiment;
FIG. 5 is a flowchart of the method of FIG. 3 for obtaining the refresh mode corresponding to the attribute of the display element;
FIG. 6 is a flow diagram of a method for refreshing display elements on a dial interface in a particular embodiment;
FIG. 7 is a block diagram showing the structure of a device for refreshing display elements on a dial interface according to an embodiment;
FIG. 8 is a block diagram showing the structure of a display element refreshing apparatus for a dial interface in another embodiment;
fig. 9 is a schematic view of the internal structure of the wristwatch in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a diagram illustrating an application scenario of a method for refreshing display elements on a dial interface in an embodiment, where the watch may be a smart watch, but is not limited to the smart watch. As shown in fig. 1, the application environment includes a watch 120. Through the method for refreshing the display elements on the dial plate interface, the watch 120 obtains the dial plate interface on the watch, the dial plate interface comprises a plurality of display elements, the attributes of the display elements on the dial plate interface to be refreshed are further obtained, and the display elements are controlled to be refreshed according to the refreshing mode corresponding to the attributes of the display elements.
FIG. 2 is a flowchart of a method for refreshing display elements on a dial interface in one embodiment. The method for refreshing the display elements on the dial interface in this embodiment is described by taking the operation on the watch 120 in fig. 1 as an example, and of course, the method may also be performed on other electronic devices, instruments, and meters with display interfaces, which is not limited in this application. As shown in fig. 2, the method for refreshing display elements on a dial interface includes steps 220 to 260. Wherein the content of the first and second substances,
step 220, a dial interface on the watch is obtained, wherein the dial interface comprises a plurality of display elements.
The dial interface refers to an interface displayed in a display area of the watch 120, and is an interface through which a user can interact with the system. The dial interface includes a plurality of display elements thereon, such as: watch hands, background patterns, small inserts, etc. are all display elements; the small plug-ins include year, month, day, week, electric quantity, weather, step number, exercise information, health information, position information, and the like. There may be multiple dial interfaces on the watch for user selection, for example, the user may slide left and right to switch different dial interfaces for display. The currently displayed dial interface is the dial interface in the foreground, and the currently undisplayed alternative dial interface is the dial interface in the background. Here, can obtain the dial plate interface on the wrist-watch through the system in the wrist-watch, obtain a plurality of dial plate interfaces that supply the user to select on the wrist-watch, of course, this application does not limit to this.
And 240, acquiring the attribute of the display element on the dial interface to be refreshed.
The attributes of the display elements on the dial interface comprise the attributes of the categories, the states and the like of the display elements. For example, the categories of display elements are divided into time categories, background category elements, and the like. The states of the display elements are classified as being in the foreground, in the background, and the like. Because the refreshing mode corresponds to the attribute of the display element, the attribute of the display element on the dial interface to be refreshed is obtained, and the display element can be controlled to be refreshed according to the refreshing mode corresponding to the attribute of the display element. For example, a refresh mode may be set for the display element according to the category of the display element. And a refreshing mode can be correspondingly set for the display elements according to the states of the display elements. Of course, the display element can be integrated into a display element corresponding refresh mode by combining the type of the display element and the state of the display element.
And step 260, controlling the display elements to refresh according to the refresh mode corresponding to the attributes of the display elements.
Because the refreshing mode corresponds to the attribute of the display element, the attribute of the display element on the dial interface to be refreshed is obtained, and the display element can be controlled to be refreshed according to the refreshing mode corresponding to the attribute of the display element. For example, for a certain dial interface in the foreground, if the attribute of the display element on the dial interface is also in the foreground, the display element is controlled to be refreshed according to the refresh mode corresponding to the attribute of the display element. In general, display elements on the front dial interface are all refreshed in real time, and therefore the display elements on the front dial interface are controlled to be refreshed in real time.
In the embodiment of the application, a system in a watch acquires a dial interface on the watch, and the dial interface comprises a plurality of display elements. And acquiring the attribute of the display element on the dial interface to be refreshed, and controlling the display element to refresh according to the refresh mode corresponding to the attribute of the display element.
Because the refreshing mode corresponds to the attribute of the display element, after the dial interface on the watch is obtained and the attribute of the display element on the dial interface is further obtained, the display element on the dial interface can be controlled to be refreshed according to the refreshing mode corresponding to the attribute of the display element. Therefore, different refreshing modes are implemented for the display elements with different attributes on the dial interface, and the situation that power consumption is additionally increased due to unnecessary refreshing of part of display elements caused by the fact that all display elements on the dial interface are refreshed in a unified mode in the traditional mode is avoided. Therefore, the display elements on the dial plate can be controlled to be refreshed more accurately by the method for refreshing the display elements on the dial plate interface, and the power consumption of the watch is further greatly reduced.
In one embodiment, as shown in fig. 3, controlling the display element to refresh according to a refresh mode corresponding to the attribute of the display element includes:
step 262, obtaining a refresh mode corresponding to the attribute of the display element;
step 264, controlling the display element to refresh according to the refresh mode.
Specifically, a refresh mode is set in advance for all display elements on each dial interface, and the refresh mode is set correspondingly according to the attributes of the display elements. Therefore, when the dial interface is refreshed, the system in the watch can firstly acquire the attribute of each display element on the dial interface, then acquire the refreshing mode corresponding to the attribute of the display element, and further control each display element on the dial interface to refresh according to the corresponding refreshing mode. And different display elements on the dial interface have different attributes, the refreshing mode can be established for each display element in a pertinence manner.
For a display element with a static attribute, a refresh mode may be set for the display element correspondingly, and the refresh mode is not performed. For example, if the attribute of the background pattern on the dial interface is a static element, the refresh mode may be set to be not refreshed for the background pattern on the dial interface. And for the display elements with the attributes of dynamic elements on the dial interface, different refreshing frequencies can be correspondingly set. For example, if the attribute of the pointer displaying time on the dial interface is a dynamic element, the pointer displaying time on the dial interface may be set to have a refresh frequency of 5 times/hour, which is not limited in this application. For the minute hand of the display time on the dial interface, the refresh frequency of the minute hand can be set to be 1 time/minute correspondingly, and this is not limited in this application. For the second hand displaying time on the dial interface, the refresh frequency of the second hand may be set to 1 time/second, which is not limited in the present application.
In the embodiment of the application, because the dial plate interface comprises a plurality of display elements, and the attribute of each display element is different, a refreshing mode can be correspondingly set for the display elements according to the attribute of the display elements. Therefore, each display element can be refreshed according to the attribute of the display element in a targeted manner, so that the differential refreshing is realized, and the situation that the power consumption is additionally increased due to unnecessary refreshing of part of the display elements caused by the conventional uniform refreshing manner is avoided. Therefore, the display elements on the dial plate can be controlled to be refreshed more accurately by the method for refreshing the display elements on the dial plate interface, and the power consumption of the watch is further greatly reduced.
In one embodiment, the attributes include state attributes; obtaining the attribute of the display element on the dial interface to be refreshed, including: acquiring the state attribute of a display element on a dial interface to be refreshed;
acquiring a refresh mode corresponding to the attribute of the display element, comprising:
judging whether the display element is in the foreground or not according to the state attribute of the display element;
and if the display element is in the foreground, acquiring a refreshing mode corresponding to the state attribute of the display element as refreshing according to a first refreshing frequency.
As shown in fig. 4, there is provided a method for refreshing display elements on a dial interface, including:
step 420, acquiring the state attribute of the display element on the dial interface to be refreshed;
step 440, judging whether the display element is in the foreground according to the state attribute of the display element;
step 460, if the display element is judged to be in the foreground, the refresh mode correspondingly set for the display element is to refresh according to the first refresh frequency;
step 460, controlling the display element to refresh according to the first refresh frequency.
Wherein, because the dial plate interface includes a plurality of display elements, and the attribute of each display element is different. Attributes of display elements on the dial interface include status attributes of the display elements. For the state attribute of the display element, the state of the display element may be divided into a foreground state and a background state, which is not limited in the present application. Here, the state attribute of the display element is obtained, that is, whether the state of the display element is in the foreground or in the background is obtained.
Then, after the state of the display element is obtained, whether the display element is in the foreground is judged, that is, the display element is an element on the dial interface in the foreground. And if the display element is judged to be in the foreground, refreshing the display element in a refreshing mode correspondingly set for the display element according to the first refreshing frequency. Because the dial interface in the foreground is the dial interface in use by the user, the dial interface in the foreground is necessarily required to be refreshed at a higher refreshing frequency, so that the real-time use of the user can be met. For example, the first refresh frequency of the display element on the dial interface of the foreground is set to 1 time/second, which is not limited in the present application.
In the embodiment of the application, the state attribute of the display element is obtained, and whether the display element is in the foreground or not is judged according to the state attribute of the display element. And if the display element is judged to be in the foreground, refreshing the display element in a refreshing mode correspondingly set for the display element according to the first refreshing frequency. Because the display element in the foreground is an element on the dial interface in the foreground and the dial interface in the foreground is the dial interface being used by the user, the dial interface in the foreground is necessarily required to be refreshed at a higher refreshing frequency so as to meet the real-time use of the user. Therefore, the refresh mode which is set for the display element in the foreground in a targeted manner is to refresh according to the first refresh frequency, wherein the first refresh frequency is greater than the second refresh frequency in the following embodiment, so that the dial interface in the foreground can be refreshed at a higher refresh frequency, and the real-time use of the user is met.
In one embodiment, there is provided a refresh of display elements on a dial interface, comprising: and adopting a first mark bit of the dial interface to represent the state attribute of the display element on the dial interface.
In the embodiment of the application, a first flag bit (mRenderAll) of a dial interface is used to represent a state attribute of a display element on the dial interface, wherein when the first flag bit is a first boolean value (true), the state of the display element is represented as being in the foreground. When the first flag bit is a second boolean value (false), the status of the display element is in the background. For example, when the dial interface is in the foreground, the first flag bit (mRenderAll) of the dial interface is set to be a first boolean value (true), and the refresh mode corresponding to the first boolean value is to refresh according to a first refresh frequency. During actual refreshing, only the first flag bit of the dial interface needs to be read, and if the first flag bit is a first boolean value, the refreshing mode of the display element of the dial interface can be obtained. The refreshing mode is configured by adding the first mark bit on the dial interface, so that the operation is simple and easy to implement, and the display elements are refreshed more accurately.
In one embodiment, determining whether the display element is in the foreground according to the status attribute of the display element includes:
acquiring a Boolean value corresponding to a first mark bit of a dial interface;
and judging whether the display element is in the foreground or not according to the Boolean value corresponding to the first zone bit.
In the embodiment of the application, only the Boolean value corresponding to the first flag bit of the dial interface needs to be read during actual refreshing, and whether the display element is in the foreground or not is judged according to the Boolean value corresponding to the first flag bit. If the first flag bit is the first boolean value, it indicates whether the display element is in the foreground, and the refresh mode of the display element can be obtained. Whether the display element is in the foreground or not can be intuitively and accurately judged according to the Boolean value corresponding to the first zone bit. And laying a cushion for a refreshing mode of subsequently acquiring the display element.
In one embodiment, if the display element is in the foreground, acquiring a refresh mode corresponding to the state attribute of the display element as refreshing according to a first refresh frequency, including:
when the Boolean value corresponding to the first zone bit is the first Boolean value, the display element is in the foreground, and the refresh mode corresponding to the state attribute of the display element is obtained and refreshed according to the first refresh frequency.
In the embodiment of the application, a first flag bit (mRenderAll) of a dial interface is used for representing the state attribute of a display element on the dial interface, wherein when the first flag bit is a first boolean value (true), the state of the display element is represented as being in the foreground, and then the refresh mode of the display element of the dial interface can be obtained by refreshing according to a first refresh frequency. The refreshing mode is configured by adding the first mark bit on the dial interface, so that the operation is simple and easy to implement, and the display elements are refreshed more accurately.
In one embodiment, the attributes further include a time attribute; as shown in fig. 5, acquiring the refresh mode corresponding to the attribute of the display element further includes:
step 520, if the display element is judged not to be in the foreground, acquiring the time attribute of the display element on the dial interface to be refreshed;
step 540, judging whether the display element belongs to the time class element according to the time attribute of the display element;
wherein, because the dial plate interface includes a plurality of display elements, and the attribute of each display element is different. Attributes of display elements on the dial interface include time attributes of the display elements. For example, the categories of display elements are divided into time class elements, background class elements, and the like. Wherein, a time class element refers to a display element related to time or a display element that can change continuously with time. The background type refers to background patterns and the like on the dial interface, and most of the background patterns are display elements which are displayed in a static pattern mode and do not change constantly with time.
In the foregoing embodiment, if it is determined that the display element is not in the foreground, that is, the display element is on the background dial interface, the time attribute of the display element is further obtained, and whether the display element belongs to the time class element is determined according to the time attribute of the display element. For example, time information, motion information, health information, position information, and the like on the dial interface are constantly changing with time, and therefore, display elements corresponding to these pieces of information may be divided into time-class elements.
Step 560, if the display element belongs to the time class element, obtaining a refresh mode corresponding to the time attribute of the display element as refreshing according to a first refresh frequency;
if the display elements are determined to belong to the time class elements, the display elements will change continuously with time. Therefore, in order to meet the real-time use of the user or avoid that the time type elements on the background dial interface are not refreshed in real time, when the background dial interface is switched to, the time type elements display wrong information to mislead the user. Or when the time is switched to the background dial interface, the pointer displaying the time jumps and the like, which brings troubles to users in use. Therefore, for the display elements on the background dial interface, if the display elements are judged to belong to the time type elements, the refreshing mode correspondingly set for the display elements is refreshing according to the first refreshing frequency. Wherein the first refresh frequency is greater than the second refresh frequency in this embodiment. For example, the first refresh frequency is set to 1 time/second, so that the time-class element can be updated in real time.
Step 580, if the display element does not belong to the time class element, the refresh mode corresponding to the time attribute of the display element is obtained as a refresh according to a second refresh frequency, and the second refresh frequency is smaller than the first refresh frequency.
And for the display elements on the background dial interface, if the display elements are judged not to belong to the time elements, refreshing the display elements in a refreshing mode correspondingly set according to a second refreshing frequency, wherein the second refreshing frequency is less than the first refreshing frequency. If the display element is determined not to belong to the time class element, the display element does not change over time, such as a background class element (background pattern). Therefore, the display elements which do not belong to the time class are set to be refreshed according to a second refreshing frequency, and the second refreshing frequency is smaller than the first refreshing frequency. For example, the second refresh frequency is set to 1 time/hour.
In the embodiment of the application, the time attribute of the display element is acquired for the display element on the background dial interface. And judging whether the display element belongs to the time class element or not according to the time attribute of the display element, and if so, refreshing the display element according to a first refreshing frequency in a refreshing mode correspondingly set for the display element. And if the display element is judged not to belong to the time type element, refreshing the display element according to a second refreshing frequency which is smaller than the first refreshing frequency in a correspondingly set refreshing mode.
Therefore, for the display elements on the background dial interface, corresponding refreshing frequencies are respectively set for the display elements according to the time attributes of the display elements. Since time class elements change over time, a higher refresh rate is set for time class elements and a lower refresh rate is set for display elements that do not belong to the time class. Therefore, the time elements on the background dial interface are prevented from not being refreshed in real time, and when the background dial interface is switched to, the time elements display wrong information to mislead a user. Or when the time is switched to the background dial interface, the pointer displaying the time jumps and the like, which brings troubles to users in use. Meanwhile, the display elements which do not belong to the time class are refreshed according to a lower refreshing frequency, so that the normal use of a user is met, and the power consumption of the system is reduced.
In one embodiment, a method for refreshing display elements on a dial interface is provided, further comprising: the time attribute of the display element is represented using the second flag in the base class of the display element.
In the embodiment of the present application, a second flag (mhigpriority) is added to the base class of the display element to indicate whether the display element is a time class element. During actual refreshing, only the first flag bit in the base class of the display element needs to be read, and if the first flag bit is a second boolean value (false), the state of the display element is in the background. At this time, the second flag (mhigh priority) in the base class of the display element needs to be read further, and the refresh mode of the display element can be acquired according to the boolean value of the second flag (mhigh priority). For the dial interface in the background, the refresh mode is configured by adding a second flag bit (mHighpriority) in the base class of the display element, so that the operation is simple and easy to implement, and more refined refresh control is realized. The display elements on the background dial interface are refreshed in a differentiated mode, and the power consumption of the system is reduced while the normal use of a user is met.
In one embodiment, determining whether the display element belongs to a time class element according to the time attribute of the display element includes:
acquiring a Boolean value corresponding to a second flag bit in the base class of the display element;
and judging whether the display element belongs to the time class element or not according to the Boolean value corresponding to the second zone bit.
Specifically, the boolean value corresponding to the first flag bit in the base class of each display element is judged to be a first boolean value (true) or a second boolean value (false), and when the boolean value corresponding to the first flag bit (mRenderAll) is the first boolean value (true), it is indicated that the display element is a display element on a foreground dial interface, and the refresh mode of the display element on the dial interface is obtained as being refreshed according to a first refresh frequency. When the boolean value corresponding to the first flag bit of a certain display element is the second boolean value (false), it is determined that the display element is a display element on the background dial interface, and then the boolean value corresponding to the second flag bit (mhigh priority) in the base class of the display element is further acquired.
And judging that the Boolean value corresponding to the second flag bit (mHighPriority) in the base class of the display element is a first Boolean value (true) or a second Boolean value (false), and if the Boolean value corresponding to the second flag bit is the first Boolean value (true), indicating that the type of the display element is a time class, acquiring the refresh mode of the display element on the dial interface as refreshing according to a first refresh frequency. And when the Boolean value corresponding to the second flag bit is a second Boolean value (false), the category of the display element is not the time category, and the refresh mode of the display element on the dial interface is obtained by refreshing according to a second refresh frequency. The second refresh frequency is less than the first refresh frequency.
In the embodiment of the application, the boolean value corresponding to the first flag bit in the base class of the display element on the dial interface is obtained first, and the display element on the dial interface with the foreground or the background is determined. And directly controlling the display elements on the dial interface of the foreground to be refreshed according to the first refreshing frequency. And further acquiring a Boolean value corresponding to a second flag bit in the base class of the display element on the dial interface of the background for the display element on the dial interface of the background. And judging whether the type of the display element is a time type or not, and adopting the corresponding refreshing frequency in a targeted manner. Through the two flag bits, the refresh frequency of different display elements is correspondingly controlled according to the states and the categories of the display elements. The situation that all display elements on the dial interface are refreshed in a unified mode in the traditional method, and the power consumption is additionally increased due to unnecessary refreshing of part of the display elements is avoided. Therefore, the display elements on the dial plate can be controlled to be refreshed more accurately by the method for refreshing the display elements on the dial plate interface, and the power consumption of the watch is further greatly reduced.
In one embodiment, the temporal class elements include temporal information, motion information, health information, and location information.
Where time information refers to text or a pointer representing time, including text or a pointer displayed to seconds. The exercise information refers to information indicating the condition of exercise of the watch wearer, including the number of steps taken, pace of exercise, and the like. The health information refers to information representing the health condition of the watch wearer, including heart rate, blood oxygen saturation, and the like. The location information refers to information indicating where the watch wearer is currently located.
In the embodiment of the application, time information, motion information, health information, position information and the like on the dial interface can change constantly along with time, so that display elements corresponding to the information can be divided into time elements. The refreshing method is convenient for refreshing according to the refreshing frequency of the time element in the subsequent refreshing process, and the refreshing frequency of the time element is higher under the general condition so as to meet the normal use requirement of a user.
In a specific embodiment, the first flag bit of the dial interface, the second flag bit of the base class of the display element, the refresh mode of the display element, and other display rules (including display position, animation rule, etc.) of the dial interface are all pre-stored in an xml file according to a certain syntax rule, and the xml file is stored in a resource compression package, and of course, may also be stored in other types of files, which is not limited in this application. When refreshing the display elements on the dial interface, a system (such as an engine) in the watch analyzes the resource compression packet, analyzes the content of the xml file and renders the content into actual display content. There is provided a method for refreshing display elements on a dial interface, as shown in fig. 6, including:
step 602, a system in a watch acquires dial interfaces on the watch, wherein the dial interfaces include a dial interface in a foreground or a dial interface in a background, and the dial interface includes a plurality of display elements;
step 604, respectively obtaining a Boolean value corresponding to a first zone bit (mRenderAll) of each dial interface;
step 606, judging whether the Boolean value corresponding to the first zone bit (mRenderAll) is a first Boolean value (true); if yes, go to step 608; if not, go to step 610;
step 608, obtaining a refreshing mode of the display elements on the dial interface, namely refreshing according to a first refreshing frequency;
step 610, further acquiring a Boolean value corresponding to a second flag bit in the base class of the display elements on the dial interface;
step 612, determining whether the boolean value corresponding to the second flag bit (mhigprobability) is the first boolean value (true); if yes, go to step 608; if not, go to step 614;
step 614, when the boolean value corresponding to the second flag bit (mhigprobability) is a second boolean value (false), obtaining a refresh mode of the display element on the dial interface as refreshing according to a second refresh frequency, where the second refresh frequency is less than the first refresh frequency;
and step 616, controlling the display elements on the dial interface to be refreshed according to the corresponding refreshing frequency.
In the embodiment of the application, the system in the watch correspondingly controls the refresh frequency of different display elements according to the states and the types of the display elements through two flag bits. The situation that all display elements on the dial interface are refreshed in a unified mode in the traditional method, and the power consumption is additionally increased due to unnecessary refreshing of part of the display elements is avoided. Therefore, the display elements on the dial plate can be controlled to be refreshed more accurately by the method for refreshing the display elements on the dial plate interface, and the power consumption of the watch is further greatly reduced.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is also provided an apparatus 700 for refreshing display elements on a dial interface, the apparatus comprising:
the dial interface obtaining module 720 is configured to obtain a dial interface to be refreshed on the watch, where the dial interface includes a plurality of display elements;
the display element attribute obtaining module 740 is configured to obtain attributes of display elements on the dial interface to be refreshed;
and the refresh control module 760 is configured to control the display element to refresh according to a refresh manner corresponding to the attribute of the display element.
In one embodiment, the refresh control module 760 includes:
a refresh mode acquisition unit configured to acquire a refresh mode corresponding to an attribute of a display element;
and the refreshing control unit is used for controlling the display elements to refresh according to the refreshing mode.
In one embodiment, the attributes include state attributes; the display element attribute obtaining module 740 is further configured to obtain a state attribute of a display element on the dial interface to be refreshed;
the refreshing mode obtaining unit is also used for judging whether the display element is in the foreground or not according to the state attribute of the display element; and if the display element is in the foreground, acquiring a refreshing mode corresponding to the state attribute of the display element as refreshing according to a first refreshing frequency.
In one embodiment, as shown in fig. 8, there is also provided an apparatus 700 for refreshing display elements on a dial interface, the apparatus further comprising:
the first flag module 780 is configured to use a first flag of the dial interface to represent a status attribute of a display element on the dial interface.
In one embodiment, the refresh mode obtaining unit is further configured to obtain a boolean value corresponding to a first flag bit of the dial interface; and judging whether the display element is in the foreground or not according to the Boolean value corresponding to the first zone bit.
In an embodiment, the refresh mode obtaining unit is further configured to obtain that the display element is in the foreground when the boolean value corresponding to the first flag is the first boolean value, and obtain that the refresh mode corresponding to the state attribute of the display element is to be refreshed according to the first refresh frequency.
In one embodiment, the attributes further include a time attribute; the refreshing mode obtaining unit is further used for obtaining the time attribute of the display element on the dial interface to be refreshed if the display element is judged not to be in the foreground; judging whether the display element belongs to the time class element or not according to the time attribute of the display element; if the display element belongs to the time type element, acquiring a refreshing mode corresponding to the time attribute of the display element as refreshing according to a first refreshing frequency; and if the display element does not belong to the time type element, acquiring a refreshing mode corresponding to the time attribute of the display element as refreshing according to a second refreshing frequency, wherein the second refreshing frequency is less than the first refreshing frequency.
In one embodiment, there is also provided an apparatus 700 for refreshing display elements on a dial interface, the apparatus further comprising:
and the second zone bit module is used for representing the time attribute of the display element by adopting a second zone bit in the base class of the display element.
In one embodiment, the refresh mode obtaining unit is further configured to obtain a boolean value corresponding to a second flag bit in the base class of the display element; and judging whether the display element belongs to the time class element or not according to the Boolean value corresponding to the second zone bit.
In one embodiment, the temporal class elements include temporal information, motion information, health information, and location information.
The division of each module in the device for refreshing the display elements on the dial interface is only used for illustration, and in other embodiments, the device for refreshing the display elements on the dial interface may be divided into different modules as needed to complete all or part of the functions of the device for refreshing the display elements on the dial interface.
For specific limitations of the device for refreshing the display elements on the dial interface, reference may be made to the above limitations on the method for refreshing the display elements on the dial interface, which are not described herein again. All or part of each module in the device for refreshing the display elements on the dial interface can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 9 is a schematic view of the internal structure of the wristwatch in one embodiment. As shown in fig. 9, the watch includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole watch. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing the refreshing method of the display elements on the dial interface provided in the above embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium.
The implementation of each module in the device for refreshing display elements on the dial interface provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on an electronic device or a server. The program modules constituting the computer program may be stored on a memory of the electronic device or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a method of refreshing display elements on a dial interface.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a method of refreshing display elements on a dial interface.
Any reference to memory, storage, database, or other medium used by embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above embodiments of refreshing the display elements on the dial interface only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method for refreshing display elements on a dial interface, which is applied to a watch, is characterized by comprising the following steps:
acquiring a dial interface to be refreshed on the watch, wherein the dial interface comprises a plurality of display elements;
acquiring the attribute of a display element on the dial interface to be refreshed;
and controlling the display elements to be refreshed according to the refreshing mode corresponding to the attributes of the display elements.
2. The method according to claim 1, wherein the controlling the display element to refresh according to a refresh mode corresponding to the attribute of the display element comprises:
obtaining a refreshing mode corresponding to the attribute of the display element;
and controlling the display element to be refreshed according to the refreshing mode.
3. The method of claim 1, wherein the attribute comprises a state attribute; the obtaining of the attribute of the display element on the dial interface to be refreshed includes: acquiring the state attribute of a display element on the dial interface to be refreshed;
the obtaining of the refresh mode corresponding to the attribute of the display element includes:
judging whether the display element is in a foreground or not according to the state attribute of the display element;
and if the display element is in the foreground, acquiring a refreshing mode corresponding to the state attribute of the display element as refreshing according to a first refreshing frequency.
4. The method of claim 3, further comprising: and adopting the first mark bit of the dial interface to represent the state attribute of the display element on the dial interface.
5. The method of claim 3, wherein the determining whether the display element is in the foreground according to the status attribute of the display element comprises:
acquiring a Boolean value corresponding to a first flag bit of the dial interface;
and judging whether the display element is in the foreground or not according to the Boolean value corresponding to the first flag bit.
6. The method according to claim 5, wherein if the display element is in the foreground, the obtaining of the refresh mode corresponding to the state attribute of the display element is to refresh according to a first refresh frequency, and comprises:
and when the Boolean value corresponding to the first flag bit is the first Boolean value, the display element is in the foreground, and the refresh mode corresponding to the state attribute of the display element is obtained and refreshed according to a first refresh frequency.
7. The method of claim 2, wherein the attributes further include a time attribute; the obtaining of the refresh mode corresponding to the attribute of the display element further includes:
if the display element is judged not to be in the foreground, acquiring the time attribute of the display element on the dial interface to be refreshed;
judging whether the display element belongs to a time element or not according to the time attribute of the display element;
if the display element belongs to the time type element, acquiring a refreshing mode corresponding to the time attribute of the display element as refreshing according to a first refreshing frequency;
if the display element does not belong to the time class element, the refresh mode corresponding to the time attribute of the display element is obtained as refreshing according to a second refresh frequency, and the second refresh frequency is smaller than the first refresh frequency.
8. The method of claim 7, further comprising: and adopting a second zone bit in the base class of the display element to represent the time attribute of the display element.
9. The method according to claim 8, wherein said determining whether the display element belongs to a time class element according to the time attribute of the display element comprises:
acquiring a Boolean value corresponding to a second flag bit in the base class of the display element;
and judging whether the display element belongs to the time element or not according to the Boolean value corresponding to the second zone bit.
10. The method of claim 7, wherein the temporal class elements comprise temporal information, motion information, health information, and location information.
11. A device for refreshing display elements on a dial interface, for a watch, comprising:
the watch dial interface acquisition module is used for acquiring a watch dial interface to be refreshed on the watch, and the watch dial interface comprises a plurality of display elements;
the display element attribute acquisition module is used for acquiring the attribute of the display element on the dial interface to be refreshed;
and the refreshing control module is used for controlling the display elements to refresh according to the refreshing mode corresponding to the attributes of the display elements.
12. A watch comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the computer program, when executed by the processor, causes the processor to carry out the steps of the method for refreshing display elements on a dial interface according to any one of claims 1 to 10.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of refreshing display elements on a dial interface according to any one of claims 1 to 10.
CN202010484896.0A 2020-06-01 2020-06-01 Method and device for refreshing display elements on dial interface, watch and computer readable storage medium Active CN113760412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010484896.0A CN113760412B (en) 2020-06-01 2020-06-01 Method and device for refreshing display elements on dial interface, watch and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010484896.0A CN113760412B (en) 2020-06-01 2020-06-01 Method and device for refreshing display elements on dial interface, watch and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113760412A true CN113760412A (en) 2021-12-07
CN113760412B CN113760412B (en) 2024-07-09

Family

ID=78782599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010484896.0A Active CN113760412B (en) 2020-06-01 2020-06-01 Method and device for refreshing display elements on dial interface, watch and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113760412B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080167019A1 (en) * 2007-01-08 2008-07-10 Jacob Guedalia Methods and systems of providing status message calling features
CN102968978A (en) * 2011-08-31 2013-03-13 联想(北京)有限公司 Control method and device for displaying refresh rate
CN103000159A (en) * 2011-09-13 2013-03-27 联想(北京)有限公司 Display control method, display control device and displayer
CN106531105A (en) * 2016-12-26 2017-03-22 上海天马微电子有限公司 Display panel driving method and display panel
CN106919402A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal
CN107683439A (en) * 2015-06-05 2018-02-09 苹果公司 Obtain and Time Correlation Data is shown on electronic watch
CN109144440A (en) * 2018-06-26 2019-01-04 努比亚技术有限公司 A kind of display refresh control method, terminal and computer readable storage medium
CN109272931A (en) * 2018-11-23 2019-01-25 京东方科技集团股份有限公司 The display control method of display panel, display control unit, display equipment
CN109308173A (en) * 2017-07-26 2019-02-05 腾讯科技(深圳)有限公司 Display methods and device, display terminal and computer storage medium
CN109739333A (en) * 2017-10-31 2019-05-10 上海和辉光电有限公司 A kind of method and apparatus of dynamic adjustment screen refresh frequency
CN110069122A (en) * 2018-06-26 2019-07-30 努比亚技术有限公司 A kind of screen control method, terminal and computer readable storage medium
CN110619860A (en) * 2019-10-15 2019-12-27 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, storage medium and electronic equipment
CN110928396A (en) * 2019-11-18 2020-03-27 Oppo(重庆)智能科技有限公司 Screen refreshing method and related equipment
CN111131622A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Refresh frequency adjusting method and device, electronic equipment and readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080167019A1 (en) * 2007-01-08 2008-07-10 Jacob Guedalia Methods and systems of providing status message calling features
CN102968978A (en) * 2011-08-31 2013-03-13 联想(北京)有限公司 Control method and device for displaying refresh rate
CN103000159A (en) * 2011-09-13 2013-03-27 联想(北京)有限公司 Display control method, display control device and displayer
CN107683439A (en) * 2015-06-05 2018-02-09 苹果公司 Obtain and Time Correlation Data is shown on electronic watch
CN106531105A (en) * 2016-12-26 2017-03-22 上海天马微电子有限公司 Display panel driving method and display panel
CN106919402A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal
CN109308173A (en) * 2017-07-26 2019-02-05 腾讯科技(深圳)有限公司 Display methods and device, display terminal and computer storage medium
CN109739333A (en) * 2017-10-31 2019-05-10 上海和辉光电有限公司 A kind of method and apparatus of dynamic adjustment screen refresh frequency
CN109144440A (en) * 2018-06-26 2019-01-04 努比亚技术有限公司 A kind of display refresh control method, terminal and computer readable storage medium
CN110069122A (en) * 2018-06-26 2019-07-30 努比亚技术有限公司 A kind of screen control method, terminal and computer readable storage medium
CN109272931A (en) * 2018-11-23 2019-01-25 京东方科技集团股份有限公司 The display control method of display panel, display control unit, display equipment
CN110619860A (en) * 2019-10-15 2019-12-27 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, storage medium and electronic equipment
CN110928396A (en) * 2019-11-18 2020-03-27 Oppo(重庆)智能科技有限公司 Screen refreshing method and related equipment
CN111131622A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Refresh frequency adjusting method and device, electronic equipment and readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
何国锋等: ""可穿戴设备显示***的低功耗控制"", 《单片机与嵌入式***应用》, 1 January 2017 (2017-01-01), pages 36 - 39 *
李晓琳: ""智能健康手表的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 February 2016 (2016-02-15), pages 137 - 85 *
高伯浩: ""基于Android平台的可穿戴设备应用开发研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 March 2016 (2016-03-15), pages 138 - 5219 *

Also Published As

Publication number Publication date
CN113760412B (en) 2024-07-09

Similar Documents

Publication Publication Date Title
KR102446329B1 (en) Device For Providing Health Management Service and Method Thereof
US11586157B2 (en) Time measuring device indicating time interval durations of particular events
CN109391282B (en) Wearable device and information display method and device of wearable device
CN107783701A (en) A kind of displaying method of terminal, device and intelligent terminal
CN115659069B (en) Card punching recommendation method and device and terminal equipment
CN110825460A (en) Application program control method and device, computer equipment and storage medium
CN110750711A (en) Data pushing method and device, computer equipment and storage medium
CN107846514B (en) Alarm clock setting method and device
CN111966440A (en) Display control method and device of information flow interface, terminal and storage medium
US20200097334A1 (en) Offline Briefcase Synchronization
CN113760412A (en) Method and device for refreshing display elements on dial interface, watch and computer-readable storage medium
CN112988030B (en) Terminal control method, device, terminal and storage medium
CN113407272A (en) Display method and device
CN104331405B (en) Data report processing method and device
CN107332986A (en) Obtain method, device and the terminal of Weather information
KR20110109361A (en) Method and apparatus for schedule information function using sms message in handheld terminal
CN109688264B (en) Electronic equipment display state adjusting method and device and storage medium
US20220283855A1 (en) Method for controlling wearable device, electronic device, and computer-readable storage medium
CN115793918A (en) Wallpaper display method and device and electronic equipment
CN106033495A (en) Method and device for processing human physiological feature data
CN113542483B (en) Data transmission method and device, wearable device and storage medium
CN113516450A (en) Reminding task generation method and device and electronic equipment
CN113722025A (en) Dial pattern generation method and device, watch, electronic device, and computer-readable storage medium
CN110772245A (en) Heart rate measuring method and device
CN118210219A (en) Alarm clock reminding method, electronic equipment and computer readable storage medium

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