CN109947448B - Time updating method, device and computer readable storage medium - Google Patents
Time updating method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN109947448B CN109947448B CN201910200155.2A CN201910200155A CN109947448B CN 109947448 B CN109947448 B CN 109947448B CN 201910200155 A CN201910200155 A CN 201910200155A CN 109947448 B CN109947448 B CN 109947448B
- Authority
- CN
- China
- Prior art keywords
- service
- time
- updating
- time update
- program
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 238000012545 processing Methods 0.000 claims abstract description 80
- 238000012544 monitoring process Methods 0.000 claims abstract description 22
- 230000008569 process Effects 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 6
- 230000003111 delayed effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 description 23
- 238000004891 communication Methods 0.000 description 13
- 230000009286 beneficial effect Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000026676 system process Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000012769 display material Substances 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a time updating method, equipment and a computer readable storage medium, wherein the method comprises the following steps: analyzing a desktop program, and binding time update service in the desktop program; then, monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. The humanized time updating scheme is realized, so that when the application program of the wearable equipment performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a time update method, apparatus, and computer readable storage medium.
Background
In the prior art, with the rapid development of intelligent terminal equipment, wearable equipment different from conventional smart phones, such as wearable equipment like a smart watch or a smart bracelet, appears. Because wearing formula equipment compares in traditional smart mobile phone, its particularities such as software, hardware environment, operation mode and operation environment, if the scheme of controlling of traditional smart mobile phone is transferred to wearing formula equipment, can bring inconvenience, user experience bad for user's operation.
Disclosure of Invention
In order to solve the above technical drawbacks in the prior art, the present invention provides a time update method, which includes:
analyzing a desktop program, and binding time update service in the desktop program;
monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service;
acquiring time update semantics through the time update service at the call opportunity;
and updating the interface time of the desktop program according to the time updating semantics.
Optionally, the parsing the desktop program, binding a time update service in the desktop program, includes:
analyzing the desktop program and the system reminding service;
modifying the system reminding service and binding the time updating service in the system reminding service.
Optionally, the monitoring the system reminding service obtains a call opportunity of the system reminding service to the asynchronous processing service, including:
monitoring the system reminding service;
and identifying the time when the system reminding service calls the asynchronous processing service and executing message sending.
Optionally, the acquiring, at the calling occasion, the time update semantics through the time update service includes:
Acquiring a service interface of the time update service at the call time;
and acquiring the time update semantics through the service interface.
Optionally, the updating the interface time of the desktop program according to the time update semantics includes:
notifying an interface component corresponding to the desktop program through the time update service;
and executing the updating operation of the interface time by the interface component in combination with the time updating semantic.
Optionally, before the binding time update service in the desktop program, the parsing desktop program further includes:
monitoring the current processing resource utilization rate;
and if the utilization rate of the processing resources is lower than a preset threshold value, acquiring the application program with delayed information updating, and taking the application program as the application program to be processed.
Optionally, before the binding time update service in the desktop program, the parsing desktop program further includes:
determining the process attribute of the application program to be processed;
acquiring information updating requirements of the application program to be processed;
and determining a target process corresponding to the application program according to the process attribute and the information updating requirement.
Optionally, before the binding time update service in the desktop program, the parsing desktop program further includes:
creating an update service corresponding to the target process;
binding the pending application with the update service.
The invention also proposes a wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program implementing the steps of the method as claimed in any one of the preceding claims when executed by the processor
The invention also proposes a computer readable storage medium having stored thereon a time update program which, when executed by a processor, implements the steps of the time update method as described in any of the above.
The time updating method, the time updating equipment and the computer readable storage medium are implemented, and the time updating service is bound in the desktop program by analyzing the desktop program; then, monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. The humanized time updating scheme is realized, so that when the application program of the wearable equipment performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic hardware structure of an implementation manner of a wearable device according to an embodiment of the present invention;
fig. 2 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 3 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
fig. 4 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application;
FIG. 5 is a flow chart of a first embodiment of the time update method of the present invention;
FIG. 6 is a flow chart of a second embodiment of the time update method of the present invention;
FIG. 7 is a flow chart of a third embodiment of the time update method of the present invention;
FIG. 8 is a flow chart of a fourth embodiment of the time update method of the present invention;
FIG. 9 is a flowchart of a fifth embodiment of the time update method of the present invention;
FIG. 10 is a flowchart of a sixth embodiment of the time update method of the present invention;
FIG. 11 is a flowchart of a seventh embodiment of the time update method of the present invention;
FIG. 12 is a flowchart of an eighth embodiment of the time update method of the present invention;
fig. 13 is a hardware schematic of an implementation of a wearable device provided in an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The wearable device provided by the embodiment of the invention comprises a mobile terminal such as an intelligent bracelet, an intelligent watch and an intelligent mobile phone. With the continuous development of screen technology, mobile terminals such as smart phones and the like can also be used as wearable devices due to the appearance of screen forms such as flexible screens, folding screens and the like. The wearable device provided in the embodiment of the invention can comprise: RF (Radio Frequency) unit, wiFi module, audio output unit, A/V (audio/video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, and power supply.
In the following description, a wearable device will be taken as an example, please refer to fig. 1, which is a schematic hardware structure of a wearable device implementing various embodiments of the present invention, where the wearable device 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and that the wearable device may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
The following describes the various components of the wearable device in detail with reference to fig. 1:
the radio frequency unit 101 may be used to send and receive information or send signals in a call process, specifically, the radio frequency unit 101 may send uplink information to the base station, or may send downlink information sent by the base station to the processor 110 of the wearable device to process the downlink information, where the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the wearable device is updated, for example, after detecting that the geographic position where the wearable device is located changes, the base station may send a notification of the change of the geographic position to the radio frequency unit 101 of the wearable device, after receiving the notification of the message, the radio frequency unit 101 may send the notification of the message to the processor 110 of the wearable device to process, and the processor 110 of the wearable device may control the notification of the message to be displayed on the display panel 1061 of the wearable device; typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication, which may specifically include: through wireless communication with a server in a network system, for example, the wearable device can download file resources from the server through wireless communication, for example, an application program can be downloaded from the server, after the wearable device finishes downloading a certain application program, if the file resources corresponding to the application program in the server are updated, the server can push a message notification of the resource update to the wearable device through wireless communication so as to remind a user to update the application program. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
In one embodiment, the wearable device 100 may access an existing communication network by inserting a SIM card.
In another embodiment, the wearable device 100 may access an existing communication network by setting an esim card (Embedded-SIM), and by adopting the esim card, the internal space of the wearable device may be saved and the thickness may be reduced.
It will be appreciated that although fig. 1 shows a radio frequency unit 101, it will be appreciated that the radio frequency unit 101 is not an essential component of a wearable device and may be omitted entirely as required within the scope of not changing the essence of the invention. The wearable device 100 may implement communication connection with other devices or communication networks through the wifi module 102 alone, which is not limited by the embodiment of the present invention.
WiFi belongs to a short-distance wireless transmission technology, and the wearable device can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of the wearable device, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the wearable device 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a specific function performed by the wearable device 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
In one embodiment, the wearable device 100 includes one or more cameras, and by opening the cameras, capturing of images, photographing, video recording and other functions can be achieved, and the positions of the cameras can be set as required.
The wearable device 100 further comprises at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the wearable device 100 moves to the ear. As one type of motion sensor, the accelerometer sensor can detect the acceleration in all directions (typically three axes), and can detect the gravity and direction when stationary, and can be used for applications for recognizing the gesture of a mobile phone (such as horizontal-vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer, knocking), and the like.
In one embodiment, the wearable device 100 further comprises a proximity sensor, by employing the proximity sensor, the wearable device is able to achieve non-contact manipulation, providing more modes of operation.
In one embodiment, the wearable device 100 further comprises a heart rate sensor, which when worn, enables detection of heart rate by being in close proximity to the user.
In one embodiment, the wearable device 100 may further include a fingerprint sensor, by reading a fingerprint, security verification or the like can be achieved.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
In one embodiment, the display panel 1061 employs a flexible display screen, and the wearable device employing the flexible display screen is capable of bending when worn, thereby fitting more. Optionally, the flexible display screen may be an OLED screen body and a graphene screen body, and in other embodiments, the flexible display screen may also be other display materials, which is not limited to this embodiment.
In one embodiment, the display panel 1061 of the wearable device may take a rectangular shape for ease of wrapping when worn. In other embodiments, other approaches may be taken as well.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the wearable device. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
In one embodiment, the sides of the wearable device 100 may be provided with one or more buttons. The button can realize a plurality of modes such as short pressing, long pressing, rotation and the like, thereby realizing a plurality of operation effects. The number of the buttons can be multiple, and different buttons can be combined for use, so that multiple operation functions are realized.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the wearable device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the wearable device, which is not limited herein. For example, when a message notification of a certain application is received through the rf unit 101, the processor 110 may control the message notification to be displayed in a certain preset area of the display panel 1061, where the preset area corresponds to a certain area of the touch panel 1071, and may control the message notification displayed in the corresponding area on the display panel 1061 by performing a touch operation on the certain area of the touch panel 1071.
The interface unit 108 serves as an interface through which at least one external device can be connected with the wearable apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable apparatus 100 or may be used to transmit data between the wearable apparatus 100 and the external device.
In one embodiment, the interface unit 108 of the wearable device 100 adopts a contact structure, and is connected with other corresponding devices through the contact, so as to realize functions of charging, connection and the like. The contact can also be waterproof.
The processor 110 is a control center of the wearable device, connects various parts of the entire wearable device with various interfaces and lines, performs various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 109, and invoking data stored in the memory 109, thereby performing overall monitoring of the wearable device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The wearable device 100 may further include a power source 111 (such as a battery) for powering the various components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the wearable device 100 may further include a bluetooth module or the like, which is not described herein. The wearable device 100 can be connected with other terminal devices through bluetooth to realize communication and information interaction.
Fig. 2 to fig. 4 are schematic structural diagrams of a wearable device according to an embodiment of the present invention. The wearable device comprises a flexible screen. When the wearable device is unfolded, the flexible screen is in a strip shape; when the wearable device is in a wearing state, the flexible screen is bent to be annular. Fig. 2 and 3 show schematic structural diagrams of the wearable device screen when unfolded, and fig. 4 shows schematic structural diagrams of the wearable device screen when bent.
Example 1
Fig. 5 is a flowchart of a first embodiment of the time update method of the present invention. A method of time update, the method comprising:
s1, analyzing a desktop program, and binding time update service in the desktop program;
s2, monitoring a system reminding service, and acquiring the calling time of the system reminding service to an asynchronous processing service;
s3, acquiring time update semantics through the time update service at the call opportunity;
s4, updating the interface time of the desktop program according to the time updating semantics.
In this embodiment, first, a desktop program is parsed, and a time update service is bound in the desktop program; then, monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics.
Specifically, in the present embodiment, first, a desktop program is parsed, and a time update service is bound in the desktop program. The wearable device comprises an intelligent watch, an intelligent bracelet and other intelligent wearable devices, wherein the wearing state of the wearable device comprises a wearing position suitable for a user and a motion state when the user wears the wearable device, or the motion state is a motion state of the wearable device. In this embodiment, the display environment of the wearable device includes display area information of the device, for example, the wearable device of this embodiment has a larger display area, optionally, the wearable device has an annular display area, optionally, when the wearable device is in a wearing state, the annular display area is kept in a closed annular shape by connecting end to end, optionally, when the wearable device is in a wearing state, the connection position of the annular display area is interrupted, when the wearable device is not worn, the display area is unfolded, the display area is a continuous band-shaped area, optionally, the annular display area is formed by splicing a plurality of display areas, wherein the spliced boundary of the plurality of display areas maintains a narrower gap, so that after the plurality of display areas are spliced, a continuous and integral display effect is visually provided. In this embodiment, the control instruction of the wearable device is triggered and generated by one or more operations such as voice, key, touch, or press. In this embodiment, corresponding operations are performed for time update of a desktop program of the wearable device, and the implementation precondition is that the wearable device and the common smart phone are greatly different, the battery capacity of the wearable device is limited, and the screen of the wearable device of this embodiment is much larger than that of the previous wearable device, meanwhile, the fact that the chip processing capacity of the wearable device is limited is considered, so that in the daily use process of the wearable device, the situation that the system process runs relatively slowly can be caused. Therefore, at a specific time, the system of the wearable device can run slowly because of the system itself, and misjudgment is that the application processing broadcast speed is slow, so that the problem of no response of common application programs is caused, at the moment, the system of the wearable device can directly kill the application programs without response, and the situation is more prominent when the wearable device processes a large amount of concurrent work. Therefore, in this embodiment, in order to address the above-mentioned drawbacks, a time update scheme is proposed, first, a desktop program is parsed, and a time update service is bound in the desktop program, it is understood that the event update service is different from an event update mechanism of a system, and a time update service is newly added, and is bound to the desktop program of the wearable device.
Specifically, in this embodiment, a system reminder service is monitored, and a call opportunity of the system reminder service for an asynchronous processing service is obtained; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. For example, in the present embodiment, a conventional TIME update system broadcast, for example, a system broadcast for action_time_time, is issued by an asynchronous processing service (pending Intent) in a system reminder service (AlarmManagerService). In this embodiment, the asynchronous processing service (pendingintelt) may be understood as an asynchronous action registered in advance, and when the registration is successful, the application program may execute a send () function of the asynchronous processing service (pendingintelt) at a proper time to issue the asynchronous action registered in advance. It should be appreciated that, as described above, the active_time_time broadcast by the asynchronous processing service (pendingIntent) may not be handled in TIME due to the performance problem of the system of the wearable device, thereby causing a fault of TIME update delay.
Therefore, in the present embodiment, the following solution is proposed for the special case of the wearable device.
First, the TIME of the application program is not synchronized by using the action_time_time broadcast any more, and in particular, for the desktop program of the wearable device, the embodiment modifies a system reminder service (alarmmanager service) of the Android system, and binds one TIME update service (service) corresponding to the desktop program of the wearable device in the system reminder service (alarmmanager service).
Then, the call timing of the system reminder service (alarmnagerservice) to execute the asynchronous processing service (pendingpoint) is monitored, that is, whenever the system reminder service (alarmnagerservice) intends to call the send function (send () function) of the asynchronous processing service (pendingpoint), the time update semantics are transferred to the time update service (service) by calling the interface of the above-mentioned bound time update service (service), and the desktop program is notified of the update and display time by the time update service (service).
The method has the advantages that the time update service is bound in the desktop program by analyzing the desktop program; then, monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. The humanized time updating scheme is realized, so that when the application program of the wearable equipment performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example two
Fig. 6 is a flowchart of a second embodiment of the time update method of the present invention. Based on the above embodiment, the parsing the desktop program, binding a time update service in the desktop program, includes:
s11, analyzing the desktop program and the system reminding service;
s12, modifying the system reminding service, and binding the time updating service in the system reminding service.
In this embodiment, first, the desktop program and the system reminder service are parsed; the system reminder service is then modified and the time update service is bound within the system reminder service.
Optionally, analyzing the desktop program and the system reminding service, and determining one or more time update requirements corresponding to the desktop program;
optionally, the system reminder service is modified according to the one or more time update requirements, and the time update service is bound within the system reminder service.
The method has the beneficial effects that the desktop program and the system reminding service are analyzed; the system reminder service is then modified and the time update service is bound within the system reminder service. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example III
Fig. 7 is a flowchart of a third embodiment of the time update method of the present invention. Based on the above embodiment, the monitoring the system alert service, obtaining a call opportunity of the system alert service to an asynchronous processing service includes:
s21, monitoring the system reminding service;
s22, identifying the time when the system reminding service calls the asynchronous processing service and executing the message sending.
In this embodiment, first, the system alert service is monitored; then, the system reminding service is identified to call the asynchronous processing service, and the sending time of the message is executed.
Optionally, monitoring the system reminding service, and simultaneously, monitoring the current utilization rate of system processing resources;
optionally, if the current system processing resource utilization rate is lower than a preset value, identifying that the system reminding service calls the asynchronous processing service and executes the time of message sending, otherwise, if the current system processing resource utilization rate is higher than the preset value, directly calling the asynchronous processing service through the system reminding service and executing the message sending operation.
The beneficial effects of the embodiment are that the system reminding service is monitored; then, the system reminding service is identified to call the asynchronous processing service, and the sending time of the message is executed. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example IV
Fig. 8 is a flowchart of a fourth embodiment of the time update method of the present invention. Based on the above embodiment, the obtaining, at the call opportunity, the time update semantics through the time update service includes:
s31, acquiring a service interface of the time update service at the call time;
s32, acquiring the time update semantics through the service interface.
In this embodiment, first, at the call opportunity, a service interface of the time update service is obtained; and then, acquiring the time update semantics through the service interface.
Optionally, at the call opportunity, acquiring a service interface of the time update service, at this time, cancelling the system reminding service to call the asynchronous processing service, and executing an operation of sending a message;
optionally, triggering generation of the time update semantics of the present embodiment;
optionally, the time update semantics are obtained through the service interface.
The beneficial effect of the embodiment is that the service interface of the time update service is obtained through the calling time; and then, acquiring the time update semantics through the service interface. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example five
Fig. 9 is a flowchart of a fifth embodiment of the time update method of the present invention. Based on the above embodiment, the updating the interface time of the desktop program according to the time update semantics includes:
s41, notifying an interface component corresponding to the desktop program through the time update service;
s42, the interface component executes the updating operation of the interface time in combination with the time updating semantic.
In this embodiment, first, the interface component corresponding to the desktop program is notified through the time update service; then, the interface component performs an update operation of the interface time in conjunction with the time update semantics.
Optionally, detecting and identifying one or more interface components corresponding to the desktop program;
optionally, the interface component performs an update operation of one or more times within the interface in conjunction with the time update semantics.
The method has the beneficial effects that the interface component corresponding to the desktop program is notified through the time update service; then, the interface component performs an update operation of the interface time in conjunction with the time update semantics. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example six
Fig. 10 is a flowchart of a sixth embodiment of the time update method of the present invention. Based on the above embodiment, the parsing desktop program, before binding the time update service in the desktop program, further includes:
s01, monitoring the current processing resource utilization rate;
and S02, if the utilization rate of the processing resources is lower than a preset threshold value, acquiring an application program with delayed information updating, and taking the application program as an application program to be processed.
In this embodiment, first, the current processing resource utilization is monitored; and if the utilization rate of the processing resources is lower than a preset threshold value, acquiring the application program with delayed information updating, and taking the application program as the application program to be processed.
Optionally, dynamically determining a preset threshold value of the processing resource utilization rate according to a hardware environment, a software environment and a current running state of the wearable device;
optionally, determining an information update delay threshold corresponding to the application program, and likewise, dynamically determining the information update delay threshold;
optionally, if the processing resource utilization rate is lower than a preset threshold, acquiring an application program with delayed information update, and taking the application program as an application program to be processed;
Optionally, if the information update delay time is higher than the information update delay threshold, an application program with delay in information update is acquired and used as an application program to be processed.
The method has the beneficial effects that the current processing resource utilization rate is monitored; and if the utilization rate of the processing resources is lower than a preset threshold value, acquiring the application program with delayed information updating, and taking the application program as the application program to be processed. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example seven
Fig. 11 is a flowchart of a seventh embodiment of the time update method of the present invention. Based on the above embodiment, the parsing desktop program, before binding the time update service in the desktop program, further includes:
s03, determining the process attribute of the application program to be processed;
s04, acquiring information updating requirements of the application program to be processed;
s05, determining a target process corresponding to the application program according to the process attribute and the information updating requirement.
In this embodiment, first, determining a process attribute of the application to be processed; then, acquiring the information updating requirement of the application program to be processed; and finally, determining a target process corresponding to the application program according to the process attribute and the information updating requirement.
Optionally, the information update requirement includes a time update requirement, a notification information update requirement, and other function setting item parameter update requirements;
optionally, according to the process attribute and the time update requirement, the notification information update requirement and the parameter update requirement of other function setting items, respectively determining the target process corresponding to the application program.
The method has the advantages that the process attribute of the application program to be processed is determined; then, acquiring the information updating requirement of the application program to be processed; and finally, determining a target process corresponding to the application program according to the process attribute and the information updating requirement. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example eight
Fig. 12 is a flowchart of an eighth embodiment of the time update method of the present invention. Based on the above embodiment, the parsing desktop program, before binding the time update service in the desktop program, further includes:
s06, creating an update service corresponding to the target process;
s07, binding the application program to be processed with the update service.
In this embodiment, first, an update service corresponding to the target process is created; and then binding the application program to be processed with the updating service.
Optionally, determining a target process corresponding to the application program according to the process attribute, the time update requirement, the notification information update requirement and other function setting item parameter update requirements;
optionally, one or more update services corresponding to the target process are created, and the application to be processed and the one or more update services are bound.
The beneficial effect of this embodiment is that by creating an update service corresponding to the target process; and then binding the application program to be processed with the updating service. The time updating scheme with more humanization is realized, so that when the application program of the wearable device performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Example nine
The invention also proposes a wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program implementing the steps of the method according to any of the preceding claims when executed by the processor.
Specifically, in the present embodiment, first, a desktop program is parsed, and a time update service is bound in the desktop program. The wearable device comprises an intelligent watch, an intelligent bracelet and other intelligent wearable devices, wherein the wearing state of the wearable device comprises a wearing position suitable for a user and a motion state when the user wears the wearable device, or the motion state is a motion state of the wearable device. In this embodiment, the display environment of the wearable device includes display area information of the device, for example, the wearable device of this embodiment has a larger display area, optionally, the wearable device has an annular display area, optionally, when the wearable device is in a wearing state, the annular display area is kept in a closed annular shape by connecting end to end, optionally, when the wearable device is in a wearing state, the connection position of the annular display area is interrupted, when the wearable device is not worn, the display area is unfolded, the display area is a continuous band-shaped area, optionally, the annular display area is formed by splicing a plurality of display areas, wherein the spliced boundary of the plurality of display areas maintains a narrower gap, so that after the plurality of display areas are spliced, a continuous and integral display effect is visually provided. In this embodiment, the control instruction of the wearable device is triggered and generated by one or more operations such as voice, key, touch, or press. In this embodiment, corresponding operations are performed for time update of a desktop program of the wearable device, and the implementation precondition is that the wearable device and the common smart phone are greatly different, the battery capacity of the wearable device is limited, and the screen of the wearable device of this embodiment is much larger than that of the previous wearable device, meanwhile, the fact that the chip processing capacity of the wearable device is limited is considered, so that in the daily use process of the wearable device, the situation that the system process runs relatively slowly can be caused. Therefore, at a specific time, the system of the wearable device can run slowly because of the system itself, and misjudgment is that the application processing broadcast speed is slow, so that the problem of no response of common application programs is caused, at the moment, the system of the wearable device can directly kill the application programs without response, and the situation is more prominent when the wearable device processes a large amount of concurrent work. Therefore, in this embodiment, in order to address the above-mentioned drawbacks, a time update scheme is proposed, first, a desktop program is parsed, and a time update service is bound in the desktop program, it is understood that the event update service is different from an event update mechanism of a system, and a time update service is newly added, and is bound to the desktop program of the wearable device.
Specifically, in this embodiment, a system reminder service is monitored, and a call opportunity of the system reminder service for an asynchronous processing service is obtained; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. For example, in the present embodiment, a conventional TIME update system broadcast, for example, a system broadcast for action_time_time, is issued by an asynchronous processing service (pending Intent) in a system reminder service (AlarmManagerService). In this embodiment, the asynchronous processing service (pendingintelt) may be understood as an asynchronous action registered in advance, and when the registration is successful, the application program may execute a send () function of the asynchronous processing service (pendingintelt) at a proper time to issue the asynchronous action registered in advance. It should be appreciated that, as described above, the active_time_time broadcast by the asynchronous processing service (pendingIntent) may not be handled in TIME due to the performance problem of the system of the wearable device, thereby causing a fault of TIME update delay.
Therefore, in the present embodiment, the following solution is proposed for the special case of the wearable device.
First, the TIME of the application program is not synchronized by using the action_time_time broadcast any more, and in particular, for the desktop program of the wearable device, the embodiment modifies a system reminder service (alarmmanager service) of the Android system, and binds one TIME update service (service) corresponding to the desktop program of the wearable device in the system reminder service (alarmmanager service).
Then, the call timing of the system reminder service (alarmnagerservice) to execute the asynchronous processing service (pendingpoint) is monitored, that is, whenever the system reminder service (alarmnagerservice) intends to call the send function (send () function) of the asynchronous processing service (pendingpoint), the time update semantics are transferred to the time update service (service) by calling the interface of the above-mentioned bound time update service (service), and the desktop program is notified of the update and display time by the time update service (service).
The method has the advantages that the time update service is bound in the desktop program by analyzing the desktop program; then, monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. The humanized time updating scheme is realized, so that when the application program of the wearable equipment performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
The invention also proposes a computer readable storage medium having stored thereon a time update program which, when executed by a processor, implements the steps of the time update method as described in any of the above.
The time updating method, the time updating equipment and the computer readable storage medium are implemented, and the time updating service is bound in the desktop program by analyzing the desktop program; then, monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service; then, at the calling occasion, acquiring time update semantics through the time update service; and finally, updating the interface time of the desktop program according to the time updating semantics. The humanized time updating scheme is realized, so that when the application program of the wearable equipment performs time updating, the requirement on system processing resources is reduced, the delay of time updating is reduced, the processing efficiency is improved, and the user experience is enhanced.
Based on the above embodiments, it can be seen that if the device is a wristwatch, a bracelet, or a wearable device, the screen of the device may not cover the watchband area of the device, or may cover the watchband area of the device. The invention proposes an alternative embodiment, in which the device may be a wristwatch, a bracelet or a wearable device, comprising a screen and a connection. The screen may be a flexible screen and the connection may be a wristband. Alternatively, the screen of the device or the display area of the screen may be partially or fully overlaid on the wristband of the device. Fig. 13 is a schematic hardware diagram of an implementation manner of a wearable device according to an embodiment of the present application, where a screen of the device extends to two sides, and a part of the screen is covered on a watchband of the device. In other embodiments, the screen of the device may also be entirely overlaid on the wristband of the device.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (3)
1. A method of time updating, the method comprising:
analyzing a desktop program, and binding time update service in the desktop program;
monitoring a system reminding service and acquiring the calling time of the system reminding service to an asynchronous processing service;
acquiring time update semantics through the time update service at the call opportunity;
updating the interface time of the desktop program according to the time updating semantics;
the parsing desktop program, binding a time update service in the desktop program, includes:
analyzing the desktop program and the system reminding service;
modifying the system reminding service and binding the time updating service in the system reminding service;
The monitoring system reminding service obtains the calling time of the system reminding service to the asynchronous processing service, and the monitoring system reminding service comprises the following steps:
monitoring the system reminding service;
identifying the time when the system reminding service calls the asynchronous processing service and executing message sending;
the obtaining, at the calling occasion, the time update semantics through the time update service includes:
acquiring a service interface of the time update service at the call time;
acquiring the time update semantics through the service interface;
the interface time of the desktop program is updated according to the time update semantics, which comprises the following steps:
notifying an interface component corresponding to the desktop program through the time update service;
executing an updating operation of the interface time by the interface component in combination with the time updating semantic;
the parsing desktop program, before binding the time update service in the desktop program, further includes:
monitoring the current processing resource utilization rate;
if the utilization rate of the processing resources is lower than a preset threshold value, acquiring an application program with delayed information updating, and taking the application program as an application program to be processed;
determining the process attribute of the application program to be processed;
Acquiring information updating requirements of the application program to be processed;
determining a target process corresponding to the application program according to the process attribute and the information updating requirement;
creating an update service corresponding to the target process;
binding the pending application with the update service.
2. A wearable device, the wearable device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program implementing the steps of the method of claim 1 when executed by the processor.
3. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a time update program, which when executed by a processor, implements the steps of the time update method of claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910200155.2A CN109947448B (en) | 2019-03-15 | 2019-03-15 | Time updating method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910200155.2A CN109947448B (en) | 2019-03-15 | 2019-03-15 | Time updating method, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109947448A CN109947448A (en) | 2019-06-28 |
CN109947448B true CN109947448B (en) | 2023-06-27 |
Family
ID=67008450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910200155.2A Active CN109947448B (en) | 2019-03-15 | 2019-03-15 | Time updating method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109947448B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416402B (en) * | 2020-11-23 | 2024-08-02 | 百度在线网络技术(北京)有限公司 | Applet updating method, device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104798029A (en) * | 2014-05-22 | 2015-07-22 | 华为技术有限公司 | Method and device for displaying time |
CN106802551A (en) * | 2017-01-03 | 2017-06-06 | 青岛海信移动通信技术股份有限公司 | Intelligent wearable device control method and intelligent wearable device |
WO2017092594A1 (en) * | 2015-12-03 | 2017-06-08 | 阿里巴巴集团控股有限公司 | Information processing method and device |
CN106873751A (en) * | 2016-12-29 | 2017-06-20 | 上海掌门科技有限公司 | A kind of low-power consumption often shows time implementation method and device |
CN108449488A (en) * | 2018-01-30 | 2018-08-24 | 努比亚技术有限公司 | Temporal information puts out screen display control method, circuit and terminal |
-
2019
- 2019-03-15 CN CN201910200155.2A patent/CN109947448B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104798029A (en) * | 2014-05-22 | 2015-07-22 | 华为技术有限公司 | Method and device for displaying time |
WO2017092594A1 (en) * | 2015-12-03 | 2017-06-08 | 阿里巴巴集团控股有限公司 | Information processing method and device |
CN106850242A (en) * | 2015-12-03 | 2017-06-13 | 阿里巴巴集团控股有限公司 | A kind of information processing method and device |
CN106873751A (en) * | 2016-12-29 | 2017-06-20 | 上海掌门科技有限公司 | A kind of low-power consumption often shows time implementation method and device |
CN106802551A (en) * | 2017-01-03 | 2017-06-06 | 青岛海信移动通信技术股份有限公司 | Intelligent wearable device control method and intelligent wearable device |
CN108449488A (en) * | 2018-01-30 | 2018-08-24 | 努比亚技术有限公司 | Temporal information puts out screen display control method, circuit and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN109947448A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109982179B (en) | Audio signal output method and device, wearable device and storage medium | |
CN110096195B (en) | Sports icon display method, wearable device and computer readable storage medium | |
CN109946986B (en) | Household appliance control method, wearable device and computer readable storage medium | |
CN110099337B (en) | Bone conduction audio output mode adjustment method, wearable device and storage medium | |
CN110399195B (en) | Desktop icon dynamic replacement method, equipment and computer readable storage medium | |
CN112566089A (en) | Power consumption saving method, intelligent wearable device and computer readable storage medium | |
CN109933294B (en) | Data processing method and device, wearable device and storage medium | |
CN110098845B (en) | Message processing method, wearable device, mobile terminal and readable storage medium | |
CN110139270B (en) | Wearable device pairing method, wearable device and computer readable storage medium | |
CN109947524B (en) | Interface display method, wearable device and computer readable storage medium | |
CN110213637B (en) | Method for adding watermark to video file, wearable device and readable storage medium | |
CN109933400B (en) | Display interface layout method, wearable device and computer readable storage medium | |
CN110099362A (en) | Based reminding method, wearable device and the storage medium of wearable device message | |
CN110532050B (en) | Motion data refreshing method, wearable device and computer readable storage medium | |
CN110083205B (en) | Page switching method, wearable device and computer-readable storage medium | |
CN110069200B (en) | Wearable device input control method, wearable device and storage medium | |
CN109947448B (en) | Time updating method, device and computer readable storage medium | |
CN110138965B (en) | Wearable device, number formatting method and device thereof, and storage medium | |
CN109933187B (en) | Wearing equipment operation control method, wearing equipment and computer readable storage medium | |
CN110072071B (en) | Video recording interaction control method, equipment and computer readable storage medium | |
CN110149683B (en) | Application notification processing method, wearable device and computer-readable storage medium | |
CN110096150B (en) | Search interaction control method, equipment and computer readable storage medium | |
CN110086808B (en) | Account login control method and device and computer readable storage medium | |
CN110169625B (en) | Wearable equipment and intelligent wrist-watch | |
CN109901812B (en) | Volume adjustment method for wearable device, wearable device and 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 | ||
GR01 | Patent grant |