WO2019071565A1 - 锁屏方式切换方法、终端及计算机可读存储介质 - Google Patents
锁屏方式切换方法、终端及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2019071565A1 WO2019071565A1 PCT/CN2017/106033 CN2017106033W WO2019071565A1 WO 2019071565 A1 WO2019071565 A1 WO 2019071565A1 CN 2017106033 W CN2017106033 W CN 2017106033W WO 2019071565 A1 WO2019071565 A1 WO 2019071565A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- lock screen
- screen mode
- terminal
- current
- application
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
- G06F21/46—Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of electronic devices, and in particular, to a lock screen switching method, a terminal, and a computer readable storage medium.
- the terminal is provided with a lock screen mode
- the lock screen mode includes a lock screen style such as a password lock, a pattern lock, a fingerprint lock, a popularization of the lock screen mode, and a multi-function of the lock screen style.
- the function can be further developed.
- Terminal endurance has always been an important factor affecting the user experience.
- the user's usage habits are also a major factor affecting the terminal's battery life. Therefore, the terminal needs to make certain prompts for the user, so that the user can adjust the terminal's use. Plan to decide when to charge.
- the power grid on the top of the terminal screen is generally prompted.
- the problems in the prompt mode are: the prompt effect is poor, the user does not pay enough attention, and the user cannot adjust the terminal usage plan, so that the terminal cannot be charged or reduced in time.
- the necessary power consumption application will damage the terminal's endurance ability, thereby reducing the user's satisfaction with the terminal's battery life.
- the main purpose of the present invention is to provide a method for switching a lock screen mode, which aims to make the current power prompt mode poorly displayed, so that the terminal cannot be charged in time or reduce unnecessary power consumption applications, and the technical problem of the terminal endurance capability is impaired.
- the present invention provides a method for switching a lock screen mode, and the method for switching the lock screen mode includes:
- the step of performing a lock screen on the terminal according to the current lock screen manner includes:
- the background application is processed according to the application cleanup strength corresponding to the current lock screen mode.
- the step of performing a lock screen on the terminal according to the current lock screen manner includes:
- the step of determining the current lock mode corresponding to the current remaining power includes:
- the step of processing the background application according to the application cleaning strength corresponding to the current lock screen mode is performed.
- the step of processing the background application according to the application cleanup strength corresponding to the current lock screen mode according to the preset relationship between the preset lock screen mode and the application cleanup strength includes:
- the step of acquiring the current remaining power of the terminal includes:
- the step of acquiring the current remaining power of the terminal is performed.
- the step of receiving the lock screen command includes:
- the terminal is locked according to the current lock screen mode
- the screen is locked according to the original lock screen mode.
- the step of performing a lock screen on the terminal according to the current lock screen manner includes:
- the lock screen is displayed on the terminal by using the lock screen wallpaper corresponding to the current lock screen mode.
- the present invention further provides a terminal, the terminal comprising: a processor, a memory, and a lock screen mode switching program stored on the memory, wherein the lock screen mode switching program is used by the processor.
- the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a lock screen mode switching program, and the lock screen mode switching program is executed by a processor. The steps as described in the above method are achieved.
- the method for switching the lock screen mode obtains the current remaining power of the terminal, and determines the current lock screen mode corresponding to the current remaining power according to the corresponding relationship between the preset remaining power and the lock screen mode.
- the current remaining power status of the terminal is associated with the lock screen mode.
- the background application improves the battery life of the terminal battery and improves the user's satisfaction with the terminal battery life.
- FIG. 1 is a schematic structural diagram of hardware of a terminal implementing various embodiments of the present invention.
- FIG. 2 is a schematic flowchart of a first embodiment of a method for switching a lock screen according to the present invention
- FIG. 3 is a schematic flowchart of a second embodiment of a method for switching a lock screen according to the present invention.
- FIG. 4 is a schematic flowchart of a third embodiment of a method for switching a lock screen mode according to the present invention.
- FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a method for switching a lock screen according to the present invention.
- FIG. 1 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention.
- the terminal of the embodiment of the present invention can be implemented in various forms, including a PC, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, and a personal digital assistant (Personal Digital). Assistant, PDA), Portable Media Player (Portable Media) Player, PMP), wearable devices, such as AR/VR devices with networking capabilities, smart bracelets, pedometers and other mobile terminals.
- PDA Portable Media Player
- PMP Portable Media Player
- wearable devices such as AR/VR devices with networking capabilities, smart bracelets, pedometers and other mobile terminals.
- the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
- the communication bus 1002 is used to implement connection communication between these components.
- the user interface 1003 can include a display, an input unit such as a keyboard, a touch screen, a camera (including an AR/VR device), and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
- the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface, a Bluetooth interface, a probe interface, a 3G/4G/5G network communication interface, etc.).
- the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
- the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
- the terminal may further include an RF (Radio) Frequency, RF) circuits, audio circuits, wifi modules, and more.
- terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
- the memory 1005 as a computer storage medium may include a lock screen mode switching program, and the processor 1001 may call the lock screen mode switching program stored in the memory 1005 and perform the following operations:
- processor 1001 can call the lock screen mode switching program stored in the memory 1005, and also perform the following operations:
- the method includes:
- the background application is processed according to the application cleanup strength corresponding to the current lock screen mode.
- processor 1001 can call the lock screen mode switching program stored in the memory 1005, and also perform the following operations:
- the method includes:
- processor 1001 can call the lock screen mode switching program stored in the memory 1005, and also perform the following operations:
- the method After the step of determining the current lock mode corresponding to the current remaining power, the method includes:
- the step of processing the background application according to the application cleaning strength corresponding to the current lock screen mode is performed.
- processor 1001 can call the lock screen mode switching program stored in the memory 1005, and also perform the following operations:
- the step of acquiring the current remaining power of the terminal includes:
- the step of acquiring the current remaining power of the terminal is performed.
- processor 1001 can call the lock screen mode switching program stored in the memory 1005, and also perform the following operations:
- the step of receiving the lock screen command includes:
- the terminal is locked according to the current lock screen mode
- the screen is locked according to the original lock screen mode.
- processor 1001 can call the lock screen mode switching program stored in the memory 1005, and also perform the following operations:
- the method includes:
- the lock screen is displayed on the terminal by using the lock screen wallpaper corresponding to the current lock screen mode.
- the method for switching the lock screen mode includes:
- Step S10 obtaining the current remaining power of the terminal
- the step of acquiring the current remaining power of the terminal by the terminal processor may obtain the current remaining power of the terminal in real time, or obtain the preset time interval, such as the fixed interval equidistant time or the preset time, or the terminal power may be reached.
- the terminal processor is configured to perform the step of acquiring the current remaining power of the terminal. For example, when the power of the terminal changes greatly, that is, when the power consumption of the terminal is fast, the terminal processor is triggered to obtain the current remaining power of the terminal.
- the terminal processor may be triggered to acquire the current remaining power of the terminal when the user control terminal enters the lock screen state or the terminal automatically enters the lock screen state.
- Step S11 determining a current lock screen mode corresponding to the current remaining power according to a preset relationship between the remaining power and the lock screen mode;
- the corresponding relationship is a mapping table structure, which can be preset by the terminal system, or can be set by the user autonomously, or can be set by the lock screen mode switching program developer.
- the lock screen mode includes but is not limited to a combination lock, a pattern lock, a fingerprint lock, and the like.
- the remaining power is different, and the corresponding lock screen is different. In an embodiment, it can be as shown in Table 1 below: remaining battery Lock screen mode 100%-40% Fingerprint lock 39%-11% Pattern lock 10%-0 password
- Step S12 receiving a lock screen command, and locking the terminal according to the current lock screen mode.
- the terminal processor When the user inputs a lock screen command, such as pressing the terminal switch button, or when the user does not use the terminal for a long time, the terminal processor triggers the lock screen command, and the terminal automatically enters the lock screen mode. At this time, the current remaining battery capacity should be corresponding. The current lock screen mode lock screen.
- the current remaining power of the terminal is obtained, and according to the corresponding relationship between the preset remaining power and the lock screen mode, the current lock screen mode corresponding to the current remaining power is determined, and the current remaining power state of the terminal is associated with the lock screen mode.
- the terminal receives the lock screen command, the terminal locks the screen according to the current lock screen mode, so that the current lock screen mode of the terminal can reflect the power usage situation, because the number of lock screens is large, and because the lock screen is used by the user.
- the first threshold so the user is reminded more times, and the prompt effect is better, can effectively urge / remind the user to timely charge or adjust the terminal usage in time or close the non-essential background application, thereby improving the battery life of the terminal battery, Improve user satisfaction with terminal battery life.
- the method includes:
- Step S13 determining whether the current remaining power reaches a critical value
- Step S14 if the current remaining power reaches a critical value, performing the step of determining the current lock mode corresponding to the current remaining power;
- Step S15 If the current remaining power does not reach the threshold, the step of acquiring the current remaining power of the terminal is performed.
- the threshold value refers to the value of the power that is about to change according to the lock screen mode. As shown in the example shown in Table 1, 39% and 10% are critical values. When the remaining power is less than 39%, the lock screen mode changes from fingerprint lock to pattern lock. When the remaining power is less than 10%, the lock screen mode changes from the pattern lock to the password lock. At this time, the lock screen mode should be changed, and the lock screen mode corresponding to the current remaining power needs to be further determined, that is, the step of determining the current lock screen mode corresponding to the current remaining power amount is performed.
- the lock screen mode does not need to be changed, and there is no need to determine the lock screen mode corresponding to the current remaining power, that is, the step of determining the current lock screen corresponding to the current remaining power is not required. And continuing to perform the step of obtaining the current remaining power of the terminal until it is detected that the current remaining power reaches a critical value.
- the current lock mode corresponding to the current remaining power is determined, instead of determining the current lock corresponding to the current remaining power immediately after acquiring the current remaining power of the terminal.
- the screen mode enables the terminal to obtain the lock screen mode corresponding to the current remaining power only when the lock screen mode needs to be switched, thereby reducing the terminal's useless work, saving power, and when the power reaches the critical value required to switch the lock screen mode. Get the current remaining power in time, and switch the lock screen mode.
- the step S12 includes:
- step S20 according to the corresponding relationship between the preset lock screen mode and the application cleanup strength, the background application is processed according to the application cleanup strength corresponding to the current lock screen mode.
- the application cleanup strength can be characterized by the number of background applications that can be retained, or the background application functionality that can be retained, and in some embodiments, the application cleanup strength can characterize a combination of the two.
- the application cleanup strength characterizes the number of background applications that can be retained.
- the application cleanup strength is divided into first, second, and third levels.
- the number of reserved background applications in the first level is 10, and the first level can basically retain all current background applications; the number of reserved background applications in the second level is 5, and the second level can retain some background applications, and the retained applications may be commonly used by users.
- the application can also be a low-power application; the number of reserved background applications for level 3 is 0, and the third level will be all non-required background applications (the background application must be the system program required for the terminal to run normally) shut down.
- the application cleanup strength refers to a backend application function that can be retained.
- the application cleanup strength is divided into first, second, and third levels.
- the browser When the application cleanup strength is one level, the browser can use all functions normally, including playing audio video, displaying pictures, background downloading, etc.; when the application cleanup intensity is two, the browser plays the audio video and the background.
- the downloaded function is forbidden; when the application cleanup strength is three levels, the browser's display image function is disabled, and only text and display text can be loaded.
- application cleanup strength refers to a combination of the number of background applications that can be retained and the backend application functionality that can be retained.
- the application cleanup intensity is divided into first, second, and third levels.
- the application cleanup strength is one level, only some application functions are restricted, and any application is not completely closed; when the application cleanup strength is two levels, the common application is retained and the function is restricted, and other very useful applications are closed; Close all applications when the cleanup strength is level 3.
- the above examples are only one embodiment, and there are other combinations.
- the application cleanup strength characterizes a particular application that can be retained. Specifically, for example, the application cleanup intensity is divided into first, second, and third levels. When the application cleanup strength is one level, the application whose power consumption is greater than the first preset value is turned off; when the application cleanup strength is two levels, the application whose power consumption is greater than the second preset value is turned off; when the application cleanup strength is three When the level is off, the application whose power consumption is greater than the third preset value is turned off.
- the specific application can also be determined according to the frequency of use by the user, such as a common application and an infrequently used application.
- the corresponding relationship may be a mapping table structure, which may be preset by the terminal system, or may be set by the user autonomously, or may be set by the lock screen mode switch program developer.
- Different remaining powers correspond to different lock screen modes, and different lock screen modes correspond to different application cleanup strengths.
- Table 2 below. remaining battery Lock screen mode Application cleanup strength 100%-40% Fingerprint lock First level 39%-11% Pattern lock Secondary 10%-0 password Third level
- the application cleanup strength only represents the number of background applications that can be retained, and the application cleanup strength is divided into first, second, and third levels. .
- the number of reserved background applications in the first level is 10, the number of reserved background applications corresponding to the second level is 5, the number of reserved background applications corresponding to the third level is 0, and the third level will be all non-required background applications (required background)
- the application is shut down for the system program required for the terminal to function properly.
- the current remaining power (remaining power) obtained by the terminal is 20%, and the corresponding lock screen mode is a pattern lock, and the application cleanup strength is two levels, and the number of background applications that can be reserved is 5, and if the lock screen mode is used, the number of background applications is less than or If it is equal to 5, there is no need to perform any operations on the background application. If the number of background applications is greater than 5, some background applications need to be closed, leaving only 5.
- the terminal when the user performs the lock screen operation (such as pressing the key) or the terminal automatically enters the lock screen state, that is, when the terminal receives the lock screen command, the terminal performs the background application according to the application cleanup strength.
- the limit of the number if the terminal does not enter the lock screen state, even if the terminal application cleanup intensity changes greatly (such as the remaining power changes from 30% to 9%, the application cleanup strength becomes three levels), the current background application of the terminal is still Will be retained and will not change. That is, after the screen is locked, the background application is processed according to the application cleanup strength to reduce the power consumption speed and save power.
- the lock screen mode is associated with the application cleanup strength, and then the power status is correlated with the application cleanup strength, so that the terminal enters the lock screen state or is about to enter the lock screen.
- the corresponding application cleanup strength is determined according to the current lock screen mode or the current remaining power state, thereby saving power reasonably. The more times the user uses the terminal, the more times the terminal enters the lock screen state, and the lock screen is combined with the background application cleanup. It can not only clean up the background application in time, but also eliminate the need for users to perform unnecessary operations.
- the step S12 includes:
- Step S30 the duration of the time that the terminal is in the lock screen state is counted
- Step S31 determining whether the duration of the duration is greater than a preset threshold
- Step S32 if the duration is greater than the preset threshold, performing the step of processing the background application according to the application cleanup strength corresponding to the current lock screen mode according to the corresponding relationship between the preset lock screen mode and the application cleanup strength.
- Step S33 if the duration is less than a preset threshold, maintaining the background application to run normally.
- the duration of the duration of the lock screen is calculated according to the current lock screen mode, and the duration of the terminal in the lock screen state is counted.
- the preset threshold may be preset by the terminal system, or may be set by the user autonomously, or may be set by the program developer by the lock screen mode. If the duration of the duration is greater than the preset threshold, the duration of the terminal in the lock screen state is not short, and the user does not use the terminal in a short time. At this time, many background applications can be closed or functionally restricted; if the duration is long If the threshold is less than the preset threshold, the step of processing the background application according to the application cleanup strength corresponding to the current lock screen mode is not performed, and the background application is maintained to operate normally.
- the step of the application clearing strength processing background application corresponding to the current lock screen mode is performed when the duration of the duration of the terminal is greater than the preset threshold, and the step is performed at the terminal.
- the background application can be processed according to the application cleanup strength corresponding to the current lock screen mode at a suitable time.
- the background application can be maintained normally without affecting the user. Use experience.
- the step S11 includes:
- Step S40 if receiving an edit instruction of the editable background application available state input by the user, processing the background application according to the edit instruction;
- step S41 if the editing instruction of the editing background application available state input by the user is not received, the step of processing the background application according to the application cleaning strength corresponding to the current lock screen mode is performed.
- the terminal processor outputs a list of currently running background applications, and the terminal can edit the list.
- Background application available status and available, unavailable, partially available, editing instructions for editing the available state of the background application that is, the setting instructions for the background application available/unavailable/partially available by the user for the specific background application, the user may
- An edit instruction is input, which may be a selection option mode.
- the background application is processed according to the default setting, that is, the performing according to the current lock screen mode is performed.
- the application cleanup strength handles the steps of the background application.
- the user only edits some background applications, and the application edited by the user may be directly processed according to the editing instruction input by the user; for the background application that is not edited by the user, the current lock screen mode may be directly followed.
- the corresponding application cleanup strength processes the background application that the user has not edited.
- the background application by determining whether an editing instruction of the editing background application available state input by the user is received, when the editing instruction input by the user is received, the background application is processed according to the editing instruction input by the user, so that the user can The user needs to edit the available state of the background application, so that the energy-saving design of the terminal is more in line with the user's needs; if the editing instruction of the editing background application available state input by the user is not received, the application cleaning according to the current lock screen mode is executed.
- the step of intensifying the background application that is, the background application that the user has not edited, can be processed according to the system default settings. By distinguishing the processing methods of the background application, the background application can obtain a better processing method, taking into consideration energy saving and user experience.
- the step S20 includes:
- Step S50 Obtain a preset whitelist, and determine, according to the whitelist, an unprocessed application in the background application;
- Step S51 processing an application other than the processing-free application in the background application according to the application cleanup strength corresponding to the current lock screen mode.
- the preset white list may be preset by the terminal system, or may be set by the user autonomously, or may be set by the program developer by the lock screen mode.
- a process-free application in a background application refers to a background application that is not processed according to the application cleanup strength.
- the whitelist is set, so that the terminal can always keep the background application necessary for the normal operation of the system, and can also retain the background application that the user wishes to keep, and save power and the normal operation of the system and user requirements.
- the step of receiving the lock screen command in the step S12 includes:
- Step S60 output a lock screen mode switching prompt, and determine, according to the user's instruction to switch the prompt input according to the lock screen mode, whether the user agrees to switch the lock screen mode;
- Step S61 if the user agrees to switch the lock screen mode, the terminal is locked according to the current lock screen mode;
- step S62 if the user does not agree to switch the lock screen mode, the screen is locked according to the original lock screen mode.
- the terminal After receiving the lock screen command, the terminal outputs a lock screen mode switching prompt, and the user can understand that the current remaining power condition is at a critical value that needs to switch the lock screen mode. However, the user may not want to switch the lock screen mode.
- the user may determine whether to switch the lock screen mode, and if the user agrees, switch the lock screen mode; if the user does not agree to switch the lock mode In the screen mode, the screen is locked according to the original lock screen mode. In one embodiment, even if the screen is locked according to the original lock screen mode, the application cleanup intensity is still determined according to the current remaining power condition. In another embodiment, the application cleanup strength is applied. Determined according to the original lock screen mode.
- the lock screen mode switching prompt is output, and the user selects whether to switch the lock screen mode, thereby further conforming to the user requirements and improving the user experience.
- the step S12 includes:
- step S70 according to the corresponding relationship between the preset lock screen mode and the lock screen wallpaper, the lock screen is displayed on the terminal by using the lock screen wallpaper corresponding to the current lock screen mode.
- the corresponding relationship may be a mapping table, which may be preset by the terminal system, or may be set by the user autonomously, or may be set by the lock screen mode switch program developer. Different remaining powers correspond to different lock screen modes, and different lock screen modes correspond to different lock screen wallpapers.
- the lock screen wallpaper can be a static wallpaper, a live wallpaper in a fixed mode, or a live wallpaper that changes with external touch.
- the power consumption of the three methods is increasing. When the remaining power is large, the lock screen display can use power consumption.
- the large lock screen wallpaper can enrich the display effect of the terminal and enhance the user experience; when the remaining power is small, the lock screen display can use a lock screen wallpaper with low power consumption, which can save power.
- Table 3 is an embodiment: remaining battery Lock screen wallpaper 100%-40% Live wallpaper that changes with external touch 39%-11% Fixed mode live wallpaper 10%-0 Static wallpaper
- the lock screen wallpaper with different power consumption is used, and when the power of the terminal is sufficient, the wallpaper with large power consumption but good display effect can be used to improve the user experience; When it is not enough, use a wallpaper with low power consumption to save power. Improve the user experience by taking into account the display effect and power saving.
- the embodiment of the present invention further provides a computer readable storage medium, where the lock screen mode switching program is stored on the computer readable storage medium, and the lock screen mode switching program is executed by the processor to implement the foregoing embodiment.
- the steps described are detailed in the above embodiments, and will not be described again.
- a terminal device can be a fixed terminal, such as IoT smart devices, including smart air conditioners, smart lights, smart power supplies, smart routers, etc.; or mobile Terminals, including smart phones, wearable networked AR/VR devices, smart speakers, self-driving cars, and the like, perform a method as described in various embodiments of the present invention.
- IoT smart devices including smart air conditioners, smart lights, smart power supplies, smart routers, etc.
- mobile Terminals including smart phones, wearable networked AR/VR devices, smart speakers, self-driving cars, and the like, perform a method as described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明公开了一种锁屏方式切换方法,所述锁屏方式切换方法包括:获取终端的当前剩余电量;根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式;接收锁屏指令,按照所述当前锁屏方式对终端进行锁屏。本发明还公开了一种终端和计算机可读存储介质。本发明提醒效果较好,可有效提醒用户及时充电或及时调整终端使用情况或者关闭非必要的后台应用,进而提高终端电池的续航能力,提升用户对终端电池续航能力的满意度。
Description
技术领域
本发明涉及电子设备领域,尤其涉及一种锁屏方式切换方法、终端及计算机可读存储介质。
背景技术
出于保护隐私、避免误操作等考虑,终端均设置有锁屏模式,锁屏模式包括密码锁、图案锁、指纹锁等锁屏样式,锁屏模式的普及以及锁屏样式的多元使得锁屏功能还可进一步开发。
终端续航能力一直是影响用户体验的重要因素,除了终端电池本身性能强弱外,用户的使用习惯也是影响终端续航能力一大因素,因而需要终端对用户做出一定提示,以便用户调整终端的使用计划,决定何时充电。现有设计中,一般是在终端屏幕顶端的电源格子进行提示,这样的提示方式存在的问题有:提示效果差,用户不够重视,无法影响用户调整终端使用计划,使得终端无法及时充电或者减少不必要的耗电应用,有损终端续航能力,进而降低用户对终端续航能力的满意度。
发明内容
本发明的主要目的在于提供一种锁屏方式切换方法,旨在现有电量提示方式提示效果差,使得终端无法及时充电或者减少不必要的耗电应用,有损终端续航能力的技术问题。
为实现上述目的,本发明提供一种锁屏方式切换方法,所述锁屏方式切换方法包括:
获取终端的当前剩余电量;
根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式;
接收锁屏指令,按照所述当前锁屏方式对终端进行锁屏。
在一种可选的实施方式中,所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:
根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用。
在一种可选的实施方式中,所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:
统计终端处于锁屏状态的持续时长,判断所述持续时长是否大于预设阈值;
若所述持续时长大于预设阈值,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
在一种可选的实施方式中,所述确定所述当前剩余电量对应的当前锁屏方式的步骤之后包括:
若接收到用户输入的编辑后台应用可用状态的编辑指令,根据所述编辑指令处理后台应用;
若未接收到用户输入的编辑后台应用可用状态的编辑指令,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
在一种可选的实施方式中,所述根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤包括:
获取预置白名单,根据所述白名单确定后台应用中的免处理应用;
按照与所述当前锁屏方式对应的应用清理强度处理后台应用中所述免处理应用以外的应用。
在一种可选的实施方式中,所述获取终端的当前剩余电量的步骤之后包括:
判断所述当前剩余电量是否达到临界值;
若所述当前剩余电量达到临界值,则执行所述确定所述当前剩余电量对应的当前锁屏方式的步骤;
若所述当前剩余电量未达到临界值,则执行所述获取终端的当前剩余电量的步骤。
在一种可选的实施方式中,所述接收锁屏指令的步骤之后包括:
输出锁屏方式切换提示,根据用户基于所述锁屏方式切换提示输入的指令,判断用户是否同意切换锁屏方式;
若用户同意切换锁屏方式,则按照所述当前锁屏方式对终端进行锁屏;
若用户不同意切换锁屏方式,则按照原锁屏方式锁屏。
在一种可选的实施方式中,所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:
根据预先设置的锁屏方式与锁屏壁纸的对应关系,采用与所述当前锁屏方式对应的锁屏壁纸对终端进行锁屏显示。
此外,为实现上述目的,本发明还提供一种终端,所述终端包括:处理器、存储器及存储在所述存储器上的锁屏方式切换程序,所述锁屏方式切换程序被所述处理器执行时实现如上述方法所述的步骤。
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有锁屏方式切换程序,所述锁屏方式切换程序被处理器执行时实现如上述方法所述的步骤。
本发明实施例提出的一种锁屏方式切换方法,通过获取终端的当前剩余电量,并根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式,将终端当前剩余电量情况与锁屏方式关联,在终端接收锁屏指令时,按照所述当前锁屏方式对终端进行锁屏,使得终端当前锁屏方式可以反映电量使用情况,因为锁屏次数较多,且因为锁屏是用户使用终端的第一道门槛,所以用户被提醒的次数较多,且提示效果较好,可有效督促/提醒用户及时充电或及时调整终端使用情况或者关闭非必要的后台应用,进而提高终端电池的续航能力,提升用户对终端电池续航能力的满意度。
附图说明
图1是实现本发明各个实施例的终端的硬件结构示意图;
图2为本发明锁屏方式切换方法第一实施例的流程示意图;
图3为本发明锁屏方式切换方法第二实施例的流程示意图;
图4为本发明锁屏方式切换方法第三实施例的流程示意图;
图5为本发明锁屏方式切换方法第五实施例的流程示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。
如图1所示,图1为实现本发明各个实施例的终端的硬件结构示意图。
本发明实施例终端可以以各种形式来实施,包括PC,手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital
Assistant,PDA)、便捷式媒体播放器(Portable Media
Player,PMP)、可穿戴类设备,如带联网功能的AR/VR设备、智能手环、计步器等移动终端。
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard)、触摸屏、摄像头(包括AR/VR设备),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口、蓝牙接口、探针接口、3G/4G/5G联网通信接口等)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。可选地,终端还可以包括RF(Radio
Frequency,射频)电路、音频电路、wifi模块等等。
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括锁屏方式切换程序,处理器1001可调用存储器1005中存储的锁屏方式切换程序,并执行以下操作:
获取终端的当前剩余电量;
根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式;
接收锁屏指令,按照所述当前锁屏方式对终端进行锁屏。
进一步地,处理器1001可以调用存储器1005中存储的锁屏方式切换程序,还执行以下操作:
所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:
根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用。
进一步地,处理器1001可以调用存储器1005中存储的锁屏方式切换程序,还执行以下操作:
所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:
统计终端处于锁屏状态的持续时长,判断所述持续时长是否大于预设阈值;
若所述持续时长大于预设阈值,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
进一步地,处理器1001可以调用存储器1005中存储的锁屏方式切换程序,还执行以下操作:
所述确定所述当前剩余电量对应的当前锁屏方式的步骤之后包括:
若接收到用户输入的编辑后台应用可用状态的编辑指令,根据所述编辑指令处理后台应用;
若未接收到用户输入的编辑后台应用可用状态的编辑指令,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
所述根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤包括:
获取预置白名单,根据所述白名单确定后台应用中的免处理应用;
按照与所述当前锁屏方式对应的应用清理强度处理后台应用中所述免处理应用以外的应用。
进一步地,处理器1001可以调用存储器1005中存储的锁屏方式切换程序,还执行以下操作:
所述获取终端的当前剩余电量的步骤之后包括:
判断所述当前剩余电量是否达到临界值;
若所述当前剩余电量达到临界值,则执行所述确定所述当前剩余电量对应的当前锁屏方式的步骤;
若所述当前剩余电量未达到临界值,则执行所述获取终端的当前剩余电量的步骤。
进一步地,处理器1001可以调用存储器1005中存储的锁屏方式切换程序,还执行以下操作:
所述接收锁屏指令的步骤之后包括:
输出锁屏方式切换提示,根据用户基于所述锁屏方式切换提示输入的指令,判断用户是否同意切换锁屏方式;
若用户同意切换锁屏方式,则按照所述当前锁屏方式对终端进行锁屏;
若用户不同意切换锁屏方式,则按照原锁屏方式锁屏。
进一步地,处理器1001可以调用存储器1005中存储的锁屏方式切换程序,还执行以下操作:
所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:
根据预先设置的锁屏方式与锁屏壁纸的对应关系,采用与所述当前锁屏方式对应的锁屏壁纸对终端进行锁屏显示。
参照图2,在本发明锁屏方式切换方法第一实施例中,所述锁屏方式切换方法包括 :
步骤S10,获取终端的当前剩余电量;
由终端处理器执行所述获取终端的当前剩余电量的步骤,可实时获取终端当前剩余电量,或者间隔预设时间获取,如间隔固定等距时间或者在预设时刻获取,也可以在终端电量达到预设条件时触发终端处理器执行所述获取终端的当前剩余电量的步骤,如在终端电量发生较大变化时,即终端电量消耗速度较快时,触发终端处理器获取终端的当前剩余电量,也可以在用户控制终端进入锁屏状态或者终端自动进入锁屏状态时,触发终端处理器获取终端的当前剩余电量。
步骤S11,根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式;
剩余电量与锁屏方式之间存在一个对应关系,所述对应关系为一个映射表结构,可由终端系统预设,也可由用户自主设置,或者由锁屏方式切换程序开发者设置。所述锁屏方式包括但不限于密码锁、图案锁、指纹锁等。剩余电量不同,对应的锁屏方式也不同。在一实施方式中,可如下表1所示:
剩余电量 | 锁屏方式 |
100%-40% | 指纹锁 |
39%-11% | 图案锁 |
10%-0 | 密码锁 |
步骤S12,接收锁屏指令,按照所述当前锁屏方式对终端进行锁屏。
在用户输入锁屏指令,如按终端开关机键,或者在用户长时间未使用终端时,终端处理器触发锁屏指令,终端自动进入锁屏模式,此时,应按照所述当前剩余电量对应的当前锁屏方式锁屏。
本实施例通过获取终端的当前剩余电量,并根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式,将终端当前剩余电量情况与锁屏方式关联,在终端接收锁屏指令时,按照所述当前锁屏方式对终端进行锁屏,使得终端当前锁屏方式可以反映电量使用情况,因为锁屏次数较多,且因为锁屏是用户使用终端的第一道门槛,所以用户被提醒的次数较多,且提示效果较好,可有效督促/提醒用户及时充电或及时调整终端使用情况或者关闭非必要的后台应用,进而提高终端电池的续航能力,提升用户对终端电池续航能力的满意度。
具体地,所述步骤S10之后包括:
步骤S13,判断所述当前剩余电量是否达到临界值;
步骤S14,若所述当前剩余电量达到临界值,则执行所述确定所述当前剩余电量对应的当前锁屏方式的步骤;
步骤S15,若所述当前剩余电量未达到临界值,则执行所述获取终端的当前剩余电量的步骤。
临界值指对应锁屏方式即将发生变化的电量值,如表1所示示例中,39%,10%均为临界值,当剩余电量小于39%时,锁屏方式从指纹锁变为图案锁,当剩余电量小于10%时,锁屏方式从图案锁变为密码锁。此时,锁屏方式应当发生变化,需要进一步确定当前剩余电量对应的锁屏方式,即执行所述确定所述当前剩余电量对应的当前锁屏方式的步骤。若所述当前剩余电量未达到临界值,则锁屏方式不需要改变,则无需确定当前剩余电量对应的锁屏方式,即无需执行所述确定所述当前剩余电量对应的当前锁屏方式的步骤,继续执行获取终端的当前剩余电量的步骤,直到检测到当前剩余电量达到临界值为止。
本实施例通过在检测到当前剩余电量达到临界值时,才确定所述当前剩余电量对应的当前锁屏方式,而不是在获取终端当前剩余电量后,立即确定所述当前剩余电量对应的当前锁屏方式,使得只有在需要进行锁屏方式的切换时,终端才获取当前剩余电量对应的锁屏方式,减少终端做无用功,既节约电量,又能在电量达到需要切换锁屏方式的临界值时及时获取当前剩余电量,以及时切换锁屏方式。
进一步地,如图3,在本发明锁屏方式切换方法第二实施例中,基于所述第一实施例,所述步骤S12之后包括:
步骤S20,根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用。
应用清理强度可表征:可保留的后台应用数量,或者可保留的后台应用功能,在一些实施例中,应用清理强度可表征前述两种情况的结合。
具体地,在一种实施方式中,应用清理强度表征可保留的后台应用数量,举例而言,应用清理强度分为一级、二级、三级。一级对应的可保留后台应用数量为10,一级基本可保留当前所有后台应用;二级对应的可保留后台应用数量为5,二级可保留部分后台应用,保留的应用程序可能为用户常用应用程序,也可以为耗电量较低的应用程序;三级对应的可保留后台应用数量为0,三级会将所有非必需后台应用(必需后台应用为终端正常运行所需的系统程序)关闭。
在另一种实施方式中,应用清理强度指可保留的后台应用功能,举例而言,应用清理强度分为一级、二级、三级。对于浏览器:当应用清理强度为一级时,浏览器可正常使用所有功能,包括播放音频视频、显示图片、后台下载等;当应用清理强度为二级时,浏览器的播放音频视频和后台下载的功能被禁止;当应用清理强度为三级时,浏览器的的显示图片功能被禁止,只能加载文字和显示文字。
在一种实施方式中,应用清理强度指可保留的后台应用数量和可保留的后台应用功能的结合。举例而言,应用清理强度分为一级、二级、三级。当应用清理强度为一级时,仅限制部分应用程序功能,而不彻底关闭任意应用程序;当应用清理强度为二级时,保留常用应用程序并限制功能,关闭其他非常用应用程序;当应用清理强度为三级时,关闭所有应用程序。上述示例仅为一种实施方式,还有其他结合方式。
在另一些实施例中,应用清理强度表征可保留的特定应用程序。具体地,举例而言,应用清理强度分为一级、二级、三级。当应用清理强度为一级时,关闭电量消耗大于第一预设值的应用程序;当应用清理强度为二级时,关闭电量消耗大于第二预设值的应用程序;当应用清理强度为三级时,关闭电量消耗大于第三预设值的应用程序。所述特定应用程序还可以根据用户使用的频繁程度进行确定,如常用应用程序和不常用应用程序等。
锁屏方式与应用清理强度之间存在一个对应关系,所述对应关系可为映射表结构,可由终端系统预设,也可由用户自主设置,或者由锁屏方式切换程序开发者设置。不同剩余电量对应着不同的锁屏方式,不同锁屏方式对应着不同应用清理强度。在一种实施方式中,如下表2所示。
剩余电量 | 锁屏方式 | 应用清理强度 |
100%-40% | 指纹锁 | 一级 |
39%-11% | 图案锁 | 二级 |
10%-0 | 密码锁 | 三级 |
不同锁屏方式下,后台应用中的可保留的后台应用数量或者可保留的后台应用功能遵循应用清理强度的规定。
以一种实施方式为例(剩余电量、应用清理强度及锁屏方式的对应关系如上表):应用清理强度仅表征可保留的后台应用数量,应用清理强度分为一级、二级、三级。其中,一级对应的可保留后台应用数量为10,二级对应的可保留后台应用数量为5,三级对应的可保留后台应用数量为0,三级会将所有非必需后台应用(必需后台应用为终端正常运行所需的系统程序)关闭。终端获得的当前剩余电量(剩余电量)为20%,对应的锁屏方式为图案锁,应用清理强度为二级,对应可保留后台应用数量为5,如果锁屏模式下,后台应用数量小于或等于5,则无需对后台应用进行任何操作,若后台应用数量大于5,则需要关闭一些后台应用,仅保留5个。
需要注意的是,本实施方式中,在用户执行锁屏操作(如按开关键)或者终端自动进入锁屏状态时,即终端接收到锁屏指令时,终端才根据应用清理强度对后台应用进行数量上的限制,若终端没有进入锁屏状态,则即使终端应用清理强度发生较大变化(如剩余电量从30%变为9%,应用清理强度变为三级),终端当前的后台应用还是会全部保留,不会发生变化。即,锁屏后,会根据应用清理强度对后台应用进行处理,以降低电量消耗速度,节约电能。
本实施例通过预先设置锁屏方式与应用清理强度的对应关系,将锁屏方式与应用清理强度关联起来,进而将电量情况与应用清理强度关联起来,使得终端进入锁屏状态或者即将进入锁屏状态时,根据当前锁屏方式或者当前剩余电量情况确定对应的应用清理强度,进而合理节约电量,用户使用终端次数越多,终端进入锁屏状态的次数越多,将锁屏与后台应用清理结合起来,既可及时清理后台应用,又无需用户执行多余操作。
进一步地,如图4,在本发明锁屏方式切换方法第三实施例中,基于所述第二实施例,所述步骤S12之后包括:
步骤S30,统计终端处于锁屏状态的持续时长;
步骤S31,判断所述持续时长是否大于预设阈值;
步骤S32,若所述持续时长大于预设阈值,则执行所述根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤;
步骤S33,若所述持续时长小于预设阈值,则维持后台应用正常运行,
从按照所述当前锁屏方式对终端进行锁屏时刻起进行时长统计,统计终端处于锁屏状态的持续时长。预设阈值可由终端系统预设,也可由用户自主设置,或者由锁屏方式切换程序开发者设置。若所述持续时长大于预设阈值,则说明终端处于锁屏状态的持续时长不短,用户短时间内不使用终端,此时,很多后台应用都可以关闭或者进行功能限制;若所述持续时长小于预设阈值,则不执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤,维持后台应用正常运行。
本实施例通过统计终端处于锁屏状态的持续时长,在所述持续时长大于预设阈值时才执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤,在终端处于锁屏状态下时,可在合适的时间按照与所述当前锁屏方式对应的应用清理强度处理后台应用,在用户只是短时间不用终端的情况下,可维持后台应用正常运行,不影响用户的使用体验。
进一步地,在本发明锁屏方式切换方法第四实施例中,基于所述第二实施例,所述步骤S11之后包括:
步骤S40,若接收到用户输入的编辑后台应用可用状态的编辑指令,根据所述编辑指令处理后台应用;
步骤S41,若未接收到用户输入的编辑后台应用可用状态的编辑指令,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
在一种实施方式中,终端处理器输出当前运行后台应用列表,终端可对该列表进行编辑。后台应用可用状态及可用、不可用、部分可用,编辑后台应用可用状态的编辑指令即由用户针对特定后台应用输入的、有关后台应用可用/不可用/部分可用的设置指令,用户可根据需要自行输入编辑指令,所述编辑指令可以为选择选项模式。
在接收锁屏指令,按照所述当前锁屏方式对终端进行锁屏后,判断是否接收到用户输入的编辑后台应用可用状态的编辑指令,若接收到所述编辑指令,则终端根据所述编辑指令处理后台应用。
若在按照所述当前锁屏方式对终端进行锁屏后,一直未接收到编辑后台应用可用状态的编辑指令,则根据默认设置处理后台应用,即执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
在一些实施方式中,用户只编辑了一些后台应用,对应用户编辑过的应用,可直接根据用户输入的编辑指令进行处理;对于用户未编辑的后台应用,可直接按照与所述当前锁屏方式对应的应用清理强度处理所述用户未编辑的后台应用。
本实施例通过判断是否接收到用户输入的编辑后台应用可用状态的编辑指令,在接收到用户输入的所述编辑指令时,根据用户输入的所述编辑指令对后台应用进行处理,使得用户可根据自身需要编辑后台应用可用状态,使得终端的节能设计更符合用户需求;若未接收到用户输入的编辑后台应用可用状态的编辑指令,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤,即对于用户未编辑的后台应用,可根据系统默认设置处理。通过对后台应用处理方式的区分,使得后台应用都可以获得比较好的处理方式,兼顾节能与用户体验。
进一步地,如图5,在本发明锁屏方式切换方法第五实施例中,基于所述第二实施例,所述步骤S20包括:
步骤S50,获取预置白名单,根据所述白名单确定后台应用中的免处理应用;
步骤S51,按照与所述当前锁屏方式对应的应用清理强度处理后台应用中所述免处理应用以外的应用。
所述预置白名单可由终端系统预设,也可由用户自主设置,或者由锁屏方式切换程序开发者设置。后台应用中的免处理应用指不根据所述应用清理强度进行处理的后台应用。
本实施例通过白名单的设置,使得终端可一直保留系统正常运行必需的后台应用,也可以保留用户希望一直保留的后台应用,兼顾节约电量和系统的正常运行及用户需求。
进一步地,在本发明锁屏方式切换方法第六实施例中,基于所述第一实施例,所述步骤S12中接收锁屏指令的步骤之后包括:
步骤S60,输出锁屏方式切换提示,根据用户基于所述锁屏方式切换提示输入的指令,判断用户是否同意切换锁屏方式;
步骤S61,若用户同意切换锁屏方式,则按照所述当前锁屏方式对终端进行锁屏;
步骤S62,若用户不同意切换锁屏方式,则按照原锁屏方式锁屏。
在接收到锁屏指令后,终端输出锁屏方式切换提示,用户可明白当前剩余电量情况处于需要切换锁屏方式的临界值。但是用户可能不希望切换锁屏方式,在一种实施方式中,在终端进入锁屏状态前,可由用户确定是否切换锁屏方式,若用户同意,则切换锁屏方式;若用户不同意切换锁屏方式,则按照原锁屏方式锁屏,在一种实施方式中,即使按照原锁屏方式锁屏,应用清理强度仍旧依据当前剩余电量情况确定,在另一种实施方式中,应用清理强度依据原锁屏方式确定。
本实施例通过在终端进入锁屏状态前,输出锁屏方式切换提示,由用户选择是否切换锁屏方式,进而更加贴合用户需求,提升用户体验。
进一步地,在本发明锁屏方式切换方法第七实施例中,基于所述第一实施例,所述步骤S12之后包括:
步骤S70,根据预先设置的锁屏方式与锁屏壁纸的对应关系,采用与所述当前锁屏方式对应的锁屏壁纸对终端进行锁屏显示。
锁屏方式与锁屏壁纸之间存在一个对应关系,所述对应关系可为一个映射表,可由终端系统预设,也可由用户自主设置,或者由锁屏方式切换程序开发者设置。不同剩余电量对应着不同的锁屏方式,不同锁屏方式对应着不同锁屏壁纸。
锁屏壁纸可以为静态壁纸、固定模式的动态壁纸或者随外部触摸会有变化的动态壁纸,该三种方式的壁纸耗费电量呈递增趋势,当剩余电量较多时,锁屏显示可以采用耗电量大的锁屏壁纸,可以丰富终端显示效果,提升用户体验;当剩余电量较少,锁屏显示可以采用耗电量小的锁屏壁纸,可节约电量。表3为一种实施方式:
剩余电量 | 锁屏壁纸 |
100%-40% | 随外部触摸会有变化的动态壁纸 |
39%-11% | 固定模式的动态壁纸 |
10%-0 | 静态壁纸 |
本实施例通过在终端剩余电量不同时,采用耗电量不同的锁屏壁纸,在终端电量充足时,采用耗电量大、但显示效果好的壁纸,可提升用户的使用体验;在终端电量不足时,采用耗电量小的壁纸,可节约电量。兼顾显示效果与电量节约,提升用户的使用体验。
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有锁屏方式切换程序,所述锁屏方式切换程序被处理器执行时实现如上述实施例所述的步骤,因相关步骤已在上述实施例中详述,不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是固定终端,如物联网智能设备,包括智能空调、智能电灯、智能电源、智能路由器等智能家居;也可以是移动终端,包括智能手机、可穿戴的联网AR/VR装置、智能音箱、自动驾驶汽车等诸多联网设备)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (10)
- 一种锁屏方式切换方法,其特征在于,所述锁屏方式切换方法包括:获取终端的当前剩余电量;根据预先设置的剩余电量与锁屏方式的对应关系,确定所述当前剩余电量对应的当前锁屏方式;接收锁屏指令,按照所述当前锁屏方式对终端进行锁屏。
- 如权利要求1所述的锁屏方式切换方法,其特征在于,所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用。
- 如权利要求2所述的锁屏方式切换方法,其特征在于,所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:统计终端处于锁屏状态的持续时长,判断所述持续时长是否大于预设阈值;若所述持续时长大于预设阈值,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
- 如权利要求2所述的锁屏方式切换方法,其特征在于,所述确定所述当前剩余电量对应的当前锁屏方式的步骤之后包括:若接收到用户输入的编辑后台应用可用状态的编辑指令,根据所述编辑指令处理后台应用;若未接收到用户输入的编辑后台应用可用状态的编辑指令,则执行所述按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤。
- 如权利要求2所述的锁屏方式切换方法,其特征在于,所述根据预先设置的锁屏方式与应用清理强度的对应关系,按照与所述当前锁屏方式对应的应用清理强度处理后台应用的步骤包括:获取预置白名单,根据所述白名单确定后台应用中的免处理应用;按照与所述当前锁屏方式对应的应用清理强度处理后台应用中所述免处理应用以外的应用。
- 如权利要求1所述的锁屏方式切换方法,其特征在于,所述获取终端的当前剩余电量的步骤之后包括:判断所述当前剩余电量是否达到临界值;若所述当前剩余电量达到临界值,则执行所述确定所述当前剩余电量对应的当前锁屏方式的步骤;若所述当前剩余电量未达到临界值,则执行所述获取终端的当前剩余电量的步骤。
- 如权利要求1所述的锁屏方式切换方法,其特征在于,所述接收锁屏指令的步骤之后包括:输出锁屏方式切换提示,根据用户基于所述锁屏方式切换提示输入的指令,判断用户是否同意切换锁屏方式;若用户同意切换锁屏方式,则按照所述当前锁屏方式对终端进行锁屏;若用户不同意切换锁屏方式,则按照原锁屏方式锁屏。
- 如权利要求1所述的锁屏方式切换方法,其特征在于,所述按照所述当前锁屏方式对终端进行锁屏的步骤之后包括:根据预先设置的锁屏方式与锁屏壁纸的对应关系,采用与所述当前锁屏方式对应的锁屏壁纸对终端进行锁屏显示。
- 一种终端,其特征在于,所述终端包括:处理器、存储器及存储在所述存储器上的锁屏方式切换程序,所述锁屏方式切换程序被所述处理器执行时实现如权利要求1至8中任一项所述的锁屏方式切换程序的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有锁屏方式切换程序,所述锁屏方式切换程序被处理器执行时实现如权利要求1至8中任一项所述的锁屏方式切换程序的步骤。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780095895.3A CN111316216B (zh) | 2017-10-13 | 2017-10-13 | 锁屏方式切换方法、终端及计算机可读存储介质 |
PCT/CN2017/106033 WO2019071565A1 (zh) | 2017-10-13 | 2017-10-13 | 锁屏方式切换方法、终端及计算机可读存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/106033 WO2019071565A1 (zh) | 2017-10-13 | 2017-10-13 | 锁屏方式切换方法、终端及计算机可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019071565A1 true WO2019071565A1 (zh) | 2019-04-18 |
Family
ID=66101117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/106033 WO2019071565A1 (zh) | 2017-10-13 | 2017-10-13 | 锁屏方式切换方法、终端及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111316216B (zh) |
WO (1) | WO2019071565A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104133615A (zh) * | 2014-07-30 | 2014-11-05 | 深圳市金立通信设备有限公司 | 一种终端锁屏界面的处理方法 |
CN104298335A (zh) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | 移动终端的应用程序进程清理方法、装置和移动终端 |
WO2015007244A1 (zh) * | 2013-07-19 | 2015-01-22 | 贝壳网际(北京)安全技术有限公司 | 移动终端及其应用程序的控制方法和装置 |
CN106650415A (zh) * | 2016-09-14 | 2017-05-10 | 上海斐讯数据通信技术有限公司 | 一种密码更新方法和系统 |
CN106896894A (zh) * | 2015-12-21 | 2017-06-27 | 北京奇虎科技有限公司 | 终端电量管理方法及终端 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20160130288A (ko) * | 2014-03-12 | 2016-11-10 | 후아웨이 디바이스 컴퍼니 리미티드 | 잠금 스크린 방법 및 이동 단말기 |
-
2017
- 2017-10-13 CN CN201780095895.3A patent/CN111316216B/zh active Active
- 2017-10-13 WO PCT/CN2017/106033 patent/WO2019071565A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298335A (zh) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | 移动终端的应用程序进程清理方法、装置和移动终端 |
WO2015007244A1 (zh) * | 2013-07-19 | 2015-01-22 | 贝壳网际(北京)安全技术有限公司 | 移动终端及其应用程序的控制方法和装置 |
CN104133615A (zh) * | 2014-07-30 | 2014-11-05 | 深圳市金立通信设备有限公司 | 一种终端锁屏界面的处理方法 |
CN106896894A (zh) * | 2015-12-21 | 2017-06-27 | 北京奇虎科技有限公司 | 终端电量管理方法及终端 |
CN106650415A (zh) * | 2016-09-14 | 2017-05-10 | 上海斐讯数据通信技术有限公司 | 一种密码更新方法和系统 |
Also Published As
Publication number | Publication date |
---|---|
CN111316216B (zh) | 2023-10-03 |
CN111316216A (zh) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017206878A1 (zh) | 一种基于唤醒锁的处理方法、装置、存储介质及电子设备 | |
WO2013037258A1 (zh) | 一种无线通讯设备对近期使用应用程序的提示方法及系统 | |
WO2018129977A1 (zh) | 一种充电控制方法、装置、存储介质和计算机设备 | |
WO2017206862A1 (zh) | 一种基于亮屏锁的处理方法、装置、存储介质及电子设备 | |
WO2012016476A1 (zh) | 一种手持移动终端待机方法、微处理器及手机 | |
WO2015143776A1 (zh) | 一种多模省电的多媒体传输方法及其系统 | |
WO2016080747A1 (en) | User terminal and method for controlling display apparatus | |
WO2017206890A1 (zh) | 一种基于唤醒锁的处理方法、装置、存储介质及电子设备 | |
WO2018010507A1 (zh) | 终端系统的唤醒监控方法、存储介质、终端及电子设备 | |
WO2020155359A1 (zh) | 家电设备的控制方法、服务器、家电设备及存储介质 | |
WO2017206865A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2017206870A1 (zh) | 一种传感器关闭方法、装置、存储介质及电子设备 | |
WO2018145597A1 (zh) | 基于移动终端的屏幕补光拍照方法及系统、移动终端 | |
WO2017148142A1 (zh) | 桌面图标文件夹的名称切换方法、装置及电子设备 | |
WO2015126180A1 (en) | Method for creating a content and electronic device thereof | |
WO2019233190A1 (zh) | 基于显示终端的文本转语音方法、显示终端及存储介质 | |
WO2019114565A1 (zh) | 空气调节器的调节方法、装置以及存储介质 | |
WO2020007099A1 (zh) | 电视终端控制方法、设备及计算机可读存储介质 | |
WO2017206867A1 (zh) | 一种传感器的关闭方法、装置、存储介质及电子设备 | |
WO2017206871A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2020062615A1 (zh) | 显示面板的伽马值调节方法、装置及显示设备 | |
WO2019041356A1 (zh) | 终端断电处理方法、设备及计算机可读存储介质 | |
WO2017206873A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2017206881A1 (zh) | 一种关联应用的处理方法、装置、存储介质及电子设备 | |
WO2019071565A1 (zh) | 锁屏方式切换方法、终端及计算机可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17928496 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17928496 Country of ref document: EP Kind code of ref document: A1 |