WO2020056778A1 - Procédé destiné à blinder un événement tactile et dispositif électronique - Google Patents

Procédé destiné à blinder un événement tactile et dispositif électronique Download PDF

Info

Publication number
WO2020056778A1
WO2020056778A1 PCT/CN2018/107128 CN2018107128W WO2020056778A1 WO 2020056778 A1 WO2020056778 A1 WO 2020056778A1 CN 2018107128 W CN2018107128 W CN 2018107128W WO 2020056778 A1 WO2020056778 A1 WO 2020056778A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
inverted posture
distance sensor
touch
blocked
Prior art date
Application number
PCT/CN2018/107128
Other languages
English (en)
Chinese (zh)
Inventor
黄德志
童碧峰
陈浩
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/107128 priority Critical patent/WO2020056778A1/fr
Priority to CN201880085335.4A priority patent/CN111542802A/zh
Publication of WO2020056778A1 publication Critical patent/WO2020056778A1/fr

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/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

Definitions

  • the embodiments of the present application relate to the field of electronic technology, and in particular, to a method for shielding a touch event and an electronic device.
  • the embodiments of the present application provide a method and an electronic device for shielding a touch event, which can reduce the occurrence of false touches.
  • the technical solution of the present application provides a method for shielding a touch event, including: if the electronic device is determined to be in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture, the electronic device shields the touch event .
  • the three conditions can indicate that the electronic device is currently in the pocket, and thus can shield the touch event, thereby reducing the occurrence of false touch .
  • the electronic device shields the touch event, including: the electronic device periodically determines whether the electronic device is In the bright screen state, whether the distance sensor of the electronic device is blocked, and whether the electronic device is in an inverted posture.
  • the electronic device can periodically determine whether the above three conditions are met, so as to determine whether the electronic device is in a pocket.
  • the electronic device if the electronic device is determined to be in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture, the electronic device shields the touch event, including: the electronic device receives the first interrupt After the event, the second interruption event, or the third interruption event, it is determined whether the electronic device is in a bright screen state, whether the distance sensor of the electronic device is blocked, and whether the electronic device is in an inverted posture. If the electronic device is determined to be in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture, the electronic device shields the touch event.
  • the first interrupt event is used to report that the touch screen is switched from the off-screen state to the bright screen state; the second interrupt event is used to report that the distance sensor is switched from unblocked to blocked; the third interrupt event is used to report the electronic device.
  • the non-inverted posture is switched to the inverted posture.
  • the electronic device may determine whether the above three conditions are satisfied.
  • the first interrupt event is used to report that the touch screen is switched from the off-screen state to the bright state (the first interrupt event may be referred to as interrupt event 1), or the first interrupt event is used to report a touch
  • the screen control is switched from a bright screen state to an off screen state (the first interruption event may be referred to as an interruption event 2).
  • the second interrupt event is used to report that the distance sensor is switched from unblocked to blocked (the first interrupt event may be referred to as interrupt event 3), or the second interrupt event is used to report that the distance sensor is switched from blocked to unblocked ( This first interrupt event may be referred to as interrupt event 4).
  • the third interrupt event is used to report that the electronic device is switched from a non-inverted posture to an inverted posture (the first interrupt event may be referred to as an interrupt event 5), or the third interrupt event is used to report that the electronic device is switched from an inverted posture to a non-inverted posture ( This first interrupt event may be referred to as interrupt event 6).
  • the electronic device may determine whether the above three conditions are satisfied after receiving any one of the interrupt events 1 to 6.
  • the electronic device determines whether the electronic device is in a bright screen state, whether the distance sensor of the electronic device is blocked, and the electronic device Whether the device is in an inverted posture includes: the electronic device determines that the electronic device is in a bright screen state after receiving the first interruption event; the electronic device turns on a distance sensor and a posture sensor, and the posture sensor is used to detect the electronic device's posture; the electronic device determines the distance Whether the sensor is obstructed, and whether the electronic device is in an inverted posture.
  • the electronic device can turn off the distance sensor and the attitude sensor when the screen is off, and turn on the distance sensor and the attitude sensor when the screen is bright, so that the power consumption of the electronic device can be saved.
  • the method further includes: if the electronic device receives another first interrupt event, and the electronic device determines that the screen is turned off according to the other first interrupt event State, the electronic device turns off the distance sensor and the attitude sensor.
  • the electronic device before the electronic device switches from the bright screen state to the off screen state, the electronic device meets the condition of the bright screen state.
  • the electronic device can determine whether the other two conditions are satisfied through the distance sensor and the attitude sensor, and then determine the cycle. Whether to block touch events or work properly.
  • the method further includes: if the electronic device is in a bright screen state, the distance sensor is blocked, the electronic device is converted from an inverted posture to a non-inverted posture, and the electronic device is If the duration of the non-inverted gesture is less than or equal to the first preset value, the electronic device remains shielded from the touch event.
  • the electronic device shields the touch event, if the electronic device is in a bright screen state and the distance sensor is blocked, if the electronic device has an inverted posture temporarily switched to a non-inverted posture, and then quickly returns to the inverted posture, then the electronic The device does not unblock the touch event when the electronic device is temporarily switched to a non-inverted posture, thereby avoiding frequently blocking and unblocking the touch event, and saving power consumption of the mobile phone.
  • determining whether the electronic device is in an inverted posture includes: within a preset time period before the current time, if the electronic device is in an inverted posture for a length greater than a second preset value, the electronic device determines the inverted posture Or, within a preset time period before the current time, if the time length of the electronic device in the non-inverted posture is less than or equal to a third preset value, the electronic device determines the inverted posture.
  • the electronic device shields the touch event, if the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is temporarily switched to an inverted state; but within a preset time period before the current time, if the electronic device The duration of the inverted posture is greater than the second preset value, or the duration of the non-inverted posture of the electronic device is less than the third preset value, that is, the electronic device is the inverted posture most of the time within the third preset duration before the current time. , The electronic device can keep blocking the touch event without canceling the touch blocking event immediately, thus avoiding frequently blocking and unblocking the touch event, and reducing the power consumption of the mobile phone.
  • the electronic device if the electronic device is determined to be in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture, the electronic device shields the touch event, including: if the electronic device is determined to be in a bright screen state If the distance sensor of the electronic device is blocked, the electronic device is in an inverted posture, and the electronic device is in a vertical display state, the electronic device shields the touch event.
  • the user's hand may cover the distance sensor, the electronic device is in a bright state, and the electronic device is in an inverted posture
  • the electronic device is not in a vertical screen display state but a horizontal screen display state, so the electronic device does not block the touch event, but keeps working normally, so that the user can play games or watch videos normally.
  • the technical solution of the present application provides a device for shielding a touch event.
  • the device is included in an electronic device, and the device has the behavior of the electronic device in any one of the foregoing first aspects and possible implementations of the first aspect.
  • the functions can be realized by hardware, and the corresponding software can also be implemented by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, an input module or unit, a display module or unit, a processing module or unit, and the like.
  • an embodiment of the present application provides an electronic device including one or more processors and one or more memories.
  • the one or more memories are coupled to one or more processors.
  • the one or more memories are used to store computer program code.
  • the computer program code includes computer instructions.
  • the electronic device executes the instructions. The method for shielding a touch event in any possible implementation of the foregoing first aspect.
  • an embodiment of the present application provides a computer storage medium including computer instructions, and when the computer instructions are run on an electronic device, the electronic device is caused to perform the shielding of a touch event in any of the possible implementations of the first aspect. method.
  • an embodiment of the present application provides a computer program product.
  • the computer program product runs on a computer
  • the electronic device is caused to execute a method for shielding a touch event in any of the possible implementations of the first aspect.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for shielding a touch event according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of a handheld electronic device according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another handheld electronic device according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an inverted posture according to an embodiment of the present application.
  • FIG. 7 is a flowchart of another method for shielding a touch event according to an embodiment of the present application.
  • FIG. 8 is a flowchart of another method for shielding a touch event according to an embodiment of the present application.
  • FIG. 9 is a flowchart of another method for shielding a touch event according to an embodiment of the present application.
  • FIG. 10 is a flowchart of another method for shielding a touch event according to an embodiment of the present application.
  • FIG. 11 is a flowchart of another method for shielding a touch event according to an embodiment of the present application.
  • FIG. 12 is a correspondence diagram between a posture and time of an electronic device according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a horizontal screen display provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a vertical screen display provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a game playing scenario according to an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the touch screen of the electronic device is prone to mis-touch due to contact with clothing or other objects in the pocket.
  • the technical solution provided in the embodiment of the present application can reduce the occurrence of false touch by shielding the touch event when it is determined that the electronic device is located in the pocket.
  • a mobile phone in the bright screen state may open the camera or flashlight application due to clothing or other objects in the pocket touching the camera, flashlight, and other shortcut keys on the touch screen, resulting in a false touch; for example, in the bright screen state
  • Mobile phones may lock fingerprints or patterns due to clothing or other objects in the pocket touching the fingerprint or pattern drawing area on the touch screen; for example, a mobile phone with a bright screen may be affected by clothing
  • the track of the touch screen or other objects in the pocket touching the preset track is the same as the preset track (for example, the track of “C”), so that the application corresponding to the preset track (for example, the phone call application) is opened, resulting in a false touch.
  • the mobile phone that the user puts in his pocket is often in a bright screen state, which makes it easy to accidentally touch it.
  • the user forgets to turn off the touch screen before putting the mobile phone in the pocket, and puts the mobile phone in the bright screen state directly into the pocket.
  • the user puts the screen-lost mobile phone in his pocket, but the mobile phone receives an incoming call, a message in the pocket, or the screen brightens due to an alarm prompt or the user accidentally touches the power button.
  • the technical solution provided in the embodiments of the present application can reduce the occurrence of false touches by shielding touch events when the electronic device is in a pocket in a bright screen state.
  • the method for shielding touch events provided in the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, and super mobiles.
  • AR augmented reality
  • VR virtual reality
  • UMPC personal computer
  • PDA personal digital assistant
  • the embodiment of the present application does not place any restrictions on the specific type of the electronic device.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194, and Subscriber identification module (SIM) card interface 195 and the like.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices or integrated in one or more processors.
  • the controller may be a nerve center and a command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
  • the processor 110 may further include a memory for storing instructions and data.
  • 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 used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
  • I2C integrated circuit
  • I2S integrated circuit
  • PCM pulse code modulation
  • UART universal asynchronous transceiver receiver / transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be respectively coupled to a touch sensor 180K, a charger, a flash, a camera 193, and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to implement a function of receiving a call through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing, and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement the function of receiving calls through a Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus may be a two-way communication bus. It converts the data to be transferred between serial and parallel communications.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through a UART interface to implement a Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to implement a function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display 194, the camera 193, and the like.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like.
  • CSI camera serial interface
  • DSI display serial interface
  • the processor 110 and the camera 193 communicate through a CSI interface to implement a shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to implement a display function of the electronic device 100.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiments of the present application is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. While the charge management module 140 is charging the battery 142, the power management module 141 can also provide power to the electronic device.
  • the power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110.
  • the power management module 141 receives inputs from the battery 142 and / or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, 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, number of battery cycles, battery health (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charge management module 140 may be provided 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, and a baseband processor.
  • the antenna 1 and the antenna 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 frequency bands. Different antennas can also be multiplexed to improve antenna utilization.
  • antenna 1 can be multiplexed into a diversity antenna for a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on 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 by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is configured to modulate a low-frequency baseband signal to be transmitted into a 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.
  • the low-frequency baseband signal is processed by the baseband processor and then passed 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.
  • the modem processor may be a separate device.
  • the modem processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 may provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites applied to the electronic device 100. Wireless communication solutions such as global navigation system, GNSS, frequency modulation (FM), near field communication (NFC), and infrared technology (infrared, IR).
  • the wireless communication module 160 may be one or more devices that integrate at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • Wireless communication technologies can include global mobile communication systems (GSM), general packet radio services (GPRS), code division multiple access (code division multiple access, CDMA), and broadband code division Multiple access (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.
  • GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), crizot navigation system (BDS), quasi-zenith satellite system (quasi-zenith satellite system (QZSS) and / or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Bertdou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing and is connected to the display 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 change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use 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 (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active matrix organic light emitting diode active-matrix organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • emitting diodes AMOLED
  • flexible light-emitting diodes FLEDs
  • Miniled MicroLed
  • Micro-oLed quantum dot light emitting diodes
  • QLEDs quantum dot light emitting diodes
  • the electronic device 100 may include one or N display screens 194, where N is a positive integer
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP processes the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the light receiving element of the camera through the lens. The light signal is converted into an electrical signal, and the light receiving element of the camera passes the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye. ISP can also optimize the image's noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, an ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • An object generates an optical image through a lens and projects it onto a photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs digital image signals to the DSP for processing.
  • DSP converts digital image signals into image signals in standard RGB, YUV and other formats.
  • the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform a Fourier transform on the frequency point energy and the like.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture expert groups (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture expert groups
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can quickly process input information and continuously learn by itself.
  • the NPU can realize applications such as intelligent recognition of the electronic device 100, such as 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 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. For example, save music, videos and other files on an external memory card.
  • the internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.) and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • 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 magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
  • UFS universal flash memory
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is configured to convert digital audio information into an analog audio signal and output, and is also used 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.
  • 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 audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as the "handset" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, it can answer the voice by holding the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound through the mouth near the microphone 170C, and input a sound signal into 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, in addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may further be provided with three, four, or more microphones 170C to achieve sound signal collection, noise reduction, identification of sound sources, and directional recording.
  • the headset interface 170D is used to connect a wired headset.
  • the headphone interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular communication industry association (United States of America, CTIA) standard interface.
  • OMTP open mobile electronic device platform
  • CTIA cellular communication industry association
  • the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be disposed on the display screen 194.
  • the capacitive pressure sensor may be at least two parallel plates having a conductive material. When a force is applied to 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.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
  • the gyro sensor 180B may be used to determine a movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, the x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle of the electronic device 100 shake, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens cancels the shake of the electronic device 100 through the backward movement to achieve image stabilization.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the barometric pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C, and assists in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the opened and closed state of the holster or the opened and closed state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of electronic devices, and is used in applications such as switching between horizontal and vertical screens, and pedometers.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 through a light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficiently reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100.
  • the electronic device 100 may use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the touch screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and the pocket mode automatically unlocks and locks the screen. It can be understood that the proximity light sensor 180G can also be used as a distance sensor 180F.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • Ambient light sensor 180L can also be used to automatically adjust 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 touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 may use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering an incoming call, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 performs a performance reduction of a processor located near the temperature sensor 180J so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid the abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 when the temperature is lower than another threshold, performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also referred to as a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation 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.
  • a visual output related to the touch operation may be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire a vibration signal of a human voice oscillating bone mass.
  • Bone conduction sensor 180M can also contact the human pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M may also be disposed in the earphone and combined into a bone conduction earphone.
  • the audio module 170 may analyze the voice signal based on the vibration signal of the oscillating bone mass obtained by the bone conduction sensor 180M to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
  • the keys 190 include a power-on key, a volume key, and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive a key input, and generate a key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 may generate a vibration alert.
  • the motor 191 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback.
  • the touch operation applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting or removing the SIM card interface 195.
  • the electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple SIM cards can be inserted into the same SIM card interface 195 at the same time. The types of multiple cards can 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 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through a SIM card to implement functions such as calling and data communication.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system with a layered architecture as an example, and exemplifies a software structure of the electronic device 100.
  • FIG. 2 is a software structural block diagram of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, each of which has a clear role and division of labor.
  • the layers communicate with each other through a software interface.
  • the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and a system library, and a kernel layer from top to bottom.
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS and other applications.
  • the application framework layer provides an application programming interface (API) and a programming framework for applications at the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and more.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can consist of one or more views.
  • the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide a communication function of the electronic device 100. For example, management of call status (including connection, hang up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction.
  • the notification manager is used to inform download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • text messages are displayed in the status bar, sounds are emitted, electronic equipment vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL) and so on.
  • surface manager media manager
  • media library Media library
  • Three-dimensional graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • the 2D graphics engine is a graphics engine for 2D graphics.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the workflow of the software and hardware of the electronic device 100 is exemplarily described in conjunction with a scene in which a camera is started to take a photo in response to an operation of a user touching a camera icon.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch and click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures a still image or a video.
  • an embodiment of the present application provides a method for shielding a touch event.
  • the method may include:
  • the electronic device If the electronic device is determined to be in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture, the electronic device shields the touch event.
  • the shielding condition may include that the electronic device is determined to be in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture.
  • the electronic device is in an inverted posture, which means that the head (or top) of the electronic device faces downward.
  • the head 401 of the electronic device refers to the side where the earpiece (or receiver) 402 of the electronic device is located
  • the bottom 403 of the electronic device refers to the side where the microphone (or microphone) 404 is located.
  • the head 401 and the bottom 403 of the electronic device are located on opposite sides of the electronic device.
  • the electronic device further includes a distance sensor 405, which can be located on the head 401 side of the electronic device or on the bottom 403 side of the electronic device.
  • the touch screen 406 of the electronic device is used to display a graphical user interface (GUI).
  • GUI graphical user interface
  • the GUI currently displayed on the electronic device includes icons of multiple applications, names of multiple applications, weather widgets, and a status bar.
  • the head 401 of the electronic device faces upward. From the perspective of the user, the picture direction of the application icon and the text direction of the application name are positive. .
  • the electronic device is usually put into the pocket with the head down.
  • the distance sensor on the electronic device is blocked by the pocket. Therefore, when the distance sensor on the electronic device is blocked and the head of the electronic device is facing down, it can indicate that the electronic device is put in the pocket.
  • the distance sensor when the electronic device is in the bright screen state, the distance sensor is blocked, and the electronic device's head is facing down, it can indicate that the electronic device is in the bright screen state in the pocket, so the touch event can be shielded and the occurrence of false touch can be reduced. If the three conditions that the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is in an inverted posture are not satisfied, the touch event is not shielded, and the electronic device keeps working normally.
  • the distance sensor may include an optical distance sensor, an infrared distance sensor, or an ultrasonic distance sensor.
  • an infrared distance sensor is taken as an example to explain the process of determining that the distance sensor is blocked.
  • the infrared sensor may specifically be the above-mentioned proximity light sensor.
  • the infrared distance sensor may include an infrared transmitting tube and an infrared receiving tube. When the infrared light emitted by the transmitting tube is reflected by the object and received by the receiving tube, the object may be determined according to the transmitting time and the receiving time.
  • the distance from the infrared distance sensor if the distance is less than or equal to a preset threshold, it can indicate that the distance between the infrared distance sensor and an object is close, and the infrared distance sensor is blocked; if the distance is greater than the preset threshold, it can indicate The distance between the infrared distance sensor and an object is relatively short, and the infrared distance sensor is not blocked; when the receiving tube cannot receive the infrared light emitted by the transmitting tube, it can be shown that the infrared distance sensor is far from the object, and the infrared distance sensor is not blocked.
  • the head of the electronic device faces downwards, which refers to a ray 601 pointing from the bottom of the electronic device to the head of the electronic device and parallel to the side of the electronic device.
  • the angle 603 with the direction of gravity 602 is less than or equal to a preset Angle value.
  • the preset angle value is less than 90 °, and the specific value can be set according to actual needs. For example, the preset angle value can be 20 °. If the angle 603 between the ray 601 and the direction of gravity 602 is greater than a preset angle value, the electronic device does not have the head down, and the electronic device has a non-inverted attitude.
  • the electronic device may determine the direction of the head of the electronic device according to at least one of sensors such as a gravity sensor, an acceleration sensor, and a gyroscope, thereby determining whether the electronic device is in an inverted posture.
  • the electronic device shielding the touch event means that the electronic device turns off the touch function of the touch screen and does not respond to the touch event of the touch screen.
  • shielding the touch event by the electronic device in step 300 may include: the electronic device turns off a function of detecting a touch signal, that is, the electronic device does not detect the touch signal, and therefore does not generate a touch event, and does not respond to the touch event. .
  • shielding the touch event by the electronic device in step 300 may include: after detecting the touch signal, the electronic device interrupts the response processing to the touch event corresponding to the touch signal.
  • the touch screen of the electronic device does not generate a touch event after detecting a touch signal, and does not report the touch event to an upper application window, and thus does not respond to the touch event.
  • a touch event is generated according to the touch signal, and the touch event is redirected to a preset upper-layer application window for processing, thereby intercepting the touch event through the preset upper-layer application window. Interrupts the original processing of touch events.
  • the reminder application window uses a sound "dididi" to remind the user that the touch is currently blocked, in which state the electronic device will not respond to touch events; or, the reminder application window uses sound "Blocked touch” to remind the user that the touch event is currently blocked; or, the reminder application window can alert the user that the touch event has been blocked by means of vibration; or, the reminder application window can be displayed on the screen (always on display, In the AOD) state, a small pop-up window displayed in the local area is used to prompt the user that the touch has been blocked.
  • shielding the touch event by the electronic device in step 300 may include: the electronic device turns off a function of detecting a touch signal, and turns off or locks the screen after a first preset period of time; or the electronic device detects a touch After the signal is sent, the processing of responding to the touch event corresponding to the touch signal is interrupted, and the screen is turned off or the screen is locked after the first preset time period elapses.
  • the shielding of the touch event by the electronic device in step 300 may include: turning off or locking the screen of the electronic device to shield the touch event of the touch screen.
  • a user puts an electronic device in a bright screen state into a pocket and wants to continue using the electronic device later. For example, when a user is using a mobile phone while a bus is coming, the user puts the mobile phone in a bright screen state into his pocket, pulls out the bus card, and swipes the card. After the card is swiped, the user takes out the mobile phone and continues to use it.
  • the duration that the three conditions of the bright screen state, the distance sensor is blocked, and the inverted posture are simultaneously greater than or equal to the second preset duration (for example, 5s), it may indicate that the user may not want to use the electronic device for the time being. The device is ready, and the electronic device can shield the touch event. In the case where the duration of the three conditions is less than the second preset duration, the user may use the electronic device immediately, so the electronic device can not touch the touch event and keep normal. jobs.
  • the electronic device will block the touch event only after determining that the three conditions of the bright screen state, the distance sensor is blocked, and the inverted posture are met.
  • the embodiment of the present application does not limit the sequence in which the electronic device determines whether each of the three conditions is satisfied. For example, the electronic device may first determine whether it is a bright screen state, and then determine whether the distance sensor is blocked and whether it is in an inverted posture; for another example, the electronic device may first determine whether the distance sensor is blocked, and then determine whether it is a bright screen. Status and whether it is an inverted posture. After the electronic device has shielded the touch event, if the electronic device determines that these three conditions are not currently met, the electronic device can resume normal operation. Alternatively, after the electronic device has shielded the touch event, if the electronic device determines that the three conditions are not currently met, the electronic device cancels the shielded touch event, and resumes normal work.
  • the above step 300 may specifically include:
  • the electronic device determines whether it is in a bright screen state.
  • step 702 If it is in the bright screen state, the electronic device executes step 702; if it is not in the bright screen state, the electronic device executes step 703.
  • the electronic device determines whether the distance sensor of the electronic device is blocked.
  • step 703 is performed; if it is blocked, step 704 is performed.
  • the electronic device determines whether it is an inverted posture.
  • step 705 is performed; if it is not the inverted posture, step 703 is performed.
  • the electronic device shields the touch event.
  • the distance sensor and the attitude sensor may remain on, and the electronic device may periodically perform the steps 701-705 (for example, the period may be 20s), that is, periodically detect whether the electronic device is in a bright screen state, Whether the distance sensor is obstructed, and whether it is in an inverted posture.
  • the attitude sensor may be used to detect the attitude of the electronic device, for example, the angle between the ray 601 and the direction of gravity 602 may be detected, so as to detect whether the electronic device is in an inverted attitude.
  • the attitude sensor may be one or more of a gravity sensor, a gyroscope, or an acceleration sensor.
  • step 701 if the electronic device determines in step 701 that the electronic device is not in a bright screen state (for example, the electronic device is in a screen-off state (the screen-off state may include an AOD state)), the electronic device performs step 703, That is, the normal operation is maintained, and step 701 is performed again after the next detection cycle arrives.
  • the electronic device determines that the screen is in a bright screen state and determines that the distance sensor is not blocked in step 704
  • the electronic device executes step 703 and waits for the next detection period to execute step 701 again.
  • step 703 In the current detection cycle, if the electronic device determines that it is in a bright screen state and the distance sensor is blocked, and the electronic device is not in an inverted posture, the electronic device executes step 703 and waits for the next detection cycle to perform step 701 again. In the current detection cycle, if the electronic device determines that it is in a bright screen state and the distance sensor is blocked, and the electronic device is in an inverted posture, the electronic device executes step 705 and waits for the next detection cycle to execute step 701 again. After step 705 (shielding touch event), if the electronic device executes step 703 again, step 703 is specifically to cancel the shielding touch event, so as to resume normal work. After unblocking the touch event, if the electronic device performs step 703 again, step 703 keeps the electronic device working normally.
  • the memory of the electronic device may store a state for indicating the touch screen of the electronic device (for example, a bright screen state or an off screen state), a state of the distance sensor (for example, blocked or unblocked), and an attitude of the electronic device. (Such as an inverted posture, a non-inverted posture, or an angle at which the electronic device is currently inclined with respect to the direction of gravity, etc.).
  • a state for indicating the touch screen of the electronic device for example, a bright screen state or an off screen state
  • a state of the distance sensor for example, blocked or unblocked
  • an attitude of the electronic device for example, a state of the distance sensor (for example, blocked or unblocked)
  • an inverted posture a non-inverted posture, or an angle at which the electronic device is currently inclined with respect to the direction of gravity, etc.
  • the electronic device can determine the electronic device by querying these data, information, or parameters Whether the screen is bright, whether the distance sensor is blocked, and whether it is in an inverted posture.
  • the electronic device may periodically detect whether the electronic device is in a bright screen state, whether the distance sensor is blocked, and whether it is in an inverted posture. If it is determined that the electronic device is not in a bright screen state, the distance sensor is not blocked, or is not in an inverted posture, the electronic device cancels shielding of the touch event, and then returns to step 701 described above.
  • the method may include:
  • the electronic device determines whether it is in a bright screen state.
  • step 707 If it is in the bright screen state, the electronic device executes step 707; if it is not in the bright screen state, the electronic device executes step 708.
  • the electronic device determines whether the distance sensor is blocked.
  • step 709 If the distance sensor is blocked, the electronic device executes step 709, and if the distance sensor is not blocked, the electronic device executes step 708.
  • step 708 the electronic device may continue to perform the above step 701 after the next inspection period arrives.
  • the electronic device determines whether it is an inverted posture.
  • step 705 the electronic device continues to perform step 705 to keep the touch event masked, and continues to perform step 706 after the next detection period arrives; if it is not the inverted gesture, the electronic device executes step 708 to cancel the masked touch event.
  • the electronic device may also first determine whether it is an inverted posture, then determine whether the distance sensor is blocked, and then determine whether it is a bright screen state.
  • the method may include:
  • the electronic device determines whether it is an inverted posture.
  • step 902 If it is the inverted posture, the electronic device executes step 902; if it is not the inverted posture, the electronic device executes step 903.
  • the electronic device determines whether the distance sensor is blocked.
  • step 903 is performed; if blocked, step 904 is performed.
  • the electronic device determines whether it is in a bright screen state.
  • step 905 is performed; if it is not in a bright screen state, step 903 is performed.
  • the electronic device shields the touch event.
  • the electronic device is determined to be bright. After the screen state, it is necessary to continue to determine whether the distance sensor is blocked and whether it is in an inverted posture. However, it is rare that the electronic device is in an inverted posture (for example, the electronic device is put into a pocket, or the user walks normally with the electronic device in hand). Generally, after it is determined in step 901 that the distance sensor is not blocked, it will not continue to determine whether it is an inverted posture and a bright screen state in the current cycle. Therefore, compared with the method shown in FIG. 7 or FIG. 8, the method shown in FIG. 9 can save power consumption of the electronic device.
  • the electronic device may also first determine whether it is an inverted posture, then determine whether it is a bright screen state, and then determine whether the distance sensor is blocked, which will not be described here.
  • the electronic device may first determine whether the distance sensor is blocked, then determine whether it is an inverted posture, and then determine whether it is a bright screen state.
  • the method may include:
  • the electronic device determines whether the distance sensor is blocked.
  • step 1002 If the distance sensor is blocked, the electronic device executes step 1002, and if the distance sensor is not blocked, the electronic device executes step 1003.
  • the electronic device determines whether it is in an inverted posture.
  • step 1003 is performed; if it is the inverted posture, step 1004 is performed.
  • the electronic device determines whether it is in a bright screen state.
  • step 1005 If it is in the bright screen state, go to step 1005; if it is not in the bright screen state, go to step 1003.
  • the electronic device shields the touch event.
  • the distance sensor of the electronic device is rarely blocked (for example, the electronic device is put in a pocket or the distance sensor is blocked by the face when making a call), so the electronic device usually determines that the distance sensor is not blocked in step 1001. So that it will not continue to determine whether it is an inverted posture and a bright screen state in the current detection cycle. Therefore, compared with the method shown in FIG. 7 or FIG. 8, the method shown in steps 1001-1005 can save power consumption of the electronic device.
  • the electronic device may also first determine whether the distance sensor is blocked, then determine whether it is a bright screen state, and then determine whether it is an inverted posture, which will not be described here.
  • the electronic device when the electronic device is in the off state, the electronic device may turn off the distance sensor and the attitude sensor for detecting whether the electronic device is in an inverted posture; in the bright state, the electronic device may turn on the distance sensor and the attitude.
  • the sensor is used to determine whether the distance sensor is blocked and whether the electronic device is in an inverted posture, so that a method similar to that shown in any one of FIGS. 7-10 is performed periodically.
  • the electronic device can also turn the distance sensor and attitude sensor on or off during the execution of the method. In this way, the distance sensor and attitude sensor are not always on, which can save power consumption of the electronic device.
  • the electronic device executes the method shown in FIG. 7 as an example.
  • the electronic device does not periodically determine whether the three conditions are a bright screen state, whether the distance sensor is blocked, and whether it is an inverted posture, but determines whether to meet the three conditions after receiving an interruption event.
  • the interrupt event may include a first interrupt event, a second interrupt event, or a third interrupt event corresponding to the three conditions, respectively.
  • the first interrupt event is used to report a change in the bright state of the touch screen; the second interrupt event is used to report whether the distance sensor is blocked; the third interrupt event is used to report a change in the posture of the electronic device.
  • the first interruption event may be an interruption event of the touchscreen power-on or touchscreen power-down reported by the power management module of the touchscreen. If the touchscreen is powered on, the electronic device switches to the bright screen state. When the control screen is powered off, the electronic device switches to the off state.
  • the second interruption event may be an interruption event reported when the distance sensor is switched from unblocked to blocked; according to the second interruption event, the electronic device may determine that the distance sensor is blocked.
  • the second interruption event may be an interruption event reported when the distance sensor is changed from occluded to unblocked; according to the second interruption event, the electronic device may determine that the distance sensor is not blocked.
  • the third interruption event may be an interruption event reported when the posture sensor detects that the electronic device changes from an inverted posture to a non-inverted posture; according to the third interruption event, the electronic device may determine the non-inverted posture.
  • the third interruption event may be an interruption event reported when the posture sensor detects that the electronic device changes from a non-inverted posture to an inverted posture; according to the third interruption event, the electronic device may determine the inverted posture.
  • the distance sensor and the attitude sensor remain on, and the electronic device determines whether the three conditions in the shielding condition are satisfied at the same time after detecting any of the first interruption event, the second interruption event, or the third interruption event. Conditions to determine whether to block touch events.
  • the first interrupt event includes an interrupt event 1 or an interrupt event 2.
  • Interrupt event 1 is used to report that the touch screen is switched from the off-screen state to the bright screen state, such as an interrupt event when the touch screen is powered on.
  • the electronic device may determine that the screen is currently in the bright state according to the interrupt event 1.
  • Interrupt event 2 is used to report that the touch screen is switched from the bright screen state to the off screen state, such as an interrupt event when the touch screen is powered off.
  • the electronic device may determine that the screen is currently off according to the interrupt event 2.
  • the second interrupt event includes an interrupt event 3 or an interrupt event 4.
  • Interrupt event 3 is used to report that the distance sensor is switched from unblocked to blocked. The electronic device may determine that the distance sensor is blocked according to the interrupt event 3.
  • Interrupt event 4 is used to report that the distance sensor is switched from blocked to unblocked.
  • the electronic device may determine that the distance sensor is not blocked according to the interrupt event 4.
  • the third interrupt event includes an interrupt event 5 or an interrupt event 6.
  • the interruption event 5 is used to report that the electronic device is switched from a non-inverted posture to an inverted posture.
  • the electronic device may determine that the current posture is the inverted posture according to the interruption event 5.
  • Interrupt event 6 is used to report that the electronic device is switched from an inverted posture to a non-inverted posture.
  • the electronic device may determine that it is currently in a non-inverted state according to the interrupt event 6. After receiving any interrupt event from interrupt event 1 to interrupt event 6, the electronic device determines whether the above three conditions of the mask condition are satisfied at the same time, thereby determining whether to shield the touch event.
  • the electronic device may determine whether to satisfy the above three conditions of the mask condition at the same time, thereby determining whether to shield the touch event.
  • the first identifier, the second identifier, and the third identifier may be stored on the electronic device.
  • the first identifier is used to identify whether the electronic device is currently in a bright screen state, and the electronic device may update the first identifier according to the received first interruption event, so that the first identifier can identify in real time whether the electronic device is currently in a bright or off screen state.
  • the electronic device detects an interruption event 1
  • the first identifier is set to the first state to indicate a bright screen state
  • the first identifier is set to a second state to be expressed as Off screen.
  • the second identifier is used to identify whether the distance sensor is blocked, and the electronic device may update the first identifier according to the detected second interruption event, so that the first identifier can identify whether the distance sensor is currently blocked or not in real time. For example, if the electronic device detects an interruption event 3, it sets the second identifier to the first state to indicate that the distance sensor is blocked; if the electronic device detects the interruption event 4, it sets the second flag to the second state to indicate the distance The sensor is not blocked.
  • the third identifier is used to identify whether the electronic device is in an inverted posture, and the electronic device may update the third identifier according to the detected third interruption event, so that the third identifier can identify the electronic device in an inverted posture or a non-inverted posture in real time. For example, if the electronic device detects an interruption event 5, it sets the third flag to the first state to indicate the inverted posture; if the electronic device detects the interruption event 6, it sets the third flag to the second state to indicate the non- Handstand posture.
  • the first identifier, the second identifier, and the third identifier are in a preset state.
  • the first identifier preset state is a first state used to indicate a bright screen state
  • the second identifier preset state is a second state used to indicate that the distance sensor is not blocked
  • the third identifier preset state This is the second state for representing a non-inverted posture.
  • the electronic device after the electronic device is powered on, the electronic device initializes the first identifier, the second identifier, and the third identifier. Specifically, after being turned on, the electronic device can detect whether the screen is currently bright and initialize the first identifier according to the detection result; the electronic device can detect whether the distance sensor is blocked and initialize the second identifier according to the detection result; the electronic device can also Detect whether it is an inverted posture, and initialize a third identifier according to the detection result.
  • the electronic device may determine whether the screen is in a bright state according to the first interruption event, and determine whether the distance sensor is blocked and whether the electronic device is in an inverted posture. This determines whether touch events are blocked. Specifically, if the electronic device determines that it is a bright screen state according to the first interruption event, the first identifier is updated so that the first identifier indicates the bright screen state; and then, the electronic device reads the saved second identifier and the third identifier so as to The second identification determines whether the distance sensor is blocked, and determines whether the electronic device is in an inverted posture according to the third identification.
  • the electronic device may determine whether it is a bright screen state in step 701 according to the first interruption event, and then perform steps 702-705 to determine whether the distance sensor is blocked, and then determine whether it is an inverted posture, thereby Determines whether to block touch events.
  • the electronic device may determine whether the screen is bright in step 701 or step 706 according to the first interruption event, and then perform other steps to determine whether the distance sensor is blocked, and then determine whether it is an inverted posture. To determine whether to block or unblock touch events.
  • the electronic device may determine whether the distance sensor is blocked according to the second interruption event, and determine whether it is a bright screen state and whether the electronic device is in an inverted posture. To determine whether to block touch events. Specifically, if the electronic device determines that the distance sensor is blocked according to the second interruption event, the electronic device may update the second identifier so that the second identifier indicates that the distance sensor is blocked. Then, the electronic device reads the saved first identifier and the third identifier to determine whether it is a bright screen state according to the first identifier, and determines whether the electronic device is in an inverted posture according to the third identifier.
  • the electronic device may determine whether the distance sensor is blocked in step 901 according to the second interruption event, and then perform steps 902-905 to determine whether it is an inverted posture and then determine whether it is a bright screen state, thereby Determines whether to block touch events. It can be understood that after the electronic device determines whether the distance sensor is blocked according to the second interruption event, it can also first determine whether it is a bright screen state, and then determine whether it is an inverted posture.
  • the electronic device may determine whether it is an inverted posture according to the third interruption event, update the third identifier, and determine whether it is a bright screen according to the first identifier and the second identifier. The state and whether the distance sensor is blocked, so as to determine whether the touch event is blocked, will not be repeated here.
  • FIGS. 7-10 can be executed when any one of the interrupt events 1 to 6 is received, or when any of the interrupt events 1, 3, and 5 is received.
  • the electronic device when the electronic device receives the first interruption event and the electronic device determines that the screen is in a bright state according to the first interruption event, the electronic device may turn on the distance sensor and the attitude sensor, and then determine whether the distance sensor is cycled. Obstruction and whether the electronic device is in an inverted posture. If the distance sensor is blocked and is in an inverted posture, the electronic device shields the touch event; if the distance sensor is not blocked or is not in an inverted posture, the electronic device works normally or cancels the touch event.
  • the electronic device When the electronic device receives another first interrupt event, and the electronic device determines that it is not a bright screen state according to the first interrupt event, whether the electronic device ends the cycle distance sensor is blocked and whether the electronic device is in an inverted posture, the electronic device works normally, And the electronic device turns off the distance sensor and the attitude sensor to save power consumption of the electronic device.
  • the electronic device may determine whether the distance sensor is blocked according to the second interruption event, and then Then determine whether it is an inverted posture; if the electronic device receives a third interruption event, the electronic device determines whether it is an inverted posture according to the third interruption event, and then determines whether the distance sensor is blocked. Understandably, in the process of the electronic device cyclically determining whether the distance sensor is blocked and whether the electronic device is in an inverted posture, it may be determined whether the distance sensor is blocked and an inverted state according to the trigger of the second interruption event or the third interruption event.
  • the interrupt event 3 when the interrupt event 3 is received, it is determined that the distance sensor is blocked, and the third flag is read to determine whether the terminal is in an inverted state; or when the interrupt event 5 is received, it is determined that the interrupt is an inverted state, and the second flag is read to determine the distance. Whether the sensor is blocked.
  • the first interrupt event includes interrupt event 1 or interrupt event 2
  • the second interrupt event includes interrupt event 3 or interrupt event 4
  • the third interrupt event includes interrupt event 5 or interrupt event 6.
  • the first interrupt event is interrupt event 1
  • the second interrupt event is interrupt event 3
  • the third interrupt event is interrupt event 5.
  • the electronic device stores the first identifier, the second identifier, and the third identifier.
  • step 1102 is performed to enable the distance sensor and the attitude sensor.
  • the electronic device updates the first identifier according to the first interruption event.
  • the electronic device executes steps 1103-1108 cyclically until the electronic device receives another first interruption event (in step 1109), and determines that the electronic device is off-screen according to the first interruption event, then the electronic device performs step 1110 , Turn off the distance sensor and attitude sensor, and the electronic device works normally.
  • the electronic device may execute the processes shown in steps 1103-1106. And, the electronic device determines whether to update the second identifier according to the second interruption event and the saved second identifier. Specifically, if it is determined in step 1103 that the distance sensor is not blocked, the electronic device executes step 1105 to maintain normal operation; if it is determined in step 1103 that the distance sensor is blocked, the electronic device executes step 1104 to determine whether it is an inverted posture. In step 1104, the electronic device may read the saved third identifier, and determine whether the electronic device is in an inverted posture according to the third identifier.
  • step 1104 If it is determined in step 1104 that it is not an inverted posture, the electronic device executes step 1105 to maintain normal work; if it is determined in step 1104 that it is an inverted posture, the electronic device performs step 1106 to shield the touch event.
  • step 1102 if the electronic device receives the third interruption event, the processes shown in step 1107, step 1108, step 1105, and step 1106 may be performed, and details are not described herein.
  • the method may further include: if the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is converted from an inverted posture to a non-inverted posture. And the duration of the non-inverted posture of the electronic device is less than or equal to the first preset value, the electronic device remains shielded from the touch event; if the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is converted from the inverted posture Is a non-inverted posture, and the duration of the non-inverted posture of the electronic device is greater than the first preset value, the electronic device cancels shielding of the touch event.
  • the first preset value is relatively small, and may be specifically set according to actual needs, for example, it may be 2s.
  • the electronic device may start a timer to perform the duration of the non-inverted posture. Timing, thereby determining the magnitude relationship between the duration of the non-inverted posture and the first preset value, and then determining whether to keep the masking event or unmasking the touch event.
  • the electronic device shields the touch event, if the electronic device is in a bright screen state and the distance sensor is blocked, if the electronic device has an inverted posture temporarily switched to a non-inverted posture, and then quickly returns to the inverted posture, Then, the electronic device does not cancel the touch event when the electronic device is temporarily switched to the non-inverted posture, so that the touch event can be prevented from being frequently blocked and unscreened, and the power consumption of the mobile phone can be saved.
  • the mobile phone is in the wristband of the user's arm, during the user's walking or running, the posture of the mobile phone in the wristband changes in real time as the arm is shaken.
  • the mobile phone is usually in an inverted posture, and it is in a non-inverted state only for a moment, that is, the mobile phone only switches for a short period of time after switching from the inverted posture to the non-inverted posture. Value) and then return to the inverted posture.
  • the electronic device can shield the touch event; when the mobile phone is in the bright screen state, the distance of the mobile phone.
  • the sensor is blocked and the phone is temporarily in an inverted posture (that is, the duration of the phone's non-inverted posture is less than the first preset value)
  • the mobile phone can remain shielded from touch events, thereby avoiding movement processes such as walking or running. Frequently block and unblock touch events in the mobile phone to reduce the power consumption of the phone.
  • the electronic device shields the touch event, if the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is converted from an inverted posture to a non-inverted posture, the electronic device is based on the duration of the non-inverted posture
  • the scheme for determining whether to keep or unblock the touch event can be applied not only to the embodiment corresponding to FIG. 7 but also to other embodiments, for example, the embodiment corresponding to any one of FIGS. 8 to 11, which will not be repeated here. .
  • the above step 704 may be replaced by: the electronic device determines whether the time during which the electronic device is in an inverted posture is greater than the second preset value within a third preset time period before the current time. If yes, go to step 705; if no, go to step 703.
  • the above step 704 may be replaced by: the electronic device determines that, within a third preset time period before the current time, the time during which the electronic device is in the non-inverted posture is less than or equal to the third preset value. If yes, go to step 705; if no, go to step 703.
  • the second preset value may be larger, the third preset value may be smaller, and the third preset value is smaller than the second preset value.
  • the electronic device shields the touch event or keeps blocking the touch event.
  • the electronic device can store in real time whether the posture of the electronic device is an inverted posture or a non-inverted posture through the memory. After the electronic device receives the interruption event of the posture sensor, the electronic device can query the memory before the current time. The posture of the electronic device within the three preset time periods, so as to count the length of time when the electronic device is in the inverted posture or the time period when the electronic device is in the non-inverted posture during the third preset time period, and further determine the length of the electronic device in the inverted posture and the second preset Value relationship, or determining the relationship between the length of time when the electronic device is in a non-inverted posture and the third preset value, so as to further determine whether to keep blocking or unblocking the touch event.
  • the third preset duration may be 30s
  • the second preset value may be 25s
  • the third preset value may be 5s.
  • the electronic device after the electronic device shields the touch event, if the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, and the electronic device is temporarily switched to an inverted state; but within a third preset time period before the current time If the duration of the electronic device in the inverted posture is greater than the second preset value, or the duration of the electronic device in the non-inverted posture is less than the third preset value, that is, most of the time within the third preset duration of the electronic device before the current time Inside is an inverted posture, the electronic device can keep the touch event blocked without canceling the touch event immediately, thus avoiding the frequent blocking and unblocking of the touch event, and reducing the power consumption of the mobile phone.
  • the mobile phone is in the pocket of the user.
  • the mobile phone shakes in the pocket, and the posture of the mobile phone is dynamically changed, but most of the time the mobile phone is still in an inverted posture.
  • the mobile phone is in a bright screen state, the distance sensor of the mobile phone is blocked, and the mobile phone is in an inverted posture most of the time within the third preset time period before the current moment, the mobile phone blocks the touch event or keeps the touch event blocked.
  • the mobile phone during the time period t1, the mobile phone is in an inverted posture, and the touch event is shielded; during the time period t2, the electronic device is in a non-inverted posture, and during the time period t2, the mobile phone is in accordance with Time is an inverted gesture, so the phone will continue to block touch events at the current moment without unblocking touch events. In this way, it is possible to avoid frequent blocking and unblocking of touch events while the user is going up the stairs, and save power consumption of the mobile phone.
  • the above step 300 may specifically include: when the electronic device is in a bright screen state, the distance sensor of the electronic device is blocked, the electronic device is in an inverted posture, and the electronic device is in a vertical screen display state, the electronic device shields the touch. event.
  • the specific processing procedure is similar to the method flow shown in FIG. 7 to FIG. 11, except that in this embodiment, the “shielding condition” includes an “electronic device in a vertical screen display state” on the basis of the above three conditions. A condition. Similar to the method flow shown in FIGS. 7-10, the electronic device can periodically detect whether the electronic device meets the bright screen state, the distance sensor of the electronic device is blocked, the electronic device is in an inverted posture, and the electronic device is in a vertical screen display state.
  • the electronic device may also determine whether to meet the four conditions after receiving an interrupt event corresponding to any one of the four conditions, thereby determining whether to shield the touch event, which is not described herein.
  • the horizontal screen display is usually displayed in a full screen state.
  • a schematic view of the horizontal screen display can be referred to FIG. 13; the vertical screen display can be a full screen state or a non-full screen state, and a schematic view of the vertical screen display can be referred to FIG. 14.
  • the electronic device if the electronic device is in the bright screen state, the distance sensor of the electronic device is blocked, the electronic device is in an inverted posture, and the electronic device is in the vertical screen display state, the electronic device shields the touch event; if the electronic device is in the bright screen state, In the state, the distance sensor of the electronic device is blocked, the electronic device is in an inverted posture, and the electronic device is in a horizontal screen display state, the electronic device does not shield the touch event, and the electronic device works normally.
  • the user's hand may cover the distance sensor, the electronic device is in a bright screen state, and the electronic device is in an inverted posture.
  • the electronic device is not in a vertical screen display state but a horizontal screen display state. Therefore, the electronic device does not block the touch event, but keeps working normally, so that the user can play games or watch videos normally.
  • the electronic device includes hardware and / or software modules corresponding to performing each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is performed by hardware or computer software-driven hardware depends on the specific application of the technical solution and design constraints. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
  • the electronic device may be divided into functional modules according to the foregoing method example.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
  • FIG. 16 shows a possible composition diagram of the electronic device 1600 involved in the foregoing embodiment.
  • the electronic device 1600 may include a shielding unit 1601, a determination unit 1602, and a processing unit 1603.
  • the shielding unit 1601 may be used to support the electronic device 1600 to perform the above steps 300, 705, 905, 1005, 1106, etc., and / or other processes for the techniques described herein.
  • the determination unit 1602 may be used to support the electronic device 1600 to perform the above steps 701, 702, 704, 706, 707, 709, 901, 902, 902, 904, 1001, 1002, 1004, and 1101. , Step 1103, step 1104, step 1107, step 1108, step 1109, etc., and / or other processes for the techniques described herein.
  • the processing unit 1603 may be used to support the electronic device 1600 to perform the above steps 703, 708, 903, 1003, 1102, 1105, 1110, etc., and / or other processes for the technology described herein.
  • the electronic device 1600 provided in this embodiment is configured to perform the foregoing method for shielding a touch event, and therefore can achieve the same effect as the foregoing implementation method.
  • the electronic device 1600 may include a processing module, a storage module, and a communication module.
  • the processing module may be used to control and manage the actions of the electronic device 1600.
  • the processing module may be used to support the electronic device 1600 to perform the steps performed by the shielding unit 1601, the determining unit 1602, and the processing unit 1603.
  • the storage module may be used to support the electronic device 1600 to store the first identification, the second identification, the third identification, and the like, as well as to store program code and data.
  • the communication module can be used to support communication between the electronic device 1600 and other devices.
  • the processing module may be a processor or a controller. It may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the present disclosure.
  • the processor may also be a combination that implements computing functions, such as a combination including one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the memory module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the electronic device involved in this embodiment may be an electronic device having a structure shown in FIG. 1 and FIG. 2.
  • An embodiment of the present application further provides a computer storage medium.
  • the computer storage medium stores computer instructions.
  • the computer instructions When the computer instructions are run on the electronic device, the electronic device is caused to execute the foregoing related method steps to implement the touch shielding in the foregoing embodiment. Event method.
  • An embodiment of the present application further provides a computer program product, when the computer program product is run on a computer, the computer is caused to execute the foregoing related steps, so as to implement the method for shielding a touch event performed by the electronic device in the foregoing embodiment.
  • an embodiment of the present application further provides a device.
  • the device may specifically be a chip, a component, or a module.
  • the device may include a connected processor and a memory.
  • the memory is used to store a computer to execute instructions.
  • the processor may execute computer execution instructions stored in the memory, so that the chip executes the method for shielding a touch event performed by the electronic device in the foregoing method embodiments.
  • the electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding ones provided above. The beneficial effects in the method are not repeated here.
  • the term “when” can be interpreted to mean “if " or “after” or “in response to determining " or “in response to detecting ".
  • the phrases “when determined " or “if detected (the stated condition or event)” can be interpreted to mean “if determined " or “response to a determination " or “on detection (Statement or event stated) “or” in response to detection (statement or event stated) ".
  • the disclosed apparatus and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of modules or units is only a logical function division.
  • multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit can be stored in a readable storage medium if it is implemented as a software functional unit and sold or used as an independent product.
  • the technical solution of the embodiments of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product that is stored in a storage medium.
  • the instructions include a number of instructions for causing a device (which can be a single-chip microcomputer, a chip, or the like) or a processor to execute all or part of the steps of the methods in the embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

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

L'invention concerne un procédé destiné à blinder un événement tactile et un dispositif électronique, qui se rapportent au domaine technique de l'électronique et peuvent réduire l'occurrence d'un faux toucher. La solution spécifique est : s'il est déterminé qu'un dispositif électronique est dans un état d'écran actif, qu'un capteur de distance du dispositif électronique est bloqué et que le dispositif électronique est dans une position renversée, alors le dispositif électronique est blindé contre un événement tactile. Les modes de réalisation de la présente invention sont utilisés pour réduire les faux touchers.
PCT/CN2018/107128 2018-09-21 2018-09-21 Procédé destiné à blinder un événement tactile et dispositif électronique WO2020056778A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/107128 WO2020056778A1 (fr) 2018-09-21 2018-09-21 Procédé destiné à blinder un événement tactile et dispositif électronique
CN201880085335.4A CN111542802A (zh) 2018-09-21 2018-09-21 一种屏蔽触摸事件的方法及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/107128 WO2020056778A1 (fr) 2018-09-21 2018-09-21 Procédé destiné à blinder un événement tactile et dispositif électronique

Publications (1)

Publication Number Publication Date
WO2020056778A1 true WO2020056778A1 (fr) 2020-03-26

Family

ID=69888063

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/107128 WO2020056778A1 (fr) 2018-09-21 2018-09-21 Procédé destiné à blinder un événement tactile et dispositif électronique

Country Status (2)

Country Link
CN (1) CN111542802A (fr)
WO (1) WO2020056778A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204075A (zh) * 2021-12-01 2023-06-02 荣耀终端有限公司 防误触的方法和装置
WO2024198788A1 (fr) * 2023-03-31 2024-10-03 华为技术有限公司 Procédé de commande de déverrouillage et dispositif électronique

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016629B (zh) * 2021-11-19 2023-06-06 荣耀终端有限公司 防误触的方法和装置
CN114578942A (zh) * 2022-02-11 2022-06-03 珠海格力电器股份有限公司 移动显示设备控制方法、装置、电子设备及介质
CN115268749B (zh) * 2022-07-20 2024-04-09 广州视享科技有限公司 增强现实设备的控制方法、移动终端及防遮挡系统
CN117742475A (zh) * 2022-09-14 2024-03-22 华为技术有限公司 设备运行控制方法、电子设备和存储介质
CN116521018B (zh) * 2023-07-04 2023-10-20 荣耀终端有限公司 误触提示方法、终端设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902854A (zh) * 2014-03-18 2014-07-02 深圳创维数字技术股份有限公司 一种防止误操作的方法及终端
CN105573632A (zh) * 2015-12-14 2016-05-11 魅族科技(中国)有限公司 一种终端控制方法及其装置
CN106383574A (zh) * 2016-09-05 2017-02-08 广东欧珀移动通信有限公司 屏幕解锁方法、装置及移动终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150051B (zh) * 2013-02-25 2016-03-02 深圳市汇顶科技股份有限公司 触摸操作响应方法、系统及触摸屏终端
CN105245717A (zh) * 2015-10-27 2016-01-13 努比亚技术有限公司 移动终端防误触装置和方法
CN106200878A (zh) * 2016-07-19 2016-12-07 深圳市万普拉斯科技有限公司 指纹控制方法、装置及移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902854A (zh) * 2014-03-18 2014-07-02 深圳创维数字技术股份有限公司 一种防止误操作的方法及终端
CN105573632A (zh) * 2015-12-14 2016-05-11 魅族科技(中国)有限公司 一种终端控制方法及其装置
CN106383574A (zh) * 2016-09-05 2017-02-08 广东欧珀移动通信有限公司 屏幕解锁方法、装置及移动终端

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204075A (zh) * 2021-12-01 2023-06-02 荣耀终端有限公司 防误触的方法和装置
EP4212999A4 (fr) * 2021-12-01 2024-06-19 Honor Device Co., Ltd. Procédé et dispositif de prévention d'erreur de contact
WO2024198788A1 (fr) * 2023-03-31 2024-10-03 华为技术有限公司 Procédé de commande de déverrouillage et dispositif électronique

Also Published As

Publication number Publication date
CN111542802A (zh) 2020-08-14

Similar Documents

Publication Publication Date Title
WO2020259452A1 (fr) Procédé d'affichage plein écran pour terminal mobile et appareil
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021169337A1 (fr) Procédé d'affichage d'empreintes digitales sur écran et dispositif électronique
WO2020134869A1 (fr) Procédé de fonctionnement d'un dispositif électronique et dispositif électronique
WO2020119493A1 (fr) Procédé de réponse pour écran tactile et dispositif électronique
WO2020000448A1 (fr) Procédé et terminal d'affichage d'écran flexible
WO2020056778A1 (fr) Procédé destiné à blinder un événement tactile et dispositif électronique
CN111543042B (zh) 通知消息的处理方法及电子设备
WO2021036770A1 (fr) Procédé de traitement d'écran partagé et dispositif terminal
CN111258700B (zh) 图标管理方法及智能终端
CN111913750B (zh) 一种应用程序管理方法、装置及设备
CN112740152B (zh) 手写笔检测方法、系统及相关装置
WO2020073288A1 (fr) Procédé de déclenchement de dispositif électronique permettant d'exécuter une fonction, et dispositif électronique associé
CN113573390B (zh) 天线功率调节方法、终端设备及存储介质
WO2021218429A1 (fr) Procédé de gestion d'une fenêtre d'application, dispositif terminal et support de stockage lisible par ordinateur
US20240237115A1 (en) Message Push Method and Apparatus
CN114077365A (zh) 分屏显示方法和电子设备
CN110058729B (zh) 调节触摸检测的灵敏度的方法和电子设备
CN110609650B (zh) 一种应用状态切换方法及终端设备
EP4057122A1 (fr) Procédé de capture d'écran et dispositif associé
CN110737916A (zh) 通信终端及处理方法
CN114449622B (zh) 一种用于计算Wi-Fi耗电量的方法及电子设备
CN116723384B (zh) 进程的控制方法、电子设备及可读存储介质
EP4394636A1 (fr) Procédé d?affichage d?application, dispositif électronique et support de stockage
WO2022042774A1 (fr) Procédé d'affichage d'image de profil et dispositif électronique

Legal Events

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

Ref document number: 18934014

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18934014

Country of ref document: EP

Kind code of ref document: A1