Function management method, electronic device and storage medium
By implementing the function management method in electronic devices, the duration of unused time is calculated based on the last time of use of the functional module, and reminding the user to turn off the module when the preset conditions are met, solving the problem of power consumption caused by unusing the functional module for a long time. Extend the battery life of the device.
Patent Information
- Application Number
- PCT/CN2024/081603
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-03
- Filing Date
- 2024-03-14
- Publication Date
- 2025-02-06
AI Technical Summary
Some functional modules in electronic devices such as voice wake-up, breath wake-up, NFC, Bluetooth, smart perception, etc. will continue to consume power when they are not used for a long time, affecting the battery life of the device.
By implementing the function management method in the electronic device, after determining the first preset time when the specified functional module is turned on, querying its last use time, and calculating the duration of unused duration. When the preset condition is met, a notification reminder window is displayed to remind the user to close the function module to reduce power consumption.
It effectively reduces the power consumption of the functional module when it is not used for a long time and extends the battery life of the electronic device.
Smart Images

Figure CN2024081603_06022025_PF_FP_ABST
Abstract
Description
Function management method, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 3, 2023, with application number 202310978396.6 and invention name “A function management method, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a function management method, electronic device, and storage medium. Background Art
[0003] With the continuous updates and iterations of electronic devices like mobile phones, they are becoming increasingly versatile. However, some of these features, such as voice wake-up, breath wake-up, near-field communication (NFC), Bluetooth, and smart sensing, consume significant power, impacting the battery life of these devices.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a function management method, an electronic device, and a storage medium to improve the battery life of the electronic device. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a function management method, which is applied to an electronic device and includes:
[0007] After determining the first preset duration of time that the specified function module has been turned on, query the last time the specified function module was used; determine the continuous non-use duration of the specified function module based on the last time of use; in response to the continuous non-use duration meeting the preset conditions, display a first notification reminder window, or close the specified function module and display a second notification reminder window, the first notification reminder window is used to remind the user to close the specified function module, and the second notification reminder window is used to remind the user that the specified function module has been closed.
[0008] In this way, after determining that a designated functional module has been enabled for a first preset duration, the electronic device determines the duration of continuous non-use of the function based on the last time the designated functional module was used. When the duration of continuous non-use meets a preset condition, it indicates that the designated functional module has not been used for a long time, meaning that the user may not frequently use the designated functional module. Therefore, the electronic device can display a first notification window to remind the user to disable the designated functional module, or the electronic device can disable the designated functional module and display a second notification window to prevent the designated functional module from consuming power and affecting the battery life of the electronic device.
[0009] In one possible implementation, the prompt information is used to remind the user to close the specified function module, and the notification reminder window also includes a first control, a second control and a third control; after displaying the notification reminder window, the method also includes: in response to the user's operation on the first control, closing the specified function module; in response to the user's operation on the second control, stopping displaying the notification reminder window and canceling the closing reminder function for the specified function module; in response to the user's operation on the third control, displaying the function details interface of the specified function module.
[0010] The first control may be displayed as "Agree to Close" in the first notification reminder window; the second control may be displayed as "Ignore" in the first notification reminder window; and the third control may be displayed as "More" in the first notification reminder window.
[0011] In this way, the first notification reminder window includes a first control, a second control, and a third control. The user can flexibly and conveniently process the first notification reminder window by clicking the first control, the second control, or the third control, so that the electronic device's processing of the specified functional module conforms to the user's wishes. If the user clicks the first control, the electronic device can shut down the specified functional module, which can reduce the electronic device's power consumption and improve the electronic device's battery life. If the user clicks the second control, it indicates that the user does not want to shut down the specified functional module, and the shutdown reminder function for the specified functional module is disabled, which can prevent the user from receiving subsequent shutdown reminders for the specified functional module. If the user clicks the third control, the user can quickly view the details of the specified functional module, facilitating the user's decision-making.
[0012] In one possible implementation, the function details interface includes a switch control; after displaying the function details interface for a specified function module, the method further includes: in response to a user turning off the switch control, turning off the specified function module. When the electronic device's display interface jumps to the function details interface, the user can view details of the specified function module to assist the user in deciding whether to use the specified function module in the near future. If the user determines that the specified function module can be turned off, the user can choose to click the switch control to cause the electronic device to turn off the specified function module, thereby reducing power consumption and improving battery life of the electronic device.
[0013] In one possible implementation, the second notification reminder window includes a fourth control; after closing the specified function module and displaying the second notification reminder window, the method also includes: in response to the user's operation on the fourth control, displaying the function details page of the specified function module, the function details interface includes a switch control; in response to the user's turning on operation of the switch control, turning on the specified function module.
[0014] As an example, the fourth control may appear as “more” in the second notification reminder window.
[0015] In this way, when the electronic device detects that a function has not been used for a long time, it can directly turn off the function, which can reduce the power consumption of the electronic device and improve the battery life, and display the fourth control in the second notification reminder window, so that the user can flexibly choose whether to reopen the specified function module.
[0016] In one possible implementation, the second notification reminder window also includes a fifth control; after closing the specified function module and displaying the second notification reminder window, the method also includes: in response to the user's operation of the fifth control, turning on the specified function module and canceling the closing reminder function of the specified function module.
[0017] As an example, the fifth control may appear as “Resume” in the second notification reminder window.
[0018] In this way, by displaying the fifth control in the second notification reminder window, the user can easily reopen the specified function module that was automatically closed, and for the specified function module that the user wants to be in a normally open state, the user can keep the specified function module in an open state by clicking the fifth control, and the electronic device can turn off the shutdown reminder function for the specified function module, which can avoid displaying the notification reminder window for the specified function module again, avoid disturbing the user, and meet user needs.
[0019] In one possible implementation, after determining the continuous non-use period of the specified functional module based on the last use time, the method further includes: judging whether the continuous non-use period meets a preset condition; if not, after a second preset time, returning to the step of querying the last use time of the specified functional module.
[0020] In this way, when the electronic device determines that the continuous non-use period does not meet the preset condition, it will query the last use time of the specified functional module again after the second preset period. The electronic device can continuously monitor the continuous non-use period of the specified functional module, and when the continuous non-use period meets the preset condition, the electronic device promptly displays the first notification reminder window or the second notification reminder window to the user.
[0021] In one possible implementation, after determining the first preset duration that the specified functional module is turned on, and before querying the last time the specified functional module was used, the method further includes: monitoring whether the specified functional module is turned on; or, receiving a notification reported by the specified functional module that the specified functional module has been turned on.
[0022] Through the above two methods, the electronic device can obtain the switch state change of the specified functional module in real time, and thus the electronic device can accurately obtain the moment when the specified functional module is turned on.
[0023] In one possible implementation, the method further includes: obtaining a usage notification reported by a designated functional module, the usage notification including an identifier of the designated functional module and a usage status, where the usage status is start of use or end of use; and recording the reported usage status and usage time in usage record information of the designated functional module based on the usage notification;
[0024] Querying the last usage time of the specified functional module includes: querying the last usage time of the specified functional module from usage record information.
[0025] In this way, since the electronic device has pre-generated usage record information, the last usage time of the specified functional module can be quickly and accurately queried, thereby improving data query efficiency.
[0026] In a possible implementation, querying the last time a specified functional module is used includes querying the last time a specified functional module is used from the specified functional module. In this way, the electronic device can accurately obtain the last time a specified functional module is used.
[0027] In one possible implementation, the preset condition is that the continuous non-use time reaches a time baseline value; or, the preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the specified functional module reaches a power consumption baseline value.
[0028] If the duration of continuous non-use reaches the duration baseline value, it indicates that the user has not used the designated function module for a long time, and the designated function module has been consuming power, that is, the designated function module consumes more power when not in use. At this time, reminding the user to turn off the designated function module or directly turn off the designated function module can avoid the continuous power consumption of the designated function module and improve the battery life of the electronic device. If the product of the continuous non-use duration and the power consumption value per unit time of the designated function module reaches the power consumption baseline value, that is, the designated function module consumes too much power and the user has not used it for a long time. At this time, reminding the user to turn off the designated function module or directly turn off the designated function module can avoid the continuous power consumption of the designated function module and improve the battery life of the electronic device.
[0029] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0030] one or more processors and memory;
[0031] The memory is coupled to one or more processors, and is used to store computer program code. The computer program code includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method of the first aspect.
[0032] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising a computer program. When the computer program runs on an electronic device, the electronic device executes the function management method of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes the method of the first aspect.
[0034] It should be understood that the second to fourth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0036] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0037] FIG2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0038] FIG3 is a flow chart of a first function management method provided in an embodiment of the present application;
[0039] FIG4a is an exemplary schematic diagram of a first notification reminder window provided in an embodiment of the present application;
[0040] FIG4 b is an exemplary schematic diagram of a second notification reminder window provided in an embodiment of the present application;
[0041] FIG4c is an exemplary schematic diagram of the first function details interface provided in an embodiment of the present application;
[0042] FIG4 d is an exemplary schematic diagram of a second function details interface provided in an embodiment of the present application;
[0043] FIG5a is an exemplary schematic diagram of a third notification reminder window provided in an embodiment of the present application;
[0044] FIG5 b is an exemplary schematic diagram of a third function details interface provided in an embodiment of the present application;
[0045] FIG6 is an exemplary schematic diagram of a fourth notification reminder window provided in an embodiment of the present application;
[0046] FIG7 is an exemplary schematic diagram of a fifth notification reminder window provided in an embodiment of the present application;
[0047] FIG8 is an exemplary schematic diagram of a sixth notification reminder window provided in an embodiment of the present application;
[0048] FIG9 is a flow chart of a second function management method provided in an embodiment of the present application;
[0049] FIG10 is an exemplary schematic diagram of a function management method based on a reporting mechanism provided in an embodiment of the present application;
[0050] FIG11 is an exemplary schematic diagram of a function management method based on an active query mechanism provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0052] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first instruction and the second instruction are intended to distinguish different user instructions and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0053] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0054] The function management method provided in the embodiments of the present application can be applied to electronic devices. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a smartwatch, a wearable device, etc. The embodiments of the present application do not limit the type of electronic device.
[0055] FIG1 is a schematic diagram of an electronic device provided in an embodiment of the present application. The electronic device shown in FIG1 may include a processor 110, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a button 190, a motor 191, an indicator 192, cameras 1-N 193, a display 194, and subscriber identification module (SIM) card interfaces 1-N 195. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0056] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0057] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0058] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.
[0059] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0060] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, etc.
[0061] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0062] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0063] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied in electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0064] In the application embodiment, the mobile communication module may also be referred to as a cellular module, and the two may be described interchangeably.
[0065] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0066] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (WIFI) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to electronic devices. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, at least some functional modules of the wireless communication module 160 can be set in the processor 110.
[0067] In some embodiments of the present application, the electronic device can establish a wireless connection with other electronic devices through the wireless communication module 160 (such as a Bluetooth module and a WLAN module) and the antenna 2 to achieve data transmission between the electronic device and the other electronic devices.
[0068] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the electronic device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TDSCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite-based augmentation system (SBAS).
[0069] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0070] The charging management module 140 is configured to receive charging input from a charger. While charging the battery 142 , the charging management module 140 can also provide power to the electronic device through the power management module 141 .
[0071] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0072] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0073] The electronic device can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.
[0074] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or videos. In some embodiments, the electronic device may include one or N cameras 193, where N is a positive integer greater than one.
[0075] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency, the DSP performs a Fourier transform on the frequency energy.
[0076] The electronic device can implement audio functions such as music playback and recording through the audio module 170, speakers, receivers, microphones, headphone jacks, and application processors.
[0077] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
[0078] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a screen projection function, a network sharing function, etc.), etc. The data storage area can store data created during the use of the electronic device (such as video data, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0079] Keys 190 include a power button, a volume button, and the like. Keys 190 may be mechanical keys or touch-sensitive keys. The electronic device may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device.
[0080] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or touch vibration feedback. Indicator 192 can be an indicator light that can be used to indicate charging status, power level changes, messages, missed calls, notifications, etc.
[0081] SIM card interface 195 is used to connect a SIM card. A SIM card can be connected to and disconnected from the electronic device by inserting or removing it from the SIM card interface 195. An electronic device may support one or N SIM card interfaces, where N is a positive integer greater than one.
[0082] The software system of the above-mentioned electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software system of the electronic device. As shown in Figure 2, the layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application layer, the application framework layer, the hardware abstraction layer, and the hardware layer.
[0083] As shown in Figure 2, the application layer can be installed with multiple applications, for example, it can include functional modules such as voice wake-up, smart perception, Bluetooth, NFC, and breath wake-up.
[0084] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may include a unified management module, content provider, and view system.
[0085] The unified management module is used to monitor the duration of non-use of each functional module of the application layer and promptly remind users to close functional modules that have not been used for a long time.
[0086] The content provider is used to store and obtain data and make this data accessible to applications. This data may include the time when the user uses the above application.
[0087] The view system includes visual controls, such as controls for displaying text and images. The view system can be used to build the application's display interface, which can be composed of one or more views, such as views that display app icons and pop-up windows, views that display text, and views that display images.
[0088] The Hardware Abstraction Layer (HAL) is an interface layer between the operating system kernel and the hardware circuitry. Its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and provides a virtual hardware platform for the operating system, making it hardware-independent and portable across multiple platforms.
[0089] The hardware layer includes, but is not limited to, a positioning component, an accelerometer, a gyroscope, and a display screen. The positioning component is used to implement positioning functions. For example, it can be a GPS positioning component. The accelerometer and gyroscope can be used to determine the state of the electronic device, that is, whether the electronic device is in motion or stationary.
[0090] Different functions of the above electronic devices consume different amounts of power each hour when they are turned on and not in use. The power consumption of each function per hour is shown in Table 1.
[0091] Table 1
[0092] Voice wake-up refers to waking up an electronic device through voice commands, putting it into voice recognition and processing mode. Users can activate the electronic device and start the corresponding voice interaction function by using predefined specific words or phrases.
[0093] Breath wake-up refers to the function of electronic devices automatically lighting up the screen by sensing the user's breathing or the weak airflow generated when the finger is close to the phone.
[0094] NFC enables near-field communication and data exchange between two electronic devices. NFC allows electronic devices, such as smartphones and tablets, to communicate quickly and securely within very close distances. For example, electronic devices can use NFC to implement the following functions:
[0095] Payment: NFC-enabled electronic devices can be used to make payments by bringing them close to NFC-enabled terminals.
[0096] Obtaining information: Electronic devices can read information on NFC-enabled devices, such as obtaining product prices, linking to websites, or downloading applications.
[0097] Bluetooth allows two Bluetooth-enabled electronic devices to exchange data or communicate even without an internet connection. Bluetooth technology is commonly used to connect mobile phones to other devices, such as headphones, speakers, and smart bracelets, enabling data transfer, file sharing, and calls between the two devices.
[0098] Intelligent perception refers to the ability of electronic devices to sense their environment and respond accordingly through a variety of sensors, algorithms, and artificial intelligence technologies. Specifically, intelligent perception can include location perception, motion perception, and environmental awareness.
[0099] When the above functional modules are turned on, they will continuously consume power and reduce the battery life of the electronic device.
[0100] To solve the above problems, an embodiment of the present application provides a function management method, as shown in FIG3 , which specifically includes the following steps:
[0101] S301: After determining a first preset duration for which a designated functional module is enabled, query the last time the designated functional module is used.
[0102] The designated function module is a module that needs to be intelligently managed using the function management method provided in the embodiment of the present application. When the designated function module is turned on, it will continue to consume power regardless of whether it is used in the foreground.
[0103] For example, the designated functional modules may be voice wake-up, breath wake-up, NFC, Bluetooth, smart perception and other functional modules.
[0104] According to Table 1 above, the power consumption level of each functional module is different, so the first preset duration corresponding to each designated functional module is also different. For example, the first preset duration corresponding to the NFC functional module may be 30 days; and the first preset duration corresponding to the voice wake-up functional module may be 15 days.
[0105] S302: Determine a continuous unused duration of a specified functional module based on the last time of use.
[0106] The continuous non-use duration refers to the time difference between the current time and the last use time, and the current time is the time when the electronic device queries the last use time of the specified functional module.
[0107] For example, the current time is 21:14:30 on July 27, 2023. The electronic device queries the last usage time of the specified functional module at the current time. The last usage time of the specified functional module is 21:14:30 on June 27, 2023. The continuous non-use period is 30 days.
[0108] S303: In response to the continuous non-use time satisfying a preset condition, display a first notification reminder window, or close a specified function module and display a second notification reminder window.
[0109] The first notification window is used to remind the user to close the specified function module, and the second notification window is used to remind the user that the specified function module has been closed.
[0110] Using the above method, after determining the first preset duration that a specified functional module has been enabled, the electronic device then determines the duration of continuous non-use of the function based on the last time the specified functional module was used. If the duration of non-use meets a preset condition, it indicates that the specified functional module has not been used for a long time, meaning that the user may not frequently use the specified functional module. Therefore, the electronic device can display a first notification window to remind the user to disable the specified functional module, or it can disable the specified functional module and display a second notification window to prevent the specified functional module from consuming power and affecting the battery life of the electronic device.
[0111] In some embodiments of the present application, the first notification reminder window includes a first control, a second control, and a third control.
[0112] Specifically, the first control may be displayed as "Agree to Close" in the first notification reminder window; the second control may be displayed as "Ignore" in the first notification reminder window; and the third control may be displayed as "More" in the first notification reminder window.
[0113] The user can choose to process any of the three controls above. There are three specific situations:
[0114] Case 1: In response to the user's operation on the first control, the first notification reminder window is stopped from being displayed, and the designated function module is closed.
[0115] It is understandable that the user's operation on the first control may be an operation of the user clicking the first control, or may be any other operation that can trigger the first control, and the embodiment of the present application does not limit this.
[0116] Taking the designated functional module as the voice wake-up function as an example, as shown in Figure 4a, Figure 4a exemplifies a first notification reminder window, which includes the notification title, notification time, prompt information, "Agree to Close" control, "Ignore" control and "More" control.
[0117] As shown in FIG4a , the title of the notification is “Notification Management”, the notification time is “1 minute ago”, and the prompt message is “It is detected that the “Voice Wake-up” function has not been used for more than 1 month. This function can be turned off to improve battery life.”
[0118] When the user clicks the "Agree to Close" control, the electronic device is triggered to turn off the voice wake-up function.
[0119] Optionally, after the electronic device closes the specified functional module in response to the user's operation on the first control, a notification message may pop up on the display page, where the notification message is used to inform the user that the specified functional module has been closed.
[0120] As an example, as shown in FIG4 b , the notification message includes a notification title, a notification time, and information text.
[0121] Among them, the notification title is "Notification Management", the notification time is "1 minute ago", and the information text is "The "Voice Wake-up" function is turned off."
[0122] Case 2: in response to the user's operation on the second control, the first notification reminder window is stopped from being displayed, and the closing reminder function of the designated functional module is canceled.
[0123] Among them, the closing reminder function refers to the function of using the function management method provided in the embodiment of the present application to provide a closing reminder for a specified function module.
[0124] Still taking FIG. 4 a as an example, when the user clicks the “Ignore” control, the electronic device is triggered to stop displaying the first notification reminder window and cancel the closing reminder function for the voice wake-up function.
[0125] Case 3: In response to the user's operation on the third control, a function details interface of the specified function module is displayed.
[0126] Among them, the function details interface includes a switch control, and the user can set the specified function module on the function details interface of the specified function module, or view the detailed content of the specified function module.
[0127] Still taking FIG. 4 a as an example, when the user clicks the “more” control, the display interface of the electronic device is triggered to jump from the first notification reminder window to the function details interface of the voice wake-up function.
[0128] For another example, if the first notification reminder window is used to remind the user to turn off the NFC function module, after the user clicks the "More" control, the display interface of the electronic device jumps from the first notification reminder window to the NFC function details interface.
[0129] As shown in Figure 4c, Figure 4c exemplarily shows a schematic diagram of an NFC function details interface. The NFC function details interface includes an NFC switch button, text description, and an NFC function schematic diagram.
[0130] When the dot in the NFC switch button is to the right of the NFC switch button, NFC is on; when the dot in the NFC switch button is to the left of the NFC switch button, NFC is off. Users can click the NFC switch button to adjust the NFC function on and off.
[0131] Text instructions are used to guide users in using the NFC function. For example, the text instructions may read: "To perform mobile payment, tap-to-pay, and other operations, touch the back of this device to the NFC sensing area of another device."
[0132] The NFC function details interface may also include a "View NFC card swiping area" control. It should be noted that the NFC card swiping area is the NFC sensing area. The user can click "View NFC card swiping area" to trigger the corresponding jump control for "View NFC card swiping area", which then triggers the electronic device's display interface to jump from the current NFC function details interface to the NFC card swiping area schematic interface.
[0133] For another example, if the first notification window is used to remind the user to turn off the breath wake-up function module, after the user clicks the "More" control, the display interface of the electronic device jumps from the first notification window to the function details interface of the breath wake-up function, as shown in Figure 4d, which exemplifies a schematic diagram of the function details interface of the breath wake-up function. The function details interface of the breath wake-up function includes a breath wake-up switch button, text instructions, and a guide to using the breath wake-up function.
[0134] When the dot in the Breath Wake-up switch button is to the right of the Breath Wake-up switch button, it indicates that the Breath Wake-up function is on; when the dot in the Breath Wake-up switch button is to the left of the Breath Wake-up switch button, it indicates that the Breath Wake-up function is off. Users can click the Breath Wake-up switch button to adjust the Breath Wake-up function on or off.
[0135] Text instructions are used to guide users in using the Breath Wake-up feature. For example, the text instructions might read: "1. Lift your phone, hold the bottom of the phone close to your mouth (about 5 cm away), and speak a voice command directly into the microphone, such as "What's the weather like today?" 2. Wearing a mask or in strong winds can affect the wake-up rate. 3. Breath Wake-up is not currently supported when the phone's speaker is playing sound."
[0136] It should be noted that the usage guidance diagram of the breath wake-up function is used to instruct users to use the breath wake-up function. When the user places the electronic device with the mouth as the horizontal line, within 45 degrees above and below the horizontal line, and the bottom of the electronic device is close to the mouth, the user can wake up the electronic device by breath, and can have a natural conversation with the electronic device, asking and answering questions at the same time, without having to say the wake-up word "Hello xxxx".
[0137] It should be noted that the function detail interfaces of Figures 4c and 4d are only examples, and this application does not limit the specific forms of the NFC and breath wake-up function detail interfaces.
[0138] When the electronic device's display interface jumps to the function details interface, the user can view the details of the specified function module to assist the user in deciding whether to use the specified function module in the near future. If the user determines that the specified function module can be turned off, the user can choose to click the switch control to turn off the specified function module in the electronic device, thereby reducing the power consumption of the electronic device and improving the battery life of the electronic device.
[0139] Using the above method, the first notification reminder window includes a first control, a second control, and a third control. The user can flexibly and conveniently process the first notification reminder window by clicking the first control, the second control, or the third control, so that the electronic device's processing of the specified functional module conforms to the user's wishes. If the user clicks the first control, the electronic device can shut down the specified functional module, which can reduce the electronic device's power consumption and improve the electronic device's battery life. If the user clicks the second control, it means that the user does not want to shut down the specified functional module, and the shutdown reminder function for the specified functional module is turned off, which can avoid pushing shutdown reminders for the specified functional module to the user in the future. If the user clicks the third control, the user can quickly view the details of the specified functional module, facilitating the user's decision-making.
[0140] In some embodiments of the present application, the second notification reminder window includes a fourth control. After closing the specified function module and displaying the second notification reminder window, the method further includes:
[0141] In response to the user's operation on the fourth control, a function detail page of the specified function module is displayed, the function detail interface includes a switch control, and in response to the user's turning on operation on the switch control, the specified function module is turned on.
[0142] Taking the designated functional module as the NFC function as an example, as shown in FIG5 a , FIG5 a exemplarily shows a second notification reminder window, which includes a notification title, notification time, prompt information, and a “more” control.
[0143] As shown in FIG5a , the title of the notification is “Notification Management”, the notification time is “1 minute ago”, and the prompt message is “It has been detected that the “NFC” function has not been used for more than 1 month, and the function has been turned off to improve battery life”.
[0144] When the user clicks the "More" control, the display interface of the electronic device is triggered to jump from the NFC second notification reminder window to the NFC function details interface.
[0145] As shown in FIG5 b , the function details interface of the NFC function includes an NFC switch button, wherein the NFC switch button is the switch control mentioned above.
[0146] Among them, the user can click the NFC switch button to trigger the electronic device to move the dot in the NFC switch button from the left side of the switch button to the right side of the switch button, thereby re-enabling NFC.
[0147] Using this method, when an electronic device detects that a specified functional module has not been used for a long time, it can directly shut down the specified functional module, thereby reducing power consumption and improving battery life. A fourth control is also displayed in the second notification window, allowing the user to flexibly choose whether to reopen the specified functional module.
[0148] Optionally, the second notification reminder window may further include a fifth control. Accordingly, after the electronic device closes the designated functional module and displays the second notification reminder window, the method may further include: the electronic device, in response to the user's operation on the fifth control, opening the designated functional module and canceling the closing reminder function for the designated functional module.
[0149] It is understandable that when the user clicks the fifth control, the electronic device can be triggered to turn on the specified functional module and cancel the shutdown reminder function for the specified functional module. After that, the electronic device no longer pops up the notification reminder window for the specified functional module. Specifically, the fifth control can be displayed as "Restore" in the second notification reminder window.
[0150] Taking the designated functional module as the NFC function as an example, as shown in FIG6 , FIG6 exemplarily shows a second notification reminder window. Compared with FIG5 a , FIG6 adds a “restore” control.
[0151] When the user clicks the "Restore" control, the electronic device is triggered to stop displaying the second notification reminder window and cancel the shutdown reminder function of the NFC function.
[0152] By displaying a "Resume" control in the second notification reminder window, it is easy for the user to reopen a designated function module that was automatically closed. Moreover, for a designated function module that the user wishes to keep open, the user can click the "Resume" control to keep the designated function module open, and the electronic device can disable the shutdown reminder function for the designated function module, thus avoiding displaying the notification reminder window for the designated function module again, thus avoiding disturbing the user and meeting user needs.
[0153] In an optional implementation of the embodiment of the present application, the electronic device may display a third notification reminder window in response to a continuous non-use period that meets a preset condition. Taking the designated functional module as the NFC function as an example, as shown in FIG7 , FIG7 exemplifies a third notification reminder window, which includes a notification title, notification time, and prompt information.
[0154] Among them, the notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "It has been detected that the "Voice Wake-up" function has not been used for more than 1 month, and the function has been turned off to improve battery life."
[0155] After seeing the third notification reminder window, if the user still needs to use the specified function module, the user can choose to open the function details page of the specified function module from the settings interface of the mobile phone and turn on the specified function module again.
[0156] In some embodiments of the present application, a notification reminder window can also be displayed on the lock screen interface of the electronic device. Still taking the designated functional module as the voice wake-up function as an example, as shown in Figure 8, when the electronic device is in the screen-off state, if the electronic device needs to display a notification reminder window, the notification reminder window can be displayed on the lock screen interface of the electronic device, and the notification reminder window includes part of the content in the above notification reminder window. For example, the notification reminder window includes the notification title, notification time and some prompt information. The notification title is "Notification Management", the notification time is "1 minute ago", and the prompt information is "It has been detected that the "Voice Wake-up" function has not been used for more than 1 month..."
[0157] In this way, the electronic device can automatically light up the screen and display the lock screen interface when the notification reminder window needs to be displayed, or when the user actively turns on the electronic device, the electronic device displays the notification reminder window on the lock screen interface, so that the user clicks on the notification reminder window and processes the content in the prompt information of the notification reminder window.
[0158] In the embodiment of the present application, the method flow shown in FIG3 is executed after the electronic device determines that the designated functional module is turned on. As shown in FIG9 , the method specifically includes the following steps:
[0159] S901: Determine whether a specified functional module is enabled.
[0160] If so, then after the first preset time period, execute S902.
[0161] Among them, the electronic device can determine whether the designated functional module is turned on through an active query mechanism or a reporting mechanism. The active query mechanism refers to the electronic device monitoring whether the designated functional module is turned on. The reporting mechanism refers to the electronic device receiving a notification from the designated functional module that the designated functional module is turned on, that is, each designated functional module in the electronic device will report after its own switch state changes, so that the electronic device can promptly determine the switch state of each designated functional module. Using the above-mentioned active query mechanism or reporting mechanism, the electronic device can obtain the switch state changes of the designated functional module in real time, and then the electronic device can accurately obtain the moment when the designated functional module is turned on.
[0162] S902: Query the last usage time of the specified functional module.
[0163] The electronic device can obtain a usage notification reported by a designated functional module and, based on the usage notification, record the reported usage status and usage time in the usage record information of the designated functional module. The usage notification includes the identifier of the designated functional module and the usage status, where the usage status is either started or ended.
[0164] The usage notification may include the start time of usage or the end time of usage, that is, if the usage status in the usage notification is start of usage, the usage notification also includes the start time of usage, and then the electronic device may record the start time of usage included in the usage notification as a usage record in the start of usage status; if the usage status in the usage notification is end of usage, the usage notification also includes the end time of usage, and then the electronic device may record the end time of usage included in the usage notification as a usage record in the end of usage status.
[0165] Alternatively, the usage notification may not carry the start time or the end time of usage. When the electronic device obtains the usage notification, it records the time when the usage notification is obtained and uses the time as the usage time.
[0166] As an example, the NFC usage record information may include:
[0167] It will be used from 21:14:30 on July 20, 2023.
[0168] End of use at 21:15:00 on July 20, 2023;
[0169] ...;
[0170] It will be put into use at 21:01:25 on July 26, 2023.
[0171] On this basis, the electronic device can query the last time a specified functional module was used from the usage record information. In this way, since the electronic device has pre-generated usage record information, the last time a specified functional module was used can be quickly and accurately queried, thereby improving data query efficiency.
[0172] Optionally, in another embodiment, the designated functional module does not need to report the usage notification, and the electronic device can also query the designated functional module for the last usage time of the designated functional module. In this way, the electronic device can accurately obtain the last usage time from the designated functional module.
[0173] S903: Determine the duration of continuous non-use of the specified functional module based on the last time of use.
[0174] S904: Determine whether the duration of continuous non-use meets a preset condition.
[0175] If yes, execute S905; if no, execute S902 after the second preset time.
[0176] The preset condition is that the continuous non-use time reaches the time baseline value; or the preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the specified functional module reaches the power consumption baseline value.
[0177] If the electronic device determines that the continuous non-use period does not meet the preset condition, it will query the last use time of the designated functional module again after a second preset period. The electronic device can continuously monitor the continuous non-use period of the designated functional module, and when the continuous non-use period meets the preset condition, the electronic device promptly displays the first notification reminder window or the second notification reminder window to the user.
[0178] S905: In response to the continuous non-use time satisfying a preset condition, display a first notification reminder window, or close a specified function module and display a second notification reminder window.
[0179] When the preset condition is that the continuous unused duration reaches the duration baseline value, the electronic device can calculate the continuous unused duration of the specified functional module at the current moment and compare the continuous unused duration of the specified functional module with the duration baseline value. If the continuous unused duration is less than the duration baseline value, the electronic device returns to step S902 after a second preset duration at the current moment, querying the last time the specified functional module was used, until the continuous unused duration of the specified functional module is greater than or equal to the duration baseline value, at which point the electronic device displays the first notification reminder window or closes the specified functional module and displays the second notification reminder window.
[0180] For example, the designated functional module is the voice wake-up function, the duration baseline value of the voice wake-up function is 30 days, and the second preset duration of the voice wake-up function is 20 days. If the electronic device calculates that the continuous non-use duration of the voice wake-up function at the current moment is 15 days, which is less than the duration baseline value of 30 days, the electronic device will query the last use time of the voice wake-up function again after 20 days of the second preset duration; if the electronic device calculates the continuous non-use duration of 35 days based on the last use time of the voice wake-up function obtained this time, which is greater than the duration baseline value of 30 days, the electronic device will display the above-mentioned first notification reminder window or the second notification reminder window.
[0181] If the continuous non-use time reaches the duration baseline value, it indicates that the user has not used the specified functional module for a long time, and the specified functional module has been consuming power, that is, the specified functional module consumes more power when not in use. At this time, the user is reminded to turn off the specified functional module or directly turn off the specified functional module, which can avoid continuous power consumption of the specified functional module and improve the battery life of the electronic device.
[0182] When the preset condition is that the product of the continuous non-use period and the power consumption value per unit time of the specified functional module reaches the power consumption baseline value, the electronic device can calculate the continuous non-use period of the specified functional module at the current moment, and calculate the product of the continuous non-use period and the power consumption value per unit time to obtain the continuous non-use cumulative power consumption value. Among them, the power consumption value per unit time of each function can be referred to Table 1. Then, the continuous non-use cumulative power consumption value of the specified functional module is compared with the power consumption baseline value. If the continuous non-use cumulative power consumption value is less than the power consumption baseline value, the electronic device returns to S902 after the second preset time at the current moment, and queries the last use time of the specified functional module, until the continuous non-use cumulative power consumption value of the specified functional module is greater than or equal to the power consumption baseline value.
[0183] For example, if the designated functional module is NFC, the baseline power consumption of the NFC function is 360 mAh, and the second preset duration of the NFC function is 10 days, refer to Table 1 to obtain the hourly power consumption of NFC of 1 mAh. If the electronic device calculates that the voice wake-up function has not been used for 5 days at the current moment, the calculated cumulative power consumption is 5 * 24 * 1 mAh = 120 mAh.
[0184] Because the accumulated power consumption value of 120mAh for continuous non-use is less than the power consumption baseline value of 360mAh, the electronic device queries the last time the NFC function was used again after the second preset time period of 10 days. If the electronic device calculates the continuous non-use time as 15 days based on the last time the NFC function was used, the accumulated power consumption value for continuous non-use is 15*24*1mAh=360mAh. The accumulated power consumption value of 360mAh for continuous non-use is equal to the power consumption baseline value of 360mAh, so the electronic device displays the first notification reminder window or the second notification reminder window.
[0185] The first preset duration and the second preset duration are determined based on a duration baseline value and a power consumption value per unit time of a specified functional module, or based on a power consumption baseline value and a power consumption value per unit time of a specified functional module. The greater the power consumption value per unit time, the shorter the first preset duration and the second preset duration.
[0186] If the product of the duration of non-use and the power consumption per unit time of a specified functional module reaches the power consumption baseline value, it means that the specified functional module is consuming too much power and has not been used for a long time. At this time, the user will be prompted to turn off the specified functional module or the specified functional module will be turned off directly, which can prevent the specified functional module from continuing to consume power and improve the battery life of the electronic device.
[0187] Based on the above embodiments, as shown in FIG10 , FIG10 exemplifies a function management method based on a reporting mechanism provided by the present application, which is applied to an electronic device, wherein the electronic device includes a function module, a unified management module, and a notification display module. Among them, as shown in FIG10 , there are five function modules, namely, voice wake-up, breath wake-up, NFC, Bluetooth, and smart perception.
[0188] Among them, the unified management module stores the baselines corresponding to each designated functional module that can use the shutdown reminder function provided by the embodiment of the present application. The baseline is the above-mentioned duration baseline value or power consumption baseline value. The unified management module also stores the first preset duration and the second preset duration.
[0189] The unified management module has a baseline configuration function. Baselines can be configured by either cloud-side devices or end-side devices (end-side devices refer to electronic devices). After completing a baseline configuration, the cloud-side device can subsequently update the baseline. Specifically, the cloud-side device can send a baseline update command to the unified management module. After receiving the baseline update command from the cloud-side device, the unified management module can configure the baseline again.
[0190] After completing the baseline configuration, the unified management module receives usage notifications reported by each functional module.
[0191] The unified management module makes baseline judgments and decisions based on the usage notifications reported by each functional module, and determines to report notification reminders to the notification display module.
[0192] After receiving the notification reminder reported by the unified management module, the notification display module displays a first notification reminder window on the display interface of the electronic device. The first notification reminder window includes an "agree to close" control, an "ignore" control, and a "more" control.
[0193] When the user selects the "Agree to Close" control, the notification display module is triggered to send a switch closing instruction to the unified management module. The switch closing instruction is used to instruct the unified management module to close the corresponding switch.
[0194] When the user selects the "Ignore" control, the notification display module is triggered to send a deregistration instruction to the unified management module. This deregistration instruction is used to instruct the unified management module to cancel the shutdown reminder function for the specified functional module. The unified management module can then perform a baseline configuration to cancel the shutdown reminder function for the specified functional module.
[0195] When the user selects the "More" control, the display interface of the electronic device is triggered to jump from the first notification reminder window to the function details interface of the function corresponding to the notification reminder.
[0196] Based on the above embodiment, as shown in FIG11 , FIG11 exemplarily illustrates a function management method based on an active query mechanism provided by the present application. The method takes the voice wake-up function as an example and specifically includes the following steps:
[0197] S1101, start.
[0198] S1102: The unified management module monitors the switch change of the voice wake-up function.
[0199] If the voice wake-up function switch is changed from the off state to the on state, S1103 is executed; if the voice wake-up function switch is changed from the on state to the off state, S1107 is executed.
[0200] S1103: Set a timer A to query the last time the voice wake-up function was used after Y days.
[0201] When the unified management module detects that the voice wake-up function has switched from an off state to an on state, it starts timer A. Y days is the first preset duration in the above embodiment. The unified management module then calculates the duration of the voice wake-up function's continuous non-use based on the last time of use and Y days.
[0202] The unified management module can query the last time the voice wake-up function was used from the voice wake-up function. Taking the electronic device as a mobile phone as an example, the storage space corresponding to the voice wake-up function of the mobile phone includes the time of each use of the voice wake-up function.
[0203] S1104: Whether the duration of time the voice wake-up function has not been used is greater than the baseline.
[0204] The baseline may be the duration baseline value or the power consumption baseline value described in the above embodiments. When the baseline is the duration baseline value, the unified management module compares whether the continuous non-use time is greater than the duration baseline value; when the baseline is the power consumption baseline value, the unified management module compares whether the product of the continuous non-use time and the power consumption per unit time is greater than the power consumption baseline value.
[0205] If yes, execute S1106; if no, execute S1105.
[0206] S1105. Set a timer B and query again after X days.
[0207] X days is the second preset duration in the above embodiment. When the unified management module determines that the voice wake-up function has not been used for a continuous period of time shorter than the baseline, the timer B is started.
[0208] S1106. Send a notification to the notification display module to remind the user to turn off the voice wake-up function to improve battery life.
[0209] S1107. Cancel timer A.
[0210] S1108. Cancel timer B.
[0211] S1109, end.
[0212] By adopting the above method, the unified management module can monitor the switch changes of the designated functional module. When the switch changes from off to on, the unified management module starts the shutdown reminder function of the designated functional module and starts timer A. After Y days, the last use time of the designated functional module is queried and the continuous non-use period is calculated. If the continuous non-use period is less than the baseline, timer B is started, and after X days, the last use time of the designated functional module is queried. In this way, the last use time of the designated functional module can be continuously queried. When the continuous non-use period is greater than the baseline, a notification is sent to the notification display module so that the notification display module displays a notification reminder window. The user can see the notification reminder window on the display page of the electronic device in a timely manner, so that the user can choose to turn off the designated functional module that has not been used for a long time, thereby improving the battery life of the electronic device.
[0213] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, wherein when the program is executed, the device containing the computer-readable storage medium is controlled to perform some or all of the steps in the above embodiment. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0214] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes some or all of the steps in the above method embodiment.
[0215] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0216] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0217] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0218] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, instructions can be distributed over a network or by other computer-readable media. Therefore, machine-readable media can include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to, floppy disks, optical disks, optical disks, compact disc read-only memories (Compact Disc Read Only Memory, CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic or other forms of propagation signals. Accordingly, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0219] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.
[0220] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.
[0221] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0222] Although the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.
Claims
1. A function management method, characterized in that: The method is applied to an electronic device, and the method comprises: After determining the first preset time duration that the designated functional module is turned on, querying the last time the designated functional module is used; Determine the duration of continuous non-use of the designated functional module based on the last time of use; In response to the continuous non-use time satisfying a preset condition, a first notification reminder window is displayed, or the designated function module is closed and a second notification reminder window is displayed, wherein the first notification reminder window is used to remind the user to close the designated function module, and the second notification reminder window is used to remind the user that the designated function module has been closed.
2. The method according to claim 1, characterized in that The first notification reminder window includes a first control, a second control, and a third control; after displaying the first notification reminder window, the method further includes: In response to the user's operation on the first control, stop displaying the first notification reminder window and close the designated function module; In response to the user's operation on the second control, stop displaying the first notification reminder window and cancel the closing reminder function for the designated function module; In response to the user's operation on the third control, a function details interface of the designated function module is displayed.
3. The method according to claim 2, characterized in that The function details interface includes a switch control; after displaying the function details interface of the specified function module, the method further includes: In response to a user closing operation on the switch control, the designated functional module is closed.
4. The method according to claim 1, characterized in that: The second notification reminder window includes a fourth control; after closing the specified function module and displaying the second notification reminder window, the method further includes: In response to the user's operation on the fourth control, displaying a function details page of the specified function module, wherein the function details interface includes a switch control; In response to a user's turning on operation of the switch control, the designated function module is turned on.
5. The method according to claim 4, characterized in that The second notification reminder window further includes a fifth control; after closing the specified function module and displaying the second notification reminder window, the method further includes: In response to the user's operation on the fifth control, the designated function module is turned on, and the shutdown reminder function of the designated function module is canceled.
6. The method according to any one of claims 1 to 5, characterized in that: After determining the continuous unused duration of the designated functional module based on the last used time, the method further includes: Determining whether the continuous non-use time meets the preset condition; If not, after a second preset time period, the process returns to the step of querying the last time the designated functional module was used.
7. The method according to claim 6, characterized in that Before querying the last time the specified functional module was used, the method further includes: Monitor whether the specified functional module is enabled; or, Receive a notification reported by the designated functional module that the designated functional module has been turned on.
8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining a usage notification reported by the specified functional module, wherein the usage notification includes an identifier of the specified functional module and a use status, wherein the use status is start of use or end of use; Based on the usage notification, the reported usage status and usage time are recorded in the usage record information of the designated functional module; The querying of the last usage time of the specified functional module includes: The last time the specified functional module was used is queried from the usage record information.
9. The method according to any one of claims 1 to 5, characterized in that: The querying of the last usage time of the specified functional module includes: The last time the designated functional module was used is queried from the designated functional module.
10. The method according to claim 1, characterized in that The preset condition is that the continuous non-use time reaches a time baseline value; or, The preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the designated functional module reaches the power consumption baseline value.
11. An electronic device, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method according to any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The invention comprises a computer program, which, when executed on an electronic device, enables the electronic device to execute the function management method according to any one of claims 1 to 10.
13. A computer program product, characterized in that The computer program product comprises executable instructions, and when the executable instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method and device for saving electricity for intelligent terminal
CN105188115A
Method for adjusting endurance time of mobile terminal and mobile terminal
CN107197083A
Method for controlling application program and terminal
CN110554762A
Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2017206878A1