CN113325992A - Sliding operation processing method and device, electronic equipment and storage medium - Google Patents

Sliding operation processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113325992A
CN113325992A CN202010133715.XA CN202010133715A CN113325992A CN 113325992 A CN113325992 A CN 113325992A CN 202010133715 A CN202010133715 A CN 202010133715A CN 113325992 A CN113325992 A CN 113325992A
Authority
CN
China
Prior art keywords
sliding
sliding operation
length
touch
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010133715.XA
Other languages
Chinese (zh)
Inventor
黄丽薇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010133715.XA priority Critical patent/CN113325992A/en
Publication of CN113325992A publication Critical patent/CN113325992A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of electronics, and provides a sliding operation processing method, a sliding operation processing device, electronic equipment and a storage medium, wherein the sliding operation processing method comprises the following steps: if the sliding operation on the touch screen of the electronic equipment is detected, calculating the sliding length corresponding to the sliding operation according to the touch starting point of the sliding operation and the touch end point of the sliding operation; and if the sliding length corresponding to the sliding operation is greater than or equal to the preset sliding length, executing an instruction corresponding to the sliding operation, wherein the preset sliding length is obtained by calculating the sliding length corresponding to the historical sliding operation within the preset time of the user, so that the preset sliding length suitable for the current user can be set according to the operation habit and the operation scene of the user, and the user can conveniently operate the electronic equipment.

Description

Sliding operation processing method and device, electronic equipment and storage medium
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to a method and an apparatus for processing a sliding operation, an electronic device, and a storage medium.
Background
The definition of the sliding operation of the existing electronic device, such as a mobile phone, a tablet computer, etc., is generally a fixed value, that is, only when a fixed sliding length is satisfied, the corresponding instruction can be executed, and the requirements of different users or different scenes of the users cannot be satisfied.
Disclosure of Invention
The embodiment of the application provides a sliding operation processing method and device, electronic equipment and a storage medium, and the sliding length of the sliding operation can meet the requirements of different users and different scenes.
In a first aspect, an embodiment of the present application provides a method for processing a sliding operation, including:
if the sliding operation on the touch screen of the electronic equipment is detected, calculating the sliding length corresponding to the sliding operation according to the touch starting point of the sliding operation and the touch end point of the sliding operation;
and if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, executing an instruction corresponding to the sliding operation, wherein the preset sliding length is obtained by calculation according to the sliding length corresponding to the historical sliding operation within the preset time of the user.
In the above embodiment, when the sliding operation on the touch screen of the electronic device is detected, the sliding length is calculated according to the touch starting point and the touch ending point of the sliding operation, and if the sliding length is greater than or equal to the preset sliding length, the instruction corresponding to the sliding operation is executed. The preset sliding length is determined according to the sliding length corresponding to the historical sliding operation within the preset time of the user and represents the operation habit and the operation scene of the user, so that the preset sliding length suitable for the current user can be set according to the operation habit and the operation scene of the user, and the user can conveniently operate the electronic equipment.
In a possible implementation manner of the first aspect, the preset sliding length is calculated by:
calculating a sliding length corresponding to the historical sliding operation according to a touch starting point of the historical sliding operation and a touch end point of the historical sliding operation within a preset time; determining a target length according to the sliding lengths corresponding to the historical sliding operations, and taking the target length as the preset sliding length, wherein in the sliding lengths corresponding to the historical sliding operations, the preset number of sliding lengths are greater than the target length. In the history sliding operation, the history sliding operation larger than the target length reaches a certain proportion. The historical sliding operation represents the operation habit and the operation scene of the user, which shows that when the user performs the sliding operation, the sliding length is greater than the target length to reach a certain probability, and the target length is used as the preset sliding length to represent the operation habit of the user and reduce the misoperation caused by the sliding operation.
In a possible implementation manner of the first aspect, the determining a target length according to a sliding length corresponding to the historical sliding operation includes:
calculating the cumulative ratio of a preset length according to the sliding length corresponding to the historical sliding operation, wherein the cumulative ratio of the preset length is as follows: the ratio of the number of the historical sliding operations with the length less than or equal to the preset length to all the historical sliding operations; and taking the preset length corresponding to the accumulated occupation ratio reaching the preset occupation ratio as the target length. For example, if the preset occupancy is set to 10%, in the historical sliding operation, the sliding length of 10% of the historical sliding operation is smaller than the target length, which represents that in the operation habit of the user, the sliding length of 10% is smaller than the target length, and the target length is set to the preset sliding length, so that the failure rate of the user in the sliding operation is guaranteed to be 10%, and the operation habit of the user is met.
In a possible implementation manner of the first aspect, the touch operation includes a click operation and a slide operation, the touch operation that satisfies the slide event is the slide operation, if the touch operation detected within a preset time is the slide event, the touch operation is taken as a historical slide operation, and a slide length corresponding to the historical slide operation is calculated according to a touch start point of the historical slide operation and a touch end point of the historical slide operation.
In a possible implementation manner of the first aspect, the calculating, according to a touch start point of the historical sliding operation and a touch end point of the historical sliding operation within a preset time, a sliding length corresponding to the historical sliding operation includes:
and if the condition that the sliding length setting is met is detected, calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within the preset time. Illustratively, the detecting that the slide length setting condition is satisfied includes: the method comprises the steps of detecting that a user inputs authentication information of the electronic equipment, detecting that the mode of holding the electronic equipment by the user is changed, and/or detecting that the current operation state of the electronic equipment is a preset operation state. When the sliding length setting condition is met, the sliding length corresponding to the historical sliding operation is calculated to set the preset sliding length, so that the current application scene of the user can be adapted, and the user experience is improved.
In a possible implementation manner of the first aspect, the touch starting point is a touch-down coordinate point of the sliding operation, and the touch ending point is a touch-up coordinate point of the sliding operation.
In a second aspect, an embodiment of the present application provides a processing apparatus for a sliding operation, including:
the device comprises a calculating module, a judging module and a judging module, wherein the calculating module is used for calculating the sliding length corresponding to the sliding operation according to the touch starting point of the sliding operation and the touch end point of the sliding operation if the sliding operation on the touch screen of the electronic equipment is detected;
and the execution module is used for executing the instruction corresponding to the sliding operation if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, wherein the preset sliding length is obtained by calculating the sliding length corresponding to the historical sliding operation within the preset time of the user.
In a possible implementation manner of the second aspect, the processing apparatus of the sliding operation further includes a setting module, where the setting module includes a calculating unit and a determining unit;
the calculation unit is used for calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within preset time;
the determining unit is configured to determine a target length according to the sliding lengths corresponding to the historical sliding operations, and use the target length as the preset sliding length, where in the sliding lengths corresponding to the historical sliding operations, a preset number of sliding lengths are greater than the target length.
In a possible implementation manner of the second aspect, the determining unit is specifically configured to:
calculating the cumulative ratio of a preset length according to the sliding length corresponding to the historical sliding operation, wherein the cumulative ratio of the preset length is as follows: the ratio of the number of the historical sliding operations with the length less than or equal to the preset length to all the historical sliding operations;
and taking the preset length corresponding to the accumulated occupation ratio reaching the preset occupation ratio as the target length.
In a possible implementation manner of the second aspect, the computing unit is specifically configured to:
if the detected touch operation is a sliding event within the preset time, taking the touch operation as a historical sliding operation, and calculating a sliding length corresponding to the historical sliding operation according to a touch starting point of the historical sliding operation and a touch ending point of the historical sliding operation.
In a possible implementation manner of the second aspect, the computing unit is specifically further configured to:
and if the condition that the sliding length setting is met is detected, calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within the preset time.
In a possible implementation manner of the second aspect, the detecting that the sliding length setting condition is satisfied includes: the method comprises the steps of detecting that a user inputs authentication information of the electronic equipment, detecting that the mode of holding the electronic equipment by the user is changed, and/or detecting that the current operation state of the electronic equipment is a preset operation state.
In a possible implementation manner of the second aspect, the touch starting point is a touch-down coordinate point of the sliding operation, and the touch ending point is a touch-up coordinate point of the sliding operation.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, where the computer program is implemented to implement the method according to the first aspect when executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on an electronic device, causes the electronic device to perform the method according to the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device to which a method for processing a sliding operation according to an embodiment of the present application is applied;
fig. 2 is an application scenario diagram of a processing method of a sliding operation according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating a method for processing a sliding operation according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of a sliding operation provided by an embodiment of the present application;
FIG. 5 is a flow chart illustrating a method for processing a sliding operation according to another embodiment of the present disclosure;
FIG. 6 is a graph of a cumulative distribution function according to an embodiment of the present application;
fig. 7 is a schematic diagram of a processing device for a sliding operation according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The method for processing a sliding operation provided in the embodiment of the present application is applied to the electronic device 100, where the electronic device 100 may be a mobile phone, a tablet computer, an Augmented Reality (AR)/Virtual Reality (VR) device, and the like, and the specific type of the electronic device is not limited in any way in the embodiment of the present application.
For ease of understanding, the electronic device 100 according to the embodiment of the present application will be described first. Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure.
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 key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. 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, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (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. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (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.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets 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, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may 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 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may 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, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB type c interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured 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 via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
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 charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication 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), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. 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).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an 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 alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability 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. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
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 to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. 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 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
Referring to fig. 2, fig. 2 is an application scenario diagram of a sliding operation processing method according to an embodiment of the present invention, when a sliding operation of a user is detected, a display screen 194 of the electronic device 100, that is, a touch screen, calculates a sliding length corresponding to the sliding operation according to a touch start point of the sliding operation and a touch end point of the sliding operation, and if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, executes an instruction corresponding to the sliding operation, for example, executes operations such as unlocking, page turning, and zooming an image. The preset sliding length is obtained by calculating the sliding length corresponding to the historical sliding operation within the preset time of the user, and reflects the use habit of the user or the application scene of the sliding operation, so that the sliding operation is suitable for different users or different scene requirements.
The following describes in detail a method for processing a sliding operation according to an embodiment of the present invention with reference to fig. 1-2.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a processing method of a sliding operation according to an embodiment of the present application, and as shown in fig. 3, the method includes:
and S101, if the sliding operation on the touch screen of the electronic equipment is detected, calculating the sliding length corresponding to the sliding operation according to the touch starting point of the sliding operation and the touch ending point of the sliding operation.
In a possible implementation manner, as shown in fig. 4, if the electronic device detects a touch operation of a user on a touch screen, a touch range corresponding to the touch operation is recorded, and a touch point a that is the touch pressing coordinate point and is first contacted by the user in the touch range is used as a touch starting point; and taking the touch point B which is the touch lifting coordinate point and is contacted by the user last in the touch operation as a touch terminal point. And judging whether the touch end point of the touch operation is within a preset range of the touch start point, and if the touch end point of the touch operation is within the preset range of the touch start point, for example, the touch end point is overlapped with the touch start point, which indicates that the touch operation is a click operation or a long-time press operation. And if the touch end point of the touch operation is not in the preset range of the touch start point, the touch operation is a sliding operation. And if the touch operation is the sliding operation, calculating the length between the touch starting point and the touch end point, and taking the length between the touch starting point and the touch end point as the sliding length of the sliding operation.
S102: and if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, executing an instruction corresponding to the sliding operation, wherein the preset sliding length is obtained by calculation according to the sliding length corresponding to the historical sliding operation within the preset time of the user.
Specifically, the preset sliding length is obtained by counting historical sliding operations within a preset time of a user, and the sliding lengths of the historical sliding operations in a preset number are all greater than the preset sliding length. For example, in all the historical sliding operations, the sliding length of 95% of the historical sliding operations is greater than the preset sliding length. The preset time may be a period of time after the user registers to use the new electronic device or changes a new SIM card, or a period of time after the user changes the use gesture, for example, when the user registers to use the new electronic device, the previous 30 sliding operations are historical sliding operations, and the preset sliding length is obtained according to the sliding length of each historical sliding operation. For another example, when the electronic device detects that the holding manner of the user is changed from the portrait screen to the landscape screen, the first 5 times of sliding operations are historical sliding operations, and the preset sliding length is obtained according to the sliding length of each historical sliding operation. Therefore, the historical sliding operation within the preset time embodies the use habit of the user.
After the preset sliding length is obtained, when the sliding operation is detected again, the sliding length corresponding to the sliding operation is compared with the preset sliding length, if the sliding length corresponding to the sliding operation is larger than or equal to the preset sliding length, an instruction corresponding to the sliding operation, such as page turning, unlocking, picture zooming and the like, is executed, if the sliding length corresponding to the sliding operation is smaller than the preset sliding length, the instruction corresponding to the sliding operation is not executed, misoperation on the electronic equipment is avoided, and therefore the sliding length of the sliding operation can be adjusted in a self-adaptive mode according to habits of users.
In the above embodiment, when the sliding operation is detected, the length of the sliding operation is calculated according to the touch start point of the sliding operation and the touch end point of the sliding operation, the length of the sliding operation is compared with the preset sliding length, and if the length of the sliding operation is greater than the preset sliding length, the instruction corresponding to the sliding operation is executed. The preset sliding length is calculated according to the sliding length corresponding to the historical sliding operation within the preset time of the user, so that the use habit of the user is reflected, and the use requirements of different users can be met.
As shown in fig. 5, in one possible implementation, the preset sliding length is calculated by the following method.
S201: and calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within the preset time.
In a possible implementation manner, if the electronic device detects that the sliding length setting condition is met, the sliding operation of the user is recorded, and the sliding operation recorded within the preset time is the historical sliding operation. The detection that the sliding length setting condition is met may be detection that the user inputs authentication information of the electronic device, detection that a manner in which the user holds the electronic device is changed, and/or detection that a current operation state of the electronic device is a preset operation state. For example, the user opens the electronic device for the first time, performs attribute setting, or the user replaces the SIM card, that is, the electronic device replaces the user, and then starts to record the sliding operation until the preset recording number is reached, and the sliding operation with the preset recording number is taken as the historical sliding operation. Or the holding mode of the user is changed from vertical screen to horizontal screen, or when the game state is entered, the sliding operation is recorded until the preset recording times are reached, and the sliding operation with the preset recording times is taken as the historical sliding operation.
In a possible implementation manner, when the sliding length setting condition is met, if the electronic device detects a touch operation, it is first determined whether the touch operation meets a sliding event, that is, whether a touch-down coordinate point and a touch-up coordinate point of the touch operation are within a preset range, and if the touch-down coordinate point and the touch-up coordinate point of the touch operation are not within the preset range, the touch operation is a historical sliding operation. And taking the touch pressing coordinate point of the historical sliding operation as a touch starting point, taking the touch lifting coordinate point of the historical sliding operation as a touch end point, and taking the distance between the touch starting point and the touch end point as a sliding length corresponding to the historical sliding operation.
S202: determining a target length according to the sliding lengths corresponding to the historical sliding operations, and taking the target length as the preset sliding length, wherein in the sliding lengths corresponding to the historical sliding operations, the preset number of sliding lengths are greater than the target length.
Specifically, the sliding lengths of all historical sliding operations are counted, and if the sliding lengths of the preset number are greater than or equal to the target length, the target length is used as the preset sliding length. For example, if the total number of recorded historical sliding operations is 20, and the preset number is 90% of the total number, in all the historical sliding operations, the sliding length corresponding to 90% of the historical sliding operations is greater than or equal to the target length.
In one possible implementation manner, the target length is calculated by calculating a cumulative ratio of preset lengths, where the cumulative ratio of the preset lengths is: the number of the history sliding operations which are less than or equal to the preset length is used up in all the history sliding operations. For example, a sliding length statistical table shown in table 1 is prepared according to the sliding lengths of the historical sliding operations, all the historical sliding operations are arranged in the order from small to large, for the sliding length of each row, the number of the historical sliding operations smaller than or equal to the sliding length is counted to obtain an accumulated value, and then according to the total number of the historical sliding operations, the accumulated proportion corresponding to the sliding length of each row, that is, the accumulated proportion of the preset length, is obtained. Table 1 is a partial schematic diagram of the sliding length statistical table, and in actual calculation, the accumulated value of the last row is the total number of the historical sliding operations, and the accumulated proportion of the last row is 100%.
TABLE 1
Sliding length (centimeter) Cumulative value Cumulative percentage of
1.01848 1 0.02%
1.01848 2 0.05%
1.01848 3 0.07%
1.03090 4 0.09%
1.03090 5 0.12%
1.03711 6 0.14%
1.04332 7 0.16%
1.05574 8 0.19%
1.06816 9 0.21%
As shown in fig. 6, the graph is a cumulative distribution function of the slip length plotted according to table 1, in which the horizontal axis represents the slip length and the vertical axis represents the cumulative percentage. The target length may be calculated by setting the cumulative ratio, and the corresponding sliding length when the cumulative ratio is the preset ratio is used as the target length. For example, if the target length is set to the sliding length corresponding to 10% of the cumulative occupancy, and if the target length is set to 10% of the cumulative occupancy, the sliding length is 2 cm, which means that the sliding length of 10% of the historical sliding operations is less than or equal to 2 cm, that is, the sliding length of 90% of the historical sliding operations is greater than 2 cm. If the target length is set to 2 cm, the failure rate is 10% when the user performs the sliding operation according to the operation habit of the user, that is, the sliding lengths exceed 2 cm under 90% of the user, the length is taken as the target length, that is, the sliding length is preset, and whether the user performs the sliding operation is judged according to the preset sliding length, so that the operation habit of the user can be adapted, and the misoperation can be prevented.
In the above embodiment, the sliding length corresponding to the historical sliding operation is calculated according to the touch starting point of the historical sliding operation and the touch ending point of the historical sliding operation within the preset time, and the target length is set according to the sliding length of the historical sliding operation, so that the sliding lengths of the historical sliding operations in the preset number are greater than the target length, and the target length is used as the preset sliding length, so that the preset sliding length conforms to the operation habit of the user, and the use by the user is facilitated.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Fig. 7 shows a block diagram of a processing device for a sliding operation according to an embodiment of the present application, which corresponds to the processing method for a sliding operation according to the foregoing embodiment.
As shown in fig. 7, a processing apparatus for a sliding operation according to an embodiment of the present application includes:
the calculating module 10 is configured to, if a sliding operation on a touch screen of an electronic device is detected, calculate a sliding length corresponding to the sliding operation according to a touch start point of the sliding operation and a touch end point of the sliding operation;
the executing module 20 is configured to execute the instruction corresponding to the sliding operation if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, where the preset sliding length is calculated according to the sliding length corresponding to the historical sliding operation within a preset time of a user.
In a possible implementation manner, the processing apparatus of the sliding operation further includes a setting module, where the setting module includes a calculating unit and a determining unit;
the calculation unit is used for calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within preset time;
the determining unit is configured to determine a target length according to the sliding lengths corresponding to the historical sliding operations, and use the target length as the preset sliding length, where in the sliding lengths corresponding to the historical sliding operations, a preset number of sliding lengths are greater than the target length.
In a possible implementation manner, the determining unit is specifically configured to:
calculating the cumulative ratio of a preset length according to the sliding length corresponding to the historical sliding operation, wherein the cumulative ratio of the preset length is as follows: the ratio of the number of the historical sliding operations with the length less than or equal to the preset length to all the historical sliding operations;
and taking the preset length corresponding to the accumulated occupation ratio reaching the preset occupation ratio as the target length.
In a possible implementation manner, the computing unit is specifically configured to:
if the detected touch operation is a sliding event within the preset time, taking the touch operation as a historical sliding operation, and calculating a sliding length corresponding to the historical sliding operation according to a touch starting point of the historical sliding operation and a touch ending point of the historical sliding operation.
In a possible implementation manner, the computing unit is specifically further configured to:
and if the condition that the sliding length setting is met is detected, calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within the preset time.
In one possible implementation manner, the detecting that the sliding length setting condition is satisfied includes: the method comprises the steps of detecting that a user inputs authentication information of the electronic equipment, detecting that the mode of holding the electronic equipment by the user is changed, and/or detecting that the current operation state of the electronic equipment is a preset operation state.
In one possible implementation manner, the touch starting point is a touch-down coordinate point of the sliding operation, and the touch ending point is a touch-up coordinate point of the sliding operation.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Finally, it should be noted that: the above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing a slide operation, comprising:
if the sliding operation on the touch screen of the electronic equipment is detected, calculating the sliding length corresponding to the sliding operation according to the touch starting point of the sliding operation and the touch end point of the sliding operation;
and if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, executing an instruction corresponding to the sliding operation, wherein the preset sliding length is obtained by calculation according to the sliding length corresponding to the historical sliding operation within the preset time of the user.
2. The method for processing a sliding operation according to claim 1, wherein the preset sliding length is calculated by:
calculating a sliding length corresponding to the historical sliding operation according to a touch starting point of the historical sliding operation and a touch end point of the historical sliding operation within a preset time;
determining a target length according to the sliding lengths corresponding to the historical sliding operations, and taking the target length as the preset sliding length, wherein in the sliding lengths corresponding to the historical sliding operations, the preset number of sliding lengths are greater than the target length.
3. The method for processing the sliding operation according to claim 2, wherein the determining the target length according to the sliding length corresponding to the historical sliding operation comprises:
calculating the cumulative ratio of a preset length according to the sliding length corresponding to the historical sliding operation, wherein the cumulative ratio of the preset length is as follows: the ratio of the number of the historical sliding operations with the length less than or equal to the preset length to all the historical sliding operations;
and taking the preset length corresponding to the accumulated occupation ratio reaching the preset occupation ratio as the target length.
4. The method for processing the sliding operation according to claim 2, wherein the calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within a preset time comprises:
if the detected touch operation is a sliding event within the preset time, taking the touch operation as a historical sliding operation, and calculating a sliding length corresponding to the historical sliding operation according to a touch starting point of the historical sliding operation and a touch ending point of the historical sliding operation.
5. The method for processing the sliding operation according to claim 2, wherein the calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within a preset time comprises:
and if the condition that the sliding length setting is met is detected, calculating the sliding length corresponding to the historical sliding operation according to the touch starting point of the historical sliding operation and the touch end point of the historical sliding operation within the preset time.
6. The method for processing a slide operation according to claim 5, wherein the detecting that the slide length setting condition is satisfied includes: the method comprises the steps of detecting that a user inputs authentication information of the electronic equipment, detecting that the mode of holding the electronic equipment by the user is changed, and/or detecting that the current operation state of the electronic equipment is a preset operation state.
7. The method for processing a slide operation according to any one of claims 1 to 6, wherein the touch start point is a touch-down coordinate point of the slide operation, and the touch end point is a touch-up coordinate point of the slide operation.
8. A sliding-operation processing apparatus, comprising:
the device comprises a calculating module, a judging module and a judging module, wherein the calculating module is used for calculating the sliding length corresponding to the sliding operation according to the touch starting point of the sliding operation and the touch end point of the sliding operation if the sliding operation on the touch screen of the electronic equipment is detected;
and the execution module is used for executing the instruction corresponding to the sliding operation if the sliding length corresponding to the sliding operation is greater than or equal to a preset sliding length, wherein the preset sliding length is obtained by calculating the sliding length corresponding to the historical sliding operation within the preset time of the user.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a processing method of a slide operation according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a processing method of a sliding operation according to any one of claims 1 to 7.
CN202010133715.XA 2020-02-28 2020-02-28 Sliding operation processing method and device, electronic equipment and storage medium Pending CN113325992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010133715.XA CN113325992A (en) 2020-02-28 2020-02-28 Sliding operation processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010133715.XA CN113325992A (en) 2020-02-28 2020-02-28 Sliding operation processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113325992A true CN113325992A (en) 2021-08-31

Family

ID=77413113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010133715.XA Pending CN113325992A (en) 2020-02-28 2020-02-28 Sliding operation processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113325992A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106855785A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 Method, device and the mobile terminal of screen false-touch prevention are realized during a kind of hands grasping
CN109669580A (en) * 2018-12-28 2019-04-23 努比亚技术有限公司 False-touch prevention operating method, mobile terminal and computer readable storage medium
CN109766043A (en) * 2018-12-29 2019-05-17 华为技术有限公司 The operating method and electronic equipment of electronic equipment
CN109992371A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method, device, electronic equipment, computer readable storage medium
CN110138978A (en) * 2019-06-14 2019-08-16 Oppo广东移动通信有限公司 Incoming-call control method and relevant apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106855785A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 Method, device and the mobile terminal of screen false-touch prevention are realized during a kind of hands grasping
CN109992371A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method, device, electronic equipment, computer readable storage medium
CN109669580A (en) * 2018-12-28 2019-04-23 努比亚技术有限公司 False-touch prevention operating method, mobile terminal and computer readable storage medium
CN109766043A (en) * 2018-12-29 2019-05-17 华为技术有限公司 The operating method and electronic equipment of electronic equipment
CN110138978A (en) * 2019-06-14 2019-08-16 Oppo广东移动通信有限公司 Incoming-call control method and relevant apparatus

Similar Documents

Publication Publication Date Title
CN110347269B (en) Empty mouse mode realization method and related equipment
CN110244893B (en) Operation method for split screen display and electronic equipment
CN112289313A (en) Voice control method, electronic equipment and system
CN110742580A (en) Sleep state identification method and device
CN113448482A (en) Sliding response control method and device of touch screen and electronic equipment
CN113395382A (en) Method for data interaction between devices and related devices
CN111865646A (en) Terminal upgrading method and related device
CN114490174A (en) File system detection method, electronic device and computer readable storage medium
CN114880251A (en) Access method and access device of storage unit and terminal equipment
WO2022042768A1 (en) Index display method, electronic device, and computer readable storage medium
CN110691165A (en) Navigation operation method and electronic equipment
CN114221402A (en) Charging method and device of terminal equipment and terminal equipment
CN113467735A (en) Image adjusting method, electronic device and storage medium
CN109285563B (en) Voice data processing method and device in online translation process
CN112527220B (en) Electronic equipment display method and electronic equipment
CN113467747B (en) Volume adjusting method, electronic device and storage medium
CN113132532B (en) Ambient light intensity calibration method and device and electronic equipment
CN114698078A (en) Transmission power adjustment method, electronic device, and storage medium
CN114116610A (en) Method, device, electronic equipment and medium for acquiring storage information
CN115393676A (en) Gesture control optimization method and device, terminal and storage medium
CN113391735A (en) Display form adjusting method and device, electronic equipment and storage medium
CN113867520A (en) Device control method, electronic device, and computer-readable storage medium
CN114466238A (en) Frame demultiplexing method, electronic device and storage medium
CN114120987A (en) Voice awakening method, electronic equipment and chip system
CN113325992A (en) Sliding operation processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210831

RJ01 Rejection of invention patent application after publication