CN112867119A - Terminal control method and device, terminal and storage medium - Google Patents

Terminal control method and device, terminal and storage medium Download PDF

Info

Publication number
CN112867119A
CN112867119A CN202110158598.7A CN202110158598A CN112867119A CN 112867119 A CN112867119 A CN 112867119A CN 202110158598 A CN202110158598 A CN 202110158598A CN 112867119 A CN112867119 A CN 112867119A
Authority
CN
China
Prior art keywords
terminal
time length
application
duration
weight
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
CN202110158598.7A
Other languages
Chinese (zh)
Other versions
CN112867119B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110158598.7A priority Critical patent/CN112867119B/en
Publication of CN112867119A publication Critical patent/CN112867119A/en
Application granted granted Critical
Publication of CN112867119B publication Critical patent/CN112867119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure provides a control method and device of a terminal, the terminal and a storage medium. The control method for the terminal provided by the embodiment of the disclosure comprises the following steps: acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off; determining a target time length according to the interval time length and the reference time length; and setting the target duration as an automatic screen locking time threshold of the terminal. In some embodiments of the present disclosure, by adjusting the automatic screen locking time threshold, under the condition that user experience is not reduced, power consumption of screen display is reduced, and the service life of the terminal is prolonged.

Description

Terminal control method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a terminal, and a storage medium.
Background
The size of a screen used by the intelligent terminal is larger and larger, taking a smart phone as an example, the size of the screen used is gradually developed from 3.5 inches in the early stage to the current mainstream 6-inch screen, along with the increase of the screen, the power consumption is increased, and the power consumption of the screen display is arranged at the head of the power consumption arrangement of the hardware of the smart phone.
Disclosure of Invention
The disclosure provides a control method and device of a terminal, the terminal and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a control method of a terminal, including:
acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off;
determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to historical interval time length;
and setting the target duration as an automatic screen locking time threshold of the terminal.
In some embodiments, the present disclosure provides a control apparatus of a terminal, including:
the acquisition unit is used for acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off;
the determining unit is used for determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to historical interval time length;
and the setting unit is used for setting the target duration as an automatic screen locking time threshold of the terminal.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
The control method for the terminal provided by the embodiment of the disclosure comprises the following steps: acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off; determining a target time length according to the interval time length and the reference time length; and setting the target time length as an automatic screen locking time threshold of the terminal. In some embodiments of the present disclosure, by adjusting the automatic screen locking time threshold, under the condition that user experience is not reduced, power consumption of screen display is reduced, and the service life of the terminal is prolonged.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a control method of a terminal according to an embodiment of the present disclosure.
Fig. 2 is a block diagram of a control device of a terminal according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
With the increase of the screen of the terminal and the increase of the electric quantity consumed by screen display, in the smart phone, the electric quantity consumed by the screen display is arranged at the head of the electric consumption of all hardware, so that the electric quantity consumed by the screen display is reduced, and the service life of the terminal can be prolonged. In the related art, the terminal is provided with an automatic screen locking time threshold, wherein the automatic screen locking time threshold refers to: for example, the mobile phone is usually set to automatically turn off the screen after no operation is detected for 1 continuous minute, reducing the automatic screen locking time threshold of the terminal can prolong the service life of the terminal, but blindly reducing the screen display duration may reduce the user experience.
As shown in fig. 1, fig. 1 is a flowchart of a control method of a terminal according to an embodiment of the present disclosure, including the following steps:
s11: and acquiring the time interval of the last operation of the terminal from the bright screen to the screen rest.
In some embodiments, the terminal being on the bright screen includes two situations, one being that the terminal is illuminated and the other being that the terminal is on the bright screen upon receiving the information. In some embodiments, the user may perform operations on the terminal after the screen is turned on, such as touch operations, key operations, and the like. Counting time from the time of screen lightening, counting the interval duration of the last operation before screen turning-off in the screen lightening period, for example, the terminal is operated and lightened from 1 point, the terminal is used by a user all the time in the period, the user manually turns off the screen at 1 point 10, the interval duration is 10 minutes, and if the user operates the last time at 1 point 9 without manually turning off the screen at 1 point 10, the interval duration is 9 minutes.
S12: and determining the target time length according to the interval time length and the reference time length.
In some embodiments, the reference duration is related to a historical interval duration, the historical interval duration is an interval duration obtained before, for example, a plurality of interval durations obtained in a previous period from the execution of step S12, the interval duration and the historical interval duration reflect the usage habits of the user, the target duration may be an interval duration obtained with the largest number of times of usage, if the duration after the terminal is operated is greater than the target duration, the user may not use the terminal with a high probability, and in a period in which the duration after the terminal is operated is less than the target duration, the user may still use the terminal with a high probability.
S13: and setting the target duration as an automatic screen locking time threshold of the terminal.
In some embodiments, the auto-lock screen time threshold refers to: and after the terminal is in the bright screen state, the terminal continuously does not detect the operation and automatically enters the time length of the screen-off state. In the related art, the automatic screen locking time threshold of the terminal is set by the user, but the automatic screen locking time threshold set by the user may not be the time length that is most matched with the use habit of the user, so that the time from the user not operating to the terminal automatically turning off the screen may be too long, and the waste of electric quantity may be caused. In some embodiments of the disclosure, the interval duration in the process of using the terminal by the user is acquired, and the interval duration of the last operation from the screen-on to the screen-off of the terminal is recorded, so that the automatic screen locking time threshold is adjusted to the duration which is most matched with the use habits of the user, the selection of the automatic screen locking time threshold is ensured to be proper, the use time of the terminal is prolonged under the condition that the use experience of the user is not reduced, the power consumption is reduced, and unnecessary waste is reduced.
In some embodiments of the present disclosure, the reference duration comprises a plurality of historical interval durations, and in some embodiments, the target duration is determined using the interval duration obtained last time and the plurality of historical interval durations obtained before, so that the target duration best conforms to the usage habits of the user. In some embodiments, the plurality of historical interval durations include historical interval durations within a preset period from the current time or include a preset number of historical interval durations from the current time. In some embodiments, by setting the preset period or the preset number, the amount of stored data can be reduced, the burden caused by storing a large amount of data is avoided, the use habit of the user is actually changed gradually, a large error may exist between the data of the too-long interval duration and the use habit of the user, and the interference of the value of the too-long interval duration on the accuracy of the target duration can be prevented by adopting the latest interval duration.
In other embodiments of the present disclosure, the reference duration includes a current automatic screen locking time threshold, where the current automatic screen locking time threshold refers to an automatic screen locking time threshold of the terminal when step S12 is not executed yet in step S13, and the automatic screen locking time threshold is related to the historical interval duration. In some embodiments of the present disclosure, determining the target duration based on the interval duration and the reference duration includes: determining a first weight of each time length according to the interval time length and the counting times of each time length in the multiple historical interval time lengths; and determining the time length with the maximum first weight as the target time length.
In some embodiments, a counting number of times may be set to correspond to a weight, the number of times each duration is counted corresponds to several first weights, the first weights reflect the usage frequency of each duration, and at this time, the duration with the largest first weight, that is, the interval duration with the largest number of times of usage by the user, is most matched with the usage habit of the user.
In some embodiments of the present disclosure, determining the target duration based on the interval duration and statistics of each of the plurality of historical interval durations includes: determining a first weight of each time length according to the interval time length and the counting times of each time length in the multiple historical interval time lengths; determining whether a maximum value of the first weight is greater than a weight threshold; if so, determining the time length with the maximum first weight as the target time length; if not, the automatic screen locking time threshold value is not changed.
In some embodiments, when the statistical data is less, the determined target duration may not correctly reflect the usage habit of the user, and at this time, if the automatic screen locking time threshold is adjusted, there may be a risk of inaccurate result, so it is set that the target duration is obtained only when there is a duration in which the first weight is greater than the preset weight, and since the first weight of the target duration is the largest, the first weight of the target duration is inevitably greater than the preset weight, so that it can be ensured that the target duration has been used by the user for multiple times, thereby ensuring that the result is not inaccurate due to insufficient statistical sample number.
In some embodiments of the present disclosure, after setting the target duration as the automatic screen locking time threshold of the terminal, the method further includes: monitoring whether the terminal is operated and lightened or not within a preset time after the terminal turns off the screen; and if so, reducing the first weight of the target duration.
In some embodiments, after the automatic screen locking time threshold is adjusted according to the target duration, if the user clicks and wakes up the screen within a short time after the terminal stops the screen, this indicates that the set automatic screen locking time threshold is likely to be inappropriate, and therefore, the weight of the target duration needs to be reduced. If the first weight of the target duration after the reduction of the first weight is not the maximum first weight, the interval duration with the maximum first weight can be obtained again and the automatic screen locking time threshold value can be adjusted again. In some embodiments, the operation lighting means that the terminal is lighted up after being operated, which is distinguished from the terminal automatically lighting up when receiving the notification message.
In some embodiments of the present disclosure, the control method of the terminal further includes: determining a current application used currently when the terminal is in a bright screen; and if the current application is the preset application, not reducing the automatic screen locking time threshold. In some embodiments, a preset application is preset, where the preset application may be an application selected by a user, and the automatic screen locking time threshold is not reduced when the application is used, and the application may be, for example, a reading application, a news application, or a video application, and the terminal may not be operated for a long time when the application is used, so that the automatic screen locking time threshold is not changed.
In some embodiments of the present disclosure, the control method of the terminal further includes: determining whether the terminal is in a use state currently or not in a terminal bright screen state; and if the terminal is in the use state, the automatic screen locking time threshold value is not reduced. In some embodiments, if it is detected that the terminal is in a use state, the automatic screen locking time threshold is not reduced even if the user does not operate the terminal for a long time, so as to avoid affecting the use of the user. Whether the terminal is used by a user can be detected through the infrared sensor or the camera, for example, the screen-on state of the terminal is detected, but no operation is detected, whether the user is looking at the content displayed by the terminal can be determined through the front-facing camera, so as to determine whether the terminal is used, at this moment, although the user does not operate the terminal, the terminal is in the use state, and the automatic screen locking time threshold value should not be reduced.
In some embodiments of the present disclosure, further comprising: in response to receiving the application notification message, determining a notification application corresponding to the application notification message; determining an automatic screen locking time threshold according to the notification application; the automatic screen locking time threshold is the time length from the terminal to the no-operation automatic screen turning-off when the application notification message is displayed. In some embodiments, the application notification message may be, for example, a notification sent by an application, and if the application notification message is received when the terminal is in a screen-off state, the application notification message is displayed in a screen-on state, in the related art, a time duration from the screen-on state when the application notification message is received to the screen-on state when the application notification message is received is fixed, in this embodiment, an automatic screen-locking time threshold is determined according to an application corresponding to the application notification message, so that a time duration from the screen-on state when the terminal receives the application notification message sent by the application to the screen-on state when the terminal receives the application notification message sent by the application is changed according to the application corresponding to the application notification message because the attention of different applications by the user, for a communication-type application, the user may compare the notification message sent by the user because the user is likely to be a message sent by other users, and for a, therefore, the automatic screen locking time threshold is adjusted according to the application corresponding to the application notification message, so that different automatic screen locking time thresholds can be presented after different application notification messages are received, more display time is given to the notification message of important application, and the display time is reduced for the notification message of unimportant application, so that the electric quantity is intelligently saved.
In some embodiments, after receiving the application notification message, the automatic screen locking time threshold is modified according to the notification application, and is only used for modifying the automatic screen locking time threshold back to the automatic screen locking time threshold adopted before receiving the application notification message after the screen lightening corresponding to the application notification message is finished in the screen lightening period corresponding to the received application notification message. For example, when the mobile phone is in a screen-off state, receives a message and then highlights the screen, and modifies the automatic screen-locking time threshold from the original 30 seconds to 10 seconds according to an application corresponding to the received message, the automatic screen-locking time threshold during the period of receiving the message and highlighting is 10 seconds, and the automatic screen-locking time threshold is modified back to the original 30 seconds after the screen is automatically locked after 10 seconds.
In some embodiments of the present disclosure, each application corresponds to a second weight, and the automatic screen locking time threshold is determined according to the second weight of the notification application; wherein different second weights correspond to different automatic screen locking time thresholds. In some embodiments, the second weight of the application may be set by the user, or may be set by default.
In some embodiments of the present disclosure, further comprising: in response to a first operation on the application notification message, a weight of the notification application is adjusted in accordance with the first operation. In some embodiments, the operation on the application notification message indicates how much the user values the application notification message, indicates that the user values the application notification message for the application if the user clicks, and indicates that the user values the application notification message if the user deletes the application notification message.
In some embodiments, further comprising: in response to a triggering operation on the application notification message, adjusting a second weight of the notification application to extend a corresponding automatic screen locking time threshold; in some embodiments, when the application notification message is triggered, the specific content of the application notification message is displayed, which indicates that the user is interested in it, and therefore the second weight of the notification application needs to be adjusted, so as to prolong the auto-lock time threshold corresponding to the notification application.
In some embodiments, further comprising: in response to a clear operation of the application notification message, adjusting a corresponding second weight of the notification application to shorten a corresponding automatic screen locking time threshold; in some embodiments, further comprising: in response to marking the application notification message as uninteresting, adjusting a second weight corresponding to the notification to shorten a corresponding auto-lock time threshold. In some embodiments, when an application notification message is made clear or marked as disinterested by the user, it is indicated that the user is not interested in it, and therefore the second weight corresponding to the notification application needs to be adjusted to reduce the auto-lock time threshold corresponding to the notification application.
In some embodiments of the present disclosure, as shown in fig. 2, a control apparatus of a terminal is provided, including:
the acquiring unit 10 is used for acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning off;
a determining unit 20, configured to determine a target duration according to the interval duration and a reference duration, where the reference duration is related to the historical interval duration;
and the setting unit 30 is configured to set the target duration as an automatic screen locking time threshold of the terminal.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method and apparatus of the present disclosure have been described above based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in the drawings is only an example and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While the figure illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, including:
acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off;
determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to the historical interval time length;
and setting the target duration as an automatic screen locking time threshold of the terminal.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, where the reference duration includes: a plurality of said historical interval durations; or, the reference duration includes: the current auto-lock screen time threshold.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, the plurality of history interval durations including: and presetting the historical interval duration in a period from the current moment, or presetting a plurality of historical interval durations from the current moment.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, which determines a target duration according to a statistical result of each interval duration, including:
determining a first weight of each time length according to the interval time length and the counting times of each time length in the plurality of historical interval time lengths; and determining the time length with the maximum first weight as the target time length.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal,
determining a target time length according to the current interval time length and the reference time length, wherein the step comprises the following steps:
determining a first weight of each time length according to the interval time length and the counting times of each time length in the plurality of historical interval time lengths;
determining whether a maximum value of the first weight is greater than a weight threshold;
if so, determining the time length with the maximum first weight as the target time length;
if not, the automatic screen locking time threshold value is not changed.
According to one or more embodiments of the present disclosure, a method for controlling a terminal is provided, where after setting a target duration as an automatic screen locking time threshold of the terminal, the method further includes:
monitoring whether the terminal is operated and lightened within a preset time after the terminal turns off the screen;
if so, reducing the first weight of the target duration.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, further including: determining a current application used currently when the terminal is in a bright screen;
and if the current application is the preset application, the automatic screen locking time threshold value is not changed.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, further including: determining whether the terminal is in a use state currently or not in a terminal bright screen state;
and if the terminal is in the use state, the automatic screen locking time threshold value is not reduced.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, further including: in response to receiving the application notification message, determining a notification application corresponding to the application notification message;
an automatic screen lock time threshold is determined according to the notification application.
According to one or more embodiments of the present disclosure, a control method of a terminal is provided, where each application corresponds to a second weight, and an automatic screen locking time threshold is determined according to the second weight of a notification application;
wherein different second weights correspond to different automatic screen locking time thresholds.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, further including: in response to a first operation on the application notification message, a second weight of the notification application is adjusted in accordance with the first operation.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, including:
in response to a trigger operation on the application notification message, adjusting a second weight of the notification application to extend a corresponding automatic screen locking time threshold;
and/or, in response to a clear operation for the application notification message, adjusting a second weight corresponding to the notification to shorten a corresponding automatic screen locking time threshold;
and/or, in response to marking the application notification message as uninteresting, adjusting a corresponding second weight of the notification application to shorten a corresponding auto-lock time threshold.
According to one or more embodiments of the present disclosure, there is provided a control apparatus of a terminal, including:
the acquisition unit is used for acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off;
the determining unit is used for determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to historical interval time length;
and the setting unit is used for setting the target duration as an automatic screen locking time threshold of the terminal.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor;
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (15)

1. A control method of a terminal, comprising:
acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off;
determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to historical interval time length;
and setting the target duration as an automatic screen locking time threshold of the terminal.
2. The method of claim 1,
the reference duration includes: a plurality of said historical interval durations; or the like, or, alternatively,
the reference duration includes: the current auto-lock screen time threshold.
3. The method of claim 2,
the plurality of historical interval durations comprises: and presetting the historical interval duration in a period from the current moment, or presetting a plurality of historical interval durations from the current moment.
4. The method of claim 2, wherein determining a target duration based on the interval duration and a reference duration comprises:
determining a first weight of each time length according to the interval time length and the counting times of each time length in the plurality of historical interval time lengths;
and determining the time length with the maximum first weight as the target time length.
5. The method according to claim 2, wherein determining a target duration based on the interval duration and a reference duration comprises:
determining a first weight of each time length according to the interval time length and the counting times of each time length in the plurality of historical interval time lengths;
determining whether a maximum value of the first weight is greater than a weight threshold;
if so, determining the time length with the maximum first weight as the target time length;
if not, the automatic screen locking time threshold value is not changed.
6. The method according to claim 4 or 5, wherein after setting the target duration as an automatic screen locking time threshold of the terminal, further comprising:
monitoring whether the terminal is operated and lightened or not within a preset time after the terminal turns off the screen;
and if so, reducing the first weight of the target duration.
7. The method of claim 1, further comprising:
determining a current application used currently when the terminal is in a bright screen state;
and if the current application is a preset application, not changing the automatic screen locking time threshold.
8. The method of claim 1, further comprising:
determining whether the terminal is in a use state currently or not in the terminal bright screen state;
and if the terminal is in a use state, the automatic screen locking time threshold value is not reduced.
9. The method of claim 1, further comprising:
in response to receiving an application notification message, determining a notification application corresponding to the application notification message;
and determining an automatic screen locking time threshold according to the notification application.
10. The method of claim 9,
each application corresponds to a second weight, and the automatic screen locking time threshold is determined according to the second weight of the notification application;
wherein different second weights correspond to different automatic screen locking time thresholds.
11. The method of claim 9, further comprising:
in response to a first operation on the application notification message, adjusting a second weight of the notification application in accordance with the first operation.
12. The method of claim 11, comprising:
in response to a triggering operation on the application notification message, adjusting a second weight of the notification application to extend a corresponding automatic screen locking time threshold;
and/or, in response to a clear operation of the application notification message, adjusting a corresponding second weight of the notification application to shorten a corresponding automatic screen locking time threshold;
and/or, in response to marking the application notification message as uninteresting, adjusting a second weight corresponding to the notification to shorten a corresponding auto-lock time threshold.
13. A control apparatus of a terminal, comprising:
the acquisition unit is used for acquiring the interval duration of the last operation of the terminal from the screen lightening to the screen turning-off;
the determining unit is used for determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to historical interval time length;
and the setting unit is used for setting the target duration as an automatic screen locking time threshold of the terminal.
14. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 12.
15. A storage medium for storing program code for performing the method of any one of claims 1 to 12.
CN202110158598.7A 2021-02-04 2021-02-04 Terminal control method, device, terminal and storage medium Active CN112867119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110158598.7A CN112867119B (en) 2021-02-04 2021-02-04 Terminal control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110158598.7A CN112867119B (en) 2021-02-04 2021-02-04 Terminal control method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112867119A true CN112867119A (en) 2021-05-28
CN112867119B CN112867119B (en) 2024-03-19

Family

ID=75989031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110158598.7A Active CN112867119B (en) 2021-02-04 2021-02-04 Terminal control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112867119B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089055A (en) * 2022-05-16 2023-05-09 荣耀终端有限公司 Resource scheduling method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090069056A1 (en) * 2007-09-11 2009-03-12 Lg Electronics Inc. Mobile terminal with variable display control
CN106155520A (en) * 2016-06-24 2016-11-23 广东欧珀移动通信有限公司 The method of a kind of duration adjustment and terminal
CN107728897A (en) * 2017-09-04 2018-02-23 珠海格力电器股份有限公司 A kind of method of adjustment and device of SOT state of termination change duration
CN107908273A (en) * 2017-11-14 2018-04-13 广东欧珀移动通信有限公司 application management method, device, storage medium and electronic equipment
CN110087287A (en) * 2019-04-23 2019-08-02 努比亚技术有限公司 Terminal searches control method, device, mobile terminal and the storage medium of net

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090069056A1 (en) * 2007-09-11 2009-03-12 Lg Electronics Inc. Mobile terminal with variable display control
CN106155520A (en) * 2016-06-24 2016-11-23 广东欧珀移动通信有限公司 The method of a kind of duration adjustment and terminal
CN107728897A (en) * 2017-09-04 2018-02-23 珠海格力电器股份有限公司 A kind of method of adjustment and device of SOT state of termination change duration
CN107908273A (en) * 2017-11-14 2018-04-13 广东欧珀移动通信有限公司 application management method, device, storage medium and electronic equipment
CN110087287A (en) * 2019-04-23 2019-08-02 努比亚技术有限公司 Terminal searches control method, device, mobile terminal and the storage medium of net

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089055A (en) * 2022-05-16 2023-05-09 荣耀终端有限公司 Resource scheduling method and device
CN116089055B (en) * 2022-05-16 2024-04-02 荣耀终端有限公司 Resource scheduling method and device

Also Published As

Publication number Publication date
CN112867119B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN107911798B (en) Message pushing method and device and terminal
CN109983458B (en) Recommendation method and terminal
CN111263176B (en) Loading method, device, terminal, server and storage medium for live broadcast room page
CN110658961A (en) Information display method and device and electronic equipment
CN110636459A (en) Message reminding method and device, electronic equipment and storage medium
CN110636367A (en) Video loading method and device, terminal equipment and medium
CN110633434A (en) Page caching method and device, electronic equipment and storage medium
CN113395572A (en) Video processing method and device, storage medium and electronic equipment
CN112464096A (en) Information processing method and device
US11564082B2 (en) Nomination of a primary cell phone from a pool of cell phones
CN110768861B (en) Method, device, medium and electronic equipment for obtaining overtime threshold
CN112256371A (en) Method and device for displaying information and electronic equipment
CN112867119A (en) Terminal control method and device, terminal and storage medium
CN111240834A (en) Task execution method and device, electronic equipment and storage medium
CN112860513A (en) Application non-response monitoring method, device, equipment and storage medium
CN113032172A (en) Abnormity detection method and device and electronic equipment
CN111867203B (en) Working mode switching method, device, equipment and medium of desk lamp
CN111935640B (en) Terminal control method and device, terminal and storage medium
CN114063843A (en) Interaction method, interaction device, electronic equipment, storage medium and computer program product
CN113886212A (en) User state control method and device, electronic equipment and storage medium
CN112806070B (en) Network power consumption adjusting method, network power consumption adjusting device and mobile terminal
CN112910855A (en) Sample message processing method and device
CN112269702A (en) Screen brightness adjusting method and device, electronic equipment and computer readable medium
CN110798377B (en) Monitoring image sending method and device, storage medium and electronic equipment
CN111625536B (en) Data access method and device

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