CN109905543B - Method and device for preventing misoperation of terminal - Google Patents

Method and device for preventing misoperation of terminal Download PDF

Info

Publication number
CN109905543B
CN109905543B CN201711310839.5A CN201711310839A CN109905543B CN 109905543 B CN109905543 B CN 109905543B CN 201711310839 A CN201711310839 A CN 201711310839A CN 109905543 B CN109905543 B CN 109905543B
Authority
CN
China
Prior art keywords
ambient light
light sensor
terminal
preset
rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711310839.5A
Other languages
Chinese (zh)
Other versions
CN109905543A (en
Inventor
孙伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711310839.5A priority Critical patent/CN109905543B/en
Publication of CN109905543A publication Critical patent/CN109905543A/en
Application granted granted Critical
Publication of CN109905543B publication Critical patent/CN109905543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a method and a device for preventing misoperation of a terminal, wherein the method comprises the following steps: when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness; when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake; and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness. This technical scheme can prevent that the terminal from appearing the maloperation because the ambient light sensor mistake is sheltered from, avoids appearing the condition that the screen darkened when the actual luminance of ambient light is bright.

Description

Method and device for preventing misoperation of terminal
Technical Field
The disclosure relates to the technical field of terminals, in particular to a method and a device for preventing misoperation of a terminal.
Background
The mobile phone is provided with an ambient light sensor at present, when the ambient light sensor detects that ambient brightness is high, the mobile phone can automatically adjust the display brightness of the screen to be high brightness, and when the ambient light sensor detects that the ambient brightness is dark, the mobile phone can automatically adjust the display brightness of the screen to be low brightness, so that the mobile phone screen can display soft pictures.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for preventing misoperation of a terminal. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for preventing an incorrect operation of a terminal, including:
when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness;
when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake;
and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness.
In one embodiment, the detecting whether the ambient light sensor is mistakenly occluded includes:
and when the terminal is detected to be in a transverse screen state and the terminal continuously receives touch screen operation, the environment light sensor is detected to be shielded by mistake.
In one embodiment, the detecting whether the ambient light sensor is mistakenly occluded includes:
and when the terminal is detected to be in a cross screen state and the application program currently running by the terminal is a preset application program, detecting that the ambient light sensor is mistakenly shielded.
In one embodiment, the detecting whether the ambient light sensor is mistakenly occluded includes:
monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period;
when the change condition meets a preset condition, detecting that the ambient light sensor is shielded by mistake;
the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, the preset condition is that the rate of change conditions including increasing and decreasing and increasing exceeds a second preset rate, and the rate of decrease exceeds a third preset rate.
In one embodiment, the detecting whether the ambient light sensor is mistakenly occluded includes:
and in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, detecting that the rotation angle of the terminal exceeds a preset angle, and then detecting that the ambient light sensor is shielded by mistake.
In one embodiment, the ambient light sensor is arranged in the middle area of the operation end on the side of the terminal screen.
According to a second aspect of the embodiments of the present disclosure, there is provided an anti-misoperation device of a terminal, including:
the starting module is used for starting the ambient light sensor to detect the ambient light brightness when the screen is in a bright screen state;
the detection module is used for detecting whether the ambient light sensor is shielded by mistake when the decreasing rate of the detected ambient light brightness is greater than a first preset rate;
and the control module is used for controlling the display brightness of the screen to be kept at the current brightness when the situation that the ambient light sensor is mistakenly shielded is detected.
In one embodiment, the detection module comprises:
the first detection submodule is used for detecting that the ambient light sensor is mistakenly shielded when the terminal is detected to be in a transverse screen state and the terminal continuously receives touch screen operation.
In one embodiment, the detection module comprises:
and the second detection submodule is used for detecting that the ambient light sensor is mistakenly shielded when the terminal is detected to be in the transverse screen state and the application program currently running by the terminal is a preset application program.
In one embodiment, the detection module comprises:
the monitoring submodule is used for monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period;
the third detection submodule is used for detecting that the ambient light sensor is shielded by mistake when the change condition meets a preset condition;
the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, the preset condition is that the rate of change conditions including increasing and decreasing and increasing exceeds a second preset rate, and the rate of decrease exceeds a third preset rate.
In one embodiment, the detection module comprises:
and the fourth detection submodule is used for detecting that the rotation angle of the terminal exceeds a preset angle in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, and then detecting that the ambient light sensor is shielded by mistake.
In one embodiment, the ambient light sensor is arranged in the middle area of the operation end on the side of the terminal screen.
According to a third aspect of the embodiments of the present disclosure, there is provided an anti-misoperation device of a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness;
when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake;
and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps in the above-mentioned method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: this embodiment can be when the degressive rate of the ambient light brightness that detects through ambient light sensor is greater than predetermined speed, further detect this ambient light sensor and whether sheltered from by the mistake, if detect ambient light sensor is sheltered from by the mistake, the display luminance of control screen keeps for current luminance, prevents that the terminal from appearing the maloperation because ambient light sensor mistake shelters from, avoids appearing the condition that the screen darkened when the actual luminance of ambient light is brighter.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an anti-malfunction method of a terminal according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an anti-malfunction method of a terminal according to an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating an anti-malfunction method of a terminal according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating an anti-malfunction method of a terminal according to an exemplary embodiment.
Fig. 6 is a flowchart illustrating a method of preventing an erroneous operation of a terminal according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating an apparatus for preventing an erroneous operation of a terminal according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating an apparatus for preventing an erroneous operation of a terminal according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating an apparatus for preventing an erroneous operation of a terminal according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating an apparatus for preventing an erroneous operation of a terminal according to an exemplary embodiment.
Fig. 11 is a block diagram illustrating an apparatus for preventing an erroneous operation of a terminal according to an exemplary embodiment.
Fig. 12 is a block diagram illustrating an apparatus for preventing an erroneous operation of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
At present, the ambient light sensors are usually arranged at the upper edge and the lower edge of a mobile phone screen, and when a user uses the mobile phone, if the user plays a game on a horizontal screen or watches videos and other scenes, the user can hold the upper edge and the lower edge of the mobile phone display screen by hands, so that the ambient light sensors on the mobile phone are easily shielded, the ambient light sensors detect wrong ambient light, the screen becomes dark, and the use of the user is influenced.
In order to solve the above problem, in this embodiment, when the decreasing rate of the ambient light brightness detected by the ambient light sensor is greater than the preset rate, it is further detected whether the ambient light sensor is mistakenly shielded, and if it is detected that the ambient light sensor is mistakenly shielded, the display brightness of the screen is controlled to be kept at the current brightness, so as to prevent the terminal from being mistakenly operated due to the mistaken shielding of the ambient light sensor, and avoid the situation that the screen becomes dark when the actual brightness of the ambient light is brighter.
Fig. 1 is a flowchart illustrating an anti-misoperation method of a terminal according to an exemplary embodiment, where as shown in fig. 1, the anti-misoperation method of the terminal is used in a device such as a terminal, and includes the following steps 101 and 103:
in step 101, when the screen is in a bright screen state, the ambient light sensor is started to detect the ambient light brightness.
In step 102, when the decreasing rate of the detected ambient light brightness is greater than a preset rate, whether the ambient light sensor is mistakenly shielded is detected.
In step 103, when it is detected that the ambient light sensor is mistakenly shielded, the display brightness of the screen is controlled to be kept at the current brightness.
Here, the ambient light sensor is a sensor capable of detecting the light brightness in the environment and converting the processing thereof into a corresponding output electrical signal. The terminal can start the ambient light sensor to detect the ambient light brightness when the screen is in a bright screen state, and then the display brightness of the screen is adjusted according to the ambient light brightness.
Here, if the decreasing rate of the ambient light brightness detected by the ambient light sensor is greater than the preset rate, that is, the ambient light sensor detects that the ambient light brightness suddenly decreases, at this time, the actual ambient light brightness at which the terminal is located suddenly decreases, or the location of the ambient light sensor on the terminal is inadvertently and mistakenly shielded by the user in the process of using the terminal, at this time, the terminal may further detect whether the ambient light sensor is mistakenly shielded, if it is detected that the ambient light sensor is mistakenly shielded, the terminal may not become dark because the ambient light brightness detected by the ambient light sensor decreases, but the display brightness of the screen is controlled to be maintained at the current brightness.
This embodiment can be when the degressive rate of the ambient light brightness that detects through ambient light sensor is greater than predetermined speed, further detect this ambient light sensor and whether sheltered from by the mistake, if detect ambient light sensor is sheltered from by the mistake, the display luminance of control screen keeps for current luminance, prevents that the terminal from appearing the maloperation because ambient light sensor mistake shelters from, avoids appearing the condition that the screen darkened when the actual luminance of ambient light is brighter.
In a possible implementation manner, fig. 2 is a flowchart illustrating an anti-misoperation method of a terminal according to an exemplary embodiment, and as shown in fig. 2, step 102 in the anti-misoperation method of the terminal may be implemented as the following step 1021.
In step 1021, when it is detected that the terminal is in the landscape screen state and the terminal continuously receives the touch screen operation, it is detected that the ambient light sensor is mistakenly shielded.
Here, a gyroscope sensor and an acceleration sensor are arranged in the terminal, and the arrangement state of the terminal can be detected through the gyroscope sensor and the acceleration sensor, for example, whether the terminal is placed in a horizontal screen or a vertical screen is detected.
Here, fig. 3 is a schematic structural diagram of a terminal according to an exemplary embodiment, and in a general case, the ambient light sensors are disposed at upper and lower ends of a screen of the terminal, for example. As shown in fig. 3, the ambient light sensor 301 is generally located at the upper end of the screen of the terminal 30, and when a user uses the terminal, if the terminal is placed vertically, the user can hold the lower end of the terminal, and cannot mistakenly shield the ambient light sensor, and the ambient light brightness detected by the ambient light sensor is basically the actual ambient light brightness; if the terminal is placed transversely, a user may hold the two ends of the terminal screen by hands, and the ambient light sensor may be shielded by mistake.
Here, the terminal is greater than the predetermined rate at the diminishing rate of the ambient light brightness that ambient light sensor detected, when detecting that ambient light brightness suddenly becomes small promptly, detect first through gyroscope sensor and acceleration sensor whether terminal is horizontal screen state or vertical screen state, if the terminal is in when horizontal screen state, then probably the user has sheltered from this ambient light sensor by mistake, at this moment, if detect the terminal continuously receives touch screen operation, then indicate that the user is in the handheld terminal of horizontal screen state and constantly inputs touch screen operation to the terminal, this just can confirm that the user probably is when terminal horizontal screen state, and the handheld terminal of both hands and inputs touch screen operation to the terminal and lead to ambient light sensor by mistake sheltering from, so the terminal can detect the terminal is horizontal screen state and when the terminal continuously receives touch screen operation, detect ambient light sensor is sheltered from by mistake.
The example, when the user played the recreation at user's terminal, the terminal can be in the cross screen state, and the user both hands held the terminal this moment to constantly input touch screen operation to the terminal and control the recreation, at this moment, the terminal can be when the diminishing rate of the ambient light brightness that detects is greater than predetermined speed, further detect the terminal for the cross screen state just the terminal continuously receives touch screen operation, confirms that this ambient light sensor is sheltered from by the mistake, and at this moment, the terminal can not become dark because ambient light brightness diminishes because ambient light sensor detects, but the display brightness of control screen keeps as current luminance, guarantees user's gaming experience.
According to the embodiment, when the terminal is detected to be in the transverse screen state and continuously receives the touch screen operation, the ambient light sensor is detected to be mistakenly shielded, and whether the ambient light sensor is mistakenly shielded or not is determined according to the habit that the user continuously inputs the touch screen operation to the terminal to mistakenly shield the ambient light sensor easily when the user holds the terminal in the transverse screen state of the terminal, and the detection mode is simple and accurate.
In a possible implementation manner, fig. 4 is a flowchart illustrating an anti-misoperation method of a terminal according to an exemplary embodiment, and as shown in fig. 4, step 102 in the anti-misoperation method of the terminal may be implemented as the following step 1022.
In step 1022, when it is detected that the terminal is in the landscape state and the application currently running by the terminal is a preset application, it is detected that the ambient light sensor is mistakenly shielded.
Here, when the terminal detects that the decreasing rate of the ambient light brightness detected by the ambient light sensor is greater than a preset rate, that is, when the ambient light brightness is suddenly reduced, it is detected that the terminal is in a horizontal screen state or a vertical screen state through the gyroscope sensor and the acceleration sensor, if the terminal is in the horizontal screen state, it may be that a user mistakenly shields the ambient light sensor, at this time, it may be further detected whether an application currently running by the terminal is a preset application, and if the application currently running by the terminal is detected as the preset application, the terminal may detect that the ambient light sensor is mistakenly shielded.
It should be noted that the preset application may be an application that is analyzed by big data and runs in a landscape state, and causes the probability that the hand of the user mistakenly shields the ambient light sensor to exceed a preset threshold, for example, 90%, and the preset application may be a game application, a video application, or the like.
The embodiment can detect that the ambient light sensor is mistakenly shielded when the terminal is in the horizontal screen state and the application program currently running on the terminal is the preset application program, and determine whether the ambient light sensor is mistakenly shielded according to the habit that the user mistakenly shields the ambient light sensor for the preset application program easily when the application program running in the horizontal screen state on the terminal, and the detection mode is simple and accurate.
In a possible implementation manner, fig. 5 is a flowchart illustrating an anti-misoperation method of a terminal according to an exemplary embodiment, and as shown in fig. 5, step 102 in the anti-misoperation method of the terminal may be implemented as the following steps 1023 and 1024.
In step 1023, the ambient light sensor is used to monitor the change of the ambient light brightness detected in a preset time period.
In step 1024, when the variation satisfies a preset condition, it is detected that the ambient light sensor is mistakenly shielded.
The starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, and the preset condition is that the change condition comprises increasing and decreasing.
Here, the terminal starts monitoring the change of the ambient light brightness within a preset time period when the decreasing rate of the ambient light brightness detected by the ambient light sensor is greater than a preset rate, that is, when the ambient light brightness is detected to suddenly decrease, and the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, that is, when the terminal starts monitoring the change of the ambient light brightness within the preset time period after the starting time when the ambient light brightness is detected to suddenly decrease.
Here, when the environment becomes dark under normal conditions, the ambient light level detected by the ambient light sensor is kept small all the time after the ambient light level becomes small, and when the user keeps shielding the ambient sensor and leaves the ambient sensor again, when the ambient light sensor is mistakenly shielded, the ambient light sensor detects that the ambient light brightness is reduced and the rate of reduction exceeds a third preset rate, when the user's hand leaves the ambient light sensor which is blocked by mistake, the ambient light sensor will detect the sudden increase of the ambient light brightness and the rate of the increase exceeds the second preset rate, thus, when the ambient light sensor monitors that the change condition of the ambient light brightness in the preset time period meets the change conditions including the conditions that the speed of the change condition is increased and decreased, the increasing speed exceeds the second preset speed, and the decreasing speed exceeds the third preset speed, it is determined that the rate of decrease in the previously detected ambient light level is greater than the preset rate because the ambient light sensor is blocked.
The example, when a user uses a terminal, the user continuously shields an ambient light sensor by a hand to input touch screen operation to the terminal, when the user shields the ambient light sensor for the first time, the terminal detects that the decreasing rate of the ambient light brightness is greater than a first preset rate, the terminal further monitors the change condition of the ambient light brightness detected by the ambient light sensor within 1 minute later, at the moment, the terminal monitors that the ambient light brightness is suddenly increased for a moment and suddenly decreased for a moment, at the moment, the terminal detects that the ambient light sensor is shielded by a mistake, the display brightness of the control screen is kept to be the current brightness, the change of the display brightness of the screen is not controlled by the terminal according to the detected change of the ambient light brightness, and misoperation of the terminal is prevented.
This embodiment can detect when monitoring the change condition of the environmental light brightness that the environmental light sensor detected satisfies the preset condition in the preset time quantum the environmental light sensor is sheltered from by the mistake, confirms that the environmental light brightness that the environmental light sensor detected diminishes for a moment and is sheltered from by the mistake when becoming great for a moment, and the detection mode is simple accurate.
In a possible implementation manner, fig. 6 is a flowchart illustrating an anti-misoperation method of a terminal according to an exemplary embodiment, and as shown in fig. 6, step 102 in the anti-misoperation method of the terminal may be implemented as the following step 1025.
In step 1025, in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, if the rotation angle of the terminal is detected to exceed a preset angle, the ambient light sensor is detected to be shielded by mistake.
Here, when a user uses the terminal, when the terminal is placed at an angle, more light enters the ambient light sensor, the ambient light brightness detected by the ambient light sensor is larger, but after the terminal is rotated by an angle, the light entering the ambient light sensor is less, at this time, the rate of decrease of the ambient light brightness detected by the ambient light sensor is greater than a first preset rate, but in this case, the actual ambient light intensity in the environment where the terminal is located is still brighter, if the terminal decreases the screen brightness according to the detected ambient light brightness, the user cannot see the terminal screen clearly, so when the terminal detects that the angle of rotation of the terminal exceeds the preset angle within a time period in which the rate of decrease of the ambient light brightness detected by the terminal is greater than the preset rate, it indicates that the ambient light sensor is that the ambient light brightness detected by the ambient light sensor suddenly decreases due to the rotation of the terminal, at this time, the terminal can control the display brightness of the screen to be kept at the current brightness by determining that the ambient light sensor is mistakenly shielded.
In the embodiment, in a time period when the decreasing rate of the detected ambient light brightness is greater than the preset rate, the rotation angle of the terminal is detected to exceed the preset angle, and then the ambient light sensor is detected to be shielded by mistake, so that whether the ambient light sensor is shielded by mistake is determined according to whether the detected ambient light brightness is suddenly reduced due to the rotation of the terminal, and the detection mode is simple and accurate.
In one possible embodiment, as shown in fig. 3, the ambient light sensor 301 is disposed in the middle area of the operation end on the side of the screen of the terminal 30.
Here, when the ambient light sensor 301 is disposed in the middle area of the operation end on the side of the screen of the terminal 30, the user's hand is less likely to shield the ambient light sensor during the use of the terminal, and the ambient light sensor is effectively prevented from being shielded by mistake.
This embodiment can be with ambient light sensor setting in the middle zone of the operation end of the screen place side at terminal can effectively avoid ambient light sensor to be sheltered from by the mistake.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 7 is a block diagram illustrating an anti-misoperation apparatus of a terminal, which may be implemented as part or all of an electronic device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 7, the anti-misoperation device of the terminal includes: a starting module 701, a detection module 702 and a control module 703; wherein:
the starting module 701 is used for starting the ambient light sensor to detect the ambient light brightness when the screen is in a bright screen state;
the detecting module 702 is configured to detect whether the ambient light sensor is blocked by mistake when a decreasing rate of the detected ambient light brightness is greater than a first preset rate;
the control module 703 is configured to control the display brightness of the screen to be kept at the current brightness when it is detected that the ambient light sensor is mistakenly shielded.
As a possible embodiment, fig. 8 is a block diagram illustrating an anti-misoperation device of a terminal according to an exemplary embodiment, and as shown in fig. 8, the anti-misoperation device of the above-mentioned disclosed terminal may further configure the detection module 702 to include a first detection sub-module 7021, where:
the first detection submodule 7021 is configured to detect that the ambient light sensor is mistakenly shielded when it is detected that the terminal is in a landscape state and the terminal continuously receives a touch screen operation.
As a possible embodiment, fig. 9 is a block diagram illustrating an anti-misoperation device of a terminal according to an exemplary embodiment, and as shown in fig. 9, the anti-misoperation device of the above-mentioned disclosed terminal may further configure the detection module 702 to include a second detection sub-module 7022, where:
and the second detection submodule 7022 is configured to detect that the ambient light sensor is mistakenly shielded when it is detected that the terminal is in a landscape state and the application program currently running by the terminal is a preset application program.
As a possible embodiment, fig. 10 is a block diagram illustrating an anti-misoperation device of a terminal according to an exemplary embodiment, and as shown in fig. 10, the anti-misoperation device of the above-mentioned disclosed terminal may further configure the detection module 702 to include a monitoring sub-module 7023 and a third detection sub-module 7024, where:
the monitoring submodule 7023 is configured to monitor a change of the ambient light brightness detected by the ambient light sensor within a preset time period;
the third detection submodule 7024 is configured to detect that the ambient light sensor is mistakenly shielded when the change condition satisfies a preset condition;
the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, the preset condition is that the rate of change conditions including increasing and decreasing and increasing exceeds a second preset rate, and the rate of decrease exceeds a third preset rate.
As a possible embodiment, fig. 11 is a block diagram illustrating an anti-misoperation device of a terminal according to an exemplary embodiment, and as shown in fig. 11, the anti-misoperation device of the above-mentioned disclosed terminal may further configure the detection module 702 to include a fourth detection sub-module 7025, where:
the fourth detection submodule 7025 is configured to detect that the ambient light sensor is blocked by mistake when the rotation angle of the terminal exceeds the preset angle in a time period in which the decreasing rate of the detected ambient light brightness is greater than a preset rate.
As a possible embodiment, in the anti-misoperation device of the terminal disclosed above, the ambient light sensor is disposed in a middle area of the operation end on the side of the terminal screen.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 12 is a block diagram illustrating an anti-misoperation apparatus of a terminal according to an exemplary embodiment, the apparatus being suitable for a terminal device. For example, the apparatus 1200 may be a mobile phone, a game console, a computer, a tablet device, a personal digital assistant, and the like.
The apparatus 1200 may include one or more of the following components: processing component 1201, memory 1202, power component 1203, multimedia component 1204, audio component 1205, input/output (I/O) interface 1206, sensor component 1207, and communications component 1208.
The processing component 1201 generally controls the overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1201 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1201 can include one or more modules that facilitate interaction between the processing component 1201 and other components. For example, the processing component 1201 may include a multimedia module to facilitate interaction between the multimedia component 1204 and the processing component 1201.
The memory 1202 is configured to store various types of data to support operation at the apparatus 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1202 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1203 provides power to the various components of the device 1200. The power components 1203 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1200.
The multimedia component 1204 includes a screen providing an output interface between the device 1200 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1204 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1200 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1205 is configured to output and/or input audio signals. For example, the audio components 1205 include a Microphone (MIC) configured to receive external audio signals when the apparatus 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1202 or transmitted via the communication component 1208. In some embodiments, the audio component 1205 also includes a speaker for outputting audio signals.
The I/O interface 1206 provides an interface between the processing component 1201 and a peripheral interface module, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1207 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, sensor assembly 1207 may detect an open/closed state of apparatus 1200, a relative positioning of components, such as a display and keypad of apparatus 1200, a change in position of apparatus 1200 or a component of apparatus 1200, the presence or absence of user contact with apparatus 1200, an orientation or acceleration/deceleration of apparatus 1200, and a change in temperature of apparatus 1200. The sensor assembly 1207 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1207 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1207 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1208 is configured to facilitate communications between the apparatus 1200 and other devices in a wired or wireless manner. The apparatus 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1208 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1208 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1202 comprising instructions, executable by the processor 1220 of the apparatus 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present embodiment provides a computer readable storage medium, the instructions in which when executed by a processor of the apparatus 1200 implement the steps of:
when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness;
when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake;
and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness.
The instructions in the storage medium when executed by the processor may further implement the steps of:
detecting whether the ambient light sensor is blocked by mistake includes:
and when the terminal is detected to be in a transverse screen state and the terminal continuously receives touch screen operation, the environment light sensor is detected to be shielded by mistake.
The instructions in the storage medium when executed by the processor may further implement the steps of:
detecting whether the ambient light sensor is blocked by mistake includes:
and when the terminal is detected to be in a cross screen state and the application program currently running by the terminal is a preset application program, detecting that the ambient light sensor is mistakenly shielded.
The instructions in the storage medium when executed by the processor may further implement the steps of:
detecting whether the ambient light sensor is blocked by mistake includes:
monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period;
when the change condition meets a preset condition, detecting that the ambient light sensor is shielded by mistake;
the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, the preset condition is that the rate of change conditions including increasing and decreasing and increasing exceeds a second preset rate, and the rate of decrease exceeds a third preset rate.
The instructions in the storage medium when executed by the processor may further implement the steps of:
detecting whether the ambient light sensor is blocked by mistake includes:
and in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, detecting that the rotation angle of the terminal exceeds a preset angle, and then detecting that the ambient light sensor is shielded by mistake.
The instructions in the storage medium when executed by the processor may further implement the steps of:
the ambient light sensor is arranged in the middle area of the operation end on the side where the terminal screen is located.
This embodiment also provides a device for preventing misoperation at terminal, includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness;
when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake;
and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness.
The processor may be further configured to:
detecting whether the ambient light sensor is blocked by mistake includes:
and when the terminal is detected to be in a transverse screen state and the terminal continuously receives touch screen operation, the environment light sensor is detected to be shielded by mistake.
The processor may be further configured to:
detecting whether the ambient light sensor is blocked by mistake includes:
and when the terminal is detected to be in a cross screen state and the application program currently running by the terminal is a preset application program, detecting that the ambient light sensor is mistakenly shielded.
The processor may be further configured to:
detecting whether the ambient light sensor is blocked by mistake includes:
monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period;
when the change condition meets a preset condition, detecting that the ambient light sensor is shielded by mistake;
the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than the preset rate, the preset condition is that the rate of change conditions including increasing and decreasing and increasing exceeds a second preset rate, and the rate of decrease exceeds a third preset rate.
The processor may be further configured to:
detecting whether the ambient light sensor is blocked by mistake includes:
and in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, detecting that the rotation angle of the terminal exceeds a preset angle, and then detecting that the ambient light sensor is shielded by mistake.
The processor may be further configured to:
the ambient light sensor is arranged in the middle area of the operation end on the side where the terminal screen is located.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An anti-misoperation method of a terminal is characterized by comprising the following steps:
when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness;
when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake; wherein, detect whether ambient light sensor is sheltered from by the mistake, include: monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period; when the change condition meets a preset condition, detecting that the ambient light sensor is shielded by mistake; the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than a preset rate, the preset condition is that the change condition comprises that the rate of the change is larger and smaller, the larger rate exceeds a second preset rate, and the smaller rate exceeds a third preset rate;
and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness.
2. The method of claim 1, wherein said detecting whether the ambient light sensor is misoccluded comprises:
and when the terminal is detected to be in a transverse screen state and the terminal continuously receives touch screen operation, the environment light sensor is detected to be shielded by mistake.
3. The method of claim 1, wherein said detecting whether the ambient light sensor is misoccluded comprises:
and when the terminal is detected to be in a cross screen state and the application program currently running by the terminal is a preset application program, detecting that the ambient light sensor is mistakenly shielded.
4. The method of claim 1, wherein said detecting whether the ambient light sensor is misoccluded comprises:
and in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, detecting that the rotation angle of the terminal exceeds a preset angle, and then detecting that the ambient light sensor is shielded by mistake.
5. The method according to claim 1, wherein the ambient light sensor is disposed in a middle region of the operation end on the side of the terminal screen.
6. An anti-misoperation device of a terminal, comprising:
the starting module is used for starting the ambient light sensor to detect the ambient light brightness when the screen is in a bright screen state;
the detection module is used for detecting whether the ambient light sensor is shielded by mistake when the decreasing rate of the detected ambient light brightness is greater than a first preset rate; the detection module comprises: the monitoring submodule is used for monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period; the third detection submodule is used for detecting that the ambient light sensor is shielded by mistake when the change condition meets a preset condition; the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than a preset rate, the preset condition is that the change condition comprises that the rate of the change is larger and smaller, the larger rate exceeds a second preset rate, and the smaller rate exceeds a third preset rate;
and the control module is used for controlling the display brightness of the screen to be kept at the current brightness when the situation that the ambient light sensor is mistakenly shielded is detected.
7. The apparatus of claim 6, wherein the detection module comprises:
the first detection submodule is used for detecting that the ambient light sensor is mistakenly shielded when the terminal is detected to be in a transverse screen state and the terminal continuously receives touch screen operation.
8. The apparatus of claim 6, wherein the detection module comprises:
and the second detection submodule is used for detecting that the ambient light sensor is mistakenly shielded when the terminal is detected to be in the transverse screen state and the application program currently running by the terminal is a preset application program.
9. The apparatus of claim 6, wherein the detection module comprises:
and the fourth detection submodule is used for detecting that the rotation angle of the terminal exceeds a preset angle in a time period when the decreasing rate of the detected ambient light brightness is greater than a preset rate, and then detecting that the ambient light sensor is shielded by mistake.
10. The apparatus according to claim 6, wherein the ambient light sensor is disposed in a middle region of the operation end on the side of the terminal screen.
11. An anti-misoperation device of a terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the screen is in a bright screen state, starting an ambient light sensor to detect the ambient light brightness;
when the decreasing rate of the detected ambient light brightness is greater than a first preset rate, detecting whether the ambient light sensor is shielded by mistake; wherein, detect whether ambient light sensor is sheltered from by the mistake, include: monitoring the change condition of the ambient light brightness detected by the ambient light sensor within a preset time period; when the change condition meets a preset condition, detecting that the ambient light sensor is shielded by mistake; the starting time of the preset time period is the time when the decreasing rate of the detected ambient light brightness is greater than a preset rate, the preset condition is that the change condition comprises that the rate of the change is larger and smaller, the larger rate exceeds a second preset rate, and the smaller rate exceeds a third preset rate;
and when the ambient light sensor is detected to be shielded by mistake, controlling the display brightness of the screen to be kept at the current brightness.
12. A computer readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the method of any one of claims 1 to 5 below.
CN201711310839.5A 2017-12-11 2017-12-11 Method and device for preventing misoperation of terminal Active CN109905543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711310839.5A CN109905543B (en) 2017-12-11 2017-12-11 Method and device for preventing misoperation of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711310839.5A CN109905543B (en) 2017-12-11 2017-12-11 Method and device for preventing misoperation of terminal

Publications (2)

Publication Number Publication Date
CN109905543A CN109905543A (en) 2019-06-18
CN109905543B true CN109905543B (en) 2021-05-18

Family

ID=66942658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711310839.5A Active CN109905543B (en) 2017-12-11 2017-12-11 Method and device for preventing misoperation of terminal

Country Status (1)

Country Link
CN (1) CN109905543B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111243554B (en) * 2020-03-09 2021-08-31 北京小米移动软件有限公司 Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN113920963A (en) * 2021-09-18 2022-01-11 荣耀终端有限公司 Screen brightness adjusting method, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179271A (en) * 2013-02-28 2013-06-26 深圳市中兴移动通信有限公司 Method and device for preventing misoperation of brightness adjustment to mobile terminal screen
CN103310719A (en) * 2012-03-13 2013-09-18 原相科技股份有限公司 Automatic detection method and portable electronic device using same
CN106652922A (en) * 2017-01-04 2017-05-10 珠海市魅族科技有限公司 Method and system for controlling screen luminance

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150057863A (en) * 2013-11-20 2015-05-28 삼성전자주식회사 Portable apparatus and method for controlling a screen brightness

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310719A (en) * 2012-03-13 2013-09-18 原相科技股份有限公司 Automatic detection method and portable electronic device using same
CN103179271A (en) * 2013-02-28 2013-06-26 深圳市中兴移动通信有限公司 Method and device for preventing misoperation of brightness adjustment to mobile terminal screen
CN106652922A (en) * 2017-01-04 2017-05-10 珠海市魅族科技有限公司 Method and system for controlling screen luminance

Also Published As

Publication number Publication date
CN109905543A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
CN110796988B (en) Backlight adjusting method and device
US20170344192A1 (en) Method and device for playing live videos
CN108040360B (en) Method and device for controlling screen display
CN105159640B (en) Display interface rotating method and device and mobile terminal
US20170178289A1 (en) Method, device and computer-readable storage medium for video display
CN109557999B (en) Bright screen control method and device and storage medium
US9691332B2 (en) Method and device for adjusting backlight brightness
CN106357934B (en) Screen locking control method and device
US20190235745A1 (en) Method and device for displaying descriptive information
US10318069B2 (en) Method for controlling state of touch screen, and electronic device and medium for implementing the same
US11011124B2 (en) Method and device for adjusting current of backlight, and storage medium
CN106547462B (en) Photographing control method and device and mobile terminal
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN109905543B (en) Method and device for preventing misoperation of terminal
CN109922203B (en) Terminal, screen off method and device
CN106775246B (en) Screen brightness adjusting method and device
CN107528098B (en) Charging method and device
CN112689047B (en) Display control method and device and electronic equipment
CN107621990B (en) Control method and device of terminal key and terminal
CN112905027A (en) Timing method and device, mobile terminal and storage medium
CN115129203A (en) Interface display method and device of application program
CN111625212A (en) Method and device for controlling screen-off of display screen of terminal equipment and storage medium
CN114738977B (en) Air conditioner flux weakening angle control method, device and storage medium
CN112445405B (en) Method and device for detecting type of trigger operation, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant