Touch screen sliding response control method and device, and electronic device

By predicting and reporting points during the point reporting cycle of the touch screen, and using machine learning algorithms to determine the prediction algorithm, the problem of high cost or increased power consumption in the existing technology is solved, and faster sliding response performance and better performance are achieved. Good user experience.

CN113448482BActive Publication Date: 2024-09-13HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010219561.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-25
Publication Date
2024-09-13
Estimated Expiration
2040-03-25

AI Technical Summary

Technical Problem

In the existing technology, when improving the sliding response performance of a touch screen, the cost is high or the power consumption increases, which makes it difficult to effectively shorten the hand response time and affects the user experience.

Method used

By predicting the reporting point during the reporting period of the touch screen, if the preset conditions are met (for example, the current reporting point data is generated by the MOVE event), the next reporting point data will be predicted based on the cached reporting point data, and the predicted reporting point will be reported. Point data is reported to the front-end application, sliding response operations are triggered in advance, and machine learning algorithms are used to determine prediction algorithms to improve accuracy.

Benefits of technology

It reduces the system delay time from the input subsystem to the UI window meeting the sliding threshold, improves the sliding response performance of the touch screen, improves the user experience, and avoids increases in cost and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113448482B
    Figure CN113448482B
Patent Text Reader

Abstract

The embodiments of the present application provide a method and device for controlling the sliding response of a touch screen, and an electronic device. The present application relates to the field of machine learning. The method includes: when receiving the current point reporting data in the current point reporting period, determining whether to perform a point reporting prediction; if so, determining whether the current point reporting data meets a preset condition; wherein the preset condition includes that the current point reporting data is generated by a MOVE event; if the preset condition is met, predicting the next point reporting data based on the cached point reporting data to obtain predicted point reporting data; replacing the current point reporting data with the predicted point reporting data in the current point reporting period and reporting it to the foreground application, so that the foreground application triggers the sliding response operation in advance. This technical solution shortens the hand-following response time of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of touch technology, and in particular to a method and device for controlling sliding response of a touch screen, and an electronic device. Background Art

[0002] The hand tracking response time is a key indicator to measure the touch experience. Within the range that can be perceived by the human body, shortening the hand tracking response time can improve the hand tracking performance and improve the user's touch experience. At the same time, various mobile phone manufacturers and media reviews are also paying more and more attention to hand tracking performance.

[0003] Hand tracking performance refers to the end-to-end processing delay from the user touching the touch panel (TP) to the touch panel display. It is an end-to-end performance data that can reflect the overall comprehensive processing performance of the mobile phone. First, the time delay from the hand touching the screen to the TP kernel layer scanning the point, that is, the first point delay; second, the delay of the kernel layer's point reporting data being transmitted to the input subsystem and then encapsulated in the input subsystem and transmitted to the user interface (UI) window; then the delay of the UI control responding to the point reporting event to trigger UI drawing and Render thread rendering; then the delay of sending the rendering to the Android layer synthesis module (Surface Flinger, SF) for synthesis; finally, the display delay of the synthesized data being sent to the touch screen display. These delays constitute the overall hand tracking performance delay, so the improvement of each section can improve the hand tracking performance.

[0004] In the prior art, one way to improve the tracking performance of sliding is to improve the first point fast reporting scheme to reduce the time consumption on the TP side, such as increasing the TP scanning frequency. For example, the mobile phone manufacturer Black Shark has increased the TP scanning frequency to 240HZ to increase the delay from touching the touch screen to the first reporting point data being reported to the input subsystem. However, this increases the requirements for the touch screen and increases the cost. Another way to improve the tracking performance of sliding is to increase the CPU frequency, reduce the delay time from the input subsystem to the UI, and improve the tracking response. For example, mobile phone manufacturers such as Samsung S10 and Xiaomi 9 have increased the CPU frequency for the key thread from the input subsystem to the UI. However, this method increases the power consumption of electronic devices. Summary of the invention

[0005] The embodiments of the present application provide a method and device for controlling sliding response of a touch screen, and an electronic device, which shorten the hand-following response time of the electronic device.

[0006] According to a first aspect of an embodiment of the present application, a method for controlling a sliding response of a touch screen is provided, the method comprising: upon receiving current point reporting data in a current point reporting period, determining whether to perform a point reporting prediction; if so, determining whether the current point reporting data satisfies a preset condition; wherein the preset condition comprises that the current point reporting data is generated by a MOVE event; if the preset condition is satisfied, predicting the next point reporting data based on the cached point reporting data to obtain predicted point reporting data; and replacing the current point reporting data with the predicted point reporting data in the current point reporting period and reporting it to a foreground application, so that the foreground application triggers a sliding response operation in advance.

[0007] In one possible design, the determination of whether to perform a point prediction includes: determining a current sliding speed based on the current point reporting data and the cached point reporting data; wherein the current sliding speed is the sliding speed at a sampling moment corresponding to the current point reporting data; determining whether the current sliding speed is within a preset sliding speed range; if so, determining to perform a point prediction; if not, determining not to perform a point prediction.

[0008] In one possible design, predicting the next reporting point data based on the cached reporting point data to obtain predicted reporting point data includes: determining a prediction algorithm according to a current application scenario; determining the predicted reporting point data based on the prediction algorithm; wherein the prediction algorithm includes an algorithm based on machine learning.

[0009] In a possible design, the prediction of the next point reporting data based on the cached point reporting data to obtain the predicted point reporting data includes: calculating the acceleration of the touch point position corresponding to the current point reporting data on the touch screen according to the sliding speed and the point reporting period of each cached point reporting data on the touch point position corresponding to the touch screen; determining the predicted position trajectory of the next point reporting data on the touch screen according to the prediction time interval; determining the predicted position of the next point reporting data on the predicted position trajectory based on the acceleration of the touch point position corresponding to the current point reporting data on the touch screen; determining the predicted point reporting data based on the predicted position; wherein the prediction time interval refers to the time from the touch point position corresponding to the current point reporting data on the touch screen to the predicted position.

[0010] In one possible design, the prediction time interval is determined based on a current application scenario.

[0011] In one possible design, the determination of whether to perform a reporting point prediction includes: determining whether the current application scenario is an application scenario suitable for reporting point prediction.

[0012] The determining whether the preset condition is met also includes: determining whether the number of cached reporting point data meets the requirement of reporting point prediction.

[0013] In one possible design, the method further includes: when current point reporting data is received in a current point reporting period, if no point reporting prediction is performed, then reporting the current point reporting data to the foreground application in the current point reporting period.

[0014] In one possible design, replacing the current point reporting data with the predicted point reporting data in the current point reporting period and reporting the data to the foreground application includes: storing the current point reporting data in a designated area for acquisition by the foreground application.

[0015] In one possible design, the method also includes: the foreground application distributes the acquired current reporting data to the window control of the foreground application, so that the foreground control triggers the foreground application to respond to the sliding operation in advance according to the current reporting data.

[0016] In one possible design, the method also includes: if the current point reporting data is generated by a DOWN event or a MOVE event, then caching the current point reporting data; if the current point reporting data is generated by an UP event, then clearing the cached point reporting data.

[0017] In a possible design, the method further includes: if the touch point position corresponding to the predicted point reporting data on the touch screen exceeds the boundary of the touch screen, adjusting the predicted point reporting data based on the boundary of the touch screen.

[0018] In a possible design, the method also includes: determining the direction of the sliding trajectory based on the cached reporting point data; if the touch point position corresponding to the predicted reporting point data on the touch screen is opposite to the direction of the sliding trajectory, adjusting the predicted reporting point data.

[0019] According to a second aspect of the embodiment of the present application, there is provided a sliding response control device for a touch screen, comprising: a reporting point prediction determination module, configured to determine whether to perform reporting point prediction when receiving current reporting point data in a current reporting point cycle;

[0020] A preset condition judgment module is used to judge whether the current point reporting data meets the preset conditions if the judgment result of the point reporting prediction determination module is yes; wherein the preset conditions include that the current point reporting data is generated by a MOVE event; a predicted point reporting data algorithm module is used to predict the next point reporting data based on the cached point reporting data to obtain predicted point reporting data if the judgment result of the point reporting prediction determination module is that the preset conditions are met; a point reporting data reporting module is used to replace the current point reporting data with the predicted point reporting data in the current point reporting period and report it to the foreground application, so that the foreground application triggers the sliding response operation in advance.

[0021] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and is characterized in that when the program instructions are loaded and executed by the processor, the electronic device executes the above-mentioned touch screen sliding response control method.

[0022] In a fourth aspect of an embodiment of the present application, a storage medium is provided, including: the storage medium includes a stored program, characterized in that when the program is running, the device where the storage medium is located is controlled to execute a sliding response control method for a touch screen.

[0023] Compared with the prior art, this technical solution has at least the following beneficial effects:

[0024] According to the sliding response control method of the touch screen provided by the embodiment of the present application, when receiving the current point reporting data in the current point reporting period, it is determined whether the preset conditions are met, and the preset conditions at least include that the current point reporting data is generated by a MOVE event; if so, it is further determined whether to perform point reporting prediction; if point reporting prediction is performed, the next point reporting data is predicted based on the cached point reporting data to obtain predicted point reporting data. Then, in the current point reporting period, the current point reporting data is replaced with the predicted point reporting data and reported to the foreground application, so that the foreground application triggers the sliding response operation in advance. In this way, the touch screen can start the sliding response at least one point reporting period in advance, thereby reducing the system delay time from the input subsystem to the UI window meeting the sliding threshold.

[0025] Further, determine whether the current application scenario of the electronic device is suitable for the application scenario of point reporting prediction. If so, when performing point reporting prediction, you can select a corresponding prediction algorithm based on the current application scenario, and use the selected prediction algorithm to process the received point reporting data to obtain predicted point reporting data. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0027] Figure 2 The present invention is a schematic diagram of the coordinate position of a reporting point event on a touch screen in a sliding response control method of a touch screen;

[0028] Figure 3 It is a flowchart of a specific embodiment of the sliding response control method of the touch screen provided in the embodiment of the present application;

[0029] Figure 4 It is a schematic diagram of the coordinate position of a reporting point event on a touch screen in the touch screen sliding response control method provided in an embodiment of the present application;

[0030] Figure 5 It is a schematic diagram of the module structure of the input subsystem in the sliding response control method of the touch screen provided in an embodiment of the present application;

[0031] Figure 6 It is a structural schematic diagram of a specific embodiment of the sliding response control device of the touch screen provided in the embodiment of the present application. DETAILED DESCRIPTION

[0032] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0033] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0034] refer to Figure 1 The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, 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, a bone conduction sensor 180M, etc.

[0035] It is to 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 some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0036] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0037] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0038] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0039] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0040] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0041] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0042] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0043] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0044] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0045] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0046] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0047] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0048] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0049] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

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

[0051] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0052] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0053] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0054] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0055] 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. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0056] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0057] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (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.

[0058] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0059] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0060] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0061] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0062] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0063] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0064] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0065] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0066] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0067] 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 signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0068] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0069] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0070] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0071] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0072] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch 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 can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0073] 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 (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0074] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0075] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0076] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all 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 and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0077] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0078] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0079] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0080] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0081] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0082] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0083] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0084] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0085] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0086] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0087] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to 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 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0088] As described in the background technology, the hand tracking performance delay includes: 1) the delay from the touch screen to the Kernel layer scanning the first point of the touch point, that is, the first point delay; 2) the delay of the Kernel layer's point reporting data being transmitted to the input subsystem, and then transmitted from the input subsystem to the UI window; 3) the delay of the UI space responding to the point reporting event to trigger the UI drawing and the Render thread rendering; 4) the delay from the end of rendering to the SF synthesis; 5) the delay of the synthesized data being transmitted to the touch screen display. The delays of the above five stages constitute the overall hand tracking performance delay.

[0089] The technical solution of the present application is mainly aimed at improving the delay of the above-mentioned second stage (i.e., the delay of the Kernel layer's reporting data being transmitted to the input subsystem, and then from the input subsystem to the UI window), thereby reducing the system delay time from the input subsystem to the UI window that meets the sliding threshold.

[0090] Figure 2 This is a schematic diagram of the coordinate position of a point event on a touch screen in a touch screen sliding response control method. Figure 2 The coordinate system of the touch screen of the electronic device is based on the lower left corner of the touch screen as the origin, and the directions of the X-axis and Y-axis are as follows: Figure 2 as shown in .

[0091] The electronic device may be a mobile phone, a watch, a tablet computer or other device with a touch screen. Figure 1 The described embodiment.

[0092] Combined with reference Figure 1 and Figure 2 , when the user Figure 1When the touch screen of the electronic device shown is touched, the touch sensor 180K can detect the touch operation of the user on the touch screen. The touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Specifically, from the time when the user starts to touch the touch screen and slides until the hand is lifted, the reporting events generated by the Kernel layer include: DOWN event, several MOVE events and UP event, where the number of MOVE events depends on the time of touching the screen.

[0093] exist Figure 2 In the figure, position 1 is the coordinate position of the DOWN event on the touch screen, and position 2, position 3, and position 4 are the coordinate positions of the MOVE event on the touch screen after the DOWN event. In the current UI sliding scenario, the touch screen needs to reach the sliding response threshold before it starts to respond to the user's touch sliding. That is, after the DOWN event, the subsequent MOVE event must reach a certain threshold before the touch screen can trigger a sliding response.

[0094] Continue to refer Figure 2 , assuming that during the sliding process, when the user slides to position point 4, the input subsystem reports the point data generated by the MOVE event to the UI window. At this time, the distance between position point 4 and position point 1 meets the sliding response threshold, and the touch screen starts to respond to the sliding in the point reporting period corresponding to position point 4.

[0095] Figure 3 1 is a flow chart of a specific embodiment of the method for controlling the sliding response of a touch screen provided in an embodiment of the present application. Figure 3 , the method comprising:

[0096] Step 301: when receiving the current reporting point data in the current reporting point period, determining whether to perform reporting point prediction;

[0097] Step 302: If yes, determine whether the current reporting data meets a preset condition; wherein the preset condition includes that the current reporting data is generated by a MOVE event;

[0098] Step 303: If the preset condition is met, the next reporting point data is predicted based on the cached reporting point data to obtain predicted reporting point data;

[0099] Step 304: In the current reporting period, the current reporting data is replaced with the predicted reporting data and reported to the foreground application, so that the foreground application triggers the sliding response operation in advance.

[0100] It should be noted that the execution entity of each step of the sliding response control method described in this embodiment is the input subsystem.

[0101] This embodiment adds a point prediction function on the basis of the existing sliding response control method, that is, when the input subsystem receives the current point reporting data in the current point reporting period, it determines whether to perform point reporting prediction. If it is determined not to perform point reporting prediction, it is still processed according to the existing sliding response control method. If it is determined to perform point reporting prediction, it is further determined whether the current point reporting data meets the preset conditions, wherein the preset conditions include that the current point reporting data is generated by a MOVE event. If so, it is processed according to the sliding response control method described in this embodiment, so that when the predicted next point reporting data meets the sliding response threshold, the touch screen can start sliding response at least one point reporting period in advance, thereby reducing the system delay time from the input subsystem to the UI window meeting the sliding threshold.

[0102] As described in step 301, when the current reporting point data is received in the current reporting point period, it is determined whether to perform reporting point prediction.

[0103] Specifically, this step includes:

[0104] Step 3011: determining a current sliding speed according to the current reporting point data and the cached reporting point data; wherein the current sliding speed is the sliding speed at the sampling moment corresponding to the current reporting point data;

[0105] Step 3012: determine whether the current sliding speed is within a preset sliding speed range;

[0106] Step 3013: If yes, then determine to make a point prediction;

[0107] Step 3014: If not, determine not to perform point prediction.

[0108] In this embodiment, the input subsystem can determine the touch point position corresponding to the current point reporting data on the touch screen according to the received current point reporting data. Then, the current sliding speed can be determined by combining the cached point reporting data and the current point reporting data. Among them, the cached point reporting data includes the point reporting data corresponding to the DOWN event generated by the Kernel layer when the user starts to touch the touch screen and the point reporting data corresponding to the MOVE event. When the Kernel layer generates an UP event, it means that the user has completed the sliding operation, and the cache is cleared at this time. The caching method can be to write the point reporting data corresponding to the DOWN event and the MOVE event into the queue cache.

[0109] For example, based on the distance between the touch point position corresponding to the previous point reporting data on the touch screen and the touch point position corresponding to the current point reporting data on the touch screen, and the time interval between the reporting cycles of these two adjacent point reporting data (i.e., the previous point reporting data and the current point reporting data), the sliding speed of the user on the touch screen to the sampling moment corresponding to the current point reporting data (i.e., the current sliding speed) can be calculated.

[0110] Then, it is determined whether the current sliding speed is within a preset sliding speed range. The preset sliding speed range can be preset by the input subsystem. If the current sliding speed is within the preset sliding speed range, it is determined to perform point prediction; if the current sliding speed is not within the preset sliding speed range, it is determined not to perform point prediction.

[0111] When the user slides on the touch screen to the touch point position corresponding to the current reporting point data on the touch screen, if the current sliding speed is too fast, the reporting point data generated by the subsequent MOVE event can quickly reach the sliding response threshold, so it is not necessary to perform reporting point prediction, and it is still processed according to the existing sliding response control method; if the current sliding speed is too slow, the reporting point prediction is prone to the problem of click turning into sliding, that is, the user's click operation is misjudged as a sliding operation. Only when the current sliding speed meets the preset sliding speed range (that is, the current sliding speed is neither too fast nor too slow), it is considered that the next MOVE event reporting point data may reach the sliding response threshold, and it is determined to perform reporting point prediction.

[0112] Further, determining whether to perform a point prediction includes: determining whether the current application scenario is an application scenario suitable for point prediction. Specifically, an application scenario whitelist may be set, and the application scenario whitelist includes all application scenarios suitable for point prediction. The electronic device may identify the current application scenario of the electronic device when the user operates the touch screen (e.g., gaming, web browsing, APP operation, etc.), and determine whether the current application scenario is an application scenario in the application scenario whitelist.

[0113] As described in step 302, if yes, determine whether the current reporting data meets a preset condition; wherein the preset condition includes that the current reporting data is generated by a MOVE event.

[0114] In this embodiment, the input subsystem needs to determine whether the current reporting data received in the current reporting period meets the preset conditions, wherein the preset conditions include that the current reporting data is generated by a MOVE event. Figure 2 It can be understood from the above-described embodiment that if the reporting point data is generated by a DOWN event or an UP event, there is no need to perform reporting point prediction.

[0115] As described in step 303, if the preset condition is met, the next reporting point data is predicted based on the cached reporting point data to obtain the predicted reporting point data.

[0116] In a specific embodiment, this step includes:

[0117] Step 3031: determine a prediction algorithm according to the current application scenario;

[0118] Step 3032: determine the predicted reporting data based on the prediction algorithm; wherein the prediction algorithm includes an algorithm based on machine learning.

[0119] As described in step 3031, a prediction algorithm is determined according to the current application scenario.

[0120] The sliding response control method described in this embodiment can be applied to a variety of application scenarios of electronic devices, including but not limited to: 2D application scenarios, game scenarios, stylus scenarios, and handle application scenarios with related Bluetooth or wireless peripherals. The current application scenario can be determined based on the foreground application. For example, if the foreground application is a game APP, the current application scenario is determined to be a game scenario. The current application scenario can also be determined based on the application area activated by the corresponding position of the reporting point data on the touch screen (for example, multi-window, split-screen scenarios, etc.).

[0121] As described in step 3032, the predicted reporting point data is determined based on the prediction algorithm; wherein the prediction algorithm includes a machine learning algorithm.

[0122] In this embodiment, the prediction algorithm can be an algorithm based on machine learning. By establishing a deep learning model and training the deep learning model, the trained deep learning model can implement the prediction algorithm to output predicted reporting point data.

[0123] In another specific embodiment, this step includes:

[0124] Step 3033, calculating the acceleration of the touch point position corresponding to the current reporting point data on the touch screen according to the sliding speed and reporting period of each cached reporting point data on the touch point position corresponding to the touch screen;

[0125] Step 3034: determining a predicted position trajectory of the next reporting point data on the touch screen according to a predicted time interval; wherein the predicted time interval is determined based on the prediction algorithm;

[0126] Step 3035: determining the predicted position of the next reported point data on the predicted position trajectory based on the acceleration of the current reported point data at the corresponding touch point position on the touch screen;

[0127] Step 3036: determine the predicted reporting point data based on the predicted position; wherein the predicted time interval refers to the time from when the current reporting point data slides from the corresponding touch point position on the touch screen to the predicted position.

[0128] Figure 4 It is a schematic diagram of the coordinate position of a reporting point event on a touch screen in the sliding response control method of a touch screen provided in an embodiment of the present application.

[0129] refer to Figure 4 , position point 1 is the coordinate position corresponding to the DOWN event on the touch screen, position point 2 and position point 3 are the coordinate positions corresponding to the MOVE event on the touch screen after the DOWN event. Among them, position point 3 is the coordinate position corresponding to the current reporting data received by the input subsystem in the current reporting period on the touch screen.

[0130] As described in step 3033, the input subsystem calculates the sliding speed and the reporting period at the touch point positions (including position point 1, position point 2, and position point 3) corresponding to each cached reporting point data on the touch screen according to the acceleration calculation formula:

[0131] Wherein a is acceleration, Δv is the change in sliding speed, and Δt is the time interval, and the acceleration of the touch point position (ie, position point 3) corresponding to the current reporting point data on the touch screen is calculated.

[0132] For example, if the sliding speed of position 2 is v2, the sliding speed of position 3 is v3, and the time interval between position 2 and position 3 is a reporting period T, then the acceleration of position 3 is

[0133] For another example, if the sliding speed of position 1 is v2, the sliding speed of position 3 is v3, and the time interval between position 1 and position 3 is 2 reporting periods 2T, then the acceleration of position 3 is

[0134] As described in step 3034, the predicted position trajectory of the next point reporting data on the touch screen is determined according to the predicted time interval; wherein the predicted time interval is determined based on the prediction algorithm, and the predicted time interval refers to the time from the touch point position corresponding to the current point reporting data on the touch screen sliding to the predicted position. Different application scenarios correspond to different preset time intervals.

[0135] According to the distance calculation formula

[0136] Among them, s is the distance between the current reporting point data and the next reporting point data, v0 is the sliding speed of the current reporting point data, t is the prediction time interval, and a is the acceleration of the current reporting point data.

[0137] In practical applications, a deep learning model can also be established and trained so that the trained deep learning model can determine the predicted position trajectory of the next reporting point data on the touch screen based on the predicted time interval.

[0138] Continue to refer Figure 4 Based on the above distance calculation formula, according to the predicted time interval, the sliding speed and acceleration of position point 3, the predicted position trajectory of the next reported point data on the touch screen can be determined. The predicted position trajectory is an arc with position point 3 as the center and s as the radius.

[0139] As described in step 2035, the predicted position of the next reported point data on the predicted position trajectory is determined based on the acceleration of the current reported point data at the corresponding touch point position on the touch screen.

[0140] Continue to refer Figure 4 Based on the predicted position trajectory determined in the above step 2034, the predicted position of the next reported point data on the predicted position trajectory is further determined according to the acceleration of the current reported point data at the corresponding touch point position (i.e., position point 3) on the touch screen.

[0141] Acceleration is a vector. According to the acceleration direction at position point 3, the direction of the sliding track from the current reporting point data to the next reporting point data can be predicted, and then the predicted position of the next reporting point data can be determined on the predicted position track. Figure 4 As shown, according to the acceleration direction of the position point 3, the position point 4 (the position point 4 with a slash in the circle) is determined on the predicted position trajectory as the predicted position on the predicted position trajectory.

[0142] As described in step 2036, the predicted reporting point data is determined based on the predicted position.

[0143] Based on the above steps, the touch point position corresponding to the predicted point data on the touch screen (position point 4 with a slash in the circle) and the sliding speed and acceleration at the position point 4 can be determined.

[0144] As described in step 304, in the current reporting period, the current reporting data is replaced with the predicted reporting data and reported to the foreground application, so that the foreground application triggers the sliding response operation in advance.

[0145] Specifically, in this embodiment, no matter the forecast point data (such as Figure 4 The position of the touch point corresponding to the position point 4 in the circle with the slash on the touch screen is consistent with the first reported point data (such as Figure 4 The input subsystem reports the predicted point reporting data as the current point reporting data to the foreground application in the current point reporting cycle. The foreground application reports the predicted point reporting data to the UI window through internal processing.

[0146] For example, the input subsystem may store the current reporting data in a designated area for the foreground application to obtain. The foreground application distributes the obtained current reporting data to the window control of the foreground application, so that the foreground control triggers the foreground application to respond to the sliding operation in advance according to the current reporting data.

[0147] If the distance between the touch point position corresponding to the predicted point reporting data reported in the current point reporting cycle and the touch point position corresponding to the first point reporting data on the touch screen does not meet the sliding response threshold, the UI window will not trigger the sliding response operation. However, as long as the predicted point reporting data is reported to the foreground application as the current point reporting data each time in the current point reporting cycle, since the predicted point reporting data is closer to the sliding response threshold than the received current point reporting data, the UI window can trigger the sliding response operation in advance.

[0148] If the distance between the touch point position corresponding to the predicted point reporting data reported in the current point reporting cycle and the touch point position corresponding to the first point reporting data on the touch screen meets the sliding response threshold, the predicted point reporting data is reported as the current point reporting data to the foreground application in the current point reporting cycle, so that the UI window will trigger the sliding response operation. In other words, the UI window will trigger the sliding response operation at least one point reporting cycle in advance.

[0149] Further, in this embodiment, in step 301, the determining whether the preset condition is met further includes:

[0150] Determine whether the number of cached report point data meets the requirements of report point prediction.

[0151] Specifically, in order to improve the accuracy of the point reporting prediction, the present application proposes a method for predicting the next point reporting data on the basis that the number of cached point reporting data meets a certain quantity requirement. In this embodiment, the number requirement of the point reporting data is set to 2, that is, the point reporting prediction process is performed only when the number of cached point reporting data (such as the point reporting data generated by the MOVE event or the point reporting data generated by the combination of the DOWN event and the MOVE event) is at least 2. It can be understood that the more the number of cached point reporting data, the higher the accuracy of predicting the next point reporting data based on the cached point reporting data.

[0152] In addition, in this embodiment, if the judgment result of the above step 302 is no, that is, when the current reporting point data is received in the current reporting point period, if the reporting point prediction is not performed, the current reporting point data will be reported to the foreground application in the current reporting point period.

[0153] As described above, this embodiment adds a reporting point prediction function on the basis of the existing sliding response control method. Therefore, if the reporting point prediction is not performed, it is still processed according to the existing sliding response control method, that is, the input subsystem reports the current reporting point data received in the current reporting period to the foreground application.

[0154] Furthermore, in this embodiment, it also includes: if the current reporting point data is generated by a DOWN event or a MOVE event, then the current reporting point data is cached; if the current reporting point data is generated by an UP event, then the cached reporting point data is cleared.

[0155] When the user starts to touch the touch screen and slides until the hand is lifted, the reporting events generated by the Kernel layer include: DOWN event, several MOVE events and UP event. If the current reporting data is generated by a DOWN event or a MOVE event, the reporting data needs to be cached so that when the reporting prediction is performed, the cached reporting data can be obtained to predict the next reporting data. If the current reporting data is generated by an UP event, it means that the user has completed the sliding operation on the touch screen, so the cached reporting data is cleared.

[0156] Furthermore, in this embodiment, it also includes: if the touch point position corresponding to the predicted point reporting data on the touch screen exceeds the boundary of the touch screen, the predicted point reporting data is adjusted based on the boundary of the touch screen.

[0157] Since the display area on the touch screen has boundaries, in a possible embodiment, the coordinate position range is determined based on the length and width boundaries of the touch screen. If the coordinate position of the touch point position corresponding to the predicted point data obtained according to the above-mentioned prediction algorithm on the touch screen exceeds the coordinate position range of the display area boundary of the touch screen, the predicted point data needs to be adjusted.

[0158] For example, if the coordinate position of the touch point position corresponding to the predicted point reporting data on the touch screen exceeds the coordinate position range of the boundary of the display area of ​​the touch screen, then the sliding trajectory of the predicted position corresponding to the predicted point reporting data will have an intersection with the boundary of the display area of ​​the touch screen, and the coordinate position corresponding to the intersection can be used as the coordinate position of the touch point position corresponding to the predicted point reporting data on the touch screen.

[0159] Furthermore, in this embodiment, it also includes:

[0160] Determine the direction of the sliding track according to the cached data of each reporting point;

[0161] If the touch point position corresponding to the predicted point reporting data on the touch screen is opposite to the direction of the sliding track, the predicted point reporting data is adjusted.

[0162] Specifically, as described in the above embodiment, the direction of the user's sliding track on the touch screen can be determined based on the touch point position corresponding to each cached point reporting data on the touch screen and the sliding speed and acceleration at the corresponding touch point position. Figure 4 As shown, the sliding track directions of position point 1, position point 2 and position point 3 are the directions of the arrows of the sliding tracks in the figure.

[0163] If the predicted point data calculated by the prediction algorithm corresponds to the touch point position on the touch screen in the opposite direction to the sliding track. Figure 4 If the touch point position corresponding to the predicted point reporting data on the touch screen falls back to the sliding track between position point 2 and position point 3 or falls back to the sliding track between position point 1 and position point 2, the predicted point reporting data is considered to be wrong. Then, the predicted point reporting data needs to be adjusted, for example, the predicted point reporting data can be recalculated.

[0164] Figure 5 It is a schematic diagram of the module structure of the input subsystem in the sliding response control method of the touch screen provided in an embodiment of the present application.

[0165] refer to Figure 5The input subsystem 5 includes: an input subsystem management module 51, a service communication module (including a first service communication module 521 and a second service communication module 522), and a touch control core module 53. Among them, the first service communication module 521 and the second service communication module 522 are newly added modules.

[0166] The input subsystem management module 51 includes an input subsystem reading module 511, an input subsystem scheduling module 512, and an input subsystem transmission module 513. A prediction algorithm module 531 is newly added to the touch control core module 53, and the prediction algorithm module 531 includes multiple prediction algorithms (such as prediction algorithm 1, prediction algorithm 2, and prediction algorithm 3) suitable for different application scenarios of electronic devices.

[0167] Specifically, unlike the existing input subsystem, in this embodiment, the function of the input subsystem transmission module 513 is modified. When performing the point reporting prediction processing, the received point reporting data is transmitted to the second service communication module 522 through the first service communication module 521, and then the second service communication module 522 transmits the point reporting data to the prediction algorithm module 531 in the touch core module 53, and selects a suitable prediction algorithm based on the application scenario of the electronic device, and then uses the prediction algorithm to process the received point reporting data to obtain the predicted point reporting data. Then the touch core module 53 feeds back the predicted point reporting data to the input subsystem management module 51 via the second service communication module 522 and the first service communication module 521, and then the input subsystem 5 reports it to the foreground application.

[0168] Figure 6 It is a structural schematic diagram of a specific embodiment of the sliding response control device of the touch screen provided in the embodiment of the present application.

[0169] refer to Figure 6 The sliding response control device 6 of the touch screen includes: a reporting point prediction determination module 61, which is used to determine whether to perform a reporting point prediction when receiving the current reporting point data in the current reporting point cycle; a preset condition judgment module 62, which is used to determine whether the current reporting point data meets the preset condition if the judgment result of the reporting point prediction determination module is yes; wherein the preset condition includes that the current reporting point data is generated by a MOVE event; a predicted reporting point data algorithm module 63, which is used to predict the next reporting point data based on the cached reporting point data to obtain predicted reporting point data if the judgment result of the reporting point prediction determination module is that the preset condition is met; a reporting point data reporting module 64, which is used to replace the current reporting point data with the predicted reporting point data in the current reporting point cycle and report it to the foreground application, so that the foreground application triggers the sliding response operation in advance.

[0170] Among them, the reporting point prediction determination module 61 includes: a sliding speed determination unit 611, used to determine the current sliding speed according to the current reporting point data and the cached reporting point data; wherein the current sliding speed is the sliding speed at the sampling moment corresponding to the current reporting point data; a sliding speed judgment unit 612, used to judge whether the current sliding speed is within a preset sliding speed range; a reporting point prediction judgment unit 613, used to determine to perform reporting point prediction if the judgment result of the sliding speed judgment unit is yes; if the judgment result of the sliding speed judgment unit is no, determine not to perform reporting point prediction.

[0171] The report point prediction determination module 61 is also used to determine whether the current application scenario is an application scenario suitable for report point prediction.

[0172] In a specific embodiment, the predicted point reporting data algorithm module 63 includes: an acceleration determination unit 631, which is used to calculate the acceleration of the touch point position corresponding to the current point reporting data on the touch screen according to the sliding speed and the reporting period of each cached point reporting data on the touch point position corresponding to the touch screen; a predicted position trajectory determination unit 632, which is used to determine the predicted position trajectory of the next point reporting data on the touch screen according to the predicted time interval; wherein the predicted time interval is determined based on the prediction algorithm; a predicted position determination unit 633, which is used to determine the predicted position of the next point reporting data on the predicted position trajectory based on the acceleration of the current point reporting data on the touch point position corresponding to the touch screen; a predicted point reporting data determination unit 634, which is used to determine the predicted point reporting data based on the predicted position; wherein the predicted time interval refers to the time from the corresponding touch point position of the current point reporting data on the touch screen to the predicted position.

[0173] In another specific embodiment, the predicted reporting point data algorithm module 63 includes: a prediction algorithm determination unit (not shown), used to determine the prediction algorithm according to the current application scenario; a predicted reporting point data determination unit (not shown), used to determine the predicted reporting point data based on the prediction algorithm; wherein the prediction algorithm includes a machine learning algorithm.

[0174] The preset condition judgment module 62 is also used to judge whether the number of cached reporting point data meets the requirements of reporting point prediction.

[0175] The point reporting data reporting module 64 is further configured to report the current point reporting data to the foreground application in the current point reporting period when the current point reporting data is received in the current point reporting period, if no point reporting prediction is performed.

[0176] The device 6 also includes: a cache processing module (not shown), which is used to cache the current reporting data if the current reporting data is generated by a DOWN event or a MOVE event; if the current reporting data is generated by an UP event, clear the cached reporting data.

[0177] The device 6 also includes: an exception processing module (not shown), which is used to adjust the predicted point reporting data based on the boundary of the touch screen if the touch point position corresponding to the predicted point reporting data on the touch screen exceeds the boundary of the touch screen.

[0178] The device 6 also includes: a fallback protection processing module (not shown), which is used to determine the direction of the sliding trajectory based on all the received reporting point data; if the touch point position corresponding to the predicted reporting point data on the touch screen is opposite to the direction of the sliding trajectory, the predicted reporting point data is adjusted.

[0179] In the above embodiment, the specific implementation of each module in the touch screen sliding response control device 6 can refer to the detailed description in the above method embodiment, which will not be repeated here.

[0180] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions. When the program instructions are loaded and executed by the processor, the electronic device executes the above-mentioned touch screen sliding response control method.

[0181] An embodiment of the present application provides a storage medium, which includes a stored program. When the program is running, the device where the storage medium is located is controlled to execute the above-mentioned touch screen sliding response control method.

[0182] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

[0183] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the communication method described in the above embodiment.

[0184] In addition, an embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes the communication method described in the above embodiment.

[0185] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

Claims

1. A method for controlling sliding response of a touch screen, characterized in that: The method comprises: When receiving the current reporting point data in the current reporting point cycle, determine whether to perform reporting point prediction; if so, determine whether the current reporting point data meets a preset condition; wherein the preset condition includes that the current reporting point data is generated by a MOVE event; If the preset conditions are met, the next reporting point data is predicted based on the cached reporting point data to obtain the predicted reporting point data; In the current reporting period, the current reporting data is replaced with the predicted reporting data and reported to the foreground application, so that the foreground application triggers the sliding response operation in advance; The step of predicting the next reporting point data based on the cached reporting point data to obtain the predicted reporting point data includes: Calculate the acceleration of the touch point position corresponding to the current reporting point data on the touch screen according to the sliding speed and reporting period of each cached reporting point data on the touch point position corresponding to the touch screen; The predicted position trajectory of the next reporting point data on the touch screen is determined according to the predicted time interval, and the predicted position trajectory is an arc with the current reporting point data as the center, and the radius of the arc is based on the formula Determine, s is the radius of the arc, v0 is the sliding speed of the current reporting point data, t is the prediction time interval, and a is the acceleration of the current reporting point data; Determine the predicted position of the next reported point data on the predicted position trajectory based on the acceleration of the current reported point data at the corresponding touch point position on the touch screen; Determine the predicted point data based on the predicted position; The predicted time interval refers to the time from when the current reporting point data slides to the predicted position at the corresponding touch point on the touch screen.

2. The method according to claim 1, characterized in that The determination of whether to perform a point prediction includes: Determine the current sliding speed according to the current reporting point data and the cached reporting point data; wherein the current sliding speed is the sliding speed at the sampling moment corresponding to the current reporting point data; Determining whether the current sliding speed is within a preset sliding speed range; If so, it is determined to make a point prediction; if not, it is determined not to make a point prediction.

3. The method according to claim 1 or 2, characterized in that The step of predicting the next reporting point data based on the cached reporting point data to obtain the predicted reporting point data includes: Determine the prediction algorithm based on the current application scenario; The predicted reporting point data is determined based on the prediction algorithm; wherein the prediction algorithm includes an algorithm based on machine learning.

4. The method according to claim 1, characterized in that The prediction time interval is determined based on the current application scenario.

5. The method according to claim 1, characterized in that The determining whether to perform a point prediction includes: determining whether a current application scenario is an application scenario suitable for a point prediction.

6. The method according to claim 1, characterized in that The determining whether the preset condition is met also includes: Determine whether the number of cached report point data meets the requirements of report point prediction.

7. The method according to claim 1, characterized in that Also includes: When the current point reporting data is received in the current point reporting period, if no point reporting prediction is performed, the current point reporting data is reported to the foreground application in the current point reporting period.

8. The method according to claim 1, characterized in that Replacing the current reporting point data with the predicted reporting point data and reporting to the foreground application in the current reporting point cycle includes: storing the current reporting point data in a designated area for acquisition by the foreground application.

9. The method according to claim 8, characterized in that Also includes: The foreground application distributes the acquired current reporting point data to the window control of the foreground application, so that the window control triggers the foreground application to respond to the sliding operation in advance according to the current reporting point data.

10. The method according to claim 1, characterized in that Also includes: If the current reporting point data is generated by a DOWN event or a MOVE event, cache the current reporting point data; If the current reporting point data is generated by an UP event, the cached reporting point data is cleared.

11. The method according to claim 1, characterized in that Also includes: If the touch point position corresponding to the predicted point reporting data on the touch screen exceeds the boundary of the touch screen, the predicted point reporting data is adjusted based on the boundary of the touch screen.

12. The method according to claim 1, characterized in that Also includes: Determine the direction of the sliding track according to the cached data of each reporting point; If the touch point position corresponding to the predicted point reporting data on the touch screen is opposite to the direction of the sliding track, the predicted point reporting data is adjusted.

13. A sliding response control device for a touch screen, characterized in that: The device comprises: The reporting point prediction determination module is used to determine whether to perform reporting point prediction when receiving the current reporting point data in the current reporting point cycle; A preset condition judgment module, used for judging whether the current reporting point data meets a preset condition if the judgment result of the reporting point prediction determination module is yes; wherein the preset condition includes that the current reporting point data is generated by a MOVE event; A prediction and reporting point data algorithm module is used to predict the next reporting point data based on the cached reporting point data to obtain the predicted reporting point data if the judgment result of the reporting point prediction and determination module meets the preset conditions; A reporting point data reporting module, used for replacing the current reporting point data with the predicted reporting point data in the current reporting point period and reporting the predicted reporting point data to the foreground application, so that the foreground application triggers the sliding response operation in advance; The forecasting point data algorithm module includes: an acceleration determination unit, configured to calculate the acceleration of the touch point position corresponding to the current reporting point data on the touch screen according to the sliding speed and reporting period of each cached reporting point data on the touch point position corresponding to the touch screen; A predicted position trajectory determination unit is used to determine the predicted position trajectory of the next reporting point data on the touch screen according to the predicted time interval, wherein the predicted position trajectory is an arc with the current reporting point data as the center, and the radius of the arc is based on the formula Determine, s is the radius of the arc, v0 is the sliding speed of the current reporting point data, t is the prediction time interval, and a is the acceleration of the current reporting point data; A predicted position determination unit, configured to determine a predicted position of the next reported point data on the predicted position trajectory based on the acceleration of the current reported point data at the position of the touch point corresponding to the touch screen; A predicted reporting point data determining unit, configured to determine the predicted reporting point data based on the predicted position; The predicted time interval refers to the time from when the current reporting point data slides to the predicted position at the corresponding touch point on the touch screen.

14. The device according to claim 13, characterized in that The report point prediction determination module includes: A sliding speed determining unit, used to determine a current sliding speed according to the current reporting point data and the cached reporting point data; wherein the current sliding speed is the sliding speed at a sampling moment corresponding to the current reporting point data; A sliding speed determination unit, used to determine whether the current sliding speed is within a preset sliding speed range; The point prediction judgment unit is used to determine whether to perform the point prediction if the judgment result of the sliding speed judgment unit is yes; if the judgment result of the sliding speed judgment unit is no, determine not to perform the point prediction.

15. The device according to claim 13 or 14, characterized in that The forecasting point data algorithm module includes: A prediction algorithm determination unit, used to determine a prediction algorithm according to a current application scenario; A predicted reporting point data determination unit is used to determine the predicted reporting point data based on the prediction algorithm; wherein the prediction algorithm includes an algorithm based on machine learning.

16. The device according to claim 13, characterized in that The prediction time interval is determined based on the current application scenario.

17. The device according to claim 13, characterized in that The report point prediction determination module is also used to determine whether the current application scenario is an application scenario suitable for report point prediction.

18. The device according to claim 13, characterized in that The preset condition judgment module is also used to judge whether the number of cached reporting point data meets the requirements of reporting point prediction.

19. The device according to claim 13, characterized in that The point reporting data reporting module is further used for: upon receiving the current point reporting data in the current point reporting period, if no point reporting prediction is performed, reporting the current point reporting data to the foreground application in the current point reporting period.

20. The device according to claim 13, characterized in that The point reporting data reporting module is also used to store the current point reporting data into a designated area for acquisition by the foreground application.

21. The device according to claim 13, characterized in that The point reporting data reporting module is also used to control the foreground application to distribute the acquired current point reporting data to the window control of the foreground application, so that the window control triggers the foreground application to respond to the sliding operation in advance according to the current point reporting data.

22. The device according to claim 13, characterized in that Also includes: A cache processing module, used for caching the current reporting point data if the current reporting point data is generated by a DOWN event or a MOVE event; If the current reporting point data is generated by an UP event, the cached reporting point data is cleared.

23. The device according to claim 13, characterized in that It also includes an exception processing module for adjusting the predicted point reporting data based on the boundary of the touch screen if the touch point position corresponding to the predicted point reporting data on the touch screen exceeds the boundary of the touch screen.

24. The device according to claim 13, characterized in that It also includes a fallback protection processing module, which is used to determine the direction of the sliding trajectory based on all the received reporting point data; if the touch point position corresponding to the predicted reporting point data on the touch screen is opposite to the direction of the sliding trajectory, the predicted reporting point data is adjusted.

25. An electronic device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by a processor, the electronic device executes the method according to any one of claims 1 to 12.

26. A storage medium comprising: The storage medium includes a stored program, and is characterized in that when the program is running, the device where the storage medium is located is controlled to execute any one of the methods of claims 1 to 12.

Citation Information

Patent Citations

  • Method for reducing dragging delay on embedded device through contact prediction

    CN102929433A

  • Predictive compensation for a latency of an input device

    US20130181908A1

  • Compensating for a latency in displaying a portion of a hand-initiated movement

    US20150153890A1

  • Deep Machine Learning to Perform Touch Motion Prediction

    US20180067605A1