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

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

Info

Publication number
CN112867119B
CN112867119B CN202110158598.7A CN202110158598A CN112867119B CN 112867119 B CN112867119 B CN 112867119B CN 202110158598 A CN202110158598 A CN 202110158598A CN 112867119 B CN112867119 B CN 112867119B
Authority
CN
China
Prior art keywords
terminal
duration
time length
interval
application
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
CN202110158598.7A
Other languages
Chinese (zh)
Other versions
CN112867119A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a control method and device of a terminal, the terminal and a storage medium. The control method of 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 bright screen to the off-screen; determining a target duration according to the interval duration and the reference duration; 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, power consumption of screen display is reduced and a use duration of a terminal is prolonged without reducing user experience.

Description

Terminal control method, device, terminal and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a control method and device for a terminal, the terminal and a storage medium.
Background
The screen size used by the intelligent terminal is larger and larger, taking the intelligent mobile phone as an example, the screen size used is gradually developed from 3.5 inches in the early stage to a current main stream 6 inches screen, along with the increase of the screen, the power consumption is also increased, and the power consumption of the screen display is ranked at the first place in the power consumption ranking of the intelligent mobile phone hardware.
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 method for controlling a terminal, including:
acquiring the interval duration of the last operation of the terminal from the bright screen to the off-screen;
determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to a 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 before the terminal is switched on to off;
the determining unit is used for determining a target duration according to the interval duration and a reference duration, wherein the reference duration is related to the historical interval duration;
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 of 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 bright screen to the screen-off; determining a target duration according to the interval duration and the reference duration; the target duration is related to the historical interval duration, and the target duration is set 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, power consumption of screen display is reduced and a use duration of a terminal is prolonged without reducing user experience.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components 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 composition 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 have been shown in the accompanying 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 are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in and/or in parallel. Furthermore, 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 "including" and variations thereof as used herein are intended to be 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. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "a" and "an" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be construed as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The following describes in detail the schemes provided in the embodiments of the present application with reference to the accompanying drawings.
As the screen of the terminal is bigger and bigger, the electric quantity consumed by the screen display is increased, and in the smart phone, the electric quantity consumed by the screen display is arranged at the first place in all hardware electric consumption, so that the use time of the terminal can be prolonged by reducing the electric quantity consumed by the screen display. In the related art, a terminal is provided with an automatic screen locking time threshold, and the automatic screen locking time threshold is: the terminal is in the bright screen state, and the duration of entering the screen-extinguishing state automatically after no operation is detected is prolonged, for example, the mobile phone is generally set to automatically extinguish the screen after no operation is detected for 1 minute continuously, so that the automatic screen locking time threshold of the terminal is reduced, the use time of the terminal can be prolonged, the duration of screen display is reduced blindly, and the use experience of a user can be reduced.
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 steps of:
s11: and acquiring the interval duration of the last operation of the terminal from the bright screen to the off-screen.
In some embodiments, the terminal being on a bright screen includes two cases, one in which the terminal is lit up and the other in which the terminal receives information and the screen is bright. In some embodiments, after the screen is lit, the user may perform operations on the terminal, such as touch operations, key operations, and so on. Counting the interval duration of the last operation before screen-off in the period of screen-off starting from screen-off, for example, the terminal is operated to be lightened from 1 point, the user always uses the terminal, the interval duration is 10 minutes when the user manually screen-off at 1 point and 10 minutes, and the interval duration is 9 minutes when the user manually screen-off at 1 point and 9 minutes when the user finally operates but does not manually screen-off at 1 point and 10 minutes.
S12: and determining the target duration according to the interval duration and the reference duration.
In some embodiments, the reference duration is related to a historical interval duration, where the historical interval duration is a previously acquired interval duration, for example, a plurality of interval durations acquired in a period of time from execution of step S12, where the interval duration and the historical interval duration reflect usage habits of the user, the target duration may be an interval duration with the highest number of acquired uses, if the duration after the terminal is operated is greater than the target duration, the user does not use the terminal with a high probability, and if the duration after the terminal is operated is less than the target duration, the user still uses 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 time threshold refers to: and after the terminal is in the screen-lighting state, the time length for automatically entering the screen-extinguishing state without detecting the operation is continued. 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 which is the best matched with the use habit of the user, so that the time from the user to the automatic screen locking of the terminal is excessively long after the user does not operate, and the waste of electric quantity is caused. In some embodiments of the present disclosure, by acquiring an interval duration in a process of using a terminal by a user, recording an interval duration of last operation before a terminal is turned on to off, thereby adjusting an automatic screen locking time threshold to a duration most matched with a use habit of the user, thereby ensuring proper selection of the automatic screen locking time threshold, prolonging a use time of the terminal without reducing a use experience of the user, reducing power consumption, and reducing unnecessary waste.
In some embodiments of the present disclosure, the reference time period includes a plurality of historical interval time periods, and in some embodiments, the target time period is determined using the last acquired interval time period and the plurality of historical interval time periods acquired before, so that the target time period most coincides with the usage habit of the user. In some embodiments, the plurality of historical interval durations includes a historical interval duration within a predetermined period from a current time, or includes a predetermined number of historical interval durations from the current time. In some embodiments, by setting the preset period or the preset number, the amount of data stored can be reduced, the burden caused by storing a large amount of data is avoided, the usage habit of the user is actually gradually changed, the data of the too long interval time period may have a larger error with the usage habit of the user, and by adopting the latest interval time period, the interference that the value of the too long interval time period reaches the accuracy for the target time period can be prevented.
In other embodiments of the present disclosure, the reference duration includes a current auto-lock time threshold, where the current auto-lock time threshold refers to an auto-lock time threshold of the terminal when step S12 is not performed yet in step S13, where the auto-lock time threshold is related to a historical interval duration, in some embodiments, a user initially sets or uses a default auto-lock duration threshold, and then each time a screen is closed, an interval duration is acquired, and the auto-lock duration threshold is corrected by using the interval duration, so that the auto-lock time threshold used later is related to the interval duration, and because the auto-lock time threshold is corrected according to the acquired interval duration, the auto-lock time threshold gradually conforms to a usage habit of the user. In some embodiments of the present disclosure, determining the target duration from the interval duration and the reference duration includes: determining a first weight of each duration according to the interval duration and the statistical times of each duration in the plurality of historical interval durations; and determining the time length with the maximum first weight as the target time length.
In some embodiments, a number of statistics may be set to correspond to a weight, and the first weights corresponding to the counted time periods are several times, where the first weights reflect the use frequency of the time periods, and at this time, the time period with the largest first weight, that is, the interval time period with the largest number of times of use by the user, is most matched with the use habit of the user.
In some embodiments of the present disclosure, determining a target duration from statistics of the interval duration and each of a plurality of historical interval durations includes: determining a first weight of each duration according to the interval duration and the statistical times of each duration in the plurality of historical interval durations; determining whether a maximum value of the first weight is greater than a weight threshold; if yes, determining the time length with the maximum first weight as the target time length; if not, the automatic screen locking time threshold is not changed.
In some embodiments, when statistics data are 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 results, so the target duration is set to be obtained only when a duration with a first weight greater than a preset weight exists, and since the first weight of the target duration is the greatest, the first weight of the target duration is necessarily greater than the preset weight, so it can be ensured that the target duration has been used by the user multiple times, and it is ensured that inaccurate results cannot be caused due to insufficient number of counted samples.
In some embodiments of the present disclosure, after setting the target duration to the automatic screen locking time threshold of the terminal, the method further includes: monitoring whether the terminal is lightened by operation or not within a preset time length after the terminal is turned off; if yes, reducing the first weight of the target duration.
In some embodiments, after the auto-lock time threshold is adjusted according to the target duration, if the user clicks to wake up the screen in a short time after the terminal turns off the screen, this means that the set auto-lock time threshold is likely to be inappropriate, and thus the weight of the target duration needs to be reduced. If the first weight of the target duration after the first weight is reduced is not the largest first weight, the interval duration with the largest first weight can be reacquired, and the automatic screen locking time threshold value can be readjusted. In some embodiments, the operation lighting refers to the terminal lighting screen after being operated, which is different from the terminal receiving the notification message and automatically lighting screen.
In some embodiments of the present disclosure, the control method of the terminal further includes: determining a current application currently used when the terminal is on a bright screen; if the current application is the preset application, the automatic screen locking time threshold is not reduced. In some embodiments, preset applications are preset, where the preset applications may be applications selected by a user, and the automatic screen locking time threshold is not reduced when the applications are used, where the applications may be, for example, a reading application, a news application, or a video application, and when the applications are used, the terminal may not be operated for a long time, 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 in a terminal screen-lighting state; if the terminal is in a use state, the automatic screen locking time threshold is not reduced. In some embodiments, if it is detected that the terminal is in use, the auto-lock time threshold is not reduced even if the user has not operated the terminal for a long period of time, so as to avoid affecting the use of the user. Whether the terminal is used by a user or not can be detected through the infrared sensor or the camera, for example, in a terminal screen-on state, but no operation is detected, whether the terminal is used or not can be determined through the front-end camera by determining whether the user is looking at the content displayed by the terminal, and at the moment, the terminal is in a use state even though the user does not operate the terminal, and the automatic screen locking time threshold should not be reduced.
In some embodiments of the present disclosure, further comprising: responsive 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 duration from the terminal displaying the application notification message to the no-operation automatic screen-off. In some embodiments, the application notification message may be, for example, a notification sent by an application, when the terminal is in a screen-off state, if the application notification message is received, the application notification message will be displayed on a screen, and in related art, a duration from when the application notification message is received to when the application notification message is highlighted to when the application notification message is automatically screen-off 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 duration from when the terminal receives the application notification message sent by the application to when the application notification message is automatically screen-off will change according to the application corresponding to the application notification message, because the user focuses on different applications, for a communication application, the user will compare notification messages sent by the user with notification messages sent by other users, and for a game application, the user may not focus on notification messages sent by the user, so that the automatic screen locking time threshold is adjusted according to the application corresponding to the application notification message, thereby displaying different automatic screen locking time thresholds after receiving different application notification messages, giving more display time for important application notification messages, and for unimportant application notification messages, thereby intelligently saving power.
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 is on and the corresponding screen is on in the period of receiving the screen corresponding to the application notification message. For example, when the mobile phone is in the screen-off state, receives the message and lightens the screen, and modifies the automatic screen locking time threshold from original 30 seconds to 10 seconds according to the application corresponding to the received message, the automatic screen locking time threshold during the process of lightening the screen after the message is received is 10 seconds, and the automatic screen locking time threshold is modified back to original 30 seconds after the automatic screen locking after the message is received for 10 seconds.
In some embodiments of the present disclosure, each application corresponds to a second weight, and an automatic screen locking time threshold is determined according to the second weight of the notification application; wherein the different second weights correspond to different auto-lock time thresholds. In some embodiments, the second weight of the application may be set by the user himself or may be set by default.
In some embodiments of the present disclosure, further comprising: in response to a first operation of the application notification message, a weight of the notification application is adjusted according to the first operation. In some embodiments, the operation on the application notification message indicates that the user has a degree of importance to the application notification message, if the user clicks, indicates that the user has a greater importance to the application notification message of the application, and if the user deletes the application notification message, indicates that the user has no importance to the application notification message.
In some embodiments, further comprising: responding to the triggering operation of the application notification message, and adjusting a second weight of the notification application to prolong 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 the specific content, so that the second weight of the notification application needs to be adjusted, thereby prolonging the automatic screen locking time threshold corresponding to the notification application.
In some embodiments, further comprising: responding to the clearing operation of the application notification message, and adjusting a second weight corresponding to 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 not of interest, adjusting a second weight corresponding to the notification to shorten a corresponding auto-lock time threshold. In some embodiments, when the application notification message is clear or marked as not of interest, it is indicated that the user is not concerned with it, and therefore the second weight corresponding to the notification application needs to be adjusted, thereby reducing the automatic lock screen time threshold corresponding to the notification application.
In some embodiments of the present disclosure, as shown in fig. 2, a control device of a terminal is provided, including:
an acquiring unit 10, configured to acquire an interval duration of a last operation from a bright screen to a screen-off screen of the terminal;
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 embodiments of the device, reference is made to the description of method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the modules illustrated 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 this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The method and apparatus of the present disclosure are described above based on the embodiments and applications. 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 devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in the drawings is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 3, the electronic device 800 may include a processing means (e.g., a central processor, a graphics processor, etc.) 801, which may perform various appropriate actions and processes according to programs stored in a Read Only Memory (ROM) 802 or programs loaded from a storage 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 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 the bus 804.
In general, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While an electronic device 800 having various means is shown, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 801.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this 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 the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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 described above.
Computer program code for carrying out operations of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), 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. The 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 bright screen to the screen-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, the reference time length including: a plurality of said historical interval durations; or, the reference time period includes: 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, a plurality of the history interval durations including: the historical interval duration in a preset period from the current moment, or 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 statistics of respective interval durations, including:
determining a first weight of each time length according to the interval time length and the statistical times of each time length in a 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 duration according to the current interval duration and the reference duration, including:
determining a first weight of each time length according to the interval time length and the statistical 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 yes, determining the time length with the maximum first weight as the target time length;
if not, the automatic screen locking time threshold 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 to an automatic screen locking time threshold of the terminal, the method further includes:
monitoring whether the terminal is lightened by operation within a preset time length after the terminal is turned off;
if yes, 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 currently used when the terminal is on a bright screen;
if the current application is the preset application, the automatic screen locking time threshold 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 in a terminal screen-lighting state;
if the terminal is in a use state, the automatic screen locking time threshold is not reduced.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, further including: responsive to receiving the 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.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, each application corresponds to a second weight, and an automatic screen locking time threshold is determined according to the second weight of the notification application;
wherein the different second weights correspond to different auto-lock 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 of the application notification message, a second weight of the notification application is adjusted according to the first operation.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, including:
responding to the triggering operation of the application notification message, and adjusting the second weight of the notification application to prolong the corresponding automatic screen locking time threshold;
and/or, in response to a clear operation of the application notification message, adjusting a second weight corresponding to the notification to shorten a corresponding automatic screen locking time threshold;
and/or, responsive to marking the application notification message as not of interest, 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 before the terminal is switched on to off;
the determining unit is used for determining a target duration according to the interval duration and a reference duration, wherein the reference duration is related to the historical interval duration;
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 invoke the program code stored by the at least one memory to perform any of the methods described 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 of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although 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. In 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 limiting the scope of the present 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 example forms of implementing the claims.

Claims (12)

1. A control method of a terminal, comprising:
acquiring the interval duration of the last operation of the terminal from the bright screen to the off-screen;
determining a target time length according to the interval time length and a reference time length, wherein the reference time length is related to a historical interval time length, and the reference time length comprises: a plurality of the historical interval durations, the plurality of the historical interval durations comprising: the historical interval duration in a preset period from the current moment onwards, or a plurality of historical interval durations are preset from the current moment onwards;
setting the target duration as an automatic screen locking time threshold of the terminal;
wherein determining the target duration according to the interval duration and the reference duration includes: determining a first weight of each time length according to the interval time length and the statistical times of each time length in a plurality of historical interval time lengths; and determining the time length with the maximum first weight as the target time length.
2. The method of claim 1, wherein determining a target duration from the interval duration and a reference duration comprises:
determining a first weight of each time length according to the interval time length and the statistical 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 yes, determining the time length with the maximum first weight as the target time length;
if not, the automatic screen locking time threshold is not changed.
3. The method of claim 1, wherein after setting the target duration to the automatic screen locking time threshold of the terminal, further comprising:
monitoring whether the terminal is lightened by operation or not within a preset time length after the terminal is turned off;
if yes, reducing the first weight of the target duration.
4. The method as recited in claim 1, further comprising:
determining a current application currently used when the terminal is on a bright screen;
and if the current application is the preset application, the automatic screen locking time threshold is not changed.
5. The method as recited in claim 1, further comprising:
determining whether the terminal is currently in a use state or not in a terminal screen-lighting state;
and if the terminal is in a use state, the automatic screen locking time threshold is not reduced.
6. The method as recited in claim 1, further comprising:
responsive 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.
7. The method of claim 6, wherein the step of providing the first layer comprises,
each application corresponds to a second weight, and the automatic screen locking time threshold value is determined according to the second weight of the notification application;
wherein the different second weights correspond to different auto-lock time thresholds.
8. The method as recited in claim 7, further comprising:
and in response to a first operation on the application notification message, adjusting a second weight of the notification application according to the first operation.
9. The method according to claim 8, comprising:
responding to the triggering operation of the application notification message, and adjusting a second weight of the notification application to prolong a corresponding automatic screen locking time threshold;
and/or, in response to a clearing operation of the application notification message, adjusting a second weight corresponding to the notification application to shorten a corresponding automatic screen locking time threshold;
and/or, responsive to marking the application notification message as not of interest, adjusting a corresponding second weight of the notification application to shorten a corresponding auto-lock time threshold.
10. A control apparatus of a terminal, comprising:
the acquisition unit is used for acquiring the interval duration of the last operation before the terminal is switched on to off;
a determining unit, configured to determine a target duration according to the interval duration and a reference duration, where the reference duration is related to a historical interval duration, and the reference duration includes: a plurality of the historical interval durations, the plurality of the historical interval durations comprising: the historical interval duration in a preset period from the current moment onwards, or a plurality of historical interval durations are preset from the current moment onwards;
the setting unit is used for setting the target duration as an automatic screen locking time threshold of the terminal;
wherein determining the target duration according to the interval duration and the reference duration includes: determining a first weight of each time length according to the interval time length and the statistical times of each time length in a plurality of historical interval time lengths; and determining the time length with the maximum first weight as the target time length.
11. 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 by the at least one memory to perform the method of any of claims 1 to 9.
12. A storage medium for storing program code for performing the method of any one of claims 1 to 9.
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 CN112867119A (en) 2021-05-28
CN112867119B true 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)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 珠海格力电器股份有限公司 Method and device for adjusting state change duration of terminal
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101414609B1 (en) * 2007-09-11 2014-07-03 엘지전자 주식회사 Mobile terminal and method for controlling the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 珠海格力电器股份有限公司 Method and device for adjusting state change duration of terminal
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

Also Published As

Publication number Publication date
CN112867119A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN107911798B (en) Message pushing method and device and terminal
CN111488185B (en) Page data processing method, device, electronic equipment and readable medium
EP4216033A1 (en) Application operation mode switching method and apparatus, electronic device, and storage medium
CN110837343B (en) Snapshot processing method and device and terminal
CN114443897B (en) Video recommendation method and device, electronic equipment and storage medium
CN110633433B (en) Page caching method and device, electronic equipment and storage medium
CN110825481A (en) Method and device for displaying page information corresponding to page tag and electronic equipment
CN110633434B (en) Page caching method and device, electronic equipment and storage medium
CN113032172B (en) Abnormality detection method and device and electronic equipment
CN112272226A (en) Picture loading method and device and readable storage medium
CN110636367A (en) Video loading method and device, terminal equipment and medium
CN111177610A (en) Material display method and device, electronic equipment and storage medium
CN115103210B (en) Information processing method, device, terminal and storage medium
CN112464096A (en) Information processing method and device
CN112860513A (en) Application non-response monitoring method, device, equipment and storage medium
CN110768861B (en) Method, device, medium and electronic equipment for obtaining overtime threshold
CN114422482B (en) Message sending method and device, electronic equipment and storage medium
CN112867119B (en) Terminal control method, device, terminal and storage medium
CN111694629A (en) Information display method and device and electronic equipment
CN114063843A (en) Interaction method, interaction device, electronic equipment, storage medium and computer program product
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN111767136B (en) Process management method, terminal and device with storage function
CN116304427A (en) Preloading method and device, storage medium and electronic equipment
CN116319932A (en) Training method, device, equipment and storage medium of content push model
CN111867203B (en) Working mode switching method, device, equipment and medium of desk lamp

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