Resource regulation method and apparatus, and electronic device

By combining the touch function of electronic devices, the system accurately identifies swiping scenarios and implements resource control strategies, solving the problem of inaccurate swiping recognition and achieving precise resource supply and improved smoothness.

WO2025246451A1PCT designated stage Publication Date: 2025-12-04HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/077181
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-31
Filing Date
2025-02-13
Publication Date
2025-12-04

AI Technical Summary

Technical Problem

Differences in display frames among different electronic devices lead to inaccurate swipe recognition and inaccurate resource allocation, affecting user experience and resulting in resource waste or shortage.

Method used

By combining the touch function of electronic devices, the system can accurately identify sliding scenarios, obtain the start and end times of sliding using touch and display parameters, and implement resource regulation strategies, such as increasing the hardware frequency of CPU, GPU and DDR, and increasing the frequency of L3 Cache, to achieve precise resource regulation.

Benefits of technology

It improves the accuracy of resource control during the sliding process, avoids lag and power consumption redundancy, and enhances the smoothness of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025077181_04122025_PF_FP_ABST
    Figure CN2025077181_04122025_PF_FP_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a resource regulation method. The method comprises: in response to a sliding operation on a first interface of an electronic device, the electronic device obtaining a first start time on the basis of touch parameters, and obtaining a second start time on the basis of display parameters; starting to execute a resource regulation strategy at a target start time, wherein the target start time is the earlier of the first start time and the second start time; the electronic device obtaining a first end time on the basis of the touch parameters, and obtaining a second end time on the basis of the display parameters; and stopping executing the resource regulation strategy at a target end time, wherein the target end time is the earlier of the first end time and the second end time. Through the method, sliding scenarios can be accurately identified on the basis of the original display framework of the electronic device in combination with touch detection functions of the electronic device, assisting the electronic device in precise resource regulation during sliding and improving the smoothness of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, devices and electronic equipment for resource regulation

[0001] This application claims priority to Chinese Patent Application No. 202410707411.8, filed on May 31, 2024, entitled “Method, Apparatus and Electronic Equipment for Resource Regulation”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of resource regulation, and more specifically, to a method, apparatus, and electronic device for resource regulation. Background Technology

[0003] For screen-equipped electronic devices such as mobile phones and tablets, resource supply is adjusted based on the display framework of the electronic device during the scrolling process within the application.

[0004] However, since different electronic devices may have different display frames (e.g., the display frame corresponding to Android, HarmonyOS, or iOS), more and more third-party applications tend to use their own display frames in order to be usable on different systems. This approach relies too much on the application's own implementation, resulting in inconsistent sliding frames for multiple applications installed on an electronic device. This leads to problems such as inaccurate sliding recognition, failure to recognize in some scenarios, and insufficient resource allocation during sliding (which can easily cause resource waste or shortage), thus affecting the user experience. Summary of the Invention

[0005] This application provides a method, apparatus, and electronic device for resource regulation. Through this method, apparatus, and electronic device, based on the original display frame of the electronic device and combined with the touch function of the electronic device, it is possible to accurately identify sliding scenarios, help the electronic device to perform precise resource regulation during sliding, and improve the smoothness of the electronic device.

[0006] In a first aspect, a method for resource regulation is provided, the method comprising: responding to a sliding operation on a first interface of an electronic device, the electronic device obtaining a first start time based on touch parameters and a second start time based on display parameters; obtaining a target start time based on the first start time and the second start time; the electronic device starting to execute a resource regulation strategy at the target start time, the target start time being the earlier of the first start time and the second start time; the electronic device obtaining a first end time based on touch parameters and a second end time based on display parameters; the electronic device obtaining a target end time based on the first end time and the second end time; and the electronic device ceasing to execute the resource regulation strategy at the target end time, the target end time being the earlier of the first end time and the second end time.

[0007] In some embodiments, the first interface is the interface of a first application.

[0008] In some embodiments, the resource regulation strategy includes one or more of the following regulation operations: increasing the hardware frequency of the central processing unit (CPU) of the electronic device; increasing the hardware frequency of the graphics processing unit (GPU) of the electronic device; increasing the hardware frequency of the double-rate synchronous dynamic random access memory (DDR) of the electronic device; and shortening the frequency adjustment cycle of the electronic device.

[0009] This resource regulation strategy may also include increasing the frequency of the L3 cache, which is a shared cache located between processor cores. Multiple processor cores (e.g., CPU, GPU, DDR) can share the same L3 cache.

[0010] In this embodiment, based on the original display frame of the electronic device, the touch detection function of the electronic device can be combined to accurately identify the sliding scene, so as to obtain a more accurate sliding start position and sliding end position. This allows the electronic device to perform precise resource control during the time period between the sliding start and sliding end, which can improve the accuracy of resource control. This can not only avoid stuttering during the sliding process and improve the smoothness of the electronic device, but also avoid power consumption redundancy during the sliding period.

[0011] Furthermore, when the display frame of an electronic device is not effective for the application corresponding to the swipe interface, the electronic device can obtain the start time and end time of the swipe based on the touch parameters, and then perform precise resource control during the time period between the start and end of the swipe. This makes the resource control of the electronic device for the swipe scene within the application independent of the display frame of the electronic device.

[0012] In conjunction with the first aspect, in one possible implementation, the sliding interface of the first interface is displayed through the display frame of the electronic device.

[0013] The solution provided in this application can be applied to scenarios where the display frame used by the application corresponding to the first interface is the display frame of an electronic device.

[0014] In conjunction with the first aspect, in one possible implementation, the electronic device obtains a first start time based on touch parameters and a second start time based on display parameters, specifically including: the electronic device obtaining the first start time based on a first rule and the touch parameters; and the electronic device obtaining the second start time based on a second rule and the display parameters.

[0015] In conjunction with the first aspect, in one possible implementation, the electronic device obtains the first start time according to the first rule and the touch parameters, including: when the electronic device recognizes that the sliding subject has finished dragging on the first interface according to the touch parameters, the electronic device determines the moment when the dragging ends as the first start time.

[0016] In this embodiment, the electronic device can detect the drag-and-slide phase corresponding to the swipe event based on its own touch detection function, and start resource regulation at the end of the drag-and-slide. Since the page scrolling speed of the electronic device is relatively slow during the drag-and-slide phase, and the page scrolling speed of the electronic device is relatively fast during the drag-and-slide phase after the drag-and-slide phase, this embodiment can realize resource regulation of the electronic device during the drag-and-slide phase of the swipe process, realize precise resource supply during the drag-and-slide phase, improve the accuracy of resource regulation, avoid stuttering during the swipe process, improve the smoothness of the electronic device, and avoid power consumption redundancy during the swipe.

[0017] In conjunction with the first aspect, in one possible implementation, the electronic device determines the moment when the drag ends as the first start time, including: the electronic device determines the sliding speed of the sliding subject at the end of the drag based on the touch parameters; when the sliding speed of the sliding subject is greater than a first speed threshold, the electronic device determines the moment when the drag ends as the first start time.

[0018] In this embodiment, precise resource supply is provided only when the sliding speed of the touch subject exceeds a certain threshold at the end of the sliding process. This avoids unnecessary resource regulation operations by the electronic device during the sliding process and further avoids power consumption redundancy during the sliding process.

[0019] In conjunction with the first aspect, in one possible implementation, the electronic device obtains the first start time according to the first rule and the touch parameters, including: when the electronic device recognizes that the sliding subject has started to drag on the first interface according to the touch parameters, the electronic device determines the moment when the drag starts as the first start time.

[0020] In this embodiment, the electronic device can detect the dragging stage corresponding to the sliding event based on its own touch detection function, and start resource regulation at the moment the dragging begins. This embodiment can realize resource regulation of the electronic device throughout the sliding process, achieve precise resource supply during the sliding process, avoid stuttering during the sliding process, and improve the smoothness of the electronic device.

[0021] In conjunction with the first aspect, in one possible implementation, the electronic device obtains a first end time based on touch parameters and a second end time based on display parameters, including: the electronic device obtains the first end time based on a first rule and the touch parameters; the electronic device obtains the second end time based on a second rule and the display parameters.

[0022] In conjunction with the first aspect, in one possible implementation, the display parameters include a first flag bit, and the electronic device obtains the second start time and / or the second end time according to the second rule and the display parameters, including: the electronic device determines the second start time and / or the second end time according to the first flag bit, wherein the first flag bit is used to indicate that the electronic device is drawing a sliding interface.

[0023] In this embodiment of the application, when the display frame of the electronic device is active for the application corresponding to the sliding interface, the electronic device can detect the display parameters during the drawing process of the display interface based on its own display frame, such as detecting the first marker bit. Based on the execution state of the first marker bit, the start time and end time of the sliding are determined, so that the electronic device can accurately obtain the start time and end time of the sliding. This enables resource regulation of the electronic device during the sliding process, avoids stuttering or other issues during the sliding process, and improves the smoothness of the electronic device.

[0024] In conjunction with the first aspect, in one possible implementation, the electronic device obtains the first end time according to the first rule and the touch parameters, including: the electronic device determines the first end time based on the sliding speed of the sliding body when the drag ends.

[0025] In some embodiments, the electronic device determines the sliding speed of the sliding body at the end of the drag-and-slide based on the touch parameters; the electronic device determines a first duration based on the sliding speed of the sliding body at the end of the drag-and-slide, the first duration being the duration of the throw-and-slide; the electronic device determines the moment when the countdown of the first duration ends as the first end time, the first duration starting from the moment the throw-and-slide ends to count down.

[0026] In this embodiment, the electronic device can detect the drag-slide stage corresponding to the sliding event based on its own touch detection function, and determine the sliding speed of the touch subject at the end of the drag-slide. Based on the sliding speed of the touch subject, the throw-slide time can be predicted, and resource regulation can be stopped after the throw-slide time ends. This embodiment can achieve precise resource supply for the sliding process, improve the accuracy of resource regulation, avoid stuttering during the sliding process, improve the smoothness of the electronic device, and avoid power consumption redundancy during the sliding period.

[0027] In conjunction with the first aspect, in one possible implementation, when the sliding interface of the first interface is displayed through the display framework of the first application, the target start time is the first start time, and the target end time is the first end time.

[0028] Specifically, in response to a swipe operation on a first interface of an electronic device, the electronic device obtains a first start time based on touch parameters; the electronic device begins to execute a resource control strategy at the first start time; the electronic device obtains a first end time based on touch parameters; and the electronic device stops executing the resource control strategy at the first end time.

[0029] The solution provided in this application can be applied to scenarios where the display framework used by the application corresponding to the first interface is the display framework of the first application itself; the solution provided in this application can also be applied to scenarios where the display framework used by the application corresponding to the first interface is different from the display framework of the electronic device, for example, the display framework used by the application corresponding to the first interface is the Android display framework, and the display framework of the electronic device is the HarmonyOS display framework.

[0030] In a second aspect, an electronic device is provided, comprising: a touch detection module, configured to obtain a first start time based on touch parameters in response to a sliding operation on a first interface of the electronic device; a display frame, configured to obtain a second start time based on display parameters in response to a sliding operation on the first interface of the electronic device; an acquisition module, configured to obtain a target start time based on the first start time and the second start time; a resource control module, configured to start executing a resource control strategy at the target start time, wherein the target start time is the earlier of the first start time and the second start time; the touch detection module is further configured to obtain a first end time based on touch parameters; the display frame is further configured to obtain a second end time based on display parameters; the acquisition module is further configured to obtain a target end time based on the first end time and the second end time; and the resource control module is further configured to stop executing the resource control strategy at the target end time, wherein the target end time is the earlier of the first end time and the second end time.

[0031] In some embodiments, the first interface is the interface of a first application.

[0032] In some embodiments, the resource regulation strategy includes one or more of the following regulation operations: increasing the hardware frequency of the central processing unit (CPU) of the electronic device; increasing the hardware frequency of the graphics processing unit (GPU) of the electronic device; increasing the hardware frequency of the double-rate synchronous dynamic random access memory (DDR) of the electronic device; and shortening the frequency adjustment cycle of the electronic device.

[0033] This resource regulation strategy may also include increasing the frequency of the L3 cache. The L3 cache is a shared cache located between processor cores, and multiple processor cores (e.g., CPU, GPU, DDR) can share the same L3 cache.

[0034] In this embodiment, based on the original display frame of the electronic device, the touch detection function of the electronic device can be combined to accurately identify the sliding scene, so as to obtain a more accurate sliding start position and sliding end position. This allows the electronic device to perform precise resource control during the time period between the sliding start and sliding end, which can improve the accuracy of resource control. This can not only avoid stuttering during the sliding process and improve the smoothness of the electronic device, but also avoid power consumption redundancy during the sliding period.

[0035] Furthermore, when the display frame of an electronic device is not effective for the application corresponding to the swipe interface, the electronic device can obtain the start time and end time of the swipe based on the touch parameters, and then perform precise resource control during the time period between the start and end of the swipe. This makes the resource control of the electronic device for the swipe scene within the application independent of the display frame of the electronic device.

[0036] In conjunction with the second aspect, in one possible implementation, the sliding interface of the first interface is displayed through the display frame of the electronic device.

[0037] The electronic device provided in this application embodiment can be applied to scenarios where the display frame used by the application corresponding to the first interface is the display frame of the electronic device.

[0038] In conjunction with the second aspect, in one possible implementation, the touch detection module is specifically used to: obtain the first start time according to the first rule and the touch parameters; the display frame is specifically used to: obtain the second start time according to the second rule and the display parameters.

[0039] In conjunction with the second aspect, in one possible implementation, the touch detection module is specifically used to: when the touch parameters indicate that the sliding subject has finished dragging on the first interface, determine the moment when the dragging ends as the first start time.

[0040] In this embodiment, the electronic device can detect the drag-and-slide phase corresponding to the swipe event based on its own touch detection function, and start resource regulation at the end of the drag-and-slide. Since the page scrolling speed of the electronic device is relatively slow during the drag-and-slide phase, and the page scrolling speed of the electronic device is relatively fast during the drag-and-slide phase after the drag-and-slide phase, this embodiment can realize resource regulation of the electronic device during the drag-and-slide phase of the swipe process, realize precise resource supply during the drag-and-slide phase, improve the accuracy of resource regulation, avoid stuttering during the swipe process, improve the smoothness of the electronic device, and avoid power consumption redundancy during the swipe.

[0041] In conjunction with the second aspect, in one possible implementation, the touch detection module is specifically used to: determine the sliding speed of the sliding subject when the drag ends based on the touch parameters; and when the sliding speed of the sliding subject is greater than the first speed threshold, determine the moment when the drag ends as the first start time.

[0042] In this embodiment, precise resource supply is provided only when the sliding speed of the touch subject exceeds a certain threshold at the end of the sliding process. This avoids unnecessary resource regulation operations by the electronic device during the sliding process and further avoids power consumption redundancy during the sliding process.

[0043] In conjunction with the second aspect, in one possible implementation, the touch detection module is specifically used to: when the touch parameters detect that the sliding subject has started to drag on the first interface, determine the moment when the drag starts as the first start time.

[0044] In this embodiment, the electronic device can detect the dragging stage corresponding to the sliding event based on its own touch detection function, and start resource regulation at the moment the dragging begins. This embodiment can realize resource regulation of the electronic device throughout the sliding process, achieve precise resource supply during the sliding process, avoid stuttering during the sliding process, and improve the smoothness of the electronic device.

[0045] In conjunction with the second aspect, in one possible implementation, the touch detection module is further specifically used to: obtain the first end time according to the first rule and the touch parameter; the display frame of the electronic device is further specifically used to: obtain the second end time according to the second rule and the display parameter.

[0046] In conjunction with the second aspect, in one possible implementation, the display parameters include a first flag bit, and the display frame is specifically used to: determine the second start time and / or the second end time based on the first flag bit, wherein the first flag bit is used to indicate that the electronic device is drawing a sliding interface.

[0047] In this embodiment of the application, when the display frame of the electronic device is active for the application corresponding to the sliding interface, the electronic device can detect the display parameters during the drawing process of the display interface based on its own display frame, such as detecting the first marker bit. Based on the execution state of the first marker bit, the start time and end time of the sliding are determined, so that the electronic device can accurately obtain the start time and end time of the sliding. This enables resource regulation of the electronic device during the sliding process, avoids stuttering or other issues during the sliding process, and improves the smoothness of the electronic device.

[0048] In conjunction with the second aspect, in one possible implementation, the touch detection module is specifically used to: determine the first end time based on the sliding speed of the sliding body when the drag ends.

[0049] In some embodiments, the touch detection module is specifically used to: determine the sliding speed of the sliding body at the end of the drag-and-slide based on the touch parameters; determine a first duration based on the sliding speed of the sliding body at the end of the drag-and-slide, the first duration being the duration of the throw-and-slide; and determine the moment when the countdown of the first duration ends as the first end time, the first duration starting from the moment the throw-and-slide ends to count down.

[0050] In this embodiment, the electronic device can detect the drag-slide stage corresponding to the sliding event based on its own touch detection function, and determine the sliding speed of the touch subject at the end of the drag-slide. Based on the sliding speed of the touch subject, the throw-slide time can be predicted, and resource regulation can be stopped after the throw-slide time ends. This embodiment can achieve precise resource supply for the sliding process, improve the accuracy of resource regulation, avoid stuttering during the sliding process, improve the smoothness of the electronic device, and avoid power consumption redundancy during the sliding period.

[0051] In conjunction with the second aspect, in one possible implementation, when the sliding interface of the first interface is displayed through the display framework of the first application, the target start time is the first start time, and the target end time is the first end time.

[0052] Specifically, the touch detection module is used to respond to a sliding operation on the first interface of the electronic device and obtain a first start time according to touch parameters; the resource control module is used to start executing a resource control strategy at the first start time; the touch detection module is also used to obtain a first end time according to touch parameters; the resource control module is also used to stop executing the resource control strategy at the first end time.

[0053] The electronic device provided in this application embodiment can be applied to scenarios where the display framework used by the application corresponding to the first interface is the display framework of the first application itself; the electronic device provided in this application embodiment can also be applied to scenarios where the display framework used by the application corresponding to the first interface is different from the display framework of the electronic device, for example, the display framework used by the application corresponding to the first interface is the Android display framework, and the display framework of the electronic device is the HarmonyOS display framework.

[0054] Thirdly, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the first aspect or any possible implementation thereof.

[0055] Fourthly, a computer-readable storage medium is provided, which stores a computer program or instructions that, when executed, implement the method described in the first aspect or any possible implementation thereof.

[0056] Fifthly, a chip is provided, wherein instructions are stored that, when executed on a device, cause the chip to perform the methods of the first aspect or any possible implementation thereof.

[0057] In a sixth aspect, a computer program product is provided, which stores a computer program or instructions that, when executed, implement the method in the first aspect or any possible implementation of the first aspect. Attached Figure Description

[0058] Figure 1 is a schematic diagram of the structure of the electronic device provided in an embodiment of this application;

[0059] Figure 2 is a software structure block diagram of an electronic device provided in an embodiment of this application;

[0060] Figure 3 is a schematic diagram of an application scenario provided by an embodiment of this application;

[0061] Figure 4 is a schematic diagram of an in-application sliding process provided in an embodiment of this application;

[0062] Figure 5 is a schematic flowchart of a resource regulation method provided in an embodiment of this application;

[0063] Figure 6 is a schematic flowchart of another resource regulation method provided in an embodiment of this application;

[0064] Figure 7 is a schematic flowchart of another resource regulation method provided in an embodiment of this application;

[0065] Figure 8 is a schematic diagram of a specific implementation of resource regulation provided in an embodiment of this application;

[0066] Figure 9 is a schematic flowchart of another resource regulation method provided in the embodiments of this application;

[0067] Figure 10 is a schematic flowchart of another resource regulation method provided in an embodiment of this application;

[0068] Figure 11 is a schematic diagram of the functional modules of a resource regulation device provided in an embodiment of this application. Detailed Implementation

[0069] The technical solutions of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments.

[0070] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "plural" or "multiple" refers to two or more than two.

[0071] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0072] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0073] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "one embodiment," "some embodiments," "another embodiment," "other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0074] The method provided in this application can be applied to electronic devices with display functions, such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices, and other electronic devices. This application does not impose any restrictions on the specific type of electronic device.

[0075] For example, Figure 1 shows a schematic diagram of the structure of an electronic device 100. The electronic device 100 may include a processor 110, 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, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0076] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 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.

[0077] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0078] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0079] 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.

[0080] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and / or a universal serial bus (USB) interface, etc.

[0081] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0082] 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 structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0083] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0084] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0085] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0086] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0087] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. 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 the 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.

[0088] 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 speaker 170A, receiver 170B, 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.

[0089] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) 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.

[0090] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 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 (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0091] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0092] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0093] The external storage 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 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0094] 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 electronic device 100 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 required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, 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.

[0095] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0096] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0097] The software system of electronic device 100 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 exemplify the software structure of electronic device 100.

[0098] Figure 2 is a software structure block diagram of an electronic device 100 according to an embodiment of this application. 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 Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0099] As shown in Figure 2, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0100] 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.

[0101] As shown in Figure 2, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, input module, touch detection module, display framework, decision module, etc.

[0102] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0103] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0104] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0105] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0106] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0107] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0108] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0109] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0110] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0111] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0112] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0113] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0114] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0115] A 2D graphics engine is a graphics engine for 2D drawing.

[0116] The kernel layer is the layer between hardware and software. At a minimum, the kernel layer includes display drivers, camera drivers, audio drivers, and sensor drivers; it may also include input drivers, resource management modules, CPU drivers, GPU drivers, DDR drivers, etc.

[0117] In some embodiments, the interaction process between the input driver, input module, display frame, touch detection module, decision module, resource control module, CPU driver, GPU driver, and DDR driver can be:

[0118] The input driver located in the kernel layer detects a swipe event through input-related devices in the hardware layer (e.g., touch sensors, light sensors, pressure sensors, etc.) and passes the swipe event-related information to the input module located in the frame layer. The input module then passes the swipe event-related information to the touch detection module and the display frame.

[0119] The touch detection module can obtain touch parameters based on the information related to the swipe event, and then determine the swipe start time and / or swipe end time based on the touch parameters.

[0120] The display framework can draw and display the sliding interface based on the information related to the sliding event. During this process, the display framework can obtain display parameters and then determine the sliding start time and / or sliding end time based on the display parameters. The display parameters may include a flag bit, which is used to indicate that the electronic device is drawing the sliding interface.

[0121] After determining the start time of the slide, the touch detection module sends a command to the decision module to start resource regulation, and after determining the end time of the slide, it sends a command to the decision module to stop resource regulation; similarly, the display frame sends a command to the decision module to start resource regulation after determining the start time of the slide, and sends a command to stop resource regulation after determining the end time of the slide.

[0122] The decision module is used to notify the resource control module located in the kernel layer to start executing the resource control strategy when it first receives the instruction to start resource control, and also to notify the resource control module to stop executing the resource control strategy when it first receives the instruction to stop resource control.

[0123] The decision-making module can also be used to determine resource regulation strategies and distribute these strategies to the resource regulation module.

[0124] The resource regulation strategy can be a predetermined system regulation strategy, which includes one or more of the following regulation operations: increasing the hardware frequency of the CPU of the electronic device 100; increasing the hardware frequency of the GPU of the electronic device 100; increasing the hardware frequency of the DDR of the electronic device 100; increasing the frequency of the L3 cache of the electronic device 100; shortening the frequency adjustment cycle of the electronic device 100; and may also include some system-level regulation strategies.

[0125] L3 Cache refers to a shared cache located between processor cores. Multiple processor cores (e.g., CPU, GPU, DDR) can share the same L3 Cache.

[0126] When the resource regulation module receives an instruction to start executing the resource regulation strategy, it performs resource regulation by calling the relevant hardware drivers located in the kernel layer based on the resource regulation strategy. For example, it may increase the hardware frequency of the CPU by calling the CPU driver, increase the hardware frequency of the GPU by calling the GPU driver, or increase the hardware frequency of the DDR by calling the DDR driver.

[0127] In some embodiments, when the application corresponding to the sliding interface uses its own display frame, the input module is also used to pass information related to the sliding event to the application's own display frame. The application's own display frame draws and displays the sliding interface based on the information related to the sliding event. Furthermore, the resource supply during the interface sliding is controlled based on the sliding start time and sliding end time determined by the touch detection module.

[0128] In some embodiments, an application located in the application layer may include its own display framework. For example, a video application may include its own display framework, which can be used to draw and display the sliding interface within the video application. The touch detection module of the electronic device 100 determines the start and end times of the sliding interface, thereby achieving precise resource supply during the sliding of the video application interface.

[0129] It should be understood that the technical solutions in the embodiments of this application can be used in systems such as Android, iOS, and HarmonyOS. The technical solutions in the embodiments of this application can be applied to sliding scenarios on the screen of electronic devices, such as sliding scenarios within applications installed on electronic devices, to accurately identify sliding scenarios and, based on this, to perform precise resource control on electronic devices in sliding scenarios to improve the performance of electronic devices.

[0130] Among them, electronic devices can be televisions, desktop computers, laptops, or portable electronic devices such as mobile phones, foldable screens, tablets, cameras, camcorders, and video recorders. They can also be smart home devices such as refrigerators, washing machines, robot vacuums, and any electronic devices with screen sliding functions. They can also be electronic devices in 5G networks or electronic devices in future evolved public land mobile networks (PLMNs).

[0131] For screen-equipped electronic devices such as mobile phones and tablets, during the scrolling process within an application, resource allocation is adjusted based on the display framework of the electronic device (for example, when the electronic device is running an Android system, the display framework of the electronic device is the display framework corresponding to the Android system).

[0132] However, since different electronic devices may have different display frameworks (e.g., the display framework corresponding to Android, HarmonyOS, or iOS), more and more third-party applications tend to use their own display frameworks in order to be usable on different systems. This approach relies too much on the application's own implementation, resulting in inconsistent sliding frameworks for multiple applications installed on an electronic device. Furthermore, it leads to problems such as inaccurate sliding recognition, failure to recognize some sliding scenarios, and insufficient resource allocation during sliding (which can easily cause resource waste or shortage), thus affecting the user experience.

[0133] In view of this, this application provides a resource regulation method. This method, based on the original display frame of the electronic device and combined with the touch detection function of the electronic device, can accurately identify the touch sliding scene of the screen to obtain a more accurate sliding start position and sliding end position. This facilitates precise resource regulation of the electronic device during the time period between the sliding start and sliding end, improving the accuracy of resource regulation. It can avoid stuttering during sliding, improve the smoothness of the electronic device, and avoid power consumption redundancy during sliding. In addition, this method makes the applications used on the electronic device no longer limited by the display frame of the electronic device. When sliding within the application, if the display frame of the electronic device is effective for the application, the sliding recognition and resource regulation are performed in combination with the display frame and touch detection function of the electronic device. If the display frame of the electronic device is not effective for the application, the sliding recognition and resource regulation are performed based on the touch detection function of the electronic device. This ensures that all applications installed on the electronic device receive accurate resource supply during sliding.

[0134] For example, Figure 3 shows a schematic diagram of an application scenario provided by an embodiment of this application.

[0135] As shown in Figure 3, the resource regulation method provided in this application embodiment can be applied to scenarios involving sliding within an application.

[0136] As shown in Figure 3(a), the resource control method provided in this application embodiment can be applied, for example, to the image browsing scenario in a gallery application; as shown in Figure 3(b), the resource control method provided in this application embodiment can be applied, for example, to the swiping browsing scenario in a video application; as shown in Figure 3(c), the resource control method provided in this application embodiment can be applied, for example, to the swiping browsing scenario in a financial management application.

[0137] Furthermore, the resource regulation method provided in this application embodiment can also be applied to in-application sliding scenarios of any application installed on an electronic device, and this application does not limit it in this regard.

[0138] To better understand the in-app swiping process, Figure 4 illustrates, for example, an in-app swiping process provided in an embodiment of this application.

[0139] As shown in Figure 4, the current display interface of the electronic device 400 is located on the display interface of the first application. The first content A is displayed on the display interface of the first application. The user performs a bottom-up swiping operation on the display interface with his finger. In response to the swiping operation performed by the user, the display interface of the first application slides freely upward from fast to slow.

[0140] The tossing and swiping operation can be broken down into the dragging and swiping process before the finger leaves the screen and the tossing and swiping process after the finger leaves the screen.

[0141] Specifically, Figure 4(a) shows a schematic diagram of the sliding state corresponding to the moment when the sliding begins (also the moment when the dragging begins) provided in the embodiment of this application; Figure 4(b) shows a schematic diagram of the sliding state corresponding to the moment when the dragging ends (also the moment when the throwing begins) provided in the embodiment of this application; Figure 4(c) shows a schematic diagram of the sliding state corresponding to the moment when the sliding ends (also the moment when the throwing ends) provided in the embodiment of this application.

[0142] As shown in Figure 4(a) and Figure 4(b), during the dragging process, the user keeps their finger in contact with the display screen. While keeping their finger in contact with the display interface, the finger slides upward a distance d1. Correspondingly, the first display content A slides upward a distance d1 in sync.

[0143] As shown in Figure 4(c), during the tossing and sliding process, the finger leaves the display interface and assumes a tossing and sliding posture. Correspondingly, the first display content A continues to slide upward a distance d2.

[0144] In particular, when the first application's display interface is freely swiped upwards from fast to slow, stuttering or jittering may occur due to insufficient resource supply.

[0145] For example, Figure 5 shows a schematic flowchart of a resource regulation method 500 provided in an embodiment of this application. As shown in Figure 5, the method 500 includes:

[0146] S501: In response to a swipe operation on the screen of an electronic device, the starting position of the swipe is identified based on the display frame of the electronic device and the touch detection function of the electronic device.

[0147] In some embodiments, when the operating system installed on the electronic device is Android, the display frame of the electronic device is the Android display frame; when the operating system installed on the electronic device is iOS, the display frame of the electronic device is the iOS display frame; when the operating system installed on the electronic device is HarmonyOS, the display frame of the electronic device is the HarmonyOS display frame; in addition, if other operating systems are installed on the electronic device, the display frame of the electronic device can be the display frame corresponding to that other operating system.

[0148] In some embodiments, when a user swipes within a first application, if the display frame of the electronic device is active for swiping within the first application, both the display frame and the touch detection function of the electronic device can identify the starting position of the swipe. In this case, the identification result of the display frame of the electronic device shall prevail, and subsequent resource control strategies shall be executed based on the display frame of the electronic device. Alternatively, the first identified starting position of the swipe shall be used as the final starting position of the swipe (if the display frame of the electronic device identifies the starting position of the swipe first, the identification result of the display frame of the electronic device shall prevail; if the touch detection function of the electronic device identifies the starting position of the swipe first, the identification result of the touch detection function of the electronic device shall prevail).

[0149] In some embodiments, when a user swipes within a first application, if the display frame of the electronic device does not support swiping within the first application, only the touch detection function of the electronic device can identify the starting position of the swipe. In this case, the identification result of the touch detection function of the electronic device shall prevail, and subsequent resource allocation strategies shall be executed based on the touch detection function of the electronic device.

[0150] In some embodiments, if the display frame used by the first application is different from the display frame of the electronic device (e.g., the first application uses its own display frame, or the first application uses the Android display frame and the electronic device uses the HarmonyOS display frame, etc.), then the display frame of the electronic device will not be effective for swiping within the first application.

[0151] S502: When the sliding start position is detected, the electronic device begins to execute the resource control strategy.

[0152] In some embodiments, the resource regulation strategy includes one or more of the following regulation operations:

[0153] To increase the frequency of the central processing unit (CPU) of electronic devices;

[0154] Increase the hardware frequency of the graphics processing unit (GPU) in electronic devices;

[0155] Hardware frequency boosting for double data rate synchronous dynamic random access memory (DDR) in electronic devices;

[0156] Increase the frequency of L3 Cache. L3 Cache refers to the shared cache located between processor cores. Multiple processor cores (e.g., CPU, GPU, DDR) can share the same L3 Cache.

[0157] Shorten the frequency modulation cycle of electronic devices.

[0158] In addition, resource regulation strategies may also include other regulation operations, such as system-level regulation in addition to hardware-level regulation, which this application does not limit.

[0159] S503: When the electronic device detects the end position of the slide based on the display frame and the touch detection function of the electronic device, the electronic device stops executing the resource control strategy.

[0160] In some embodiments, stopping the execution of resource regulation strategies means restoring the resource supply state to the default hardware state.

[0161] In some embodiments, when the display frame of the electronic device is active for swiping within the first application, both the display frame and the touch detection function of the electronic device can identify the end position of the swipe. In this case, if the display frame of the electronic device identifies the end position of the swipe first, the resource control strategy is stopped when the display frame of the electronic device identifies the end position of the swipe; if the touch detection function of the electronic device identifies the end position of the swipe first, the resource control strategy is stopped when the touch detection function of the electronic device identifies the end position of the swipe. That is, between the display frame and the touch detection function of the electronic device, the first identified end position of the swipe is taken as the final end position of the swipe. Whichever identifies the end position of the swipe first triggers the cessation of the resource control strategy.

[0162] In another description, the embodiment can also be described as follows: in response to a swipe operation on the screen of an electronic device, the swipe start time is identified based on the display frame of the electronic device and the touch detection function of the electronic device; when the swipe start time is identified, the electronic device starts executing a resource control strategy from the swipe start time; when the swipe end time is identified based on the display frame of the electronic device and the touch detection function of the electronic device, the electronic device stops executing the resource control strategy at the swipe end time.

[0163] In this embodiment, by utilizing the existing display frame of the electronic device and combining it with the touch detection function of the electronic device, the touch swiping scenario of the screen can be accurately identified. This allows for more precise identification of the swiping start and end positions, facilitating accurate resource control during the time interval between the start and end of the swiping. This improves the accuracy of resource control, preventing stuttering during swiping and enhancing the smoothness of the electronic device. It also avoids power consumption redundancy during swiping. Furthermore, this method frees applications on the electronic device from being limited by the display frame. When swiping within an application, if the display frame of the electronic device is effective for swiping within the application, swiping identification and resource control are performed by combining the display frame and the touch detection function of the electronic device. If the display frame of the electronic device is not effective for swiping within the application, swiping identification and resource control are performed based on the touch detection function of the electronic device. This makes the method applicable to a wider range of swiping scenarios within applications.

[0164] For example, Figure 6 shows a schematic flowchart of another resource regulation method 600 provided in an embodiment of this application. This method is applied to an electronic device, which may include a touch detection module, a display frame, and a decision module. As shown in Figure 6, the method 600 includes:

[0165] S601: In response to a swipe event, the page on the display screen of the electronic device begins to swipe. Correspondingly, the touch detection module collects the swipe state of the finger on the screen of the electronic device in real time.

[0166] Among them, a swipe event can be an event in which a user's finger swipes across the application interface displayed on the screen of an electronic device.

[0167] In some embodiments, the touch detection module collects the sliding state of a finger on the screen of an electronic device in real time through a touch sensor. The sliding state of a finger on the screen of an electronic device may include, for example, the starting position of the sliding, the ending position of the sliding, or the sliding speed of the finger on the screen of the electronic device.

[0168] S602: When the end of the drag is detected based on the sliding state of the finger on the screen of the electronic device, the touch detection module determines the sliding speed of the finger relative to the screen of the electronic device when the drag ends.

[0169] The process of sliding a finger on the screen of an electronic device can be divided into a dragging phase and a throwing phase. For a detailed description of the sliding process, please refer to the description in the embodiment shown in Figure 4.

[0170] It can be understood that the moment the drag-and-swipe ends, which is when the finger leaves the screen, is the moment the throw-and-swipe begins.

[0171] S603: The touch detection module determines whether the sliding speed of the finger relative to the screen of the electronic device is greater than a first speed threshold when the swipe ends. If it is greater than the first speed threshold, then S604 and S605 are executed.

[0172] The first speed threshold can be 0, or it can be any speed value less than 200 mm / s, such as 50 mm / s, 100 mm / s, etc.

[0173] S604: The touch detection module sends a command to the decision module to start resource regulation. This command instructs the decision module to begin resource regulation.

[0174] S605: The touch detection module predicts the throw time based on the sliding speed of the finger relative to the screen of the electronic device when the swipe ends, and starts the countdown of the throw time.

[0175] S606: When the countdown of the slide time ends, the touch detection module sends a command to the decision module to stop resource regulation. This command is used to indicate that resource regulation should be stopped.

[0176] S607: In response to a sliding event, the electronic device begins drawing the display interface of the screen. Correspondingly, the display frame detects in real time whether the first flag bit in the drawing process has been executed.

[0177] If the first flag is in the execution state, it indicates that a drawing operation is currently being performed, which can be considered as the current page of the electronic device being scrolled; if the first flag is not in the execution state, it indicates that a drawing operation is not being performed, which can be considered as the current page of the electronic device not being scrolled.

[0178] S608: Determine whether the display frame has detected the start of execution of the first flag bit. If so, execute S609 and S610.

[0179] S609: The display frame sends a command to the decision module to start resource regulation. This command instructs the decision module to begin resource regulation.

[0180] S610: The display frame checks whether the first flag has stopped execution. If so, then execute S611.

[0181] S611: The display frame sends a stop resource regulation instruction to the decision module. This stop resource regulation instruction is used to indicate that resource regulation should be stopped.

[0182] It should be noted that S601 to S606 and S607 to S611 are executed simultaneously, or it can be understood that S601 to S606 and S607 to S611 are all executed in real time, without any order.

[0183] In some embodiments, S609 and S604 occur simultaneously, that is, the decision module simultaneously receives the instruction to start resource regulation sent by the touch detection module and the instruction to start resource regulation sent by the display frame.

[0184] In some other embodiments, S609 occurs before S604, that is, the decision module receives the instruction to start resource regulation sent by the touch detection module first, and then receives the instruction to start resource regulation sent by the display frame.

[0185] In some other embodiments, S604 occurs before S609, that is, the decision module receives the instruction to start resource regulation sent by the display frame first, and then receives the instruction to start resource regulation sent by the touch detection module.

[0186] S612: When the decision module receives the instruction to start resource regulation for the first time, it begins to perform resource regulation.

[0187] Specifically, the decision-making module is used to control the start and stop of resource regulation based on the type of instruction received.

[0188] In one implementation, when the decision-making module receives the instruction to start resource regulation for the first time, it instructs the resource regulation module to begin resource regulation.

[0189] In some embodiments, when the decision module receives both a start resource regulation instruction from the touch detection module and a start resource regulation instruction from the display frame, it notifies the resource regulation module to begin resource regulation in response to receiving the start resource regulation instruction.

[0190] In some other embodiments, when the decision module first receives the instruction to start resource regulation sent by the touch detection module and then receives the instruction to start resource regulation sent by the display frame, or when the decision module only receives the instruction to start resource regulation sent by the touch detection module and does not receive the instruction to start resource regulation sent by the display frame, the decision module determines to start resource regulation in response to receiving the instruction to start resource regulation sent by the touch detection module.

[0191] In some other embodiments, when the decision module first receives the instruction to start resource regulation sent by the display frame, and then receives the instruction to start resource regulation sent by the touch detection module, the decision module, in response to receiving the instruction to start resource regulation sent by the display frame, determines to start resource regulation.

[0192] S613: When the decision module receives the instruction to stop resource regulation for the first time, it stops performing resource regulation.

[0193] In one implementation, when the decision-making module receives the instruction to stop resource regulation for the first time, it instructs the resource regulation module to stop performing resource regulation.

[0194] In some embodiments, when the decision module receives both a stop resource control instruction from the touch detection module and a stop resource control instruction from the display frame, it notifies the resource control module to stop performing resource control in response to receiving the stop resource control instruction.

[0195] In some other embodiments, when the decision module first receives a stop resource control instruction from the touch detection module and then receives a stop resource control instruction from the display frame, the decision module, in response to receiving the stop resource control instruction from the touch detection module, determines to stop performing resource control.

[0196] In some other embodiments, when the decision module first receives a stop resource control instruction from the display frame and then receives a stop resource control instruction from the touch detection module, the decision module, in response to receiving the stop resource control instruction from the display frame, determines to stop performing resource control.

[0197] It can be understood that the embodiment shown in Figure 6 is applicable to situations where the display frame of an electronic device is active for swiping applications (i.e., the swiping application uses the display frame of the electronic device). When the decision module first receives a start resource control instruction sent by the display frame of the electronic device, the decision module begins resource control upon receiving the start resource control instruction from the display frame of the electronic device. Furthermore, if the decision module continues to receive start resource control instructions from the touch detection module, the decision module does not respond to them. Similarly, when the decision module first receives a stop resource control instruction sent by the touch detection module, the decision module stops resource control upon receiving the stop resource control instruction from the touch detection module. Furthermore, if the decision module continues to receive stop resource control instructions from the display frame of the electronic device, the decision module does not respond to them.

[0198] In other words, when the decision-making module receives multiple instructions to start resource regulation in succession, it only responds to the first instruction to start resource regulation and notifies the resource regulation module to start resource regulation. Similarly, when the decision-making module receives multiple instructions to stop resource regulation in succession, it only responds to the first instruction to stop resource regulation and notifies the resource regulation module to stop resource regulation.

[0199] In this embodiment, the method can accurately identify the touch sliding scene of the screen by combining the screen touch detection function of the electronic device with the original display frame of the electronic device, so as to obtain a more accurate sliding start position and sliding end position. This allows the electronic device to make precise resource control during the time period between the sliding start and sliding end, which can improve the accuracy of resource control. It can avoid stuttering during the sliding process, improve the smoothness of the electronic device, and avoid power consumption redundancy during the sliding period.

[0200] For example, Figure 7 shows a schematic flowchart of another resource regulation method 700 provided in an embodiment of this application. This method is applied to an electronic device, which may include a touch detection module, a display frame, and a decision module. As shown in Figure 7, the method 700 includes:

[0201] The explanations of S701 to S706 are the same as those of S601 to S606 in the embodiment shown in Figure 6, and will not be repeated here for the sake of brevity.

[0202] As shown in Figure 7, the display frame of this electronic device cannot recognize the start and end positions of the sliding event, and therefore cannot send instructions to the decision module to start or stop resource regulation.

[0203] It can be understood that the embodiment shown in Figure 7 can be applied to scenarios where the display frame of an electronic device is not effective for swiping applications. When the decision module receives the instruction to start resource regulation sent by the touch detection module, the decision module starts to perform resource regulation; similarly, when the decision module receives the instruction to stop resource regulation sent by the touch detection module, the decision module stops performing resource regulation, see S707 and S708 shown in Figure 7.

[0204] Among them, the scenarios in which the display frame of the electronic device is ineffective for swiping applications can include scenarios where the swiping application uses its own display frame. For example, when swiping on the user interface of application 1, the swiping interface is displayed using a dedicated display frame developed by the developer of application 1 (i.e., application 1's own display frame). In this case, application 1 cannot use the display frame of the electronic device, and the electronic device cannot identify the start and end times of the swipe through the display frame. However, it can identify the start and end times of the swipe through the touch detection module. Thus, it is possible to achieve precise resource control of the swiping process even when application 1 uses its own display frame.

[0205] Furthermore, scenarios where the display framework of an electronic device is ineffective for swiping applications can also include situations where the display framework used by the swiping application is different from that of the electronic device. For example, the swiping application uses the Android display framework, while the electronic device uses the HarmonyOS display framework. Similarly, in this scenario, the start and end times of the swipe can be identified through the touch detection module, thereby enabling precise resource control during the swiping process even when the display framework used by the swiping application is different from that of the electronic device.

[0206] In this embodiment, in response to an in-application swipe event, if the display frame of the electronic device is effective for the application, then swipe recognition and resource allocation are performed by combining the display frame of the electronic device and the touch detection function. If the display frame of the electronic device is not effective for the application, then swipe recognition and resource allocation are performed based on the touch detection function of the electronic device. This can accurately identify the touch swipe scenario on the screen and obtain a more accurate swipe start position and swipe end position. This makes the applications used on the electronic device no longer limited by the display frame of the electronic device. Multiple applications installed on the electronic device can receive accurate resource supply during page swipes, which can improve the accuracy of resource allocation. This can avoid stuttering during swipes, improve the smoothness of the electronic device, and avoid power consumption redundancy during swipes.

[0207] For example, Figure 8 shows a schematic diagram of a specific implementation of resource regulation provided in an embodiment of this application.

[0208] As shown in Figure 8, the specific implementation of this resource regulation may include the following steps:

[0209] S801: When the decision module receives the instruction to start resource regulation for the first time, it determines to start resource regulation and sends the instruction to start resource regulation to the resource regulation module, instructing the resource regulation module to start executing the resource regulation strategy.

[0210] S802: When the resource regulation module receives the instruction to start resource regulation, it begins to execute the resource regulation strategy.

[0211] In some embodiments, the resource regulation strategy includes one or more of the following regulation operations:

[0212] The frequency of the central processing unit (CPU) of the electronic device is increased by hardware; the frequency of the graphics processing unit (GPU) of the electronic device is increased by hardware; the frequency of the double data rate synchronous dynamic random access memory (DDR) of the electronic device is increased by hardware; and the frequency adjustment cycle of the electronic device is shortened.

[0213] In addition, resource regulation strategies may include other possible regulation strategies, which are not limited in this application.

[0214] S803: When the decision module receives the instruction to stop resource regulation for the first time, it determines to stop resource regulation and sends the instruction to stop resource regulation to the resource regulation module, instructing the resource regulation module to stop executing the resource regulation strategy.

[0215] S804: When the resource control module receives an instruction to stop resource control, it stops executing the resource control strategy.

[0216] For example, Figure 9 shows a schematic flowchart of another resource regulation method 900 provided in an embodiment of this application. This method is applied to an electronic device, which may include a touch detection module, a display frame, and a decision module. As shown in Figure 9, the method 900 includes:

[0217] S901: In response to a swipe event, the page on the display screen of the electronic device begins to swipe. Correspondingly, the touch detection module collects the swipe state of the finger on the screen of the electronic device in real time.

[0218] The explanation of this step is the same as that of S601 in the embodiment shown in Figure 6, and will not be repeated here for the sake of brevity.

[0219] S902: When the touch detection module detects that a finger has started to slide on the screen of the electronic device, it sends a command to the decision module to start resource allocation.

[0220] It can be understood that the moment a finger begins to slide on the screen of an electronic device corresponds to the moment a drag-and-swipe action begins.

[0221] S903: When the touch detection module detects the end of a finger swiping on the screen of an electronic device, it predicts the throw time based on the sliding speed of the finger relative to the electronic device at the end of the swiping and starts a countdown for the throw time.

[0222] S904: When the countdown for the slippage time ends, the touch detection module sends a command to the decision module to stop resource allocation.

[0223] The explanations of S905 to S909 are the same as those of S607 to S611 in the embodiment shown in Figure 6, and will not be repeated here for the sake of brevity.

[0224] The explanations of S910 and S911 are the same as those of S612 to S613 in the embodiment shown in Figure 6. Similarly, when the decision module first receives the instruction to start resource regulation, it notifies the resource regulation module to start resource regulation. When the decision module first receives the instruction to stop resource regulation, it notifies the resource regulation module to stop resource regulation. For the sake of brevity, these will not be elaborated further here.

[0225] It can be understood that the difference between the embodiment shown in Figure 6 and the embodiment shown in Figure 9 lies in the determination of the starting point for resource regulation by the touch detection module. Specifically:

[0226] The in-application swiping process is divided into a drag-swiping phase and a throw-swiping phase (see the explanation in the embodiment shown in Figure 4). In the embodiment shown in Figure 6, the touch detection module determines the starting point of the throw-swiping phase (which is also the ending point of the drag-swiping phase) as the starting point for resource regulation, that is, the swiping start position identified by the touch detection module is the starting position of the throw-swiping phase; while in the embodiment shown in Figure 9, the touch detection module determines the starting point of the drag-swiping phase (which is also the starting point of the entire swiping process) as the starting point for resource regulation, that is, the swiping start position identified by the touch detection module is the starting position of the drag-swiping phase.

[0227] For example, Figure 10 shows a schematic flowchart of another resource regulation method 1000 provided in an embodiment of this application. This method is applied to an electronic device, which may include a touch detection module, a display frame, and a decision module. As shown in Figure 10, the method 1000 includes:

[0228] The explanations for S1001 to S1004 are the same as those for S901 to S904 in the embodiment shown in Figure 9, and the explanations for S1005 to S1006 are the same as those for S612 to S613 in the embodiment shown in Figure 6. For the sake of brevity, they will not be repeated here.

[0229] As shown in Figure 10, the display frame of this electronic device cannot recognize the start and end positions of the sliding event, and therefore cannot send instructions to the decision module to start or stop resource regulation.

[0230] It can be understood that the embodiment shown in Figure 10 can be applied to situations where the display frame of an electronic device is not effective for swiping applications. When the decision module receives a command to start resource regulation sent by the touch detection module, the decision module starts to perform resource regulation; similarly, when the decision module receives a command to stop resource regulation sent by the touch detection module, the decision module stops performing resource regulation.

[0231] It should be noted that in the various embodiments provided in this application, the subject sliding on the screen is described as a finger, but this does not constitute any limitation on the implementation of this application. The subject sliding on the screen can also be a stylus, a palm, or other subjects that can trigger in-application swiping.

[0232] For example, FIG11 shows a schematic diagram of the functional modules of a resource regulation device 1100 provided in an embodiment of the present application.

[0233] As shown in Figure 11, the device 1100 includes a data acquisition module 1101, an identification module 1102, a decision-making module 1103, and a resource supply module 1104, specifically:

[0234] The acquisition module 1101 is used to acquire the sliding state of a finger on the screen of an electronic device in real time.

[0235] In some embodiments, the acquisition module 1101 acquires the sliding state of a finger on the screen of an electronic device in real time through a touch sensor. The sliding state of a finger on the screen of an electronic device may include, for example, the starting position of the sliding finger on the screen of an electronic device, the ending position of the sliding finger, or the sliding speed.

[0236] The acquisition module 1101 is also used to detect in real time whether the first flag bit in the drawing process has been executed.

[0237] If the first flag is in the execution state, it indicates that a drawing operation is currently being performed, which can be considered as the current page of the electronic device being scrolled; if the first flag is not in the execution state, it indicates that a drawing operation is not being performed, which can be considered as the current page of the electronic device not being scrolled.

[0238] The recognition module 1102 is used to recognize the start and end positions of a swipe based on the swipe state of a finger on the screen of an electronic device.

[0239] The recognition module 1102 is specifically used to determine the moment when the sliding speed of the finger relative to the screen of the electronic device is greater than a first speed threshold when the sliding ends, and to determine the sliding start position.

[0240] The recognition module 1102 is also specifically used to predict the throwing time based on the sliding speed of the finger relative to the screen of the electronic device at the end of the drag and slide, start counting down the throwing time from the moment the drag and slide ends, and determine the moment when the countdown of the throwing time ends as the end position of the slide.

[0241] The identification module 1102 is also used to identify the sliding start position and sliding end position based on the first marker.

[0242] The identification module 1102 is specifically used to determine the moment when the first marker bit is detected and the execution begins as the sliding start position.

[0243] The identification module 1102 is also specifically used to determine the moment when the first marker bit stops execution as the end position of the sliding motion.

[0244] The decision module 1103 is used to determine to start resource regulation when the identification module 1102 first identifies the sliding start position; and to determine to stop resource regulation when the identification module 1102 first identifies the sliding end position.

[0245] The resource supply module 1104 is used to start executing the resource regulation strategy when the decision module 1103 determines to start resource regulation; it is also used to stop executing the resource regulation strategy when the decision module 1103 determines to stop resource regulation.

[0246] One or more modules or units described herein can be implemented in software, hardware, or a combination of both. When any of the above modules or units are implemented in software, the software exists as computer program instructions and is stored in memory. A processor can be used to execute the program instructions and implement the above method flow. The processor can include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, etc., and various computing devices that run software. Each computing device may include one or more cores for executing software instructions to perform calculations or processing. The processor can be built into a SoC (System-on-a-Chip) or an application-specific integrated circuit (ASIC), or it can be a separate semiconductor chip. In addition to the cores for executing software instructions to perform calculations or processing, the processor may further include necessary hardware accelerators, such as field-programmable gate arrays (FPGAs), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.

[0247] When the modules or units described herein are implemented in hardware, the hardware may be any one or any combination of a CPU, microprocessor, DSP, MCU, artificial intelligence processor, ASIC, SoC, FPGA, PLD, application-specific digital circuit, hardware accelerator, or non-integrated discrete device, which may run the necessary software or perform the above method flow independently of software.

[0248] When the modules or units described herein are implemented using software, they can be implemented, in whole or in part, in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0249] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0250] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0251] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0252] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0253] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0254] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0255] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of resource regulation, characterized by, The method includes: In response to a swipe operation on a first interface of an electronic device, the electronic device obtains a first start time based on touch parameters and a second start time based on display parameters; The target start time is obtained based on the first start time and the second start time; The electronic device begins executing the resource control strategy at the target start time, which is the earlier of the first start time and the second start time. The electronic device obtains a first end time based on touch parameters and a second end time based on display parameters; The electronic device obtains the target end time based on the first end time and the second end time; The electronic device stops executing the resource control strategy at the target end time, which is the earlier of the first end time and the second end time.

2. The method of claim 1, wherein, The sliding interface of the first interface is displayed through the display frame of the electronic device.

3. The method according to claim 1 or 2, characterized in that, The electronic device obtains a first start time based on touch parameters and a second start time based on display parameters, specifically including: The electronic device obtains the first start time according to the first rule and the touch parameters; The electronic device obtains the second start time according to the second rule and the display parameters.

4. The method of claim 3, wherein, The electronic device obtains the first start time according to the first rule and the touch parameters, including: When the electronic device recognizes that the sliding subject has finished dragging on the first interface according to the touch parameters, the electronic device determines the time when the drag ends as the first start time.

5. The method of claim 4, wherein, The electronic device determines the moment when the dragging ends as the first start time, including: The electronic device determines the sliding speed of the sliding body when the dragging ends based on the touch parameters; When the sliding speed of the sliding body is greater than the first speed threshold, the electronic device determines the moment when the dragging ends as the first start time.

6. The method according to claim 3, characterized in that, The electronic device obtains the first start time according to the first rule and the touch parameters, including: When the electronic device recognizes that the sliding subject has started to slide on the first interface according to the touch parameters, the electronic device determines the moment when the sliding begins as the first start time.

7. The method according to any one of claims 3 to 6, characterized in that, The electronic device obtains a first end time based on touch parameters and a second end time based on display parameters, including: The electronic device obtains the first end time according to the first rule and the touch parameters; The electronic device obtains the second end time according to the second rule and the display parameters.

8. The method according to claim 7, characterized in that, The display parameters include a first flag bit. The electronic device obtains the second start time and / or the second end time according to the second rule and the display parameters, including: The electronic device determines the second start time and / or the second end time based on the first flag bit, wherein the first flag bit is used to indicate that the electronic device is drawing a sliding interface.

9. The method according to claim 7 or 8, characterized in that, The electronic device obtains the first end time according to the first rule and the touch parameters, including: The electronic device determines the first end time based on the sliding speed of the sliding body when the dragging ends.

10. The method according to any one of claims 1 to 9, characterized in that, The first interface is the interface of the first application.

11. The method according to claim 10, characterized in that, When the sliding interface of the first interface is displayed through the display frame of the first application, the target start time is the first start time, and the target end time is the first end time.

12. The method according to any one of claims 1 to 11, characterized in that, The resource regulation strategy includes one or more of the following regulation operations: The CPU of the electronic device is boosted by hardware frequency. The graphics processing unit (GPU) of the electronic device is boosted via hardware frequency. The frequency of the double-rate synchronous dynamic random access memory (DDR) of the electronic device is increased by hardware. Shorten the frequency modulation cycle of the electronic device.

13. An electronic device, characterized in that, The electronic device includes: The touch detection module is used to obtain a first start time based on touch parameters in response to a sliding operation on the first interface of the electronic device. The display frame is used to obtain a second start time based on display parameters in response to a sliding operation on a first interface of the electronic device; The acquisition module is used to acquire the target start time based on the first start time and the second start time; The resource regulation module is used to execute a resource regulation strategy starting at the target start time, wherein the target start time is the earlier of the first start time and the second start time; The touch detection module is also used to obtain the first end time based on the touch parameters; The display frame is also used to obtain a second end time based on the display parameters; The acquisition module is further configured to acquire a target end time based on the first end time and the second end time; The resource control module is further configured to stop executing the resource control strategy at the target end time, wherein the target end time is the earlier of the first end time and the second end time.

14. The electronic device according to claim 13, characterized in that, The sliding interface of the first interface is displayed through the display frame.

15. The electronic device according to claim 13 or 14, characterized in that, The touch detection module is specifically used for: The first start time is obtained according to the first rule and the touch parameters; The display frame is specifically used for: The second start time is obtained according to the second rule and the display parameters.

16. The electronic device according to claim 15, characterized in that, The touch detection module is specifically used for: When the touch parameters indicate that the sliding action has ended on the first interface, the moment when the sliding action ends is determined as the first start time.

17. The electronic device according to claim 16, characterized in that, The touch detection module is specifically used for: The sliding speed of the sliding body is determined based on the touch parameters when the drag ends; When the sliding speed of the sliding body is greater than the first speed threshold, the moment when the dragging ends is determined as the first start time.

18. The electronic device according to claim 15, characterized in that, The touch detection module is specifically used for: When the touch parameters indicate that the sliding subject has started to slide on the first interface, the moment when the sliding begins is determined as the first start time.

19. The electronic device according to any one of claims 15 to 18, characterized in that, The touch detection module is specifically used for: The first end time is obtained according to the first rule and the touch parameters; The display frame is specifically used for: The second end time is obtained according to the second rule and the display parameters.

20. The electronic device according to claim 19, characterized in that, The display parameters include a first flag bit, and the display frame is specifically used for: The second start time and / or the second end time are determined based on the first flag bit, wherein the first flag bit is used to indicate that the electronic device is drawing a sliding interface.

21. The electronic device according to claim 19 or 20, characterized in that, The touch detection module is specifically used for: The first end time is determined based on the sliding speed of the sliding body at the end of the dragging process.

22. The electronic device according to any one of claims 13 to 21, characterized in that, The first interface is the interface of the first application.

23. The electronic device according to claim 22, characterized in that, When the sliding interface of the first interface is displayed through the display frame of the first application, the target start time is the first start time, and the target end time is the first end time.

24. The electronic device according to any one of claims 13 to 23, characterized in that, The resource regulation strategy includes one or more of the following regulation operations: The CPU of the electronic device is boosted by hardware frequency. The graphics processing unit (GPU) of the electronic device is boosted via hardware frequency. The frequency of the double-rate synchronous dynamic random access memory (DDR) of the electronic device is increased by hardware. Shorten the frequency modulation cycle of the electronic device.

25. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 12.

26. A computer-readable storage medium, characterized in that, The storage medium stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 12.

27. A chip, characterized in that, The chip stores instructions that, when executed, implement the method as described in any one of claims 1 to 12.

28. A computer program product, characterized in that, The computer program product stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Screen-off display method and device

    CN114115772A

  • Information processing method and electronic equipment

    CN117112191A

  • Scene processing method, electronic equipment and storage medium

    CN117707404A

  • Power Consumption Control Method and Apparatus

    US20240137870A1