CN113377474B - Screen saver display method and related device - Google Patents

Screen saver display method and related device Download PDF

Info

Publication number
CN113377474B
CN113377474B CN202110650156.4A CN202110650156A CN113377474B CN 113377474 B CN113377474 B CN 113377474B CN 202110650156 A CN202110650156 A CN 202110650156A CN 113377474 B CN113377474 B CN 113377474B
Authority
CN
China
Prior art keywords
time
android system
screen saver
current
preset
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
Application number
CN202110650156.4A
Other languages
Chinese (zh)
Other versions
CN113377474A (en
Inventor
彭琳
刘广宾
李尧彦
赵文娴
陈碧锋
郝成
杨怀东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202110650156.4A priority Critical patent/CN113377474B/en
Publication of CN113377474A publication Critical patent/CN113377474A/en
Application granted granted Critical
Publication of CN113377474B publication Critical patent/CN113377474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a screen saver display method and a related device, wherein the screen saver display method starts a first timer when an android system meets a first preset condition, sets a default time interval as a preset delay time, then obtains a key trigger time stamp and an audio state time stamp when the android system meets a screen saver display condition, finally judges whether a user is operating and using equipment based on the current time stamp of the android system, the key trigger time stamp and the audio state time stamp, and controls the screen saver display state based on a judgment result.

Description

Screen saver display method and related device
Technical Field
The present disclosure relates to the field of computer applications, and more particularly, to a screen saver display method and related devices.
Background
A screen saver, also called screen saver, is a special function designed to protect a display, which is a function of displaying pictures or videos on a display device that is not operated and used by a user, and has been widely used in an intelligent display device. The original purpose of the design at that time is to prevent the display from displaying the same picture for a long time due to unmanned operation in intelligent recognition of computers, intelligent televisions and the like, so that the service life of the display is shortened due to aging.
At present, screen saver display of intelligent equipment based on an Android (Android) system is mostly based on an application layer, namely, the screen saver can be displayed only when a screen saver application is operated, and the screen saver can be displayed only when the application is started by the screen saver display method based on the application layer, so that negative influence is brought to user experience.
Disclosure of Invention
In order to solve the technical problems, the application provides a screen saver display method and a related device, so as to achieve the purpose of providing a screen saver display method with high-efficiency and simple system functions.
In order to achieve the technical purpose, the embodiment of the application provides the following technical scheme:
the screen saver display method is realized based on an android system and comprises the following steps:
when the android system meets a first preset condition, a first timer is started; the first preset condition comprises that a server side is configured to start a screen saver and a screen saver switch in the setting of the android system is started;
setting a default interval time as a preset delay time;
judging whether the timing time of the first timer is equal to a preset time delay time length, if so, acquiring a key trigger time stamp and an audio state time stamp when the android system meets screen saver display conditions, wherein the key trigger time stamp is a time stamp for recording the time length after the system is started when the last key is triggered, and the audio state time stamp is-1 when the android system plays audio and video and is a time stamp for stopping playing audio and video when the android system does not play audio and video;
and controlling the screen saver display state based on the current time stamp of the android system, the key trigger time stamp and the audio state time stamp, wherein the current time stamp is a time stamp for recording the time length of the android system after the system is started.
Optionally, the controlling the screen saver display state based on the current timestamp, the key trigger timestamp and the audio state timestamp of the android system includes:
when the value of the audio state time stamp is-1, returning to the step of setting a default time interval as a preset delay time length, and when the value of the audio state time stamp is a time stamp of a time length after the system is started when playing of the audio and video is stopped, acquiring the maximum values of the audio state time stamp and the key trigger time stamp as a first intermediate value;
judging whether the difference value between the current timestamp and the first intermediate value is larger than or equal to the preset delay time length, if so, sending a broadcast showing a screen saver to a desktop of the android system, returning to the step of setting the default interval time to the preset delay time length, if not, adjusting the preset delay time length according to a first preset formula, and returning to the step of judging whether the timing time of the first timer is equal to the preset delay time length;
the first preset formula includes: n=cd- (current_time-M), where N represents a value of a preset delay time after adjustment, CD represents the default time interval, current_time represents the current timestamp, and M represents the first intermediate value.
Optionally, the method further comprises:
and hiding a screen saver setting inlet when the android system does not meet the first preset condition.
Optionally, the process of judging whether the android system meets the screen saver display condition includes:
judging whether the android system is dormant, if so, returning to the step of setting the default interval time as the preset delay time;
if not, judging whether the current desktop displays a screen saver, if so, returning to the step of setting the default interval time as the preset delay time;
if not, judging whether the current foreground application of the android system meets the display conditions, if not, returning to the step of setting the default interval time as the preset delay time, and if so, judging that the android system meets the screen saver display conditions.
Optionally, the determining whether the current foreground application of the android system meets the display condition includes:
acquiring a class name of a current foreground application of the android system;
judging whether the class name belongs to one of class names stored in a preset database, if so, judging that the current foreground application of the android system does not meet the display condition, and if not, judging that the current foreground application of the android system meets the display condition.
A screen saver display system implemented based on an android system, the screen saver display system comprising:
the first judging module is used for starting a first timer when the android system meets a first preset condition; the first preset condition comprises that a server side is configured to start a screen saver and a screen saver switch in the setting of the android system is started;
the delay time length module is used for setting the default interval time as a preset delay time length;
the second judging module is used for judging whether the timing time of the first timer is equal to a preset delay time length, if so, acquiring a key trigger time stamp and an audio state time stamp when the android system meets screen saver display conditions, wherein the key trigger time stamp is a time stamp for recording the time length after the system is started when the latest case is triggered, and the audio state time stamp is-1 when the android system plays the audio and video and is a time stamp for stopping playing the audio and video when the android system does not play the audio and video;
and the screen saver playing module is used for controlling the screen saver display state based on the current timestamp of the android system, the key trigger timestamp and the audio state timestamp, wherein the current timestamp is a timestamp for recording the time length of the android system after the system is started.
Optionally, the screen saver playing module is specifically configured to, when the value of the audio state timestamp is-1, return to the step of setting the default time interval to a preset delay time length, and when the value of the audio state timestamp is a timestamp of a time length after the system is started when the playing of the audio and video is stopped, obtain the maximum value of the audio state timestamp and the key trigger timestamp as a first intermediate value;
judging whether the difference value between the current timestamp and the first intermediate value is larger than or equal to the preset delay time length, if so, sending a broadcast showing a screen saver to a desktop of the android system, returning to the step of setting the default interval time to the preset delay time length, if not, adjusting the preset delay time length according to a first preset formula, and returning to the step of judging whether the timing time of the first timer is equal to the preset delay time length;
the first preset formula includes: n=cd- (current_time-M), where N represents a value of a preset delay time after adjustment, CD represents the default time interval, current_time represents the current timestamp, and M represents the first intermediate value.
Optionally, the method further comprises:
and the hiding setting module is used for hiding the screen saver setting inlet when the android system does not meet the first preset condition.
A screen saver display system, comprising: a memory and a processor; the processor is used for calling the program code, and the screen saver display method is realized when the program code is called.
A storage medium having stored therein program code which when executed implements the screen saver display method of any one of the preceding claims.
According to the technical scheme, the embodiment of the application provides the screen saver display method and the related device, wherein the screen saver display method is characterized in that when an android system meets a first preset condition, a first timer is started, a default time interval is set to be a preset delay time, then when the android system meets the screen saver display condition, a key trigger time stamp and an audio state time stamp are acquired, finally, whether a user is operating and using equipment is judged based on the current time stamp of the android system, the key trigger time stamp and the audio state time stamp, and the screen saver display state is controlled based on a judging result.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flowchart of a screen saver display method according to an embodiment of the present application;
FIG. 2 is a flowchart of a screen saver display method according to another embodiment of the present application;
FIG. 3 is a flowchart of a screen saver display method according to another embodiment of the present application;
fig. 4 is a schematic diagram of a default time interval setting interface according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The embodiment of the application provides a screen saver display method, which is realized based on an android system as shown in fig. 1, and comprises the following steps:
s101: when the android system meets a first preset condition, a first timer is started; the first preset condition comprises that a server side is configured to start a screen saver and a screen saver switch in the setting of the android system is started.
S102: and setting the default interval time as a preset delay time.
S103: judging whether the timing time of the first timer is equal to a preset time delay time length, if so, acquiring a key trigger time stamp and an audio state time stamp when the android system meets screen saver display conditions, wherein the key trigger time stamp is a time stamp for recording the time length after the system is started when the last key is triggered, and the audio state time stamp is-1 when the android system plays audio and video and is a time stamp for stopping playing the audio and video when the android system does not play the audio and video.
S104: and controlling the screen saver display state based on the current time stamp of the android system, the key trigger time stamp and the audio state time stamp, wherein the current time stamp is a time stamp for recording the time length of the android system after the system is started.
The android device based system monitors all key events in the source code phonewindowmanager.java, namely, as long as a user has key behaviors, the behaviors can be obtained in the intercept Key Before Dispatching method of phonewindowmanager.java.
The system of the Android device has a sleep WAKE mechanism, which is mainly realized through wake_lock, and Android provides five types of WakeLock, namely PARTIAL_WAKE_LOCK, SCREEN_DIM_WAKE_LOCK, SCREEN_BRIGHT_WAKE_LOCK, FULL_WAKE_ LOCK, PROXIMITY _SCREEN_OFF_WAKE_LOCK. When the audio class application plays the audio, a LOCK with a TAG being an AudioMix is held in a PARTIAL_WAKE_LOCK of the system, particularly in an acqueWakeLockInternal method in PowerManageService.java, when no audio class application plays the audio, release is carried out in a releaseWakeLockInternal in PowerManageService.java, namely the LOCK with the TAG being the AudioMix is not held any more; when the system needs to enter a sleep state, a gotoseep international method in powermanager service.
Based on the above method, it can be found that if the user is operating the android device, the trigger of the key is affirmed, the interactive keybeforedispatch method to phonewindomanager.
If the user is watching a scene behavior such as video, listening to music or having audio/video, a lock with TAG being AudioMix exists in wake_lock; if the device has entered a sleep state, execution proceeds to the gotoseep international method in powermanager service. For the three types of scenes, we can judge by setting the attribute value. For example, when the user has a key trigger, setting sys.mgtv.keyvent.time (i.e. the key trigger timestamp) to be the current system elappedrealteme (i.e. the timestamp of the duration after the system is started); when the wake_lock of the system has a lock with TAG being Audio mix (judged in acquieseWakeLockInternal), setting the attribute value of sys.mgtv.Wakelock.time (namely the audio state timestamp) to be-1, when the wake_lock of the system has no lock with TAG being Audio mix (judged in releaseWakeLockInternal), setting the attribute value of sys.mgtv.Wakelock.time to be the timestamp of the time length after the system is started, and when the play of the audio video is stopped, setting the attribute value of sys.mgtv.Wakelock.time to be elappsedRealTime of the current system (namely the timestamp of the time length after the system is started); when the system enters a sleep state (judged in the gotoseep international method in powermanager service.java), the attribute value of sys.mgtv.sleep.time is set to-1. When the value of the attribute value of sys.mgtv.sleep.time is-1, then no screen saver should be presented either.
The screen saver display method provided by the embodiment of the application is realized based on the logic, namely the screen saver display method realized based on the system function is provided, the user does not need to additionally start the application, the use experience of the user is improved, and the screen saver display method has the characteristics of simple and efficient realization process and is beneficial to assisting advertisement operation.
The following describes possible execution procedures of each step of the screen saver display method provided in the embodiment of the present application.
Optionally, as shown in fig. 2, the controlling the screen saver display state based on the current timestamp of the android system, the key trigger timestamp and the audio state timestamp includes:
s1041: when the value of the audio state time stamp is-1, returning to the step of setting a default time interval as a preset delay time length, and when the value of the audio state time stamp is a time stamp of a time length after the system is started when playing of the audio and video is stopped, acquiring the maximum values of the audio state time stamp and the key trigger time stamp as a first intermediate value;
s1042: judging whether the difference value between the current timestamp and the first intermediate value is larger than or equal to the preset delay time length, if so, sending a broadcast showing a screen saver to a desktop of the android system, returning to the step of setting the default interval time to the preset delay time length, if not, adjusting the preset delay time length according to a first preset formula, and returning to the step of judging whether the timing time of the first timer is equal to the preset delay time length;
the first preset formula includes: n=cd- (current_time-M), where N represents a value of a preset delay time after adjustment, CD represents the default time interval, current_time represents the current timestamp, and M represents the first intermediate value.
In this embodiment, by using a first timer, the method will poll at specific times whether a screen saver should be presented. When the display conditions of the screen protector are not met, restarting timing, wherein the time length of the timing is calculated according to the attribute value of sys.mgtv.keyvent.time and the attribute value of sys.mgtv.wakeup.time in the display conditions of the screen protector, and then combining a specific algorithm to ensure that the value of the time length of each occurrence of the screen protector from the moment of the condition of last allowing the display of the screen protector is the specific time (for example, the screen protector can be displayed every 10 minutes); in the scene where the screen saver is displayed, the timing duration is calculated according to the attribute value of sys.mgtv.sleep.time, so that the screen saver is hidden.
Optionally, referring to fig. 3, the screen saver display method further includes:
s105: and hiding a screen saver setting inlet when the android system does not meet the first preset condition.
The process for judging whether the android system meets the screen saver display conditions comprises the following steps:
judging whether the android system is dormant, if so, returning to the step of setting the default interval time as the preset delay time;
if not, judging whether the current desktop displays a screen saver, if so, returning to the step of setting the default interval time as the preset delay time;
if not, judging whether the current foreground application of the android system meets the display conditions, if not, returning to the step of setting the default interval time as the preset delay time, and if so, judging that the android system meets the screen saver display conditions.
The judging whether the current foreground application of the android system meets the display condition comprises the following steps:
acquiring a class name of a current foreground application of the android system;
judging whether the class name belongs to one of class names stored in a preset database, if so, judging that the current foreground application of the android system does not meet the display condition, and if not, judging that the current foreground application of the android system meets the display condition.
Specifically, whether the android system is dormant can be judged by the specific value of the attribute value of sys.mgtv.sleep.time.
The default interval time may allow the user to set through a similar interface as shown in fig. 4, assuming the default interval time is 10 minutes, a specific usage scenario is introduced as follows.
Scene one: after the system is started, a user does not perform any operation (including key press, voice and the like), at this moment, a polling timer of a screen saver starting time interval can start to display the screen saver after 10 minutes are set, before the screen saver is displayed, whether the system is dormant (if the attribute value of sys.mgtv.sleep.time is-1, the system is dormant) is judged, if the system is not dormant, the screen saver can be displayed, otherwise, the screen saver cannot be displayed;
scene II: after the system is started, a user starts playing audio/video after operating instructions such as keys or voice, in a playing scene, a polling timer at a screen saver starting time interval still works and the delay time of each time is set for 10 minutes, and a screen saver module judges whether the system is currently playing or not according to the attribute value of sys.mgtv.wakeup.time (the attribute value of sys.mgtv.wakeup.time is-1 to indicate that the system is playing); if no (sys.mgtv.wake.time attribute value is the current system elappedrealtem, i.e. the timestamp of the duration after the system is started), the preset delay duration of the first timer at this time is the interval time- (current_time-wake_lock_time) of the default screen saver, where the interval time (i.e. the default interval time) of the default screen saver is 10 minutes set by the user;
scene III: after the system is started, a user starts playing audio/video after the operation of instructions such as keys or voice, and after the audio/video playing is completed (the attribute value of the system eleasedseally realtem is the attribute value of the system eleasedsealtem), the user performs key operation (the attribute value of the system eleasedsealtem is the attribute value of the system key of the last time), and after the polling timer of the screen saver time interval reaches a timing point, the duration of the next timing is acquired again, wherein the duration is the interval time of default starting the screen saver- (current_time-key_event_time), and the interval time of default starting the screen saver is 10 minutes set by the user;
scene four: during the display process of the screen saver (the foreground process of the system is the application of the screen saver module), a polling timer defaulting to 30 seconds of the timing polling module continuously runs, when a scene of system dormancy (sys.mgtv.sleep.time with an attribute value of-1) occurs, when the first timer of the current polling reaches a delay point, the duration of the next delay point is 30- (current_time-sleep_time), and the value is certainly a value greater than 0.
Before the screen saver is displayed, it is also determined whether a special scene (such as whether a picture is currently being displayed using a file manager or other application, which is determined by acquiring a foreground process of the current system) is not allowed to be displayed in the scene.
When the user selects to close the screen saver function, the timer is correspondingly closed (namely, the timing message of the timer is removed); when the user selects other options (e.g., the set duration is 3 minutes), the first timer immediately adjusts the default polling duration to 3 minutes, the "default interval" is correspondingly adjusted to 3 minutes, and so on.
When the user has key operation behaviors, the screen saver module can immediately hide the screen saver, and meanwhile, the first timer still can continue to work.
The screen saver display system provided by the embodiment of the application is described below, and the screen saver display system described below can be referred to correspondingly to the screen saver display method described above.
Correspondingly, the embodiment of the application also provides a screen saver display system, which is realized based on the android system and comprises:
the first judging module is used for starting a first timer when the android system meets a first preset condition; the first preset condition comprises that a server side is configured to start a screen saver and a screen saver switch in the setting of the android system is started;
the delay time length module is used for setting the default interval time as a preset delay time length;
the second judging module is used for judging whether the timing time of the first timer is equal to a preset delay time length, if so, acquiring a key trigger time stamp and an audio state time stamp when the android system meets screen saver display conditions, wherein the key trigger time stamp is a time stamp for recording the time length after the system is started when the latest case is triggered, and the audio state time stamp is-1 when the android system plays the audio and video and is a time stamp for stopping playing the audio and video when the android system does not play the audio and video;
and the screen saver playing module is used for controlling the screen saver display state based on the current timestamp of the android system, the key trigger timestamp and the audio state timestamp, wherein the current timestamp is a timestamp for recording the time length of the android system after the system is started.
Optionally, the screen saver playing module is specifically configured to, when the value of the audio state timestamp is-1, return to the step of setting the default time interval to a preset delay time length, and when the value of the audio state timestamp is a timestamp of a time length after the system is started when the playing of the audio and video is stopped, obtain the maximum value of the audio state timestamp and the key trigger timestamp as a first intermediate value;
judging whether the difference value between the current timestamp and the first intermediate value is larger than or equal to the preset delay time length, if so, sending a broadcast showing a screen saver to a desktop of the android system, returning to the step of setting the default interval time to the preset delay time length, if not, adjusting the preset delay time length according to a first preset formula, and returning to the step of judging whether the timing time of the first timer is equal to the preset delay time length;
the first preset formula includes: n=cd- (current_time-M), where N represents a value of a preset delay time after adjustment, CD represents the default time interval, current_time represents the current timestamp, and M represents the first intermediate value.
Optionally, the method further comprises:
and the hiding setting module is used for hiding the screen saver setting inlet when the android system does not meet the first preset condition.
Correspondingly, the embodiment of the application also provides a screen saver display system, which comprises: a memory and a processor; the memory stores program codes, and the processor is configured to invoke the program codes, where the program codes implement the screen saver display method according to any one of the embodiments.
Correspondingly, the embodiment of the application also provides a storage medium, wherein the storage medium stores program codes, and the program codes realize the screen saver display method according to any embodiment when being executed.
In summary, the embodiment of the application provides a screen saver display method and related device, wherein the screen saver display method starts a first timer when an android system meets a first preset condition, sets a default time interval to be a preset delay time, then obtains a key trigger time stamp and an audio state time stamp when the android system meets a screen saver display condition, and finally judges whether a user is operating and using equipment based on the current time stamp of the android system, the key trigger time stamp and the audio state time stamp, and controls a screen saver display state based on a judging result.
Features described in the embodiments in this specification may be replaced or combined with each other, and each embodiment is mainly described in the differences from the other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. The screen saver display method is characterized by being realized based on an android system, and comprises the following steps of:
when the android system meets a first preset condition, a first timer is started; the first preset condition comprises that a server side is configured to start a screen saver and a screen saver switch in the setting of the android system is started;
setting a default interval time as a preset delay time;
judging whether the timing time of the first timer is equal to a preset time delay time length, if so, acquiring a key trigger time stamp and an audio state time stamp when the android system meets screen saver display conditions, wherein the key trigger time stamp is a time stamp for recording the time length after the system is started when the last key is triggered, and the audio state time stamp is-1 when the android system plays audio and video and is a time stamp for stopping playing audio and video when the android system does not play audio and video;
controlling a screen saver display state based on a current time stamp of the android system, the key trigger time stamp and the audio state time stamp, wherein the current time stamp is a time stamp for recording the time length of the android system after the system is started;
the process for judging whether the android system meets the screen saver display conditions comprises the following steps:
judging whether the android system is dormant, if so, returning to the step of setting the default interval time as the preset delay time;
if not, judging whether the current desktop displays a screen saver, if so, returning to the step of setting the default interval time as the preset delay time;
if not, judging whether the current foreground application of the android system meets the display conditions, if not, returning to the step of setting the default interval time as the preset delay time, and if so, judging that the android system meets the screen saver display conditions;
the judging whether the current foreground application of the android system meets the display condition comprises the following steps:
acquiring a class name of a current foreground application of the android system;
judging whether the class name belongs to one of class names stored in a preset database, if so, judging that the current foreground application of the android system does not meet the display condition, and if not, judging that the current foreground application of the android system meets the display condition;
the controlling the screen saver display state based on the current timestamp, the key trigger timestamp and the audio state timestamp of the android system comprises:
when the value of the audio state time stamp is-1, returning to the step of setting a default time interval as a preset delay time length, and when the value of the audio state time stamp is a time stamp of a time length after the system is started when playing of the audio and video is stopped, acquiring the maximum values of the audio state time stamp and the key trigger time stamp as a first intermediate value;
judging whether the difference value between the current timestamp and the first intermediate value is larger than or equal to the preset delay time length, if so, sending a broadcast showing a screen saver to a desktop of the android system, returning to the step of setting the default interval time to the preset delay time length, if not, adjusting the preset delay time length according to a first preset formula, and returning to the step of judging whether the timing time of the first timer is equal to the preset delay time length;
the first preset formula includes: n=cd- (current_time-M), where N represents a value of a preset delay time after adjustment, CD represents the default time interval, current_time represents the current timestamp, and M represents the first intermediate value.
2. The method as recited in claim 1, further comprising:
and hiding a screen saver setting inlet when the android system does not meet the first preset condition.
3. A screen saver display system, characterized in that it is implemented based on an android system, said screen saver display system comprising:
the first judging module is used for starting a first timer when the android system meets a first preset condition; the first preset condition comprises that a server side is configured to start a screen saver and a screen saver switch in the setting of the android system is started;
the delay time length module is used for setting the default interval time as a preset delay time length;
the second judging module is used for judging whether the timing time of the first timer is equal to a preset delay time length, if so, acquiring a key trigger time stamp and an audio state time stamp when the android system meets screen saver display conditions, wherein the key trigger time stamp is a time stamp for recording the time length after the system is started when the latest case is triggered, and the audio state time stamp is-1 when the android system plays the audio and video and is a time stamp for stopping playing the audio and video when the android system does not play the audio and video; the process for judging whether the android system meets the screen saver display conditions comprises the following steps: judging whether the android system is dormant, if so, returning to the step of setting the default interval time as the preset delay time; if not, judging whether the current desktop displays a screen saver, if so, returning to the step of setting the default interval time as the preset delay time; if not, judging whether the current foreground application of the android system meets the display conditions, if not, returning to the step of setting the default interval time as the preset delay time, and if so, judging that the android system meets the screen saver display conditions; the judging whether the current foreground application of the android system meets the display condition comprises the following steps: acquiring a class name of a current foreground application of the android system; judging whether the class name belongs to one of class names stored in a preset database, if so, judging that the current foreground application of the android system does not meet the display condition, and if not, judging that the current foreground application of the android system meets the display condition;
the screen saver playing module is used for controlling the screen saver display state based on the current timestamp of the android system, the key trigger timestamp and the audio state timestamp, wherein the current timestamp is a timestamp for recording the time length of the android system after the system is started;
the screen saver playing module is specifically configured to return to the step of setting a default time interval to a preset delay time when the value of the audio state timestamp is-1, and acquire the maximum value of the audio state timestamp and the key trigger timestamp as a first intermediate value when the value of the audio state timestamp is a timestamp of a time length after the system is started when the audio state timestamp is a timestamp of a time length after the audio and video are stopped;
judging whether the difference value between the current timestamp and the first intermediate value is larger than or equal to the preset delay time length, if so, sending a broadcast showing a screen saver to a desktop of the android system, returning to the step of setting the default interval time to the preset delay time length, if not, adjusting the preset delay time length according to a first preset formula, and returning to the step of judging whether the timing time of the first timer is equal to the preset delay time length;
the first preset formula includes: n=cd- (current_time-M), where N represents a value of a preset delay time after adjustment, CD represents the default time interval, current_time represents the current timestamp, and M represents the first intermediate value.
4. A system according to claim 3, further comprising:
and the hiding setting module is used for hiding the screen saver setting inlet when the android system does not meet the first preset condition.
5. A screen saver display system, comprising: a memory and a processor; wherein the memory has stored therein program code, the processor is configured to invoke the program code, the program code when invoked implementing the screen saver display method of any one of claims 1-2.
6. A storage medium having stored therein program code which when executed implements the screen saver display method of any one of claims 1-2.
CN202110650156.4A 2021-06-10 2021-06-10 Screen saver display method and related device Active CN113377474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110650156.4A CN113377474B (en) 2021-06-10 2021-06-10 Screen saver display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110650156.4A CN113377474B (en) 2021-06-10 2021-06-10 Screen saver display method and related device

Publications (2)

Publication Number Publication Date
CN113377474A CN113377474A (en) 2021-09-10
CN113377474B true CN113377474B (en) 2023-06-13

Family

ID=77573826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110650156.4A Active CN113377474B (en) 2021-06-10 2021-06-10 Screen saver display method and related device

Country Status (1)

Country Link
CN (1) CN113377474B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484022A (en) * 2017-08-07 2017-12-15 四川长虹电器股份有限公司 The method that system overall situation screen protection is realized in Android intelligent television
CN111836115A (en) * 2020-07-02 2020-10-27 海信视像科技股份有限公司 Screen saver display method, screen saver skipping method and display device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402424A (en) * 2010-09-08 2012-04-04 鸿富锦精密工业(深圳)有限公司 Screen protection system and method
US20130277353A1 (en) * 2012-04-23 2013-10-24 Dacor, Inc. Android controlled oven
CN107608724A (en) * 2017-09-26 2018-01-19 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for managing application program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484022A (en) * 2017-08-07 2017-12-15 四川长虹电器股份有限公司 The method that system overall situation screen protection is realized in Android intelligent television
CN111836115A (en) * 2020-07-02 2020-10-27 海信视像科技股份有限公司 Screen saver display method, screen saver skipping method and display device

Also Published As

Publication number Publication date
CN113377474A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN108040292B (en) Television standby starting method, television and computer readable storage medium
CN105916010B (en) A kind of standby and awakening method and device of smart television
TWI536793B (en) Application programs starting system and method
WO2017036028A1 (en) Electronic device, method and device for awakening the same
CN103576834A (en) Power saving control method and electronic device supporting the same
US20170177406A1 (en) Methods for managing a service or application for a smart device and a smart device utilizing the same
CN106815065B (en) Background application awakening method and device and electronic equipment
JPH10234027A (en) Image pickup system, its method and storage medium
CN108419098B (en) Television control method and television
WO2014048326A1 (en) Display method and electronic device
CN112511902B (en) Display screen control method and device of OLED television terminal and OLED television terminal
CN112463237A (en) Screen burning prevention method, device, equipment and storage medium
WO2016179918A1 (en) Method for achieving application control and terminal
WO2016029717A1 (en) Set top box and power consumption reduction method therefor and computer storage medium
CN113377474B (en) Screen saver display method and related device
CN107484022B (en) Method for realizing system global screen saver on Android smart television
CN106598618B (en) Method and system for realizing shutdown advertisement based on android system
CN116324673A (en) Display device and device control method
CN109348295A (en) A method of solution android advertisement video, which opens, broadcasts preceding blank screen
CN108495175A (en) A kind of method and apparatus for controlling communication message when smart television interconnection external equipment
CN102044201B (en) Device and method for constant brightness display of mobile equipment screen
TWI407765B (en) Mobile device, power saving method and computer executable medium
CN116132740A (en) Energy saving method and device for video watching equipment, video watching equipment and readable storage medium
WO2022188475A1 (en) Dual-screen synchronous playback method for video file, and display device
CN114327714A (en) Application program control method, device, equipment and 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