WO2023284415A1 - 电源键误触检测方法及电子设备 - Google Patents

电源键误触检测方法及电子设备 Download PDF

Info

Publication number
WO2023284415A1
WO2023284415A1 PCT/CN2022/094519 CN2022094519W WO2023284415A1 WO 2023284415 A1 WO2023284415 A1 WO 2023284415A1 CN 2022094519 W CN2022094519 W CN 2022094519W WO 2023284415 A1 WO2023284415 A1 WO 2023284415A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
preset
earphone
restart
duration
Prior art date
Application number
PCT/CN2022/094519
Other languages
English (en)
French (fr)
Inventor
韩华元
余亮
赵俊民
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023284415A1 publication Critical patent/WO2023284415A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present application example relates to the field of terminal equipment, and in particular to a method for detecting false touches of a power button and electronic equipment.
  • the present application provides a method for detecting a false touch of a power button and an electronic device.
  • the electronic device detects that the user accidentally touches the power button, it outputs the first prompt information to remind the user to touch the power button by mistake, which can reduce the number of restarts of the electronic device by mistake, improve the user experience, and reduce the risk of electronic device failure. Back off.
  • the present application provides an electronic device.
  • the electronic device includes memory and a processor.
  • the processor is coupled with the memory.
  • the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device performs the following steps: receiving the pressing operation of the power button by the user; when the pressing operation exceeds the first preset duration and the electronic device is in a preset scene Next, output the first prompt information prompting the user to touch the power button by mistake; when the duration of the pressing operation exceeds the second preset duration, perform the restart operation.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: after restarting, display a second prompt message on the main interface, wherein the second prompt message is used to remind the user that the restart is an error. Touch Restart. Displaying the second prompt message on the main interface to remind the user that this restart is a false touch restart in a certain scene can reduce the probability of the user going to the detection network for detection and reduce the amount of electronic equipment that will not be refunded.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: in response to the received first user operation, at The detailed content of the second prompt information is displayed on the main interface, and the detailed content includes scene information; the first user operation is an operation for the user to manually check the second prompt information, and the user can know the present information by checking the detailed content of the second prompt information. The scene of restarting by mistake.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: responding to the received second user operation, such as ignoring Check the operation of the second prompt message, and display the detailed content of the second prompt message in the negative screen.
  • responding to the received second user operation such as ignoring Check the operation of the second prompt message
  • display the detailed content of the second prompt message in the negative screen By displaying the detailed content of the second prompt information that the user neglects to view in the negative screen, it is convenient for the user to view it later.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: the electronic device responds to the received second user operation , and display the scene information of the last accidental restart on the negative screen. By displaying the scene information of the latest accidental restart on the negative screen, it is convenient for the user to check the reason for the latest restart later.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: the electronic device responds to the received second user operation , and display the scene information of each false touch restart within the first preset period on the negative screen. Through the scene information of each false touch restart displayed on the negative screen, the user can know how many false touch restarts occurred in the first preset period, and in which scenarios several false touch restarts occurred, which is convenient for the user to understand Get an overall understanding of your own bad operating habits.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: when the duration of the pressing operation exceeds the first preset When the time is long and the electronic device is in the pocket, the earphone connected to the electronic device is given priority to output the first prompt information; when the electronic device is not connected to the earphone, the first prompt information is output through the speaker. In this way, a device that is convenient to call and has a significant prompt effect can be selected to output the first prompt information.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: when the duration of the pressing operation exceeds the first preset When the time is long and the electronic device is in the process of talking, identify whether the electronic device is connected to the earphone; if the electronic device is connected to the earphone, output the first prompt information through the earphone; if the electronic device is not connected to the earphone, identify the free Whether the handset is turned on; when the handsfree is turned on, the first prompt information is output through the speaker; when the handsfree is not turned on, the first prompt information is output through the receiver. In this way of outputting the first prompt information, the prompt effect is remarkable.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: when the duration of the pressing operation exceeds the first preset When the time is long and the electronic device is placed on the bracket, identify whether the electronic device is connected to the earphone; if the electronic device is connected to the earphone, output the first prompt information through the earphone; Output the first prompt message.
  • This method can select a device that is convenient to call and has a significant prompting effect to output the first prompting information, thereby improving the response rate of the user.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: establish a connection with the detection device; Query events that carry query keywords; in response to query events, query the target data that matches the query keywords from the log file, and send the target data to the detection device for display.
  • the target data displayed in the detection device can represent the historical use process. Every time the user touches the restart message by mistake.
  • the target data displayed on the detection device can be used as favorable evidence to prove to the user that the restart of the electronic device in the historical process is not a problem with the electronic device system, but caused by a wrong touch during the user's historical use process. On the one hand, it can reduce the non-return rate of electronic devices
  • the user can be warned, so that the user can try to avoid accidentally touching the power button in various preset scenes displayed to trigger the restart of the electronic device during subsequent use.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: statistically recorded scene information of each false touch restart , to obtain the total number of false touch restarts occurring within the second preset period; if the total number is greater than the first preset threshold, increase the second preset duration.
  • the sensitivity of the power button to trigger the restart can be reduced in disguise, the output duration of the first prompt information can be increased, and the time for the user to respond to an accidental touch operation can be further increased to reduce the probability of a false touch restart.
  • the electronic device when the program instructions are executed by the processor, the electronic device is made to perform the following steps: according to the recorded scenes of restarting by false touch Information, counting the number of false touch restarts that occurred in each preset scene within the second preset period; determine the high-incidence scenes of false touch restarts, that is, the first scenes where the number of false touch restarts is greater than the second preset threshold; when the first scene
  • the electronic device does not respond to the accidental touch operation of the power button. If the user frequently accidentally touches the power button in a certain scene and causes the electronic device to restart, it means that this is a bad usage habit and the user is not aware of or cannot overcome the problem by himself. This method does not directly respond to restarting the power in high-incidence scenes
  • the accidental touch operation of the key can directly eliminate the phenomenon of false touch restart in the scene of high restart rate.
  • the second preset duration is 10 seconds
  • the first preset duration is 6 seconds.
  • Before performing the restart operation output the first prompt message to remind the user to accidentally touch the power button, which can reduce accidental restart. The probability.
  • the electronic device when the program instruction is executed by the processor, the electronic device is made to perform the following steps: in the screen-off state, receive the user’s request for the power button After the pressing operation, a bright screen interface is displayed; when the pressing operation lasts for 5 seconds, a restart prompt interface is displayed; and the scene where the electronic device is located is identified.
  • the restart prompt interface is displayed, which can remind the user that the power button has been touched by mistake, and the restart operation will be triggered. If the user sees the restart prompt interface, the mistaken touch of the power button can be terminated in time, thereby preventing the electronic device from performing the restart operation.
  • the present application provides a method for detecting a false touch of a power button.
  • the method includes: the electronic device receives a user's pressing operation on a power button; and the electronic device outputs first prompt information when the duration of the pressing operation exceeds a first preset time length and the electronic device is in a preset scene ; Wherein, the first prompt information is used to prompt the user to touch the power button by mistake; the electronic device executes a restart operation when the duration of the pressing operation exceeds the second preset duration.
  • the electronic device after the electronic device performs the restart operation, it includes:
  • a second prompt message is displayed on the main interface, wherein the second prompt message is used to remind the user that this restart is a restart by mistake.
  • the electronic device after displaying the second prompt information on the main interface, it includes: the electronic device responds to the received first user operation, The detailed content of the second prompt information is displayed on the main interface, wherein the detailed content includes: scene information.
  • the steps include: responding to the second user operation received by the electronic device, The detailed content of the second prompt information is displayed on one screen.
  • the electronic device responds to the second user operation received, and displays the detailed content of the second prompt information on the negative screen, including: the electronic device responds Based on the received second user operation, the scene information of the latest false touch restart is displayed on the next screen.
  • the electronic device responds to the second user operation received, and displays the detailed content of the second prompt information on the negative screen, including: the electronic device responds Based on the received second user operation, the scene information of each false touch restart within the first preset period is displayed on the negative screen.
  • the electronic device outputs the first The prompt information includes: when the duration of the pressing operation exceeds a first preset duration and the electronic device is in the pocket, the electronic device identifies whether the electronic device is connected to an earphone; In this case, the first prompt information is output through the earphone; when the electronic device is not connected to the earphone, the first prompt information is output through the speaker.
  • the electronic device outputs the first The prompt information includes: when the duration of the pressing operation exceeds the first preset duration and the electronic device is in the process of talking, the electronic device identifies whether the electronic device is connected to an earphone; In the case of , the first prompt information is output through the earphone; when the electronic device is not connected to the earphone, it identifies whether the hands-free is turned on; when the hands-free is turned on, the electronic device outputs the first prompt information through the speaker; the electronic device In the case that the hands-free is not turned on, the first prompt information is output through the receiver.
  • the electronic device outputs the first The prompt information includes: when the duration of the pressing operation exceeds the first preset duration and the electronic device is placed on the stand, the electronic device identifies whether the electronic device is connected to an earphone; If the electronic device is not connected to the earphone, the electronic device outputs the first prompt information through the speaker.
  • the electronic device establishes a connection with the detection device; the electronic device receives a query event sent by the detection device, wherein the query event carries a query keyword; In response to the query event, the electronic device queries the target data matched by the query keyword from the log file, wherein the target data is used to represent the information of restarting every time the user mistakenly touches the user in the historical use process; The target data is sent to the detection device for display.
  • the electronic device counts the total number of false touch restarts that occurred in the second preset period according to the recorded scene information of each false touch restart; If the total number of times is greater than the first preset threshold, increase the second preset duration.
  • the electronic device counts the false touches that occurred in each preset scene in the second preset period according to the recorded scene information of each false touch restart The number of restarts; the electronic device determines that the number of false touch restarts is greater than the first scene of the second preset threshold, wherein each of the preset scenes includes each of the first scenes; the electronic device detects that a power button error occurs in the first scene In the case of a touch operation, it is forbidden to respond to the wrong touch operation of the power button.
  • the second preset duration is 10 seconds
  • the first preset duration is 6 seconds
  • the electronic device after the electronic device receives the user's press operation on the power button, it includes: displaying the bright screen interface when the electronic device is in the off-screen state; When the duration reaches 5 seconds, a restart prompt interface is displayed; the electronic device recognizes the scene it is in.
  • the second aspect and any implementation manner of the second aspect correspond to the first aspect and any implementation manner of the first aspect respectively.
  • technical effects corresponding to the second aspect and any implementation manner of the second aspect reference may be made to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, and details are not repeated here.
  • the present application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the method in the second aspect or any possible implementation manner of the second aspect.
  • the present application provides a computer program, where the computer program includes instructions for executing the method in the second aspect or any possible implementation manner of the second aspect.
  • the present application provides a chip, and the chip includes a processing circuit and transceiving pins.
  • the transceiving pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive signals, so as to Control the send pin to send signal.
  • FIG. 1 is a schematic diagram of a hardware structure of an exemplary electronic device
  • FIG. 2 is a schematic diagram of a software structure of an exemplary electronic device
  • FIG. 3 is a schematic flow chart of the steps of a power button false touch detection method exemplarily shown
  • FIG. 4 is a schematic diagram of an electronic device screen-off interface shown by way of example
  • FIG. 5 is a schematic diagram of a bright screen interface of an electronic device exemplarily shown
  • FIG. 6 is a schematic diagram of an exemplary restart prompt interface
  • FIG. 7 is a schematic diagram of an exemplary target scene recognition method
  • Figures 8a to 8c are schematic diagrams of exemplary ways to output the first prompt information
  • FIG. 9 is a schematic diagram of an exemplary second prompt information output method
  • FIG. 10 is a schematic diagram of an exemplary user manually checking the second prompt information
  • Fig. 11 is a schematic diagram of an interface showing the detailed content of the second prompt information
  • Fig. 12 is a schematic diagram of an interface showing the detailed content of the second prompt message
  • Fig. 13 is a schematic diagram illustrating a user manually ignoring the second prompt message
  • Fig. 14 is a schematic diagram of an exemplary negative screen interface
  • Fig. 15 is a schematic diagram of a negative one-screen interface exemplarily shown
  • Fig. 16 is a schematic diagram showing interface changes in an abnormal state of the electronic device after the power button is pressed;
  • Fig. 17 is a schematic diagram of the main interface after the electronic device is turned on and restarted in an abnormal state
  • FIG. 18 is a schematic diagram of an exemplary network point detection method
  • Fig. 19 is a schematic structural diagram of the device shown exemplarily.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first target object, the second target object, etc. are used to distinguish different target objects, rather than describing a specific order of the target objects.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 shown in FIG. 1 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, and two or more components may be combined , or can have different component configurations.
  • the various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • 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, an environmental Light sensor 180L, bone conduction sensor 180M, etc.
  • the sensor module 180 may detect parameter information, and the processor 110 determines the preset scene where the electronic device 100 is located according to the parameter information detected by the sensor module 180, wherein the preset scene may include but not limited to: the electronic device 100 is in a pocket , the electronic device 100 is in the process of talking, the electronic device 100 is placed on the stand, the user holds the electronic device 100 for running, and so on.
  • the proximity light sensor 180G collects the third parameter, uploads the third parameter to the processor 110, and the processor 110 compares the third parameter with the third parameter threshold, and recognizes that the third parameter is smaller than the third parameter threshold.
  • the electronic device 100 is placed in the pocket.
  • the acceleration sensor 180E collects the second parameter, uploads the second parameter to the processor 110, and the processor 110 compares the second parameter with the second parameter threshold, and recognizes that if the second parameter is greater than the second parameter threshold The user is currently running with the electronic device 100 in hand.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • 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 can receive charging input from 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 charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a 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
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used for displaying interfaces, images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element 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 light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the processor 110 can receive the pressing operation of the power button by the user and detect the duration of the pressing operation by running the instructions stored in the internal memory 121; when the duration of the pressing operation exceeds the first preset In the case of a long time, determine whether the electronic device is abnormal; if the electronic device is normal, identify the target scene where the electronic device is currently in; determine the target prompt device based on the target scene;
  • the target prompting device such as the screen 194 outputs the first prompting information; when it is detected that the duration of the pressing operation exceeds the second preset duration, the restart operation is performed.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the 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, flash memory device, universal flash memory (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of 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 according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the fingerprint sensor 180H can collect the fingerprint when the user touches the touch screen, and transmit the collected fingerprint to the processor 110 .
  • the processor 110 may unlock the electronic device 100 based on the fingerprint information input by the fingerprint sensor 180H.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 . Exemplarily, in this embodiment of the application, if the electronic device 100 is in the lock screen mode or the desktop mode, and the electronic device 100 receives the user's operation of clicking the power button, that is, the power button, the electronic device 100 may enter the screen-off mode.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel 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 to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, sensor (also called desktop and wallpaper).
  • the sensor application program can realize the collection and transmission of parameters related to scene recognition in the embodiment of the present application.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the components contained in the system framework layer, system library and runtime layer shown in FIG. 2 do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the electronic device can detect the user's mistaken touch operation of the power button, and output the first prompt message when detecting the mistaken touch operation of the power button to remind the user to terminate the mistaken touch operation in time, so as to reduce the mistaken touch operation of the electronic device. not only that, but the electronic device can further identify and record the scene information of the electronic device when the power button is accidentally touched, and display the second prompt on the main interface after the mistakenly touched and restarted. information to remind the user that this restart is a false touch restart in a certain scenario, reducing the probability of the user going to the detection network for detection.
  • the power button false touch detection method involved in the embodiment of the present application can be triggered in any mode.
  • the modes of the electronic device in the embodiment of the present application include, but are not limited to: screen off mode, screen lock mode, desktop mode and may be called unlock mode.
  • screen off mode screen lock mode
  • desktop mode desktop mode
  • unlock mode the operation of accidentally touching the power key is detected.
  • the screen-off mode is optionally the mode that the electronic device enters after receiving the user’s click on the power button, that is, the power button.
  • the electronic device When the device is normal, the electronic device switches to the bright screen interface. In the event of an abnormality in the electronic device, keep the screen off.
  • the lock screen mode may optionally be a screen lock of the electronic device.
  • the user in the screen-off mode, the user can make the electronic device enter the lock-screen mode by performing operations such as touching or pressing keys on the electronic device.
  • the lock screen mode locks the screen, and the user needs to unlock it before entering the desktop mode.
  • the lock screen mode may provide some functions that can be used without unlocking, such as a camera function, gadgets, and the like. That is to say, in the lock screen mode, the user can perform corresponding operations on the electronic device, while in the screen off mode, when the user triggers the electronic device, the electronic device will enter the lock screen mode.
  • the lock screen mode of the electronic device after receiving the user's touch operation on the power button, the electronic device switches to the bright screen interface when the electronic device is normal. When the electronic device is abnormal, keep the lock screen interface unchanged.
  • the desktop mode is the mode after the electronic device is unlocked.
  • the user can operate the electronic device in desktop mode to use corresponding functions provided by the electronic device.
  • a user may use a chat application, a video application, make a call, watch a video, and so on.
  • the desktop mode after receiving the user’s touch operation on the power button, when the electronic device is normal, when it is detected that the pressing operation lasts for a first preset time, the current display interface is switched to the restart prompt interface for display.
  • the electronic device is abnormal, keep the current interface unchanged until it is detected that the pressing operation lasts for a second period of time and then perform a restart operation.
  • the mode switching in the embodiment of the present application includes, for example: switching from screen off mode to lock screen mode, switching from lock screen mode to desktop mode, or switching from desktop mode (or lock screen mode) to screen off mode is optional
  • the ground is the switching of the interface.
  • switching from the screen-off mode to the lock-screen mode may optionally be switching the screen-off interface displayed on the display screen of the electronic device to the lock screen interface.
  • each interface in the embodiment of the present application is an interface displayed in full screen, that is, when the display screen is switched from one interface (such as the screen-off interface) to another interface ( For example, the lock screen interface), that is, the previous interface (ie, the screen-off interface) is not displayed, and the switched interface (ie, the lock screen interface) is displayed in full screen on the display screen.
  • one interface such as the screen-off interface
  • another interface For example, the lock screen interface
  • the lock screen interface that is, the previous interface (ie, the screen-off interface) is not displayed
  • the switched interface ie, the lock screen interface
  • the power button false touch detection method in the embodiment of the present application can prompt the user to restart the electronic device as a restart caused by mistaken touch of the power button in three stages after detecting the mistaken touch operation of the power button.
  • the first stage is after detecting that the pressing operation of the power button is a false touch operation and before performing the restart operation;
  • the second stage is after the power is restarted and before the second prompt message is canceled;
  • the user goes to the detection network to restart the electronic device Detection is the third stage.
  • the flow of the method for detecting a false touch of a power button includes the following steps:
  • S301 The electronic device detects that the user presses the power button for longer than a first preset duration.
  • the electronic device in this application may be a device with a curved screen and narrow frame, or a device with a non-curved screen.
  • the power key can be a physical key or a virtual key arranged on the frame.
  • the first preset duration can be flexibly set by those skilled in the art, for example: the first preset duration can be set to 5 seconds, 6 seconds or 7 seconds, etc., the first preset duration is less than the second preset duration, and the second preset duration
  • the second preset duration can be set to 10 seconds, 11 seconds, or 12 seconds, etc., for long pressing the power button to trigger the system to perform a restart operation.
  • the first preset duration is 6 seconds
  • the second preset duration is 10 seconds.
  • FIG. 4 is a schematic diagram of the screen-off interface of the electronic device.
  • the screen-off interface 401 is displayed in the screen-off mode of the electronic device. If the duration of the second press operation is longer than the first preset duration, S302 is executed.
  • FIG. 4 is only illustrated by taking the user's pressing operation of the power key when the electronic device is in the screen-off mode as an example. In an actual implementation process, the electronic device may receive the user's pressing operation of the power key in any mode.
  • S302 The electronic device determines whether the state is abnormal; if abnormal, execute a first process branch; if normal, execute a second process branch.
  • the second process branch includes S303 to S310 in FIG. 3 , and when the electronic device determines that the state is normal, S303 is executed.
  • the abnormal state of the electronic device includes: the screen does not turn on after receiving the pressing operation of the power button in the off-screen mode, and the restart prompt interface is not displayed after receiving the continuous pressing of the power button for 5 seconds in the on-screen mode, etc.
  • the normal state of the electronic device includes: the screen is turned on immediately after receiving the pressing operation of the power button in the off-screen mode, and the restart prompt interface is displayed after receiving the continuous pressing of the power button for 5 seconds in the on-screen mode, etc. Therefore, whether the state of the electronic device is abnormal can be determined through the change of the interface of the electronic device after receiving the pressing operation of the power key. Not only that, the electronic device can also determine whether the state of the electronic device is abnormal according to the operating state of the system. For example, if the interface is stuck according to the operating state of the system, it can be determined that the electronic device is abnormal.
  • the electronic device can execute the judgment logic of whether the state is abnormal after detecting that the user presses the power button for a time longer than the first preset time, and the electronic device can also detect that the user presses the power button.
  • the logic for judging whether the status is abnormal is executed, and the timing for judging whether the status is abnormal is not specifically limited in the embodiment of the present application.
  • the first branch of the process to be executed may be: continuously monitor the duration of pressing the power button by the user; Two prompt information, wherein, the second prompt information is used to remind the user that the restart is a restart by mistake.
  • Figures 16-17 are shown in Figures 16-17
  • Figure 16 is a schematic diagram of interface changes when the electronic device is in an abnormal state after pressing the power button
  • Figure 17 is a schematic diagram of restarting the electronic device in an abnormal state
  • the screen-off interface 1601 is displayed in the screen-off mode of the electronic device. After the user presses the power button, the screen-off interface 1601 is still displayed when the electronic device is not turned on. The electronic device continues to detect how long the user presses the power button. When the second preset duration is exceeded, perform the restart operation and jump directly from the screen-off interface 1601 to the main interface 1701 after booting, as shown in FIG. Mistakenly touch the second prompt message of restart.
  • FIG. 5 is a schematic diagram of the screen-on interface of the electronic device.
  • the screen-off interface 401 shown in FIG. 4 jumps to Go to the bright screen interface 501 shown in FIG. 5 , then it can be determined that the state of the electronic device is normal.
  • the electronic device After jumping to the bright screen interface 501, if the user does not stop the pressing operation at this time, the electronic device will continue to detect the duration of the pressing operation, and after the duration reaches the first preset duration, jump to the button shown in Figure 6.
  • the restart prompt interface 601 is displayed.
  • the restart prompt interface 601 includes, but is not limited to: a restart prompt icon 6011 and a restart prompt text such as "restart" 6012 shown in FIG. 6 .
  • the restart prompt interface may only include a restart prompt icon or only restart prompt text.
  • the electronic device can determine that the pressing operation of the power button is a false touch restart operation:
  • Condition 1 The electronic equipment is in normal condition
  • Condition 2 The duration of the user's pressing operation on the power button exceeds a first preset duration.
  • any of the above conditions cannot be satisfied, it cannot be determined that the current press operation of the power button is a false touch restart operation. If condition 2 is met but condition 1 is not met, it is determined that the pressing operation of the power button is a deliberate restart operation; If the duration of the pressing operation is not longer than the first preset duration, then the pressing operation is terminated, and it is assumed that the pressing operation is not a long pressing operation that triggers a restart.
  • S303 The electronic device identifies the scene where it is located.
  • a convenient and effective target prompting device is determined, and the first prompting information is output.
  • the scene where the electronic device is located may be any one of the preset scenes, or any scene other than the preset scene.
  • the preset scene may include but not limited to: the electronic device is in the pocket, the electronic device is in the process of talking, the electronic device is placed on the stand, and the user is running with the electronic device in hand.
  • the system can automatically add the scene where the electronic device is located to the preset scene, so as to realize automatic expansion of the preset scene.
  • the preset scenes can also be added by those skilled in the art based on the detection and analysis results of the faulty machine at the detection network, or added by the skilled in the art according to the results of user return visits.
  • the identification of the scene where the electronic device is located can be obtained by the processor in the electronic device based on the identification of the parameter information detected by the sensor, and can also be obtained by the electronic device based on the analysis of the application program running in the foreground. For example, if the electronic device recognizes that the calling application program is running in the foreground, it can recognize that it is in the process of calling. For another example, if the electronic device recognizes that a certain video application program is running in the foreground, it can recognize that it is in the process of watching a movie.
  • the processor 704 identifies the scene where the electronic device is located according to the first parameter, second parameter and third parameter.
  • the first parameter may be the amount of angle change
  • the second parameter may be the moving speed
  • the third parameter may be the light intensity and the like.
  • the third parameter collected by the proximity light sensor 703 is smaller than the third parameter threshold, it may be determined that the electronic device is currently in the pocket.
  • the second parameter collected by the acceleration sensor 702 is greater than the second parameter threshold, it may be determined that the user is running with the electronic device.
  • the electronic device In a case where the first parameter collected by the gyroscope 701 is smaller than the first parameter threshold, it may be determined that the electronic device is placed on the stand.
  • the above is just an example of several ways to identify the scene where the electronic device is located based on the parameters collected by the sensor. In the actual implementation process, the way to identify the scene can be flexibly set by those skilled in the art.
  • S304 Determine a target prompting device based on the current scene.
  • the target prompting device determination rules corresponding to different target scenarios are different, and the target prompting device determination rules corresponding to various scenarios can be flexibly set by those skilled in the art according to actual needs.
  • the target prompting device may include, but is not limited to: a speaker included in the electronic device, a receiver, and an earphone connected to the electronic device.
  • the electronic device when the electronic device is in a pocket, identify whether the electronic device is connected to an earphone; if the electronic device is connected to an earphone, determine the earphone as the target prompt device; The speaker is identified as the target cue device.
  • the target reminder device that can be called can be identified. Of course, it is not limited to this. It can also be set to directly determine the speaker as the target prompt device when the electronic device is in the pocket. In this case, if the electronic device is connected to the earphone, the connection with the earphone will be disconnected. To ensure that the speaker can output voice prompt information.
  • a target reminder device when the electronic device is in a call, identify whether the electronic device is connected to an earphone; if the electronic device is connected to the earphone, determine the earphone as the target prompt device; if the electronic device is not connected to the earphone, Identify whether the hands-free is turned on; if the hands-free is turned on, determine the speaker as the target prompt device; if the hands-free is not turned on, determine the receiver as the target prompt device.
  • This exemplary method of determining a target reminder device when the electronic device is in a call can identify a device that is convenient to call and has a significant reminder effect. Of course, it is not limited to this. It can also be set to directly determine the speaker as the target prompt device when the electronic device is in a call.
  • the electronic device if the electronic device is connected to the earphone, the connection with the earphone will be disconnected. On the one hand, the user can be prompted to check the electronic device by disconnecting the earphone, and on the other hand, it can ensure that the speaker outputs voice prompt information.
  • the target scene is that the electronic device is placed on the stand
  • this exemplary way of determining the target prompting device when the electronic device is placed on the stand it is possible to identify a prompting device that is convenient to call and has a significant prompting effect.
  • a unified target prompting device determination rule can also be set for each scene, and different prompting devices such as loudspeakers, receivers, and earphones connected to electronic devices are set differently.
  • Priority select the target notification device according to the priority from high to low. For example: the priority is earphones, receivers, and loudspeakers in descending order. No matter what kind of scene the electronic device is in, it is determined whether the electronic device is connected to the earphone first. If the electronic device is connected to the earphone, the earphone is determined as the target prompt device; If the electronic device is not connected to the earphone, it is further determined whether the electronic device is receiving sound information through the receiver. If the electronic device is not receiving the sound information through the receiver, the speaker is determined as the target prompt device. , the receiver is determined as the target prompting device.
  • S305 Record the current scene information, and output the first prompt information through the target prompt device.
  • the target scene information can be recorded after the target prompting device is determined, or can be recorded after the target scene is recognized and before the target prompting device is determined, or the target scene information can be recorded while the target prompting device is determined.
  • the target scene information can be recorded in the Log (Logstore, log library) partition.
  • the storage path can be log/bootfail. Whenever a false touch operation of the power button is detected, a power button false touch operation will be generated in the Log partition. log, and add detailed target scene information to the log to provide the data basis for the subsequent network point detection to restart the power button by mistake.
  • FIGS. 8a-8c are schematic diagrams of the first prompt information output method.
  • the electronic device calls the speaker 801 to output the first prompt information while displaying the restart prompt interface 601, so as to prompt the user to touch the power button by mistake.
  • the electronic device may output the first prompt information through the speaker 801 shown in FIG. 8a.
  • the electronic device displays the restart prompt interface 601, if the user does not wear the earphone and the electronic device is not turned on hands-free, the electronic device can output the first prompt information through the receiver 802 shown in FIG. 8b.
  • the electronic device generates a prompt event while displaying the restart prompt interface 601, wherein the prompt event carries the first prompt information to be output, and the earphone 803 connected to the electronic device outputs the first prompt information in response to the prompt event, To prompt the user to touch the power button by mistake. For example: when the electronic device is in the pocket, if the user is currently wearing an earphone, the electronic device may output the first prompt information through the earphone 803 .
  • the first prompt information can only output the third preset duration, and the third preset duration is less than the interval between the moment when the restart operation is performed and the moment when the first prompt information is output for the first time, and the first prompt information can also be output to execute the restart Stop at the moment of operation.
  • the output times and output frequency of the first prompt information can be flexibly set by those skilled in the art or users. For example: it can be set to output the first prompt message only once, or it can be set to output the first prompt message for the preset number of times according to the preset frequency, or it can be set to output the first prompt message of the third preset duration according to the preset frequency, etc. .
  • the second process branch is terminated, and the electronic device will not perform the restart operation. If the user does not notice the first prompt message and terminates the pressing operation of the power button in time, then the restart operation is performed when it is detected that the user presses the power button for a duration exceeding the second preset duration.
  • S301-S306 are the first stage of prompting the user to accidentally touch the power button to cause the electronic device to restart.
  • S107-S110 is the second stage of prompting the user to accidentally touch the power button to cause the electronic device to restart.
  • the second prompt information is used to prompt the user that the restart is caused by touching the power button by mistake.
  • the second prompt information may be displayed on the main interface 901 after booting in the form of a pop-up box, and the prompt summary content "This The second restart is a restart by mistake, please pay attention.”
  • FIG. 9 only exemplifies an expression manner of the prompt summary content, and those skilled in the art can flexibly set the prompt summary content of the second prompt information according to actual requirements during actual implementation.
  • the content of the prompt summary can be set as "Recently, there have been multiple false touch restarts, please pay attention”, and another example: "N times of false touch restarts occurred in the first preset cycle, please pay attention", etc.
  • the second prompt information may also be displayed on the notification bar interface of the electronic device.
  • the notification bar interface can be displayed by swiping up or down on the main interface.
  • S308 Detect whether the user ignores the second prompt information; if not, execute S309; if ignore, execute S310.
  • the operation of ignoring the second prompt information may include but not limited to: sliding the second prompt information to the left, sliding the second prompt information to the right, sliding the second prompt information upward, or not performing a viewing operation within a fifth preset time period, and the like. In the case that no viewing operation for the second prompt information is received within the fifth preset time period, the second prompt information may be ignored by default.
  • the operation of viewing the second prompt information may include but not limited to: single-click, double-click, or long-press operation on the second prompt information. When the user's viewing operation on the second information is received, it means that the user has not ignored the second prompt information.
  • the fifth preset duration can be set by those skilled in the art according to actual needs, such as 3 seconds, 5 seconds or 10 seconds.
  • FIG. 10 is a schematic diagram of the user manually viewing the second prompt information
  • the user can click on the pop-up box 9011 in the main interface 901 to view the detailed content of the second prompt information.
  • FIG. 10 is a schematic diagram of the user manually viewing the second prompt information
  • the user can click on the pop-up box 9011 in the main interface 901 to view the detailed content of the second prompt information.
  • the detailed content of the second prompt message 9013 "Restart was accidentally touched in the xx scene last time, please pay attention".
  • the user can know the detailed content of the latest restart by mistake.
  • the detailed content of the second prompt information may be as shown in Figure 10, only the detailed content of the last mistaken touch restart is displayed, or as shown in the schematic diagram of the second prompt information detailed content display interface in Figure 12, after receiving the user's After viewing the second prompt information, a pop-up box 9014 is displayed on the main interface 901, and the detailed content of the second prompt message 9015 is displayed in the pop-up frame 9014.
  • the details of restarting by mistake in the first preset period are as follows, please pay attention to: A Scene: X times, B scene: Y times, C scene: Z times".
  • the first preset period can be flexibly set by those skilled in the art or users, for example: the first preset period can be set to 24 hours, 48 hours, one week or one month, etc.
  • FIG. 11 and FIG. 12 only list two examples of the detailed content of the second prompt information, and those skilled in the art can flexibly set the specification of the detailed content of the second prompt information during actual implementation.
  • the user can slide the bullet box 9011 in the main interface 901 to ignore the second prompt information.
  • the detailed content of the second prompt information is displayed on a negative screen.
  • the notification bar 1402 of the negative one-screen interface 1401 displays the detailed content 1403 of the second prompt message "restart was accidentally touched in the xx scene last time, please pay attention".
  • the detailed content of the second prompt information is displayed in the notification bar one screen behind, which is convenient for the user to check the detailed content of the restart by mistake.
  • the detailed content of the second prompt information displayed in the negative one screen can be as shown in Figure 14, which is only the detailed content of the latest mistaken touch restart, and can also be shown in the negative one screen interface schematic diagram in Figure 15, in
  • the notification bar 1402 is displayed in the negative screen 1401, and the detailed content of the second prompt message 1501 is displayed in the notification bar 1402.
  • the details of restarting by mistake in the first preset period are as follows, please pay attention: A scenario: X times, B scenario: Y times, C scene: Z times".
  • the detailed content of the second prompt information is displayed in the notification bar of one screen negative, so that the user can check the detailed content of restarting by accidental touch later.
  • the user can know how many times of false touch restarts occurred in the first preset period, and in which scenarios several times of false touch restarts occurred, which is convenient for users to understand their bad operating habits. overall understanding.
  • the detailed content of the second prompt information in the negative one-screen notification bar can be kept for a sixth preset time period, which can be flexibly set by those skilled in the art, for example: 1 hour, 1 day or 3 days, etc.
  • the electronic device can also perform this process periodically: according to the recorded scene information of each false touch restart, count the total number of false touch restarts that occurred in the second preset period; If it is greater than the first preset threshold, increase the second preset duration.
  • the duration indicated by the second preset period is longer than the duration indicated by the first preset period.
  • the second preset duration can be set to one week, one month, or half a year.
  • the first preset threshold can also be flexibly set by those skilled in the art or by users. For example: the first preset threshold is set to 5 times, 10 times or 15 times and so on. Each adjustment step of the second preset duration can be flexibly set by a person skilled in the art or a user.
  • the first preset threshold is 10 times
  • the second preset period is one month
  • the electronic device since the electronic device records the log information of every time the user accidentally touches the restart during the historical use process, it can be calculated that within one month If the total number of times the user touches and restarts the electronic device by mistake is 12 times, then increase the second preset duration.
  • the single adjustment step as 2 seconds
  • the second preset duration as 10 seconds as an example, the second preset duration is adjusted to 12 seconds.
  • This optional method of increasing the restart response time after the user frequently triggers the restart by false touch can reduce the sensitivity of the power button to trigger the restart in a disguised form, increase the output duration of the first prompt message, and further increase the user's response to false touch.
  • the duration of the operation to reduce the probability of restarting by mistake.
  • the electronic device can also count the number of false touch restarts that occurred in each preset scene in the second preset period according to the recorded scene information of each false touch restart;
  • the number of restarts is greater than the first scene of the second preset threshold, wherein each preset scene includes each first scene; in the case of detecting an accidental touch operation of the power button in the first scene, it is forbidden to respond to the wrong touch operation of the power button.
  • the second preset threshold is set to 3 times, 5 times or 7 times, etc.
  • the electronic device since the electronic device records the log information of every time the user accidentally touches the restart during the historical use process, it can be calculated that the user has The total number of restarts of the electronic device caused by accidentally touching the power button in each preset scene. If the user accidentally touches restart once in a week when the electronic device is in the pocket, and touches restart 4 by mistake when the handheld electronic device is running, then the scene of running with the handheld electronic device is judged as the first scene, and it is detected again that the user is running with the handheld electronic device When performing an accidental touch operation on the power button at this time, it will be forbidden to respond to the user's accidental touch operation on the power button this time. Among them, accidentally touching the power button causes the electronic device to restart, which is referred to as mistakenly touching the restart.
  • the above is the process of prompting the user to restart by mistakenly touching the power button in the first and second stages during the use of the electronic device.
  • the detection network detects the electronic device
  • the detection staff in the detection network can pass the The network point detection method detects the electronic equipment, and through the detection results on the equipment, it proves to the user that the restart of the electronic equipment is not a system problem.
  • the electronic equipment is not a faulty machine, but a restart caused by the user accidentally touching the power button during use. This stage is the third stage.
  • connection relationship between the electronic device 1801 and the inspection device 1802 is established.
  • the connection relationship can be a wired connection established through a data line as shown in FIG. 18 , or a wireless connection.
  • the testing staff turns on the testing system in the testing equipment, enters query keywords in the testing interface, and the testing system generates query events based on the query keywords, and sends the query events to the electronic equipment.
  • the electronic device receives the query event sent by the detection device, it responds to the query event, parses out the query keyword in the query event, and queries the target data matching the query keyword from the log file, that is, the query data.
  • the target data is used to represent the information that the user accidentally touches and restarts every time during the historical use process; the electronic device sends the target data to the detection device for display, and the detection device receives the query data sent by the electronic device and displays the query data on the display screen.
  • the query data may include, but is not limited to: scene information corresponding to various restarts triggered by mistake during the historical use of the electronic device. For example: in scene A, restart X times by mistake, the restart time of each mistake is xx, xx, xx, etc.; in scene B, restart Y times by mistake, the restart time of each mistake is xx, xx, xx respectively Etc. In scene C, restart Z times by mistaken touch, and the restart time of each mistaken touch is xx, xx, xx, etc. respectively.
  • the detection equipment can be a desktop computer, a laptop computer or a tablet and other equipment.
  • the query data displayed on the detection device can be used as favorable evidence to prove to the user that the restart of the electronic device in the historical process is not a problem with the electronic device system, but caused by a wrong touch during the user's historical use process. On the one hand, it can reduce the non-return rate of electronic devices On the other hand, the user can be warned, so that the user can try to avoid accidentally touching the power button in various preset scenes displayed to trigger the restart of the electronic device during subsequent use.
  • the electronic device includes hardware and/or software modules corresponding to 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 executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • FIG. 19 shows a schematic block diagram of an apparatus 1900 according to an embodiment of the present application.
  • the apparatus 1900 may include: a processor 1901 and a transceiver/transceiving pin 1902 , and optionally, a memory 1903 .
  • bus 1904 includes not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • bus 1904 includes not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are referred to as bus 1904 in the figure.
  • the memory 1903 may be used for the instructions in the foregoing method embodiments.
  • the processor 1901 can be used to execute instructions in the memory 1903, and control the receiving pin to receive signals, and control the sending pin to send signals.
  • Apparatus 1900 may be the electronic device or the chip of the electronic device in the foregoing method embodiments.
  • This embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on the electronic device, the electronic device is made to perform the above-mentioned related method steps to realize the accidental touch of the power button in the above-mentioned embodiment Detection method.
  • This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to realize the method for detecting false touch of the power button in the above embodiment.
  • an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the methods for detecting false touches of the power button in the above method embodiments.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.
  • the steps of the methods or algorithms described in connection with the disclosure of the embodiments of the present application may be implemented in the form of hardware, or may be implemented in the form of a processor executing software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), erasable programmable read-only memory ( Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种电源键误触检测方法及电子设备。该方法包括:电子设备接收用户对电源键的按压操作;在按压时长超过第一预设时长并且电子设备处于预设场景下时,输出提示用户误触电源键的第一提示信息;在按压时长超过第二预设时长的情况下,执行重启操作,能够降低电子设备误触重启的概率,减少电子设备勿退量。

Description

电源键误触检测方法及电子设备
本申请要求于2021年07月16日提交中国专利局、申请号为202110809136.7、申请名称为“电源键误触检测方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请例涉及终端设备领域,尤其涉及一种电源键误触检测方法及电子设备。
背景技术
曲屏窄边框电子设备虽然外形美观度得到提升,但是户误触电源键重启电子设备的问题突出。用户到检测网点要求检测人员针对电子设备无故重启问题进行检测时,检测人员仅能检测到电子设备确实发生过重启,但是无法提供证据证明重启并非设备故障,导致电子设备勿退量剧增。
发明内容
为了解决上述技术问题,本申请提供一种电源键误触检测方法及电子设备。在该方法中,电子设备检测到用户对电源键误触操作时,输出第一提示信息以提示用户误触电源键,能够减少电子设备的误触重启次数,提升用户使用体验,减少电子设备勿退量。
第一方面,本申请提供一种电子设备。该电子设备包括存储器和处理器。处理器与存储器耦合。存储器存储有程序指令,当程序指令由处理器执行时,使得电子设备执行如下步骤:接收用户对电源键的按压操作;在按压操作超过第一预设时长且电子设备处于预设场景下的情况下,输出提示用户误触电源键的第一提示信息;在按压操作的持续时长超过第二预设时长的情况下,执行重启操作。这样,一方面,在检测到电源键误触操作时输出第一提示信息提示用户及时终止本次对电源键的误触操作,可减少电子设备的误触重启次数,提升用户使用体验;第二方面,识别并记录电源键误触操作发生时电子设备所处的场景信息,在误触重启后,在主界面中显示第二提示信息以提示用户本次重启为在某场景下的误触重启,减少用户到检测网点进行检测的概率。上述第一方面和第二方面,均可减少电子设备勿退量。
根据第一方面,当程序指令由处理器执行时,使得电子设备执行如下步骤:重启开机后,在主界面中显示第二提示信息,其中,第二提示信息用于提示用户本次重启为误触重启。在主界面中显示第二提示信息以提示用户本次重启为在某场景下的误触重启,能够减少用户到检测网点进行检测的概率,减少电子设备勿退量。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:响应于接收到的第一用户操作,在所述主界面中显示第二提示信息的详细内容,详细内容中包括场景信息;第一用户操作为用户手动查看第二提示信息的操作,用户通过查看第二提示信息的详细内容,可获知本次误触重启的场景。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:响应于接收到的第二用户操作例如忽略查看第二提示信息的操作,在负一屏中显示第二提示信息的详细内容。通过在负一屏中显示用户忽略查看的第二提示信息的详细内容,便于用户后续查看。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:电子设备响应于接收到的第二用户操作,在负一屏中显示最近一次误触重启的场景信息。通过在负一屏中显示最近一次误触重启的场景信息,便于用户后续查看最近一次重启的原因。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:电子设备响应于接收到的第二用户操作,在负一屏中显示第一预设周期内各次误触重启的场景信息。通过负一屏中显示的各次误触重启的场景信息,用户可了解第一预设周期内共发生了多少次误触重启,分别在哪些场景下发生了几次误触重启,便于用户对自己的不良操作习惯进行整体了解。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:在按压操作的持续时长超过第一预设时长且电子设备处于口袋中的情况下,优先通过电子设备连接的耳机输出第一提示信息;在电子设备未连接耳机的情况下,通过扬声器输出第一提示信息。该种方式能够选择调用便捷、提示效果显著的设备输出第一提示信息。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:在按压操作的持续时长超过第一预设时长且电子设备处于通话过程中的情况下,识别电子设备是否已连接耳机;在电子设备已连接耳机的情况下,通过耳机输出第一提示信息;在电子设备未连接耳机的情况下,识别免提是否开启;在免提开启的情况下,通过扬声器输出第一提示信息;在免提未开启的情况下,通过受话器输出第一提示信息。该种输出第一提示信息的方式,提示效果显著。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:在按压操作的持续时长超过第一预设时长且电子设备置于支架上的情况下,识别电子设备是否已连接耳机;在电子设备已连接耳机的情况下,通过耳机输出第一提示信息;在电子设备未连接耳机的情况下,通过扬声器输出第一提示信息。该种方法能够选择调用便捷、提示效果显著的设备输出第一提示信息,提升用户的响应率。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:与检测设备建立连接;接收检测设备发送的 携带有查询关键词的查询事件;响应于查询事件,从日志文件中查询查询关键词匹配的目标数据,将目标数据发送至检测设备进行显示,检测设备中显示的目标数据可表征历史使用过程中用户每次误触重启的信息。检测设备上显示的目标数据可作为有利证据向用户证明电子设备历史过程中的重启并非电子设备系统问题,而是用户历史使用过程中误触导致的,一方面,可减少电子设备的勿退率;再一方面,可警示用户,使得用户在后续使用过程中尽量避免在所显示的各种预设场景中误触电源键触发电子设备重启。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:统计记录的各次误触重启的场景信息,得到第二预设周期内发生的误触重启总次数;在总次数大于第一预设阈值的情况下,增大第二预设时长。这样,通过增大重启响应时长能够变相降低电源键触发重启的灵敏度,增加第一提示信息的输出持续时长,进一步增加用户反应误触操作的时长,以降低误触重启的概率。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:依据所记录的各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;确定误触重启高发场景即误触重启次数大于第二预设阈值的各第一场景;当第一场景下发生电源键误触操作时,电子设备不响应本次电源键误触操作。若用户在频繁在某一场景下误触电源键导致电子设备重启,说明这是一种不良的使用习惯且用户无感知或者无法自行克服该问题,该方式中直接不响应重启高发场景下的电源键误触操作,能够直接杜绝重启高发场景下的误触重启现象。
根据第一方面,或者以上第一方面的任意一种实现方式,第二预设时长为10秒,第一预设时长为6秒。长按操作持续时长超出6秒时输出第一提示信息,长按操作时长时长超出10秒时执行重启操作,在执行重启操作前输出第一提示信息提示用户误触电源键,可降低误触重启的概率。
根据第一方面,或者以上第一方面的任意一种实现方式,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:熄屏状态下,接收用户对电源键的按压操作后,显示亮屏界面;在按压操作的持续时长达到5秒的情况下,显示重启提示界面;识别电子设备所处场景。显示重启提示界面,可提示用户已误触电源键,即将触发重启操作,若用户查看到重启提示界面,可及时终止对电源键的误触,从而避免电子设备执行重启操作。
第二方面,本申请提供一种电源键误触检测方法。该方法包括:电子设备接收用户对电源键的按压操作;电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息;其中,所述第一提示信息用于提示用户误触电源键;电子设备在所述按压操作的持续时长超过第二预设时长的情况下,执行重启 操作。
根据第二方面,电子设备执行重启操作之后,包括:
电子设备重启开机后,在主界面中显示第二提示信息,其中,所述第二提示信息用于提示用户本次重启为误触重启。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备重启开机后,在主界面中显示第二提示信息之后,包括:电子设备响应于接收到的第一用户操作,在所述主界面中显示所述第二提示信息的详细内容,其中,所述详细内容包括:场景信息。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备重启开机后,在主界面中显示第二提示信息之后,包括:电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容,包括:电子设备响应于接收到的第二用户操作,在负一屏中显示最近一次误触重启的场景信息。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容,包括:电子设备响应于接收到的第二用户操作,在负一屏中显示第一预设周期内各次误触重启的场景信息。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于口袋中的情况下,识别所述电子设备是否已连接耳机;电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;电子设备在未连接耳机的情况下,通过扬声器输出第一提示信息。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于通话过程中的情况下,识别所述电子设备是否已连接耳机;电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;电子设备在未连接耳机的情况下,识别免提是否开启;电子设备在免提开启的情况下,通过扬声器输出第一提示信息;电子设备在免提未开启的情况下,通过受话器输出第一提示信息。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备置于支 架上的情况下,识别所述电子设备是否已连接耳机;电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;电子设备在未连接耳机的情况下,通过扬声器输出第一提示信息。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备与检测设备建立连接;电子设备接收所述检测设备发送的查询事件,其中,所述查询事件中携带有查询关键词;电子设备响应于所述查询事件,从日志文件中查询所述查询关键词匹配的目标数据,其中,所述目标数据用于表征历史使用过程中用户每次误触重启的信息;电子设备将所述目标数据发送至所述检测设备进行显示。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备依据所记录的各次误触重启的场景信息,统计第二预设周期内发生的误触重启总次数;电子设备在所述总次数大于第一预设阈值的情况下,增大所述第二预设时长。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备依据所记录的各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;电子设备确定误触重启次数大于第二预设阈值的各第一场景,其中,各所述预设场景包含各所述第一场景;电子设备监测到第一场景下发生电源键误触操作的情况下,禁止响应所述电源键误触操作。
根据第二方面,或者以上第二方面的任意一种实现方式,所述第二预设时长为10秒,所述第一预设时长为6秒。
根据第二方面,或者以上第二方面的任意一种实现方式,电子设备接收用户对电源键的按压操作之后,包括:电子设备熄屏状态下,显示亮屏界面;电子设备在所述按压操作的持续时长达到5秒的情况下,显示重启提示界面;电子设备识别所处场景。
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。
第四方面,本申请提供了一种计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。
第五方面,本申请提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第二方面或第二方面的 任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。
附图说明
图1为示例性示出的电子设备的硬件结构示意图;
图2为示例性示出的电子设备的软件结构示意图;
图3为示例性示出的电源键误触检测方法的步骤流程示意图;
图4为示例性示出的电子设备熄屏界面示意图;
图5为示例性示出的电子设备亮屏界面示意图;
图6为示例性示出的重启提示界面示意图;
图7为示例性示出的目标场景识别方式示意图;
图8a~8c为示例性示出的第一提示信息输出方式示意图;
图9为示例性示出的第二提示信息输出方式示意图;
图10为示例性示出的用户手动查看第二提示信息的示意图;
图11为示例性示出的第二提示信息详细内容显示界面示意图;
图12为示例性示出的第二提示信息详细内容显示界面示意图;
图13为示例性示出的用户手动忽略第二提示信息的示意图;
图14为示例性示出的负一屏界面示意图;
图15为示例性示出的负一屏界面示意图;
图16为示例性示出的按压电源键后电子设备异常状态下的界面变化示意图;
图17为示例性示出的电子设备异常状态下开启重启后的主界面示意图;
图18为示例性示出的网点检测方式示意图;
图19为示例性示出的装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例 如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。
图1示出了电子设备100的结构示意图。应该理解的是,图1所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
其中,传感器模块180可以检测参数信息,处理器110依据传感器模块180检测到的参数信息判定电子设备100所处的预设场景,其中,预设场景可以包括但不限于:电子设备100处于口袋中、电子设备100处于通话过程中、电子设备100置于支架上、用户手持电子设备100跑步等。例如:接近光传感器180G采集第三参数,将第三参数上传处理器110,处理器110比较第三参数与第三参数阈值的大小,在第三参数小于第三参数阈值的情况下,识别出电子设备100置于口袋中。再例如:加速度传感器180E采集第二参数,将第二参数上传处理器110,处理器110比较第二参数与第二参数阈值的大小,在第二参数大于第二参数阈值的情况下,识别出用户当前手持电子设备100跑步。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal  asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA), 时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示界面,图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110通过运行存储在内部存储器121的指令,可接收用户对电源键的按压操作并检测按压操作的持续时长;在按压操作的持续时长超过第一预设时长的情况下,确定电子设备是否异常;在电子设备正常的情况下,识别电子设备当前所处的目标场景;基于目标场景,确定目标提示设备;通过扬声器170A、耳机接口170D、受话器170B或者显示屏194等目标提示设备输出第一提示信息;在检测到按压操作的持续时长超过第二预设时长的情况下,执行重启操作。
内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁 盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。例如,在本申请实施例中,指纹传感器180H可采集用户触摸触摸屏时的指纹,并将采集到的指纹传输至处理器110。示例性的,处理器110可以基于指纹传感器180H输入的指纹信息,对电子设备100进行解锁。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。示例性的,在本申请实施例中,若电子设备100处于锁屏模式或桌面模式时,电子设备100接收到用户点击电源键即开机键的操作,电子设备100可进入熄屏模式。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息、传感器(也可以称为桌面和壁纸)等应用程序。示例性的,传感器应用程序可实现本申请实施例中场景识别相关参数的采集、传输。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
可以理解的是,图2示出的系统框架层、系统库与运行时层包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
在本申请实施例中,电子设备可检测用户对电源键的误触操作,在检测到电源键误触操作时输出第一提示信息以提示用户及时终止本次误触操作,减少电子设备的误触重启次数,从而提升用户使用体验;不仅如此,电子设备还可以进一步识别并记录电源键误触操作发生时电子设备所处的场景信息,在误触重启后,在主界面中显示第二提示信息以提示用户本次重启为在某场景下的误触重启,减少用户到检测网点进行检测的概率。
需要说明的是,本申请实施例中所涉及的电源键误触检测方式可以在任意模式下触发。本申请实施例中的电子设备模式包括但不限于:熄屏模式、锁屏模式、桌面模式与可称为解锁模式。例如,本申请下面的实施例中所涉及的熄屏模式下对误触电源键的操作进行检测。
示例性的,熄屏模式可选地为电子设备在接收到用户点击开机键即电源键后所进入的模式,电子设备熄屏模式下,接收到用户对电源键的触控操作后,在电子设备正常的情况下,电子设备切换至亮屏界面。在电子设备异常的情况下,保持熄屏界面。
示例性的,锁屏模式可选地为电子设备的屏幕锁定。示例性的,在熄屏模式下,用户对电子设备进行触摸或按键等操作,可使得电子设备进入锁屏模式。示例性的,锁屏模式将屏幕锁定,需要用户进行解锁后才能进入桌面模式。示例性的,锁屏模式可提供一些不需要解锁即可使用的功能,例如拍照功能、小工具等。也就是说,锁屏模式下用户可对电子设备进行相应的操作,而在熄屏模式下,当用户触发电子设备,则电子设备将进入到锁屏模式。电子设备锁屏模式下,接收到用户对电源键的触控操作后,在电子设备正常的情况下,电子设备切换至亮屏界面。在电子设备异常的情况下,保持锁屏界面不变。
示例性的,桌面模式即为电子设备解锁后的模式。示例性的,用户可在桌面模式下对电子设备进行操作,以使用电子设备提供的相应功能。例如,用户可使用聊天应用、视频应用、通话、观看视频等。在桌面模式下,接收到用户对电源键的触控操作后,在电子设备正常的情况下,在检测到按压操作持续第一预设时长时,从当前显示界面切换至重启提示界面进行显示。在电子设备异常的情况下,保持当前界面不变直至监测到按压操作持续第二时长后执行重启操作。
需要说明的是,本申请实施例中的模式切换,例如包括:熄屏模式切换到锁屏模式、锁屏模式切换到桌面模式,或桌面模式(或锁屏模式)切换到熄屏模式可选地为界面的切 换。例如,熄屏模式切换到锁屏模式可选地为电子设备的显示屏中显示的熄屏界面切换为锁屏界面。其中,本申请实施例中的各界面(包括熄屏界面、锁屏界面和桌面)为全屏显示的界面,也就是说,当显示屏从一个界面(例如熄屏界面)切换到另一个界面(例如锁屏界面),即前一个界面(即熄屏界面)不显示,并在显示屏上全屏显示切换后的界面(即锁屏界面)。
本申请实施例中的电源键误触检测方法在检测到对电源键的误触操作后,可先后从三个阶段提示用户电子设备重启为误触电源键导致的重启。其中,检测到对电源键的按压操作为误触操作后至执行重启操作前为第一阶段;开机重启后至第二提示信息取消显示前为第二阶段;用户到检测网点对电子设备进行重启检测为第三阶段。下面结合具体实施例,对上述三个阶段的提示相关流程进行详细说明。
下面结合图3对第一阶段、第二阶段的提示相关流程进行说明。如图3所示,本申请实施例的电源键误触检测方法流程包括如下步骤:
S301:电子设备检测到用户对电源键的按压时长超过第一预设时长。
本申请中的电子设备可以为曲面屏窄边框设备,也可以为非曲面屏设备。电源键可以为设置在边框上的物理键或虚拟键。
第一预设时长可由本领域技术人员灵活设置,例如:第一预设时长可设置为5秒、6秒或者7秒等,第一预设时长小于第二预设时长,第二预设时长为长按电源键触发系统执行重启操作的时长阈值,第二预设时长可设置为10秒、11秒或者12秒等。示例性的,第一预设时长为6秒,第二预设时长为10秒。
示例性的,图4为电子设备熄屏界面示意图,电子设备熄屏模式下显示熄屏界面401,电子设备接收到用户对电源键的按压操作时,检测本次按压操作的持续时长,在本次按压操作的持续时长大于第一预设时长的情况下,执行S302。图4中仅是以电子设备熄屏模式下接收到用户对电源键的按压操作为例进行说明,在实际实现过程中,电子设备可以在任意模式下接收用户对电源键的按压操作。
S302:电子设备判定状态是否异常;若异常,执行第一流程分支;若正常,执行第二流程分支。
示例性的,第二流程分支包括图3中的S303至S310,电子设备判定状态正常的情况下,执行S303。
电子设备的状态异常包括:熄屏模式下接收到对电源键的按压操作后不亮屏、亮屏模式下接收到对电源键持续按压5S后不显示重启提示界面等。电子设备的状态正常包括:熄屏模式下接收到对电源键的按压操作后立即亮屏、亮屏模式下接收到对电源键持续按压5S后显示重启提示界面等。因此,通过接收到电源键的按压操作后电子设备界面的变化,可判定电子设备状态是否异常。不仅如此,电子设备还可以依据系统的运行状态,判定电子设备状态是否异常,例如:依据系统的运行状态识别出界面卡死,则可判定电子设备异常。
需要说明的是,电子设备可以在检测到用户对电源键的按压时长超过第一预设时长后再执行状态是否异常的判定逻辑,电子设备还可以在检测到用户对电源键的按压操作后便执行状态是否异常的判定逻辑,本申请实施例中对于判定状态是否异常的判定时机不做具体限制。
在判定电子设备异常的情况下,所执行的第一流程分支可以为:持续监测用户对电源键的按压时长,在按压时长超过第二预设时长后,开机重启,且开机重启后不输出第二提示信息,其中,第二提示信息用于提示用户本次重启为误触重启。
示例性的,第一流程流程分支的UI界面变化过程示意图如图16~17所示,图16为按压电源键后电子设备异常状态下的界面变化示意图,图17为电子设备异常状态下开启重启后的主界面示意图。如图16所示,电子设备熄屏模式下显示熄屏界面1601,用户按压电源键后电子设备未亮屏依然显示熄屏界面1601,电子设备继续检测用户对电源键的按压时长,在按压时长超出第二预设时长的情况下,执行重启操作从熄屏界面1601直接跳转至开机后的主界面1701,如图17所示,在主界面1701中未显示用于提示用户本次重启为误触重启的第二提示信息。
示例性的,图5为电子设备亮屏界面示意图,电子设备在图4所示的在熄屏模式下接收到用户对电源键的按压操作后,图4中所示的熄屏界面401跳转至图5中所示的亮屏界面501,则可判定电子设备状态正常。跳转至亮屏界面501后,若此时用户未停止本次按压操作,电子设备继续检测本次按压操作的持续时长,在持续时长达到第一预设时长后,跳转至图6中所示的重启提示界面601。重启提示界面601中包括但不限于:重启提示图标6011、重启提示文本例如图6中所示的“重启”6012。在实际实现过程中,重启提示界面中可仅包含重启提示图标或仅包含重启提示文本。
在满足如下两个条件时,电子设备可判定本次对电源键的按压操作为误触重启操作:
条件一:电子设备状态正常;
条件二:用户对电源键的按压操作持续时长超过第一预设时长。
在上述任一条件无法满足的情况下,均无法判定本次对电源键的按压操作为误触重启操作。若满足条件二,不满足条件一,则确定本次对电源键的按压操作为刻意重启操作;若满足条件一,不满足条件二,则继续检测对电源键的按压操作持续时长,若本次按压操作的持续时长未超过第一预设时长便终止,则默认本次按压操作并非触发重启的长按操作。
S303:电子设备识别所处场景。
在判定本次对电源键的按压操作为误触重启操作后,需识别电子设备当前所处的场景,所识别到的场景信息一方面便于后续对场景信息进行记录存储,又一方面,便于系统确定便捷、有效地目标提示设备,输出第一提示信息。
其中,电子设备所处的场景可以为预设场景中的任意之一,也可以为预设场景之外的任意场景。预设场景可以包括但不限于:电子设备处于口袋中、电子设备处于通话过程中、电子设备置于支架上、用户手持电子设备跑步等。在电子设备所处场景为预设场景之外的任意场景的情况下,系统可将电子设备所处的场景自动添加至预设场景中,以实现对预设场景的自动扩充。
需要说明的是,预设场景除上述列举的在历史使用过程中自动扩充外,还可以由本领域技术人员根据检测网点对故障机的检测分析结果添加,或者由本领域技术人员根据用户回访结果添加。
电子设备所处场景的识别,可由电子设备中的处理器依据传感器检测到的参数信息识别得到,还可以由电子设备依据前台所运行的应用程序分析得到。例如:电子设备识别到 通话应用程序在前台运行,则可识别到处于通话过程中。再例如:电子设备识别到某视频类应用程序在前台运行,则可识别到处于观影过程中。
示例性的,如图7中的目标场景识别方式示意图所示,电子设备中设置的各传感器如陀螺仪701、加速度传感器702以及接近光传感器703,分别采集第一参数、第二参数以及第三参数,并将采集的第一参数、第二参数以及第三参数发送至处理器704,处理器704依据第一参数、第二参数以及第三参数识别电子设备所处场景。第一参数可以为角度变化量,第二参数可以为移动速度,第三参数可以为光线强度等。示例性的,接近光传感器703采集的第三参数小于第三参数阈值的情况下,可确定电子设备当前处于口袋中。在加速度传感器702采集的第二参数大于第二参数阈值的情况下,可确定用户携带电子设备在跑步。在陀螺仪701采集的第一参数小于第一参数阈值的情况下,可确定电子设备置于支架上。上述仅是示例性的列举了几种依据传感器采集的参数识别电子设备所处场景的方式,在实际实现过程中,场景的识别方式可由本领域技术人员灵活设置。
S304:基于所处场景,确定目标提示设备。
不同目标场景对应的目标提示设备确定规则不同,各种场景对应的目标提示设备确定规则可由本领域技术人员根据实际需求灵活设置。目标提示设备可以包括但不限于:电子设备中包含的扬声器、受话器以及与电子设备连接的耳机等。
示例性的,电子设备处于口袋中的情况下,识别电子设备是否已连接耳机;在电子设备已连接耳机的情况下,将耳机确定为目标提示设备;在电子设备未连接耳机的情况下,将扬声器确定为目标提示设备。该种示例性的在电子设备处于口袋中的情况下,确定目标提示设备的方式,能够识别得到调用便利的目标提示设备。当然并不限于此,还可以设置为电子设备处于口袋中的情况下,直接将扬声器确定为目标提示设备,该种情况下若电子设备与耳机处于连接状态,将与耳机间的连接断开,以保证扬声器可输出语音提示信息。
示例性的,电子设备处于通话过程中的情况下,识别电子设备是否已连接耳机;在电子设备已连接耳机的情况下,将耳机确定为目标提示设备;在电子设备未连接耳机的情况下,识别免提是否开启;在免提开启的情况下,将扬声器确定为目标提示设备;在免提未开启的情况下,将受话器确定为目标提示设备。该种示例性的在电子设备处于通话过程中情况下,确定目标提示设备的方式,能够识别得到调用便利、提示效果显著的设备。当然并不限于此,还可以设置为电子设备处于通话过程中的情况下,直接将扬声器确定为目标提示设备,该种情况下若电子设备与耳机处于连接状态,将与耳机间的连接断开,一方面通过断开耳机可提示用户查看电子设备,另一方面,可以保证扬声器输出语音提示信息。
示例性的,在目标场景为电子设备置于支架上的情况下,识别电子设备是否已连接耳机;在电子设备已连接耳机的情况下,将耳机确定为目标提示设备;在电子设备未连接耳机的情况下,将扬声器确定为目标提示设备。该种示例性的在电子设备置于支架上的情况下,确定目标提示设备的方式,能够识别得到调用便利、提示效果显著的提示设备。
除上述所列举的分别为各场景设置不同的目标提示设备确定规则外,还可以为各场景设置统一的目标提示设备确定规则,分别为扬声器、受话器以及与电子设备连接的耳机等提示设备设置不同优先级,按照优先级由高到低选择目标提示设备。例如:优先级由高到依次为耳机、受话器以及扬声器,无论电子设备处于哪种场景下,均优先判定电子设备是否已连接耳机,若电子设备已连接耳机,则将耳机确定为目标提示设备;若电子设备未连 接耳机,则进一步判定电子设备是否在通过受听器接收声音信息,若电子设备未通过受话器接收声音信息,则将扬声器确定为目标提示设备,若电子设备在通过受话器接收声音信息,则将受话器确定为目标提示设备。
S305:记录所处场景信息,并通过目标提示设备输出第一提示信息。
目标场景信息可在确定目标提示设备之后进行记录,也可以在识别到目标场景后确定目标提示设备之前进行记录,还可以在确定目标提示设备的同时记录目标场景信息。目标场景信息可以记录在Log(Logstore,日志库)分区中,例如:存储路径可以为log/bootfail,每当检测到一次对电源键的误触操作则在Log分区中生成一条电源键误触操作日志,并在该日志中添加详细的目标场景信息,为后续网点检测提供电源键误触重启数据依据。
示例性的,图8a~8c为第一提示信息输出方式示意图,如图8a所示,电子设备在显示重启提示界面601的同时,调用扬声器801输出第一提示信息,以提示用户误触电源键。例如:电子设备处于口袋中时,若用户未佩戴耳机,则电子设备可通过图8a中所示的扬声器801输出第一提示信息。如图8b所示,电子设备在显示重启提示界面601的同时,若用户未佩戴耳机且电子设备未开启免提,则电子设备可通过图8b中所示的受话器802输出第一提示信息。如图8c所示,电子设备在显示重启提示界面601的同时,生成提示事件,其中提示事件中携带有待输出的第一提示信息,与电子设备连接的耳机803响应提示事件输出第一提示信息,以提示用户误触电源键。例如:电子设备处于口袋中时,若用户当前佩戴耳机,则电子设备可通过耳机803输出第一提示信息。
需要说明的是,第一提示信息可仅输出第三预设时长,第三预设时长小于执行重启操作时刻与首次输出第一提示信息时刻的间隔时长,第一提示信息还可以输出至执行重启操作时刻再停止。第一提示信息的输出次数以及输出频率可由本领域技术人员或用户灵活设置。例如:可设置为仅输出一次第一提示信息,或者设置为按照预设频率输出预设次数的第一提示信息,还可以设置为按照预设频率输出第三预设时长的第一提示信息等。
S306:检测到对电源键的按压时长超过第二预设时长的情况下,执行重启操作。
电子设备通过目标提示设备输出第一提示信息的过程中,用户察觉到第一提示信息在本次按压持续时长未超过第二预设时长时及时终止对电源键的按压操作的情况下,则第二流程分支终止,电子设备不会执行重启操作。若用户未察觉到第一提示信息及时终止对电源键的按压操作,则在检测到用户对电源键的按压时长超过第二预设时长的情况下,执行重启操作。
S301~S306为提示用户误触电源键导致电子设备重启的第一阶段。S107~S110为提示用户误触电源键导致电子设备重启的第二阶段。
S307:重启开机后,在通知栏中显示第二提示信息。
其中,第二提示信息用于提示用户本次重启为误触电源键导致的重启。
示例性的,如图9中的第二提示信息输出方式示意图所示,第二提示信息可以以弹框的形式显示在开机后的主界面901上,弹框9011中显示有提示概要内容“本次重启为误触重启,请关注”。图9中仅是示例性的列举了一种提示概要内容的表达方式,在实际实现过程中本领域技术人员可以根据实际需求灵活设置第二提示信息的提示概要内容。例如:可将提示概要内容设置为“近期发生多次误触重启,请关注”,再例如:“第一预设周期内共发生N次误触重启,请关注”等。
除图9中示例性展示的在主界面中以弹框的形式显示第二提示信息的方式外,还可以在电子设备的通知栏界面中显示第二提示信息。通知栏界面可通过在主界面中执行上划或下划操作触发显示。
S308:检测用户是否忽略第二提示信息;若未略,则执行S309;若忽略,则执行S310。
显示第二提示信息后,用户可以选择忽略或者进一步查看第二提示信息的详细内容。对第二提示信息的忽略操作可以包括但不限于:向左滑动第二提示信息、向右滑动第二提示信息、向上滑动第二提示信息或者第五预设时长内未执行查看操作等。在第五预设时长内未接收到对第二提示信息的查看操作的情况下,则可默认第二提示信息被忽略。对第二提示信息的查看操作可以包括但不限于:对第二提示信息的单击、双击或者长按操作等。接收到用户对第二信息的查看操作时,则说明用户未忽略第二提示信息。第五预设时长可由本领域技术人员根据实际需求进行设置,例如设置为3秒、5秒或者10秒等。
S309:在用户未忽略第二提示信息的情况下,在界面中显示第二提示信息的详细内容。
示例性的,如图10中的用户手动查看第二提示信息的示意图所示,用户可点击主界面901中弹框9011,以查看第二提示信息的详细内容。如图11中的第二提示信息详细内容显示界面示意图所示,电子设备在接收到用户对第二提示信息的查看操作后,在主界面901中显示弹框9012,弹框9012中显示有第二提示信息的详细内容9013“最近一次在xx场景下误触重启,请关注”。通过查看第二提示信息的详细内容,用户可了解最近一次误触重启的详细内容。
第二提示信息的详细内容可以如图10中所示,仅显示最近一次误触重启的详细内容,还可以如图12中的第二提示信息详细内容显示界面示意图所示,在接收到用户对第二提示信息的查看操作后,在主界面901中显示弹框9014,弹框9014中显示有第二提示信息的详细内容9015“第一预设周期内误触重启详情如下,请关注:A场景:X次,B场景:Y次,C场景:Z次”。通过查看第二提示信息的详细内容,用户可了解第一预设周期内共发生了多少次误触重启,分别在哪些场景下发生了几次误触重启,便于用户对自己的不良操作习惯进行整体了解。第一预设周期可由本领域技术人员或用户灵活设置,例如:第一预设周期可设置为24小时、48小时、一周或者一个月等。
需要说明的是,图11、图12中仅是列举了两种第二提示信息详细内容示例,在实际实现过程中,本领域技术人员可灵活设置第二提示信息详细内容规范。
S310:在用户忽略第二提示信息的情况下,在负一屏中显示第二提示信息的详细内容。
示例性的,如图13中的用户手动忽略第二提示信息的示意图所示,用户可滑动主界面901中弹框9011,以忽略第二提示信息。第二提示信息被用户忽略后,在负一屏中显示第二提示信息的详细内容。如图14中的负一屏界面示意图所示,负一屏界面1401的通知栏1402中显示有第二提示信息的详细内容1403“最近一次在xx场景下误触重启,请关注”。将第二提示信息的详细内容显示在负一屏的通知拦中,便于用户后续查看误触重启详细内容。
在负一屏中所显示的第二提示信息的详细内容可以如图14中所示,仅为最近一次误触重启的详细内容,还可以如图15中的负一屏界面示意图所示,在负一屏1401中显示通知栏1402,通知栏1402中显示有第二提示信息的详细内容1501“第一预设周期内误触重启详情如下,请关注:A场景:X次,B场景:Y次,C场景:Z次”。将第二提示信息 的详细内容显示在负一屏的通知拦中,便于用户后续查看误触重启详细内容。通过查看第二提示信息的详细内容,用户可了解第一预设周期内共发生了多少次误触重启,分别在哪些场景下发生了几次误触重启,便于用户对自己的不良操作习惯进行整体了解。
负一屏通知栏中的第二提示信息的详细内容可保留第六预设时长,第六预设时长可以由本领域技术人员灵活设置,例如:1小时、1天或者3天等。
在一种可选的实施例中,电子设备还可以定期执行该流程:依据所记录的各次误触重启的场景信息,统计第二预设周期内发生的误触重启总次数;在总次数大于第一预设阈值的情况下,增大第二预设时长。
第二预设周期指示的时长大于第一预设周期指示的时长。第二预设时长可设置为1周、一个月或者半年等。第一预设阈值也可以由本领域技术人员或者用户灵活设定。例如:第一预设阈值设置为5次、10次或者15次等。第二预设时长的每次调整步长可由本领域技术人员或者用户灵活设置。
示例性的,假设第一预设阈值为10次,第二预设周期为一个月,由于电子设备中记录有历史使用过程中每次用户误触重启的日志信息,因此可统计得到一个月内用户误触重启电子设备的总次数,若总次数为12次,则增大第二预设时长。以单次调整步长为2秒,第二预设时长为10秒为例,则第二预设时长调整为12秒。
该种可选的在统计到用户频繁触发误触重启后,增大重启响应时长的方式,能够变相降低电源键触发重启的灵敏度,增加第一提示信息的输出持续时长,进一步增加用户反应误触操作的时长,以降低误触重启的概率。
在一种可选的实施例中,电子设备还可以依据所记录各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;确定误触重启次数大于第二预设阈值的各第一场景,其中,各预设场景包含各第一场景;监测到第一场景下发生电源键误触操作的情况下,禁止响应电源键误触操作。例如:第二预设阈值设置为3次、5次或者7次等。
若用户在频繁在某一场景下误触电源键导致电子设备重启,说明这是一种不良的使用习惯且用户无感知或者无法自行克服该问题。因此后续检测到的该场景下的电源键误触操作可视为无效操作,不对其进行响应,从而直接杜绝该场景下用户误触电源键导致电子设备重启。
示例性的,假设第二预设阈值为3次,第二预设周期为一周,由于电子设备中记录有历史使用过程中每次用户误触重启的日志信息,因此可统计得到一周内用户在各预设场景下误触电源键导致电子设备重启的总次数。若用户一周内在电子设备处于口袋中时误触重启1次,在手持电子设备跑步时误触重启4,则将手持电子设备跑步这一场景判定为第一场景,再次检测到用户手持电子设备跑步时对电源键执行误触操作时,将禁止响应本次用户对电源键的误触操作。其中,误触电源键导致电子设备重启简称误触重启。
上述为用户在使用电子设备的过程中,在第一阶段、第二阶段提示用户误触电源键重启的相关流程。在实际实现过程中,若用户未留意到上述两个阶段的提示,认为电子设备频繁重启是系统问题到检测网点对电子设备进行检测时,检测网点中检测工作人员可通过图18中所示的网点检测方式对电子设备进行检测,通过检测设备上的检测结果,向用户证明电子设备重启并非系统问题电子设备并非故障机,而是用户使用过程中误触电源键导 致的重启。该阶段为第三阶段。
示例性的,如图18所示,检测工作人员对电子设备进行检测时,建立电子设备1801与检测设备1802之间的连接关系。连接关系可以为图18中所示通过数据线建立的有线连接,也可以为无线连接。电子设备与检测设备建立连接后,检测工作人员开启检测设备中的检测系统,在检测界面中输入查询关键词,检测系统依据查询关键词生成查询事件,并将查询事件发送至电子设备。电子设备接收到检测设备发送的查询事件后,响应于查询事件,解析出查询事件中的查询关键词,并从日志文件中查询查询关键词匹配的目标数据即查询数据,例如电子设备可从其中,目标数据用于表征历史使用过程中用户每次误触重启的信息;电子设备将目标数据发送至检测设备进行显示,检测设备接收电子设备发送的查询数据,在显示屏上显示查询数据。其中,查询数据可以包括但不限于:电子设备历史使用过程中所误触发的各次重启对应的场景信息。例如:在A场景下误触重启X次,各次误触重启时间分别为xx、xx、xx等;在B场景下误触重启Y次,各次误触重启时间分别为xx、xx、xx等;在C场景下误触重启Z次,各次误触重启时间分别为xx、xx、xx等。
检测设备可以为台式电脑、手提电脑或平板等设备。
检测设备上显示的查询数据可作为有利证据向用户证明电子设备历史过程中的重启并非电子设备系统问题,而是用户历史使用过程中误触导致的,一方面,可减少电子设备的勿退率;再一方面,可警示用户,使得用户在后续使用过程中尽量避免在所显示的各种预设场景中误触电源键触发电子设备重启。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
一个示例中,图19示出了本申请实施例的一种装置1900的示意性框图装置1900可包括:处理器1901和收发器/收发管脚1902,可选地,还包括存储器1903。
装置1900的各个组件通过总线1904耦合在一起,其中总线1904除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都称为总线1904。
可选地,存储器1903可以用于前述方法实施例中的指令。该处理器1901可用于执行存储器1903中的指令,并控制接收管脚接收信号,以及控制发送管脚发送信号。
装置1900可以是上述方法实施例中的电子设备或电子设备的芯片。
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的电源键误触检测方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的电源键误触检测方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的电源键误触检测方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储 器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (58)

  1. 一种电子设备,其特征在于,包括:
    存储器和处理器;
    所述处理器与所述存储器耦合;
    所述存储器存储有程序指令,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    接收用户对电源键的按压操作;
    在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息;其中,所述第一提示信息用于提示用户误触电源键,所述预设场景包括:口袋、通话过程中、置于支架上;
    在所述按压操作的持续时长超过第二预设时长的情况下,执行重启操作。
  2. 根据权利要求1所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    重启开机后,在主界面中显示第二提示信息,其中,所述第二提示信息用于提示用户本次重启为误触重启。
  3. 根据权利要求2所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第一用户操作,在所述主界面中显示所述第二提示信息的详细内容,其中,所述详细内容包括:场景信息。
  4. 根据权利要求2所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容。
  5. 根据权利要求4所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第二用户操作,在负一屏中显示最近一次误触重启的场景信息。
  6. 根据权利要求4所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第二用户操作,在负一屏中显示第一预设周期内各次误触重启的场景信息。
  7. 根据权利要求1所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    在所述按压操作的持续时长超过第一预设时长且所述电子设备处于口袋中的情况下,识别所述电子设备是否已连接耳机;
    在所述电子设备已连接耳机的情况下,通过所述耳机输出第一提示信息;
    在所述电子设备未连接耳机的情况下,通过扬声器输出第一提示信息。
  8. 根据权利要求1所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    在所述按压操作的持续时长超过第一预设时长且所述电子设备处于通话过程中的情 况下,识别所述电子设备是否已连接耳机;
    在所述电子设备已连接耳机的情况下,通过所述耳机输出第一提示信息;
    在所述电子设备未连接耳机的情况下,识别免提是否开启;
    在免提开启的情况下,通过扬声器输出第一提示信息;
    在免提未开启的情况下,通过受话器输出第一提示信息。
  9. 根据权利要求1所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    在所述按压操作的持续时长超过第一预设时长且所述电子设备置于支架上的情况下,识别所述电子设备是否已连接耳机;
    在所述电子设备已连接耳机的情况下,通过所述耳机输出第一提示信息;
    在所述电子设备未连接耳机的情况下,通过扬声器输出第一提示信息。
  10. 根据权利要求1-9任一项所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    与检测设备建立连接;
    接收所述检测设备发送的查询事件,其中,所述查询事件中携带有查询关键词;
    响应于所述查询事件,从日志文件中查询所述查询关键词匹配的目标数据,其中,所述目标数据用于表征历史使用过程中用户每次误触重启的信息;
    将所述目标数据发送至所述检测设备进行显示。
  11. 根据权利要求1-10任一项所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    依据所记录的各次误触重启的场景信息,统计第二预设周期内发生的误触重启总次数;
    在所述总次数大于第一预设阈值的情况下,增大所述第二预设时长。
  12. 根据权利要求1-10任一项所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    依据所记录的各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;
    确定误触重启次数大于第二预设阈值的各第一场景,其中,各所述预设场景包含各所述第一场景;
    监测到第一场景下发生电源键误触操作的情况下,禁止响应所述电源键误触操作。
  13. 根据权利要求1-12任一项所述的电子设备,其特征在于,所述第二预设时长为10秒,所述第一预设时长为6秒。
  14. 根据权利要求13所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    熄屏状态下,接收到用户对所述电源键的按压操作后,显示亮屏界面;
    在所述按压操作的持续时长达到5秒的情况下,显示重启提示界面;
    识别电子设备所处场景。
  15. 一种电源键误触检测方法,其特征在于,包括:
    电子设备接收用户对电源键的按压操作;
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息;其中,所述第一提示信息用于提示用户误触电源键;
    电子设备在所述按压操作的持续时长超过第二预设时长的情况下,执行重启操作。
  16. 根据权利要求15所述的方法,其特征在于,电子设备执行重启操作之后,包括:
    电子设备重启开机后,在主界面中显示第二提示信息,其中,所述第二提示信息用于提示用户本次重启为误触重启。
  17. 根据权利要求16所述的方法,其特征在于,电子设备重启开机后,在主界面中显示第二提示信息之后,包括:
    电子设备响应于接收到的第一用户操作,在所述主界面中显示所述第二提示信息的详细内容,其中,所述详细内容包括:场景信息。
  18. 根据权利要求16所述的方法,其特征在于,电子设备重启开机后,在主界面中显示第二提示信息之后,包括:
    电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容。
  19. 根据权利要求18所述的方法,其特征在于,电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容,包括:
    电子设备响应于接收到的第二用户操作,在负一屏中显示最近一次误触重启的场景信息。
  20. 根据权利要求18所述的方法,其特征在于,电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容,包括:
    电子设备响应于接收到的第二用户操作,在负一屏中显示第一预设周期内各次误触重启的场景信息。
  21. 根据权利要求15所述的方法,其特征在于,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于口袋中的情况下,识别所述电子设备是否已连接耳机;
    电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;
    电子设备在未连接耳机的情况下,通过扬声器输出第一提示信息。
  22. 根据权利要求15所述的方法,其特征在于,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于通话过程中的情况下,识别所述电子设备是否已连接耳机;
    电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;
    电子设备在未连接耳机的情况下,识别免提是否开启;
    电子设备在免提开启的情况下,通过扬声器输出第一提示信息;
    电子设备在免提未开启的情况下,通过受话器输出第一提示信息。
  23. 根据权利要求15所述的方法,其特征在于,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备置于支架上 的情况下,识别所述电子设备是否已连接耳机;
    电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;
    电子设备在未连接耳机的情况下,通过扬声器输出第一提示信息。
  24. 根据权利要求15-23中任一项所述的方法,其特征在于,包括:
    电子设备与检测设备建立连接;
    电子设备接收所述检测设备发送的查询事件,其中,所述查询事件中携带有查询关键词;
    电子设备响应于所述查询事件,从日志文件中查询所述查询关键词匹配的目标数据,其中,所述目标数据用于表征历史使用过程中用户每次误触重启的信息;
    电子设备将所述目标数据发送至所述检测设备进行显示。
  25. 根据权利要求15-23中任一项所述的方法,其特征在于,包括:
    电子设备依据所记录的各次误触重启的场景信息,统计第二预设周期内发生的误触重启总次数;
    电子设备在所述总次数大于第一预设阈值的情况下,增大所述第二预设时长。
  26. 根据权利要求15-23中任一项所述的方法,其特征在于,包括:
    电子设备依据所记录的各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;
    电子设备确定误触重启次数大于第二预设阈值的各第一场景,其中,各所述预设场景包含各所述第一场景;
    电子设备监测到第一场景下发生电源键误触操作的情况下,禁止响应所述电源键误触操作。
  27. 根据权利要求12-26中任一项所述的方法,其特征在于,所述第二预设时长为10秒,所述第一预设时长为6秒。
  28. 根据权利要求27所述的方法,其特征在于,电子设备接收用户对电源键的按压操作之后,包括:
    电子设备熄屏状态下,显示亮屏界面;
    电子设备在所述按压操作的持续时长达到5秒的情况下,显示重启提示界面;
    电子设备识别所处场景。
  29. 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求15-28中任意一项所述的电源键误触检测方法。
  30. 一种电子设备,其特征在于,包括:
    存储器和处理器;
    所述处理器与所述存储器耦合;
    所述存储器存储有程序指令,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    接收用户对电源键的按压操作;
    在所述按压操作的持续时长超过第一预设时长、所述电子设备状态正常且所述电子设备处于预设场景下的情况下,输出第一提示信息;其中,所述第一提示信息用于提示用户 误触电源键,所述预设场景包括:口袋、通话过程中、置于支架上,所述电子设备状态正常包括以下情况中的一种或多种:熄屏模式下接收到对电源键的按压操作后亮屏、亮屏模式下接收到对电源键持续按压所述第一预设时长后显示重启提示界面;
    在所述按压操作的持续时长超过第二预设时长的情况下,执行重启操作。
  31. 根据权利要求30所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    重启开机后,在主界面中显示第二提示信息,其中,所述第二提示信息用于提示用户本次重启为误触重启。
  32. 根据权利要求31所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第一用户操作,在所述主界面中显示所述第二提示信息的详细内容,其中,所述详细内容包括:场景信息。
  33. 根据权利要求31所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容。
  34. 根据权利要求33所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第二用户操作,在负一屏中显示最近一次误触重启的场景信息。
  35. 根据权利要求33所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    响应于接收到的第二用户操作,在负一屏中显示第一预设周期内各次误触重启的场景信息。
  36. 根据权利要求30所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    在所述按压操作的持续时长超过第一预设时长且所述电子设备处于口袋中的情况下,识别所述电子设备是否已连接耳机;
    在所述电子设备已连接耳机的情况下,通过所述耳机输出第一提示信息;
    在所述电子设备未连接耳机的情况下,通过扬声器输出第一提示信息。
  37. 根据权利要求30所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    在所述按压操作的持续时长超过第一预设时长且所述电子设备处于通话过程中的情况下,识别所述电子设备是否已连接耳机;
    在所述电子设备已连接耳机的情况下,通过所述耳机输出第一提示信息;
    在所述电子设备未连接耳机的情况下,识别免提是否开启;
    在免提开启的情况下,通过扬声器输出第一提示信息;
    在免提未开启的情况下,通过受话器输出第一提示信息。
  38. 根据权利要求30所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    在所述按压操作的持续时长超过第一预设时长且所述电子设备置于支架上的情况下, 识别所述电子设备是否已连接耳机;
    在所述电子设备已连接耳机的情况下,通过所述耳机输出第一提示信息;
    在所述电子设备未连接耳机的情况下,通过扬声器输出第一提示信息。
  39. 根据权利要求30-38任一项所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    与检测设备建立连接;
    接收所述检测设备发送的查询事件,其中,所述查询事件中携带有查询关键词;
    响应于所述查询事件,从日志文件中查询所述查询关键词匹配的目标数据,其中,所述目标数据用于表征历史使用过程中用户每次误触重启的信息;
    将所述目标数据发送至所述检测设备进行显示。
  40. 根据权利要求30-38任一项所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    依据所记录的各次误触重启的场景信息,统计第二预设周期内发生的误触重启总次数;
    在所述总次数大于第一预设阈值的情况下,增大所述第二预设时长。
  41. 根据权利要求30-38任一项所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    依据所记录的各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;
    确定误触重启次数大于第二预设阈值的各第一场景,其中,各所述预设场景包含各所述第一场景;
    监测到第一场景下发生电源键误触操作的情况下,禁止响应所述电源键误触操作。
  42. 根据权利要求30-38任一项所述的电子设备,其特征在于,所述第二预设时长为10秒,所述第一预设时长为6秒。
  43. 根据权利要求42所述的电子设备,其特征在于,当所述程序指令由所述处理器执行时,使得所述电子设备执行如下步骤:
    熄屏状态下,接收到用户对所述电源键的按压操作后,显示亮屏界面;
    在所述按压操作的持续时长达到5秒的情况下,显示重启提示界面;
    识别电子设备所处场景。
  44. 一种电源键误触检测方法,其特征在于,包括:
    电子设备接收用户对电源键的按压操作;
    电子设备在所述按压操作的持续时长超过第一预设时长、所述电子设备状态正常且所述电子设备处于预设场景下的情况下,输出第一提示信息;其中,所述第一提示信息用于提示用户误触电源键,所述电子设备状态正常包括以下情况中的一种或多种:熄屏模式下接收到对电源键的按压操作后亮屏、亮屏模式下接收到对电源键持续按压所述第一预设时长后显示重启提示界面;
    电子设备在所述按压操作的持续时长超过第二预设时长的情况下,执行重启操作。
  45. 根据权利要求44所述的方法,其特征在于,电子设备执行重启操作之后,包括:
    电子设备重启开机后,在主界面中显示第二提示信息,其中,所述第二提示信息用于 提示用户本次重启为误触重启。
  46. 根据权利要求45所述的方法,其特征在于,电子设备重启开机后,在主界面中显示第二提示信息之后,包括:
    电子设备响应于接收到的第一用户操作,在所述主界面中显示所述第二提示信息的详细内容,其中,所述详细内容包括:场景信息。
  47. 根据权利要求45所述的方法,其特征在于,电子设备重启开机后,在主界面中显示第二提示信息之后,包括:
    电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容。
  48. 根据权利要求47所述的方法,其特征在于,电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容,包括:
    电子设备响应于接收到的第二用户操作,在负一屏中显示最近一次误触重启的场景信息。
  49. 根据权利要求47所述的方法,其特征在于,电子设备响应于接收到的第二用户操作,在负一屏中显示所述第二提示信息的详细内容,包括:
    电子设备响应于接收到的第二用户操作,在负一屏中显示第一预设周期内各次误触重启的场景信息。
  50. 根据权利要求44所述的方法,其特征在于,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于口袋中的情况下,识别所述电子设备是否已连接耳机;
    电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;
    电子设备在未连接耳机的情况下,通过扬声器输出第一提示信息。
  51. 根据权利要求44所述的方法,其特征在于,电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备处于通话过程中的情况下,识别所述电子设备是否已连接耳机;
    电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;
    电子设备在未连接耳机的情况下,识别免提是否开启;
    电子设备在免提开启的情况下,通过扬声器输出第一提示信息;
    电子设备在免提未开启的情况下,通过受话器输出第一提示信息。
  52. 根据权利要求44所述的方法,其特征在于,第一预设时长且所述电子设备处于预设场景下的情况下,输出第一提示信息,包括:
    电子设备在所述按压操作的持续时长超过第一预设时长且所述电子设备置于支架上的情况下,识别所述电子设备是否已连接耳机;
    电子设备在已连接耳机的情况下,通过所述耳机输出第一提示信息;
    电子设备在未连接耳机的情况下,通过扬声器输出第一提示信息。
  53. 根据权利要求44-52中任一项所述的方法,其特征在于,包括:
    电子设备与检测设备建立连接;
    电子设备接收所述检测设备发送的查询事件,其中,所述查询事件中携带有查询关键词;
    电子设备响应于所述查询事件,从日志文件中查询所述查询关键词匹配的目标数据,其中,所述目标数据用于表征历史使用过程中用户每次误触重启的信息;
    电子设备将所述目标数据发送至所述检测设备进行显示。
  54. 根据权利要求44-52中任一项所述的方法,其特征在于,包括:
    电子设备依据所记录的各次误触重启的场景信息,统计第二预设周期内发生的误触重启总次数;
    电子设备在所述总次数大于第一预设阈值的情况下,增大所述第二预设时长。
  55. 根据权利要求44-52中任一项所述的方法,其特征在于,包括:
    电子设备依据所记录的各次误触重启的场景信息,统计第二预设周期内分别在各预设场景下发生的误触重启次数;
    电子设备确定误触重启次数大于第二预设阈值的各第一场景,其中,各所述预设场景包含各所述第一场景;
    电子设备监测到第一场景下发生电源键误触操作的情况下,禁止响应所述电源键误触操作。
  56. 根据权利要求44-52中任一项所述的方法,其特征在于,所述第二预设时长为10秒,所述第一预设时长为6秒。
  57. 根据权利要求56所述的方法,其特征在于,电子设备接收用户对电源键的按压操作之后,包括:
    电子设备熄屏状态下,显示亮屏界面;
    电子设备在所述按压操作的持续时长达到5秒的情况下,显示重启提示界面;
    电子设备识别所处场景。
  58. 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求44-57中任意一项所述的电源键误触检测方法。
PCT/CN2022/094519 2021-07-16 2022-05-23 电源键误触检测方法及电子设备 WO2023284415A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110809136.7 2021-07-16
CN202110809136.7A CN113645341B (zh) 2021-07-16 2021-07-16 电源键误触检测方法及电子设备

Publications (1)

Publication Number Publication Date
WO2023284415A1 true WO2023284415A1 (zh) 2023-01-19

Family

ID=78417756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094519 WO2023284415A1 (zh) 2021-07-16 2022-05-23 电源键误触检测方法及电子设备

Country Status (2)

Country Link
CN (1) CN113645341B (zh)
WO (1) WO2023284415A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117440088A (zh) * 2023-12-20 2024-01-23 荣耀终端有限公司 通话方法及相关设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645341B (zh) * 2021-07-16 2022-12-27 荣耀终端有限公司 电源键误触检测方法及电子设备
CN114343786B (zh) * 2021-12-31 2024-03-15 剑虎医疗科技(苏州)有限公司 一种外科手术设备能量切换方法和外科手术设备
CN114879894B (zh) * 2022-04-20 2024-06-11 华为技术有限公司 功能启动方法、用户界面及电子设备
CN116893856A (zh) * 2023-07-18 2023-10-17 广州向成电子科技有限公司 基于电源管理芯片的按键开机方法、存储介质和设备
CN116827759B (zh) * 2023-08-29 2023-11-03 北京中科网芯科技有限公司 汇聚分流器的重启指令处理方法及装置
CN117931525B (zh) * 2024-02-02 2024-08-09 重庆赛力斯凤凰智创科技有限公司 目标按钮失效的处理方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468217A (zh) * 2015-11-17 2016-04-06 广东欧珀移动通信有限公司 一种通过电容传感器替代电源键的移动终端及实现方法
CN105898055A (zh) * 2016-04-08 2016-08-24 广东欧珀移动通信有限公司 一种移动终端的休眠方法、装置及移动终端
US20200073454A1 (en) * 2018-09-03 2020-03-05 Tatsuya Saito Electronic device, method for providing information, and non-transitory computer-readable storage medium
CN113645341A (zh) * 2021-07-16 2021-11-12 荣耀终端有限公司 电源键误触检测方法及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860624A (zh) * 2010-06-21 2010-10-13 中兴通讯股份有限公司 一种死机自动重启方法及手机
CN104750453B (zh) * 2015-03-09 2019-02-05 联想(北京)有限公司 一种信息处理方法及电子设备
CN105975304A (zh) * 2016-04-29 2016-09-28 青岛海信移动通信技术股份有限公司 一种移动设备的重启方法和装置
CN111475052B (zh) * 2020-04-10 2023-12-22 维沃移动通信有限公司 一种按键防误触的方法及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468217A (zh) * 2015-11-17 2016-04-06 广东欧珀移动通信有限公司 一种通过电容传感器替代电源键的移动终端及实现方法
CN105898055A (zh) * 2016-04-08 2016-08-24 广东欧珀移动通信有限公司 一种移动终端的休眠方法、装置及移动终端
US20200073454A1 (en) * 2018-09-03 2020-03-05 Tatsuya Saito Electronic device, method for providing information, and non-transitory computer-readable storage medium
CN113645341A (zh) * 2021-07-16 2021-11-12 荣耀终端有限公司 电源键误触检测方法及电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117440088A (zh) * 2023-12-20 2024-01-23 荣耀终端有限公司 通话方法及相关设备
CN117440088B (zh) * 2023-12-20 2024-05-14 荣耀终端有限公司 通话方法及相关设备

Also Published As

Publication number Publication date
CN113645341B (zh) 2022-12-27
CN113645341A (zh) 2021-11-12

Similar Documents

Publication Publication Date Title
WO2023284415A1 (zh) 电源键误触检测方法及电子设备
CN114467297B (zh) 一种应用于电子设备的视频通话的显示方法及相关装置
EP4209874A1 (en) Application startup method and apparatus, and electronic device
US20220358089A1 (en) Learning-Based Keyword Search Method and Electronic Device
CN111913750B (zh) 一种应用程序管理方法、装置及设备
CN112740152B (zh) 手写笔检测方法、系统及相关装置
CN113805797B (zh) 网络资源的处理方法、电子设备及计算机可读存储介质
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
US20240237115A1 (en) Message Push Method and Apparatus
WO2022053006A1 (zh) 一种接近光传感器控制方法及相关设备
WO2022166435A1 (zh) 分享图片的方法和电子设备
CN115904297A (zh) 屏幕显示检测方法、电子设备及存储介质
CN116684520B (zh) 一种关机方法、电子设备、存储介质及芯片
WO2023020048A1 (zh) 外屏显示方法及电子设备
CN111475363B (zh) 卡死识别方法及电子设备
CN113805771B (zh) 一种通知提醒方法、终端设备及计算机可读存储介质
CN113050864B (zh) 一种截屏方法及相关设备
CN114690924A (zh) 防误触锁定方法、终端设备及计算机可读存储介质
CN111787157A (zh) 移动终端及其操作响应方法
CN112286596A (zh) 消息显示方法及电子设备
CN116662150B (zh) 应用启动耗时检测方法及相关装置
CN114244951B (zh) 应用程序打开页面的方法及其介质和电子设备
CN116916093B (zh) 识别卡顿的方法、电子设备及存储介质
CN117130701B (zh) 一种应用程序的图标显示方法及电子设备
CN116723384B (zh) 进程的控制方法、电子设备及可读存储介质

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: 22841055

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: 22841055

Country of ref document: EP

Kind code of ref document: A1