CN107484022B - Method for realizing system global screen saver on Android smart television - Google Patents

Method for realizing system global screen saver on Android smart television Download PDF

Info

Publication number
CN107484022B
CN107484022B CN201710667726.4A CN201710667726A CN107484022B CN 107484022 B CN107484022 B CN 107484022B CN 201710667726 A CN201710667726 A CN 201710667726A CN 107484022 B CN107484022 B CN 107484022B
Authority
CN
China
Prior art keywords
screen saver
application
wakelock
needs
time
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
CN201710667726.4A
Other languages
Chinese (zh)
Other versions
CN107484022A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201710667726.4A priority Critical patent/CN107484022B/en
Publication of CN107484022A publication Critical patent/CN107484022A/en
Application granted granted Critical
Publication of CN107484022B publication Critical patent/CN107484022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4436Power management, e.g. shutting down unused components of the receiver

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method for realizing a system global screen saver on an Android smart television, which comprises the following steps: firstly, aiming at modification of an Android Wakelock mechanism, adding a function of starting and disappearing a global screen saver under the Wakelock mechanism; secondly, a screen saver timing mechanism is added; and thirdly, after the screen saver appears, setting a mechanism for disappearing the screen saver. The invention solves the problem of fusion of the television screen saver and the application scene, and comprehensively determines the appearing and disappearing processes of the screen saver through the application scene and the system state. The screen saver can reasonably appear and disappear in the television application scene, better user experience is provided, and a technical basis is also provided for screen saver operation.

Description

Method for realizing system global screen saver on Android smart television
Technical Field
The invention relates to a method for realizing a screen saver of a smart television, in particular to a method for realizing a system global screen saver on an Android smart television, and belongs to the technical field of smart televisions.
Background
The current Android smart television screen saver program only supports realization in individual scenes, such as a television no-signal state, and the starting and disappearance of the screen saver are realized by singly judging a television signal source interface or a system screen saver instruction through an Android system and then counting the user no-key operation time through the screen saver program to trigger the screen saver. The current screen saver technology cannot be associated with an actual application scene, cannot enable an application to actively set the state of the screen saver to determine the starting and the disappearance of the screen saver, cannot realize the fusion with the current audio and video state of a system, and cannot comprehensively realize a trigger mechanism of the screen saver. This results in a screen saver application scenario with significant limitations. Effective operation of the screen saver cannot be realized, and better user experience cannot be provided for the user.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method capable of realizing a screen saver function in all application scenes of a smart television.
In order to specifically explain the technical scheme of the invention, an introduction needs to be made to the wakelock mechanism of the Android system.
wakelock is a mechanism of a lock, and it can be understood that as long as someone holds the lock, the system cannot go to sleep, and the lock can be acquired by a user mode program and a kernel. The lock may or may not be timed out and the timed out lock will automatically unlock after the time has elapsed. If not, or times out, the kernel may initiate a hibernate mechanism to go to hibernation. PowerManage provides wakelock related interfaces to operate wakelock locks, such as the newWakelock () method to create wakelock locks, acquire () and release () methods to apply for and release locks. As long as there is an application holding the lock, the system cannot enter the sleep state, and different applications on the upper layers can hold a number of different wakelock locks to inform the system of the currently desired system state.
Aiming at function definition and requirements of the global screen saver, the function of the global screen saver on the Android smart television of the system is realized by fusing and customizing the wakelock mechanism of the Android and the current state of the system by adopting the following technical scheme.
The invention is realized in such a way that:
a method for realizing a system global screen saver on an Android smart television comprises the following steps:
firstly, aiming at modification of an Android Wakelock mechanism, adding a function of starting and disappearing a global screen saver under the Wakelock mechanism;
secondly, a screen saver timing mechanism is added;
and thirdly, after the screen saver appears, setting a mechanism for disappearing the screen saver.
The further scheme is as follows:
aiming at modification of an Android Wakelock mechanism, the method specifically comprises the following steps:
judging the states of mProximityPopositive, mUserActivitySummary, mDockState and mWakeLockSummary to ensure that the states do not conflict with the system sleep function; that is, the wakelock mechanism can support both the system sleep function and the global screen saver function, and the standby function and the screen saver function need to be combined to achieve the purpose of saving energy.
The further scheme is as follows:
the method for adding the screen saver timing mechanism specifically comprises the following steps:
the screen saver mechanism not only counts the time of no operation of a user, but also needs to integrate the statistics of the system message pushing events; the time of occurrence of the screensaver is preset by application;
starting the screen saver timing after the system successfully initializes the PowerManager module, and if an input event, a system level message box event, an audio/video pushing event and an application refreshing event occur, notifying a screen saver timing mechanism to restart timing through a userActivity interface so as to ensure that the occurrence of the screen saver does not influence the current use of a user; timing again immediately after the screen saver disappears; when the set screen saver time is reached, comprehensive judgment is needed to be carried out on comprehensive application and system states; the application notifies a system framework layer of the state of the expected screen saver through an acquire () method and a release () method of a PowerManager according to an actual application scene through a customized Wakelock mechanism; after the system framework layer obtains the expected state of the application through the wakelock lock, recording the state through an mWakelockSummary variable; when a screen saver timing mechanism informs a system that screen saver time is met, the system firstly needs to judge the recorded wakelock state set by an application, if mWakelockSummary is FULL _ WAKE _ LOCK, the current application does not want the screen saver to appear, and then the screen saver needs to be blocked and timed again after the screen saver time is met; if the system does not record the wakelock state, the application hopes that the screen saver appears, the system needs to further judge whether the current television is playing videos or audios through a television video and audio playing interface, and if the current television is playing, the system needs to prevent the screen saver from appearing and count the time again; if the screen saver is not played, the system is required to start the screen saver, and a system TV interface is required to be called before the screen saver is started, so that the time for converting the screen saver application into a standby time under the condition that no operation and no message input exist under the screen saver is transmitted.
The further scheme is as follows:
the mechanism for setting the disappearance of the screen saver specifically comprises:
when a system input event is received, quitting the screen saver and executing a corresponding function;
when the system receives the push event of the video, the picture and the audio, the screen saver needs to be quitted;
when the duration of the screen saver reaches the preset time of the system, the standby interface needs to be called to enable the television to enter the standby state from the energy-saving perspective.
The further scheme is as follows:
the system input event comprises: menu keys, home keys, mouse events, keyboard events.
The invention provides a method for realizing a system global screen saver on an intelligent television, which is a screen saver capable of being displayed in all application scenes of the television. Under the condition that the Android screen locking process is not influenced, each application scene of the television interacts with an Android system framework layer through a WAKELOCK mechanism, an expected screen protection state is set for the system, and the Android system framework layer comprehensively judges the current system audio and video playing state and the Wakelock lock set by the application to realize timely appearance and disappearance of the screen protection in different application scenes. The triggering and disappearance of the screensaver are determined reasonably by the application and the system together, so that the problem that the traditional screensaver triggering mechanism is single and not flexible enough is solved.
The invention solves the problem of fusion of the television screen saver and the application scene, and comprehensively determines the appearing and disappearing processes of the screen saver through the application scene and the system state. The screen saver can reasonably appear and disappear in the television application scene, better user experience is provided, and a technical basis is also provided for screen saver operation.
Drawings
FIG. 1 is a logical determination of the system for screen saver activation and deactivation;
FIG. 2 is a schematic diagram of a specific implementation flow of the system starting and exiting the screensaver.
Detailed Description
The invention will be further described with reference to the accompanying drawings.
The invention discloses a method for realizing a system global screen saver on an Android smart television, which comprises the following steps:
firstly, the Android Wakelock mechanism is customized and modified, the Android native Wakelock mechanism is bound with a system sleep mode, and therefore the function of starting and disappearing a global screen saver needs to be added under the Wakelock mechanism. The states of mProximatyPopositive, mUserActivitySummary, mDockState, mWakeLockSummary and the like are judged to ensure that the system does not conflict with the sleep function of the system. That is, the wakelock mechanism can support both the system sleep function and the global screen saver function, and the standby function and the screen saver function need to be combined to achieve the purpose of saving energy.
Then, a screen saver timing mechanism needs to be added, and the new screen saver timing mechanism not only counts the time of no operation of a user, but also integrates the statistics of the system message pushing events. The time of appearance of the screensaver needs to be preset by the application. The method comprises the steps that after a PowerManager module is successfully initialized by a system, screen saver timing is started, if an input event, a system level message box event, an audio and video push event, application refreshing and other events occur, a screen saver timing mechanism needs to be notified through a user activity interface to restart timing, and therefore the condition that the current use of a user is not influenced by the occurrence of the screen saver is ensured. The screen saver needs to be re-timed immediately after disappearing. And when the set screensaver time is reached, comprehensive judgment is needed to be carried out on comprehensive application and system states. And the application informs the system framework layer of the state of the expected screen saver through an acquire () method and a release () method of a PowerManager according to an actual application scene through a customized Wakelock mechanism. After the system framework layer acquires the expected state of the application through the wakelock lock, the state is recorded through an mWakelockSummary variable. When the screen saver timing mechanism informs the system that the screen saver time is met, the system firstly needs to judge the recorded wakelock state set by the application, if mWakelockSummary is FULL _ WAKE _ LOCK, the current application does not want the screen saver to appear, and then the user needs to block the screen saver from appearing and count the next time after the screen saver time is met. If the system does not record the wakelock state, it indicates that the application wishes to have the screen saver present, the system needs to further determine whether the current television is playing video or audio through the television video and audio playing interface, and if so, the system needs to prevent the screen saver from appearing and count again for the next time. If the screen saver is not played, the system is required to start the screen saver, and a system TV interface is required to be called before the screen saver is started, so that the time for converting the screen saver application into a standby time under the condition that no operation and no message input exist under the screen saver is transmitted.
And finally, if the screen saver appears, the system needs to disappear through the following modes, and when system input events such as a menu key, a homepage key, a mouse event, a keyboard event and the like are received, the system quits the screen saver and executes corresponding functions. The screen saver also needs to be exited when the system receives a push event of video, pictures and audio. When the duration of the screen saver reaches the preset time of the system, the standby interface needs to be called to enable the television to enter the standby state from the energy-saving perspective.
As shown in FIG. 2, a more specific embodiment of the present invention is:
1. the screen saver timing module reads the screen saver time set by the user through the application during initialization, and specifically, the application sets the screen saver time to Powermanager through the ch _ screensaver _ time variable. And then, after receiving a message that the system PowerManager is started successfully, timing, and if an input event, message pushing and other occasions occur, timing again.
2. The application determines whether the screensaver is required to appear through judging the scene, and calls an Acquire () method of the PowerManager to hold a FULL _ WAKE _ LOCK LOCK without the screensaver appearing. If the FULL _ WAKE _ LOCK LOCK is held, then when the scene needs a screensaver to appear, a release () method needs to be called to release the FULL _ WAKE _ LOCK LOCK. This completes the application reporting to the system the current state of the screen saver desired by itself.
3. If the PowerManager reads that the current screen saver time is met, calling an updatedreamLocked method to start a judging process of whether the screen saver appears, as shown in the attached drawing 1, firstly judging whether a wakelock lock of an application scene expects the screen saver to appear, if so, further calling iscignalsable () and isMusicActive () interfaces to judge whether the current system plays audio and video, and if not, playing the audio and video. The interface of the DreamService is called to start the screen saver application, and simultaneously the system TV interface is called to set the time for converting the screen saver into the standby time.
4. Before the screen saver is started, the system judges the most appeared time of the screen saver transmitted by the current signal source to the screen saver application through the getCurInputSource, for example, the maximum duration lasts 15 minutes under ATV and 30 seconds under VGA. And when the duration time of the screen saver reaches the time set by the system, the screen saver calls the shutdown interface to enable the whole machine to enter a standby state.
5. The method comprises the steps that the screen saver state is currently in, if an input event occurs, a Powermanager screen saver disappearing interface needs to be called at an interface of a phonewowmanager intercepting key, and if an information pushing event occurs, a screen saver disappearing interface is called at an interface of a phonewmanager intercepting information. And ensuring that the user and the system can normally remove the screen saver. And after the screen saver is released, continuing the timing of the next screen saver trigger by calling the updatepowerstateLockedd interface.
Although the present invention has been described herein with reference to the illustrated embodiments thereof, which are intended to be preferred embodiments of the present invention, it is to be understood that the invention is not limited thereto, and that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure.

Claims (3)

1. A method for realizing a system global screen saver on an Android smart television is characterized by comprising the following steps:
firstly, aiming at modification of an Android Wakelock mechanism, adding a function of starting and disappearing a global screen saver under the Wakelock mechanism; aiming at modification of an Android Wakelock mechanism, the method specifically comprises the following steps:
judging the states of mProximityPopositive, mUserActivitySummary, mDockState and mWakeLockSummary to ensure that the states do not conflict with the system sleep function; namely, the wakelock mechanism can simultaneously support the system sleep and the global screen saver function, and the standby function and the screen saver are combined to achieve the purpose of energy saving;
secondly, a screen saver timing mechanism is added; the method for adding the screen saver timing mechanism specifically comprises the following steps:
the screen saver mechanism not only counts the time of no operation of a user, but also needs to integrate the statistics of the system message pushing events; the time of occurrence of the screensaver is preset by application;
starting the screen saver timing after the system successfully initializes the PowerManager module, and if an input event, a system level message box event, an audio/video pushing event and an application refreshing event occur, notifying a screen saver timing mechanism to restart timing through a userActivity interface so as to ensure that the occurrence of the screen saver does not influence the current use of a user; timing again immediately after the screen saver disappears; when the set screen saver time is reached, comprehensive judgment is needed to be carried out on comprehensive application and system states; the application notifies a system framework layer of the state of the expected screen saver through an acquire () method and a release () method of a PowerManager according to an actual application scene through a customized Wakelock mechanism; after the system framework layer obtains the expected state of the application through the wakelock lock, recording the state through an mWakelockSummary variable; when a screen saver timing mechanism informs a system that screen saver time is met, the system firstly needs to judge the recorded wakelock state set by an application, if mWakelockSummary is FULL _ WAKE _ LOCK, the current application does not want the screen saver to appear, and then the screen saver needs to be blocked and timed again after the screen saver time is met; if the system does not record the wakelock state, the application hopes that the screen saver appears, the system needs to further judge whether the current television is playing videos or audios through a television video and audio playing interface, and if the current television is playing, the system needs to prevent the screen saver from appearing and count the time again; if the screen saver is not played, the system is required to start the screen saver, a system TV interface is required to be called before the screen saver is started, and the standby time is transmitted to the screen saver application under the condition that no operation and no message input exist;
and thirdly, after the screen saver appears, setting a mechanism for disappearing the screen saver.
2. The method for realizing the system global screen saver on the Android smart television set according to claim 1, characterized by comprising the following steps:
the mechanism for setting the disappearance of the screen saver specifically comprises:
when a system input event is received, quitting the screen saver and executing a corresponding function;
when the system receives the push event of the video, the picture and the audio, the screen saver needs to be quitted;
when the duration of the screen saver reaches the preset time of the system, the standby interface needs to be called to enable the television to enter the standby state from the energy-saving perspective.
3. The method for realizing the system global screen saver on the Android smart television set as claimed in claim 2, wherein: the system input event comprises: menu keys, home keys, mouse events, keyboard events.
CN201710667726.4A 2017-08-07 2017-08-07 Method for realizing system global screen saver on Android smart television Active CN107484022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710667726.4A CN107484022B (en) 2017-08-07 2017-08-07 Method for realizing system global screen saver on Android smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710667726.4A CN107484022B (en) 2017-08-07 2017-08-07 Method for realizing system global screen saver on Android smart television

Publications (2)

Publication Number Publication Date
CN107484022A CN107484022A (en) 2017-12-15
CN107484022B true CN107484022B (en) 2020-06-30

Family

ID=60598818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710667726.4A Active CN107484022B (en) 2017-08-07 2017-08-07 Method for realizing system global screen saver on Android smart television

Country Status (1)

Country Link
CN (1) CN107484022B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463267B (en) * 2019-09-06 2023-04-14 海信视像科技股份有限公司 Method for presenting screen saver information on display device screen and display device
CN113157364A (en) * 2021-03-25 2021-07-23 广州文石信息科技有限公司 Screen protection display method and device
CN113377474B (en) * 2021-06-10 2023-06-13 湖南快乐阳光互动娱乐传媒有限公司 Screen saver display method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517862A (en) * 2003-01-15 2004-08-04 Lg电子株式会社 Method for providing prealarm for screen protection and display equipment
CN1547391A (en) * 2003-12-02 2004-11-17 深圳创维-Rgb电子有限公司 Method of intelligent prompt for television set
CN102402424A (en) * 2010-09-08 2012-04-04 鸿富锦精密工业(深圳)有限公司 Screen protection system and method
CN102968174A (en) * 2012-11-06 2013-03-13 珠海全志科技股份有限公司 Deep sleep awakening method of android device
CN106713982A (en) * 2016-12-23 2017-05-24 Tcl集团股份有限公司 Screen protection method and system of smart television

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105474125B (en) * 2013-09-27 2019-01-01 英特尔公司 For tracking the technology for waking up locking and using

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517862A (en) * 2003-01-15 2004-08-04 Lg电子株式会社 Method for providing prealarm for screen protection and display equipment
CN1547391A (en) * 2003-12-02 2004-11-17 深圳创维-Rgb电子有限公司 Method of intelligent prompt for television set
CN102402424A (en) * 2010-09-08 2012-04-04 鸿富锦精密工业(深圳)有限公司 Screen protection system and method
CN102968174A (en) * 2012-11-06 2013-03-13 珠海全志科技股份有限公司 Deep sleep awakening method of android device
CN106713982A (en) * 2016-12-23 2017-05-24 Tcl集团股份有限公司 Screen protection method and system of smart television

Also Published As

Publication number Publication date
CN107484022A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN105916010B (en) A kind of standby and awakening method and device of smart television
CN107484022B (en) Method for realizing system global screen saver on Android smart television
CN111510781A (en) Display device standby control method and display device
CN106686257B (en) A kind of control method of mobile terminal, device and mobile terminal
US9015777B2 (en) System and method for dynamic bandwidth allocation
US20170142326A1 (en) Image capture method and apparatus
CN111683279B (en) Display apparatus and image restoration method
CN108040292B (en) Television standby starting method, television and computer readable storage medium
CN105872768A (en) Display terminal information source switching method and device
CN104052909A (en) Shooting method and device
CN106921892B (en) Online video playing method and device
US20120105721A1 (en) Electronic device and method for automatically controlling operation of the electronic device
CN107105346A (en) A kind of intelligent television standby control method and system
WO2014177070A1 (en) Iptv system, mobile terminal and method for realizing reminding viewing live telecast
CN114302238B (en) Display method and display device for prompt information in sound box mode
WO2016029717A1 (en) Set top box and power consumption reduction method therefor and computer storage medium
CN103024513B (en) A kind of method of Digital Television fast channel switching
WO2016086663A1 (en) Method and apparatus for switching applications, and intelligent set top box device
CN103503379A (en) Media rendering device providing uninterrupted playback of content
CN115097926A (en) Screen projection method, device, equipment, system and storage medium
CN104066011A (en) Control method of interface switching of intelligent TV and control device thereof
CN109005455B (en) Video data processing method and device
CN105592361A (en) Set top box background program cleaning method, device and system
CN109145273A (en) A kind of annotation following display method, device, equipment and storage medium
CN109348295A (en) A method of solution android advertisement video, which opens, broadcasts preceding blank screen

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