CN108829229B - Screen control method and device, storage medium and intelligent terminal - Google Patents

Screen control method and device, storage medium and intelligent terminal Download PDF

Info

Publication number
CN108829229B
CN108829229B CN201810614023.XA CN201810614023A CN108829229B CN 108829229 B CN108829229 B CN 108829229B CN 201810614023 A CN201810614023 A CN 201810614023A CN 108829229 B CN108829229 B CN 108829229B
Authority
CN
China
Prior art keywords
screen
application program
state
interface
information
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
CN201810614023.XA
Other languages
Chinese (zh)
Other versions
CN108829229A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810614023.XA priority Critical patent/CN108829229B/en
Publication of CN108829229A publication Critical patent/CN108829229A/en
Application granted granted Critical
Publication of CN108829229B publication Critical patent/CN108829229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Abstract

The embodiment of the application discloses a screen control method and device, a storage medium and an intelligent terminal. The method comprises the following steps: acquiring mark information of a power supply lock held by an application program corresponding to a current display interface; judging whether the application program has the requirement of continuous screen lightening according to the mark information; and when the requirement is met, matching a screen control strategy based on the current screen state information, and controlling the screen state according to the screen control strategy. By adopting the technical scheme, when the currently displayed application program has the power supply lock, if the current display screen state information meets the preset screen-off control strategy, the display screen can be automatically controlled to be turned off even if the currently displayed application program has the power supply lock, the problem that the display screen is always in a lighting state because the power supply lock is not released by the application program is solved, and the effects of reducing the power consumption of the terminal and prolonging the endurance time are realized.

Description

Screen control method and device, storage medium and intelligent terminal
Technical Field
The embodiment of the application relates to a terminal energy saving technology, in particular to a screen control method, a screen control device, a storage medium and an intelligent terminal.
Background
For terminals that rely on electrical power to operate, the power supply is a very important component. Under the condition that the electric energy provided by the power supply of the terminal is certain, the endurance time (namely the time length for which the terminal can work) of the terminal is related to the power consumption of the terminal, and the smaller the power consumption is, the longer the endurance time is, and conversely, the larger the power consumption is, the shorter the endurance time is.
In general, a management scheme for managing screens is provided in a terminal. Taking an Android (Android) terminal as an example, the Android terminal controls a power supply through a power lock. As long as an application holds a power lock, the end system cannot enter the sleep phase. At present, more and more third party applications are installed in a terminal, and some applications possibly have power locks which are not released due to defects of the applications, namely, after a certain application has a lock which keeps a bright screen when an interface of the application is displayed, and the application does not actively release the lock which keeps the bright screen after the screen is locked and the terminal is turned off, so that the screen of the terminal is always in a bright screen state after being turned on next time, the power consumption of the terminal is increased, and the endurance time is reduced.
Disclosure of Invention
The embodiment of the application provides a screen control method, a screen control device, a storage medium and an intelligent terminal, which can optimize a screen management scheme in the related technology, thereby reducing the power consumption of the terminal.
In a first aspect, an embodiment of the present application provides a screen control method, including:
acquiring mark information of a power supply lock held by an application program corresponding to a current display interface;
judging whether the application program has the requirement of continuous screen lightening according to the mark information;
and when the requirement is met, matching a screen control strategy based on the current screen state information, and controlling the screen state according to the screen control strategy.
In a second aspect, an embodiment of the present application further provides a screen control device, where the screen control device includes:
the information acquisition module is used for acquiring the mark information of the power supply lock held by the application program corresponding to the current display interface;
the requirement judging module is used for judging whether the application program has the requirement of continuous screen lightening according to the mark information;
and the screen control module is used for matching a screen control strategy based on the current screen state information when the requirement is met, and controlling the screen state according to the screen control strategy.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the screen control method according to the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an intelligent terminal, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the screen control method according to the embodiment of the present application.
The embodiment of the application provides a screen control scheme, and mark information of a power supply lock held by an application program corresponding to a current display interface is acquired; judging whether the application program has the requirement of continuous screen lightening according to the mark information; when the requirement exists, the screen control strategy is matched based on the current screen state information, and the screen state is controlled according to the screen control strategy. By adopting the technical scheme, when the currently displayed application program has the power supply lock, if the current display screen state information meets the preset screen-off control strategy, the display screen can be automatically controlled to be turned off even if the currently displayed application program has the power supply lock, the problem that the display screen is always in a lighting state because the power supply lock is not released by the application program is solved, and the effects of reducing the power consumption of the terminal and prolonging the endurance time are realized.
Drawings
Fig. 1 is a flowchart of a screen control method according to an embodiment of the present application;
FIG. 2 is a flowchart of another screen control method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a screen control device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present application;
fig. 5 is a block diagram of a smart phone according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
It should be noted that in the Android system, if it is detected that the user presses the power key in the screen-on state, the screen-locking operation is executed and the display screen is controlled to be turned off; if the user is detected to press the power key again, a screen locking interface appears, and if an event of successful unlocking is not detected within about 10 seconds after the screen locking interface appears, the screen is automatically turned off. However, in the process of implementing the present invention, the inventor finds that if there is an application program that does not release the screen lock at this time, after detecting that the user presses the power key again to generate the screen lock interface, the display screen is lighted up, and then the screen lock interface is kept in the bright screen state all the time without automatically turning off the screen. In other words, the Android system display mechanism includes that the window control module performs window layout refreshing when the window is turned on after the screen is locked, in this process, if it is detected that the application program corresponding to the current display interface has the power lock, a last frame of picture displayed by the application program before the screen is locked and a screen locking interface are displayed after the window layout refreshing, and at this time, the application program has the power lock, so that the intelligent terminal is always in a screen turning-on state (the last frame of picture can be displayed) and cannot be automatically turned off after the set time is set according to default settings of the system.
In order to solve the technical problem, the application provides a screen control scheme, which can solve the technical problem that the display screen is always lightened due to the abnormal condition that the power lock is not released by an application program, and reduce the power consumption of the intelligent terminal.
Fig. 1 is a flowchart of a screen control method provided in an embodiment of the present application, where the method may be performed by a screen control device, where the device may be implemented by software and/or hardware, and may be generally integrated in an intelligent terminal. As shown in fig. 1, the method includes:
and step 110, acquiring the mark information of the power supply lock held by the application program corresponding to the current display interface.
It should be noted that the intelligent terminal in the embodiment of the present application may include a mobile phone, a tablet computer, a notebook computer, a handheld game console, an intelligent household appliance, and other terminal devices. The terminal is loaded with an operating system. The operating system may be Android, iOS, BlackBerry OS, windows mobile, or the like.
The current display interface may refer to a last frame of picture displayed within a coordinate range of the display screen before the screen of the intelligent terminal is locked, that is, when the frame of picture is displayed, the system performs the operation of locking the screen and turning off the screen. The screen locking mode of the intelligent terminal is various, and the embodiment of the application is not particularly limited. If the power key is detected to be pressed, screen locking operation is executed; and if the screen locking gesture is detected, executing screen locking operation, and if the screen locking gesture is not successfully unlocked within the set time, executing screen locking operation and the like.
At least one Activity window (hereinafter, Activity) is laid out in the display screen, one application corresponds to one Activity, and an application interface is displayed through the Activity. It should be noted that the current display interface refers to a visible application interface. For the intelligent terminal, when window layout refreshing is performed, an application program operated in a foreground and an application interface drawn by an application program operated in a historical mode are obtained. For the application program running in the foreground, the application interface is a visible application interface. It is to be understood that the visible application interfaces are not limited to one, and may be 2 or more. If the screen is split, at least 2 visible application interfaces are available.
For ease of understanding, the following description will be made taking an Android (Android) operating system as an example.
In the Android system, the active window is called Activity. Activity is a component responsible for interacting with a user that provides a screen (which may be understood as a screen interface, rather than a display screen of an entity) for the user to interact to accomplish a task. In an android application, an Activity is usually a separate screen on which controls can be displayed and events of the user can be monitored and processed. In managing Activity, there are two concepts: task Stack and Stack. The Task corresponds to an application program, the Task is used for storing activities, one Task can store one or more activities, and the activities follow the principle of first-in first-out and last-in first-out. And the Stack is used for managing the Task, generally, one Stack manages the Task to which each Activity required to be shown by one screen belongs, and one Stack can manage one or more tasks, and of course, the Stack also follows the basic management principle of the Stack. The screens described herein are not necessarily complete independent display screens, and in the case of "two screens", the two screens may be only two areas of a complete display screen that independently display respective display contents, and different application interfaces are displayed in the respective areas. Of course, if the terminal has two or even more separate display screens, the "two screens" may also be two separate display screens.
In some embodiments, the power lock includes a screen lock for maintaining the display screen in a bright state after locking the screen. Correspondingly, the flag information of the power lock may be information for identifying whether the application has a requirement of continuously brightening the screen, for example, the value of the power lock may be used as the flag information of the power lock, or may be an identification bit, the identification bit of the power lock may be set for a certain application by using a getWindow (). setFlags (int masks), and the application having the identification bit may be considered to have the requirement of continuously brightening the screen.
For example, in the Android system, if it is detected that the display screen is lit, a window layout refresh operation is performed by a window management module (WindowManager). When detecting a window layout refreshing operation, the system acquires a target interface in a survival state and respectively judges whether the target interface is displayed in a current display screen; if yes, further judging whether the application program corresponding to the target interface has a power lock. It should be noted that the target interface in the alive state includes an application interface drawn by an application program running in the foreground and an application program running in the history. In the Android system, the application interfaces corresponding to the historically run application programs are destroyed after the application interfaces survive for a period of time in the background, so that when the system acquires all the application interfaces, the application interfaces of the application programs displayed on the current foreground and the application interfaces of the historically run application programs are acquired. The method has the advantages that whether the target interface is the currently displayed application interface or not is judged quickly, if not, whether the target interface is provided with the power lock or not is not judged, the target interface is directly defaulted to be not provided with the power lock, objects needing to be subjected to power lock holding state judgment are reduced, and system execution efficiency is improved.
Optionally, when it is determined that the application program displayed in the current display screen has the power lock, the flag information of the power lock may be written into the window information corresponding to the current display interface. For example, the following function getWindow (). addFlags (windowmanager, layoutparams, flag _ KEEP _ SCREEN _ O N) is used to add the flag information to the window information corresponding to the current display interface. Therefore, the system can read the identification information of the power supply lock held by the application program corresponding to the current display interface from the window information of the Windows manager. It can be understood that, there are many ways to obtain the flag information of the power lock held by the application program corresponding to the current display interface, and the method is not limited to the above-mentioned ways. For example, the flag information of the power lock held by the application program may also be stored in the form of a white list.
And step 120, judging whether the application program has the requirement of continuous screen lightening according to the mark information.
It should be noted that the application program may be an application program corresponding to an application interface displayed within a coordinate range of a display screen before the screen locking of the intelligent terminal.
For example, if the system learns that the attribute information of an application includes FLAG information FLAG _ KEEP _ SCREEN _ ON, it is determined that the application has a continuous SCREEN-ON requirement. However, such a requirement may be a real requirement of an application, such as playing a video scene; it may not be the real requirement of the application, that is, the display screen is always in the on state after being turned on again, and the screen is not automatically turned off, because the application does not actively release the screen lock keeping the screen on after locking the screen.
It is understood that there are many ways to determine whether the application has a continuous bright screen requirement based on the identification information, and the embodiment of the present application is not particularly limited. For example, the determination may be performed by obtaining an attribute of a preset object android: keepsreenon in xml, and if android: keepsreenon is "true", it is determined that the application program has a requirement of continuously lighting.
And step 130, when the requirement exists, matching a screen control strategy based on the current screen state information, and controlling the screen state according to the screen control strategy.
It should be noted that the requirement here is a requirement for continuously lighting an application program displayed on the display screen before locking the screen.
Optionally, the screen state information includes a screen locking state, a screen locking interface hiding state, and the like. There are many ways for the system to obtain the screen status, and the embodiment of the present application is not particularly limited. For example, the screen status may be acquired through a setting interface. As another example, the lighting or extinguishing of the display screen is determined by listening to the broadcast.
Optionally, the screen control strategy includes controlling the screen to automatically turn off after a set time period, or controlling the screen to keep on. The matching relation between the screen state information and the screen control strategy comprises the following steps: when the intelligent terminal is in a screen locking state and a screen locking interface is in a display state and is not hidden, determining that a screen control strategy is to control the screen to automatically extinguish after a set time length. The screen locking interface is in a display state, and the screen locking interface is determined not to be hidden if the time for the screen locking interface to be in the display state exceeds a set time threshold. It should be noted that the set time threshold is greater than the set time (for example, the set time is the time required for the system control screen to automatically turn off the screen after the set time). Or if the intelligent terminal is not in the screen locking state, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface. Or if the intelligent terminal is in the screen locking state and the screen locking interface is in the hidden state, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface.
For example, if the application has a requirement of continuously lighting the screen, the current screen state information is acquired. And matching a corresponding screen control strategy according to the screen state information.
For example, if the intelligent terminal is judged to be in the screen locking state according to the screen state information, whether the screen locking interface is hidden is further judged. If the screen locking interface is not hidden (i.e. in a display state), the screen control strategy is determined to be that the control screen is automatically extinguished after a set time length. The set time length may be a default time of the system, or may be set by a user according to actual needs.
And if the intelligent terminal is judged not to be in the screen locking state according to the screen state information, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface. The setting information comprises controlling the display screen to be always in a bright screen state if the power supply lock is held by the application program. And if the application program does not have a power supply lock, controlling the display screen to automatically turn off after the set time.
And if the intelligent terminal is judged to be in the screen locking state according to the screen state information and the screen locking interface is further judged to be hidden, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface. The setting information comprises controlling the display screen to be always in a bright screen state if the power supply lock is held by the application program. And if the application program does not have a power supply lock, controlling the display screen to automatically turn off after the set time.
Correspondingly, the control of the screen state according to the screen control strategy comprises the following steps: if the screen control strategy is to control the screen to automatically extinguish after the set time length, the screen control strategy is executed to realize that the display screen automatically extinguishes after the set time length. If the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface, the power supply lock is held by the application program, so that the screen control strategy is executed to realize that the display screen is always in the bright screen state.
According to the technical scheme of the embodiment, the mark information of the power supply lock held by the application program corresponding to the current display interface is acquired; judging whether the application program has the requirement of continuous screen lightening according to the mark information; when the requirement exists, the screen control strategy is matched based on the current screen state information, and the screen state is controlled according to the screen control strategy. When the currently displayed application program holds the power supply lock, if the current display screen state information meets a preset screen-off control strategy, even if the currently displayed application program holds the power supply lock, the screen is forcibly controlled to be turned off, the problem that the screen is always in a lighting state because the power supply lock is not released after the screen is turned off by the application program is solved, and the effects of reducing the power consumption of the terminal and prolonging the endurance time are achieved.
Fig. 2 is a flowchart of another screen control method provided in an embodiment of the present application, and as shown in fig. 2, the method includes:
step 201, when the screen is in the lighting state, executing the window layout refreshing operation.
Illustratively, after locking the screen, the system listens for bright screen broadcasts. When the bright screen broadcast is detected, window layout refreshing operation is carried out, the last frame of picture of the application program which is being displayed before the screen locking and the screen locking interface are displayed, and unlocking operation carried out by a user on the screen locking interface is monitored. It should be noted that, in some scenarios, if an incoming call is detected while displaying the lock screen interface, the lock screen interface may be hidden when an answering instruction input by the user is detected, that is, the call is answered without unlocking.
Step 202, determining whether the currently alive target interface is displayed in the current display screen, if so, executing step 203, otherwise, executing step 210.
Optionally, a target interface in a live state is obtained, and whether the target interface is displayed in a current display screen is determined.
It should be noted that the survival state of the application interface is a concept opposite to the destruction state. Since the application program draws and displays the application interface during running, the displayed application interface is destroyed after a preset time, and the application interface is still in a survival state even if the application interface is invisible before the application interface is destroyed.
For example, in the process of determining whether the screen needs to be kept bright through the window management module, the target interface in the live state is acquired, and whether the target interface is the current display interface displayed in the current display screen may be determined according to a timestamp drawn by the target interface. Before the screen is locked, the application interface displayed on the display screen is newly drawn, and after the power key is detected to be pressed, the screen is extinguished and the screen is locked. And if the power key is detected to be pressed again, lightening the screen, and displaying the frame of application interface displayed in the application program before the screen locking and the screen locking interface after lightening the screen if the application program displayed before the screen locking holds the screen lock.
Or acquiring the application interface currently displayed on the display screen in a screenshot mode. And matching the application interface with a target interface, and if the similarity is greater than a preset threshold, determining that the target application interface is displayed in the current display screen.
Step 203, determining whether the application program corresponding to the target application interface has a power lock, if so, executing step 204, otherwise, executing step 210.
And judging whether the application program corresponding to the target application interface has the FLAG information FLAG _ KEEP _ SCREEN _ ON for keeping the SCREEN ON, if so, executing the step 204.
And 204, writing the mark information of the power supply lock into the window information corresponding to the current display interface.
And when the application program holds the power lock, writing FLAG information FLAG _ KEEP _ SCREEN _ ON into the Stack corresponding to the application program. And if the android system window management module is on screen after screen locking, refreshing the window layout. If the system judges that the application program corresponding to the current display interface has a mark flag keeping the bright screen, the mark information is recorded in the window information of the interface.
And step 205, acquiring the mark information of the power supply lock held by the application program corresponding to the current display interface.
And step 206, judging whether the application program has the requirement of continuous screen lightening according to the mark information, if so, executing step 207, otherwise, executing step 210.
And step 207, acquiring the current screen state information.
And 208, judging whether the intelligent terminal is in a screen locking state or not according to the screen state information, if so, executing a step 209, and otherwise, executing a step 212.
Step 209, determining whether the screen locking interface is in a display state, if so, executing step 210, otherwise, executing step 212.
For example, whether the screen locking interface is hidden can be judged according to the screen state information. Optionally, the target image may be obtained by capturing a screen, and the target image is matched with the screen locking interface. And if the similarity is greater than a preset threshold value, determining that the screen locking interface is in a display state.
And step 210, controlling the display screen to automatically extinguish after the set time length.
And step 211, releasing the power lock held by the application program corresponding to the current display interface.
In a scenario where an application program having a power lock exists, the power lock held by the application program is released even when the brake is turned off after the forced display screen has been set for a predetermined period of time.
And step 212, controlling the screen state according to the setting information of the application program corresponding to the current display interface.
Illustratively, when the intelligent terminal is not in a screen locking state, if the application program corresponding to the current display interface has the power lock, the display screen is controlled to be lightened until the application program exits to release the power lock. And if the application program corresponding to the current display interface does not have the power supply lock, controlling the display screen to automatically extinguish after the set time length. Similarly, when the intelligent terminal is in the screen locking state and the screen locking interface is in the hidden state, if the application program corresponding to the current display interface holds the power supply lock, the display screen is controlled to be lightened until the application program is quitted to release the power supply lock. And if the application program corresponding to the current display interface does not have the power supply lock, controlling the display screen to automatically extinguish after the set time length.
According to the technical scheme of the embodiment, when the window layout is refreshed, whether the application program displayed in the current display screen has the power lock is judged; and if so, writing the mark information of the power supply lock into the window information corresponding to the current display interface, thereby conveniently acquiring whether the application program corresponding to the current display interface holds the power supply lock. When the power supply lock is held by the application program, if the situation that the intelligent terminal is in the screen locking state and the screen locking interface is not hidden is detected, the display screen is controlled to be automatically turned off after the set time, and the power supply lock held by the application program is released, so that the problem that the display screen is not turned off all the time after the screen is turned on due to the fact that the power supply lock is not released after the screen is turned off by the application program can be avoided, and the power consumption of the intelligent terminal is reduced.
Fig. 3 is a schematic structural diagram of a screen control device according to an embodiment of the present disclosure, where the screen control device may be implemented by software and/or hardware, and is generally integrated in an intelligent terminal, and may control on-screen or off-screen of a display screen by executing a screen control method. As shown in fig. 3, the apparatus includes:
the information obtaining module 310 is configured to obtain flag information of a power lock held by an application program corresponding to a current display interface;
the requirement judging module 320 is configured to judge whether the application program has a requirement for continuously lighting the screen according to the flag information;
and the screen control module 330 is configured to, when the demand is met, match a screen control policy based on current screen state information, and control the display screen state according to the screen control policy.
In the screen control device of this embodiment, when the currently displayed application program holds the power lock, if the current display screen state information satisfies the preset screen turn-off control policy, even if the currently displayed application program holds the power lock, the screen control device may forcibly perform automatic screen turn-off control, so as to solve the problem that the screen is always in a lit state due to the fact that the power lock is not released after the screen turn-off of the application program, thereby achieving the effects of reducing the power consumption of the terminal and prolonging the endurance time.
Optionally, the method further includes:
the power supply lock judging module is used for judging whether the application program displayed in the current display screen has the power supply lock or not when the window layout is refreshed;
and the information writing module is used for writing the mark information of the power supply lock into the window information corresponding to the current display interface when the application program holds the power supply lock.
Optionally, the power lock determination module is specifically configured to:
executing window layout refreshing operation when the display screen is in a lighting state;
acquiring a target interface in a survival state, and judging whether the target interface is displayed in a current display screen or not;
and if so, judging whether the application program corresponding to the target application interface has a power lock.
Optionally, the screen control module 330 is specifically configured to:
if the requirement exists, current screen state information is obtained;
judging whether the intelligent terminal is in a screen locking state or not according to the screen state information;
if so, when the screen locking interface is in a display state, determining that the screen control strategy is to control the display screen to automatically extinguish after the set time length.
Optionally, the method further includes:
and the power lock releasing module is used for releasing the power lock held by the application program corresponding to the current display interface after the screen control strategy is determined to control the display screen to be automatically extinguished after the set time length is set.
Optionally, the screen control module 330 is further configured to:
after judging whether the intelligent terminal is in a screen locking state according to the screen state information, if the intelligent terminal is not in the screen locking state, determining that a screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface;
alternatively, the first and second electrodes may be,
and if the intelligent terminal is in the screen locking state and the screen locking interface is in the hidden state, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface.
Optionally, the screen control module 330 is further configured to:
after judging whether the application program has the requirement of continuous screen lightening according to the mark information, when the application program does not have the requirement, determining that a screen control strategy is to control the display screen to automatically turn off after a set time length, and executing the screen control strategy to realize the automatic turning off of the display screen.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a screen control method, the method including:
acquiring mark information of a power supply lock held by an application program corresponding to a current display interface;
judging whether the application program has the requirement of continuous screen lightening according to the mark information;
and when the requirement is met, matching a screen control strategy based on the current screen state information, and controlling the screen state according to the screen control strategy.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the screen control operation described above, and may also perform related operations in the screen control method provided in any embodiments of the present application.
The embodiment of the application provides an intelligent terminal, an operating system is arranged in the intelligent terminal, and the screen control device provided by the embodiment of the application can be integrated in the intelligent terminal. The intelligent terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a handheld game console and an intelligent household appliance. Fig. 4 is a schematic structural diagram of an intelligent terminal provided in an embodiment of the present application. As shown in fig. 4, the intelligent terminal includes a memory 410 and a processor 420. The memory 410 is used for storing computer programs and the like; the processor 420 reads and executes the computer program stored in the memory 410. The processor 420, when executing the computer program, performs the steps of: acquiring mark information of a power supply lock held by an application program corresponding to a current display interface; judging whether the application program has the requirement of continuous screen lightening according to the mark information; and when the requirement is met, matching a screen control strategy based on the current screen state information, and controlling the screen state according to the screen control strategy.
The memory and the processor listed in the above examples are all part of components of the intelligent terminal, and the intelligent terminal may further include other components. Taking a smart phone as an example, a possible structure of the smart terminal is described. Fig. 5 is a block diagram of a smart phone according to an embodiment of the present application. As shown in fig. 5, the smart phone may include: memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter CPU), a peripheral interface 503, a Radio Frequency (RF) circuit 505, an audio circuit 506, a speaker 511, a touch screen 512, a power management chip 508, an input/output (I/O) subsystem 509, other input/control devices 510, and an external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated smartphone 500 is merely one example of a smart terminal, and that the smartphone 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the smart phone integrated with the screen control device provided in this embodiment in detail.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices. The memory 501 stores a computer program, and may also store identification information, a screen control policy, and the like.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Namely, a touch display screen, that is, a display screen in the embodiment of the present application.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
According to the intelligent terminal provided by the embodiment of the application, when the currently displayed application program holds the power lock, if the current display screen state information meets the preset screen-off control strategy, even if the currently displayed application program holds the power lock, the display screen can be automatically controlled to be turned off, the problem that the display screen is always in a lighting state due to the fact that the power lock is not released by the application program is solved, and the effects of reducing the power consumption of the terminal and prolonging the endurance time are achieved.
The screen control device, the storage medium and the intelligent terminal provided in the above embodiments can execute the screen control method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a screen control method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (9)

1. A screen control method, comprising:
acquiring mark information of a power supply lock held by an application program corresponding to a current display interface;
judging whether the application program has the requirement of continuous screen lightening according to the mark information;
when the demand exists, matching a screen control strategy based on the current screen state information, and controlling the screen state according to the screen control strategy;
matching a screen control policy based on current screen state information when the demand is present, comprising:
if the requirement exists, current screen state information is obtained;
judging whether the intelligent terminal is in a screen locking state or not according to the screen state information;
if so, when the screen locking interface is in a display state, determining that the screen control strategy is to control the display screen to automatically extinguish after the set time length.
2. The method of claim 1, further comprising:
when refreshing the window layout, judging whether the application program displayed in the current display screen has a power supply lock;
and when the application program holds the power supply lock, writing the mark information of the power supply lock into the window information corresponding to the current display interface.
3. The method of claim 2, wherein determining whether the application program currently displayed on the display screen holds a power lock when refreshing the window layout comprises:
executing window layout refreshing operation when the display screen is in a lighting state;
acquiring a target interface in a survival state, and judging whether the target interface is displayed in a current display screen or not;
if yes, judging whether the application program corresponding to the target interface has a power lock.
4. The method of claim 1, wherein after determining that the screen control strategy is to control the display screen to automatically extinguish after a set length of time, further comprising:
and releasing the power supply lock held by the application program corresponding to the current display interface.
5. The method according to claim 1, wherein after determining whether the intelligent terminal is in the screen-locking state according to the screen state information, the method further comprises:
if the intelligent terminal is not in the screen locking state, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface;
alternatively, the first and second electrodes may be,
and if the intelligent terminal is in the screen locking state and the screen locking interface is in the hidden state, determining that the screen control strategy is to control the screen state according to the setting information of the application program corresponding to the current display interface.
6. The method of claim 1, after determining whether the application has a need for continuous bright screen according to the flag information, further comprising:
and when the requirement is not met, determining that the screen control strategy is to control the display screen to automatically extinguish after the set time length, and executing the screen control strategy to realize the automatic extinguishment of the display screen.
7. A screen control apparatus, comprising:
the information acquisition module is used for acquiring the mark information of the power supply lock held by the application program corresponding to the current display interface;
the requirement judging module is used for judging whether the application program has the requirement of continuous screen lightening according to the mark information;
the screen control module is used for matching a screen control strategy based on the current screen state information when the demand exists, and controlling the display screen state according to the screen control strategy;
the screen control module is specifically configured to:
matching a screen control policy based on current screen state information when the demand is present, comprising:
if the requirement exists, current screen state information is obtained;
judging whether the intelligent terminal is in a screen locking state or not according to the screen state information;
if so, when the screen locking interface is in a display state, determining that the screen control strategy is to control the display screen to automatically extinguish after the set time length.
8. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the screen control method according to any one of claims 1 to 6.
9. An intelligent terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the screen control method according to any one of claims 1 to 6 when executing the computer program.
CN201810614023.XA 2018-06-14 2018-06-14 Screen control method and device, storage medium and intelligent terminal Active CN108829229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810614023.XA CN108829229B (en) 2018-06-14 2018-06-14 Screen control method and device, storage medium and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810614023.XA CN108829229B (en) 2018-06-14 2018-06-14 Screen control method and device, storage medium and intelligent terminal

Publications (2)

Publication Number Publication Date
CN108829229A CN108829229A (en) 2018-11-16
CN108829229B true CN108829229B (en) 2020-10-16

Family

ID=64141952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810614023.XA Active CN108829229B (en) 2018-06-14 2018-06-14 Screen control method and device, storage medium and intelligent terminal

Country Status (1)

Country Link
CN (1) CN108829229B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262652A (en) * 2019-05-31 2019-09-20 联想(北京)有限公司 A kind of electronic equipment and its screen locking method
CN110336918B (en) * 2019-07-03 2021-08-03 惠州Tcl移动通信有限公司 Bright screen control method and device, storage medium and mobile terminal
CN112069010B (en) * 2020-09-03 2023-07-25 深圳宝新创科技股份有限公司 Aging control method and device for notebook computer and computer readable storage medium
CN112417396A (en) * 2020-11-17 2021-02-26 努比亚技术有限公司 Terminal unlocking method, terminal and computer readable storage medium
CN114442789A (en) * 2022-01-25 2022-05-06 北京小米移动软件有限公司 Dark screen control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108829229A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108829229B (en) Screen control method and device, storage medium and intelligent terminal
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
CN107844342B (en) Control method and device for keeping application program alive, storage medium and mobile terminal
RU2686673C1 (en) Device and method of terminal control and terminal
US11086510B2 (en) Split screen control method based on screen-off gestures, and storage medium and mobile terminal thereof
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN109064538B (en) View rendering method and device, storage medium and intelligent terminal
CN107797841B (en) Window control method and device, terminal equipment and storage medium
CN109157839B (en) Frame rate regulation and control method, device, storage medium and terminal
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
CN104750450A (en) File sharing method in IM (Instant Messaging) and terminal
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN108521607B (en) Method and device for processing advertisements in video, storage medium and intelligent terminal
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
US10349020B2 (en) Information processing method and electronic apparatus
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
CN107943270B (en) Application service control method and device, storage medium and mobile terminal
CN117891369A (en) Cross-device object dragging method and device
CN108076223B (en) Task switching method and device, terminal equipment and storage medium
CN108762465B (en) Frame rate self-adaptive adjusting method and device, storage medium and intelligent terminal
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107566609B (en) Download task processing method, device, terminal and storage medium
CN106937371B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
US9661480B2 (en) Triggering application action using non-standard controls

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