CN115277924A - Dynamic screen locking display control method and device and computer readable storage medium - Google Patents

Dynamic screen locking display control method and device and computer readable storage medium Download PDF

Info

Publication number
CN115277924A
CN115277924A CN202210885914.5A CN202210885914A CN115277924A CN 115277924 A CN115277924 A CN 115277924A CN 202210885914 A CN202210885914 A CN 202210885914A CN 115277924 A CN115277924 A CN 115277924A
Authority
CN
China
Prior art keywords
display
cache
dynamic
time
buffer
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.)
Pending
Application number
CN202210885914.5A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202210885914.5A priority Critical patent/CN115277924A/en
Publication of CN115277924A publication Critical patent/CN115277924A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Abstract

The invention discloses a dynamic screen locking display control method, equipment and a computer readable storage medium, wherein the method comprises the following steps: detecting a cache corresponding to a period contained in a preset cache pool and display time contained in the cache in the current time through a preset drawing service within the period from the current time to the display of a preset number of display frames on a screen, and taking the cache of which the display time exceeds the detected time as an expired cache; and when the drawing service detects that the cache corresponding to the current display frame is lacked, acquiring the overdue cache in the cache pool, and setting the display time of the overdue cache as the display time corresponding to the current display frame. The dynamic screen locking and drawing display scheme is high in stability and good in fluency, the processing resource consumption of the dynamic screen locking is effectively reduced, and the use experience of a user on the dynamic screen locking is greatly improved.

Description

Dynamic screen locking display control method and device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method, a device, and a computer-readable storage medium for controlling dynamic screen lock display.
Background
In the prior art, along with the continuous development of intelligent terminal equipment, the display experience demand of a user on the equipment is higher and higher. In particular, most devices are now beginning to support dynamic screen lock or dynamic wallpaper. The realization mode of the scheme is that the XML extensible markup language file is dynamically analyzed, and the lock screen is drawn according to the parameters in the XML extensible markup language.
However, the above implementation method has more serious problems of stability and fluency, that is, each frame needs to be drawn once according to the analysis content in the XML extensible markup language, and when the structure of the dynamic screen locking content is complex, time consumption is caused, and finally, the animation of screen locking may be interrupted and interrupted, thereby greatly reducing the user experience.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a dynamic screen locking display control method, which comprises the following steps:
detecting a cache corresponding to a period contained in a preset cache pool and display time contained in the cache in the current time through a preset drawing service within the period from the current time to the display of a preset number of display frames on a screen, and taking the cache of which the display time exceeds the detected time as an expired cache;
when the drawing service detects that the cache corresponding to the current display frame is lacked, acquiring the overdue cache in the cache pool, and setting the display time of the overdue cache as the display time corresponding to the current display frame;
transmitting the overdue cache to a preset task thread, and analyzing an extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache;
and drawing a picture required to be displayed when the dynamic screen locking is performed at the display time of the overdue cache according to the extensible markup language file, and taking the picture as a display frame of the overdue cache.
Optionally, the detecting, by a preset drawing service, a buffer corresponding to a period included in a preset buffer pool at a current time and a display time included in the buffer within the period from the current time to a preset number of display frames displayed on a screen, and taking a buffer whose display time exceeds the detected time as an expired buffer, includes:
creating the drawing service corresponding to the dynamic screen locking;
and creating a service interface of the drawing service, wherein the return type of the service interface is a preset type of native image.
Optionally, the method includes, during a period from a current time to a display of a preset number of display frames on a screen, detecting, by a preset rendering service, a buffer corresponding to the period and a display time included in the buffer in a preset buffer pool at the current time, and taking a buffer whose display time exceeds the detected time as an expired buffer, where:
creating, by the rendering service, the cache pool containing the preset number of the display frames;
and saving each display frame and the display time of the display frame in the buffer pool.
Optionally, the method includes, during a period from a current time to a display of a preset number of display frames on a screen, detecting, by a preset rendering service, a buffer corresponding to the period and a display time included in the buffer in a preset buffer pool at the current time, and taking a buffer whose display time exceeds the detected time as an expired buffer, where:
creating the thread set with the preset number through the drawing service;
and after each thread in the thread set is started, the thread serves as the task thread and waits for the drawing task distributed by the drawing service.
Optionally, the transmitting the expired cache to a preset task thread and analyzing an extensible markup language file corresponding to the dynamic screen locking according to the display time of the expired cache includes:
selecting a single thread from the thread set through the drawing service to serve as the task thread, and transmitting the overdue cache to the task thread;
and after the task thread receives the overdue cache, analyzing the extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache.
Optionally, the drawing, according to the xml document, a picture that needs to be displayed when the dynamic lock screen is displayed for the display time of the expiration buffer, and taking the picture as a display frame of the expiration buffer includes:
the picture obtained by drawing is used as the display frame of the overdue cache;
and taking the display time of the overdue cache as the display time of the display frame.
Optionally, the drawing, according to the xml document, a picture that needs to be displayed when the dynamic lock screen is displayed for the display time of the expiration buffer, and taking the picture as a display frame of the expiration buffer, then includes:
receiving and responding to the data request of the dynamic screen locking through the drawing service;
and inquiring and acquiring a target cache within a preset time range of the current time from the cache pool through the drawing service, and returning the target cache to the dynamic screen locking.
Optionally, the drawing, according to the xml document, a picture that needs to be displayed when the dynamic lock screen is displayed for the display time of the expiration buffer, and taking the picture as a display frame of the expiration buffer, further includes:
analyzing the target cache through the dynamic screen locking;
and drawing the display frame in the target cache in a current dynamic screen locking window through the dynamic screen locking.
The invention also provides a dynamic lock screen display control device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the dynamic lock screen display control method are realized.
The invention further provides a computer readable storage medium, which stores a dynamic screen locking display control program, and when the dynamic screen locking display control program is executed by a processor, the steps of the dynamic screen locking display control method are realized.
In the implementation of the dynamic screen locking display control method, the dynamic screen locking display control device and the computer readable storage medium, a cache corresponding to a period contained in a preset cache pool and display time contained in the cache are detected at the current time through a preset drawing service in the period from the current time to the display of a preset number of display frames on a screen, and the cache with the display time exceeding the detected time is used as an expired cache; when the drawing service detects that the cache corresponding to the current display frame is lacked, acquiring the overdue cache in the cache pool, and setting the display time of the overdue cache as the display time corresponding to the current display frame; transmitting the overdue cache to a preset task thread, and analyzing an extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache; and drawing a picture which needs to be displayed when the dynamic lock screen is displayed in the overdue cache according to the extensible markup language file, and taking the picture as a display frame of the overdue cache. The dynamic screen locking and drawing display scheme is high in stability and good in fluency, processing resource consumption of dynamic screen locking is effectively reduced, and use experience of a user on the dynamic screen locking is greatly improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
FIG. 2 is a first flowchart of an embodiment of a dynamic lock screen display control method of the present invention;
FIG. 3 is a second flowchart of an embodiment of a dynamic lock screen display control method of the present invention;
FIG. 4 is a third flowchart of an embodiment of a dynamic lock screen display control method according to the present invention;
FIG. 5 is a fourth flowchart of an embodiment of a dynamic lock screen display control method according to the present invention;
FIG. 6 is a fifth flowchart of an embodiment of a dynamic lock screen display control method according to the present invention;
FIG. 7 is a sixth flowchart illustrating a dynamic lock screen display control method according to an embodiment of the present invention;
FIG. 8 is a seventh flowchart of an embodiment of a dynamic lock screen display control method of the present invention;
FIG. 9 is an eighth flowchart illustrating a dynamic lock screen display control method according to an embodiment of the present invention;
fig. 10 is a diagram illustrating a relationship between a preset drawing service S and a dynamic screen lock according to an embodiment of the dynamic screen lock display control method of the present invention;
fig. 11 is a significance diagram of Buffer caching in the embodiment of the dynamic screen lock display control method according to the present invention;
FIG. 12 is a diagram illustrating the significance of Buffer pools in the embodiment of the dynamic screen lock display control method according to the present invention;
FIG. 13 is a task allocation diagram of a rendering service in an embodiment of the dynamic lock screen display control method of the present invention;
fig. 14 is a drawing flowchart of a dynamic screen lock according to an embodiment of the dynamic screen lock display control method of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 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 mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 ), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope 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 mobile terminal 100 is in a call signal reception mode, a call 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 related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes 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 graphic 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 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone 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 audio signals.
The mobile terminal 100 also includes 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 that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
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 (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, 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 a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a 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 direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, 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, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (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 external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
Fig. 2 is a flowchart of a dynamic screen lock display control method according to a first embodiment of the present invention. A dynamic screen locking display control method comprises the following steps:
s1, detecting a cache corresponding to a period contained in a preset cache pool and display time contained in the cache in the current time through a preset drawing service in the period from the current time to the display of a preset number of display frames on a screen, and taking the cache of which the display time exceeds the detected time as an overdue cache;
s2, when the drawing service detects that the cache corresponding to the current display frame is lacked, acquiring the overdue cache in the cache pool, and setting the display time of the overdue cache as the display time corresponding to the current display frame;
s3, transmitting the overdue cache to a preset task thread, and analyzing an extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache;
and S4, drawing a picture required to be displayed when the dynamic lock screen is displayed in the overdue cache according to the extensible markup language file, and taking the picture as a display frame of the overdue cache.
Fig. 3 is a second flowchart of an embodiment of a dynamic screen lock display control method according to the present invention, where in a period from a current time to a time when a screen displays a preset number of display frames, a buffer corresponding to the period included in a preset buffer pool and a display time included in the buffer are detected at the current time by a preset rendering service, and a buffer whose display time exceeds the detected time is used as an expired buffer, where the second flowchart includes:
s01, creating the drawing service corresponding to the dynamic screen locking;
and S02, creating a service interface of the drawing service, wherein the return type of the service interface is a preset type of native image.
Fig. 4 is a third flowchart of an embodiment of a dynamic screen lock display control method according to the present invention, where in a period from a current time to a time when a screen displays a preset number of display frames, a buffer corresponding to the period included in a preset buffer pool and a display time included in the buffer are detected at the current time by a preset rendering service, and a buffer whose display time exceeds the detected time is used as an expired buffer, where before, the method further includes:
s03, creating the cache pool containing the preset number of the display frames through the drawing service;
and S04, storing each display frame and the display time of the display frame in the buffer pool.
Fig. 5 is a fourth flowchart of an embodiment of the dynamic screen lock display control method according to the present invention, where in a period from current time to display of a preset number of display frames on a screen, a cache corresponding to the period and included in a preset cache pool are detected at current time by a preset rendering service, and display time included in the cache is detected, and a cache whose display time exceeds the detected time is used as an expired cache, and before the method further includes:
s05, creating the thread set with the preset number through the drawing service;
and S06, after each thread in the thread set is started, the thread serves as the task thread, and waits for the drawing task distributed by the drawing service.
Fig. 6 is a fifth flowchart of an embodiment of a dynamic screen lock display control method according to the present invention, where the transmitting the expired cache to a preset task thread and analyzing an extensible markup language file corresponding to a dynamic screen lock according to the display time of the expired cache includes:
s31, selecting a single thread in the thread set through the drawing service to serve as the task thread, and transmitting the overdue cache to the task thread;
and S32, after the task thread receives the overdue cache, analyzing the extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache.
Fig. 7 is a sixth flowchart of an embodiment of a dynamic lock screen display control method according to the present invention, where drawing, according to the xml document, a picture that needs to be displayed when the dynamic lock screen is displayed at the display time of the expiration buffer, and using the picture as a display frame of the expiration buffer includes:
s41, taking the drawn picture as a display frame of the overdue cache;
and S42, taking the display time of the overdue cache as the display time of the display frame.
Fig. 8 is a seventh flowchart of an embodiment of the dynamic lock screen display control method according to the present invention, where the drawing, according to the xml document, a picture that needs to be displayed when the dynamic lock screen is displayed at the display time of the expiration buffer, and using the picture as a display frame of the expiration buffer, then includes:
s51, receiving and responding to the data request of the dynamic screen locking through the drawing service;
and S52, inquiring and acquiring a target cache in a preset time range of the current time from the cache pool through the drawing service, and returning the target cache to the dynamic screen locking.
Fig. 9 is an eighth flowchart of an embodiment of a dynamic lock screen display control method according to the present invention, where the drawing, according to the xml document, a picture that needs to be displayed when the dynamic lock screen is displayed at the display time of the expiration buffer, and using the picture as a display frame of the expiration buffer, then further includes:
s61, analyzing the target cache through the dynamic screen locking;
and S62, drawing the display frame in the target cache in a current dynamic screen locking window through the dynamic screen locking.
In a specific example, a single process is specially used for parsing and drawing, buffer caches of multiple times are produced, and the screen locking end can acquire the display content only by requesting the process to request the buffer caches, so that screen locking is prevented from being blocked due to XML parsing and drawing consuming time.
Specifically, please refer to fig. 10, which shows a relationship between a preset drawing service S and a dynamic screen lock. The method comprises the steps of creating a dynamic screen locking drawing service S, wherein the drawing service is a single App application process, the drawing service provides an interface T1, and the return type of the drawing service is an Android native image (Bitmap).
Specifically, please refer to fig. 11, which shows a significance diagram of Buffer cache, and refer to fig. 12, which shows a significance diagram of Buffer pool. After the drawing service S is started, the service creates a circular Buffer pool, where 10 images (bitmaps) exist in the Buffer, and the bitmaps correspond to display time to be displayed.
Specifically, the drawing service S creates a 10 Thread set (ThreadList), and after a single Thread (Thread) is started, the drawing service S waits for the service S to allocate a task.
Specifically, the drawing service detects whether the Buffer pool includes a Buffer corresponding to a time from the current time to 10 frames displayed on the screen (i.e., 1 frame for each refresh of the screen) according to the current time. And when the time in the Buffer exceeds the current detection time, setting the Buffer as B1.
In particular, referring to FIG. 13, a task allocation diagram for a rendering service is shown. If the Buffer corresponding to the time u1 of the corresponding frame is absent, an outdated Buffer (B1) is obtained from a Buffer pool, the time of the Buffer is set to be u1, a thread S1 of a task is obtained from a threadList thread, and the B1 is transmitted to the S1.
Specifically, referring to fig. 13 again, after the thread S1 acquires the task, the xml file corresponding to the dynamic screen locking is analyzed according to the u1 time of the Buffer, and the picture to be displayed in the dynamic screen locking at u1 is drawn to the Bitmap of B1.
Specifically, please refer to fig. 14, which shows a rendering process after the dynamic screen lock acquires the image through S1. The dynamic screen locking requests through an interface T1 of the service S, and the service inquires a Bitmap (BX) near the current time range from the Buffer pool and returns the Bitmap (BX) to the screen locking; finally, obtaining a Bitmap (BX) by the dynamic lock screen, and drawing the BX on a window of the lock screen.
The method has the advantages that the buffer corresponding to the period contained in the preset buffer pool and the display time contained in the buffer are detected at the current time through the preset drawing service in the period from the current time to the display of the preset number of display frames on the screen, and the buffer with the display time exceeding the detected time is used as the overdue buffer; when the drawing service detects that the cache corresponding to the current display frame is lacked, acquiring the overdue cache in the cache pool, and setting the display time of the overdue cache as the display time corresponding to the current display frame; transmitting the overdue cache to a preset task thread, and analyzing an extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache; and drawing a picture required to be displayed when the dynamic screen locking is performed at the display time of the overdue cache according to the extensible markup language file, and taking the picture as a display frame of the overdue cache. The dynamic screen locking and drawing display scheme is high in stability and good in fluency, processing resource consumption of dynamic screen locking is effectively reduced, and use experience of a user on the dynamic screen locking is greatly improved.
Example two
Based on the foregoing embodiments, the present invention further provides a dynamic lock screen display control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the dynamic lock screen display control method according to any one of the foregoing embodiments.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
EXAMPLE III
Based on the foregoing embodiment, the present invention further provides a computer-readable storage medium, where a dynamic lock screen display control program is stored on the computer-readable storage medium, and when executed by a processor, the dynamic lock screen display control program implements the steps of the dynamic lock screen display control method according to any one of the foregoing embodiments.
It should be noted that the media embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are applicable to the media embodiment, which is not described herein again.
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 of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A dynamic screen locking display control method is characterized by comprising the following steps:
detecting a cache corresponding to a period contained in a preset cache pool and display time contained in the cache in the current time through a preset drawing service within the period from the current time to the display of a preset number of display frames on a screen, and taking the cache of which the display time exceeds the detected time as an overdue cache;
when the drawing service detects that the cache corresponding to the current display frame is lacked, acquiring the overdue cache in the cache pool, and setting the display time of the overdue cache as the display time corresponding to the current display frame;
transmitting the overdue cache to a preset task thread, and analyzing an extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache;
and drawing a picture which needs to be displayed when the dynamic lock screen is displayed in the overdue cache according to the extensible markup language file, and taking the picture as a display frame of the overdue cache.
2. The dynamic screen-lock display control method according to claim 1, wherein the detecting, by a preset drawing service, a buffer corresponding to a period included in a preset buffer pool at a current time and a display time included in the buffer during the period from the current time to a display of a preset number of display frames on a screen, and taking a buffer whose display time exceeds the detected time as an expired buffer, previously comprises:
creating the drawing service corresponding to the dynamic screen locking;
and creating a service interface of the drawing service, wherein the return type of the service interface is a preset type of native image.
3. The dynamic screen-lock display control method according to claim 2, wherein the detecting, by a preset drawing service, a buffer corresponding to a period included in a preset buffer pool at a current time and a display time included in the buffer during the period from the current time to a display of a preset number of display frames on a screen, and taking a buffer whose display time exceeds the detected time as an expired buffer, further comprises:
creating, by the rendering service, the cache pool containing the preset number of the display frames;
and storing each display frame and the display time of the display frame in the buffer pool.
4. The dynamic screen-lock display control method according to claim 3, wherein the detecting, by a preset drawing service, a buffer corresponding to the period included in a preset buffer pool at the current time and the display time included in the buffer during the period from the current time to the display of a preset number of display frames on the screen, and taking the buffer whose display time exceeds the detected time as an expired buffer, further comprises:
creating the preset number of thread sets through the drawing service;
and after each thread in the thread set is started, the thread serves as the task thread and waits for the drawing task distributed by the drawing service.
5. The dynamic screen locking display control method according to claim 4, wherein the transmitting the expiration cache to a preset task thread and analyzing the extensible markup language file corresponding to the dynamic screen locking according to the display time of the expiration cache comprises:
selecting a single thread from the thread set through the drawing service to serve as the task thread, and transmitting the overdue cache to the task thread;
and after the task thread receives the overdue cache, analyzing the extensible markup language file corresponding to the dynamic screen locking according to the display time of the overdue cache.
6. The dynamic lock screen display control method according to claim 5, wherein the drawing, according to the xml file, a picture that needs to be displayed during the display time of the expiration buffer for dynamic lock screen, and using the picture as a display frame of the expiration buffer comprises:
the picture obtained by drawing is used as the display frame of the overdue cache;
and taking the display time of the overdue cache as the display time of the display frame.
7. The dynamic screen locking display control method according to claim 6, wherein the step of drawing, according to the extensible markup language file, a picture to be displayed by the dynamic screen locking when the display time of the expired cache is reached, and taking the picture as a display frame of the expired cache, then comprises:
receiving and responding to the data request of the dynamic screen locking through the drawing service;
and inquiring and acquiring a target cache within a preset time range of the current time from the cache pool through the drawing service, and returning the target cache to the dynamic screen locking.
8. The dynamic lock screen display control method according to claim 7, wherein the drawing, according to the xml file, a picture that needs to be displayed during the display time of the expiration buffer and is taken as a display frame of the expiration buffer, and then further comprising:
analyzing the target cache through the dynamic screen locking;
and drawing the display frame in the target cache in a current dynamic screen locking window through the dynamic screen locking.
9. A dynamic lock screen display control apparatus, characterized in that the apparatus comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the dynamic lock screen display control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having a dynamic lock screen display control program stored thereon, which when executed by a processor, implements the steps of the dynamic lock screen display control method according to any one of claims 1 to 8.
CN202210885914.5A 2022-07-26 2022-07-26 Dynamic screen locking display control method and device and computer readable storage medium Pending CN115277924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210885914.5A CN115277924A (en) 2022-07-26 2022-07-26 Dynamic screen locking display control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210885914.5A CN115277924A (en) 2022-07-26 2022-07-26 Dynamic screen locking display control method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115277924A true CN115277924A (en) 2022-11-01

Family

ID=83769632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210885914.5A Pending CN115277924A (en) 2022-07-26 2022-07-26 Dynamic screen locking display control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115277924A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317355A1 (en) * 2013-04-19 2014-10-23 Apple Inc. Cache allocation scheme optimized for browsing applications
CN104519404A (en) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 Graphics interchange format file playing method and device
WO2018103022A1 (en) * 2016-12-07 2018-06-14 深圳前海达闼云端智能科技有限公司 Method and apparatus for achieving frame buffering, electronic device and computer program product
CN108595242A (en) * 2017-06-05 2018-09-28 掌阅科技股份有限公司 Page display method, electronic equipment and computer storage media
CN109284183A (en) * 2018-10-17 2019-01-29 广州市百果园信息技术有限公司 Cardon playback method, device, computer storage medium and terminal
CN109729423A (en) * 2018-12-27 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of desktop wallpaper setting method and device
CN110209460A (en) * 2019-06-10 2019-09-06 Oppo广东移动通信有限公司 A kind of implementation method of dynamic wallpaper, device, storage medium and terminal
CN111209065A (en) * 2019-12-31 2020-05-29 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
CN111880868A (en) * 2020-06-16 2020-11-03 上海趣蕴网络科技有限公司 Asynchronous image drawing method and device based on multi-level cache
CN112087582A (en) * 2020-09-14 2020-12-15 努比亚技术有限公司 Special effect video generation method, mobile terminal and computer readable storage medium
CN114327900A (en) * 2021-12-30 2022-04-12 四川启睿克科技有限公司 Method for preventing memory leakage by thread call in management double-buffer technology
CN114443153A (en) * 2022-01-28 2022-05-06 深圳Tcl新技术有限公司 Interface drawing method and device, computer equipment and storage medium
CN114443269A (en) * 2021-08-27 2022-05-06 荣耀终端有限公司 Frame rate adjustment method and related device
WO2022143082A1 (en) * 2020-12-29 2022-07-07 华为技术有限公司 Image processing method and electronic device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317355A1 (en) * 2013-04-19 2014-10-23 Apple Inc. Cache allocation scheme optimized for browsing applications
CN104519404A (en) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 Graphics interchange format file playing method and device
WO2018103022A1 (en) * 2016-12-07 2018-06-14 深圳前海达闼云端智能科技有限公司 Method and apparatus for achieving frame buffering, electronic device and computer program product
CN108595242A (en) * 2017-06-05 2018-09-28 掌阅科技股份有限公司 Page display method, electronic equipment and computer storage media
CN109284183A (en) * 2018-10-17 2019-01-29 广州市百果园信息技术有限公司 Cardon playback method, device, computer storage medium and terminal
CN109729423A (en) * 2018-12-27 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of desktop wallpaper setting method and device
CN110209460A (en) * 2019-06-10 2019-09-06 Oppo广东移动通信有限公司 A kind of implementation method of dynamic wallpaper, device, storage medium and terminal
CN111209065A (en) * 2019-12-31 2020-05-29 Oppo广东移动通信有限公司 Dynamic wallpaper setting method and device, storage medium and electronic equipment
CN111880868A (en) * 2020-06-16 2020-11-03 上海趣蕴网络科技有限公司 Asynchronous image drawing method and device based on multi-level cache
CN112087582A (en) * 2020-09-14 2020-12-15 努比亚技术有限公司 Special effect video generation method, mobile terminal and computer readable storage medium
WO2022143082A1 (en) * 2020-12-29 2022-07-07 华为技术有限公司 Image processing method and electronic device
CN114443269A (en) * 2021-08-27 2022-05-06 荣耀终端有限公司 Frame rate adjustment method and related device
CN114327900A (en) * 2021-12-30 2022-04-12 四川启睿克科技有限公司 Method for preventing memory leakage by thread call in management double-buffer technology
CN114443153A (en) * 2022-01-28 2022-05-06 深圳Tcl新技术有限公司 Interface drawing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN110062105B (en) Interface display method and terminal equipment
CN110837327B (en) Message viewing method and terminal
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108196776B (en) Terminal screen splitting method, terminal and computer readable storage medium
CN109558046B (en) Information display method and terminal equipment
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN107480169B (en) Picture loading method, terminal and computer readable storage medium
CN110875978A (en) Terminal display control method, terminal and computer readable storage medium
CN107153500B (en) Method and equipment for realizing image display
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN108089935B (en) Application program management method and mobile terminal
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN112612372A (en) Touch event regulation and control method and device and computer readable storage medium
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN109597546B (en) Icon processing method and terminal equipment
CN107277113B (en) Method and equipment for realizing file downloading processing
CN110995816B (en) Sharing method and electronic device
CN114064179A (en) Display mode adaptation method, terminal and storage medium
CN113419701A (en) Sound effect setting method and related equipment
CN115277924A (en) Dynamic screen locking display control method and device 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