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

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

Info

Publication number
CN108829229A
CN108829229A CN201810614023.XA CN201810614023A CN108829229A CN 108829229 A CN108829229 A CN 108829229A CN 201810614023 A CN201810614023 A CN 201810614023A CN 108829229 A CN108829229 A CN 108829229A
Authority
CN
China
Prior art keywords
screen
application program
state
interface
control strategy
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.)
Granted
Application number
CN201810614023.XA
Other languages
Chinese (zh)
Other versions
CN108829229B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Power Sources (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of screen control method, device, storage medium and intelligent terminal.This method includes:Obtain the flag information for the power lock that the corresponding application program of current display interface is held;Judge whether the application program has the demand of persistently bright screen according to the flag information;When with the demand, based on current screen state information matches screen control strategy, screen state is controlled according to the screen control strategy.By using above-mentioned technical proposal, when the application program currently shown holds power lock, if current display screen status information meets preset go out and shields control strategy, even if the application program then currently shown holds power lock, also display screen can be automatically controlled to extinguish, solve the problems, such as that not discharging power lock because of application program causes to show that screen is constantly in illuminating state, realizing reduces power consumption of terminal, extends the effect in cruise duration.

Description

Screen control method, device, storage medium and intelligent terminal
Technical field
The invention relates to terminal power-saving technology more particularly to a kind of screen control method, device, storage medium and Intelligent terminal.
Background technique
For relying on for the workable terminal of electricity, power supply is its very important component part.It is mentioned in the power supply of terminal Under conditions of the electric energy of confession is certain, cruise duration of terminal (i.e. terminal can work duration), function related to the power consumption of terminal Consume smaller, cruise duration is longer, conversely, power consumption is bigger, cruise duration is shorter.
Under normal conditions, the Managed Solution being managed for screen is both provided in terminal.Eventually with Android (Android) For end, android terminal controls power supply by power lock.As long as having using holding power lock, terminal system can not be into Enter the dormant stage.Currently, the third-party application installed in the terminal is more and more, may there is defect of some applications due to itself And hold power lock for a long time and do not discharge --- it is i.e. a certain to apply the lock held when showing its interface and keep bright screen, it is led in screen locking Cause terminal is gone out after screen, which does not discharge the lock of the bright screen of the holding actively, to cause terminal screen after next time lights It can be constantly in bright screen state, power consumption of terminal is caused to increase, cruise duration is reduced.
Summary of the invention
The embodiment of the present application provides a kind of screen control method, device, storage medium and intelligent terminal, can optimize correlation Screen management scheme in technology, it is thus possible to reduce power consumption of terminal.
In a first aspect, the embodiment of the present application provides a kind of screen control method, including:
Obtain the flag information for the power lock that the corresponding application program of current display interface is held;
Judge whether the application program has the demand of persistently bright screen according to the flag information;
When with the demand, based on current screen state information matches screen control strategy, according to the screen Control strategy controls screen state.
Second aspect, the embodiment of the present application also provides a kind of screen control device, which includes:
Data obtaining module, the mark for obtaining the power lock that the corresponding application program of current display interface is held are believed Breath;
Demand estimation module, for judging whether the application program has the need of persistently bright screen according to the flag information It asks;
Screen control module is used for when with the demand, based on current screen state information matches screen control Strategy controls screen state according to the screen control strategy.
The third aspect, the embodiment of the present application also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the screen control method as described in the embodiment of the present application when the computer program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of intelligent terminal, including memory, processor and are stored in storage It can realize on device and when the computer program of processor operation, the processor execute the computer program as the application is real Apply screen control method described in example.
The embodiment of the present application provides a kind of screen control scheme, obtains what the corresponding application program of current display interface was held The flag information of power lock;Judge whether the application program has the demand of persistently bright screen according to the flag information;Have When the demand, based on current screen state information matches screen control strategy, and according to the screen control strategy to screen shape State is controlled.By using above-mentioned technical proposal, when the application program currently shown holds power lock, if current display screen Curtain status information meets preset go out and shields control strategy, also can be automatic even if the application program then currently shown holds power lock Control display screen extinguishes, and solution causes to show that screen is constantly in asking for illuminating state because application program does not discharge power lock Topic, realizing reduces power consumption of terminal, extends the effect in cruise duration.
Detailed description of the invention
Fig. 1 is a kind of flow chart of screen control method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another screen control method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of screen control device provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of intelligent terminal provided by the embodiments of the present application;
Fig. 5 is a kind of structural block diagram of smart phone provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the application, rather than the restriction to the application.It also should be noted that in order to just Part relevant to the application is illustrated only in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
It should be noted that, if detecting that user presses power key under bright screen state, can be executed in android system Screen locking, which operates and controls display screen, extinguishes;If detecting, user presses power key again, locking screen interface occurs, in screen locking circle If the successful event of unlock is not detected in about 10 seconds after the appearance of face, can go out screen automatically.However inventor is realizing this It is found during invention, if thering is application program not discharge screen lock at this time, is detecting that user presses power key again After there is locking screen interface, display screen is lit, and can then be always maintained at bright screen state without the screen that goes out automatically.That is it deposits In following situation --- window is carried out when due to the display mechanism of android system including window controlling module bright screen again after screen locking Mouth layout refreshes, and in the process, if detecting, the corresponding application program of current display interface holds power lock, can be in window Layout shows the last frame picture and locking screen interface that the application program is shown before screen locking after refreshing, at this point, due to applying journey Sequence has power lock, will lead to intelligent terminal be constantly in bright screen state (can be display above-mentioned last frame picture) without Automatically the screen that goes out is set after realizing setting time according to system default.
In order to solve the above-mentioned technical problem, the application provides a kind of screen control scheme, can solve due to application program The abnormal conditions for not discharging power lock cause to show the technical issues of screen is lighted always, reduce the power consumption of intelligent terminal.
Fig. 1 is a kind of flow chart of screen control method provided by the embodiments of the present application, and this method can be by screen control Device executes, wherein the device can be implemented by software and/or hardware, can generally be integrated in a smart terminal.As shown in Figure 1, This method includes:
Step 110, the flag information for obtaining the power lock that the corresponding application program of current display interface is held.
It should be noted that the intelligent terminal in the embodiment of the present application may include mobile phone, tablet computer, laptop, The terminal devices such as handheld device and intelligent appliance.Operating system is mounted in terminal.Operating system can be Android, IOS, BlackBerry OS or windows mobile etc..
Wherein, current display interface, which can refer to, shows within the coordinate range of display screen before intelligent terminal screen locking Last frame picture, i.e., when showing the frame picture, system performs screen locking and extinguishes the operation of screen.Intelligent terminal is caused to be locked There are many kinds of the modes of screen, and the embodiment of the present application is simultaneously not especially limited.It such as detects that power key is pressed, then executes screen locking behaviour Make;For another example, it detects screen locking gesture, then executes screen locking operation, for another example, occur not unlocking into setting time in locking screen interface Function then executes screen locking operation etc..
Layout has at least one active window (indicating below with Activity), an application program pair within display screen An Activity is answered, and application interface is shown by Activity.It should be noted that current display interface refer to it is visible Application interface.For intelligent terminal, when carrying out window layout refreshing, the application program and history of front stage operation can be obtained The application interface that the application program of operation is drawn.For the application program of front stage operation, application interface is visible application Interface.It is understood that visible application interface is not limited to one, it is also possible to 2 or multiple.Under split screen state, just At least 2 visible application interfaces.
In order to make it easy to understand, carrying out following explanation by taking Android (Android) operating system as an example below.
In android system, active window is referred to as Activity.Activity, which is one, to be responsible for interacting with user Component provides screen (can be understood as screen interface, and the display screen of non-physical), so that user's interaction completes certain Item task.In an android application program, an Activity is usually exactly an individual screen, it above can be with Show that some controls can also be monitored and handle the event of user.In being managed to Activity, there is two such concept: Task (task stack) and Stack (active window storehouse).Task corresponds to an application program, and Task is used to store Activity, One or more Activity can be stored in one Task, and these Activity follow " first-in last-out, last in, first out " Principle.And Stack is used to be managed Task, in general, each Activity of the Stack to displaying needed for a screen Affiliated Task is managed, and a Stack can manage one or more Task, and certainly, Stack similarly follows storehouse Basic management principle.The not necessarily complete independent display screen of screen described here, by taking " two screens " as an example, the two Screen may be the region that two independent displays respectively show content in a full display screen, show in respective region Different application interfaces.Certainly, if terminal has two even more than two separate display screens, " two screens " It can be two independent display screens.
In some embodiments, power lock includes screen lock, for keeping display screen to be constantly in bright screen after screen locking State.Correspondingly, the flag information of power lock can be the information whether identification application has the persistently demand of bright screen, Such as, marker can be also possible to using the value of power lock as the flag information of power lock, getWindow () can be used .setFlags (int flags, int mask) method is the marker that power lock is arranged in a certain application program, it is believed that tool There is the application program of the marker to have and continues bright screen demand.
Illustratively, in android system, if detecting, display screen is lighted, and passes through window management module (WindowManager) window layout refresh operation is executed.When detecting window layout refresh operation, system is obtained to be in and be deposited The target interface of state living, judges whether target interface is shown in current display screen respectively;If so, further sentencing Whether the corresponding application program of the target interface of breaking holds power lock.It should be noted that being in the target interface of existing state The application interface that the application program of application program and history run including front stage operation is drawn.Due in android system, The corresponding application interface of the application program that history run is crossed can be just destroyed after a period of time is survived on backstage, therefore, in system When obtaining all application interfaces, application that the application interface and history run that can get the application program that current foreground is shown are crossed The application interface of program.The advantages of this arrangement are as follows quickly judge whether target interface is the application interface currently shown, If it is not, then not having to judge whether it has power lock, it is directly defaulted without power lock, reduction needs to carry out power lock The object of held state judgement, improves system execution efficiency.
It optionally, can be by the power supply when application program shown in judging current display screen holds power lock The corresponding window information of flag information write-in current display interface of lock.Such as, using such as minor function getWindow () .addFlags flag information is added to and works as by (WindowManager.LayoutParams.FLAG_KEEP_SCREEN_O N) The corresponding window information of preceding display interface.To which system can be by reading current display in the window information of WindowManager The identification information for the power lock that the corresponding application program in interface is held.It is understood that it is corresponding to obtain current display interface The mode of the flag information for the power lock that application program is held can there are many kinds of, however it is not limited to the above-mentioned mode enumerated.As also The flag information etc. for the power lock that application program is held can be stored by way of white list.
Step 120 judges whether the application program has the demand of persistently bright screen according to the flag information.
It should be noted that the application program can be before intelligent terminal screen locking within the coordinate range of display screen The corresponding application program of the application interface of display.
Illustratively, if it includes flag information FLAG_KEEP_ in the attribute information of a certain application program that system, which is learned, SCREEN_ON then determines that the application program has the demand for continuing bright screen.However, this demand may be the true of application program Real demand such as plays video scene;It may also not be the real demand of application program, it is possible to be since the application program exists Actively release does not keep the screen lock of bright screen after screen locking, and shows that screen is constantly in illuminating state after leading to bright screen again, and Automatically will not be gone out screen.
It is understood that whether having the mode of the persistently demand of bright screen based on application program described in identification information judgment There are many kinds of, the embodiment of the present application is simultaneously not especially limited.Such as, object android can also be preset in xml by obtaining: The attribute of keepScreenOn determines, if android:KeepScreenOn=" true ", it is determined that the application program tool There is the demand of persistently bright screen.
Step 130, when with the demand, based on current screen state information matches screen control strategy, according to The screen control strategy controls screen state.
It should be noted that demand herein is that the application program shown before screen locking on the display screen continues bright screen Demand.
Optionally, whether screen state information includes screen locking state and locking screen interface whether hidden state etc..System There are many kinds of the modes for obtaining screen state, and the embodiment of the present application is simultaneously not especially limited.Such as, it can be obtained by setting interface Screen state.For another example, lighting or extinguishing for display screen is determined by way of listening broadcast.
Optionally, screen control strategy includes control screen automatic distinguishing after setting time length, or control screen is protected Hold illuminating state.Screen state information and the matching relationship of screen control strategy include:Intelligent terminal be in screen lock state and When locking screen interface is in display state and is not hidden, determine that screen control strategy is that control screen is automatic after setting time length Extinguish.Wherein, it may include that locking screen interface is in the time of display state more than setting time that locking screen interface, which is in display state, Threshold value then determines that locking screen interface is not hidden.It should be noted that the setting time threshold value is greater than setting time (when as set Between be system control screen go out automatically after setting time shield the required time).Alternatively, if intelligent terminal is not in screen locking shape State, it is determined that screen control strategy is to control screen state according to the setting information of the corresponding application program of current display interface. Alternatively, if intelligent terminal is in screen lock state and locking screen interface is in hidden state, it is determined that screen control strategy is that basis is worked as The setting information of the corresponding application program of preceding display interface controls screen state.
Illustratively, if the application program has the demand for continuing bright screen, current screen state information is obtained.Root According to the corresponding screen control strategy of the screen state information matches.
For example, further judging screen locking circle if determining that intelligent terminal is in screen lock state according to the screen state information Whether face is hidden.If locking screen interface is not hidden from (i.e. in display state), determine that screen control strategy can be control Screen automatic distinguishing after setting time length.Wherein, setting time length can be system default time, can also by with Family is configured according to actual needs.
If determining that intelligent terminal is not in screen lock state according to the screen state information, it is determined that screen control strategy is root Screen state is controlled according to the setting information of the corresponding application program of current display interface.Wherein, if setting information include using Program holds power lock, then controls display screen and be constantly in bright screen state.If the application program does not hold power lock, control Display screen goes out screen automatically after setting time.
If determining that intelligent terminal is in screen lock state according to the screen state information, and further judge locking screen interface quilt It hides, it is determined that screen control strategy is the setting information control flow tentiform according to the corresponding application program of current display interface State.Wherein, it if setting information includes that application program holds power lock, controls display screen and is constantly in bright screen state.If The application program does not hold power lock, then controls display screen and go out automatically after setting time screen.
Correspondingly, according to screen control strategy to screen state carry out control include:If screen control strategy is control flow Curtain automatic distinguishing after setting time length then executes the screen control strategy and realizes display screen after the setting time length Automatic distinguishing.If screen control strategy is the setting information control flow tentiform according to the corresponding application program of current display interface State, then since the application program holds power lock, execute screen control strategy and realize that display screen is constantly in bright screen shape State.
The technical solution of the present embodiment, by the mark for obtaining the power lock that the corresponding application program of current display interface is held Will information;Judge whether the application program has the demand of persistently bright screen according to the flag information;When having the demand, base In current screen state information matches screen control strategy, and screen state is controlled according to the screen control strategy. When the application program currently shown holds power lock, if current display screen status information meets preset screen control plan of going out Slightly, even if the application program then currently shown holds power lock, it can also enforce and automatically control screen extinguishing, solve because of application Program does not discharge the problem of power lock causes screen to be constantly in illuminating state after the screen that goes out, and realizing reduces power consumption of terminal, extends The effect in cruise duration.
Fig. 2 is the flow chart of another screen control method provided by the embodiments of the present application, as shown in Fig. 2, this method packet It includes:
Step 201, when screen is in illuminating state, execute window layout refresh operation.
Illustratively, after screen locking, system monitors bright screen broadcast.When detecting the broadcast of bright screen, window layout brush is carried out New operation, the last frame picture and locking screen interface of the application program shown before showing screen locking, and monitoring users exist The unlock operation carried out on locking screen interface.It should be noted that in some scenes, coming if being detected when showing locking screen interface Electricity can then receive calls in hiding locking screen interface when answering instruction for detecting user's input in the case where not unlocking.
Whether the target interface that step 202, judgement are survived at present is shown in current display screen, if so, holding Row step 203, it is no to then follow the steps 210.
Optionally, the target interface for being in existing state is obtained, judges the target interface whether in current display screen In shown.
It should be noted that the existing state of application interface is the concept opposite with destruction state.Since application program exists Application interface can be drawn and shown when operation, the application interface having been displayed after a preset time lapses just can be destroyed, then Before application interface is destroyed, even if invisible its of the application interface is still within existing state.
Illustratively, judge by window management module in process that whether screen needs to keep bright screen executing, acquisition Target interface in existing state can determine whether it is in current display screen according to the timestamp that target interface is drawn The current display interface of display.Before screen locking, the application interface that display screen is shown is newest drafting, is detecting power supply After key is pressed, screen extinguishes and carries out screen locking processing.If detecting again, power key is pressed, and screen is lighted, at this point, if The application program shown before screen locking holds screen lock, then that shown before screen locking in the application program can be shown after screen is lighted Frame application interface, and display locking screen interface.
Alternatively, obtaining the application interface that display screen is currently shown by the way of screenshot capture.By the application interface with Target interface is matched, if similarity is greater than preset threshold, it is determined that target application interface carries out in current display screen Display.
Step 203 judges whether the corresponding application program in the target application interface holds power lock, if so, executing Step 204, no to then follow the steps 210.
Judge whether the corresponding application program in target application interface holds the flag information FLAG_KEEP_ for keeping bright screen SCREEN_ON, if so, thening follow the steps 204.
The flag information write-in current display interface of the power lock is corresponded to window information by step 204.
When the application program holds power lock, this is written using journey in flag information FLAG_KEEP_SCREEN_ON The corresponding Stack of sequence.As Android system window management module after screen locking again bright screen when, carry out window layout refreshing.If System judges that the corresponding application program of current display interface has the mark flag for keeping bright screen, then will record flag information Inside the window information at this interface.
Step 205, the flag information for obtaining the power lock that the corresponding application program of current display interface is held.
Step 206 judges whether the application program has the demand of persistently bright screen according to the flag information, if so, Then follow the steps 207, it is no to then follow the steps 210.
Step 207 obtains current screen state information.
Step 208, according to the screen state information judge whether intelligent terminal is in screen lock state, if so, executing Step 209, otherwise, step 212 is executed.
Step 209 judges whether locking screen interface is in display state, if so, 210 are thened follow the steps, it is no to then follow the steps 212。
Illustratively, it can judge whether locking screen interface is hidden according to screen state information.Can also optionally it pass through The mode of screen printing obtains target image, and target image is matched with locking screen interface.If similarity is greater than preset threshold, Then determine that locking screen interface is in display state.
Step 210, control display screen automatic distinguishing after setting time length.
The power lock that step 211, the corresponding application program of the release current display interface are held.
It should be noted that this step it is not necessary to execute, for exist hold power lock application program field Under scape, when forcing display screen to brake extinguishing after setting time length, the power lock that the application program is held also is discharged.
Step 212 controls screen state according to the setting information of the corresponding application program of current display interface.
Illustratively, in the case where intelligent terminal is not in screen lock state, if the corresponding application program of current display interface is held Power lock then controls display screen and lights always until exiting application program release power lock.If current display interface is corresponding Application program do not hold power lock, then control display screen automatic distinguishing after setting time length.It is similar, at intelligent end End is in screen lock state and locking screen interface is under hidden state, if the corresponding application program of current display interface holds power supply Lock then controls display screen and lights always until exiting application program release power lock.It is answered if current display interface is corresponding Do not hold power lock with program, then controls display screen automatic distinguishing after setting time length.
The technical solution of the present embodiment passes through when carrying out window layout refreshing, judge to show in current display screen Whether application program holds power lock;If so, it is corresponding that the current display interface is written in the flag information of the power lock Window information, it is thus possible to which the case where whether corresponding application program of current display interface holds power lock easily obtained. And when the application program holds power lock, meet that intelligent terminal is in screen lock state and locking screen interface is not hidden if detecting Hiding then controls display screen and goes out automatically after setting time screen, and discharges the power lock that the application program is held, can to avoid because The application program causes to show the problem of screen does not extinguish always after bright screen without release power lock after the screen that goes out, and reduces The power consumption of intelligent terminal.
Fig. 3 be a kind of structural schematic diagram of screen control device provided by the embodiments of the present application, the device can by software and/ Or hardware realization, it is typically integrated in intelligent terminal, it can be by executing screen control method come the bright screen to display screen or going out Screen is controlled.As shown in figure 3, the device includes:
Data obtaining module 310, for obtaining the mark for the power lock that the corresponding application program of current display interface is held Information;
Demand estimation module 320, for judging whether the application program has persistently bright screen according to the flag information Demand;
Screen control module 330 is used for when with the demand, based on current screen state information matches screen control System strategy controls display screen state according to the screen control strategy.
The screen control device of the present embodiment, when the application program currently shown holds power lock, if current display screen Curtain status information meets preset go out and shields control strategy, even if the application program then currently shown holds power lock, can also force It executes and automatically controls screen and extinguish, solve to light shape because application program does not discharge power lock screen is caused to be constantly in after the screen that goes out The problem of state, realizing reduces power consumption of terminal, extends the effect in cruise duration.
Optionally, further include:
Power lock judgment module, for judging the application shown in current display screen when carrying out window layout refreshing Whether program holds power lock;
Information writing module, for when the application program holds power lock, the flag information of the power lock to be write Enter the corresponding window information of the current display interface.
Optionally, power lock judgment module is specifically used for:
When showing that screen is in illuminating state, window layout refresh operation is executed;
The target interface for being in existing state is obtained, judges whether the target interface is shown in current display screen Show;
If so, judging whether the corresponding application program in the target application interface holds power lock.
Optionally, screen control module 330 is specifically used for:
If having the demand, current screen state information is obtained;
Information judges whether intelligent terminal is in screen lock state according to the screen state;
If so, determining that screen control strategy is that control display screen is being set when locking screen interface is in display state Automatic distinguishing after time span.
Optionally, further include:
Power lock release module, for determining that screen control strategy is that control shows screen after setting time length certainly After dynamic extinguishing, the power lock that the corresponding application program of the current display interface is held is discharged.
Optionally, screen control module 330 is also used to:
After information according to the screen state judges whether intelligent terminal is in screen lock state, if intelligent terminal is not located In screen lock state, it is determined that screen control strategy is the setting information control flow according to the corresponding application program of current display interface Tentiform state;
Alternatively,
If intelligent terminal is in screen lock state and locking screen interface is in hidden state, it is determined that screen control strategy is basis The setting information of the corresponding application program of current display interface controls screen state.
Optionally, screen control module 330 is also used to:
After judging whether the application program has the persistently demand of bright screen according to the flag information, do not having When the demand, determines that screen control strategy is control display screen automatic distinguishing after setting time length, execute the screen Curtain control strategy realizes display screen automatic distinguishing.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable When being executed by computer processor for executing screen control method, this method includes for instruction:
Obtain the flag information for the power lock that the corresponding application program of current display interface is held;
Judge whether the application program has the demand of persistently bright screen according to the flag information;
When with the demand, based on current screen state information matches screen control strategy, according to the screen Control strategy controls screen state.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location (such as by network connection different computer systems in) two or More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application The screen control operation that executable instruction is not limited to the described above, can also be performed screen provided by the application any embodiment Relevant operation in control method.
The embodiment of the present application provides a kind of intelligent terminal, has operating system in the intelligent terminal, in the intelligent terminal Screen control device provided by the embodiments of the present application can be integrated.Wherein, intelligent terminal can be smart phone, tablet computer, pen Remember the terminal devices such as this computer, handheld device and intelligent appliance.Fig. 4 is a kind of intelligent terminal provided by the embodiments of the present application Structural schematic diagram.As shown in figure 4, the intelligent terminal includes memory 410 and processor 420.The memory 410, is used for Store computer program etc.;The processor 420 reads and executes the computer program stored in the memory 410.It is described Processor 420 realizes following steps when executing the computer program:The corresponding application program of current display interface is obtained to hold The flag information of some power locks;Judge whether the application program has the demand of persistently bright screen according to the flag information; When with the demand, based on current screen state information matches screen control strategy, according to the screen control strategy Screen state is controlled.
The memory and processor enumerated in above-mentioned example are some components of intelligent terminal, and the intelligent terminal is also It may include other components.By taking smart phone as an example, illustrate the possible structure of above-mentioned intelligent terminal.Fig. 5 is the application implementation A kind of structural block diagram for smart phone that example provides.As shown in figure 5, the smart phone may include:Memory 501, centre Manage device (Central Processing Unit, CPU) 502 (also known as processor, hereinafter referred to as CPU), Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, voicefrequency circuit 506, loudspeaker 511, touch screen 512, power management chip 508, input/output (I/O) subsystem 509, other input/control devicess 510 and outside port 504, these components pass through One or more communication bus or signal wire 507 communicate.
It should be understood that illustrating the example that smart phone 500 is only intelligent terminal, and smart phone 500 It can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the smart phone provided in this embodiment for being integrated with screen control device is described in detail below.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.Computer program is stored in memory 501, mark can also be stored Information and screen control strategy etc..
The peripheral hardware that outputs and inputs of equipment can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503 Reservoir 501.
I/O subsystem 509, the I/O subsystem 509 can be by the input/output peripherals in equipment, such as touch screen 512 With other input/control devicess 510, it is connected to Peripheral Interface 503.I/O subsystem 509 may include 5091 He of display controller For controlling one or more input controllers 5092 of other input/control devicess 510.Wherein, one or more input controls Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510, Other input/control devicess 510 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 5092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 512, the touch screen 512 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..As touching display screen, that is, Display screen in the embodiment of the present application.
Display controller 5091 in I/O subsystem 509 receives electric signal from touch screen 512 or sends out to touch screen 512 Electric signals.Touch screen 512 detects the contact on touch screen, and the contact that display controller 5091 will test is converted to and is shown The interaction of user interface object on touch screen 512, i.e. realization human-computer interaction, the user interface being shown on touch screen 512 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 505 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 505 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 505 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 505 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506 is mainly used for receiving audio data from Peripheral Interface 503, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511 is reduced to sound for mobile phone to be passed through RF circuit 505 from the received voice signal of wireless network And the sound is played to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface are powered And power management.
Intelligent terminal provided by the embodiments of the present application, when the application program currently shown holds power lock, if current aobvious Show that screen state information meets preset go out and shields control strategy, even if the application program then currently shown holds power lock, also can It automatically controls display screen to extinguish, solution causes to show that screen is constantly in illuminating state because application program does not discharge power lock Problem, realizing reduces power consumption of terminal, extends the effect in cruise duration.
The application, which can be performed, in screen control device, storage medium and the intelligent terminal provided in above-described embodiment arbitrarily implements Screen control method provided by example has and executes the corresponding functional module of this method and beneficial effect.Not in above-described embodiment In detailed description technical detail, reference can be made to screen control method provided by the application any embodiment.
Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation, The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. a kind of screen control method, which is characterized in that including:
Obtain the flag information for the power lock that the corresponding application program of current display interface is held;
Judge whether the application program has the demand of persistently bright screen according to the flag information;
When with the demand, based on current screen state information matches screen control strategy, according to the screen control Strategy controls screen state.
2. the method according to claim 1, wherein further including:
When carrying out window layout refreshing, judge whether the application program shown in current display screen holds power lock;
When the application program holds power lock, it is corresponding that the current display interface is written into the flag information of the power lock Window information.
3. according to the method described in claim 2, it is characterized in that, judging current display screen when carrying out window layout refreshing Whether the application program shown in curtain holds power lock, including:
When showing that screen is in illuminating state, window layout refresh operation is executed;
The target interface for being in existing state is obtained, judges whether the target interface is shown in current display screen;
If so, judging whether the corresponding application program in the target application interface holds power lock.
4. according to the method in any one of claims 1 to 3, which is characterized in that when with the demand, based on current Screen state information matches screen control strategy, including:
If having the demand, current screen state information is obtained;
Information judges whether intelligent terminal is in screen lock state according to the screen state;
If so, determining that screen control strategy is control display screen in setting time when locking screen interface is in display state Automatic distinguishing after length.
5. according to the method described in claim 4, it is characterized in that, determining that screen control strategy is that control display screen is being set After length of fixing time after automatic distinguishing, further include:
Discharge the power lock that the corresponding application program of the current display interface is held.
6. according to the method described in claim 4, it is characterized in that, judging that intelligent terminal is in information according to the screen state It is no to be in after screen lock state, further include:
If intelligent terminal is not in screen lock state, it is determined that screen control strategy is corresponding using journey according to current display interface The setting information of sequence controls screen state;
Alternatively,
If intelligent terminal is in screen lock state and locking screen interface is in hidden state, it is determined that screen control strategy is according to current The setting information of the corresponding application program of display interface controls screen state.
7. the method according to claim 1, wherein judging that the application program is according to the flag information After the no demand with lasting bright screen, further include:
When not having the demand, determine that screen control strategy is control display screen automatic extinguishing after setting time length It goes out, executes the screen control strategy and realize display screen automatic distinguishing.
8. a kind of screen control device, which is characterized in that including:
Data obtaining module, for obtaining the flag information for the power lock that the corresponding application program of current display interface is held;
Demand estimation module, for judging whether the application program has the demand of persistently bright screen according to the flag information;
Screen control module, for when with the demand, based on current screen state information matches screen control strategy, Display screen state is controlled according to the screen control strategy.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The screen control method as described in any one of claims 1 to 7 is realized when processor executes.
10. a kind of intelligent terminal, including memory, processor and storage are on a memory and can be in the computer of processor operation Program, which is characterized in that the processor is realized as described in any one of claims 1 to 7 when executing the computer program Screen control method.
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 true CN108829229A (en) 2018-11-16
CN108829229B 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)

Cited By (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
CN110336918A (en) * 2019-07-03 2019-10-15 惠州Tcl移动通信有限公司 Bright screen control method, device, storage medium and mobile terminal
CN112069010A (en) * 2020-09-03 2020-12-11 深圳宝新创科技股份有限公司 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

Cited By (6)

* 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
CN110336918A (en) * 2019-07-03 2019-10-15 惠州Tcl移动通信有限公司 Bright screen control method, device, storage medium and mobile terminal
CN110336918B (en) * 2019-07-03 2021-08-03 惠州Tcl移动通信有限公司 Bright screen control method and device, storage medium and mobile terminal
CN112069010A (en) * 2020-09-03 2020-12-11 深圳宝新创科技股份有限公司 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
CN108829229B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN108829229A (en) Screen control method, device, storage medium and intelligent terminal
CN111831099B (en) Electronic device
CN107885534B (en) Screen locking method, terminal and computer readable medium
CN107483721B (en) Control method, device, storage medium and mobile terminal based on blank screen gesture
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN106936995B (en) A kind of control method, device and the mobile terminal of mobile terminal frame per second
CN107479816B (en) Recognition methods, device, storage medium and the mobile terminal of blank screen gesture
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN106528028B (en) Information processing method, system, device and terminal
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
CN108958830A (en) Application program launching method, device, storage medium and terminal
CN108829457A (en) Application program prediction model update method, device, storage medium and terminal
WO2019019835A1 (en) Method and device for responding to blank screen gesture, and storage medium and mobile terminal
CN107402713B (en) Accelerate method, apparatus, storage medium and the mobile terminal of the processing of blank screen gesture
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
CN108829456A (en) Application program preloads method, apparatus, storage medium and terminal
CN109157839A (en) Frame per second regulates and controls method, apparatus, storage medium and terminal
CN107479700B (en) Black screen gesture control method and device, storage medium and mobile terminal
CN108648259B (en) Image drawing method and device, storage medium and intelligent terminal
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
CN108776599A (en) Management method, device, storage medium and the intelligent terminal of preloaded applications
CN108664285A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN108733193A (en) Method, apparatus, storage medium and the intelligent terminal of adjustment frame per second
CN108762836A (en) Management method, device, storage medium and the intelligent terminal of preloaded applications
CN108762465A (en) Frame per second self-adapting regulation method, device, storage medium and intelligent terminal

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