WO2023029565A1 - Touch-control sampling rate adjustment method and related apparatus - Google Patents

Touch-control sampling rate adjustment method and related apparatus Download PDF

Info

Publication number
WO2023029565A1
WO2023029565A1 PCT/CN2022/091952 CN2022091952W WO2023029565A1 WO 2023029565 A1 WO2023029565 A1 WO 2023029565A1 CN 2022091952 W CN2022091952 W CN 2022091952W WO 2023029565 A1 WO2023029565 A1 WO 2023029565A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
area
electronic device
sampling rate
application
Prior art date
Application number
PCT/CN2022/091952
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023029565A9 (en
Inventor
赵文龙
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023029565A1 publication Critical patent/WO2023029565A1/en
Publication of WO2023029565A9 publication Critical patent/WO2023029565A9/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present application relates to the field of terminal technologies, and in particular to a touch sampling rate adjustment method and a related device.
  • the application of the touch screen provides a new way for the interaction between the user and the terminal device, which greatly improves the user experience.
  • the touch sampling rate is closely related to the touch sensitivity of the touch screen of the electronic device.
  • the higher the touch sampling rate the higher the touch sensitivity of the touch screen, and the better the user experience is, the better the user experience will be.
  • the present application provides a touch sampling rate adjustment method and a related device.
  • the method can be applied to an electronic device provided with a touch screen.
  • the electronic device can determine the habitual area touched by the user for different applications, and can reduce the global touch sampling rate and increase the touch sampling rate of the habitual area.
  • the method can improve the touch sensitivity of the touch screen without excessively consuming computing resources of the electronic device, thereby improving the touch experience of the user.
  • the present application provides a method for adjusting a touch sampling rate.
  • the method can be applied to an electronic device provided with a touch screen.
  • the method includes: acquiring first area information; increasing the touch sampling rate of the first area based on the first area information; the first area is a local area of the touch screen; the touch sampling rate is specific to the The sampling rate of the touch signal of the touch screen.
  • the electronic device may acquire the first area information, and increase the touch sampling rate of the first area based on the first area information. It can be understood that after the electronic device increases the touch sampling rate of the first area, the touch sensitivity of the first area will increase, thereby improving the touch experience of the user when touching the first area.
  • the electronic device may acquire the first area information based on the application identifier of the first application. For example, the electronic device may acquire the application identifier of the first application in response to a user operation acting on the application icon of the first application, thereby acquiring the first area information.
  • the application identifier of the first application is used to uniquely identify the first application.
  • Application identifiers can be used to uniquely identify applications. Exemplarily, the application identifier may be the package name of the application.
  • the electronic device may acquire the first area information based on the information characterizing the first interface. For example, in response to a user operation acting on a certain control, the electronic device may acquire information representing a first interface and display the first interface, thereby acquiring first area information.
  • the information characterizing the first interface may be used to identify the first interface. It can be understood that the information characterizing the first interface may include a unique control id and unique text information of the first interface.
  • the first area information may be obtained when the electronic device is pre-fitted with the first application or the first interface.
  • the electronic device may be pre-fitted with the first application or the first interface, and record parameters obtained from the adaptation.
  • the electronic device can acquire the first area information according to the parameter.
  • the first area information may also be obtained by the electronic device calling an interface.
  • the first area may be a high-frequency area touched by the user on the touch screen, that is, an area that the user is used to touching.
  • the electronic device can greatly improve the user's touch experience without consuming too much computing resources.
  • the first area information may include the position and size of the first area.
  • the acquiring the first area information specifically includes: based on the parameters recorded when the electronic device is adapted to the first application or the first interface, acquiring The first area information; the parameters include the position and size of the first area.
  • the electronic device may perform adaptation with the first application or the first interface, and record the parameters obtained from the adaptation.
  • Case 1 The electronic device can be adapted to the first application (for example, the electronic device can be adapted to the application identifier of the first application), and obtain relevant parameters of the high-frequency area touched by the user when using the first application (for example, the position , size, etc.).
  • Case 2 The electronic device can be adapted to the first interface (that is, the electronic device can be adapted to the information characterizing the first interface), and obtain relevant parameters of the high-frequency area touched by the user when the electronic device displays the first interface (for example, , location, size, etc.).
  • the electronic device can record the high-frequency area touched by the user through advance adaptation, that is, the area that the user is used to touching. In the follow-up process, the electronic device can increase the touch sampling rate of this area. Compared with increasing the touch sampling rate of the entire touch screen area, this method can consume less computing resources while improving the user's touch experience. .
  • the electronic device may be adapted to one or more applications, and obtain relevant parameters (for example, position, size, etc.) of the high-frequency area touched by the user when using the one or more applications . That is to say, electronic equipment is adapted in this way, and a corresponding local area can be obtained for each application.
  • the electronic device may obtain relevant parameters of the first area for the first application. In this case, when the electronic device displays different interfaces of the first application, the touch sampling rate of the first area is increased.
  • the electronic device can be adapted to different user interfaces, and obtain relevant parameters (eg, position, size, etc.) of the high-frequency area touched by the user when the electronic device displays the different user interfaces. That is to say, the electronic device is adapted in this way, and a corresponding local area can be obtained for each interface. For example, the electronic device may obtain related parameters of the first area with respect to the first interface. In this case, when the electronic device displays different interfaces of the first application, the touch sampling rate of different areas may be increased.
  • relevant parameters eg, position, size, etc.
  • the parameters recorded when the electronic device is adapted to the first application or the first interface include: based on the control information of the first application, the recorded The position and size of the area where the control is located in the first application; or, based on the control information of the first interface, the recorded position and size of the area where the control is located in the first interface.
  • the electronic device may determine the position and size of the first area according to the control information. It can be understood that the area on the touch screen corresponding to the control is likely to be a high-frequency area touched by the user.
  • the position and size of the first area can be determined according to this method. In this way, after the electronic device increases the touch sampling rate of the first area, the touch sensitivity of the first area will increase, thereby improving the touch experience of the user when touching the first area.
  • the method before the acquiring the first area information, further includes: displaying the user interface of the first application or the first interface, recording The position and size of the area where the touch sensing point is located corresponding to the touch signal whose change times are greater than the first threshold within the time T1; the acquiring the first area information specifically includes: according to the change times within the time T1 being greater than the first threshold The position and size of the area where the touch sensing point corresponding to the touch signal is located, and the first area information is obtained.
  • the electronic device can learn the user's touch habit.
  • Situation 1 The electronic device can display the user interface of the first application, and scan the touch sensing point of the touch screen to obtain the touch signal at the touch sensing point; the electronic device can also record that the number of changes within the time T1 is greater than the first The position of the touch sensing point corresponding to the touch signal of a threshold value.
  • Situation 2 the electronic device can display the first interface, and scan the touch sensing point of the touch screen to obtain the touch signal at the touch sensing point; The position of the touch sensing point corresponding to the touch signal.
  • the electronic device can find the high-frequency area touched by the user and use it as the first area. Therefore, after the electronic device increases the touch sampling rate of the first area, the touch sensitivity of the first area will increase, thereby greatly improving the user's touch experience when touching the first area.
  • the electronic device may update the first area. That is to say, the electronic device can repeatedly scan the touch sensing points on the touch screen to obtain the first area that conforms to the user's touch habit. This enables the electronic device to be adjusted in time when the user's touch habit changes.
  • the first area information is information related to the first area set by the user for the first application or the first interface;
  • the relevant information of the first area includes the position and size of the first area.
  • the user can set the first area by himself. For example, users can choose among setting items. For another example, the user can set in real time when using a certain application. In this way, the needs of users can be better met, so that users can select the area where the touch sampling rate needs to be increased according to their own touch habits.
  • the first interface is a user interface of the first application.
  • the first interface may be a user interface of the first application. That is to say, when the electronic device displays different user interfaces of the first application, the touch sampling rate of different regions may be increased according to the interfaces. If the electronic device displays different user interfaces of the first application, the areas that the user is used to touch are different, then the above method can enable the user to obtain a better touch experience.
  • the method before the acquiring the first area information, the method further includes: receiving a first instruction; the first instruction is used to enable a whitelist; receiving A second instruction; the second instruction is used to set an application in the whitelist; and according to the application identifier of the first application, determine that the first application is an application in the whitelist.
  • the electronic device can select an application that can increase the local touch sampling rate by setting a white list. That is to say, the electronic device can increase the partial touch sampling rate for a specific application (for example, a game application), so that the user can obtain a better touch experience.
  • a specific application for example, a game application
  • the user can set the white list by himself according to his own habits and application usage.
  • the method further includes: reducing the overall Touch sampling rate; the global touch sampling rate is the number of times the electronic device scans all touch sensing points in the touch screen per second; wherein, the touch sampling rate of the first area is higher than the Global touch sampling rate.
  • the electronic device while increasing the touch sampling rate of the first region, the electronic device can also reduce the global touch sampling rate. In this way, electronic devices can reduce system power consumption and save computing resources. It can be understood that the electronic device can keep the touch sampling rate of the first area at a relatively high level, so that the electronic device can still provide a user with a good touch experience after reducing the global touch sampling rate.
  • the method further includes: reducing the touch sampling rate of the first area The touch sampling rate of the complementary area; the complementary area is an area of the touch screen other than the first area.
  • the electronic device while increasing the touch sampling rate of the first area, the electronic device can also reduce the touch sampling rate of the complementary area. In this way, electronic devices can reduce system power consumption and save computing resources. It can be understood that the electronic device can maintain the touch sampling rate of the first area at a relatively high level, so that the electronic device can still provide users with a good touch experience after reducing the touch sampling rate of the complementary area.
  • the present application provides an electronic device, including a touch screen, a memory, and one or more processors, wherein the memory is used to store a computer program; the processor is used to call the computer program, so that the electronic Execution by the device: acquiring first area information; increasing the touch sampling rate of the first area based on the first area information; the first area is a local area of the touch screen; the touch sampling rate is specific to the touch screen The sampling rate of the touch signal.
  • the processor is configured to call the computer program, so that the electronic device executes the program based on the acquiring the first area information, and is specifically used to call the computer program.
  • the computer program so that the electronic device executes: based on the parameters recorded when the electronic device is adapted to the first application or the first interface, obtain the information of the first area; the parameters include the position and size of the first area .
  • the parameters recorded when the electronic device is adapted to the first application or the first interface include: based on the control information of the first application, the recorded The position and size of the area where the control is located in the first application; or, based on the control information of the first interface, the recorded position and size of the area where the control is located in the first interface.
  • the processor is further configured to invoke the computer program before invoking the computer program so that the electronic device executes acquiring the first area information.
  • a program so that the electronic device executes: displaying the user interface of the first application or the first interface, and recording the position and size of the area where the touch sensing point corresponding to the touch signal whose number of times of change is greater than the first threshold within time T1 .
  • the processor When the processor is used to call the computer program to make the electronic device execute the acquisition of the first area information, it is specifically used to call the computer program to make the electronic device execute: according to the number of changes within the time T1 is greater than the first The position and size of the area where the touch sensing point is located corresponding to the touch signal of the threshold value is used to obtain the first area information.
  • the first area information is information related to the first area set by the user for the first application or the first interface;
  • the relevant information of the first area includes the position and size of the first area.
  • the first interface is a user interface of the first application.
  • the processor is further configured to invoke the computer program before invoking the computer program so that the electronic device executes acquiring the first area information.
  • a program so that the electronic device executes: receiving a first instruction; the first instruction is used to open a whitelist; receiving a second instruction; the second instruction is used to set an application in the whitelist; according to the first application The application identifier of the first application is determined as an application in the white list.
  • the processor is configured to call the computer program, so that the electronic device performs a touch control of the first area based on the first area information.
  • the sampling rate it is also used to call the computer program, so that the electronic device executes: reducing the global touch sampling rate of the touch screen; the global touch sampling rate scans the touch screen in the electronic device every second The number of times of all touch sensing points; wherein, the touch sampling rate of the first area is higher than the global touch sampling rate.
  • the processor is configured to call the computer program, so that the electronic device performs a touch control of the first area based on the first area information. After the sampling rate, it is also used to call the computer program, so that the electronic device executes: reducing the touch sampling rate of the complementary area of the first area; the complementary area is a part of the touch screen other than the first area area.
  • the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are run on an electronic device, cause the electronic device to execute any possible implementation manner in the first aspect above.
  • an embodiment of the present application provides a chip, the chip is applied to an electronic device, and the chip includes one or more processors, and the processor is used to invoke computer instructions so that the electronic device executes any one of the above first aspects a possible implementation.
  • an embodiment of the present application provides a computer program product including instructions, which, when the computer program product is run on a device, cause the electronic device to execute any possible implementation manner in the first aspect above.
  • the electronic device provided in the second aspect above, the computer storage medium provided in the third aspect, the chip provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to implement any possible way of realization. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects of any possible implementation manner in the first aspect above, which will not be repeated here.
  • FIG. 1 is a schematic diagram of an axis-coordinate sensing unit matrix provided in an embodiment of the present application
  • FIGS. 2A-2B are schematic diagrams of a touch screen provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of another touch screen provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application.
  • 6A-6G are schematic diagrams of a set of user interfaces provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of another touch screen provided by the embodiment of the present application.
  • FIGS. 8A-8D are schematic diagrams of a set of user interfaces provided by the embodiment of the present application.
  • FIG. 9A-FIG. 9F are schematic diagrams of a set of user interfaces provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of a user interface provided by an embodiment of the present application.
  • FIG. 11 is a flowchart of a method for adjusting a touch sampling rate provided by an embodiment of the present application.
  • This application relates to the field of terminal technology. In order to facilitate the understanding of the method provided by this application, some terms in the field of terminal technology are introduced below.
  • the application of the touch screen provides a new way for the interaction between the user and the terminal device, which greatly improves the user experience.
  • resistive touch screens There are two main types of touch screens: resistive touch screens and capacitive touch screens. In the early days, resistive touch screens were used more, and capacitive touch screens were invented later. At present, the application of resistive touch screen is less, and the application of capacitive touch screen is more.
  • Capacitive touch screens are mainly divided into two types: surface capacitive touch screens and projected capacitive touch screens. Among them, projected capacitive touch screens will be more used in terminal equipment such as mobile phones, tablet computers, and vehicle-mounted computers.
  • Projected capacitive touch screens can employ multiple layers of indium tin oxide (ITO). These ITO layers are processed to form a matrix of axial coordinate sensing cells.
  • the axis-coordinate sensing unit matrix may include an X-axis slider and a Y-axis slider.
  • the X-axis slider can consist of multiple longitudinal electrodes.
  • the longitudinal electrodes may consist of multiple columns of sensors (sensing units).
  • the Y-axis slider can consist of multiple horizontal electrodes.
  • the lateral electrodes may consist of multiple row sensors (sensing units).
  • the projected capacitive touch screen is covered with a matrix of axial coordinate sensing units.
  • the axial electrodes and the longitudinal electrodes in the axial coordinate induction unit matrix intersect with each other.
  • a projected capacitive touch screen may include multiple capacitive sensing points.
  • the projected capacitive touch screen can calculate the coordinates of the touch point according to the capacitance change data.
  • the X-axis slider of the projected capacitive touch screen can be composed of M vertical electrodes, and the Y-axis slider can be composed of N horizontal electrodes. Therefore, the projected capacitive touch screen has M*N capacitive sensing points.
  • whether there is a touch operation can be judged by the capacitance change data at the capacitive sensing point, and the coordinates of the touch point can also be determined if there is a touch operation.
  • the touch screen can scan the touch sensing points contained therein, and determine the position of the touch point, that is, the user's touch position, according to the sensing data of these touch sensing points.
  • the sensing data of the touch sensing point acquired by the touch screen is the touch signal.
  • the process of the touch screen acquiring the sensing data of the touch sensing points is the process of collecting touch signals.
  • the touch sensing point may be the capacitive sensing point of the projected capacitive touch screen mentioned above.
  • the capacitance change data at the capacitance sensing point is the touch signal collected by the projected capacitive touch screen. It can be understood that the process of scanning the capacitive sensing points and obtaining the capacitance change data on the projected capacitive touch screen is the process of collecting touch signals.
  • the touch sampling rate the number of times the touch screen collects touch signals within one second.
  • the touch sampling rate is, the more times the touch screen determines the user's touch position within a period of time. It can be understood that within a period of time, the touch screen may determine whether there is a touch operation on the touch screen multiple times, and determine the coordinates of the touch point if there is a touch operation on the touch screen. That is to say, the higher the touch sampling rate, the more timely the touch screen can respond to the user's touch operation. In other words, the higher the touch sampling rate, the higher the touch sensitivity of the touch screen. Generally speaking, the higher the touch sampling rate, the better the user experience will be.
  • the electronic device provided with the touch screen can perform corresponding operations based on the touch point coordinates in a timely manner.
  • the present application provides a touch sampling rate adjustment method and a related device.
  • the method can be applied to an electronic device provided with a touch screen.
  • the electronic device can determine the habitual area touched by the user for different applications, and can reduce the global touch sampling rate and increase the touch sampling rate of the habitual area.
  • the method can improve the touch sensitivity of the touch screen without excessively consuming computing resources of the electronic device, thereby improving the touch experience of the user.
  • the touch screen mentioned here and the touch screen mentioned later may be a touch screen including touch sensing points.
  • the touch screen may be a projected capacitive touch screen.
  • the habitual area is a user's habitual touch area in the touch screen of the electronic device. That is, the area that the user touches more frequently. It can be understood that the method for determining the usual area will be introduced later, and no further description will be given here.
  • the global touch sampling rate that is, the touch sampling rate of the entire touch screen. That is to say, the number of times the electronic device scans the touch sensing points included in the entire touch screen per second is the global touch sampling rate.
  • the local touch sampling rate is a touch sampling rate of a local area of the touch screen. That is to say, the number of times the electronic device scans the touch sensing points included in the local area per second is the local touch sampling rate. It can be understood that the local area may be the conventional area mentioned above.
  • the complementary touch sampling rate is a concept relative to the local touch sampling rate.
  • the local touch sampling rate is a touch sampling rate of a local area of the touch screen of the electronic device.
  • the complementary touch sampling rate is the touch sampling rate of other areas in the touch screen of the electronic device except the local area. It can be understood that other areas except the partial area can be recorded as complementary areas.
  • the touch screen may include a plurality of touch sensing points (for example, capacitive sensing points).
  • the local touch sampling rate is the touch sampling rate of the area Q
  • the complementary touch sampling rate is the touch sampling rate of other areas in the touch screen except the area Q. That is to say, the frequency at which the electronic device collects the sensing data of the touch sensing points included in other areas of the touch screen except the area Q is the complementary touch sampling rate.
  • FIG. 4 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber Identification Module (Subscriber Identification Module, SIM) card interface 195 and so on.
  • SIM Subscriber Identification Module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing unit, GPU), an image signal processor (Image Signal Processor, ISP), controller, memory, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor Application Processor, AP
  • modem processor a graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP Digital Signal Processor
  • baseband processor baseband processor
  • NPU neural network Processing Unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices 100, such as AR devices.
  • the charging management module 140 is configured to receive a charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input of the battery 142 and/or the charging management module 140, and supplies power for the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (Low Noise Amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the wireless communication module 160 can provide wireless local area network (Wireless Local Area Networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (Bluetooth, BT), global navigation satellite System (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field communication technology (Near Field Communication, NFC), infrared technology (Infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diode (Organic Light-Emitting Diode, OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (Active-Matrix Organic Light Emitting Diode, AMOLED), flexible light-emitting diode (Flex Light-Emitting Diode, FLED), Mini LED, Micro LED, Micro-OLED, quantum dot light-emitting diode (Quantum Dot Light Emitting Diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 may realize the acquisition function through an ISP, a camera 193 , a video codec, a GPU, a display screen 194 , and an application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image or video visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element can be a charge coupled device (Charge Coupled Device, CCD) or a complementary metal oxide semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor.
  • CCD Charge Coupled Device
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image or video signal.
  • ISP outputs digital image or video signal to DSP for processing.
  • DSP converts digital images or video signals into standard RGB, YUV and other formats of images or video signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the electronic device 100 can use N cameras 193 to acquire images with multiple exposure coefficients, and then, in video post-processing, the electronic device 100 can synthesize HDR images using the HDR technology based on the images with multiple exposure coefficients. image.
  • Digital signal processors are used to process digital signals. In addition to digital image or video signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: Moving Picture Experts Group (Moving Picture Experts Group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (Neural-Network, NN) computing processor.
  • NN neural network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image and video playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the electronic device 100 may be provided with at least one microphone 170C.
  • the earphone interface 170D is used for connecting wired earphones.
  • the sensor module 180 may include one or more sensors, which may be of the same type or of different types. It can be understood that the sensor module 180 shown in FIG. 1 is only an exemplary division manner, and there may be other division manners, which are not limited in the present application.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes ie, x, y and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100, and can be applied to applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the fingerprint sensor 180H is used to acquire fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor 180K may transmit the detected touch operation to the application processor to determine the touch event type.
  • the touch sensor 180K can also provide visual output related to the touch operation through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the touch sensor 180K can be a touch screen. In some embodiments of the present application, the touch sensor 180K may be disposed on the display screen 194 .
  • the touch sensor 180K may be the above-mentioned projected capacitive touch screen.
  • touch screen of the electronic device 100 mentioned in this application is the touch sensor 180K.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • FIG. 5 is a schematic diagram of a software structure of an electronic device 100 provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the system is divided into four layers, which are application program layer, application program framework layer, runtime (Runtime) and system library, and kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include application programs (also called applications) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and first application.
  • application programs also called applications
  • the application framework layer provides application programming interfaces and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • Runtime includes the core library and virtual machine. Runtime is responsible for the scheduling and management of the system.
  • the core library includes two parts: one part is the function function that the programming language (for example, java language) needs to call, and the other part is the core library of the system.
  • one part is the function function that the programming language (for example, java language) needs to call
  • the other part is the core library of the system.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes programming files (for example, java files) of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: Surface Manager (Surface Manager), Media Library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • Surface Manager Surface Manager
  • Media Libraries Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the surface manager is used to manage the display subsystem, and provides fusion of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a virtual card driver.
  • the method for adjusting the touch sampling rate provided by the embodiment of the present application is introduced below in combination with some scenarios of adjusting the touch sampling rate.
  • GUI graphics user interface
  • FIG. 6A exemplarily shows a user interface 610 on the electronic device 100 .
  • User interface 610 displays a page on which application icons are placed.
  • the page may include multiple application icons (e.g., a weather application icon, a calendar application icon, an email application icon, a settings application icon 611, an application store application icon, a notes application icon, a photo album application icon, a first application icon 612, etc.) .
  • a page indicator may also be displayed below the plurality of application icons to indicate the positional relationship between the currently displayed page and other pages. Below the page indicators are several tray icons (eg, Dialer app icon, Messaging app icon, Browser app icon, Camera app icon). The tray icon remains displayed across page switches.
  • the touch sampling rate is A.
  • the touch sampling rate A may include a global touch sampling rate a1 and a local touch sampling rate a2.
  • the global touch sampling rate is the touch sampling rate of the entire touch screen of the electronic device 100 .
  • the local touch sampling rate is a touch sampling rate of a local area of the touch screen of the electronic device 100 .
  • the touch sampling rate A may be a default touch sampling rate of the touch screen of the electronic device 100 , or may be a touch sampling rate set by a user.
  • the default touch sampling rate can be preset by technicians according to actual needs, which is not limited in this application.
  • the local touch sampling rate a2 is 0. That is to say, when the electronic device 100 displays the user interface 610 , the touch sampling rate of its touch screen is the global touch sampling rate a1. That is, each touch signal collected by the touch screen of the electronic device 100 includes sensing data of all touch sensing points on the touch screen.
  • the electronic device 100 may detect a user operation acting on the setting application icon 611, and in response to the user operation, the electronic device 100 may display the user interface 620 shown in FIG. 6B. It can be understood that the user interface 620 is the main interface of the setting application.
  • the user interface 620 may include a plurality of setting items. The multiple setting items can be used to control multiple functions in the electronic device 100 .
  • User interface 620 may include controls 621 .
  • the user may trigger the control 621 by touching or the like, so that the electronic device 100 displays a touch sampling rate adjustment interface.
  • the electronic device 100 may detect a user operation on the control 621, and in response to the user operation, the electronic device 100 may display the user interface 630 shown in FIG. 6C.
  • the user interface 630 is the touch sampling rate adjustment interface mentioned above.
  • User interface 630 may include controls 631 , controls 632 and controls 633 .
  • the control 631 may be used to trigger the electronic device 100 to display a user interface for intelligently adjusting the touch sampling rate, so as to realize the intelligent adjustment of the touch sampling rate of the electronic device 100 .
  • the control 632 is used to adjust the touch sampling rate of the electronic device 100 to a standard touch sampling rate.
  • the control 633 is used to adjust the touch sampling rate of the electronic device 100 to a high touch sampling rate.
  • the user can adjust the global touch sampling rate of the electronic device 100 to a standard touch sampling rate by touching (or in other ways) the control 632 .
  • the user can adjust the global touch sampling rate of the electronic device 100 to a high touch sampling rate by touching (or in other ways) the control 633 .
  • the standard touch sampling rate is a moderate touch sampling rate.
  • the touch sensitivity of the touch screen will not be too low, and the system power consumption will not be too large.
  • a high touch sampling rate is a larger touch sampling rate.
  • the touch sensitivity of the touch screen is high, and the user's touch experience is better, but the system consumes a lot of power.
  • the standard touch sampling rate is 120 Hz
  • the high touch sampling rate is 240 Hz.
  • FIG. 6C is only an example of the present application, and the standard touch sampling rate and the high touch sampling rate may also be other values, which are not limited in the present application.
  • the electronic device 100 may detect a user operation on the control 631, and in response to the user operation, the electronic device 100 may display the user interface 640 shown in FIG. 6D.
  • User interface 640 may include display area 641 , controls 642 and controls 643 .
  • the display area 641 may display one or more ways of intelligently adjusting the touch sampling rate provided by the electronic device 100 .
  • the control 642 is used to set the white list function, that is, to set the application programs that can use the function of intelligently adjusting the touch sampling rate.
  • the control 643 is used to set the local area corresponding to the local touch sampling rate.
  • the local touch sampling rate is the touch sampling rate of a local area of the touch screen of the electronic device 100 . It can be understood that the electronic device 100 can adjust the local touch sampling rate, and can also provide a function of setting the local area.
  • the display area 641 may include a control 6411 and a control 6412 .
  • the control 6411 is used to adjust the touch sampling rate of the electronic device 100 according to the first method.
  • the control 6412 is used to adjust the touch sampling rate of the electronic device 100 according to the second manner.
  • Way 1 is to adjust the local touch sampling rate and the global touch sampling rate of the electronic device 100 in combination with usage scenarios and system power consumption.
  • the electronic device 100 adopts method 1 to adjust the touch sampling rate, it can adaptively adjust the local area corresponding to the local touch sampling rate, the size of the local touch sampling rate, and the global touch sampling rate according to the application used by the user. rate size.
  • the electronic device 100 adopts the first method to adjust the touch sampling rate, if the system consumes a lot of power, the electronic device 100 may properly reduce the local touch sampling rate and the global touch sampling rate. It can be understood that, when the temperature of the electronic device 100 is relatively high, the electronic device 100 may appropriately reduce the local touch sampling rate and the global touch sampling rate. It should be noted that after the electronic device 100 reduces the local touch sampling rate and the global touch sampling rate, its local touch sampling rate is still higher than the global touch sampling rate.
  • the electronic device 100 before the electronic device 100 adopts the first method to adjust the touch sampling rate, the electronic device 100 only performs global touch sampling, and its global touch sampling rate is 150 Hz.
  • the electronic device 100 adopts the first method to adjust its local touch sampling rate to 200 Hz, and adjust its global touch sampling rate to 120 Hz.
  • the system power consumption of the electronic device 100 increases significantly, and the temperature rises.
  • the electronic device 100 may reduce the local touch sampling rate to 160 Hz, and reduce its global touch sampling rate to 100 Hz.
  • the second way is to adjust the local touch sampling rate and the complementary touch sampling rate of the electronic device 100 in combination with the use scenario and the power consumption of the system.
  • the electronic device 100 adopts the second method to adjust the touch sampling rate, it can adaptively adjust the local area corresponding to the local touch sampling rate, the size of the local touch sampling rate, and the complementary touch sampling rate according to the application used by the user. rate size.
  • the electronic device 100 adopts the second method to adjust the touch sampling rate, if the system consumes a lot of power, the electronic device 100 may appropriately reduce the partial touch sampling rate and the complementary touch sampling rate. It can be understood that when the temperature of the electronic device 100 is relatively high, the electronic device 100 may also appropriately reduce the local touch sampling rate and the complementary touch sampling rate. It should be noted that after the electronic device 100 reduces the local touch sampling rate and the complementary touch sampling rate, its local touch sampling rate is still higher than the complementary touch sampling rate.
  • the electronic device 100 before the electronic device 100 adopts the second method to adjust the touch sampling rate, the electronic device 100 only performs global touch sampling, and its global touch sampling rate is 150 Hz.
  • the electronic device 100 adopts the second method to adjust its partial touch sampling rate to 200 Hz, and adjust its complementary touch sampling rate to 140 Hz.
  • the system power consumption of the electronic device 100 increases significantly, and the temperature rises.
  • the electronic device 100 may reduce the partial touch sampling rate to 160 Hz, and reduce the complementary touch sampling rate to 120 Hz.
  • the electronic device 100 can implement intelligent adjustment of the touch sampling rate in more ways, which is not limited in this application.
  • the electronic device 100 may adjust the global touch sampling rate in combination with usage scenarios and system power consumption.
  • the electronic device 100 may adjust the partial touch sampling rate in combination with usage scenarios and system power consumption.
  • the electronic device 100 may adjust the complementary touch sampling rate in combination with usage scenarios and system power consumption.
  • the electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate.
  • the electronic device 100 may detect a user operation acting on the control 6412, and in response to the user operation, the electronic device 100 may adopt a second method to adjust the touch sampling rate.
  • the electronic device 100 may detect a user operation on the control 642, and in response to the user operation, the electronic device 100 may display the user interface 650 shown in FIG. 6E.
  • User interface 650 may include controls 651 , display area 652 and display area 653 .
  • the control 651 can be used to start the whitelist function.
  • the display area 652 is used to select an application that can intelligently adjust the touch sampling rate among the downloaded applications.
  • the display area 653 is used to select an application that can intelligently adjust the touch sampling rate among system applications.
  • the display area 652 may include one or more controls.
  • the one or more controls are used to control whether the user intelligently adjusts the touch sampling rate when using one or more downloaded applications.
  • the electronic device 100 may detect a user operation acting on the one or more controls, and in response to the user operation, the electronic device 100 may intelligently adjust the touch sampling rate when the user uses one or more downloaded application programs.
  • the user can activate the whitelist function and add the first application to the whitelist. That is to say, once the user triggers the function of intelligently adjusting the touch sampling rate, the electronic device 100 can intelligently adjust the touch sampling rate when the user uses the first application.
  • the display area 653 may also include one or more controls.
  • the one or more controls are used to control whether the user can intelligently adjust the touch sampling rate when using one or more system applications.
  • the electronic device 100 may detect a user operation acting on the one or more controls, and in response to the user operation, the electronic device 100 may intelligently adjust a touch sampling rate when the user uses one or more system applications.
  • the electronic device 100 can enable the function of intelligently adjusting the touch sampling rate in response to relevant operations of the user.
  • the electronic device 100 may also determine the touch sampling rate when displaying the user interface of the first application according to parameters obtained in advance when it is adapted to the first application, or by calling an interface.
  • the electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and the global touch sampling rate of the device.
  • the electronic device 100 may detect a user operation on the first application icon 612, and in response to the user operation, the electronic device 100 may start the first application and display the user interface 660 shown in FIG. 6F. It can be understood that the user interface 660 is the main interface of the first application.
  • User interface 660 may include controls 661 .
  • the user can start the game by touching (or otherwise) the control 661.
  • the electronic device 100 may determine that the first application is an application in the whitelist (as shown in FIG. 6E ).
  • the electronic device 100 may determine the touch sampling rate B when the user interface 660 is displayed according to parameters obtained in advance when it is adapted to the first application.
  • the touch sampling rate B may include a global touch sampling rate b1 and a local touch sampling rate b2.
  • the global touch sampling rate b1 is smaller than the global touch sampling rate a1. That is to say, when the electronic device 100 displays the user interface 660 , the global touch sampling rate of the touch screen is reduced, and the local touch sampling rate is increased. Without consuming too many computing resources, the electronic device 100 can increase the touch sensitivity of a local area of the touch screen. It can be understood that the partial area may be a usual area touched by the user, which improves the touch experience of the user.
  • the touch sampling rate B may include a local touch sampling rate b2 and a complementary touch sampling rate b3.
  • a lower complementary touch sampling rate is adopted, and a partial touch sampling rate is increased.
  • the electronic device 100 can increase the touch sensitivity of a local area of the touch screen.
  • the partial area may be a usual area touched by the user, which improves the touch experience of the user.
  • the number of touch sensing points to be scanned by the electronic device 100 is reduced, and the response speed is also improved.
  • the local touch sampling rate a2 is 0, but the local sampling rate b2 is not zero.
  • the global touch sampling rate b1 is smaller than the global touch sampling rate a1. That is to say, when the electronic device 100 displays the main interface of the first application, the global touch sampling rate of the touch screen is reduced, and the local touch sampling rate is increased.
  • the electronic device 100 may detect a user operation acting on the control 661, and in response to the user operation, the electronic device 100 may display the user interface 670 shown in FIG. 6G.
  • the electronic device 100 may determine the touch sampling rate when the electronic device 100 displays the user interface 670—the touch sampling rate C based on parameters obtained in advance when it is adapted to the first application.
  • the touch sampling rate C may include a global touch sampling rate c1 and a local touch sampling rate c2. Wherein, the global touch sampling rate c1 is smaller than the global touch sampling rate a1. It can be understood that the magnitudes of the global touch sampling rate c1 and the global touch sampling rate b1 are uncertain. The magnitudes of the local touch sampling rate c2 and the local touch sampling rate b2 are also uncertain. In other words, c1 may be greater than b1, or less than or equal to b1. And c2 may be greater than b2, or less than or equal to b2.
  • the electronic device 100 may determine the habitual area X1 touched by the user according to parameters obtained during pre-fitting with the first application. It can be understood that the usual area X1 is the usual area when the electronic device 100 displays the user interface 660 shown in FIG. 6F . It can be understood that the touch sampling rate of the habitual area X1 is the local touch sampling rate b2.
  • the collection of the area S1 , the area S2 , the area S3 and the area S4 is the customary area X1 .
  • the customary area X1 is a local area on the touch screen, and the electronic device 100 generally does not display it on the display screen.
  • the electronic device 100 may adjust the local touch sampling rate b2 and the global touch sampling rate b1 after acquiring the size and position of the habitual area X1. Specifically, the electronic device 100 may set the local touch sampling rate b2 to a higher value, and may set the global touch sampling rate b1 to a lower value.
  • the electronic device 100 can set the local touch sampling rate b2 to a high touch sampling rate (240 Hz as shown in Figure 6C), and set the global touch sampling rate b1 to a standard touch sampling rate (as shown in Figure 6C 120Hz).
  • the electronic device 100 may also set the local touch sampling rate b2 to be N1 times the high touch sampling rate, and set the global touch sampling rate b1 to be N2 times the standard touch sampling rate.
  • N1 is greater than 1
  • N2 is greater than 0 and less than 1.
  • the electronic device 100 may determine the higher value and the lower value according to its own computing capability.
  • the higher value and the lower value can be set by technicians according to requirements.
  • the electronic device 100 may also obtain the higher value and the lower value in other ways, which is not limited in the present application.
  • the electronic device 100 may adopt a second method to adjust the touch sampling rate.
  • the electronic device 100 may also determine the size and position of the complementary area corresponding to the complementary touch sampling rate b3.
  • the electronic device 100 can adjust the local touch sampling rate b2 and the complementary touch sampling rate b3.
  • the electronic device 100 may set the local touch sampling rate b1 to a higher value, and may set the complementary touch sampling rate b3 to a lower value. It can be understood that, for the description about the higher value and the lower value, reference can be made to the above, and details are not repeated here.
  • the parameters obtained when the electronic device 100 is pre-fitted with the first application may include the size and position of the customary area when the user interface 660 is displayed.
  • the size and position of the customary area can be represented by specific coordinates in coordinate systems such as a Cartesian coordinate system, a plane polar coordinate system, a cylindrical coordinate system, and a spherical coordinate system. That is to say, the parameters obtained when the electronic device 100 is pre-fitted with the first application may include the coordinates of the customary area when the user interface 660 is displayed.
  • the parameters obtained when the electronic device 100 is pre-fitted with the first application may include the size and position of the customary area when displaying other user interfaces of the first application. It can be understood that the usual area when the electronic device 100 displays different interfaces of the first application may be different.
  • the electronic device 100 may determine the habitual area X2 touched by the user according to parameters obtained during pre-fitting with the first application. It can be understood that the usual area X2 is the touch sampling rate when the electronic device 100 displays the user interface 670 . It can be understood that the touch sampling rate of the habitual area X2 is the local touch sampling rate c2.
  • the combination of the area S5 and the area S6 is the customary area X2. It can be understood that when the electronic device 100 displays the user interface 670, the user cannot see the area S5 and the area S6. That is to say, the customary area X2 is a partial area on the touch screen, and the electronic device 100 will not display it on the display screen.
  • the electronic device 100 can adjust the local touch sampling rate c2 and the global touch sampling rate c1.
  • the electronic device 100 can adjust the local touch sampling rate c2 and the complementary touch sampling rate c3.
  • the complementary touch sampling rate c3 is the touch sampling rate of the complementary area of the conventional area X2.
  • the complementary area of the usual area X2 refers to other areas of the touch screen except the usual area X2.
  • the electronic device 100 may be pre-adapted to one or more applications, so as to determine the size and position of the user's habitual area when using the one or more applications.
  • the electronic device 100 may also store the size and location of the usual area corresponding to the one or more applications. It can be understood that the position and size of the habitual area on the touch screen can be represented by means such as rectangular coordinates.
  • the electronic device 100 may acquire control information of different applications, and determine the position of the control according to the control information.
  • the electronic device 100 may also determine the size and position of the customary area according to the position of the control. For example, the electronic device 100 may determine the area where the controls are concentrated as the habitual area touched by the user.
  • control information may include but not limited to control text and control id.
  • control text is text information for identifying the control.
  • control id is also used to identify the control.
  • the control ids of different controls are generally different.
  • the interface displayed by the electronic device 100 includes a control 1 , a control 2 , a control 3 and a control 4 . These 4 controls are concentrated in area P.
  • the electronic device 100 may determine that the area P is a usual area touched by the user when the electronic device 100 displays the interface.
  • the electronic device 100 may scan the touch sensing points on the touch screen, and record the touch sensing points whose change times are greater than the first threshold within a period of time. The electronic device 100 may determine that the area including these touch sensing points is a habitual area touched by the user.
  • the first threshold may be determined according to actual requirements, which is not limited in the present application.
  • the period of time mentioned above may be time T1, and its specific value may be set according to actual needs, which is not limited in the present application.
  • the touch sensing point may be a capacitive sensing point.
  • the electronic device 100 may record the positions of capacitance sensing points whose capacitance change times are greater than a first threshold within a period of time.
  • the electronic device 100 after the electronic device 100 adapts to different applications and determines the user's usual area when using different applications, it can also determine the touch sampling rate of the usual area (local touch sampling rate), the touch sampling rate of the entire touch screen The touch sampling rate (global touch sampling rate), and the corresponding touch sampling rate of the complementary area (complementary touch sampling rate).
  • the electronic device 100 when the electronic device 100 is adapting to an application, it may determine customary areas of different pages in the application. That is to say, for an application adapted by the electronic device 100, the electronic device 100 may determine the customary areas of one or more user interfaces of the application. It can be understood that the customary areas of one or more user interfaces in the same application may be the same or different.
  • the electronic device 100 can also obtain information about the habitual area of the first application by calling the interface, so as to determine the touch sampling rate when the user interface 660 is displayed. Rate B.
  • the interface invoked by the electronic device 100 may be an open interface such as an Application Programming Interface (Application Programming Interface, API).
  • API Application Programming Interface
  • the related information of the customary area may include the size and position of the customary area.
  • the related information of the usual area may also include the touch sampling rate of the usual area.
  • the electronic device 100 may also acquire information about customary areas of other interfaces of the first application (for example, the user interface 670 shown in FIG. 6G ) by calling the interface.
  • the electronic device 100 may also acquire information about customary areas of other applications by calling the interface.
  • the electronic device 100 may enable the function of intelligently adjusting the touch sampling rate in response to relevant operations of the user.
  • the electronic device 100 may determine the touch sampling rate when displaying the user interface of the first application by learning the touch habit of the user.
  • the electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and the global touch sampling rate of the device.
  • the electronic device 100 may detect a user operation acting on the first application icon 612, and in response to the user operation, the electronic device 100 may start the first application and display the user interface 660 shown in FIG. 8A.
  • User interface 660 may include controls 661 .
  • the user can start the game by touching (or otherwise) the control 661.
  • the electronic device 100 may determine that the first application is an application in the whitelist (as shown in FIG. 6E ).
  • the electronic device 100 can learn the user's touch habit by scanning the touch sensing points on the entire touch screen.
  • the area of the touch screen that can be scanned is area S7 .
  • the electronic device 100 may scan the touch sensing points in the area S7, and record the touch sensing points whose change times are greater than a preset threshold within a period of time. It can be understood that the areas where these touch sensing points are located are the areas frequently touched by the user, that is, the habitual areas.
  • the electronic device 100 can increase the touch sampling rate of the habitual area. As shown in FIG. 8B , the electronic device 100 can determine that the area S8 , area S9 , area S10 and area S11 are the areas frequently touched by the user after scanning, which is marked as the habitual area X3 . It can be understood that the electronic device 100 may increase the touch sampling rate of the habitual area X3, and at the same time reduce the global touch sampling rate when the electronic device 100 displays the user interface 660 shown in FIG. 8B .
  • the preset threshold may be determined according to actual requirements, which is not limited in the present application.
  • the period of time mentioned above may be time T1, and its specific value may be set according to actual needs, which is not limited in the present application.
  • the touch sensing point may be a capacitive sensing point.
  • the electronic device 100 may scan the capacitive sensing points in the area S7, and record the positions of the capacitive sensing points whose capacitance changes are greater than a preset threshold within a period of time.
  • the S7 is the entire touch screen area.
  • the area S7 shown in FIG. 8A, and the areas S8, S9, S10, and S11 shown in FIG. 8B refer to areas on the touch screen of the electronic device 100, which are invisible to the user. That is to say, the user interface 660 shown in FIG. 8A and the user interface 660 shown in FIG. 8B are the same as the user interface 660 shown in FIG. 6F .
  • the electronic device 100 may also learn the user's touch habit in other ways, which is not limited in this application.
  • the electronic device 100 may also detect a user operation on the control 661, and in response to the user operation, the electronic device 100 may display the user interface 670 shown in FIG. 8C.
  • the electronic device 100 can learn the user's touch habit by scanning the touch sensing points on the entire touch screen. As shown in FIG. 8C , when the electronic device 100 displays the user interface 670 shown in FIG. 8C , the area of the touch screen that can be scanned is area S12 . Exemplarily, the electronic device 100 may scan the touch sensing points in the area S12, and record the touch sensing points whose times of change are greater than a preset threshold within a period of time. It can be understood that the areas where these touch sensing points are located are the areas frequently touched by the user, that is, the habitual areas. The electronic device 100 can increase the touch sampling rate of the habitual area. As shown in FIG.
  • the electronic device 100 can determine that the area S13 and the area S14 are areas frequently touched by the user after scanning, and record it as the habitual area X4. It can be understood that the electronic device 100 may increase the touch sampling rate of the habitual area X4, and at the same time reduce the global touch sampling rate when the electronic device 100 displays the user interface 670 shown in FIG. 8D .
  • the preset threshold may be determined according to actual requirements, which is not limited in the present application.
  • the period of time mentioned above may be time T1, and its specific value may be set according to actual needs, which is not limited in the present application.
  • the touch sensing point may be a capacitive sensing point.
  • the electronic device 100 may scan the capacitive sensing points in the area S12, and record the positions of the capacitive sensing points whose capacitance changes are greater than a preset threshold within a period of time.
  • the area S12 may include all touch sensing points in the touch screen.
  • the area S12 may be the entire touch screen area.
  • the area S12 shown in FIG. 8C , and the areas S13 and S14 shown in FIG. 8D refer to areas on the touch screen of the electronic device 100 , which are invisible to the user. That is to say, the user interface 670 shown in FIG. 8C and the user interface 670 shown in FIG. 8D are the same as the user interface 670 shown in FIG. 6G .
  • the electronic device 100 can also learn the user's touch habits when the user uses other applications, and adaptively adjust the touch sampling rate to improve the touch sensitivity of the touch screen, thereby improving the user's touch experience.
  • the user can set the usual area when using different applications.
  • the electronic device 100 may use these customary areas as the local areas corresponding to the local touch sampling rate adopted when displaying the corresponding page.
  • the electronic device 100 may enable the function of intelligently adjusting the touch sampling rate in response to relevant operations of the user.
  • the electronic device 100 can adjust the touch sampling rate according to the customary area set by the user.
  • the electronic device 100 may detect a user operation acting on the control 643, and in response to the user operation, the electronic device 100 may display the user interface 910 shown in FIG. 9A.
  • the user interface 910 may include a control 911 and a display area 912 .
  • the control 911 is used to set the local area corresponding to the local touch sampling rate as the default local area.
  • the display area 912 may include controls 9121 and a display area 9122 . Among them, the control 9121 is used to uniformly set the local area.
  • Display area 9122 may include one or more controls. The display area 9122 can be used to personalize the local area corresponding to the local touch sampling rate when the user uses different applications.
  • the default local area may be an area preset by technicians before the electronic device 100 leaves the factory, and the present application does not limit the specific location and specific size of the area.
  • the electronic device 100 may be pre-fitted with one or more applications, and obtain the habitual area of the user when using the one or more applications.
  • the electronic device 100 may use the customary area as the default local area. It can be understood that the method for pre-adapting the electronic device 100 and one or more applications may refer to the above, and will not be repeated here.
  • the display area 9122 may include a control 91221 .
  • the control 91221 can be used to set the local area corresponding to the local touch sampling rate when the user uses the first application.
  • the electronic device 100 may detect a user operation acting on the control 91221, and in response to the user operation, the electronic device 100 may display the user interface 920 of FIG. 9B.
  • the user interface 920 may include controls 921 and a display area 922 .
  • the control 921 is used to uniformly set local areas for all interfaces of the first application.
  • Display area 922 may include one or more controls. The one or more controls are used to respectively set local areas for different interfaces of the first application.
  • the user may set the usual area touched by the user when the electronic device 100 displays different interfaces as the local area.
  • the electronic device 100 displays the corresponding interface, it can increase the touch sampling rate of the local area, that is, the local touch sampling rate.
  • the display area 922 may include a control 9221 and a control 9222 .
  • the control 9221 is used to set the local area corresponding to the local touch sampling rate adopted when the electronic device 100 displays the interface U of the first application.
  • the control 9222 is used to set the local area corresponding to the local touch sampling rate adopted when the electronic device 100 displays the interface V of the first application.
  • the display area 922 may also include controls for setting a local area corresponding to a local touch sampling rate adopted when the electronic device 100 displays other interfaces (eg, interface W) of the first application.
  • the electronic device 100 may detect a user operation acting on the control 9221, and in response to the user operation, the electronic device 100 may display the user interface 930 shown in FIG. 9C.
  • the user interface 930 may include a display area 931 .
  • the display area 931 may include a control 9311 , a control 9312 , a control 9313 , a control 9314 , a control 9315 , a control 9316 and a control 9317 .
  • the control 9311 is used to call the rectangle tool. It can be understood that the user can draw a rectangle on the user interface 930 by invoking the rectangle tool.
  • Control 9312 is used to invoke the ellipse tool. It can be understood that the user can draw an ellipse on the user interface 930 by calling the ellipse tool.
  • Control 9313 is used to invoke the line tool.
  • Control 9314 is used to invoke the brush tool. It can be understood that the user can draw any pattern on the user interface 930 by invoking the paintbrush tool.
  • Control 9315 is used to undo operations. That is, the user can withdraw the drawn pattern through the control 9315.
  • Control 9316 is used to exit user interface 930 . That is, the user can cancel drawing.
  • Control 9317 is used to determine the local area to draw.
  • the user can draw a local area on the user interface 930 by invoking a drawing tool included in the display area 931 .
  • the local area is the area corresponding to the local touch sampling rate when the electronic device 100 displays the interface U of the first application.
  • the area S15 is a local area corresponding to the local touch sampling rate adopted when the electronic device 100 displays the interface U of the first application.
  • the electronic device 100 may detect a user operation acting on the control 9222, and in response to the user operation, the electronic device 100 may display the user interface 940 shown in FIG. 9D.
  • the user interface 940 may include a display area 931 .
  • a display area 931 For the description about the display area 931 , reference may be made to the above, and details are not repeated here.
  • the user can draw a local area on the user interface 940 by invoking a drawing tool included in the display area 931 .
  • the local area is the area corresponding to the local touch sampling rate when the electronic device 100 displays the interface V of the first application.
  • the user can draw the partial area S16 and the area S17. It can be understood that the collection of the area S16 and the area S17 is the area corresponding to the local touch sampling rate when the electronic device 100 displays the interface V of the first application.
  • the electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and the global touch sampling rate of the device.
  • the electronic device 100 may detect a user operation acting on the control 6412, and in response to the user operation, the electronic device 100 may adopt a second method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and complementary touch sampling rate of the device.
  • the electronic device 100 may detect a user operation acting on the first application icon 612, and in response to the user operation, the electronic device 100 may start the first application and display the user interface 660 shown in FIG. 9E.
  • User interface 660 may include controls 661 .
  • the user can start the game by touching (or otherwise) the control 661.
  • the user interface 660 is the interface U of the first application.
  • the touch sampling rate of the area S15 of the touch screen may be increased, and the global touch sampling rate may be decreased.
  • the electronic device 100 may adopt a second method to adjust the touch sampling rate.
  • the touch sampling rate of the area S15 of the touch screen can be increased, and the corresponding complementary touch sampling rate can be decreased.
  • the electronic device 100 may detect a user operation acting on the control 661, and in response to the user operation, the electronic device 100 may display the user interface 670 shown in FIG. 9F.
  • the user interface 670 is the interface V of the first application.
  • the touch sampling rate of the regions S16 and S17 may be increased, while the global touch sampling rate may be reduced.
  • the electronic device 100 may adopt a second method to adjust the touch sampling rate.
  • the touch sampling rates of the regions S16 and S17 of the touch screen can be increased, and the corresponding complementary touch sampling rates can be reduced.
  • the regions S15, S16 and S17 in FIG. 9E and FIG. 9F are all regions on the touch screen of the electronic device 100, which are invisible to the user. That is to say, when the electronic device 100 displays the user interface shown in FIG. 9E and FIG. 9F , the user cannot see the region S15 , region S16 and region S17 . However, after the electronic device 100 increases the touch sampling rate of these areas, the user can obviously feel that the touch of these areas will be more handy. In other words, the user's touch experience has been improved.
  • the electronic device 100 may adjust the touch sampling rate of the device according to one or more of the above three methods for adjusting the touch sampling rate. That is to say, the electronic device 100 can adjust the touch sampling rate by any combination of the above three methods.
  • the following exemplifies how the electronic device 100 adjusts the touch sampling rate in combination with the first method and the second method above.
  • the electronic device 100 may adjust the touch sampling rate according to parameters pre-adapted to the first application, or by calling an interface. In the subsequent process, the electronic device 100 adjusts the habitual area touched by the user by learning the user's touch habit, and then changes the local area corresponding to the local touch sampling rate.
  • the electronic device 100 may further adjust the local touch sampling rate.
  • the electronic device 100 may also scan the entire touch screen or the complementary areas in the touch screen to determine the usual area touched by the user according to the parameters obtained during pre-fitting, or call the interface.
  • the touch sensing points to learn the user's touch habits.
  • the electronic device 100 may determine the habitual area touched by the user as the habitual area X2 according to the parameters obtained during pre-adaptation (or call the interface). It can be understood that the customary area X2 is a collection of the area S5 and the area S6.
  • the electronic device 100 may determine the touch sampling rate of the habitual area X2, that is, the local touch sampling rate c2. In addition, the electronic device 100 may also determine the global touch sampling rate c1 and/or the complementary touch sampling rate c3.
  • the electronic device 100 can scan the touch sensing points included in the complementary area of the normal area X2. During this process, the electronic device 100 may record the positions of the touch sensing points whose number of changes in the complementary area is greater than the third threshold within a period of time. It can be understood that the area to which these touch sensing points belong can be marked as area Y. The electronic device 100 may adjust the habitual area touched by the user as a collection of the habitual area X2 and the area Y.
  • the touch sensing point may be a capacitive sensing point.
  • the electronic device 100 may record the positions of capacitance sensing points whose capacitance changes in the complementary area are greater than the third threshold within a period of time.
  • the adjusted habitual area is a collection of area S18 and area S19 . It can be understood that the set of the area S18 and the area S19 is the set of the customary area X2 and the area Y.
  • the third threshold may be determined according to actual requirements, which is not limited in the present application.
  • the partial touch sampling rate is the adjusted touch sampling rate of the habitual area.
  • the electronic device 100 after the electronic device 100 adjusts the habitual area touched by the user, it can also adjust the local touch sampling rate and the global touch sampling rate. For example, the electronic device 100 may increase the local touch sampling rate c2 and decrease the global touch sampling rate c1.
  • the electronic device 100 may also adjust the partial touch sampling rate and the complementary touch sampling rate. For example, the electronic device 100 may increase the partial touch sampling rate c2 and decrease the complementary touch sampling rate c3.
  • the first application can be not only the game application shown in FIG. 6F, FIG. 6G, FIG. 8A-8D, FIG. 9E, FIG. 9F and FIG. 10, but also other types of applications, which is not limited in this application.
  • a touch sampling rate adjustment method provided by an embodiment of the present application is introduced below with reference to FIG. 11 .
  • S1101 The electronic device 100 acquires first area information.
  • the first interface may be a user interface of the first application.
  • the first interface may be the main interface of the first application. That is, the user interface 660 shown in FIG. 6F , FIG. 8A , FIG. 8B and FIG. 9E .
  • the electronic device 100 may detect a user operation acting on the first application icon, and in response to the user operation, the electronic device 100 may display the first interface.
  • the first application icon may be the first application icon 612 in the user interface 610 shown in FIG. 6A .
  • the touch sampling rate when the electronic device 100 displays the first interface may be the touch sampling rate B. It can be understood that the related description about the touch sampling rate B can refer to the above, and will not be repeated here.
  • the first interface may also be the desktop of the electronic device 100 .
  • the first interface may be the user interface 610 shown in FIG. 6A.
  • the first interface may also be other interfaces of the electronic device 100, which is not limited in this application.
  • the first area information is information related to the first area set by the user for the first application or the first interface.
  • the relevant information of the first area may include the position and size of the first area.
  • the electronic device 100 increases the touch sampling rate of the first area based on the first area information.
  • the first area is a partial area of the touch screen of the electronic device 100 .
  • the touch sampling rate is a sampling rate for touch signals of the touch screen.
  • the touch sampling rate reference may be made to the foregoing embodiments, and no further details are given here.
  • the electronic device 100 may also perform adaptation with the first application or the first interface, and record parameters obtained from the adaptation.
  • the parameter is information about a relevant area of the touch screen corresponding to the first application or the first interface.
  • the relevant information of the relevant area may include the location and size of the relevant area.
  • the electronic device 100 adapts to the application identifier of the first application, which means that the electronic device 100 adapts to the first application. Similarly, in this application, the electronic device 100 adapts to the information characterizing the first interface, which means that the electronic device 100 adapts to the first interface.
  • the electronic device 100 may be adapted to one or more applications and record parameters. It can be understood that the parameter is related information of the relevant area of the touch screen corresponding to the user interface of the one or more applications.
  • the relevant area may be determined according to the control information of the user interface.
  • the electronic device 100 may determine the position and distribution of the controls according to the control information, and record the position and size of the area where the controls are located.
  • the area where the control is located is the touch area of the touch screen corresponding to the area of the control in the display interface.
  • the above-mentioned parameters recorded by the electronic device 100 may include the position and size of the area where the control is located. It can be understood that for related descriptions and specific implementation manners of the control information, reference may be made to the foregoing embodiments, and details are not repeated here.
  • the parameters recorded when the electronic device 100 adapts to the first application or the first interface include: based on the control information of the first application, the recorded position and size of the area where the control in the first application is located ; Or, based on the control information of the first interface, the position and size of the area where the control in the first interface is recorded.
  • the electronic device 100 may acquire information about the first area set by the user for the first application or the first interface. It can be understood that the relevant information of the first area may include but not limited to the position and size of the first area. For the specific implementation manner of the user setting, reference may be made to the foregoing embodiments, and details are not repeated here.
  • the electronic device 100 may determine the first area by learning the touch habit of the user. Specifically, when the electronic device 100 displays the user interface, it may scan the touch sensing points of the touch screen to acquire touch signals at the touch sensing points. The electronic device 100 may also record the position of the touch sensing point corresponding to the touch signal whose change times are greater than the first threshold within the time T1. It can be understood that the areas where these touch sensing points are located are the areas frequently touched by the user. That is, the usual area that the user touches.
  • the user interface of the electronic device includes a first interface.
  • the electronic device 100 displays the first interface, the area where the touch sensing point corresponding to the touch signal whose capacitance change times is greater than the first threshold obtained before in the time T1 can be used as the first area.
  • the user interface of the electronic device includes the user interface of the first application.
  • the electronic device displays the user interface of the first application, the area where the touch sensing point corresponding to the touch signal whose capacitance change times is greater than the first threshold obtained before in the time T1 can be used as the first area.
  • the electronic device 100 may acquire the first area information by calling an interface. It can be understood that the first area information may include but not limited to the position and size of the first area.
  • the electronic device 100 may also reduce the global touch sampling rate while increasing the touch sampling rate of the first region.
  • the global touch sampling rate is the number of times the electronic device 100 scans all touch sensing points in the touch screen per second. It should be noted that after the electronic device 100 reduces the global touch sampling rate, the touch sampling rate of the first region is higher than the global touch sampling rate.
  • the electronic device 100 may also decrease the touch sampling rate of the complementary area (ie, complementary touch sampling rate).
  • the complementary touch sampling rate is the touch sampling rate of the complementary area of the first area.
  • the complementary area is an area of the touch screen other than the first area.
  • the electronic device 100 may set a white list. Specifically, the electronic device 100 may receive a first instruction for enabling the whitelist; the electronic device 100 may also receive a second instruction for setting applications in the whitelist. It can be understood that, when the electronic device 100 starts the application included in the white list and displays the corresponding interface, the electronic device 100 can adjust the touch sampling rate. It should be noted that the first application is an application in the white list.
  • the first area may be the usual area X1 shown in FIG. 6F, the usual area X2 shown in FIG. 6G, the customary area X3 shown in FIG. 8B, the customary area X4 shown in FIG. S15, the set of the area S16 and the area S17 shown in FIG. 9F , and the set of the area S18 and the area S19 shown in FIG. 10 .
  • the habitual area touched by the user when the electronic device 100 displays different user interfaces can be obtained by using the touch sampling rate adjustment method shown in FIG. 11 .
  • the electronic device 100 can increase the corresponding local touch sampling rate and reduce the global touch sampling rate or complementary touch sampling rate when displaying different user interfaces, and can improve the touch screen of the electronic device 100 without consuming computing resources.
  • the touch sensitivity can improve the user's touch experience.

Abstract

Provided in the present application are a touch-control sampling rate adjustment method and a related apparatus. The method comprises: an electronic device being able to adjust, according to parameters obtained by means of adapting to one or more applications in advance, touch-control sampling rates of when the device displays different interfaces. Specifically, when displaying an interface, the electronic device can increase the touch-control sampling rate of a local area and reduce a global touch-control sampling rate or a compensating touch-control sampling rate. The electronic device can also determine, by means of learning touch-control habits of a user, areas that the user touches frequently, and can increase the touch-control sampling rate of these areas. In addition, the electronic device can also adjust the touch-control sampling rate according to a situation set by the user. By means of the method, when displaying different interfaces of different applications, an electronic device can adaptively adjust touch-control sampling rates, such that the touch-control experience of a user can be improved without consuming excessive computing resources and system energy.

Description

一种触控采样率调节方法及相关装置A touch sampling rate adjustment method and related device
本申请要求于2021年08月28日提交中国专利局、申请号为202110999104.8、申请名称为“一种触控采样率调节方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110999104.8 and the application title "A Touch Sampling Rate Adjustment Method and Related Device" submitted to the China Patent Office on August 28, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种触控采样率调节方法及相关装置。The present application relates to the field of terminal technologies, and in particular to a touch sampling rate adjustment method and a related device.
背景技术Background technique
近些年来,移动互联网发展迅速。随着终端技术不断发展,手机等移动终端设备的性能不断提升。人们不再满足于简单地将互联网上的内容照搬至终端设备,而是越来越关注这些终端设备在界面、操作以及使用情景等方面的用户体验。也就是说,人们越来越关注用户与终端设备之间的交互。In recent years, the mobile Internet has developed rapidly. With the continuous development of terminal technology, the performance of mobile terminal equipment such as mobile phones is continuously improved. People are no longer satisfied with simply copying the content on the Internet to terminal devices, but are paying more and more attention to the user experience of these terminal devices in terms of interface, operation and usage scenarios. That is to say, people pay more and more attention to the interaction between the user and the terminal equipment.
触摸屏的应用为用户与终端设备之间的交互提供了一种新的方式,极大提高了用户体验。可理解,触控采样率与电子设备的触摸屏的触控灵敏度密切相关。一般来说,触控采样率越高,触摸屏的触控灵敏程度越高,在用户的使用过程中越跟手,用户体验越好。The application of the touch screen provides a new way for the interaction between the user and the terminal device, which greatly improves the user experience. It can be understood that the touch sampling rate is closely related to the touch sensitivity of the touch screen of the electronic device. Generally speaking, the higher the touch sampling rate, the higher the touch sensitivity of the touch screen, and the better the user experience is, the better the user experience will be.
然而,受计算能力的限制,电子设备提高触控采样率的能力有限。另外,提高触控采样率会加大电子设备的系统功耗,很可能降低用户体验。However, due to the limitation of computing power, the ability of electronic devices to increase the touch sampling rate is limited. In addition, increasing the touch sampling rate will increase the system power consumption of electronic devices, which may degrade user experience.
因此,如何在不加大电子设备的系统功耗的情况下提升用户的触控体验是目前亟待解决的问题。Therefore, how to improve the user's touch experience without increasing the system power consumption of the electronic device is an urgent problem to be solved at present.
发明内容Contents of the invention
本申请提供了一种触控采样率调节方法及相关装置。其中,该方法可以应用于设置有触摸屏的电子设备。电子设备可以针对不同的应用来确定用户触摸的惯常区域,并且可以降低全局的触控采样率,而提高该惯常区域的触控采样率。该方法在不过度耗费电子设备计算资源的情况下,可以提高触摸屏的触控灵敏度,从而提升用户的触控感受。The present application provides a touch sampling rate adjustment method and a related device. Wherein, the method can be applied to an electronic device provided with a touch screen. The electronic device can determine the habitual area touched by the user for different applications, and can reduce the global touch sampling rate and increase the touch sampling rate of the habitual area. The method can improve the touch sensitivity of the touch screen without excessively consuming computing resources of the electronic device, thereby improving the touch experience of the user.
第一方面,本申请提供一种触控采样率调节方法。该方法可以应用于设置有触摸屏的电子设备。该方法包括:获取第一区域信息;基于所述第一区域信息提高第一区域的触控采样率;所述第一区域为所述触摸屏的局部区域;所述触控采样率为针对所述触摸屏的触控信号的采样率。In a first aspect, the present application provides a method for adjusting a touch sampling rate. The method can be applied to an electronic device provided with a touch screen. The method includes: acquiring first area information; increasing the touch sampling rate of the first area based on the first area information; the first area is a local area of the touch screen; the touch sampling rate is specific to the The sampling rate of the touch signal of the touch screen.
在本申请提供的方案中,电子设备可以获取第一区域信息,并基于第一区域信息来提高第一区域的触控采样率。可理解,电子设备提高第一区域的触控采样率后,第一区域的触控灵敏度会提高,从而提高用户触摸第一区域时的触控体验。In the solution provided in this application, the electronic device may acquire the first area information, and increase the touch sampling rate of the first area based on the first area information. It can be understood that after the electronic device increases the touch sampling rate of the first area, the touch sensitivity of the first area will increase, thereby improving the touch experience of the user when touching the first area.
在本申请的一些实施例中,电子设备可以基于第一应用的应用标识来获取第一区域信息。例如,电子设备响应于作用于第一应用的应用图标的用户操作,可以获取第一应用的应用标识,从而获取第一区域信息。在本申请的一些实施例中,第一应用的应用标识用于唯一标识第一应用。应用标识可以用于唯一标识应用。示例性的,应用标识可以为应用的 包名。In some embodiments of the present application, the electronic device may acquire the first area information based on the application identifier of the first application. For example, the electronic device may acquire the application identifier of the first application in response to a user operation acting on the application icon of the first application, thereby acquiring the first area information. In some embodiments of the present application, the application identifier of the first application is used to uniquely identify the first application. Application identifiers can be used to uniquely identify applications. Exemplarily, the application identifier may be the package name of the application.
在本申请的一些实施例中,电子设备可以基于表征第一界面的信息来获取第一区域信息。例如,电子设备响应于作用于某一控件的用户操作,可以获取表征第一界面的信息,显示第一界面,从而获取第一区域信息。在本申请的一些实施例中,表征第一界面的信息可以用于标识第一界面。可理解,表征第一界面的信息可以包括该第一界面特有的控件id和特有的文字信息。In some embodiments of the present application, the electronic device may acquire the first area information based on the information characterizing the first interface. For example, in response to a user operation acting on a certain control, the electronic device may acquire information representing a first interface and display the first interface, thereby acquiring first area information. In some embodiments of the present application, the information characterizing the first interface may be used to identify the first interface. It can be understood that the information characterizing the first interface may include a unique control id and unique text information of the first interface.
在本申请的一些实施例中,第一区域信息可以由电子设备预先与第一应用或第一界面适配时所得。例如,电子设备可以预先与第一应用或第一界面进行适配,并将适配所得的参数记录下来。电子设备可以根据该参数来获取第一区域信息。In some embodiments of the present application, the first area information may be obtained when the electronic device is pre-fitted with the first application or the first interface. For example, the electronic device may be pre-fitted with the first application or the first interface, and record parameters obtained from the adaptation. The electronic device can acquire the first area information according to the parameter.
在本申请的一些实施例中,第一区域信息还可以由电子设备调用接口所得。In some embodiments of the present application, the first area information may also be obtained by the electronic device calling an interface.
在本申请的一些实施例中,第一区域可以为触摸屏上的用户触摸的高频区域,即用户习惯触摸的区域。在这种情况下,电子设备可以不用过多耗费计算资源就可以极大提高用户的触控体验。In some embodiments of the present application, the first area may be a high-frequency area touched by the user on the touch screen, that is, an area that the user is used to touching. In this case, the electronic device can greatly improve the user's touch experience without consuming too much computing resources.
在本申请的一些实施例中,第一区域信息可以包括第一区域的位置和尺寸。In some embodiments of the present application, the first area information may include the position and size of the first area.
结合第一方面,在第一方面的一种可能的实现方式中,所述获取第一区域信息,具体包括:基于所述电子设备与第一应用或第一界面适配时记录的参数,获取所述第一区域信息;所述参数包括所述第一区域的位置和尺寸。With reference to the first aspect, in a possible implementation manner of the first aspect, the acquiring the first area information specifically includes: based on the parameters recorded when the electronic device is adapted to the first application or the first interface, acquiring The first area information; the parameters include the position and size of the first area.
在本申请提供的方案中,在获取第一区域信息之前,电子设备可以与第一应用或第一界面进行适配,并记录适配所得的参数。情况一:电子设备可以与第一应用适配(例如,电子设备可以与第一应用的应用标识适配),并获取用户在使用第一应用时触摸的高频区域的相关参数(例如,位置、尺寸等)。情况二:电子设备可以与第一界面进行适配(即电子设备可以与表征第一界面的信息适配),并获取电子设备显示第一界面时,用户触摸的高频区域的相关参数(例如,位置、尺寸等)。可理解,电子设备可以通过提前适配来记录用户触摸的高频区域,即用户习惯触摸的区域。而在后续过程中,电子设备可以提高该区域的触控采样率,相比于提升整个触摸屏区域的触控采样率,这种方式可以在提升用户触控体验的情况下耗费更少的计算资源。In the solution provided by the present application, before obtaining the first area information, the electronic device may perform adaptation with the first application or the first interface, and record the parameters obtained from the adaptation. Case 1: The electronic device can be adapted to the first application (for example, the electronic device can be adapted to the application identifier of the first application), and obtain relevant parameters of the high-frequency area touched by the user when using the first application (for example, the position , size, etc.). Case 2: The electronic device can be adapted to the first interface (that is, the electronic device can be adapted to the information characterizing the first interface), and obtain relevant parameters of the high-frequency area touched by the user when the electronic device displays the first interface (for example, , location, size, etc.). It can be understood that the electronic device can record the high-frequency area touched by the user through advance adaptation, that is, the area that the user is used to touching. In the follow-up process, the electronic device can increase the touch sampling rate of this area. Compared with increasing the touch sampling rate of the entire touch screen area, this method can consume less computing resources while improving the user's touch experience. .
在本申请的一些实施例中,电子设备可以与一个或多个应用进行适配,并获取用户在使用该一个或多个应用时触摸的高频区域的相关参数(例如,位置、尺寸等)。也就是说,电子设备采用这种方式进行适配,可以针对每一个应用得到相应的局部区域。例如,电子设备可以针对第一应用得到第一区域的相关参数。在这种情况下,电子设备显示第一应用的不同界面时,均提高第一区域的触控采样率。In some embodiments of the present application, the electronic device may be adapted to one or more applications, and obtain relevant parameters (for example, position, size, etc.) of the high-frequency area touched by the user when using the one or more applications . That is to say, electronic equipment is adapted in this way, and a corresponding local area can be obtained for each application. For example, the electronic device may obtain relevant parameters of the first area for the first application. In this case, when the electronic device displays different interfaces of the first application, the touch sampling rate of the first area is increased.
在本申请的一些实施例中,电子设备可以与不同用户界面进行适配,并获取电子设备在显示该不同用户界面时,用户触摸的高频区域的相关参数(例如,位置、尺寸等)。也就是说,电子设备采用这种方式进行适配,可以针对每一个界面得到相应的局部区域。例如,电子设备可以针对第一界面得到第一区域的相关参数。在这种情况下,电子设备显示第一应用的不同的界面时,可以提高不同区域的触控采样率。In some embodiments of the present application, the electronic device can be adapted to different user interfaces, and obtain relevant parameters (eg, position, size, etc.) of the high-frequency area touched by the user when the electronic device displays the different user interfaces. That is to say, the electronic device is adapted in this way, and a corresponding local area can be obtained for each interface. For example, the electronic device may obtain related parameters of the first area with respect to the first interface. In this case, when the electronic device displays different interfaces of the first application, the touch sampling rate of different areas may be increased.
结合第一方面,在第一方面的一种可能的实现方式中,所述电子设备与第一应用或第一界面适配时记录的参数包括:基于所述第一应用的控件信息,记录的所述第一应用中的控件所在区域的位置和尺寸;或者,基于所述第一界面的控件信息,记录的所述第一界面中的控件所在区域的位置和尺寸。With reference to the first aspect, in a possible implementation manner of the first aspect, the parameters recorded when the electronic device is adapted to the first application or the first interface include: based on the control information of the first application, the recorded The position and size of the area where the control is located in the first application; or, based on the control information of the first interface, the recorded position and size of the area where the control is located in the first interface.
在本申请提供的方案中,电子设备可以根据控件信息来确定第一区域的位置和尺寸。可理解,控件所对应的触摸屏上的区域很可能为用户触摸的高频区域。电子设备与第一应用或第一界面适配时,可以根据这种方式来确定第一区域的位置和尺寸。通过这种方法,电子设备提高第一区域的触控采样率后,第一区域的触控灵敏度会提高,从而提高用户触摸第一区域时的触控体验。In the solution provided by the present application, the electronic device may determine the position and size of the first area according to the control information. It can be understood that the area on the touch screen corresponding to the control is likely to be a high-frequency area touched by the user. When the electronic device is adapted to the first application or the first interface, the position and size of the first area can be determined according to this method. In this way, after the electronic device increases the touch sampling rate of the first area, the touch sensitivity of the first area will increase, thereby improving the touch experience of the user when touching the first area.
结合第一方面,在第一方面的一种可能的实现方式中,所述获取第一区域信息之前,所述方法还包括:显示所述第一应用的用户界面或所述第一界面,记录时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在区域的位置和尺寸;所述获取第一区域信息,具体包括:根据所述时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在区域的位置和尺寸,获取所述第一区域信息。With reference to the first aspect, in a possible implementation manner of the first aspect, before the acquiring the first area information, the method further includes: displaying the user interface of the first application or the first interface, recording The position and size of the area where the touch sensing point is located corresponding to the touch signal whose change times are greater than the first threshold within the time T1; the acquiring the first area information specifically includes: according to the change times within the time T1 being greater than the first threshold The position and size of the area where the touch sensing point corresponding to the touch signal is located, and the first area information is obtained.
在本申请提供的方案中,电子设备可以学习用户的触控习惯。情况一:电子设备可以显示第一应用的用户界面,并扫描所述触摸屏的触控感应点,获取所述触控感应点处的触控信号;电子设备还可以记录时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点的位置。情况二:电子设备可以显示第一界面,并扫描所述触摸屏的触控感应点,获取所述触控感应点处的触控信号;电子设备还可以记录时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点的位置。可理解,对于上述两种情况而言,该时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在的区域即为第一区域。通过这种方法,电子设备可以寻找用户触摸的高频区域并将其作为第一区域。因此,电子设备提高第一区域的触控采样率后,第一区域的触控灵敏度会提高,从而可以极大提高用户触摸第一区域时的触控体验。In the solution provided by this application, the electronic device can learn the user's touch habit. Situation 1: The electronic device can display the user interface of the first application, and scan the touch sensing point of the touch screen to obtain the touch signal at the touch sensing point; the electronic device can also record that the number of changes within the time T1 is greater than the first The position of the touch sensing point corresponding to the touch signal of a threshold value. Situation 2: the electronic device can display the first interface, and scan the touch sensing point of the touch screen to obtain the touch signal at the touch sensing point; The position of the touch sensing point corresponding to the touch signal. It can be understood that, for the above two cases, the area where the touch sensing point corresponding to the touch signal whose change times are greater than the first threshold within the time T1 is located is the first area. Through this method, the electronic device can find the high-frequency area touched by the user and use it as the first area. Therefore, after the electronic device increases the touch sampling rate of the first area, the touch sensitivity of the first area will increase, thereby greatly improving the user's touch experience when touching the first area.
在本申请的一些实施例中,电子设备可以更新第一区域。也就是说,电子设备可以重复多次扫描触摸屏上的触控感应点,来获取符合用户的触控习惯的第一区域。这就使得用户的触控习惯发生变化时,电子设备也能及时调整。In some embodiments of the present application, the electronic device may update the first area. That is to say, the electronic device can repeatedly scan the touch sensing points on the touch screen to obtain the first area that conforms to the user's touch habit. This enables the electronic device to be adjusted in time when the user's touch habit changes.
结合第一方面,在第一方面的一种可能的实现方式中,所述第一区域信息为用户针对所述第一应用或所述第一界面设置的所述第一区域的相关信息;所述第一区域的相关信息包括所述第一区域的位置和尺寸。With reference to the first aspect, in a possible implementation manner of the first aspect, the first area information is information related to the first area set by the user for the first application or the first interface; The relevant information of the first area includes the position and size of the first area.
在本申请提供的方案中,用户可以自行设置第一区域。例如,用户可以在设置项中进行选择。再例如,用户可以在使用某一应用时实时设置。通过这种方式,可以更好满足用户需求,使得用户能够根据自己的触控习惯来选择需要提高触控采样率的区域。In the solution provided by this application, the user can set the first area by himself. For example, users can choose among setting items. For another example, the user can set in real time when using a certain application. In this way, the needs of users can be better met, so that users can select the area where the touch sampling rate needs to be increased according to their own touch habits.
结合第一方面,在第一方面的一种可能的实现方式中,所述第一界面为第一应用的用 户界面。With reference to the first aspect, in a possible implementation manner of the first aspect, the first interface is a user interface of the first application.
在本申请提供的方案中,第一界面可以为第一应用的用户界面。也就是说,电子设备显示第一应用的不同用户界面时,可以根据界面来提高不同区域的触控采样率。若电子设备显示第一应用的不同用户界面时,用户习惯触摸的区域有所区别,那么采用上述方法可以使得用户获得更好的触控体验。In the solution provided by the present application, the first interface may be a user interface of the first application. That is to say, when the electronic device displays different user interfaces of the first application, the touch sampling rate of different regions may be increased according to the interfaces. If the electronic device displays different user interfaces of the first application, the areas that the user is used to touch are different, then the above method can enable the user to obtain a better touch experience.
结合第一方面,在第一方面的一种可能的实现方式中,所述获取第一区域信息之前,所述方法还包括:接收第一指令;所述第一指令用于开启白名单;接收第二指令;所述第二指令用于设置所述白名单中的应用;根据所述第一应用的应用标识,确定所述第一应用为所述白名单中的应用。With reference to the first aspect, in a possible implementation manner of the first aspect, before the acquiring the first area information, the method further includes: receiving a first instruction; the first instruction is used to enable a whitelist; receiving A second instruction; the second instruction is used to set an application in the whitelist; and according to the application identifier of the first application, determine that the first application is an application in the whitelist.
在本申请提供的方案中,电子设备可以通过设置白名单来选择可以提高局部触控采样率的应用。也就是说,电子设备可以针对特定应用(例如,游戏类应用)提高局部触控采样率,使得用户获得更好的触控体验。In the solution provided by this application, the electronic device can select an application that can increase the local touch sampling rate by setting a white list. That is to say, the electronic device can increase the partial touch sampling rate for a specific application (for example, a game application), so that the user can obtain a better touch experience.
在本申请的一些实施例中,用户可以根据自己的习惯和应用的使用情况来自行设置白名单。In some embodiments of the present application, the user can set the white list by himself according to his own habits and application usage.
结合第一方面,在第一方面的一种可能的实现方式中,所述基于所述第一区域信息提高第一区域的触控采样率之后,所述方法还包括:降低所述触摸屏的全局触控采样率;所述全局触控采样率为所述电子设备每秒钟扫描所述触摸屏中的全部触控感应点的次数;其中,所述第一区域的触控采样率高于所述全局触控采样率。With reference to the first aspect, in a possible implementation manner of the first aspect, after increasing the touch sampling rate of the first area based on the first area information, the method further includes: reducing the overall Touch sampling rate; the global touch sampling rate is the number of times the electronic device scans all touch sensing points in the touch screen per second; wherein, the touch sampling rate of the first area is higher than the Global touch sampling rate.
在本申请提供的方案中,电子设备在提高第一区域的触控采样率的同时,也可以降低全局触控采样率。通过这种方式,电子设备可以降低系统耗电,并节约计算资源。可理解,电子设备可以将第一区域的触控采样率保持在相对较高水平,使得电子设备降低全局触控采样率之后,仍能给用户良好的触控体验。In the solution provided by the present application, while increasing the touch sampling rate of the first region, the electronic device can also reduce the global touch sampling rate. In this way, electronic devices can reduce system power consumption and save computing resources. It can be understood that the electronic device can keep the touch sampling rate of the first area at a relatively high level, so that the electronic device can still provide a user with a good touch experience after reducing the global touch sampling rate.
结合第一方面,在第一方面的一种可能的实现方式中,所述基于所述第一区域信息提高第一区域的触控采样率之后,所述方法还包括:降低所述第一区域的互补区域的触控采样率;所述互补区域为所述触摸屏中除所述第一区域外的区域。With reference to the first aspect, in a possible implementation manner of the first aspect, after increasing the touch sampling rate of the first area based on the first area information, the method further includes: reducing the touch sampling rate of the first area The touch sampling rate of the complementary area; the complementary area is an area of the touch screen other than the first area.
在本申请提供的方案中,电子设备在提高第一区域的触控采样率的同时,也可以降低互补区域的触控采样率。通过这种方式,电子设备可以降低系统耗电,并节约计算资源。可理解,电子设备可以将第一区域的触控采样率保持在相对较高水平,使得电子设备降低互补区域的触控采样率之后,仍能给用户良好的触控体验。In the solution provided by the present application, while increasing the touch sampling rate of the first area, the electronic device can also reduce the touch sampling rate of the complementary area. In this way, electronic devices can reduce system power consumption and save computing resources. It can be understood that the electronic device can maintain the touch sampling rate of the first area at a relatively high level, so that the electronic device can still provide users with a good touch experience after reducing the touch sampling rate of the complementary area.
第二方面,本申请提供一种电子设备,包括触摸屏、存储器、一个或多个处理器,其特征在于,所述存储器用于存储计算机程序;所述处理器用于调用所述计算机程序,使得电子设备执行:获取第一区域信息;基于所述第一区域信息提高第一区域的触控采样率;所述第一区域为所述触摸屏的局部区域;所述触控采样率为针对所述触摸屏的触控信号的采样率。In a second aspect, the present application provides an electronic device, including a touch screen, a memory, and one or more processors, wherein the memory is used to store a computer program; the processor is used to call the computer program, so that the electronic Execution by the device: acquiring first area information; increasing the touch sampling rate of the first area based on the first area information; the first area is a local area of the touch screen; the touch sampling rate is specific to the touch screen The sampling rate of the touch signal.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于调用所述 计算机程序,使得电子设备执行基于所述获取第一区域信息,具体用于调用所述计算机程序,使得电子设备执行:基于所述电子设备与第一应用或第一界面适配时记录的参数,获取所述第一区域信息;所述参数包括所述第一区域的位置和尺寸。With reference to the second aspect, in a possible implementation manner of the second aspect, the processor is configured to call the computer program, so that the electronic device executes the program based on the acquiring the first area information, and is specifically used to call the computer program. The computer program, so that the electronic device executes: based on the parameters recorded when the electronic device is adapted to the first application or the first interface, obtain the information of the first area; the parameters include the position and size of the first area .
结合第二方面,在第二方面的一种可能的实现方式中,所述电子设备与第一应用或第一界面适配时记录的参数包括:基于所述第一应用的控件信息,记录的所述第一应用中的控件所在区域的位置和尺寸;或者,基于所述第一界面的控件信息,记录的所述第一界面中的控件所在区域的位置和尺寸。With reference to the second aspect, in a possible implementation manner of the second aspect, the parameters recorded when the electronic device is adapted to the first application or the first interface include: based on the control information of the first application, the recorded The position and size of the area where the control is located in the first application; or, based on the control information of the first interface, the recorded position and size of the area where the control is located in the first interface.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于调用所述计算机程序,使得电子设备执行获取第一区域信息之前,还用于调用所述计算机程序,使得电子设备执行:显示所述第一应用的用户界面或所述第一界面,记录时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在区域的位置和尺寸。所述处理器,在用于调用所述计算机程序,使得电子设备执行获取第一区域信息时,具体用于调用所述计算机程序,使得电子设备执行:根据所述时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在区域的位置和尺寸,获取所述第一区域信息。With reference to the second aspect, in a possible implementation manner of the second aspect, the processor is further configured to invoke the computer program before invoking the computer program so that the electronic device executes acquiring the first area information. A program, so that the electronic device executes: displaying the user interface of the first application or the first interface, and recording the position and size of the area where the touch sensing point corresponding to the touch signal whose number of times of change is greater than the first threshold within time T1 . When the processor is used to call the computer program to make the electronic device execute the acquisition of the first area information, it is specifically used to call the computer program to make the electronic device execute: according to the number of changes within the time T1 is greater than the first The position and size of the area where the touch sensing point is located corresponding to the touch signal of the threshold value is used to obtain the first area information.
结合第二方面,在第二方面的一种可能的实现方式中,所述第一区域信息为用户针对所述第一应用或所述第一界面设置的所述第一区域的相关信息;所述第一区域的相关信息包括所述第一区域的位置和尺寸。With reference to the second aspect, in a possible implementation manner of the second aspect, the first area information is information related to the first area set by the user for the first application or the first interface; The relevant information of the first area includes the position and size of the first area.
结合第二方面,在第二方面的一种可能的实现方式中,所述第一界面为第一应用的用户界面。With reference to the second aspect, in a possible implementation manner of the second aspect, the first interface is a user interface of the first application.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于调用所述计算机程序,使得电子设备执行获取第一区域信息之前,还用于调用所述计算机程序,使得电子设备执行:接收第一指令;所述第一指令用于开启白名单;接收第二指令;所述第二指令用于设置所述白名单中的应用;根据所述第一应用的应用标识,确定所述第一应用为所述白名单中的应用。With reference to the second aspect, in a possible implementation manner of the second aspect, the processor is further configured to invoke the computer program before invoking the computer program so that the electronic device executes acquiring the first area information. A program, so that the electronic device executes: receiving a first instruction; the first instruction is used to open a whitelist; receiving a second instruction; the second instruction is used to set an application in the whitelist; according to the first application The application identifier of the first application is determined as an application in the white list.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于调用所述计算机程序,使得电子设备执行基于所述第一区域信息提高第一区域的触控采样率之后,还用于调用所述计算机程序,使得电子设备执行:降低所述触摸屏的全局触控采样率;所述全局触控采样率为所述电子设备每秒钟扫描所述触摸屏中的全部触控感应点的次数;其中,所述第一区域的触控采样率高于所述全局触控采样率。With reference to the second aspect, in a possible implementation manner of the second aspect, the processor is configured to call the computer program, so that the electronic device performs a touch control of the first area based on the first area information. After the sampling rate, it is also used to call the computer program, so that the electronic device executes: reducing the global touch sampling rate of the touch screen; the global touch sampling rate scans the touch screen in the electronic device every second The number of times of all touch sensing points; wherein, the touch sampling rate of the first area is higher than the global touch sampling rate.
结合第二方面,在第二方面的一种可能的实现方式中,所述处理器,在用于调用所述计算机程序,使得电子设备执行基于所述第一区域信息提高第一区域的触控采样率之后,还用于调用所述计算机程序,使得电子设备执行:降低所述第一区域的互补区域的触控采样率;所述互补区域为所述触摸屏中除所述第一区域外的区域。With reference to the second aspect, in a possible implementation manner of the second aspect, the processor is configured to call the computer program, so that the electronic device performs a touch control of the first area based on the first area information. After the sampling rate, it is also used to call the computer program, so that the electronic device executes: reducing the touch sampling rate of the complementary area of the first area; the complementary area is a part of the touch screen other than the first area area.
第三方面,本申请提供一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得上述电子设备执行上述第一方面中任一种可能的实现方式。In a third aspect, the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are run on an electronic device, cause the electronic device to execute any possible implementation manner in the first aspect above.
第四方面,本申请实施例提供一种芯片,该芯片应用于电子设备,该芯片包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行上述第一方面中任一种可能的实现方式。In a fourth aspect, an embodiment of the present application provides a chip, the chip is applied to an electronic device, and the chip includes one or more processors, and the processor is used to invoke computer instructions so that the electronic device executes any one of the above first aspects a possible implementation.
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当上述计算机程序产品在设备上运行时,使得上述电子设备执行上述第一方面中任一种可能的实现方式。In a fifth aspect, an embodiment of the present application provides a computer program product including instructions, which, when the computer program product is run on a device, cause the electronic device to execute any possible implementation manner in the first aspect above.
可以理解地,上述第二方面提供的电子设备、第三方面提供的计算机存储介质、第四方面提供的芯片、第五方面提供的计算机程序产品均用于执行上述第一方面中任一种可能的实现方式。因此,其所能达到的有益效果可参考上述第一方面中任一种可能的实现方式的有益效果,此处不再赘述。It can be understood that the electronic device provided in the second aspect above, the computer storage medium provided in the third aspect, the chip provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to implement any possible way of realization. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects of any possible implementation manner in the first aspect above, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种轴坐标式感应单元矩阵的原理图;FIG. 1 is a schematic diagram of an axis-coordinate sensing unit matrix provided in an embodiment of the present application;
图2A-图2B为本申请实施例提供的一种触摸屏的示意图;2A-2B are schematic diagrams of a touch screen provided by the embodiment of the present application;
图3为本申请实施例提供的又一种触摸屏的示意图;FIG. 3 is a schematic diagram of another touch screen provided by the embodiment of the present application;
图4为本申请实施例提供的一种电子设备100的硬件结构示意图;FIG. 4 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application;
图5为本申请实施例提供的一种电子设备100的软件结构示意图;FIG. 5 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;
图6A-图6G为本申请实施例提供的一组用户界面示意图;6A-6G are schematic diagrams of a set of user interfaces provided by the embodiment of the present application;
图7为本申请实施例提供的又一种触摸屏的示意图;FIG. 7 is a schematic diagram of another touch screen provided by the embodiment of the present application;
图8A-图8D为本申请实施例提供的一组用户界面示意图;8A-8D are schematic diagrams of a set of user interfaces provided by the embodiment of the present application;
图9A-图9F为本申请实施例提供的一组用户界面示意图;FIG. 9A-FIG. 9F are schematic diagrams of a set of user interfaces provided by the embodiment of the present application;
图10为本申请实施例提供的一种用户界面的示意图;FIG. 10 is a schematic diagram of a user interface provided by an embodiment of the present application;
图11为本申请实施例提供的一种触控采样率调节方法的流程图。FIG. 11 is a flowchart of a method for adjusting a touch sampling rate provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in the text is only a description of associated objects The association relationship indicates that there may be three kinds of relationships, for example, A and/or B, which may indicate: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.
应当理解,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be understood that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
本申请涉及终端技术领域,为了便于理解本申请提供的方法,下面对终端技术领域的一些术语进行介绍。This application relates to the field of terminal technology. In order to facilitate the understanding of the method provided by this application, some terms in the field of terminal technology are introduced below.
1、触摸屏1. Touch screen
近些年来,移动互联网发展迅速。随着终端技术不断发展,手机等移动终端设备的性能不断提升。人们不再满足于简单地将互联网上的内容照搬至终端设备,而是越来越关注这些终端设备在界面、操作以及使用情景等方面的用户体验。也就是说,人们越来越关注用户与终端设备之间的交互。In recent years, the mobile Internet has developed rapidly. With the continuous development of terminal technology, the performance of mobile terminal equipment such as mobile phones is continuously improved. People are no longer satisfied with simply copying the content on the Internet to terminal devices, but are paying more and more attention to the user experience of these terminal devices in terms of interface, operation and usage scenarios. That is to say, people pay more and more attention to the interaction between the user and the terminal equipment.
触摸屏的应用为用户与终端设备之间的交互提供了一种新的方式,极大提高了用户体验。The application of the touch screen provides a new way for the interaction between the user and the terminal device, which greatly improves the user experience.
触摸屏主要分为两种:电阻式触摸屏和电容式触摸屏。早期使用电阻式触摸屏比较多,后来发明了电容式触摸屏。目前,电阻式触摸屏应用较少,电容式触摸屏应用较多。There are two main types of touch screens: resistive touch screens and capacitive touch screens. In the early days, resistive touch screens were used more, and capacitive touch screens were invented later. At present, the application of resistive touch screen is less, and the application of capacitive touch screen is more.
2、电容式触摸屏2. Capacitive touch screen
电容式触摸屏主要分为两种类型:表面电容式触摸屏和投射电容屏式触摸屏。其中,投射电容式触摸屏会更多地用于手机、平板电脑、车载电脑等终端设备。Capacitive touch screens are mainly divided into two types: surface capacitive touch screens and projected capacitive touch screens. Among them, projected capacitive touch screens will be more used in terminal equipment such as mobile phones, tablet computers, and vehicle-mounted computers.
3、投射电容式触摸屏3. Projected capacitive touch screen
投射电容式触摸屏可以采用多层氧化铟锡(ITO)层。这些ITO层经过处理形成了轴坐标式感应单元矩阵。如图1所示,轴坐标式感应单元矩阵可以包括X轴滑条和Y轴滑条。X轴滑条可以由多个纵向电极组成。纵向电极可以由多个列传感器(感应单元)组成。Y轴滑条可以由多个横向电极组成。横向电极可以由多个行传感器(感应单元)组成。Projected capacitive touch screens can employ multiple layers of indium tin oxide (ITO). These ITO layers are processed to form a matrix of axial coordinate sensing cells. As shown in FIG. 1 , the axis-coordinate sensing unit matrix may include an X-axis slider and a Y-axis slider. The X-axis slider can consist of multiple longitudinal electrodes. The longitudinal electrodes may consist of multiple columns of sensors (sensing units). The Y-axis slider can consist of multiple horizontal electrodes. The lateral electrodes may consist of multiple row sensors (sensing units).
如图2A所示,投射电容式触摸屏布满了轴坐标式感应单元矩阵。该轴坐标式感应单元矩阵中的轴向电极和纵向电极相互交叉。As shown in FIG. 2A , the projected capacitive touch screen is covered with a matrix of axial coordinate sensing units. The axial electrodes and the longitudinal electrodes in the axial coordinate induction unit matrix intersect with each other.
可理解,投射电容式触摸屏中轴向电极和纵向电极交叉的地方会形成电容感应点。如图2B所示,投射电容式触摸屏中可以包括多个电容感应点。It can be understood that in the projected capacitive touch screen, capacitive sensing points will be formed where the axial electrodes and the longitudinal electrodes intersect. As shown in FIG. 2B , a projected capacitive touch screen may include multiple capacitive sensing points.
当用户的手指触摸到投射电容式触摸屏时,影响了触摸点附近的电极的耦合,进而改变了电极之间的电容量。也就是说,电容感应点处的电容会发生变化。投射电容式触摸屏可以根据电容变化数据,计算出触摸点的坐标。When the user's finger touches the projected capacitive touch screen, it affects the coupling of the electrodes near the touch point, thereby changing the capacitance between the electrodes. That is, the capacitance at the capacitive sensing point changes. The projected capacitive touch screen can calculate the coordinates of the touch point according to the capacitance change data.
示例性的,投射电容式触摸屏的X轴滑条可以由M个纵向电极组成,而其Y轴滑条可以由N个横向电极组成。因此,该投射电容式触摸屏有M*N个电容感应点。Exemplarily, the X-axis slider of the projected capacitive touch screen can be composed of M vertical electrodes, and the Y-axis slider can be composed of N horizontal electrodes. Therefore, the projected capacitive touch screen has M*N capacitive sensing points.
对于投射电容式触摸屏而言,可以通过电容感应点处的电容变化数据来判断是否存在触摸操作,还可以在存在触摸操作的情况下确定触摸点的坐标。For a projected capacitive touch screen, whether there is a touch operation can be judged by the capacitance change data at the capacitive sensing point, and the coordinates of the touch point can also be determined if there is a touch operation.
4、触控信号4. Touch signal
可理解,触摸屏可以扫描其包含的触控感应点,并根据这些触控感应点的感应数据来确定触摸点的位置,即用户触摸位置。其中,触摸屏获取的触控感应点的感应数据就是触控信号。而触摸屏获取触控感应点的感应数据的过程即为采集触控信号的过程。It can be understood that the touch screen can scan the touch sensing points contained therein, and determine the position of the touch point, that is, the user's touch position, according to the sensing data of these touch sensing points. Wherein, the sensing data of the touch sensing point acquired by the touch screen is the touch signal. The process of the touch screen acquiring the sensing data of the touch sensing points is the process of collecting touch signals.
(如上文提及的投射电容式触摸屏的电容感应点)(Such as the capacitive sensing point of the projected capacitive touch screen mentioned above)
示例性的,触控感应点可以为上文提及的投射电容式触摸屏的电容感应点。该电容感应点处的电容变化数据就是该投射电容式触摸屏采集的触控信号。可理解,投射电容式触摸屏扫描电容感应点并获取电容变化数据的过程即为采集触控信号的过程。Exemplarily, the touch sensing point may be the capacitive sensing point of the projected capacitive touch screen mentioned above. The capacitance change data at the capacitance sensing point is the touch signal collected by the projected capacitive touch screen. It can be understood that the process of scanning the capacitive sensing points and obtaining the capacitance change data on the projected capacitive touch screen is the process of collecting touch signals.
5、触控采样率5. Touch sampling rate
在本申请中,触摸屏在一秒钟内采集触控信号的次数被称为触控采样率。In this application, the number of times the touch screen collects touch signals within one second is referred to as the touch sampling rate.
可理解,触控采样率越高,触摸屏在一段时间内确定用户触摸位置的次数就越多。可理解,在一段时间内,触摸屏可以多次判断是否存在作用于触摸屏的触摸操作,以及在存在作用于触摸屏的触摸操作的情况下确定触摸点的坐标。也就意味着,触控采样率越高,触摸屏就越能及时响应用户的触摸操作。也就是说,触控采样率越高,触摸屏的触控灵敏程度越高。通俗来讲,触控采样率越高,在用户的使用过程中越跟手,用户体验越好。Understandably, the higher the touch sampling rate is, the more times the touch screen determines the user's touch position within a period of time. It can be understood that within a period of time, the touch screen may determine whether there is a touch operation on the touch screen multiple times, and determine the coordinates of the touch point if there is a touch operation on the touch screen. That is to say, the higher the touch sampling rate, the more timely the touch screen can respond to the user's touch operation. In other words, the higher the touch sampling rate, the higher the touch sensitivity of the touch screen. Generally speaking, the higher the touch sampling rate, the better the user experience will be.
尤其是用户对触摸屏存在连续触摸操作(例如,用户用手指在屏幕上连续滑动等)时,触控采样率越高,触摸屏越能及时确定并更新触摸点的坐标。相应的,设置有该触摸屏的电子设备就越能及时基于触摸点坐标执行相应操作。Especially when the user performs continuous touch operations on the touch screen (for example, the user continuously slides with a finger on the screen, etc.), the higher the touch sampling rate, the more timely the touch screen can determine and update the coordinates of the touch point. Correspondingly, the electronic device provided with the touch screen can perform corresponding operations based on the touch point coordinates in a timely manner.
然而,受计算能力的限制,电子设备提高触控采样率的能力有限。因此,虽然电子设备提高了触控采样率,但是很可能带来的用户感受的提升并不高。另外,提高触控采样率会加大电子设备的功耗,很可能降低用户体验。However, due to the limitation of computing power, the ability of electronic devices to increase the touch sampling rate is limited. Therefore, although the touch sampling rate of the electronic device has been increased, it is likely that the improvement of the user experience is not high. In addition, increasing the touch sampling rate will increase the power consumption of electronic devices, which may degrade user experience.
本申请提供了一种触控采样率调节方法及相关装置。其中,该方法可以应用于设置有触摸屏的电子设备。该电子设备可以针对不同的应用来确定用户触摸的惯常区域,并且可以降低全局的触控采样率,而提高该惯常区域的触控采样率。该方法在不过度耗费电子设备计算资源的情况下,可以提高触摸屏的触控灵敏度,从而提升用户的触控感受。The present application provides a touch sampling rate adjustment method and a related device. Wherein, the method can be applied to an electronic device provided with a touch screen. The electronic device can determine the habitual area touched by the user for different applications, and can reduce the global touch sampling rate and increase the touch sampling rate of the habitual area. The method can improve the touch sensitivity of the touch screen without excessively consuming computing resources of the electronic device, thereby improving the touch experience of the user.
可理解,此处所提及的触摸屏,以及后文提及的触摸屏,可以为包括触控感应点的触摸屏。在本申请的一些实施例中,该触摸屏可以为投射电容式触摸屏。It can be understood that the touch screen mentioned here and the touch screen mentioned later may be a touch screen including touch sensing points. In some embodiments of the present application, the touch screen may be a projected capacitive touch screen.
在此先介绍惯常区域、全局触控采样率、局部触控采样率和互补触控采样率的含义。Here we first introduce the meanings of customary area, global touch sampling rate, local touch sampling rate and complementary touch sampling rate.
惯常区域为电子设备的触摸屏中,用户习惯的触摸区域。即用户触摸频率较高的区域。可理解,后文会介绍惯常区域的确定方法,此处不展开说明。The habitual area is a user's habitual touch area in the touch screen of the electronic device. That is, the area that the user touches more frequently. It can be understood that the method for determining the usual area will be introduced later, and no further description will be given here.
全局触控采样率为全局的触控采样率。即整个触摸屏的触控采样率。也就是说,电子设备每秒钟扫描整个触摸屏所包括的触控感应点的次数为全局触控采样率。Global Touch Sampling Rate The global touch sampling rate. That is, the touch sampling rate of the entire touch screen. That is to say, the number of times the electronic device scans the touch sensing points included in the entire touch screen per second is the global touch sampling rate.
局部触控采样率为触摸屏的局部区域的触控采样率。也就是说,电子设备每秒钟扫描该局部区域所包括的触控感应点的次数为局部触控采样率。可理解,该局部区域可以为上文提及的惯常区域。The local touch sampling rate is a touch sampling rate of a local area of the touch screen. That is to say, the number of times the electronic device scans the touch sensing points included in the local area per second is the local touch sampling rate. It can be understood that the local area may be the conventional area mentioned above.
可理解,互补触控采样率是相对于局部触控采样率而言的一个概念。局部触控采样率为电子设备的触摸屏的局部区域的触控采样率。互补触控采样率为电子设备的触摸屏中除开该局部区域的其他区域的触控采样率。可理解,可以将该除开该局部区域的其他区域记为互补区域。It can be understood that the complementary touch sampling rate is a concept relative to the local touch sampling rate. The local touch sampling rate is a touch sampling rate of a local area of the touch screen of the electronic device. The complementary touch sampling rate is the touch sampling rate of other areas in the touch screen of the electronic device except the local area. It can be understood that other areas except the partial area can be recorded as complementary areas.
如图3所示,图3为本申请实施例提供的一种触摸屏的示意图,触摸屏可以包括多个触控感应点(例如,电容感应点)。可理解,若局部触控采样率为区域Q的触控采样率,则互补触控采样率为触摸屏中除区域Q外的其他区域的触控采样率。也就是说,电子设备采集触摸屏中除区域Q外的其他区域所包括的触控感应点的感应数据的频率为互补触控采 样率。As shown in FIG. 3 , which is a schematic diagram of a touch screen provided by an embodiment of the present application, the touch screen may include a plurality of touch sensing points (for example, capacitive sensing points). It can be understood that if the local touch sampling rate is the touch sampling rate of the area Q, then the complementary touch sampling rate is the touch sampling rate of other areas in the touch screen except the area Q. That is to say, the frequency at which the electronic device collects the sensing data of the touch sensing points included in other areas of the touch screen except the area Q is the complementary touch sampling rate.
下面介绍本申请实施例涉及的装置。The devices involved in the embodiments of the present application are introduced below.
图4为本申请实施例提供的一种电子设备100的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(Universal Serial Bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(Subscriber Identification Module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber Identification Module (Subscriber Identification Module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor,AP),调制解调处理器,图形处理器(Graphics Processing unit,GPU),图像信号处理器(Image Signal Processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing unit, GPU), an image signal processor (Image Signal Processor, ISP), controller, memory, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备100,例如AR设备等。In some embodiments, processor 110 may include one or more interfaces. The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices 100, such as AR devices.
充电管理模块140用于从充电器接收充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。The charging management module 140 is configured to receive a charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device 100 through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存 储器,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input of the battery 142 and/or the charging management module 140, and supplies power for the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (Low Noise Amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(Wireless Local Area Networks,WLAN)(如无线保真(Wireless Fidelity,Wi-Fi)网络),蓝牙(Bluetooth,BT),全球导航卫星系统(Global Navigation Satellite System,GNSS),调频(Frequency Modulation,FM),近距离无线通信技术(Near Field Communication,NFC),红外技术(Infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area network (Wireless Local Area Networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (Bluetooth, BT), global navigation satellite System (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field communication technology (Near Field Communication, NFC), infrared technology (Infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD),有机发光二极管(Organic Light-Emitting Diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-Matrix Organic Light Emitting Diode的,AMOLED),柔性发光二极管(Flex Light-Emitting Diode,FLED),Mini LED,Micro LED,Micro-OLED,量子点发光二极管(Quantum Dot Light Emitting Diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diode (Organic Light-Emitting Diode, OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (Active-Matrix Organic Light Emitting Diode, AMOLED), flexible light-emitting diode (Flex Light-Emitting Diode, FLED), Mini LED, Micro LED, Micro-OLED, quantum dot light-emitting diode (Quantum Dot Light Emitting Diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现获取功能。The electronic device 100 may realize the acquisition function through an ISP, a camera 193 , a video codec, a GPU, a display screen 194 , and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传 递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像或视频。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image or video visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(Charge Coupled Device,CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像或视频信号。ISP将数字图像或视频信号输出到DSP加工处理。DSP将数字图像或视频信号转换成标准的RGB,YUV等格式的图像或视频信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。例如,在一些实施例中,电子设备100可以利用N个摄像头193获取多个曝光系数的图像,进而,在视频后处理中,电子设备100可以根据多个曝光系数的图像,通过HDR技术合成HDR图像。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element can be a charge coupled device (Charge Coupled Device, CCD) or a complementary metal oxide semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image or video signal. ISP outputs digital image or video signal to DSP for processing. DSP converts digital images or video signals into standard RGB, YUV and other formats of images or video signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1. For example, in some embodiments, the electronic device 100 can use N cameras 193 to acquire images with multiple exposure coefficients, and then, in video post-processing, the electronic device 100 can synthesize HDR images using the HDR technology based on the images with multiple exposure coefficients. image.
数字信号处理器用于处理数字信号,除了可以处理数字图像或视频信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image or video signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(Moving Picture Experts Group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in various encoding formats, for example: Moving Picture Experts Group (Moving Picture Experts Group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(Neural-Network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (Neural-Network, NN) computing processor. By referring to the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像视频播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image and video playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。电子设备100可以设置至少一个麦克风170C。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. The electronic device 100 may be provided with at least one microphone 170C.
耳机接口170D用于连接有线耳机。The earphone interface 170D is used for connecting wired earphones.
传感器模块180可以包括1个或多个传感器,这些传感器可以为相同类型或不同类型。可理解,图1所示的传感器模块180仅为一种示例性的划分方式,还可能有其他划分方式,本申请对此不作限制。The sensor module 180 may include one or more sensors, which may be of the same type or of different types. It can be understood that the sensor module 180 shown in FIG. 1 is only an exemplary division manner, and there may be other division manners, which are not limited in the present application.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备100姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100, and can be applied to applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。The distance sensor 180F is used to measure the distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
环境光传感器180L用于感知环境光亮度。The ambient light sensor 180L is used for sensing ambient light brightness.
指纹传感器180H用于获取指纹。The fingerprint sensor 180H is used to acquire fingerprints.
温度传感器180J用于检测温度。The temperature sensor 180J is used to detect temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。触摸传感器180K还可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor 180K may transmit the detected touch operation to the application processor to determine the touch event type. The touch sensor 180K can also provide visual output related to the touch operation through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
可理解,触摸传感器180K可以为触摸屏。在本申请的一些实施例中,触摸传感器180K可以设置于显示屏194上。It can be understood that the touch sensor 180K can be a touch screen. In some embodiments of the present application, the touch sensor 180K may be disposed on the display screen 194 .
在本申请的一些实施例中,触摸传感器180K可以为上文所提及的投射电容式触摸屏。In some embodiments of the present application, the touch sensor 180K may be the above-mentioned projected capacitive touch screen.
需要说明的是,本申请中所提及的电子设备100的触摸屏即为触摸传感器180K。It should be noted that the touch screen of the electronic device 100 mentioned in this application is the touch sensor 180K.
骨传导传感器180M可以获取振动信号。The bone conduction sensor 180M can acquire vibration signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
图5为本申请实施例提供的一种电子设备100的软件结构示意图。FIG. 5 is a schematic diagram of a software structure of an electronic device 100 provided by an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将系统分为四层,从上至下分别为应用程序层,应用程序框架层,运行时(Runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the system is divided into four layers, which are application program layer, application program framework layer, runtime (Runtime) and system library, and kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图5所示,应用程序包可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息、第一应用等应用程序(也可以称为应用)。As shown in FIG. 5 , the application package may include application programs (also called applications) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and first application.
应用程序框架层为应用程序层的应用程序提供应用编程接口和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interfaces and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 5, the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂 断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
运行时(Runtime)包括核心库和虚拟机。Runtime负责系统的调度和管理。Runtime (Runtime) includes the core library and virtual machine. Runtime is responsible for the scheduling and management of the system.
核心库包含两部分:一部分是编程语言(例如,java语言)需要调用的功能函数,另一部分是系统的核心库。The core library includes two parts: one part is the function function that the programming language (for example, java language) needs to call, and the other part is the core library of the system.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的编程文件(例如,java文件)执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes programming files (for example, java files) of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(Surface Manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: Surface Manager (Surface Manager), Media Library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维(2-Dimensional,2D)和三维(3-Dimensional,3D)图层的融合。The surface manager is used to manage the display subsystem, and provides fusion of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现3D图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,虚拟卡驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a virtual card driver.
下面结合一些调节触控采样率的场景,介绍本申请实施例提供的触控采样率调节方法。The method for adjusting the touch sampling rate provided by the embodiment of the present application is introduced below in combination with some scenarios of adjusting the touch sampling rate.
可理解,本申请的说明书和权利要求书及附图中的术语“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。It can be understood that the term "user interface" in the specification, claims and drawings of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the internal form of information and the user can Accepts conversions between forms. The commonly used form of user interface is the graphical user interface (graphic user interface, GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. Visual interface elements.
下面首先介绍本申请实施例提供的一些用户界面。The following first introduces some user interfaces provided by the embodiments of the present application.
图6A示例性示出了电子设备100上的用户界面610。FIG. 6A exemplarily shows a user interface 610 on the electronic device 100 .
用户界面610显示了一个放置有应用图标的页面。该页面可包括多个应用图标(例如,天气应用图标、日历应用图标、电子邮件应用图标、设置应用图标611、应用商店应用图标、便签应用图标、相册应用图标、第一应用图标612等等)。上述多个应用图标下方还可显示有页面指示符,以表明当前显示的页面与其他页面的位置关系。页面指示符的下方有多个 托盘图标(例如,拨号应用图标、信息应用图标、浏览器应用图标、相机应用图标)。托盘图标在页面切换时保持显示。 User interface 610 displays a page on which application icons are placed. The page may include multiple application icons (e.g., a weather application icon, a calendar application icon, an email application icon, a settings application icon 611, an application store application icon, a notes application icon, a photo album application icon, a first application icon 612, etc.) . A page indicator may also be displayed below the plurality of application icons to indicate the positional relationship between the currently displayed page and other pages. Below the page indicators are several tray icons (eg, Dialer app icon, Messaging app icon, Browser app icon, Camera app icon). The tray icon remains displayed across page switches.
可理解,上述应用图标的表现形式和名称仅为示例,不应视为对本申请的限制。另外,用户界面610上还可以显示其他内容,本申请对此不作限制。It can be understood that the expression forms and names of the above application icons are only examples, and should not be regarded as limitations on the present application. In addition, other content may also be displayed on the user interface 610, which is not limited in this application.
可理解,电子设备100显示用户界面610时的触控采样率为A。It can be understood that when the electronic device 100 displays the user interface 610 , the touch sampling rate is A.
可理解,触控采样率A可以包括全局触控采样率a1和局部触控采样率a2。全局触控采样率为电子设备100的整个触摸屏的触控采样率。局部触控采样率为电子设备100的触摸屏的局部区域的触控采样率。It can be understood that the touch sampling rate A may include a global touch sampling rate a1 and a local touch sampling rate a2. The global touch sampling rate is the touch sampling rate of the entire touch screen of the electronic device 100 . The local touch sampling rate is a touch sampling rate of a local area of the touch screen of the electronic device 100 .
需要说明的是,触控采样率A可以为电子设备100的触摸屏的默认触控采样率,也可以为经过用户设置的触控采样率。It should be noted that the touch sampling rate A may be a default touch sampling rate of the touch screen of the electronic device 100 , or may be a touch sampling rate set by a user.
可理解,默认触控采样率可以由技术人员根据实际需求预先设置,本申请对此不作限制。It can be understood that the default touch sampling rate can be preset by technicians according to actual needs, which is not limited in this application.
在本申请的一些实施例中,局部触控采样率a2为0。也就是说,电子设备100显示用户界面610时,其触摸屏的触控采样率为全局触控采样率a1。即电子设备100的触摸屏每次采集的触控信号包括触摸屏上所有触控感应点的感应数据。In some embodiments of the present application, the local touch sampling rate a2 is 0. That is to say, when the electronic device 100 displays the user interface 610 , the touch sampling rate of its touch screen is the global touch sampling rate a1. That is, each touch signal collected by the touch screen of the electronic device 100 includes sensing data of all touch sensing points on the touch screen.
电子设备100可以检测到作用于设置应用图标611的用户操作,响应于该用户操作,电子设备100可以显示图6B所示的用户界面620。可理解,用户界面620为设置应用的主界面。用户界面620可以包括多个设置项。该多个设置项可以用于控制电子设备100中的多项功能。The electronic device 100 may detect a user operation acting on the setting application icon 611, and in response to the user operation, the electronic device 100 may display the user interface 620 shown in FIG. 6B. It can be understood that the user interface 620 is the main interface of the setting application. The user interface 620 may include a plurality of setting items. The multiple setting items can be used to control multiple functions in the electronic device 100 .
用户界面620可以包括控件621。用户可以通过触摸等形式触发控件621,从而使得电子设备100显示触控采样率调节界面。 User interface 620 may include controls 621 . The user may trigger the control 621 by touching or the like, so that the electronic device 100 displays a touch sampling rate adjustment interface.
可理解,本申请中所提及的用户操作可以包括但不限于触摸、声控、手势等形式。It can be understood that the user operations mentioned in this application may include but not limited to touch, voice control, gesture and other forms.
电子设备100可以检测到作用于控件621的用户操作,响应于该用户操作,电子设备100可以显示图6C所示的用户界面630。用户界面630即为上文所提及的触控采样率调节界面。The electronic device 100 may detect a user operation on the control 621, and in response to the user operation, the electronic device 100 may display the user interface 630 shown in FIG. 6C. The user interface 630 is the touch sampling rate adjustment interface mentioned above.
用户界面630可以包括控件631、控件632和控件633。其中,控件631可以用于触发电子设备100显示智能调节触控采样率的用户界面,从而实现对电子设备100的触控采样率的智能调节。控件632用于将电子设备100的触控采样率调节为标准触控采样率。控件633用于将电子设备100的触控采样率调节为高触控采样率。 User interface 630 may include controls 631 , controls 632 and controls 633 . Wherein, the control 631 may be used to trigger the electronic device 100 to display a user interface for intelligently adjusting the touch sampling rate, so as to realize the intelligent adjustment of the touch sampling rate of the electronic device 100 . The control 632 is used to adjust the touch sampling rate of the electronic device 100 to a standard touch sampling rate. The control 633 is used to adjust the touch sampling rate of the electronic device 100 to a high touch sampling rate.
在本申请的一些实施例中,用户可以通过触摸(也可以为其他方式)控件632来将电子设备100的全局触控采样率调节为标准触控采样率。In some embodiments of the present application, the user can adjust the global touch sampling rate of the electronic device 100 to a standard touch sampling rate by touching (or in other ways) the control 632 .
在本申请的一些实施例中,用户可以通过触摸(也可以为其他方式)控件633来将电子设备100的全局触控采样率调节为高触控采样率。In some embodiments of the present application, the user can adjust the global touch sampling rate of the electronic device 100 to a high touch sampling rate by touching (or in other ways) the control 633 .
可理解,触控采样率越高,电子设备100中的触摸屏的触控灵敏度越高,用户的触控体验越好。然而,触控采样率越高,系统耗电越大。It can be understood that the higher the touch sampling rate is, the higher the touch sensitivity of the touch screen in the electronic device 100 is, and the better the user's touch experience is. However, the higher the touch sampling rate, the greater the power consumption of the system.
可理解,标准触控采样率是一个适中的触控采样率。电子设备100采用标准触控采样 率时,触摸屏的触控灵敏度不会太低,系统耗电也不会太大。高触控采样率是一个较大的触控采样率。电子设备100采用高触控采样率时,触摸屏的触控灵敏度较高,用户的触控体验较好,但是系统耗电较大。It can be understood that the standard touch sampling rate is a moderate touch sampling rate. When the electronic device 100 adopts the standard touch sampling rate, the touch sensitivity of the touch screen will not be too low, and the system power consumption will not be too large. A high touch sampling rate is a larger touch sampling rate. When the electronic device 100 adopts a high touch sampling rate, the touch sensitivity of the touch screen is high, and the user's touch experience is better, but the system consumes a lot of power.
如图6C所示,在本申请的一些实施例中,标准触控采样率为120赫兹(Hz),高触控采样率为240Hz。As shown in FIG. 6C , in some embodiments of the present application, the standard touch sampling rate is 120 Hz, and the high touch sampling rate is 240 Hz.
可理解,图6C仅为本申请的一个示例,标准触控采样率和高触控采样率还可以为其他值,本申请对此不作限制。It can be understood that FIG. 6C is only an example of the present application, and the standard touch sampling rate and the high touch sampling rate may also be other values, which are not limited in the present application.
电子设备100可以检测到作用于控件631的用户操作,响应于该用户操作,电子设备100可以显示图6D所示的用户界面640。The electronic device 100 may detect a user operation on the control 631, and in response to the user operation, the electronic device 100 may display the user interface 640 shown in FIG. 6D.
用户界面640可以包括显示区域641、控件642和控件643。其中,显示区域641可以显示电子设备100所提供的一种或多种智能调节触控采样率的方式。控件642用于设置白名单功能,即用于设置可以使用智能调节触控采样率功能的应用程序。控件643用于设置局部触控采样率所对应的局部区域。根据上文,局部触控采样率为电子设备100的触摸屏的局部区域的触控采样率。可理解,电子设备100可以调节局部触控采样率,还可以提供设置该局部区域的功能。 User interface 640 may include display area 641 , controls 642 and controls 643 . Wherein, the display area 641 may display one or more ways of intelligently adjusting the touch sampling rate provided by the electronic device 100 . The control 642 is used to set the white list function, that is, to set the application programs that can use the function of intelligently adjusting the touch sampling rate. The control 643 is used to set the local area corresponding to the local touch sampling rate. According to the above, the local touch sampling rate is the touch sampling rate of a local area of the touch screen of the electronic device 100 . It can be understood that the electronic device 100 can adjust the local touch sampling rate, and can also provide a function of setting the local area.
在本申请的一些实施例中,显示区域641可以包括控件6411和控件6412。控件6411用于按照方式一来调节电子设备100的触控采样率。控件6412用于按照方式二来调节电子设备100的触控采样率。In some embodiments of the present application, the display area 641 may include a control 6411 and a control 6412 . The control 6411 is used to adjust the touch sampling rate of the electronic device 100 according to the first method. The control 6412 is used to adjust the touch sampling rate of the electronic device 100 according to the second manner.
方式一为结合使用场景、系统耗电情况,调节电子设备100的局部触控采样率和全局触控采样率。例如,电子设备100采用方式一来调节触控采样率时,可以根据用户使用的应用来适应性调节局部触控采样率所对应的局部区域、局部触控采样率的大小,以及全局触控采样率的大小。再例如,电子设备100采用方式一来调节触控采样率时,若系统耗电较大,电子设备100可以适当降低局部触控采样率和全局触控采样率。可理解,出现电子设备100的温度较高等情况时,电子设备100也可以适当降低局部触控采样率和全局触控采样率。需要说明的是,电子设备100降低局部触控采样率和全局触控采样率之后,其局部触控采样率仍高于全局触控采样率。Way 1 is to adjust the local touch sampling rate and the global touch sampling rate of the electronic device 100 in combination with usage scenarios and system power consumption. For example, when the electronic device 100 adopts method 1 to adjust the touch sampling rate, it can adaptively adjust the local area corresponding to the local touch sampling rate, the size of the local touch sampling rate, and the global touch sampling rate according to the application used by the user. rate size. For another example, when the electronic device 100 adopts the first method to adjust the touch sampling rate, if the system consumes a lot of power, the electronic device 100 may properly reduce the local touch sampling rate and the global touch sampling rate. It can be understood that, when the temperature of the electronic device 100 is relatively high, the electronic device 100 may appropriately reduce the local touch sampling rate and the global touch sampling rate. It should be noted that after the electronic device 100 reduces the local touch sampling rate and the global touch sampling rate, its local touch sampling rate is still higher than the global touch sampling rate.
示例性的,电子设备100采用方式一调节触控采样率之前,电子设备100只进行全局触控采样,且其全局触控采样率为150Hz。电子设备100采用方式一将其局部触控采样率调节为200Hz,并将其全局触控采样率调节为120Hz。一段时间后,电子设备100的系统耗电大幅增加,且温度升高。这种情况下,电子设备100可以将局部触控采样率降低为160Hz,并将其全局触控采样率降低为100Hz。Exemplarily, before the electronic device 100 adopts the first method to adjust the touch sampling rate, the electronic device 100 only performs global touch sampling, and its global touch sampling rate is 150 Hz. The electronic device 100 adopts the first method to adjust its local touch sampling rate to 200 Hz, and adjust its global touch sampling rate to 120 Hz. After a period of time, the system power consumption of the electronic device 100 increases significantly, and the temperature rises. In this case, the electronic device 100 may reduce the local touch sampling rate to 160 Hz, and reduce its global touch sampling rate to 100 Hz.
方式二为结合使用场景、系统耗电情况,调节电子设备100的局部触控采样率和互补触控采样率。例如,电子设备100采用方式二来调节触控采样率时,可以根据用户使用的应用来适应性调节局部触控采样率所对应的局部区域、局部触控采样率的大小,以及互补触控采样率的大小。再例如,电子设备100采用方式二来调节触控采样率时,若系统耗电较大,电子设备100可以适当降低局部触控采样率和互补触控采样率。可理解,出现电子 设备100的温度较高等情况时,电子设备100也可以适当降低局部触控采样率和互补触控采样率。需要说明的是,电子设备100降低局部触控采样率和互补触控采样率之后,其局部触控采样率仍高于互补触控采样率。The second way is to adjust the local touch sampling rate and the complementary touch sampling rate of the electronic device 100 in combination with the use scenario and the power consumption of the system. For example, when the electronic device 100 adopts the second method to adjust the touch sampling rate, it can adaptively adjust the local area corresponding to the local touch sampling rate, the size of the local touch sampling rate, and the complementary touch sampling rate according to the application used by the user. rate size. For another example, when the electronic device 100 adopts the second method to adjust the touch sampling rate, if the system consumes a lot of power, the electronic device 100 may appropriately reduce the partial touch sampling rate and the complementary touch sampling rate. It can be understood that when the temperature of the electronic device 100 is relatively high, the electronic device 100 may also appropriately reduce the local touch sampling rate and the complementary touch sampling rate. It should be noted that after the electronic device 100 reduces the local touch sampling rate and the complementary touch sampling rate, its local touch sampling rate is still higher than the complementary touch sampling rate.
示例性的,电子设备100采用方式二调节触控采样率之前,电子设备100只进行全局触控采样,且其全局触控采样率为150Hz。电子设备100采用方式二将其局部触控采样率调节为200Hz,并将其互补触控采样率调节为140Hz。一段时间后,电子设备100的系统耗电大幅增加,且温度升高。这种情况下,电子设备100可以将局部触控采样率降低为160Hz,并将其互补触控采样率降低为120Hz。Exemplarily, before the electronic device 100 adopts the second method to adjust the touch sampling rate, the electronic device 100 only performs global touch sampling, and its global touch sampling rate is 150 Hz. The electronic device 100 adopts the second method to adjust its partial touch sampling rate to 200 Hz, and adjust its complementary touch sampling rate to 140 Hz. After a period of time, the system power consumption of the electronic device 100 increases significantly, and the temperature rises. In this case, the electronic device 100 may reduce the partial touch sampling rate to 160 Hz, and reduce the complementary touch sampling rate to 120 Hz.
可理解,电子设备100还可以通过更多方式来实现对触控采样率的智能调节,本申请对此不作限制。例如,电子设备100可以结合使用场景、系统耗电情况,调节全局触控采样率。再例如,电子设备100可以结合使用场景、系统耗电情况,调节局部触控采样率。再例如,电子设备100可以结合使用场景、系统耗电情况,调节互补触控采样率。It can be understood that the electronic device 100 can implement intelligent adjustment of the touch sampling rate in more ways, which is not limited in this application. For example, the electronic device 100 may adjust the global touch sampling rate in combination with usage scenarios and system power consumption. For another example, the electronic device 100 may adjust the partial touch sampling rate in combination with usage scenarios and system power consumption. For another example, the electronic device 100 may adjust the complementary touch sampling rate in combination with usage scenarios and system power consumption.
在本申请的一些实施例中,电子设备100可以检测到作用于控件6411的用户操作,响应于该用户操作,电子设备100可以采取方式一来调节触控采样率。In some embodiments of the present application, the electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate.
在本申请的一些实施例中,电子设备100可以检测到作用于控件6412的用户操作,响应于该用户操作,电子设备100可以采取方式二来调节触控采样率。In some embodiments of the present application, the electronic device 100 may detect a user operation acting on the control 6412, and in response to the user operation, the electronic device 100 may adopt a second method to adjust the touch sampling rate.
电子设备100可以检测到作用于控件642的用户操作,响应于该用户操作,电子设备100可以显示图6E所示的用户界面650。The electronic device 100 may detect a user operation on the control 642, and in response to the user operation, the electronic device 100 may display the user interface 650 shown in FIG. 6E.
用户界面650可以包括控件651、显示区域652和显示区域653。其中,控件651可以用于启动白名单功能。显示区域652用于在下载的应用程序中选择可以进行智能调节触控采样率的应用程序。显示区域653用于在系统应用中选择可以进行智能调节触控采样率的应用程序。 User interface 650 may include controls 651 , display area 652 and display area 653 . Wherein, the control 651 can be used to start the whitelist function. The display area 652 is used to select an application that can intelligently adjust the touch sampling rate among the downloaded applications. The display area 653 is used to select an application that can intelligently adjust the touch sampling rate among system applications.
可理解,显示区域652可以包括一个或多个控件。该一个或多个控件用于控制用户在使用一个或多个下载的应用程序时是否智能调节触控采样率。电子设备100可以检测到作用于该一个或多个控件的用户操作,响应于该用户操作,电子设备100可以在用户使用一个或多个下载的应用程序时,智能调节触控采样率。It can be understood that the display area 652 may include one or more controls. The one or more controls are used to control whether the user intelligently adjusts the touch sampling rate when using one or more downloaded applications. The electronic device 100 may detect a user operation acting on the one or more controls, and in response to the user operation, the electronic device 100 may intelligently adjust the touch sampling rate when the user uses one or more downloaded application programs.
如图6E所示,用户可以启动白名单功能,并且将第一应用添加至白名单。也就是说,一旦用户触发智能调节触控采样率功能,用户使用第一应用时,电子设备100可以智能调节触控采样率。As shown in FIG. 6E , the user can activate the whitelist function and add the first application to the whitelist. That is to say, once the user triggers the function of intelligently adjusting the touch sampling rate, the electronic device 100 can intelligently adjust the touch sampling rate when the user uses the first application.
类似的,显示区域653也可以包括一个或多个控件。该一个或多个控件用于控制用户在使用一个或多个系统应用时是否智能调节触控采样率。电子设备100可以检测到作用于该一个或多个控件的用户操作,响应于该用户操作,电子设备100可以在用户使用一个或多个系统应用时,智能调节触控采样率。Similarly, the display area 653 may also include one or more controls. The one or more controls are used to control whether the user can intelligently adjust the touch sampling rate when using one or more system applications. The electronic device 100 may detect a user operation acting on the one or more controls, and in response to the user operation, the electronic device 100 may intelligently adjust a touch sampling rate when the user uses one or more system applications.
下面示例性介绍本申请实施例提供的三种触控采样率调节方法。The following three touch sampling rate adjustment methods provided by the embodiments of the present application are introduced by way of example.
1、电子设备100可以响应于用户的相关操作,来开启智能调节触控采样率的功能。电 子设备100还可以根据预先与第一应用适配时所得的参数,或者调用接口,来确定显示第一应用的用户界面时的触控采样率。1. The electronic device 100 can enable the function of intelligently adjusting the touch sampling rate in response to relevant operations of the user. The electronic device 100 may also determine the touch sampling rate when displaying the user interface of the first application according to parameters obtained in advance when it is adapted to the first application, or by calling an interface.
电子设备100可以检测到作用于控件6411的用户操作,响应于该用户操作,电子设备100可以采取方式一来调节触控采样率。也就是说,电子设备100可以调节本设备的局部触控采样率和全局触控采样率。The electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and the global touch sampling rate of the device.
电子设备100可以检测到作用于第一应用图标612的用户操作,响应于该用户操作,电子设备100可以启动第一应用,并显示图6F所示的用户界面660。可理解,用户界面660为第一应用的主界面。The electronic device 100 may detect a user operation on the first application icon 612, and in response to the user operation, the electronic device 100 may start the first application and display the user interface 660 shown in FIG. 6F. It can be understood that the user interface 660 is the main interface of the first application.
用户界面660可以包括控件661。用户可以通过触摸(或其他方式)控件661来开始游戏。 User interface 660 may include controls 661 . The user can start the game by touching (or otherwise) the control 661.
在本申请的一些实施例中,电子设备100可以确定第一应用为白名单中的应用程序(如图6E所示)。电子设备100可以根据预先与第一应用适配时所得到的参数确定显示用户界面660时的触控采样率为触控采样率B。In some embodiments of the present application, the electronic device 100 may determine that the first application is an application in the whitelist (as shown in FIG. 6E ). The electronic device 100 may determine the touch sampling rate B when the user interface 660 is displayed according to parameters obtained in advance when it is adapted to the first application.
在本申请的一些实施例中,触控采样率B可以包括全局触控采样率b1和局部触控采样率b2。示例性的,全局触控采样率b1小于全局触控采样率a1。也就是说,电子设备100显示用户界面660时,降低了触摸屏的全局触控采样率,提高了局部触控采样率。在不耗费过多计算资源的情况下,电子设备100可以提高触摸屏的局部区域的触控灵敏度。可理解,该局部区域可以为用户触摸的惯常区域,提高了用户的触控体验。In some embodiments of the present application, the touch sampling rate B may include a global touch sampling rate b1 and a local touch sampling rate b2. Exemplarily, the global touch sampling rate b1 is smaller than the global touch sampling rate a1. That is to say, when the electronic device 100 displays the user interface 660 , the global touch sampling rate of the touch screen is reduced, and the local touch sampling rate is increased. Without consuming too many computing resources, the electronic device 100 can increase the touch sensitivity of a local area of the touch screen. It can be understood that the partial area may be a usual area touched by the user, which improves the touch experience of the user.
在本申请的一些实施例中,触控采样率B可以包括局部触控采样率b2和互补触控采样率b3。示例性的,电子设备100显示用户界面660时,采取较低的互补触控采样率,而提高局部触控采样率。在不耗费过多计算资源的情况下,电子设备100可以提高触摸屏的局部区域的触控灵敏度。可理解,该局部区域可以为用户触摸的惯常区域,提高了用户的触控体验。另外,电子设备100需要扫描的触控感应点减少了,还提高了响应速度。In some embodiments of the present application, the touch sampling rate B may include a local touch sampling rate b2 and a complementary touch sampling rate b3. Exemplarily, when the electronic device 100 displays the user interface 660, a lower complementary touch sampling rate is adopted, and a partial touch sampling rate is increased. Without consuming too many computing resources, the electronic device 100 can increase the touch sensitivity of a local area of the touch screen. It can be understood that the partial area may be a usual area touched by the user, which improves the touch experience of the user. In addition, the number of touch sensing points to be scanned by the electronic device 100 is reduced, and the response speed is also improved.
在本申请的一些实施例中,局部触控采样率a2为0,而局部采样率b2不为0。另外,全局触控采样率b1小于全局触控采样率a1。也就是说,电子设备100显示第一应用的主界面时,降低了触摸屏的全局触控采样率,而提高了局部触控采样率。In some embodiments of the present application, the local touch sampling rate a2 is 0, but the local sampling rate b2 is not zero. In addition, the global touch sampling rate b1 is smaller than the global touch sampling rate a1. That is to say, when the electronic device 100 displays the main interface of the first application, the global touch sampling rate of the touch screen is reduced, and the local touch sampling rate is increased.
示例性的,a1=100Hz,a2=0。也就是说,电子设备100显示用户界面610时,电子设备100每秒钟扫描触摸屏上的所有触控感应点的次数为100次。另外,b1=30Hz,b2=120Hz。电子设备100显示用户界面660时,电子设备100扫描触摸屏上所有触控感应点的频率为每秒钟30次,而扫描触摸屏上的局部区域的频率为每秒钟120次。可理解,该局部区域可以为电子设备100预先与第一应用适配后确定的。Exemplarily, a1=100Hz, a2=0. That is to say, when the electronic device 100 displays the user interface 610 , the electronic device 100 scans all the touch sensing points on the touch screen 100 times per second. In addition, b1=30Hz, b2=120Hz. When the electronic device 100 displays the user interface 660 , the electronic device 100 scans all touch sensing points on the touch screen 30 times per second, and scans a local area on the touch screen 120 times per second. It can be understood that the local area may be determined after the electronic device 100 is pre-fitted with the first application.
电子设备100可以检测到作用于控件661的用户操作,响应于该用户操作,电子设备100可以显示图6G所示的用户界面670。电子设备100可以基于预先与第一应用适配时得到的参数,来确定电子设备100显示用户界面670时的触控采样率——触控采样率C。触控采样率C可以包括全局触控采样率c1和局部触控采样率c2。其中,全局触控采样率c1小于全局触控采样率a1。可理解,全局触控采样率c1与全局触控采样率b1的大小不确定。 局部触控采样率c2与局部触控采样率b2的大小也不确定。也就是说,c1可能大于b1,也可能小于等于b1。而c2可能大于b2,也可能小于等于b2。The electronic device 100 may detect a user operation acting on the control 661, and in response to the user operation, the electronic device 100 may display the user interface 670 shown in FIG. 6G. The electronic device 100 may determine the touch sampling rate when the electronic device 100 displays the user interface 670—the touch sampling rate C based on parameters obtained in advance when it is adapted to the first application. The touch sampling rate C may include a global touch sampling rate c1 and a local touch sampling rate c2. Wherein, the global touch sampling rate c1 is smaller than the global touch sampling rate a1. It can be understood that the magnitudes of the global touch sampling rate c1 and the global touch sampling rate b1 are uncertain. The magnitudes of the local touch sampling rate c2 and the local touch sampling rate b2 are also uncertain. In other words, c1 may be greater than b1, or less than or equal to b1. And c2 may be greater than b2, or less than or equal to b2.
在本申请的一些实施例中,电子设备100可以根据预先与第一应用适配时得到的参数来确定用户触摸的惯常区域X1。可理解,惯常区域X1为电子设备100显示图6F所示的用户界面660时的惯常区域。可理解,惯常区域X1的触控采样率即为局部触控采样率b2。In some embodiments of the present application, the electronic device 100 may determine the habitual area X1 touched by the user according to parameters obtained during pre-fitting with the first application. It can be understood that the usual area X1 is the usual area when the electronic device 100 displays the user interface 660 shown in FIG. 6F . It can be understood that the touch sampling rate of the habitual area X1 is the local touch sampling rate b2.
示例性的,如图6F所示,区域S1、区域S2、区域S3和区域S4的合集为惯常区域X1。可理解,电子设备100显示用户界面660时,用户看不见区域S1、区域S2、区域S3和区域S4。也就是说,惯常区域X1为触摸屏上的局部区域,电子设备100一般不会将其显示在显示屏上。Exemplarily, as shown in FIG. 6F , the collection of the area S1 , the area S2 , the area S3 and the area S4 is the customary area X1 . It can be understood that when the electronic device 100 displays the user interface 660 , the user cannot see the area S1 , the area S2 , the area S3 and the area S4 . That is to say, the customary area X1 is a local area on the touch screen, and the electronic device 100 generally does not display it on the display screen.
电子设备100获取惯常区域X1的尺寸和位置后,可以调节局部触控采样率b2和全局触控采样率b1。具体地,电子设备100可以将局部触控采样率b2设置为一个较高值,可以将全局触控采样率b1设置为一个较低值。The electronic device 100 may adjust the local touch sampling rate b2 and the global touch sampling rate b1 after acquiring the size and position of the habitual area X1. Specifically, the electronic device 100 may set the local touch sampling rate b2 to a higher value, and may set the global touch sampling rate b1 to a lower value.
示例性的,电子设备100可以将局部触控采样率b2设置为高触控采样率(如图6C中的240Hz),将全局触控采样率b1设置为标准触控采样率(如图6C中的120Hz)。Exemplarily, the electronic device 100 can set the local touch sampling rate b2 to a high touch sampling rate (240 Hz as shown in Figure 6C), and set the global touch sampling rate b1 to a standard touch sampling rate (as shown in Figure 6C 120Hz).
示例性的,电子设备100还可以将局部触控采样率b2设置为高触控采样率的N1倍,将全局触控采样率b1设置为标准触控采样率的N2倍。在本申请的一些实施例中,N1大于1,N2大于0且小于1。Exemplarily, the electronic device 100 may also set the local touch sampling rate b2 to be N1 times the high touch sampling rate, and set the global touch sampling rate b1 to be N2 times the standard touch sampling rate. In some embodiments of the present application, N1 is greater than 1, and N2 is greater than 0 and less than 1.
在本申请的一些实施例中,电子设备100可以根据自身的计算能力来确定该较高值和该较低值。In some embodiments of the present application, the electronic device 100 may determine the higher value and the lower value according to its own computing capability.
在本申请的一些实施例中,该较高值和该较低值可以由技术人员根据需求进行设置。In some embodiments of the present application, the higher value and the lower value can be set by technicians according to requirements.
可理解,电子设备100还可以通过其他方式来获取该较高值和该较低值,本申请对此不作限制。在本申请的一些实施例中,电子设备100可以采取方式二来调节触控采样率。电子设备100也可以确定互补触控采样率b3所对应的互补区域的尺寸和位置。电子设备100可以调节局部触控采样率b2和互补触控采样率b3。具体地,电子设备100可以将局部触控采样率b1设置为一个较高值,可以将互补触控采样率b3设置为一个较低值。可理解,关于该较高值和该较低值的描述可以参考上文,在此不作赘述。It can be understood that the electronic device 100 may also obtain the higher value and the lower value in other ways, which is not limited in the present application. In some embodiments of the present application, the electronic device 100 may adopt a second method to adjust the touch sampling rate. The electronic device 100 may also determine the size and position of the complementary area corresponding to the complementary touch sampling rate b3. The electronic device 100 can adjust the local touch sampling rate b2 and the complementary touch sampling rate b3. Specifically, the electronic device 100 may set the local touch sampling rate b1 to a higher value, and may set the complementary touch sampling rate b3 to a lower value. It can be understood that, for the description about the higher value and the lower value, reference can be made to the above, and details are not repeated here.
在本申请的一些实施例中,电子设备100预先与第一应用适配时得到的参数可以包括显示用户界面660时的惯常区域的尺寸和位置。可理解,惯常区域的尺寸和位置可以通过笛卡尔直角坐标系、平面极坐标系、柱面坐标系和球面坐标系等坐标系中的具体坐标来表示。也就是说,电子设备100预先与第一应用适配时得到的参数可以包括显示用户界面660时的惯常区域的坐标。In some embodiments of the present application, the parameters obtained when the electronic device 100 is pre-fitted with the first application may include the size and position of the customary area when the user interface 660 is displayed. It can be understood that the size and position of the customary area can be represented by specific coordinates in coordinate systems such as a Cartesian coordinate system, a plane polar coordinate system, a cylindrical coordinate system, and a spherical coordinate system. That is to say, the parameters obtained when the electronic device 100 is pre-fitted with the first application may include the coordinates of the customary area when the user interface 660 is displayed.
在本申请的一些实施例中,电子设备100预先与第一应用适配时得到的参数可以包括显示第一应用其他用户界面时的惯常区域的尺寸和位置。可理解,电子设备100显示第一应用的不同界面时的惯常区域可以不同。In some embodiments of the present application, the parameters obtained when the electronic device 100 is pre-fitted with the first application may include the size and position of the customary area when displaying other user interfaces of the first application. It can be understood that the usual area when the electronic device 100 displays different interfaces of the first application may be different.
示例性的,电子设备100可以根据预先与第一应用适配时得到的参数来确定用户触摸的惯常区域X2。可理解,惯常区域X2为电子设备100显示用户界面670时的触控采样率。 可理解,惯常区域X2的触控采样率即为局部触控采样率c2。Exemplarily, the electronic device 100 may determine the habitual area X2 touched by the user according to parameters obtained during pre-fitting with the first application. It can be understood that the usual area X2 is the touch sampling rate when the electronic device 100 displays the user interface 670 . It can be understood that the touch sampling rate of the habitual area X2 is the local touch sampling rate c2.
示例性的,如图6G所示,区域S5和区域S6的合集为惯常区域X2。可理解,电子设备100显示用户界面670时,用户看不见区域S5和区域S6。也就是说,惯常区域X2为触摸屏上的局部区域,电子设备100不会将其显示在显示屏上。Exemplarily, as shown in FIG. 6G , the combination of the area S5 and the area S6 is the customary area X2. It can be understood that when the electronic device 100 displays the user interface 670, the user cannot see the area S5 and the area S6. That is to say, the customary area X2 is a partial area on the touch screen, and the electronic device 100 will not display it on the display screen.
需要说明的是,电子设备100获取惯常区域X2的尺寸和位置后,可以调节局部触控采样率c2和全局触控采样率c1。具体调节方式可以参考上文中电子设备100对局部触控采样率b2和全局触控采样率b1的调节方式,在此不再赘述。在本申请的一些实施例中,电子设备100可以调节局部触控采样率c2和互补触控采样率c3。可理解,互补触控采样率c3为惯常区域X2的互补区域的触控采样率。可理解,惯常区域X2的互补区域指的是触摸屏中除惯常区域X2外的其他区域。It should be noted that after the electronic device 100 acquires the size and position of the usual area X2, it can adjust the local touch sampling rate c2 and the global touch sampling rate c1. For a specific adjustment method, reference may be made to the method for adjusting the local touch sampling rate b2 and the global touch sampling rate b1 by the electronic device 100 above, which will not be repeated here. In some embodiments of the present application, the electronic device 100 can adjust the local touch sampling rate c2 and the complementary touch sampling rate c3. It can be understood that the complementary touch sampling rate c3 is the touch sampling rate of the complementary area of the conventional area X2. It can be understood that the complementary area of the usual area X2 refers to other areas of the touch screen except the usual area X2.
需要说明的是,电子设备100可以预先与一个或多个应用进行适配,以确定用户在使用该一个或多个应用时的惯常区域的尺寸和位置。电子设备100还可以存储该一个或多个应用所对应的惯常区域的尺寸和位置。可理解,可以采用直角坐标等方式表示惯常区域在触摸屏中的位置及其大小。It should be noted that the electronic device 100 may be pre-adapted to one or more applications, so as to determine the size and position of the user's habitual area when using the one or more applications. The electronic device 100 may also store the size and location of the usual area corresponding to the one or more applications. It can be understood that the position and size of the habitual area on the touch screen can be represented by means such as rectangular coordinates.
具体地,电子设备100可以获取不同应用的控件信息,并通过该控件信息来确定控件的位置。电子设备100还可以根据控件的位置来确定惯常区域的尺寸和位置。例如,电子设备100可以将控件集中分布的区域确定为用户触摸的惯常区域。Specifically, the electronic device 100 may acquire control information of different applications, and determine the position of the control according to the control information. The electronic device 100 may also determine the size and position of the customary area according to the position of the control. For example, the electronic device 100 may determine the area where the controls are concentrated as the habitual area touched by the user.
可理解,控件信息可以包括但不限于控件text和控件id等。其中,控件text为用于标识控件的文字信息。控件id也用于标识控件。不同控件的控件id一般不同。It can be understood that the control information may include but not limited to control text and control id. Wherein, the control text is text information for identifying the control. The control id is also used to identify the control. The control ids of different controls are generally different.
示例性的,如图7所示,电子设备100显示的界面包括控件1、控件2、控件3和控件4。这4个控件集中分布在区域P中。电子设备100可以确定区域P为电子设备100显示该界面时用户触摸的惯常区域。Exemplarily, as shown in FIG. 7 , the interface displayed by the electronic device 100 includes a control 1 , a control 2 , a control 3 and a control 4 . These 4 controls are concentrated in area P. The electronic device 100 may determine that the area P is a usual area touched by the user when the electronic device 100 displays the interface.
在本申请的一些实施例中,电子设备100可以扫描触摸屏上的触控感应点,并记录一段时间内时变化次数大于第一阈值的触控感应点。电子设备100可以确定包括这些触控感应点的区域为用户触摸的惯常区域。In some embodiments of the present application, the electronic device 100 may scan the touch sensing points on the touch screen, and record the touch sensing points whose change times are greater than the first threshold within a period of time. The electronic device 100 may determine that the area including these touch sensing points is a habitual area touched by the user.
可理解,第一阈值可以根据实际需求来确定,本申请对此不做限制。上文提及的一段时间可以为时间T1,其具体值可以根据实际需要进行设置,本申请对此不作限制。It can be understood that the first threshold may be determined according to actual requirements, which is not limited in the present application. The period of time mentioned above may be time T1, and its specific value may be set according to actual needs, which is not limited in the present application.
示例性的,触控感应点可以为电容感应点。电子设备100可以记录一段时间内电容变化次数大于第一阈值的电容感应点的位置。Exemplarily, the touch sensing point may be a capacitive sensing point. The electronic device 100 may record the positions of capacitance sensing points whose capacitance change times are greater than a first threshold within a period of time.
在本申请的一些实施例中,电子设备100适配不同应用并确定用户使用不同应用时的惯常区域后,还可以确定该惯常区域的触控采样率(局部触控采样率)、整个触摸屏的触控采样率(全局触控采样率),以及相应的互补区域的触控采样率(互补触控采样率)。In some embodiments of the present application, after the electronic device 100 adapts to different applications and determines the user's usual area when using different applications, it can also determine the touch sampling rate of the usual area (local touch sampling rate), the touch sampling rate of the entire touch screen The touch sampling rate (global touch sampling rate), and the corresponding touch sampling rate of the complementary area (complementary touch sampling rate).
在本申请的一些实施例中,电子设备100与应用进行适配时,可以确定该应用中的不同页面的惯常区域。也就是说,对于电子设备100适配的应用,电子设备100可以确定该应用的一个或多个用户界面的惯常区域。可理解,同一个应用中的一个或多个用户界面的惯常区域可以相同,也可以不同。In some embodiments of the present application, when the electronic device 100 is adapting to an application, it may determine customary areas of different pages in the application. That is to say, for an application adapted by the electronic device 100, the electronic device 100 may determine the customary areas of one or more user interfaces of the application. It can be understood that the customary areas of one or more user interfaces in the same application may be the same or different.
需要说明的是,在本申请的一些实施例中,电子设备100还可以通过调用接口来获取第一应用的惯常区域的相关信息,从而确定显示用户界面660时的触控采样率为触控采样率B。It should be noted that, in some embodiments of the present application, the electronic device 100 can also obtain information about the habitual area of the first application by calling the interface, so as to determine the touch sampling rate when the user interface 660 is displayed. Rate B.
可理解,电子设备100调用的接口可以为应用程序编程接口(Application Programming Interface,API)等开放接口。It can be understood that the interface invoked by the electronic device 100 may be an open interface such as an Application Programming Interface (Application Programming Interface, API).
在本申请的一些实施例中,惯常区域的相关信息可以包括惯常区域的尺寸和位置。In some embodiments of the present application, the related information of the customary area may include the size and position of the customary area.
在本申请的一些实施例中,惯常区域的相关信息还可以包括惯常区域的触控采样率。In some embodiments of the present application, the related information of the usual area may also include the touch sampling rate of the usual area.
需要说明的是,电子设备100还可以通过调用接口来获取第一应用的其他界面(例如,图6G所示的用户界面670)的惯常区域的相关信息。另外,电子设备100还可以通过调用接口来获取其他应用的惯常区域的相关信息。It should be noted that the electronic device 100 may also acquire information about customary areas of other interfaces of the first application (for example, the user interface 670 shown in FIG. 6G ) by calling the interface. In addition, the electronic device 100 may also acquire information about customary areas of other applications by calling the interface.
可理解,有关于惯常区域的描述可参考上文,在此不再赘述。It can be understood that for the description about the customary area, reference may be made to the above, and details are not repeated here.
2、电子设备100可以响应于用户的相关操作,来开启智能调节触控采样率的功能。电子设备100可以通过学习用户的触控习惯,来确定显示第一应用的用户界面时的触控采样率。2. The electronic device 100 may enable the function of intelligently adjusting the touch sampling rate in response to relevant operations of the user. The electronic device 100 may determine the touch sampling rate when displaying the user interface of the first application by learning the touch habit of the user.
电子设备100可以检测到作用于控件6411的用户操作,响应于该用户操作,电子设备100可以采取方式一来调节触控采样率。也就是说,电子设备100可以调节本设备的局部触控采样率和全局触控采样率。The electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and the global touch sampling rate of the device.
电子设备100可以检测到作用于第一应用图标612的用户操作,响应于该用户操作,电子设备100可以启动第一应用,并显示图8A所示的用户界面660。The electronic device 100 may detect a user operation acting on the first application icon 612, and in response to the user operation, the electronic device 100 may start the first application and display the user interface 660 shown in FIG. 8A.
用户界面660可以包括控件661。用户可以通过触摸(或其他方式)控件661来开始游戏。 User interface 660 may include controls 661 . The user can start the game by touching (or otherwise) the control 661.
在本申请的一些实施例中,电子设备100可以确定第一应用为白名单中的应用程序(如图6E所示)。电子设备100可以通过扫描整个触摸屏上的触控感应点,来学习用户的触控习惯。如图8A所示,电子设备100显示图8A所示的用户界面660时,可以扫描的触摸屏的区域为区域S7。示例性的,电子设备100可以扫描区域S7的触控感应点,并记录一段时间内时变化次数大于预设阈值的触控感应点。可理解,这些触控感应点所在的区域即为用户经常触摸的区域,即惯常区域。电子设备100可以提高该惯常区域的触控采样率。如图8B所示,电子设备100经扫描可以确定区域S8、区域S9、区域S10和区域S11为用户经常触摸的区域,将其记为惯常区域X3。可理解,电子设备100可以提高惯常区域X3的触控采样率,同时,降低电子设备100显示图8B所示的用户界面660时的全局触控采样率。In some embodiments of the present application, the electronic device 100 may determine that the first application is an application in the whitelist (as shown in FIG. 6E ). The electronic device 100 can learn the user's touch habit by scanning the touch sensing points on the entire touch screen. As shown in FIG. 8A , when the electronic device 100 displays the user interface 660 shown in FIG. 8A , the area of the touch screen that can be scanned is area S7 . Exemplarily, the electronic device 100 may scan the touch sensing points in the area S7, and record the touch sensing points whose change times are greater than a preset threshold within a period of time. It can be understood that the areas where these touch sensing points are located are the areas frequently touched by the user, that is, the habitual areas. The electronic device 100 can increase the touch sampling rate of the habitual area. As shown in FIG. 8B , the electronic device 100 can determine that the area S8 , area S9 , area S10 and area S11 are the areas frequently touched by the user after scanning, which is marked as the habitual area X3 . It can be understood that the electronic device 100 may increase the touch sampling rate of the habitual area X3, and at the same time reduce the global touch sampling rate when the electronic device 100 displays the user interface 660 shown in FIG. 8B .
可理解,预设阈值可以根据实际需求来确定,本申请对此不做限制。上文提及的一段时间可以为时间T1,其具体值可以根据实际需要进行设置,本申请对此不作限制。It can be understood that the preset threshold may be determined according to actual requirements, which is not limited in the present application. The period of time mentioned above may be time T1, and its specific value may be set according to actual needs, which is not limited in the present application.
示例性的,触控感应点可以为电容感应点。电子设备100可以扫描区域S7的电容感应点,并记录一段时间内电容变化次数大于预设阈值的电容感应点的位置。Exemplarily, the touch sensing point may be a capacitive sensing point. The electronic device 100 may scan the capacitive sensing points in the area S7, and record the positions of the capacitive sensing points whose capacitance changes are greater than a preset threshold within a period of time.
可理解,S7即为整个触摸屏区域。另外,图8A所示的区域S7,以及图8B所示的区域S8、区域S9、区域S10和区域S11指的是电子设备100的触摸屏上的区域,对于用户而 言是不可见的。也就是说,图8A所示的用户界面660、图8B所示的用户界面660与图6F所示的用户界面660是一样的。It can be understood that the S7 is the entire touch screen area. In addition, the area S7 shown in FIG. 8A, and the areas S8, S9, S10, and S11 shown in FIG. 8B refer to areas on the touch screen of the electronic device 100, which are invisible to the user. That is to say, the user interface 660 shown in FIG. 8A and the user interface 660 shown in FIG. 8B are the same as the user interface 660 shown in FIG. 6F .
需要说明的是,电子设备100还可以通过其他方式来学习用户的触控习惯,本申请对此不作限制。It should be noted that the electronic device 100 may also learn the user's touch habit in other ways, which is not limited in this application.
电子设备100还可以检测到作用于控件661的用户操作,响应于该用户操作,电子设备100可以显示图8C所示的用户界面670。The electronic device 100 may also detect a user operation on the control 661, and in response to the user operation, the electronic device 100 may display the user interface 670 shown in FIG. 8C.
可理解,电子设备100可以通过扫描整个触摸屏上的触控感应点,来学习用户的触控习惯。如图8C所示,电子设备100显示图8C所示的用户界面670时,可以扫描的触摸屏的区域为区域S12。示例性的,电子设备100可以扫描区域S12的触控感应点,并记录一段时间内时变化次数大于预设阈值的触控感应点。可理解,这些触控感应点所在的区域即为用户经常触摸的区域,即惯常区域。电子设备100可以提高该惯常区域的触控采样率。如图8D所示,电子设备100经扫描可以确定区域S13和区域S14为用户经常触摸的区域,将其记为惯常区域X4。可理解,电子设备100可以提高惯常区域X4的触控采样率,同时,降低电子设备100显示图8D所示的用户界面670时的全局触控采样率。It can be understood that the electronic device 100 can learn the user's touch habit by scanning the touch sensing points on the entire touch screen. As shown in FIG. 8C , when the electronic device 100 displays the user interface 670 shown in FIG. 8C , the area of the touch screen that can be scanned is area S12 . Exemplarily, the electronic device 100 may scan the touch sensing points in the area S12, and record the touch sensing points whose times of change are greater than a preset threshold within a period of time. It can be understood that the areas where these touch sensing points are located are the areas frequently touched by the user, that is, the habitual areas. The electronic device 100 can increase the touch sampling rate of the habitual area. As shown in FIG. 8D , the electronic device 100 can determine that the area S13 and the area S14 are areas frequently touched by the user after scanning, and record it as the habitual area X4. It can be understood that the electronic device 100 may increase the touch sampling rate of the habitual area X4, and at the same time reduce the global touch sampling rate when the electronic device 100 displays the user interface 670 shown in FIG. 8D .
可理解,预设阈值可以根据实际需求来确定,本申请对此不做限制。上文提及的一段时间可以为时间T1,其具体值可以根据实际需要进行设置,本申请对此不作限制。It can be understood that the preset threshold may be determined according to actual requirements, which is not limited in the present application. The period of time mentioned above may be time T1, and its specific value may be set according to actual needs, which is not limited in the present application.
示例性的,触控感应点可以为电容感应点。电子设备100可以扫描区域S12的电容感应点,并记录一段时间内电容变化次数大于预设阈值的电容感应点的位置。Exemplarily, the touch sensing point may be a capacitive sensing point. The electronic device 100 may scan the capacitive sensing points in the area S12, and record the positions of the capacitive sensing points whose capacitance changes are greater than a preset threshold within a period of time.
可理解,区域S12可以包括触摸屏中所有触控感应点。例如,区域S12可以为整个触摸屏区域。另外,图8C所示的区域S12,以及图8D所示的区域S13和区域S14指的是电子设备100的触摸屏上的区域,对于用户而言是不可见的。也就是说,图8C所示的用户界面670、图8D所示的用户界面670与图6G所示的用户界面670是一样的。It can be understood that the area S12 may include all touch sensing points in the touch screen. For example, the area S12 may be the entire touch screen area. In addition, the area S12 shown in FIG. 8C , and the areas S13 and S14 shown in FIG. 8D refer to areas on the touch screen of the electronic device 100 , which are invisible to the user. That is to say, the user interface 670 shown in FIG. 8C and the user interface 670 shown in FIG. 8D are the same as the user interface 670 shown in FIG. 6G .
可理解,电子设备100还可以在用户使用其他应用时学习用户的触控习惯,并且适应性调节触控采样率,以提高触摸屏的触控灵敏度,从而提升用户的触控体验。It can be understood that the electronic device 100 can also learn the user's touch habits when the user uses other applications, and adaptively adjust the touch sampling rate to improve the touch sensitivity of the touch screen, thereby improving the user's touch experience.
3、用户可以设置使用不同应用时的惯常区域。电子设备100可以将这些惯常区域作为显示相应页面时采取的局部触控采样率所对应的局部区域。另外,电子设备100可以响应于用户的相关操作,来开启智能调节触控采样率的功能。电子设备100可以根据用户设置的惯常区域来调节触控采样率。3. The user can set the usual area when using different applications. The electronic device 100 may use these customary areas as the local areas corresponding to the local touch sampling rate adopted when displaying the corresponding page. In addition, the electronic device 100 may enable the function of intelligently adjusting the touch sampling rate in response to relevant operations of the user. The electronic device 100 can adjust the touch sampling rate according to the customary area set by the user.
(1)用户设置局部区域(1) The user sets the local area
电子设备100可以检测到作用于控件643的用户操作,响应于该用户操作,电子设备100可以显示图9A所示的用户界面910。The electronic device 100 may detect a user operation acting on the control 643, and in response to the user operation, the electronic device 100 may display the user interface 910 shown in FIG. 9A.
用户界面910可以包括控件911、显示区域912。其中,控件911用于将局部触控采样率所对应的局部区域设置为默认局部区域。显示区域912可以包括控件9121和显示区域9122。其中,控件9121用于统一设置局部区域。显示区域9122可以包括一个或多个控件。显示区域9122可以用于个性化设置用户使用不同应用时的局部触控采样率所对应的局部 区域。The user interface 910 may include a control 911 and a display area 912 . Wherein, the control 911 is used to set the local area corresponding to the local touch sampling rate as the default local area. The display area 912 may include controls 9121 and a display area 9122 . Among them, the control 9121 is used to uniformly set the local area. Display area 9122 may include one or more controls. The display area 9122 can be used to personalize the local area corresponding to the local touch sampling rate when the user uses different applications.
在本申请的一些实施例中,默认局部区域可以为在电子设备100出厂前,由技术人员预先设置的区域,本申请对该区域的具体位置和具体大小不作限制。In some embodiments of the present application, the default local area may be an area preset by technicians before the electronic device 100 leaves the factory, and the present application does not limit the specific location and specific size of the area.
在本申请的一些实施例中,电子设备100可以预先与一个或多个应用进行适配,并得到用户在使用该一个或多个应用时的惯常区域。电子设备100可以将该惯常区域作为默认局部区域。可理解,电子设备100与一个或多个应用进行预先适配的方法可参考上文,在此不再赘述。In some embodiments of the present application, the electronic device 100 may be pre-fitted with one or more applications, and obtain the habitual area of the user when using the one or more applications. The electronic device 100 may use the customary area as the default local area. It can be understood that the method for pre-adapting the electronic device 100 and one or more applications may refer to the above, and will not be repeated here.
在本申请的一些实施例中,显示区域9122可以包括控件91221。控件91221可以用于设置用户在使用第一应用时的局部触控采样率所对应的局部区域。In some embodiments of the present application, the display area 9122 may include a control 91221 . The control 91221 can be used to set the local area corresponding to the local touch sampling rate when the user uses the first application.
电子设备100可以检测到作用于控件91221的用户操作,响应于该用户操作,电子设备100可以显示图9B的用户界面920。The electronic device 100 may detect a user operation acting on the control 91221, and in response to the user operation, the electronic device 100 may display the user interface 920 of FIG. 9B.
用户界面920可以包括控件921和显示区域922。其中,控件921用于对第一应用的所有界面统一设置局部区域。显示区域922可以包括一个或多个控件。该一个或多个控件用于分别对第一应用的不同界面来设置局部区域。The user interface 920 may include controls 921 and a display area 922 . Wherein, the control 921 is used to uniformly set local areas for all interfaces of the first application. Display area 922 may include one or more controls. The one or more controls are used to respectively set local areas for different interfaces of the first application.
在本申请的一些实施例中,用户可以将电子设备100显示不同界面时用户触摸的惯常区域设置为局部区域。电子设备100显示相应界面时,可以提高该局部区域的触控采样率,即局部触控采样率。In some embodiments of the present application, the user may set the usual area touched by the user when the electronic device 100 displays different interfaces as the local area. When the electronic device 100 displays the corresponding interface, it can increase the touch sampling rate of the local area, that is, the local touch sampling rate.
在本申请的一些实施例中,显示区域922可以包括控件9221和控件9222。其中,控件9221用于设置电子设备100显示第一应用的界面U时所采取的局部触控采样率所对应的局部区域。控件9222用于设置电子设备100显示第一应用的界面V时所采取的局部触控采样率所对应的局部区域。可理解,显示区域922还可以包括用于设置电子设备100显示第一应用的其它界面(如界面W)时所采取的局部触控采样率所对应的局部区域的控件。In some embodiments of the present application, the display area 922 may include a control 9221 and a control 9222 . Wherein, the control 9221 is used to set the local area corresponding to the local touch sampling rate adopted when the electronic device 100 displays the interface U of the first application. The control 9222 is used to set the local area corresponding to the local touch sampling rate adopted when the electronic device 100 displays the interface V of the first application. It can be understood that the display area 922 may also include controls for setting a local area corresponding to a local touch sampling rate adopted when the electronic device 100 displays other interfaces (eg, interface W) of the first application.
电子设备100可以检测到作用于控件9221的用户操作,响应于该用户操作,电子设备100可以显示图9C所示的用户界面930。The electronic device 100 may detect a user operation acting on the control 9221, and in response to the user operation, the electronic device 100 may display the user interface 930 shown in FIG. 9C.
用户界面930可以包括显示区域931。显示区域931可以包括控件9311、控件9312、控件9313、控件9314、控件9315、控件9316和控件9317。其中,控件9311用于调用矩形工具。可理解,用户通过调用矩形工具可以在用户界面930上绘制矩形。控件9312用于调用椭圆工具。可理解,用户通过调用椭圆工具可以在用户界面930上绘制椭圆。控件9313用于调用直线工具。可理解,用户通过调用直线工具可以在用户界面930上绘制直线。控件9314用于调用画笔工具。可理解,用户通过调用画笔工具可以在用户界面930上绘制任意图案。控件9315用于撤回操作。也就是说,用户可以通过控件9315撤回已绘制的图案。控件9316用于退出用户界面930。也就是说,用户可以取消绘制。控件9317用于确定绘制的局部区域。The user interface 930 may include a display area 931 . The display area 931 may include a control 9311 , a control 9312 , a control 9313 , a control 9314 , a control 9315 , a control 9316 and a control 9317 . Among them, the control 9311 is used to call the rectangle tool. It can be understood that the user can draw a rectangle on the user interface 930 by invoking the rectangle tool. Control 9312 is used to invoke the ellipse tool. It can be understood that the user can draw an ellipse on the user interface 930 by calling the ellipse tool. Control 9313 is used to invoke the line tool. It can be understood that the user can draw a straight line on the user interface 930 by invoking the straight line tool. Control 9314 is used to invoke the brush tool. It can be understood that the user can draw any pattern on the user interface 930 by invoking the paintbrush tool. Control 9315 is used to undo operations. That is, the user can withdraw the drawn pattern through the control 9315. Control 9316 is used to exit user interface 930 . That is, the user can cancel drawing. Control 9317 is used to determine the local area to draw.
可理解,用户可以通过调用显示区域931所包括的绘图工具来在用户界面930上绘制局部区域。该局部区域为电子设备100显示第一应用的界面U时的局部触控采样率所对应的区域。It can be understood that the user can draw a local area on the user interface 930 by invoking a drawing tool included in the display area 931 . The local area is the area corresponding to the local touch sampling rate when the electronic device 100 displays the interface U of the first application.
示例性的,如图9C所示,用户可以绘制局部区域S15。区域S15为电子设备100显示第一应用的界面U时所采取的局部触控采样率所对应的局部区域。Exemplarily, as shown in FIG. 9C , the user can draw the partial area S15. The area S15 is a local area corresponding to the local touch sampling rate adopted when the electronic device 100 displays the interface U of the first application.
电子设备100可以检测到作用于控件9222的用户操作,响应于该用户操作,电子设备100可以显示图9D所示的用户界面940。The electronic device 100 may detect a user operation acting on the control 9222, and in response to the user operation, the electronic device 100 may display the user interface 940 shown in FIG. 9D.
用户界面940可以包括显示区域931。关于显示区域931的描述可以参考上文,在此不再赘述。The user interface 940 may include a display area 931 . For the description about the display area 931 , reference may be made to the above, and details are not repeated here.
可理解,用户可以通过调用显示区域931所包括的绘图工具来在用户界面940上绘制局部区域。该局部区域为电子设备100显示第一应用的界面V时的局部触控采样率所对应的区域。It can be understood that the user can draw a local area on the user interface 940 by invoking a drawing tool included in the display area 931 . The local area is the area corresponding to the local touch sampling rate when the electronic device 100 displays the interface V of the first application.
如图9D所示,用户可以绘制局部区域S16和区域S17。可理解,区域S16和区域S17的合集即为电子设备100显示第一应用的界面V时的局部触控采样率所对应的区域。As shown in FIG. 9D, the user can draw the partial area S16 and the area S17. It can be understood that the collection of the area S16 and the area S17 is the area corresponding to the local touch sampling rate when the electronic device 100 displays the interface V of the first application.
(2)开启智能调节触控采样率功能(2) Turn on the function of intelligently adjusting the touch sampling rate
电子设备100可以检测到作用于控件6411的用户操作,响应于该用户操作,电子设备100可以采取方式一来调节触控采样率。也就是说,电子设备100可以调节本设备的局部触控采样率和全局触控采样率。The electronic device 100 may detect a user operation acting on the control 6411, and in response to the user operation, the electronic device 100 may adopt a first method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and the global touch sampling rate of the device.
在本申请的一些实施例中,电子设备100可以检测到作用于控件6412的用户操作,响应于该用户操作,电子设备100可以采取方式二来调节触控采样率。也就是说,电子设备100可以调节本设备的局部触控采样率和互补触控采样率。In some embodiments of the present application, the electronic device 100 may detect a user operation acting on the control 6412, and in response to the user operation, the electronic device 100 may adopt a second method to adjust the touch sampling rate. That is to say, the electronic device 100 can adjust the local touch sampling rate and complementary touch sampling rate of the device.
(3)启动第一应用(3) Start the first application
电子设备100可以检测到作用于第一应用图标612的用户操作,响应于该用户操作,电子设备100可以启动第一应用,并显示图9E所示的用户界面660。The electronic device 100 may detect a user operation acting on the first application icon 612, and in response to the user operation, the electronic device 100 may start the first application and display the user interface 660 shown in FIG. 9E.
用户界面660可以包括控件661。用户可以通过触摸(或其他方式)控件661来开始游戏。 User interface 660 may include controls 661 . The user can start the game by touching (or otherwise) the control 661.
可理解,用户界面660为第一应用的界面U。电子设备100显示图9E所示的用户界面660时,可以提高触摸屏的区域S15的触控采样率,而降低全局触控采样率。It can be understood that the user interface 660 is the interface U of the first application. When the electronic device 100 displays the user interface 660 shown in FIG. 9E , the touch sampling rate of the area S15 of the touch screen may be increased, and the global touch sampling rate may be decreased.
在本申请的一些实施例中,电子设备100可以采取方式二来调节触控采样率。在这种情况下,电子设备100显示图9E所示的用户界面660时,可以提高触摸屏的区域S15的触控采样率,而降低相应的互补触控采样率。In some embodiments of the present application, the electronic device 100 may adopt a second method to adjust the touch sampling rate. In this case, when the electronic device 100 displays the user interface 660 shown in FIG. 9E , the touch sampling rate of the area S15 of the touch screen can be increased, and the corresponding complementary touch sampling rate can be decreased.
电子设备100可以检测到作用于控件661的用户操作,响应于该用户操作,电子设备100可以显示图9F所示的用户界面670。The electronic device 100 may detect a user operation acting on the control 661, and in response to the user operation, the electronic device 100 may display the user interface 670 shown in FIG. 9F.
可理解,用户界面670为第一应用的界面V。电子设备100显示图9F所示的用户界面670时,可以提高区域S16和区域S17的触控采样率,而降低全局触控采样率。It can be understood that the user interface 670 is the interface V of the first application. When the electronic device 100 displays the user interface 670 shown in FIG. 9F , the touch sampling rate of the regions S16 and S17 may be increased, while the global touch sampling rate may be reduced.
在本申请的一些实施例中,电子设备100可以采取方式二来调节触控采样率。在这种情况下,电子设备100显示图9F所示的用户界面670时,可以提高触摸屏的区域S16和区 域S17的触控采样率,而降低相应的互补触控采样率。In some embodiments of the present application, the electronic device 100 may adopt a second method to adjust the touch sampling rate. In this case, when the electronic device 100 displays the user interface 670 shown in FIG. 9F , the touch sampling rates of the regions S16 and S17 of the touch screen can be increased, and the corresponding complementary touch sampling rates can be reduced.
需要说明的是,图9E和图9F中的区域S15、区域S16、区域S17均为电子设备100的触摸屏上的区域,对于用户来说,是不可见的。也就是说,电子设备100显示图9E和图9F的用户界面时,用户看不见区域S15、区域S16和区域S17。但是,电子设备100提高这些区域的触控采样率后,用户可以明显感受到触摸这些区域时会更跟手。也就是说,用户的触控感受有所提高。It should be noted that the regions S15, S16 and S17 in FIG. 9E and FIG. 9F are all regions on the touch screen of the electronic device 100, which are invisible to the user. That is to say, when the electronic device 100 displays the user interface shown in FIG. 9E and FIG. 9F , the user cannot see the region S15 , region S16 and region S17 . However, after the electronic device 100 increases the touch sampling rate of these areas, the user can obviously feel that the touch of these areas will be more handy. In other words, the user's touch experience has been improved.
需要说明的是,电子设备100可以根据上述三种调节触控采样率的方法中的一种或多种方法,来调节本设备的触控采样率。也就是说,电子设备100可以将上述三种方法任意组合来调节触控采样率。It should be noted that the electronic device 100 may adjust the touch sampling rate of the device according to one or more of the above three methods for adjusting the touch sampling rate. That is to say, the electronic device 100 can adjust the touch sampling rate by any combination of the above three methods.
下面示例性的说明电子设备100如何结合上述第一种方法和第二种方法来调节触控采样率。The following exemplifies how the electronic device 100 adjusts the touch sampling rate in combination with the first method and the second method above.
在本申请的一些实施例中,电子设备100可以根据预先与第一应用适配的参数,或者调用接口,来调整触控采样率。在后续过程中,电子设备100再通过学习用户的触控习惯来调整用户触摸的惯常区域,进而改变局部触控采样率所对应的局部区域。In some embodiments of the present application, the electronic device 100 may adjust the touch sampling rate according to parameters pre-adapted to the first application, or by calling an interface. In the subsequent process, the electronic device 100 adjusts the habitual area touched by the user by learning the user's touch habit, and then changes the local area corresponding to the local touch sampling rate.
可理解,电子设备100调整局部触控采样率所对应的局部区域之后,还可以调整局部触控采样率。It can be understood that after the electronic device 100 adjusts the local region corresponding to the local touch sampling rate, it may further adjust the local touch sampling rate.
在本申请的一些实施例中,电子设备100还可以在根据预先适配时得到的参数,或者调用接口,确定用户触摸的惯常区域的情况下,通过扫描整个触摸屏或触摸屏中的互补区域所包括的触控感应点来学习用户的触摸习惯。In some embodiments of the present application, the electronic device 100 may also scan the entire touch screen or the complementary areas in the touch screen to determine the usual area touched by the user according to the parameters obtained during pre-fitting, or call the interface. The touch sensing points to learn the user's touch habits.
具体的,电子设备100显示图6G所示的用户界面时,电子设备100可以根据预先适配时得到的参数(或者调用接口)确定用户触摸的惯常区域为惯常区域X2。可理解,惯常区域X2为区域S5和区域S6的合集。电子设备100可以确定惯常区域X2的触控采样率,即局部触控采样率c2。另外,电子设备100还可以确定全局触控采样率c1和/或互补触控采样率c3。Specifically, when the electronic device 100 displays the user interface shown in FIG. 6G , the electronic device 100 may determine the habitual area touched by the user as the habitual area X2 according to the parameters obtained during pre-adaptation (or call the interface). It can be understood that the customary area X2 is a collection of the area S5 and the area S6. The electronic device 100 may determine the touch sampling rate of the habitual area X2, that is, the local touch sampling rate c2. In addition, the electronic device 100 may also determine the global touch sampling rate c1 and/or the complementary touch sampling rate c3.
可理解,电子设备100可以扫描惯常区域X2的互补区域所包括的触控感应点。在这个过程中,电子设备100可以记录一段时间内互补区域内变化次数大于第三阈值的触控感应点的位置。可理解,可以将这些触控感应点所属的区域记为区域Y。电子设备100可以将用户触摸的惯常区域调整为惯常区域X2与区域Y的合集。It can be understood that the electronic device 100 can scan the touch sensing points included in the complementary area of the normal area X2. During this process, the electronic device 100 may record the positions of the touch sensing points whose number of changes in the complementary area is greater than the third threshold within a period of time. It can be understood that the area to which these touch sensing points belong can be marked as area Y. The electronic device 100 may adjust the habitual area touched by the user as a collection of the habitual area X2 and the area Y.
示例性的,触控感应点可以为电容感应点。电子设备100可以记录一段时间内互补区域内电容变化次数大于第三阈值的电容感应点的位置。Exemplarily, the touch sensing point may be a capacitive sensing point. The electronic device 100 may record the positions of capacitance sensing points whose capacitance changes in the complementary area are greater than the third threshold within a period of time.
示例性的,如图10所示,调整后的惯常区域为区域S18和区域S19的合集。可理解,区域S18和区域S19的合集即为惯常区域X2和区域Y的合集。Exemplarily, as shown in FIG. 10 , the adjusted habitual area is a collection of area S18 and area S19 . It can be understood that the set of the area S18 and the area S19 is the set of the customary area X2 and the area Y.
可理解,第三阈值可以根据实际需求来确定,本申请对此不做限制。It can be understood that the third threshold may be determined according to actual requirements, which is not limited in the present application.
需要说明的是,电子设备100调整用户触摸的惯常区域后,局部触控采样率即为调整后的惯常区域的触控采样率。It should be noted that after the electronic device 100 adjusts the habitual area touched by the user, the partial touch sampling rate is the adjusted touch sampling rate of the habitual area.
在本申请的一些实施例中,电子设备100调整用户触摸的惯常区域后,还可以调整局 部触控采样率和全局触控采样率。例如,电子设备100可以提高局部触控采样率c2,降低全局触控采样率c1。In some embodiments of the present application, after the electronic device 100 adjusts the habitual area touched by the user, it can also adjust the local touch sampling rate and the global touch sampling rate. For example, the electronic device 100 may increase the local touch sampling rate c2 and decrease the global touch sampling rate c1.
在本申请的一些实施例中,电子设备100调整用户触摸的惯常区域后,还可以调整局部触控采样率和互补触控采样率。例如,电子设备100可以提高局部触控采样率c2,降低互补触控采样率c3。In some embodiments of the present application, after adjusting the habitual area touched by the user, the electronic device 100 may also adjust the partial touch sampling rate and the complementary touch sampling rate. For example, the electronic device 100 may increase the partial touch sampling rate c2 and decrease the complementary touch sampling rate c3.
需要说明的是,上述图6A-图6G、图8A-图8D、图9A-图9F和图10所示的用户界面仅为本申请实施例提供的示例,这些用户界面还可以包括不同的内容,也可以有不同的表现形式,本申请对此不作限制。It should be noted that the above user interfaces shown in Figure 6A-6G, Figure 8A-8D, Figure 9A-9F and Figure 10 are only examples provided by the embodiment of this application, and these user interfaces may also include different content , may also have different forms of expression, which is not limited in this application.
另外,第一应用不仅可以为如图6F、图6G、图8A-图8D、图9E、图9F和图10所示的游戏应用,还可以为其他类型的应用,本申请对此不作限制。In addition, the first application can be not only the game application shown in FIG. 6F, FIG. 6G, FIG. 8A-8D, FIG. 9E, FIG. 9F and FIG. 10, but also other types of applications, which is not limited in this application.
下面结合图11,介绍本申请实施例提供的一种触控采样率调节方法。A touch sampling rate adjustment method provided by an embodiment of the present application is introduced below with reference to FIG. 11 .
S1101:电子设备100获取第一区域信息。S1101: The electronic device 100 acquires first area information.
在本申请的一些实施例中,第一界面可以为第一应用的用户界面。例如,第一界面可以为第一应用的主界面。即图6F、图8A、图8B和图9E所示的用户界面660。In some embodiments of the present application, the first interface may be a user interface of the first application. For example, the first interface may be the main interface of the first application. That is, the user interface 660 shown in FIG. 6F , FIG. 8A , FIG. 8B and FIG. 9E .
示例性的,电子设备100可以检测到作用于第一应用图标的用户操作,响应于该用户操作,电子设备100可以显示第一界面。可理解,第一应用图标可以为图6A所示的用户界面610中的第一应用图标612。Exemplarily, the electronic device 100 may detect a user operation acting on the first application icon, and in response to the user operation, the electronic device 100 may display the first interface. It can be understood that the first application icon may be the first application icon 612 in the user interface 610 shown in FIG. 6A .
在本申请的一些实施例中,电子设备100显示第一界面时的触控采样率可以为触控采样率B。可理解,关于触控采样率B的相关描述可参考上文,在此不再赘述。In some embodiments of the present application, the touch sampling rate when the electronic device 100 displays the first interface may be the touch sampling rate B. It can be understood that the related description about the touch sampling rate B can refer to the above, and will not be repeated here.
在本申请的一些实施例中,第一界面还可以为电子设备100的桌面。例如,第一界面可以为图6A所示的用户界面610。当然,第一界面还可以为电子设备100的其它界面,本申请对此不作限制。In some embodiments of the present application, the first interface may also be the desktop of the electronic device 100 . For example, the first interface may be the user interface 610 shown in FIG. 6A. Of course, the first interface may also be other interfaces of the electronic device 100, which is not limited in this application.
在本申请的一些实施例中,第一区域信息为用户针对第一应用或第一界面设置的第一区域的相关信息。第一区域的相关信息可以包括第一区域的位置和尺寸。In some embodiments of the present application, the first area information is information related to the first area set by the user for the first application or the first interface. The relevant information of the first area may include the position and size of the first area.
S1102:电子设备100基于第一区域信息提高第一区域的触控采样率。其中,第一区域为电子设备100的触摸屏的局部区域。S1102: The electronic device 100 increases the touch sampling rate of the first area based on the first area information. Wherein, the first area is a partial area of the touch screen of the electronic device 100 .
可理解,触控采样率为针对触摸屏的触控信号的采样率。关于触控采样率的描述可以参考前述实施例,在此不再详细说明。It can be understood that the touch sampling rate is a sampling rate for touch signals of the touch screen. For the description about the touch sampling rate, reference may be made to the foregoing embodiments, and no further details are given here.
在执行步骤S1101之前,电子设备100还可以与第一应用或第一界面进行适配,并记录适配所得的参数。可理解,该参数为第一应用或第一界面所对应的触摸屏的相关区域的相关信息。在本申请的一些实施例中,该相关区域的相关信息可以包括该相关区域的位置和尺寸。Before step S1101 is performed, the electronic device 100 may also perform adaptation with the first application or the first interface, and record parameters obtained from the adaptation. It can be understood that the parameter is information about a relevant area of the touch screen corresponding to the first application or the first interface. In some embodiments of the present application, the relevant information of the relevant area may include the location and size of the relevant area.
需要说明的是,在本申请中,电子设备100与第一应用的应用标识进行适配,与电子设备100与第一应用进行适配表示的含义相同。类似的,本申请中,电子设备100与表征第一界面的信息进行适配,与电子设备100与第一界面进行适配表示的含义相同。It should be noted that, in this application, the electronic device 100 adapts to the application identifier of the first application, which means that the electronic device 100 adapts to the first application. Similarly, in this application, the electronic device 100 adapts to the information characterizing the first interface, which means that the electronic device 100 adapts to the first interface.
示例性的,电子设备100可以与一个或多个应用进行适配,并记录参数。可理解,该参数为该一个或多个应用的用户界面所对应的触摸屏的相关区域的相关信息。Exemplarily, the electronic device 100 may be adapted to one or more applications and record parameters. It can be understood that the parameter is related information of the relevant area of the touch screen corresponding to the user interface of the one or more applications.
可理解,该相关区域可以根据用户界面的控件信息来确定。例如,电子设备100可以 根据控件信息确定控件的位置和分布情况,并记录控件所在区域的位置和尺寸。其中,控件所在区域为控件在显示界面中的区域所对应的触摸屏的触摸区域。可理解,上文提及的电子设备100记录的参数可以包括该控件所在区域的位置和尺寸。可理解,控件信息的相关描述,以及具体实现方式可参考前述实施例,在此不再赘述。It can be understood that the relevant area may be determined according to the control information of the user interface. For example, the electronic device 100 may determine the position and distribution of the controls according to the control information, and record the position and size of the area where the controls are located. Wherein, the area where the control is located is the touch area of the touch screen corresponding to the area of the control in the display interface. It can be understood that the above-mentioned parameters recorded by the electronic device 100 may include the position and size of the area where the control is located. It can be understood that for related descriptions and specific implementation manners of the control information, reference may be made to the foregoing embodiments, and details are not repeated here.
在本申请的一些实施例中,电子设备100与第一应用或第一界面适配时记录的参数包括:基于第一应用的控件信息,记录的第一应用中的控件所在区域的位置和尺寸;或者,基于第一界面的控件信息,记录的第一界面中的控件所在区域的位置和尺寸。In some embodiments of the present application, the parameters recorded when the electronic device 100 adapts to the first application or the first interface include: based on the control information of the first application, the recorded position and size of the area where the control in the first application is located ; Or, based on the control information of the first interface, the position and size of the area where the control in the first interface is recorded.
需要说明的是,适配的相关描述可以参考前述实施例,在此不再赘述。It should be noted that, for related descriptions of adaptation, reference may be made to the foregoing embodiments, and details are not repeated here.
在本申请的一些实施例中,电子设备100可以获取用户针对第一应用或第一界面设置的第一区域的相关信息。可理解,第一区域的相关信息可以包括但不限于第一区域的位置和尺寸。用户设置的具体实现方式可以参考前述实施例,在此不再赘述。In some embodiments of the present application, the electronic device 100 may acquire information about the first area set by the user for the first application or the first interface. It can be understood that the relevant information of the first area may include but not limited to the position and size of the first area. For the specific implementation manner of the user setting, reference may be made to the foregoing embodiments, and details are not repeated here.
在本申请的一些实施例中,电子设备100可以通过学习用户的触控习惯来确定第一区域。具体地,电子设备100显示用户界面时,可以扫描触摸屏的触控感应点,获取所述触控感应点处的触控信号。电子设备100还可以记录时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点的位置。可理解,这些触控感应点所在的区域即为用户经常触摸的区域。即用户触摸的惯常区域。In some embodiments of the present application, the electronic device 100 may determine the first area by learning the touch habit of the user. Specifically, when the electronic device 100 displays the user interface, it may scan the touch sensing points of the touch screen to acquire touch signals at the touch sensing points. The electronic device 100 may also record the position of the touch sensing point corresponding to the touch signal whose change times are greater than the first threshold within the time T1. It can be understood that the areas where these touch sensing points are located are the areas frequently touched by the user. That is, the usual area that the user touches.
可理解,电子设备的用户界面包括第一界面。电子设备100显示第一界面的情况下,可以将之前所得的时间T1内电容变化次数大于第一阈值的触控信号所对应的触控感应点所在的区域作为第一区域。It can be understood that the user interface of the electronic device includes a first interface. When the electronic device 100 displays the first interface, the area where the touch sensing point corresponding to the touch signal whose capacitance change times is greater than the first threshold obtained before in the time T1 can be used as the first area.
可理解,电子设备的用户界面包括第一应用的用户界面。电子设备显示第一应用的用户界面的情况下,可以将之前所得的时间T1内电容变化次数大于第一阈值的触控信号所对应的触控感应点所在的区域作为第一区域。It can be understood that the user interface of the electronic device includes the user interface of the first application. When the electronic device displays the user interface of the first application, the area where the touch sensing point corresponding to the touch signal whose capacitance change times is greater than the first threshold obtained before in the time T1 can be used as the first area.
在本申请的一些实施例中,电子设备100可以通过调用接口来获取第一区域信息。可理解,第一区域信息可以包括但不限于第一区域的位置和尺寸。In some embodiments of the present application, the electronic device 100 may acquire the first area information by calling an interface. It can be understood that the first area information may include but not limited to the position and size of the first area.
在本申请的一些实施例中,电子设备100在提高第一区域的触控采样率的情况下,还可以降低全局触控采样率。可理解,全局触控采样率为电子设备100每秒钟扫描触摸屏中的全部触控感应点的次数。需要说明的是,电子设备100降低全局触控采样率后,第一区域的触控采样率高于全局触控采样率。In some embodiments of the present application, the electronic device 100 may also reduce the global touch sampling rate while increasing the touch sampling rate of the first region. It can be understood that the global touch sampling rate is the number of times the electronic device 100 scans all touch sensing points in the touch screen per second. It should be noted that after the electronic device 100 reduces the global touch sampling rate, the touch sampling rate of the first region is higher than the global touch sampling rate.
在本申请的一些实施例中,电子设备100在提高第一区域的触控采样率的情况下,还可以降低互补区域的触控采样率(即互补触控采样率)。可理解,互补触控采样率为第一区域的互补区域的触控采样率。而互补区域为触摸屏中除第一区域外的区域。In some embodiments of the present application, while increasing the touch sampling rate of the first area, the electronic device 100 may also decrease the touch sampling rate of the complementary area (ie, complementary touch sampling rate). It can be understood that the complementary touch sampling rate is the touch sampling rate of the complementary area of the first area. The complementary area is an area of the touch screen other than the first area.
在本申请的一些实施例中,电子设备100可以设置白名单。具体地,电子设备100可以接收第一指令,该第一指令用于开启白名单;电子设备100还可以接收第二指令,该第二指令用于设置白名单中的应用。可理解,在电子设备100启动白名单中包括的应用,并 显示相应界面的情况下,电子设备100可以调节触控采样率。需要说明的是,第一应用为白名单中的应用。In some embodiments of the present application, the electronic device 100 may set a white list. Specifically, the electronic device 100 may receive a first instruction for enabling the whitelist; the electronic device 100 may also receive a second instruction for setting applications in the whitelist. It can be understood that, when the electronic device 100 starts the application included in the white list and displays the corresponding interface, the electronic device 100 can adjust the touch sampling rate. It should be noted that the first application is an application in the white list.
可理解,第一区域可以为图6F所示的惯常区域X1、图6G所示的惯常区域X2、图8B所示的惯常区域X3、图8D所示的惯常区域X4、图9E所示的区域S15、图9F所示的区域S16和区域S17的合集,以及图10所示的区域S18和区域S19的合集。It can be understood that the first area may be the usual area X1 shown in FIG. 6F, the usual area X2 shown in FIG. 6G, the customary area X3 shown in FIG. 8B, the customary area X4 shown in FIG. S15, the set of the area S16 and the area S17 shown in FIG. 9F , and the set of the area S18 and the area S19 shown in FIG. 10 .
可理解,采用图11所示的触控采样率调节方法可以获取电子设备100在显示不同用户界面时,用户触摸的惯常区域。电子设备100可以在显示不同用户界面时,提升相应的局部触控采样率,并降低全局触控采样率或互补触控采样率,可以在不耗费计算资源的情况下,提升电子设备100的触摸屏的触控敏感度,从而提高用户的触控体验。It can be understood that the habitual area touched by the user when the electronic device 100 displays different user interfaces can be obtained by using the touch sampling rate adjustment method shown in FIG. 11 . The electronic device 100 can increase the corresponding local touch sampling rate and reduce the global touch sampling rate or complementary touch sampling rate when displaying different user interfaces, and can improve the touch screen of the electronic device 100 without consuming computing resources. The touch sensitivity can improve the user's touch experience.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still apply to the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of each embodiment of the application.

Claims (11)

  1. 一种触控采样率调节方法,其特征在于,应用于设置有触摸屏的电子设备,所述方法包括:A touch sampling rate adjustment method, characterized in that it is applied to an electronic device provided with a touch screen, the method comprising:
    获取第一区域信息;Obtain the information of the first area;
    基于所述第一区域信息提高第一区域的触控采样率;所述第一区域为所述触摸屏的局部区域;所述触控采样率为针对所述触摸屏的触控信号的采样率。The touch sampling rate of the first area is increased based on the first area information; the first area is a local area of the touch screen; the touch sampling rate is a sampling rate of a touch signal of the touch screen.
  2. 如权利要求1所述的方法,其特征在于,所述获取第一区域信息,具体包括:The method according to claim 1, wherein said obtaining the first area information specifically comprises:
    基于所述电子设备与第一应用或第一界面适配时记录的参数,获取所述第一区域信息;所述参数包括所述第一区域的位置和尺寸。Acquiring the first area information based on parameters recorded when the electronic device is adapted to the first application or the first interface; the parameters include the position and size of the first area.
  3. 如权利要求2所述的方法,其特征在于,所述电子设备与第一应用或第一界面适配时记录的参数包括:基于所述第一应用的控件信息,记录的所述第一应用中的控件所在区域的位置和尺寸;The method according to claim 2, wherein the parameters recorded when the electronic device is adapted to the first application or the first interface include: based on the control information of the first application, the recorded parameters of the first application The position and size of the area where the control is located;
    或者,基于所述第一界面的控件信息,记录的所述第一界面中的控件所在区域的位置和尺寸。Or, based on the control information of the first interface, the recorded position and size of the area where the control in the first interface is located.
  4. 如权利要求1所述的方法,其特征在于,所述获取第一区域信息之前,所述方法还包括:The method according to claim 1, characterized in that, before the acquisition of the first area information, the method further comprises:
    显示所述第一应用的用户界面或所述第一界面,记录时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在区域的位置和尺寸;Displaying the user interface of the first application or the first interface, and recording the position and size of the area where the touch sensing point is located corresponding to the touch signal whose change times are greater than the first threshold within the time T1;
    所述获取第一区域信息,具体包括:The acquisition of the first area information specifically includes:
    根据所述时间T1内变化次数大于第一阈值的触控信号所对应的触控感应点所在区域的位置和尺寸,获取所述第一区域信息。The first area information is acquired according to the position and size of the area where the touch sensing point is located corresponding to the touch signal whose change times are greater than a first threshold within the time T1.
  5. 如权利要求1所述的方法,其特征在于,所述第一区域信息为用户针对所述第一应用或所述第一界面设置的所述第一区域的相关信息;所述第一区域的相关信息包括所述第一区域的位置和尺寸。The method according to claim 1, wherein the first area information is information related to the first area set by the user for the first application or the first interface; The relevant information includes the location and size of the first area.
  6. 如权利要求2-5任一项所述的方法,其特征在于,所述第一界面为第一应用的用户界面。The method according to any one of claims 2-5, wherein the first interface is a user interface of a first application.
  7. 如权利要求2-5所述的方法,其特征在于,所述获取第一区域信息之前,所述方法还包括:The method according to claims 2-5, characterized in that, before acquiring the first area information, the method further comprises:
    接收第一指令;所述第一指令用于开启白名单;receiving a first instruction; the first instruction is used to enable a whitelist;
    接收第二指令;所述第二指令用于设置所述白名单中的应用;receiving a second instruction; the second instruction is used to set the applications in the white list;
    根据所述第一应用的应用标识,确定所述第一应用为所述白名单中的应用。According to the application identifier of the first application, determine that the first application is an application in the white list.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述基于所述第一区域信息提高 第一区域的触控采样率之后,所述方法还包括:The method according to any one of claims 1-7, wherein after the touch sampling rate of the first area is increased based on the first area information, the method further comprises:
    降低所述触摸屏的全局触控采样率;所述全局触控采样率为所述电子设备每秒钟扫描所述触摸屏中的全部触控感应点的次数;Reduce the global touch sampling rate of the touch screen; the global touch sampling rate is the number of times the electronic device scans all touch sensing points in the touch screen per second;
    其中,所述第一区域的触控采样率高于所述全局触控采样率。Wherein, the touch sampling rate of the first area is higher than the global touch sampling rate.
  9. 如权利要求1-7任一项所述的方法,其特征在于,所述基于所述第一区域信息提高第一区域的触控采样率之后,所述方法还包括:The method according to any one of claims 1-7, wherein after the touch sampling rate of the first area is increased based on the first area information, the method further comprises:
    降低所述第一区域的互补区域的触控采样率;所述互补区域为所述触摸屏中除所述第一区域外的区域。Decreasing the touch sampling rate of the complementary area of the first area; the complementary area is an area of the touch screen other than the first area.
  10. 一种电子设备,包括触摸屏、存储器、一个或多个处理器,其特征在于,所述存储器用于存储计算机程序;所述处理器用于调用所述计算机程序,使得所述电子设备执行权利要求1-9中任一项所述的方法。An electronic device, comprising a touch screen, a memory, and one or more processors, wherein the memory is used to store a computer program; the processor is used to call the computer program, so that the electronic device executes claim 1 - the method described in any one of 9.
  11. 一种计算机存储介质,其特征在于,包括:计算机指令;当所述计算机指令在电子设备上运行时,使得所述电子设备执行权利要求1-9中任一项所述的方法。A computer storage medium, characterized by comprising: computer instructions; when the computer instructions are run on an electronic device, the electronic device is made to execute the method described in any one of claims 1-9.
PCT/CN2022/091952 2021-08-28 2022-05-10 Touch-control sampling rate adjustment method and related apparatus WO2023029565A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110999104.8 2021-08-28
CN202110999104.8A CN115933952B (en) 2021-08-28 2021-08-28 Touch sampling rate adjusting method and related device

Publications (2)

Publication Number Publication Date
WO2023029565A1 true WO2023029565A1 (en) 2023-03-09
WO2023029565A9 WO2023029565A9 (en) 2023-06-01

Family

ID=85410834

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091952 WO2023029565A1 (en) 2021-08-28 2022-05-10 Touch-control sampling rate adjustment method and related apparatus

Country Status (2)

Country Link
CN (1) CN115933952B (en)
WO (1) WO2023029565A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207695A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Method for controlling sampling rate of touch screen and electric device
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
CN103809884A (en) * 2012-11-07 2014-05-21 联想(北京)有限公司 Touch feedback method, touch feedback screen and electronic device
WO2016082245A1 (en) * 2014-11-26 2016-06-02 深圳市华星光电技术有限公司 In-cell touch screen and driving method therefor
CN110362225A (en) * 2019-06-18 2019-10-22 腾讯科技(成都)有限公司 Touch screen sample frequency control method, device, medium and electronic equipment

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101895883B1 (en) * 2011-11-09 2018-09-10 삼성전자 주식회사 Method and apparatus for improving touch sensitivity of touchscreen panel
CN105094508A (en) * 2014-05-15 2015-11-25 青岛海信移动通信技术股份有限公司 Method and apparatus for performing window control on application program of mobile terminal
US9354744B2 (en) * 2014-06-09 2016-05-31 Sony Corporation Adaptive touch panel synchronization
CN104536627B (en) * 2014-12-29 2017-11-14 厦门天马微电子有限公司 A kind of touch-control driving testing circuit, display panel and display device
CN109416600A (en) * 2016-07-06 2019-03-01 夏普株式会社 Touch panel control device and electronic equipment
US10373592B2 (en) * 2016-08-01 2019-08-06 Facebook Technologies, Llc Adaptive parameters in image regions based on eye tracking information
WO2018058340A1 (en) * 2016-09-28 2018-04-05 深圳市汇顶科技股份有限公司 Touch chip and method for touch chip in detecting touched point on touchscreen
CN107168596B (en) * 2017-07-25 2020-09-22 业成科技(成都)有限公司 Scanning method of capacitive touch screen and capacitive touch screen
CN107484231B (en) * 2017-07-28 2020-09-15 Oppo广东移动通信有限公司 Screen parameter adjusting method, device, terminal and computer readable storage medium
CN107291302B (en) * 2017-07-28 2020-02-07 Oppo广东移动通信有限公司 Control method and device of touch screen, storage medium and terminal
CN108334228B (en) * 2018-01-30 2021-03-16 厦门天马微电子有限公司 Touch screen, driving method thereof and touch device
CN109840061A (en) * 2019-01-31 2019-06-04 华为技术有限公司 The method and electronic equipment that control screen is shown
CN110502153B (en) * 2019-08-30 2022-11-11 Oppo(重庆)智能科技有限公司 Touch screen point reporting rate adjusting method, touch screen, electronic device and storage medium
CN111813270B (en) * 2020-08-25 2024-01-23 京东方科技集团股份有限公司 Touch detection method and device and touch display device
CN112612372A (en) * 2020-12-22 2021-04-06 努比亚技术有限公司 Touch event regulation and control method and device and computer readable storage medium
CN113721785B (en) * 2021-07-07 2022-08-12 荣耀终端有限公司 Method for adjusting sampling rate of touch screen and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207695A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Method for controlling sampling rate of touch screen and electric device
CN103809884A (en) * 2012-11-07 2014-05-21 联想(北京)有限公司 Touch feedback method, touch feedback screen and electronic device
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
WO2016082245A1 (en) * 2014-11-26 2016-06-02 深圳市华星光电技术有限公司 In-cell touch screen and driving method therefor
CN110362225A (en) * 2019-06-18 2019-10-22 腾讯科技(成都)有限公司 Touch screen sample frequency control method, device, medium and electronic equipment

Also Published As

Publication number Publication date
WO2023029565A9 (en) 2023-06-01
CN115933952B (en) 2023-11-24
CN115933952A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
EP3872609B1 (en) Application display method and electronic device
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
WO2021000881A1 (en) Screen splitting method and electronic device
US11930130B2 (en) Screenshot generating method, control method, and electronic device
WO2021000804A1 (en) Display method and apparatus in locked state
WO2021036770A1 (en) Split-screen processing method and terminal device
WO2022068483A1 (en) Application startup method and apparatus, and electronic device
WO2021063098A1 (en) Touch screen response method, and electronic device
WO2022017393A1 (en) Display interaction system, display method, and device
WO2021078032A1 (en) User interface display method and electronic device
WO2022068819A1 (en) Interface display method and related apparatus
WO2022037726A1 (en) Split-screen display method and electronic device
CN113986070B (en) Quick viewing method for application card and electronic equipment
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
WO2022053006A1 (en) Proximity light sensor control method and related device
WO2023130921A1 (en) Method for page layout adapted to multiple devices, and electronic device
WO2023093169A1 (en) Photographing method and electronic device
WO2020238759A1 (en) Interface display method and electronic device
WO2022052712A1 (en) Method and apparatus for processing interaction event
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2023030168A1 (en) Interface display method and electronic device
WO2022002213A1 (en) Translation result display method and apparatus, and electronic device
WO2023029565A1 (en) Touch-control sampling rate adjustment method and related apparatus
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22862708

Country of ref document: EP

Kind code of ref document: A1