A function management method, an electronic device, and a storage medium
Patent Information
- Application Number
- CN202310978396.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2043-08-03
AI Technical Summary
而电子设备一些功能,例如语音唤醒、气息唤醒、近场通信(Near Field Communication,NFC)、蓝牙、智慧感知等功能,这些功能会持续性的耗电,影响电子设备的续航水平
[0030]Thirdly, embodiments of this application provide a computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform the function management method of the first aspect.
Smart Images

Figure CN119449942B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more particularly to a function management method, electronic device, and storage medium. Background Technology
[0002] Currently, with the continuous updates and iterations of mobile phones and other electronic devices, these devices are becoming increasingly feature-rich. However, some functions of these devices, such as voice wake-up, breath wake-up, Near Field Communication (NFC), Bluetooth, and smart sensing, continuously consume power, affecting the battery life of these electronic devices. Summary of the Invention
[0003] This application provides a function management method, an electronic device, and a storage medium to improve the battery life of electronic devices. The specific technical solution is as follows:
[0004] In a first aspect, embodiments of this application provide a function management method, which is applied to an electronic device, and the method includes:
[0005] After determining the first preset duration for which the specified function module is enabled, query the last time the specified function module was used; determine the duration of continuous inactivity of the specified function module based on the last time it was used; in response to the duration of continuous inactivity meeting the preset conditions, display a first notification window, or close the specified function module and display a second notification window. 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.
[0006] Thus, after determining the first preset duration for which a specified function module has been enabled, the electronic device determines the duration for which the function is not used continuously based on the last time the specified function module was used. When the duration of continuous inactivity meets the preset condition, it indicates that the specified function module has not been used for a relatively long time, meaning that the user may not use the specified function module frequently. Therefore, the electronic device can display a first notification reminder window to remind the user to turn off the specified function module, or the electronic device can turn off the specified function module and display a second notification reminder window to prevent the specified function module from consuming power and affecting the battery life of the electronic device.
[0007] In one possible implementation, the prompt message is used to remind the user to close a specified function module. The notification window also includes a first control, a second control, and a third control. After displaying the notification window, the method further includes: closing the specified function module in response to the user's operation on the first control; stopping the display of the notification window and canceling the closing reminder function for the specified function module in response to the user's operation on the second control; and displaying the function details interface of the specified function module in response to the user's operation on the third control.
[0008] The first control in the first notification window can be displayed as "Agree to close"; the second control in the first notification window can be displayed as "Ignore"; and the third control in the first notification window can be displayed as "More".
[0009] Thus, the first notification window includes a first control, a second control, and a third control. Users can flexibly and conveniently manage the first notification window by clicking the first, second, or third control, ensuring that the electronic device's handling of specific functional modules aligns with the user's wishes. Clicking the first control disables the specified functional module, reducing power consumption and improving battery life. Clicking the second control indicates that the user does not wish to disable the specified functional module, thus disabling the disable notification function for that module and preventing subsequent notifications. Clicking the third control allows users to quickly view details of the specified functional module, facilitating decision-making.
[0010] In one possible implementation, 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 the user's closing operation of the switch control, closing the specified function module. When the electronic device's display interface jumps to the function details interface, it allows the user to 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 closed, the user can choose to click the switch control to make the electronic device close the specified function module, thereby reducing the power consumption of the electronic device and improving its battery life.
[0011] In one possible implementation, the second notification window includes a fourth control; after closing the specified functional module and displaying the second notification window, the method further includes: in response to the user's operation on the fourth control, displaying the function details page of the specified functional module, the function details page including a switch control; and in response to the user's operation on the switch control, opening the specified functional module.
[0012] As an example, the fourth control can appear as "More" in the second notification window.
[0013] In this way, when an 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, improve the battery life, and display a fourth control in the second notification window, so that users can flexibly choose whether to reopen the specified function module.
[0014] In one possible implementation, the second notification window further includes a fifth control; after closing the specified functional module and displaying the second notification window, the method further includes: responding to the user's operation on the fifth control, opening the specified functional module, and canceling the closing notification function for the specified functional module.
[0015] As an example, the fifth control can be displayed as "Restore" in the second notification window.
[0016] Thus, by displaying the fifth control in the second notification window, users can easily reopen the specified function module that has been automatically closed. For specified function modules that users want to keep open, they can keep the specified function module open by clicking the fifth control. The electronic device can also turn off the closing reminder function for the specified function module, avoiding the re-display of the notification reminder window for that specified function module. This avoids disturbing the user and meets their needs.
[0017] In one possible implementation, after determining the duration of continuous non-use of a specified functional module based on the last usage time, the method further includes: determining whether the duration of continuous non-use meets a preset condition; if not, after a second preset duration, returning to the step of querying the last usage time of the specified functional module.
[0018] Thus, if the electronic device determines that the duration of continuous inactivity does not meet the preset conditions, it will query the last usage time of the specified functional module again after a second preset duration. The electronic device can continuously monitor the duration of continuous inactivity of the specified functional module, and when the duration of continuous inactivity meets the preset conditions, the electronic device will promptly display a first notification reminder window to the user.
[0019] In one possible implementation, after determining the first preset duration for which the specified functional module is enabled and before querying the last time the specified functional module was used, the method further includes: listening to whether the specified functional module is enabled; or, receiving a notification from the specified functional module that the specified functional module has been enabled.
[0020] Using the two methods described above, electronic devices can obtain the on / off state changes of specified functional modules in real time, thereby accurately determining when a specified functional module is turned on.
[0021] In one possible implementation, the method further includes: obtaining a usage notification reported by a specified functional module, the usage notification including the identifier of the specified functional module and its usage status, the usage status being either "started using" or "ended using"; and based on the usage notification, recording the reported usage status and usage time in the usage record information of the specified functional module.
[0022] To query the last time a specified functional module was used, including querying the last time a specified functional module was used from the usage record information.
[0023] In this way, since the electronic device has already generated usage record information in advance, it can quickly and accurately query the last time of use of a specified functional module, thus improving data query efficiency.
[0024] In one possible implementation, querying the last usage time of a specified functional module includes: retrieving the last usage time of the specified functional module from the specified functional module itself. In this way, the electronic device can accurately obtain the last usage time from the specified functional module.
[0025] In one possible implementation, the preset condition is that the duration of continuous inactivity reaches the baseline value; or, the preset condition is that the product of the duration of continuous inactivity and the power consumption per unit time of the specified functional module reaches the power consumption baseline value.
[0026] If the duration of continuous inactivity reaches the baseline value, it indicates that the user has not used the specified function module for an extended period, and that the specified function module has been continuously consuming power. In other words, the specified function module consumes a significant amount of power even when not in use. In this case, reminding the user to turn off the specified function module or directly shutting it down can prevent continuous power consumption and improve the battery life of the electronic device. Similarly, if the product of the duration of continuous inactivity and the power consumption per unit time of the specified function module reaches the power consumption baseline value, it means that the specified function module consumes excessive power, and the user has not used it for a long time. In this case, reminding the user to turn off the specified function module or directly shutting it down can prevent continuous power consumption and improve the battery life of the electronic device.
[0027] Secondly, embodiments of this application provide an electronic device, including:
[0028] One or more processors and memory;
[0029] The memory is coupled to one or more processors. The memory is used to store computer program code, which includes computer instructions. One or more processors invoke the computer instructions to cause the electronic device to perform the method of the first aspect.
[0030] Thirdly, embodiments of this application provide a computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform the function management method of the first aspect.
[0031] Fourthly, embodiments of this application provide a computer program product containing executable instructions that, when executed on a computer, cause the computer to perform the method of the first aspect.
[0032] It should be understood that the second to fourth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0033] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0035] Figure 2 This is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0036] Figure 3 A flowchart illustrating the first function management method provided in this application embodiment;
[0037] Figure 4a This is an exemplary schematic diagram of the first type of notification reminder window provided in the embodiments of this application;
[0038] Figure 4b This is an exemplary schematic diagram of the second type of notification reminder window provided in the embodiments of this application;
[0039] Figure 4c This is an exemplary schematic diagram of the first type of functional details interface provided in the embodiments of this application;
[0040] Figure 4d This is an exemplary schematic diagram of the second type of functional details interface provided in the embodiments of this application;
[0041] Figure 5a This is an exemplary schematic diagram of the third type of notification reminder window provided in the embodiments of this application;
[0042] Figure 5bThis is an exemplary schematic diagram of the third type of functional details interface provided in the embodiments of this application;
[0043] Figure 6 This is an exemplary schematic diagram of the fourth type of notification reminder window provided in the embodiments of this application;
[0044] Figure 7 This is an exemplary schematic diagram of the fifth type of notification reminder window provided in the embodiments of this application;
[0045] Figure 8 This is an exemplary schematic diagram of the sixth type of notification reminder window provided in the embodiments of this application;
[0046] Figure 9 This is a flowchart of the second function management method provided in the embodiments of this application;
[0047] Figure 10 An exemplary schematic diagram of a function management method based on a reporting mechanism provided in an embodiment of this application;
[0048] Figure 11 This is an exemplary schematic diagram of a function management method based on an active query mechanism provided in an embodiment of this application. Detailed Implementation
[0049] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0050] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. For example, "first instruction" and "second instruction" are used to distinguish different user instructions and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0051] It should be noted that, in this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0052] The function management method provided in this application can be applied to electronic devices. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), smartwatch, wearable device, etc. This application does not limit the type of electronic device.
[0053] Figure 1 This is a schematic diagram of an electronic device provided in an embodiment of this application. Figure 1 The illustrated electronic device may include a processor 110, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, buttons 190, motor 191, indicator 192, cameras 1-N 193, display screen 194, and subscriber identification module (SIM) card interface 1-N 195, etc. The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0054] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0055] Processor 110 may include one or more processing units, such as application processors, modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0056] The controller can serve as the nerve center and command center of an electronic device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.
[0057] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0058] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include inter-integrated circuit (I2C) interfaces, inter-integrated circuit sound (I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous receiver / transmitter (UART) interfaces, mobile industry processor interfaces (MIPI), general-purpose input / output (GPIO) interfaces, etc.
[0059] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0060] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more 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 some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0061] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0062] In the embodiments of the application, the mobile communication module may also be referred to as a cellular module, and the two can be described interchangeably.
[0063] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to a speaker, receiver, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0064] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (WIFI) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2. In some embodiments, at least some functional modules of the wireless communication module 160 can be housed within processor 110.
[0065] In some embodiments of this application, an electronic device can establish a wireless connection with other electronic devices through a wireless communication module 160 (such as a Bluetooth module and a WLAN module) and an antenna 2 to realize data transmission between the electronic device and other electronic devices.
[0066] 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, enabling the electronic device to communicate with networks and other devices via wireless communication technology. The wireless communication technology 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 technologies. 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 Systems (SBAS).
[0067] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a limitation on the structure of the electronic device. In other embodiments of this application, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0068] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0069] Electronic devices implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0070] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1.
[0071] Electronic devices can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0072] 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 1.
[0073] 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 is selecting a frequency, a DSP can perform a Fourier transform on the frequency energy.
[0074] Electronic devices can implement audio functions through audio modules 170, speakers, receivers, microphones, headphone jacks, and application processors. Examples include music playback and recording.
[0075] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device.
[0076] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as screen mirroring, network sharing, etc.), etc. The data storage area may store data created during the use of the electronic device (such as video data, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0077] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The electronic device can receive button input and generate key signal inputs related to user settings and function control of the electronic device.
[0078] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.
[0079] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device. The electronic device can support one or N SIM card interfaces, where N is a positive integer greater than 1.
[0080] The software system of the aforementioned electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to illustrate the software system of the electronic device. Figure 2 As shown, the layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the hardware abstraction layer, and the hardware layer.
[0081] like Figure 2 As shown, the application layer can have multiple applications installed, such as voice wake-up, smart sensing, Bluetooth, NFC, and breath wake-up modules.
[0082] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 2 As shown, the application framework layer may include: a unified management module, a content provider, and a view system, etc.
[0083] The unified management module is used to monitor the duration of continuous inactivity of various functional modules in the application layer and to promptly remind users to close functional modules that have not been used for a long time.
[0084] Content providers are used to store and retrieve data and make this data accessible to applications. This data may include the time when a user uses the aforementioned applications.
[0085] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build the display interface of an application. The display interface can consist of one or more views, such as views displaying the app icon and pop-ups, views displaying text, and views displaying images.
[0086] The Hardware Abstraction Layer (HAL) is an interface layer located 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, providing the operating system with a virtual hardware platform that is hardware independent and portable across multiple platforms.
[0087] The hardware layer includes, but is not limited to, positioning components, accelerometers, gyroscopes, and displays. The positioning components are used to implement positioning functions; for example, a positioning component could be a GPS positioning device. Accelerometers and gyroscopes can be used to determine the state of the electronic device, that is, whether the electronic device is moving or stationary.
[0088] The power consumption of different functions in the above electronic devices varies per hour when they are turned on and not in use. The power consumption of each function per hour is shown in Table 1.
[0089] Table 1
[0090] Voice wake-up 1-3mAh Awakening of Breath 1mAh NFC 1mAh Bluetooth 0.5mAh Intelligent Sensing 2mAh
[0091] Voice wake-up refers to waking up an electronic device using voice commands, enabling the device to enter voice recognition and processing mode. Users can activate the electronic device and initiate corresponding voice interaction functions using predefined specific words or phrases.
[0092] Breath wake-up refers to the function of electronic devices that automatically turn on the screen by sensing the slight airflow generated when the user breathes or their finger approaches the phone.
[0093] 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 over very short distances. For example, electronic devices can use NFC to perform the following functions:
[0094] Payment: Electronic devices with NFC enabled can complete payments by bringing them close to NFC-enabled terminals.
[0095] Information Acquisition: Electronic devices can read information from NFC-enabled devices, such as product prices, links to websites, or app downloads.
[0096] Bluetooth refers to the ability for two electronic devices to exchange data or communicate without a network connection. Bluetooth technology is commonly used to connect mobile phones to other devices such as headphones, speakers, and smart bracelets to enable data transfer, file sharing, or phone calls.
[0097] Intelligent sensing refers to the ability of electronic devices to perceive their environment and react accordingly through various sensors, algorithms, and artificial intelligence technologies. Specifically, intelligent sensing can include functions such as location sensing, motion sensing, and environmental sensing.
[0098] The aforementioned functional modules will continuously consume power when they are turned on, which will reduce the battery life of electronic devices.
[0099] To address the aforementioned problems, embodiments of this application provide a function management method, such as... Figure 3 As shown, the method specifically includes the following steps:
[0100] S301. After determining the first preset duration for which the specified functional module is enabled, query the last time the specified functional module was used.
[0101] The designated functional modules are those that require intelligent management using the functional management method provided in this application embodiment. These modules will continuously consume power when they are turned on, regardless of whether they are used in the foreground or not.
[0102] For example, the specified functional modules can be voice wake-up, breath wake-up, NFC, Bluetooth, smart sensing, etc.
[0103] Based on Table 1 above, the power consumption level of each functional module is different, so the first preset duration for each specified functional module is also different. For example, the first preset duration for the NFC functional module can be 30 days; the first preset duration for the voice wake-up functional module can be 15 days.
[0104] S302. Determine the duration of continuous non-use of a specified functional module based on the last time it was used.
[0105] The duration of continuous non-use refers to the time difference between the current time and the last time it was used. The current time is the last time the electronic device queried the specified functional module.
[0106] For example, if the current time is 21:14:30 on July 27, 2023, and the electronic device queries the last time the specified function module was last used, and the last time the specified function module was last used is 21:14:30 on June 27, 2023, then the duration of non-use is 30 days.
[0107] S303. In response to the condition that the continuous period of inactivity meets the preset conditions, display the first notification reminder window, or close the specified function module and display the second notification reminder window.
[0108] 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.
[0109] Using the above method, after determining the first preset duration for which a specified function module has been enabled, the electronic device determines the duration of continuous inactivity for that function module based on the last time it was used. When the duration of continuous inactivity meets a preset condition, it indicates that the specified function module has not been used for a relatively long time, meaning the user may not use it frequently. Therefore, the electronic device can display a first notification window to remind the user to turn off the specified function module, or the electronic device can turn off the specified function module and display a second notification window to prevent the specified function module from consuming power and affecting the battery life of the electronic device.
[0110] In some embodiments of this application, the first notification window includes a first control, a second control, and a third control.
[0111] Specifically, the first control in the first notification window can be displayed as "Agree to close"; the second control in the first notification window can be displayed as "Ignore"; and the third control in the first notification window can be displayed as "More".
[0112] Users can choose to process any one of the three controls mentioned above, specifically in the following three cases:
[0113] Scenario 1: In response to the user's operation on the first control, stop displaying the first notification window and close the specified function module.
[0114] It is understood that the user's operation on the first control can be the user clicking the first control, or any other operation that can trigger the first control; this application embodiment does not limit this.
[0115] Taking the designated function module as voice wake-up function as an example, such as Figure 4a As shown, Figure 4a An example of a first notification reminder window is shown, which includes a notification title, notification time, prompt message, "Agree to close" control, "Ignore" control, and "More" control.
[0116] Among them, such as Figure 4a As shown, the notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "It was detected that the 'Voice Wake-up' function has not been used for more than 1 month. You can turn off this function to improve battery life."
[0117] When the user clicks the "Agree to Close" control, the electronic device is triggered to disable the voice wake-up function.
[0118] Optionally, when the electronic device closes the specified function module in response to the user's operation on the first control, a notification message can be displayed on the screen to inform the user that the specified function module has been closed.
[0119] As an example, such as Figure 4b As shown, the notification message includes a notification title, notification time, and message text.
[0120] The notification title is "Notification Management", the notification time is "1 minute ago", and the message text is "Voice wake-up function is turned off".
[0121] Scenario 2: In response to the user's operation on the second control, stop displaying the first notification window and cancel the close notification function for the specified functional module.
[0122] The "close reminder function" refers to the function of closing reminders for a specified function module using the function management method provided in the embodiments of this application.
[0123] Still with Figure 4a For example, when a user clicks the "ignore" control, the electronic device stops displaying the first notification reminder window and cancels the reminder function for turning off the voice wake-up function.
[0124] Case 3: In response to the user's operation on the third control, display the function details interface of the specified function module.
[0125] The function details interface includes a switch control, which allows users to configure or view the detailed information of a specified function module.
[0126] Still with Figure 4a For example, when a user clicks the "More" control, the electronic device's display interface jumps from the first notification window to the function details interface of the voice wake-up function.
[0127] For example, if the first notification window is used to remind the user to turn off the NFC function module, then after the user clicks the "More" control, the electronic device's display interface will jump from the first notification window to the NFC function details interface.
[0128] like Figure 4c As shown, Figure 4c An exemplary diagram of an NFC function details interface is shown. The NFC function details interface includes an NFC switch button, text descriptions, and a schematic diagram of NFC functions.
[0129] Specifically, when the dot in the NFC switch button is on the right side of the NFC switch button, it indicates that NFC is enabled; when the dot is on the left side of the NFC switch button, it indicates that NFC is disabled. Users can click the NFC switch button to adjust the on / off state of the NFC function.
[0130] The text description is used to guide users on how to use the NFC function. For example, the text description could be: "To perform mobile payments, tap-to-pay, or other operations, touch the back of this device to the NFC sensing area of another device."
[0131] 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. Users can click "View NFC Card Swiping Area" to trigger the corresponding navigation control, which will then redirect the electronic device's display from the current NFC function details interface to the NFC card swiping area illustration interface.
[0132] For example, if the first notification window is used to remind the user to turn off the breath-activated wake-up function, then after the user clicks the "More" control, the electronic device's display interface will jump from the first notification window to the function details interface of the breath-activated wake-up function, such as... Figure 4d As shown, Figure 4d The illustration shows a schematic diagram of the function details interface for a breath-activated wake-up function. The function details interface includes a breath-activated wake-up switch button, text descriptions, and a user guide diagram for the breath-activated wake-up function.
[0133] When the dot on the breath wake-up switch button is on the right, the breath wake-up function is enabled; when the dot is on the left, the breath wake-up function is disabled. Users can click the breath wake-up switch button to adjust the on / off state of the breath wake-up function.
[0134] The text instructions are used to guide users on how to use the breath wake-up function. For example, the text instructions could be: "1. Raise your phone, bring the bottom of the receiver close to your mouth (about 5cm away), and speak a voice command directly into the microphone, such as 'How's the weather today?' 2. Wearing a mask or being in a windy environment can affect the wake-up rate. 3. Breath wake-up is not currently supported when the phone's speaker is playing sound."
[0135] It should be noted that the breath wake-up function usage guide is used to instruct users on how to use the breath wake-up function. When the user places the electronic device within a 45-degree range above and below the mouth as the horizontal line, with the bottom of the electronic device close to the mouth, the user can wake up the electronic device with their breath and have a natural conversation with it, answering questions instantly, without having to say the wake-up phrase "Hello xxxx".
[0136] It should be noted that, Figure 4c and Figure 4d The feature details interface shown is for illustrative purposes only, and this application does not limit the specific form of the NFC and breath-activated feature details interface.
[0137] When the electronic device's display interface jumps to the function details interface, it allows users to view the details of a specific function module, helping them decide whether they need to use that module in the near future. If the user determines that they can turn off the specified function module, they can click the switch control to turn off the specified function module, thereby reducing the electronic device's power consumption and improving its battery life.
[0138] Using the above method, the first notification window includes a first control, a second control, and a third control. Users can flexibly and conveniently process the first notification window by clicking the first, second, or third control, ensuring that the electronic device's handling of the specified functional module aligns with the user's wishes. If the user clicks the first control, the electronic device can disable the specified functional module, reducing power consumption and improving battery life. If the user clicks the second control, it indicates that the user does not wish to disable the specified functional module, thus disabling the disable notification function for that module and preventing subsequent notifications. If the user clicks the third control, details of the specified functional module can be quickly viewed, facilitating user decision-making.
[0139] In some embodiments of this application, the second notification window includes a fourth control, and after closing the specified functional module and displaying the second notification window, the method further includes:
[0140] In response to the user's operation on the fourth control, the function details page of the specified function module is displayed. The function details page includes a switch control. In response to the user's operation of turning on the switch control, the specified function module is turned on.
[0141] Taking NFC functionality as an example, such as Figure 5a As shown, Figure 5a An example of a second notification window is shown, which includes a notification title, notification time, prompt message, and a "More" control.
[0142] Among them, such as Figure 5a As shown, the notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "Detected that the 'NFC' function has not been used for more than 1 month. This function has been turned off to improve battery life".
[0143] When the user clicks the "More" control, the electronic device's display interface jumps from the NFC's second notification window to the NFC function details interface.
[0144] like Figure 5b As shown, the NFC function details interface includes an NFC switch button, which is the switch control mentioned above.
[0145] Users can reactivate NFC by clicking the NFC switch button, which triggers the electronic device to move the dot in the NFC switch button from the left side to the right side of the switch button.
[0146] Using the above method, when an 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, improve the battery life, and display a fourth control in the second notification window, so that users can flexibly choose whether to reopen the specified function module.
[0147] Optionally, the second notification window may also include a fifth control. Accordingly, after the electronic device closes the specified function module and displays the second notification window, the method may further include the electronic device responding to the user's operation on the fifth control by opening the specified function module and canceling the closing notification function for the specified function module.
[0148] Understandably, when a user clicks the fifth control, it triggers the electronic device to enable the specified function module and cancels the notification for disabling that function module. Afterward, the electronic device will no longer display a notification window for that specified function module. Specifically, the fifth control can appear as "Restore" in the second notification window.
[0149] Taking NFC functionality as an example, such as Figure 6 As shown, Figure 6 An example of a second notification window is shown. Figure 6 Compared to Figure 5a A "Restore" control has been added.
[0150] When the user clicks the "Restore" control, the electronic device stops displaying the second notification window and cancels the notification function for disabling NFC functionality.
[0151] By displaying a "Restore" control in the second notification window, users can easily reopen the specified function module that was automatically closed. For specified function modules that users want to keep open, they can click the "Restore" control to keep the specified function module open. The electronic device can also turn off the closing reminder function for the specified function module, which can avoid displaying the notification reminder window for the specified function module again, thus avoiding disturbing the user and meeting the user's needs.
[0152] In one optional embodiment of this application, the electronic device can display a third notification window in response to a preset condition being met during a period of continuous inactivity. Taking the NFC function as an example, for instance... Figure 7 As shown, Figure 7 An example is shown of a third notification window, which includes a notification title, notification time, and prompt information.
[0153] The notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "Detected that the 'NFC' function has not been used for more than 1 month. This function has been turned off to improve battery life".
[0154] After seeing the third notification window, if users still need to use the specified function module, they can choose to open the function details page of the specified function module from the phone's settings interface and enable the specified function module again.
[0155] In some embodiments of this application, a notification window can also be displayed on the lock screen of the electronic device. Taking the voice wake-up function as an example, for instance... Figure 8 As shown, when an electronic device is in a screen-off state, if it needs to display a notification window, it can be displayed on the lock screen. This notification window includes some of the content from the previous notification window, such as the notification title, notification time, and some prompt information. For example, the notification title is "Notification Management," the notification time is "1 minute ago," and the prompt information is "Detected that the 'Voice Wake-up' function has not been used for more than 1 month…".
[0156] In this way, the electronic device can automatically light up and display the lock screen when a notification window needs to be displayed, or the electronic device can display the notification window on the lock screen when the user actively lights up the electronic device, so that the user can click on the notification window and process the content of the notification window's prompt message.
[0157] In the embodiments of this application, Figure 3 The method flow shown is executed after the electronic device determines that the specified functional module has been enabled, such as... Figure 9As shown, the method specifically includes the following steps:
[0158] S901. Determine whether the specified function module is enabled.
[0159] If so, then S902 will be executed after the first preset duration.
[0160] Electronic devices can determine whether a specified functional module is enabled through either an active query mechanism or a reporting mechanism. An active query mechanism involves the electronic device monitoring whether a specified functional module is enabled. A reporting mechanism involves the electronic device receiving notifications from specified functional modules indicating that they are enabled. In other words, each specified functional module in the electronic device reports its status after its on / off state changes, allowing the electronic device to promptly determine the on / off state of each module. Using either the active query mechanism or the reporting mechanism, the electronic device can obtain real-time updates on the on / off state of specified functional modules, thus accurately determining when a specified functional module is enabled.
[0161] S902. Query the last time a specified functional module was used.
[0162] Specifically, electronic devices can receive usage notifications reported by designated functional modules. Based on these notifications, the reported usage status and time are recorded in the usage log information of the designated functional module. The usage notification includes the identifier of the designated functional module and its usage status, which is either "started using" or "end of using".
[0163] The usage notification may include the start time or the end time of usage. That is, if the usage status in the usage notification is "started use", the usage notification also includes the start time of usage. Then, the electronic device can record the start time of usage included in the usage notification as a usage record in the start-use status. If the usage status in the usage notification is "end of use", the usage notification also includes the end time of usage. Then, the electronic device can record the end time of usage included in the usage notification as a usage record in the end-use status.
[0164] Alternatively, the start or end time of use may not be included in the usage notification. When the electronic device receives the usage notification, the time when the notification is received is recorded and used as the usage time.
[0165] As an example, NFC usage log information can record:
[0166] It began operation at 21:14:30 on July 20, 2023.
[0167] It will cease operation at 21:15:00 on July 20, 2023.
[0168] ...;
[0169] It started being used at 21:01:25 on July 26, 2023.
[0170] Based on this, electronic devices can query the last usage time of a specified functional module from the usage record information. Thus, since the electronic device has already generated the usage record information in advance, it can quickly and accurately query the last usage time of a specified functional module, improving data query efficiency.
[0171] Optionally, in another implementation, the designated functional module does not need to report usage notifications, and the electronic device can query the last usage time of the designated functional module from the designated functional module. In this way, the electronic device can accurately obtain the last usage time from the designated functional module.
[0172] S903. Determine the duration of continuous inactivity of a specified functional module based on the last time it was used.
[0173] S904. Determine whether the duration of continuous non-use meets the preset conditions.
[0174] If yes, execute S905; otherwise, execute S902 after the second preset duration.
[0175] The preset condition is that the duration of continuous inactivity reaches the baseline value; or, the preset condition is that the product of the duration of continuous inactivity and the power consumption per unit time of the specified functional module reaches the power consumption baseline value.
[0176] If the electronic device determines that the duration of continuous inactivity does not meet the preset conditions, it will query the last usage time of the specified functional module again after a second preset duration. The electronic device can continuously monitor the duration of continuous inactivity of the specified functional module, and when the duration of continuous inactivity meets the preset conditions, the electronic device will promptly display a first notification reminder window or a second notification reminder window to the user.
[0177] S905. In response to the condition that the continuous period of inactivity meets the preset conditions, display the first notification reminder window, or close the specified function module and display the second notification reminder window.
[0178] When the preset condition is that the duration of continuous inactivity reaches the baseline value, the electronic device can calculate the duration of continuous inactivity of the specified functional module at the current moment and compare the duration of continuous inactivity of the specified functional module with the baseline value. If the duration of continuous inactivity is less than the baseline value, the electronic device returns to step S902 and queries the last time of use of the specified functional module after the second preset duration at the current moment, until the duration of continuous inactivity of the specified functional module is greater than or equal to the baseline value. The electronic device then displays the first notification reminder window or closes the specified functional module and displays the second notification reminder window.
[0179] For example, the designated function module is voice wake-up, the baseline duration 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 current continuous inactivity duration of the voice wake-up function is 15 days, which is less than the baseline duration of 30 days, then the electronic device queries the last usage time of the voice wake-up function again after the second preset duration of 20 days. If the continuous inactivity duration calculated by the electronic device based on the last usage time of the voice wake-up function obtained this time is 35 days, which is greater than the baseline duration of 30 days, then the electronic device displays the aforementioned first notification reminder window or second notification reminder window.
[0180] If the duration of continuous inactivity reaches the baseline value, it indicates that the user has not used the specified function module for a relatively long time, and the specified function module has been consuming power continuously. In other words, the specified function module consumes a lot of power when it is not in use. At this time, reminding the user to turn off the specified function module or turning it off directly can prevent the specified function module from continuously consuming power and improve the battery life of electronic devices.
[0181] When the preset condition is that the product of the continuous inactivity duration and the unit time power consumption value of the specified functional module reaches the power consumption baseline value, the electronic device can calculate the continuous inactivity duration of the specified functional module at the current moment, and calculate the product of the continuous inactivity duration and the unit time power consumption value to obtain the continuous inactivity cumulative power consumption value. The unit time power consumption value of each function can be found in Table 1. Then, the continuous inactivity cumulative power consumption value of the specified functional module is compared with the power consumption baseline value. If the continuous inactivity cumulative power consumption value is less than the power consumption baseline value, the electronic device returns to step S902, querying the last usage time of the specified functional module, after a second preset duration at the current moment, until the continuous inactivity cumulative power consumption value of the specified functional module is greater than or equal to the power consumption baseline value.
[0182] For example, if the designated functional module is NFC, the baseline power consumption of NFC is 360mAh, and the second preset duration of NFC is 10 days, then referring to Table 1, the hourly power consumption of NFC is 1mAh. If the electronic device calculates that the continuous unused duration of the voice wake-up function at the current moment is 5 days, the calculated cumulative power consumption for continuous unused use is 5 * 24 * 1mAh = 120mAh.
[0183] Since the cumulative power consumption of 120mAh due to continuous inactivity is less than the baseline power consumption of 360mAh, the electronic device queries the last usage time of the NFC function again after a second preset period of 10 days. If the continuous inactivity period calculated by the electronic device based on the last usage time of the NFC function obtained this time is 15 days, then the cumulative power consumption of continuous inactivity is 15 * 24 * 1mAh = 360mAh. The cumulative power consumption of 360mAh due to continuous inactivity is equal to the baseline power consumption of 360mAh, therefore the electronic device displays the aforementioned first notification reminder window or second notification reminder window.
[0184] The first and second preset durations are determined based on either a baseline duration value and the power consumption value per unit time of a specified functional module, or a baseline power consumption value and the power consumption value per unit time of a specified functional module. The higher the power consumption value per unit time, the shorter the first and second preset durations.
[0185] If the product of the duration of continuous inactivity and the power consumption per unit time of a specified functional module reaches the power consumption baseline, indicating that the specified functional module consumes too much power and has not been used by the user for an extended period, then prompting the user to turn off the specified functional module or directly shutting it down can prevent the specified functional module from continuously consuming power and improve the battery life of the electronic device.
[0186] Based on the above embodiments, such as Figure 10 As shown, Figure 10 An exemplary embodiment illustrates a function management method based on a reporting mechanism provided in this application. This method is applied to an electronic device, which includes a function module, a unified management module, and a notification display module. For example, Figure 10 The example shows five functional modules: voice wake-up, breath wake-up, NFC, Bluetooth, and smart sensing.
[0187] The unified management module stores baselines corresponding to each designated functional module that can use the reminder-off function provided in this application embodiment. The baselines are the aforementioned duration baseline values or power consumption baseline values. The unified management module also stores a first preset duration and a second preset duration.
[0188] The unified management module includes a baseline configuration function. The baseline can be configured by either cloud-side devices or edge devices (electronic devices). After baseline configuration is complete, cloud-side devices can subsequently update the baseline by sending a baseline update command to the unified management module. Upon receiving the baseline update command from the cloud-side device, the unified management module can then reconfigure the baseline.
[0189] After the baseline configuration is completed, the unified management module receives usage notifications reported by each functional module.
[0190] The unified management module performs baseline judgment and decision-making based on the usage notifications reported by each functional module, and determines whether to report the notification reminder to the notification display module.
[0191] After receiving a notification notification from the unified management module, the notification display module displays a first notification notification window on the electronic device's display interface. This first notification notification window includes a "Agree to Close" control, an "Ignore" control, and a "More" control.
[0192] When the user selects the "Agree to close" control, the notification display module sends a closing switch instruction to the unified management module. This closing switch instruction is used to instruct the unified management module to close the corresponding switch.
[0193] When the user selects the "Ignore" control, the notification display module sends a deregistration command to the unified management module. This deregistration command instructs the unified management module to disable the close notification function for the specified functional module. The unified management module can then perform baseline configuration to disable the close notification function for that specific functional module.
[0194] When the user selects the "More" control, the electronic device's display interface jumps from the first notification window to the function details screen corresponding to that notification function.
[0195] Based on the above embodiments, such as Figure 11 As shown, Figure 11 This application provides an exemplary functional management method based on an active query mechanism. Taking voice wake-up function as an example, the method specifically includes the following steps:
[0196] S1101, Begin.
[0197] S1102, Changes to the voice wake-up function switch in the unified management module.
[0198] If the voice wake-up function switch changes from the off state to the on state, then execute S1103; if the voice wake-up function switch changes from the on state to the off state, then execute S1107.
[0199] S1103. Set a timer A, Y days later to query the last time the voice wake-up function was used.
[0200] Specifically, when the unified management module detects that the voice wake-up function has changed from off to on, it starts timer A. Y days is the first preset duration in the above embodiment. Then, the unified management module calculates the continuous inactivity duration of the voice wake-up function based on the last usage time and Y days.
[0201] The unified management module can retrieve the last time the voice wake-up function was used from the data. Taking a mobile phone as an example, the storage space corresponding to the voice wake-up function contains the last time the voice wake-up function was used.
[0202] S1104. Does the duration of continuous inactivity of the voice wake-up function exceed the baseline?
[0203] The baseline can be either 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 duration of continuous inactivity 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 duration of continuous inactivity and the power consumption value per unit time is greater than the power consumption baseline value.
[0204] If yes, then execute S1106; otherwise, execute S1105.
[0205] S1105. Set a timer B to query again after X days.
[0206] Wherein, X days is the second preset duration in the above embodiment. When the unified management module determines that the duration of continuous non-use of the voice wake-up function is less than the baseline, timer B is started.
[0207] 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.
[0208] S1107, Cancel timer A.
[0209] S1108, Cancel timer B.
[0210] S1109, End.
[0211] Using the above method, the unified management module can monitor the on / off status of designated functional modules. When the switch changes from off to on, the unified management module activates the module's shutdown reminder function and starts Timer A. After Y days, it queries the last usage time of the designated functional module and calculates the duration of continuous inactivity. If the duration of continuous inactivity is less than the baseline, Timer B is started, and after X days, it queries the last usage time of the designated functional module again. This process can be repeated continuously to query the last usage time of the designated functional module. When the duration of continuous inactivity exceeds the baseline, a notification is sent to the notification display module, causing it to display a notification reminder window. Users can then promptly see the notification reminder window on the electronic device's display page, allowing them to choose to shut down designated functional modules that have not been used for an extended period, thus improving the electronic device's battery life.
[0212] In a specific implementation, this application also provides a computer storage medium, wherein the computer storage medium can store a program, wherein when the program runs, it controls the device where the computer-readable storage medium is located to execute some or all of the steps in the above embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0213] In a specific implementation, this application also provides a computer program product, which includes executable instructions that, when executed on a computer, cause the computer to perform some or all of the steps in the above method embodiments.
[0214] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including 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.
[0215] Program code can be applied to input instructions to execute the functions described in this application 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, the 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.
[0216] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0217] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored thereon on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, including but not limited to floppy disks, optical disks, CD-ROMs, compact disc read-only memory (CD-ROMs), magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in the form of electrical, optical, acoustic, or other forms of propagated signals. Therefore, machine-readable media includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine-readable (e.g., computer-readable) form.
[0218] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings. Furthermore, including structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.
[0219] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.
[0220] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0221] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art should understand that various changes in form and detail may be made thereto without departing from the spirit and scope of this application.
Claims
1. A function management method, characterized in that, The method is applied to a unified management module in the application framework layer of an electronic device. The unified management module stores power consumption baseline values corresponding to specified functional modules of the application layer. These power consumption baseline values are configured by cloud-side devices or edge-side devices. The method includes: Monitor whether the specified functional module is enabled; or, receive a notification from the specified functional module that the specified functional module is enabled. Obtain the usage notification reported by the specified functional module. The usage notification includes the identifier of the specified functional module and its usage status, which is either "started using" or "ended using". Based on the aforementioned usage notification, the reported usage status and usage time will be recorded in the usage record information of the specified functional module. After determining the first preset duration for which the specified function module is enabled, the last time the specified function module was used is retrieved from the usage record information. The specified function module is a function module that consumes power regardless of whether it is used in the foreground or not when it is enabled. The first preset duration is different for each specified function module. The duration of continuous non-use of the specified functional module is determined based on the last time of use; Determine whether the duration of continuous non-use meets a preset condition, wherein the preset condition is that the product of the duration of continuous non-use and the power consumption value per unit time of the specified functional module reaches the power consumption baseline value of the specified functional module; If not satisfied, after the second preset duration, return to the step of querying the last usage time of the specified functional module. The larger the power consumption value per unit time of the specified functional module, the smaller the first preset duration and the second preset duration. In response to the condition that the continuous inactivity period meets the preset condition, a first notification window is displayed, or the specified function module is closed and a second notification window is displayed. 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.
2. The method according to claim 1, characterized in that, The first notification window includes a first control, a second control, and a third control; after displaying the first notification window, the method further includes: In response to the user's operation on the first control, stop displaying the first notification window and close the specified functional module; In response to the user's operation on the second control, the first notification reminder window is stopped from being displayed, and the notification shutdown function for the specified functional module is canceled; In response to the user's operation on the third control, the function details interface of the specified 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 the user's closing operation on the switch control, the specified functional module is closed.
4. The method according to claim 1, characterized in that, The second notification window includes a fourth control; after closing the specified function module and displaying the second notification window, the method further includes: In response to the user's operation on the fourth control, the function details interface of the specified function module is displayed, and the function details interface includes a switch control; In response to the user's activation of the switch control, the specified functional module is activated.
5. The method according to claim 4, characterized in that, The second notification window also includes a fifth control; after closing the specified function module and displaying the second notification window, the method further includes: In response to the user's operation on the fifth control, the specified function module is enabled, and the closing reminder function for the specified function module is disabled.
6. The method according to any one of claims 1-5, characterized in that, The query for the last time the specified functional module was used includes: Query the last time the specified functional module was used from the specified functional module.
7. An electronic device, characterized in that, include: One or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The method includes a computer program that, when run on an electronic device, causes the electronic device to perform the function management method as described in any one of claims 1 to 6.
9. A computer program product, characterized in that, The computer program product includes executable instructions that, when executed on a computer, cause the computer to perform the method described in any one of claims 1-6.
Citation Information
Patent Citations
Bluetooth control methods, mobile terminals and memory medium
CN109660973A
Method for controlling application program and terminal
CN110554762A