CN108646966B - Screen-off time adjusting method and device - Google Patents

Screen-off time adjusting method and device Download PDF

Info

Publication number
CN108646966B
CN108646966B CN201810445075.9A CN201810445075A CN108646966B CN 108646966 B CN108646966 B CN 108646966B CN 201810445075 A CN201810445075 A CN 201810445075A CN 108646966 B CN108646966 B CN 108646966B
Authority
CN
China
Prior art keywords
screen
time
mobile terminal
application program
foreground
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
CN201810445075.9A
Other languages
Chinese (zh)
Other versions
CN108646966A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810445075.9A priority Critical patent/CN108646966B/en
Publication of CN108646966A publication Critical patent/CN108646966A/en
Application granted granted Critical
Publication of CN108646966B publication Critical patent/CN108646966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor

Abstract

The invention provides a screen-off time adjusting method and device. The method comprises the following steps: acquiring operation behavior information of an application program running on a foreground of the mobile terminal within preset time; classifying the operation behavior information; determining the number of times of effective operation behaviors and the number of times of ineffective operation behaviors which are counted at this time according to the classification result; and adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors. The invention realizes the dynamic adjustment of the screen-off time of the mobile terminal in different application scenes, not only can optimize the power consumption of the mobile terminal, but also can improve the use experience of users.

Description

Screen-off time adjusting method and device
Technical Field
The invention relates to the technical field of mobile communication, in particular to a screen-off time adjusting method and device.
Background
At present, with the rapid development of communication technology, a mobile terminal (such as a mobile phone and the like) occupies a great proportion in the life of people, and in the using process, the problem of long time of the mobile terminal needs to be considered, when a user does not use the mobile terminal, a mobile terminal system can automatically turn off a screen, and the screen turning-off time can be set by the user or can be the default time of the system.
Although the user can set different screen-off times in the existing processing mode, the screen-off time of each use scene is also fixed after the screen-off time is set, and the screen-off time cannot be dynamically adjusted, so that the screen-off time cannot be dynamically adapted to various different scenes. For example, in a scene with a long screen-off time, if the default time is short, the user needs to manually operate the screen of the mobile terminal many times to keep the display of the screen, which increases the number of operations of the user and is troublesome. And in the scene of the screen-off time period, if the default time is longer, the power consumption of the mobile terminal is increased.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting screen-off time, which aim to solve the problems that the screen-off time of a mobile terminal cannot be dynamically adjusted and the power consumption of the mobile terminal is increased in the prior art.
In order to solve the technical problem, the invention is realized as follows: a method for adjusting screen-off time comprises the following steps: acquiring a plurality of operation behavior information of the application program operated on the foreground of the mobile terminal within a preset time; classifying the operation behavior information; respectively determining the number of valid operation behaviors and the number of invalid operation behaviors counted at this time according to the classification result; and adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors.
In a first aspect, an embodiment of the present invention further provides a device for adjusting screen-off time, including: the behavior acquisition module is used for acquiring a plurality of operation behavior information of the application program operated on the foreground of the mobile terminal within preset time; the classification processing module is used for classifying the operation behavior information; the frequency determining module is used for respectively determining the frequency of the effective operation behaviors and the frequency of the ineffective operation behaviors counted at this time according to the classification result; and the first time adjusting module is used for adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the screen-off time adjustment method described in any one of the above.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for adjusting screen-off time includes any one of the steps described above.
In the embodiment of the invention, the operation behavior information of the application program running on the foreground of the mobile terminal in the preset time is acquired, the operation behavior information is classified respectively, the counted effective operation behavior times and invalid operation behavior times are determined according to the classification result, and the screen-off time of the mobile terminal when the application program runs on the foreground is adjusted according to the effective operation behavior times and the invalid operation behavior times, so that the dynamic adjustment of the screen-off time of the mobile terminal in different application scenes can be realized, the power consumption of the mobile terminal can be optimized, and the use experience of a user can be improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for adjusting a screen-off time according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for adjusting a screen-off time according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a screen turn-off time adjusting device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a screen turn-off time adjustment apparatus according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart of steps of a screen turn-off time adjustment method according to an embodiment of the present invention is shown, where the screen turn-off time adjustment method may be applied to a mobile terminal, and specifically may include the following steps:
step 101: and acquiring a plurality of operation behavior information of the application program operated on the foreground of the mobile terminal within preset time.
In the embodiment of the present invention, the mobile terminal may be a mobile electronic device such as a mobile phone, a PDA (Personal Digital Assistant), a tablet computer, and the like. The Application refers to an APP (Application) installed in the mobile terminal.
The preset time may be a time set by the mobile terminal system, or may be a time set by the user, which is not limited in this embodiment of the present invention. The preset time may be set to 3min, 5min, etc., which is not limited in the embodiment of the present invention.
The operation behavior information refers to an operation performed by a user on an application program running in the foreground of the mobile terminal, for example, when the user browses a webpage, the user clicks a link, a picture, a sliding screen, a blank of the webpage, and the like.
The embodiment of the invention does not consider the application program running in the background, and aims to acquire the operation behavior information of the application program running in the foreground, namely the operation behavior information of the application program displayed on the screen of the mobile terminal.
When the information of the operation behaviors executed by the user on the application program running in the foreground of the mobile terminal is less in the preset time, such as 1 operation behavior, whether the user needs to increase or decrease the screen-off time of the application program displayed by the mobile terminal cannot be reflected, and the information is not considered in the embodiment of the invention. The embodiment aims to determine whether the user needs to display the screen-off time of the application program on the mobile terminal according to a plurality of pieces of operation behavior information in a preset time.
After obtaining the operation behavior information of the application running in the foreground of the mobile terminal within the preset time, step 102 is entered.
Step 102: and classifying the operation behavior information respectively.
The operation behavior information of the user on the APP running in the foreground may include valid operation behavior information and invalid operation behavior information, and the valid operation behavior information may be, for example, when the user browses a webpage, the user clicks a link, a picture, a sliding screen, and other valid operations in the webpage. The invalid operation behavior information may be, for example, an invalid operation that the user clicks a blank of a browser web page when the user browses the web page, and aims to prolong a display time of a screen of the mobile terminal.
In general, the valid operation behavior information and the invalid operation behavior information may be distinguished by referring to the following method contents, taking an Android (Android) mobile phone as an example:
when a user finger clicks or slides on the Android mobile phone screen, a touch event (touch event) is triggered. In App, there are multiple levels of nesting of ViewGroup and View, wherein the outermost layer is Activity, the innermost layer is View, and between Activity and View, the number of ViewGroup is some.
The dispatctchouchvent and the ontouchvent both receive a parameter of a MotionEvent type, and the MotionEvent encapsulates data information of the touch event, including information such as the type and coordinate position of the touch event. The dispatch touch event and the ontouch event both have a value returned by the type of bootean, and if both return true, it indicates that the current object has processed the touch event (such operation is classified as an active screen operation, i.e., an active operation); if one returns false, this indicates that the touch event is not being processed by the current object (such operation is classified as an invalid screen operation, i.e., an invalid operation).
The obtained operation behavior information within the preset time is classified according to the method, and the classification result of each operation behavior information can be determined.
The system side of the mobile terminal may set a classification result list to store the classification result of each operation behavior information after the classification processing, for example, the operation behavior information obtained by a certain reading application program within a preset time includes: A. b, C, D, E, F, the classification result corresponding to each operation behavior is: a-invalid operation behavior, B-invalid operation behavior, C-valid operation behavior, D-invalid operation behavior, E-invalid operation behavior and F-valid operation behavior, and the classification result corresponding to each operation behavior information at the system side can be stored according to the form of the following table 1:
table 1:
Figure BDA0001656985060000041
Figure BDA0001656985060000051
of course, in practical applications, those skilled in the art may also use other forms to store each operation behavior information and the corresponding classification result, which is not limited in this embodiment of the present invention.
After the classification processing is performed on each operation behavior, the process proceeds to step 103.
Step 103: and respectively determining the number of times of the effective operation behaviors and the number of times of the ineffective operation behaviors counted at this time according to the classification result.
In the embodiment of the present invention, the valid operation behavior frequency and the invalid operation behavior frequency of the current statistics may be determined according to the classification result of each operation behavior, for example, as shown in table 1, the total frequency of the current statistics may be determined to be 6, where the invalid operation behavior frequency is 4 and the valid operation behavior frequency is 2.
After the number of valid operation behaviors and the number of invalid operation behaviors counted this time are determined, step 104 is entered.
Step 104: and adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors.
After the counted number of times of the effective operation behaviors and the counted number of times of the ineffective operation behaviors are determined, the screen-off time of the mobile terminal when the application program runs in the foreground can be adjusted according to the size relation between the number of times of the effective operation behaviors and the number of times of the ineffective operation behaviors. For example, when the number of times of the invalid operation behavior is greater than the number of times of the valid operation behavior, the screen-off time of the mobile terminal when the application program runs in the foreground is increased; and when the number of times of the effective operation behaviors is larger than that of the ineffective operation behaviors, the screen-off time of the mobile terminal when the application program runs in the foreground is reduced.
Of course, after the screen-off time of the mobile terminal running the application program in the foreground is increased or decreased once, the user operation behavior of the mobile terminal running the application program in the foreground can be counted again, and the screen-off time of the mobile terminal running the application program in the foreground is adjusted according to the counted number of valid operation behaviors and the counted number of invalid operation behaviors.
Specifically, how to adjust the screen-off time when the mobile terminal runs the application in the foreground will be described in detail in the following preferred embodiments.
In a preferred embodiment of the present invention, the step 104 may include:
substep S1: and when the ratio of the number of the effective operation behaviors to the total number of the statistics is larger than a first threshold, reducing the screen-off time according to a first set strategy.
In the embodiment of the present invention, the first threshold may be a specific value set by the mobile terminal system, or may be a specific value set by the user, which is not limited in the present invention. Also, 1/2 ≦ the first threshold < 1, e.g., the first threshold may be 2/3, or 3/4, and so on.
The first setting policy may be a policy for gradually decreasing the screen-off time of the application program corresponding to the mobile terminal running in the foreground. For example, the initial screen-off time is 1min, when the ratio of the counted effective operation behavior times within the first preset time to the counted total times is greater than a first threshold, the screen-off time of the application program corresponding to the operation of the mobile terminal in the foreground is reduced by 5s, and the adjusted screen-off time is 55 s; and when the ratio of the counted effective operation behavior frequency within the first preset time to the counted total frequency of this time is greater than a first threshold, reducing the screen-off time of the application program operated in the foreground of the mobile terminal by 5 seconds, and then regulating the screen-off time to be 50s.
The reduced screen-off time may also be 6s, 8s, and so on, which is not limited by the embodiment of the present invention.
Of course, in the embodiment of the present invention, a person skilled in the art may also use other strategies to reduce the screen-off time of the mobile terminal running the corresponding application program in the foreground when the ratio of the number of effective operation behaviors to the total number of times counted this time is greater than the first threshold, which is not limited in this embodiment of the present invention.
In another preferred embodiment of the present invention, the step 104 may include:
substep S2: when the ratio of the invalid operation behavior times to the total times of the statistics is larger than a second threshold, increasing the screen-off time according to a second set strategy; wherein 1/2 is less than or equal to the second threshold value < 1.
In the embodiment of the present invention, the second threshold may be a specific value set by the mobile terminal system, or may be a specific value set by the user, which is not limited in the present invention. And 1/2 ≦ a second threshold < 1, e.g., the second threshold may be 4/5, or 5/6, and so on.
The second setting policy may be a policy for gradually increasing the screen-off time of the application program corresponding to the mobile terminal running in the foreground. For example, the initial screen-off time is 1min, when the ratio of the number of invalid operation behaviors counted within the first preset time to the total number of times counted this time is greater than a second threshold, the screen-off time of the mobile terminal running the corresponding application program in the foreground is increased by 6s, and the adjusted screen-off time is 66 s; and in the second preset time, when the ratio of the number of times of invalid operation behaviors to the total number of times of the current statistics is greater than a second threshold, increasing the screen-off time of the application program operated by the mobile terminal in the foreground by 6s, and then adjusting the screen-off time to 72s.
Of course, the increased screen-off time may also be 7s, 9s, and so on, which is not limited in the embodiment of the present invention.
Of course, in the embodiment of the present invention, a person skilled in the art may also use other strategies to increase the screen-off time of the mobile terminal for running the corresponding application program in the foreground when the ratio of the number of invalid operation behaviors to the total number of times counted this time is greater than the second threshold, which is not limited in this embodiment of the present invention.
According to the screen turn-off time adjusting method provided by the embodiment of the invention, the operation behavior information of the application program running on the foreground of the mobile terminal in the preset time is obtained, the operation behavior information is classified and processed respectively, the counted effective operation behavior times and invalid operation behavior times are determined according to the classification result, the screen turn-off time of the mobile terminal when the application program runs on the foreground is adjusted according to the effective operation behavior times and the invalid operation behavior times, the dynamic adjustment of the screen turn-off time of the mobile terminal in different application scenes can be realized, the power consumption of the mobile terminal can be optimized, and the use experience of a user can be improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a screen turn-off time adjustment method according to a second embodiment of the present invention is shown, where the screen turn-off time adjustment method may be applied to a mobile terminal, and specifically may include the following steps:
step 201: and acquiring a plurality of operation behavior information of the application program operated on the foreground of the mobile terminal within preset time.
In the embodiment of the present invention, the Application refers to an APP (Application) installed in the mobile terminal, for example, a payment APP, a reading APP, and the like.
The preset time may be a time set by the mobile terminal system, or may be a time set by the user, which is not limited in this embodiment of the present invention. The preset time may be set to 2min, 6min, etc., which is not limited in the embodiment of the present invention.
The operation behavior information refers to an operation performed by a user on an application program running in the foreground of the mobile terminal, for example, when the user browses a webpage, the user clicks a link, a picture, a sliding screen, a blank of the webpage, and the like.
The embodiment of the invention does not consider the application program running in the background, and aims to count the operation behavior of the application program running in the foreground, namely, the operation behavior of the application program displayed on the screen of the mobile terminal.
After obtaining the operation behavior information of the application running in the foreground of the mobile terminal within the preset time, step 202 is entered.
Step 202: and classifying the operation behavior information respectively.
The operation behavior information of the user on the APP running in the foreground may include valid operation behavior information and invalid operation behavior information, and the valid operation behavior information may be, for example, when the user browses a webpage, the user clicks a link, a picture, a sliding screen, and other valid operations in the webpage. The invalid operation behavior information may be, for example, an invalid operation that the user clicks a blank of a browser web page when the user browses the web page, and aims to prolong a display time of a screen of the mobile terminal.
The obtained operation behavior information within the preset time can be classified according to the method, and the classification result of each operation behavior information can be determined.
After the classification processing is performed on each operation behavior information, the process proceeds to step 203.
Step 203: and respectively determining the number of times of the effective operation behaviors and the number of times of the ineffective operation behaviors counted at this time according to the classification result.
In the embodiment of the invention, the counted times of the effective operation behaviors and the times of the ineffective operation behaviors can be determined according to the classification result of each operation behavior.
After the number of valid operation behaviors and the number of invalid operation behaviors counted this time are determined, step 204 is entered.
Step 204: and adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors.
After the counted number of times of the effective operation behaviors and the counted number of times of the ineffective operation behaviors are determined, the screen-off time of the mobile terminal when the application program runs in the foreground can be adjusted according to the size relation between the number of times of the effective operation behaviors and the number of times of the ineffective operation behaviors. For example, when the number of times of the invalid operation behavior is greater than the number of times of the valid operation behavior, the screen-off time of the mobile terminal when the application program runs in the foreground is increased; and when the number of times of the effective operation behaviors is larger than that of the ineffective operation behaviors, the screen-off time of the mobile terminal when the application program runs in the foreground is reduced.
Of course, after the screen-off time of the mobile terminal running the application program in the foreground is increased or decreased once, the user operation behavior of the mobile terminal running the application program in the foreground can be counted again, and the screen-off time of the mobile terminal running the application program in the foreground is adjusted according to the counted number of valid operation behaviors and the counted number of invalid operation behaviors.
Step 205: and when the automatic screen-off condition occurs in the process of running the application program on the foreground of the mobile terminal, judging whether the screen-on switching operation exists within the threshold time after the automatic screen-off.
In the embodiment of the invention, whether the sound is generated in the process of running the application program in the foreground and the screen is automatically turned off can be monitored in real time, for example, the screen turning off time of the mobile terminal system is 30s, and the automatic screen turning off condition can occur when the user does not perform operation on the application program (except for the video application being played) running in the foreground within 30 s.
The threshold time may be a default time of the mobile terminal system, or may be a time set by the user, and the threshold time is a shorter time, for example, the threshold time set by the system default or the user may be 5s, 6s, and so on.
When the automatic screen-off condition occurs in the process of running the application program in the foreground, whether the user performs the switching operation from screen-off to screen-on the mobile terminal within the threshold time is monitored.
If there is a bright screen switching operation within the threshold time, step 206 is executed.
Step 206: and acquiring the times of the bright screen switching operation.
The number of times of the bright screen switching operation may be a number set by the mobile terminal system, or a number set by the user, which is not limited in the present invention.
Likewise, the number of bright screen switching operations may be 3 times, 5 times, and the like, and the embodiment of the present invention is not limited.
In the multiple acquisition of the same application program, if the automatic screen-off condition occurs, the times of the bright screen switching operation existing after the automatic screen-off are acquired.
After the number of times of the bright screen switching operation is acquired, step 207 is entered.
Step 207: and when the number of times of the bright screen switching operation reaches a set number of times, increasing the screen turn-off time according to a third set strategy.
The set number of times may be a number set by the mobile terminal system, or may be a number set by the user, and the set number of times may be 3 times, 5 times, or the like.
The setting manner and the number of times of setting the number of times may be set according to actual needs, which is not limited in the embodiment of the present invention.
The third setting policy may be a policy of gradually increasing the screen-off time of the application program corresponding to the mobile terminal running in the foreground. For example, the initial screen-off time is 1min, when the number of times of the screen-on switching operation reaches the set number of times, the screen-off time of the application program corresponding to the operation of the mobile terminal in the foreground is increased by 5s, and the adjusted screen-off time is 65 s; and when the mobile terminal is subjected to the automatic screen-off condition again and the bright screen switching operation occurs within the threshold time, the screen-off time of the application program running in the foreground of the mobile terminal is increased by 5s, and the adjusted screen-off time is 70s.
The increased screen-off time may also be 6s, 8s, and so on, which is not limited by the embodiment of the present invention.
Of course, in the embodiment of the present invention, a person skilled in the art may also use other strategies to increase the screen-off time of the mobile terminal running the corresponding application in the foreground when the switching operation from the automatic screen-off to the bright screen exists within the threshold time, which is not limited in this embodiment of the present invention.
When the number of times of the bright screen switching operation reaches the set number of times, it indicates that the user prolongs the screen-off time when the mobile terminal runs the application program in the foreground, and the screen-off time when the mobile terminal runs the application program in the foreground can be increased according to the third set strategy.
The screen-off time adjusting method provided by the embodiment of the invention has the beneficial effects that the screen-off time adjusting method disclosed in the first embodiment has the advantages that the screen-on switching operation existing within the threshold time when the automatic screen-off condition occurs in the process of running the application program in the foreground of the mobile terminal can be obtained, the screen-off time of the application program running in the foreground of the mobile terminal is increased according to the third set strategy when the number of times of the screen-on switching operation reaches the set number of times, and the use experience of a user is further increased.
EXAMPLE III
Referring to fig. 3, a schematic structural diagram of a screen turn-off time adjusting device according to a third embodiment of the present invention is shown, which may specifically include:
a behavior obtaining module 310, configured to obtain a plurality of pieces of operation behavior information of an application running on a foreground of the mobile terminal within a preset time; a classification processing module 320, configured to perform classification processing on each operation behavior information; the number determining module 330 is configured to determine the number of valid operation behaviors and the number of invalid operation behaviors according to the classification result; and the first time adjusting module 340 is configured to adjust the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors.
Preferably, the first time adjustment module 340 includes: the first time adjustment submodule is used for reducing the screen-off time according to a first set strategy when the ratio of the effective operation behavior times to the total counting times is larger than a first threshold; wherein 1/2 is less than or equal to the first threshold value < 1.
Preferably, the first time adjustment module 340 includes: the second time adjustment submodule is used for increasing the screen-off time according to a second set strategy when the ratio of the invalid operation behavior times to the total counting times is larger than a second threshold; wherein 1/2 is less than or equal to the second threshold value < 1.
According to the screen turn-off time adjusting device provided by the embodiment of the invention, the operation behavior information of the application program running on the foreground of the mobile terminal in the preset time is obtained, the operation behavior information is classified and processed respectively, the effective operation behavior frequency and the invalid operation behavior frequency counted at this time are determined according to the classification result, the screen turn-off time of the mobile terminal when the application program runs on the foreground is adjusted according to the effective operation behavior frequency and the invalid operation behavior frequency, the dynamic adjustment of the screen turn-off time of the mobile terminal in different application scenes can be realized, the power consumption of the mobile terminal can be optimized, and the use experience of a user can be improved.
Example four
Referring to fig. 4, a schematic structural diagram of a screen turn-off time adjusting device according to a fourth embodiment of the present invention is shown, which may specifically include:
a behavior obtaining module 410, configured to obtain a plurality of pieces of operation behavior information of an application running on a foreground of the mobile terminal within a preset time; a classification processing module 420, configured to perform classification processing on each operation behavior information; the number determining module 430 is configured to determine the number of valid operation behaviors and the number of invalid operation behaviors according to the classification result; a first time adjustment module 440, configured to adjust screen-off time when the mobile terminal runs the application in a foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors; a switching determination module 450, configured to determine whether a screen-on switching operation exists within a threshold time after an automatic screen-off when the automatic screen-off occurs during the process of running the application program in the foreground of the mobile terminal; the number of times obtaining module 460 is configured to obtain the number of times of the bright screen switching operation when the bright screen switching operation exists within the threshold time after the automatic screen blanking; and a second time adjusting module 470, configured to increase the screen turn-off time according to a third setting policy when the number of times of the on-screen switching operation reaches a set number of times.
The screen turn-off time adjusting device provided by the embodiment of the invention has the beneficial effects that the screen turn-off time adjusting device shown in the third embodiment has the advantages that the screen turn-off switching operation existing within the threshold time when the automatic screen turn-off occurs in the process of running the application program in the foreground of the mobile terminal can be obtained, the screen turn-off time of the application program running in the foreground of the mobile terminal is increased according to the third set strategy when the number of the screen turn-off switching operation reaches the set number, and the use experience of a user is further increased.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510, configured to obtain operation behavior information of an application running in a foreground of the mobile terminal within a preset time; classifying the operation behavior information; determining the number of times of effective operation behaviors and the number of times of ineffective operation behaviors which are counted at this time according to the classification result; and adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors.
In the embodiment of the invention, by acquiring a plurality of pieces of operation behavior information of an application program running on a foreground of the mobile terminal within a preset time, classifying each piece of operation behavior information respectively, determining the number of valid operation behaviors and the number of invalid operation behaviors counted this time respectively according to a classification result, and adjusting the screen-off time of the mobile terminal when the application program runs on the foreground according to the number of valid operation behaviors and the number of invalid operation behaviors, the dynamic adjustment of the screen-off time of the mobile terminal under different application scenes can be realized, the power consumption of the mobile terminal can be optimized, and the use experience of a user can be improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when being executed by the processor 510, the computer program implements each process of the foregoing screen-off time adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned screen turn-off time adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A screen-off time adjusting method is applied to a mobile terminal and is characterized by comprising the following steps:
acquiring a plurality of operation behavior information of the application program operated on the foreground of the mobile terminal within a preset time;
classifying the operation behavior information;
respectively determining the number of valid operation behaviors and the number of invalid operation behaviors counted at this time according to the classification result;
adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors;
adjusting the screen-off time of the mobile terminal when the application program is operated in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors, wherein the adjusting comprises the following steps:
and adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the size relation between the effective operation behavior times and the invalid operation behavior times.
2. The method according to claim 1, wherein the step of adjusting the screen-off time of the mobile terminal when the application program is operated in the foreground according to the obtained number of the valid operation behaviors and the obtained number of the invalid operation behaviors comprises:
when the ratio of the number of the effective operation behaviors to the total number of the statistics is larger than a first threshold, reducing the screen-off time according to a first set strategy; wherein 1/2 is less than or equal to the first threshold value < 1.
3. The method according to claim 1, wherein the step of adjusting the screen-off time of the mobile terminal when the application program is operated in the foreground according to the obtained number of the valid operation behaviors and the obtained number of the invalid operation behaviors comprises:
when the ratio of the invalid operation behavior times to the total times of the statistics is larger than a second threshold, increasing the screen-off time according to a second set strategy; wherein 1/2 is less than or equal to the second threshold value < 1.
4. The method according to claim 1, wherein after the step of adjusting the screen-off time of the mobile terminal when the application program is operated in the foreground according to the obtained number of valid operational behaviors and the obtained number of invalid operational behaviors, the method further comprises:
when the automatic screen-off condition occurs in the process of running the application program on the foreground of the mobile terminal, judging whether the screen-on switching operation exists within the threshold time after the automatic screen-off;
if yes, acquiring the number of times of the bright screen switching operation;
and when the number of times of the bright screen switching operation reaches a set number of times, increasing the screen turn-off time according to a third set strategy.
5. The utility model provides a time adjusting device that goes out screen which characterized in that includes:
the behavior acquisition module is used for acquiring a plurality of pieces of operation behavior information of an application program running on a foreground of the mobile terminal within preset time;
the classification processing module is used for classifying the operation behavior information;
the frequency determining module is used for respectively determining the frequency of the effective operation behaviors and the frequency of the ineffective operation behaviors counted at this time according to the classification result;
the first time adjusting module is used for adjusting the screen-off time of the mobile terminal when the application program runs in the foreground according to the obtained times of the effective operation behaviors and the times of the ineffective operation behaviors;
the first time adjustment module is specifically configured to adjust screen-off time of the mobile terminal when the application program is run in a foreground according to a size relationship between the number of times of the effective operation behavior and the number of times of the ineffective operation behavior.
6. The apparatus of claim 5, wherein the first time adjustment module comprises:
the first time adjustment submodule is used for reducing the screen-off time according to a first set strategy when the ratio of the effective operation behavior times to the total counting times is larger than a first threshold; wherein 1/2 is less than or equal to the first threshold value < 1.
7. The apparatus of claim 5, wherein the first time adjustment module comprises:
the second time adjustment submodule is used for increasing the screen-off time according to a second set strategy when the ratio of the invalid operation behavior times to the total counting times is larger than a second threshold; wherein 1/2 is less than or equal to the second threshold value < 1.
8. The apparatus of claim 5, further comprising:
the switching judgment module is used for judging whether the screen-on switching operation exists within the threshold time after the automatic screen-off when the automatic screen-off condition occurs in the process of running the application program on the foreground of the mobile terminal;
the number obtaining module is used for obtaining the number of times of the bright screen switching operation when the bright screen switching operation exists in the threshold time after the automatic screen off;
and the second time adjusting module is used for increasing the screen turn-off time according to a third set strategy when the number of times of the screen turn-on switching operation reaches a set number of times.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screen-off time adjustment method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the screen-off time adjustment method according to any one of claims 1 to 4.
CN201810445075.9A 2018-05-10 2018-05-10 Screen-off time adjusting method and device Active CN108646966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810445075.9A CN108646966B (en) 2018-05-10 2018-05-10 Screen-off time adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810445075.9A CN108646966B (en) 2018-05-10 2018-05-10 Screen-off time adjusting method and device

Publications (2)

Publication Number Publication Date
CN108646966A CN108646966A (en) 2018-10-12
CN108646966B true CN108646966B (en) 2020-06-30

Family

ID=63754214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810445075.9A Active CN108646966B (en) 2018-05-10 2018-05-10 Screen-off time adjusting method and device

Country Status (1)

Country Link
CN (1) CN108646966B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221633A (en) * 2019-10-31 2020-06-02 RealMe重庆移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
CN116909465B (en) * 2023-07-13 2024-03-15 广州昊旻晟电子技术有限公司 Interactive system and method of intelligent touch integrated machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850321A (en) * 2015-04-29 2015-08-19 深圳市金立通信设备有限公司 Terminal
CN105988678A (en) * 2015-02-27 2016-10-05 中兴通讯股份有限公司 Screen adjusting method and device, as well as terminal
CN106550126A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 The control device and method of mobile terminal and its screen intensity
CN106648326A (en) * 2016-12-28 2017-05-10 广东欧珀移动通信有限公司 Method for regulating screen-off time, and mobile terminal
CN107102799A (en) * 2017-04-27 2017-08-29 深圳天珑无线科技有限公司 A kind of method and its intelligent terminal for adjusting the screen time of going out
CN107707729A (en) * 2017-07-26 2018-02-16 努比亚技术有限公司 A kind of terminal go out screen or bright screen method, terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988678A (en) * 2015-02-27 2016-10-05 中兴通讯股份有限公司 Screen adjusting method and device, as well as terminal
CN104850321A (en) * 2015-04-29 2015-08-19 深圳市金立通信设备有限公司 Terminal
CN106550126A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 The control device and method of mobile terminal and its screen intensity
CN106648326A (en) * 2016-12-28 2017-05-10 广东欧珀移动通信有限公司 Method for regulating screen-off time, and mobile terminal
CN107102799A (en) * 2017-04-27 2017-08-29 深圳天珑无线科技有限公司 A kind of method and its intelligent terminal for adjusting the screen time of going out
CN107707729A (en) * 2017-07-26 2018-02-16 努比亚技术有限公司 A kind of terminal go out screen or bright screen method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108646966A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN108182043B (en) Information display method and mobile terminal
CN109067418B (en) Antenna control method and mobile terminal
CN108073343B (en) display interface adjusting method and mobile terminal
CN109871174B (en) Virtual key display method and mobile terminal
CN107886321B (en) Payment method and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN109831585B (en) Operation parameter adjusting method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN111562896B (en) Screen projection method and electronic equipment
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN109739394B (en) SAR value processing method and mobile terminal
CN108984145B (en) Brightness adjusting method and electronic equipment
CN108681413B (en) Control method of display module and mobile terminal
CN108509141B (en) Control generation method and mobile terminal
CN109343811B (en) Display adjustment method and terminal equipment
CN111343710A (en) Power adjustment method and electronic equipment
CN108646966B (en) Screen-off time adjusting method and device
CN108170310B (en) Touch screen control method and mobile terminal
CN108366171B (en) Temperature rise control method and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN111261128B (en) Screen brightness adjusting method and electronic equipment
CN110740265B (en) Image processing method and terminal equipment
CN110099170B (en) Picture deleting method and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN111328132A (en) Method for adjusting transmitting power and electronic equipment

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