U.S. patent application number 16/519642 was filed with the patent office on 2020-01-30 for method, apparatus, electronic device and storage medium for controlling brightness of screen.
The applicant listed for this patent is Beijing Xiaomi Mobile Software Co., Ltd.. Invention is credited to Ju Tang.
Application Number | 20200035201 16/519642 |
Document ID | / |
Family ID | 64418775 |
Filed Date | 2020-01-30 |
![](/patent/app/20200035201/US20200035201A1-20200130-D00000.png)
![](/patent/app/20200035201/US20200035201A1-20200130-D00001.png)
![](/patent/app/20200035201/US20200035201A1-20200130-D00002.png)
![](/patent/app/20200035201/US20200035201A1-20200130-D00003.png)
![](/patent/app/20200035201/US20200035201A1-20200130-D00004.png)
![](/patent/app/20200035201/US20200035201A1-20200130-D00005.png)
United States Patent
Application |
20200035201 |
Kind Code |
A1 |
Tang; Ju |
January 30, 2020 |
METHOD, APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM FOR
CONTROLLING BRIGHTNESS OF SCREEN
Abstract
A method for controlling a brightness of a screen, includes:
detecting whether a photosensitive sensor is blocked when a change
in light intensity is detected; and maintaining a current
brightness of the screen when it is detected that the
photosensitive sensor is blocked.
Inventors: |
Tang; Ju; (Beijing,
CN) |
|
Applicant: |
Name |
City |
State |
Country |
Type |
Beijing Xiaomi Mobile Software Co., Ltd. |
Beijing |
|
CN |
|
|
Family ID: |
64418775 |
Appl. No.: |
16/519642 |
Filed: |
July 23, 2019 |
Current U.S.
Class: |
1/1 |
Current CPC
Class: |
G06Q 20/32 20130101;
G09G 2360/144 20130101; G09G 2320/0626 20130101; G09G 5/10
20130101; G06F 3/041661 20190501; G06K 9/00912 20130101; G01C 9/00
20130101; G06F 3/04146 20190501; G06K 9/0004 20130101; G06F
2203/04105 20130101; G09G 2358/00 20130101; G09G 2320/0606
20130101; G06F 21/32 20130101; G06K 9/00087 20130101; G06Q 20/40145
20130101; G09G 2354/00 20130101; G06K 9/036 20130101; G06F 3/041
20130101; G06K 9/00013 20130101; G06F 3/0488 20130101; G01J 1/4204
20130101 |
International
Class: |
G09G 5/10 20060101
G09G005/10; G06F 3/041 20060101 G06F003/041; G01J 1/42 20060101
G01J001/42; G01C 9/00 20060101 G01C009/00 |
Foreign Application Data
Date |
Code |
Application Number |
Jul 27, 2018 |
CN |
201810847098.2 |
Claims
1. A method for controlling a brightness of a screen, comprising:
detecting whether a photosensitive sensor is blocked when a change
in light intensity is detected; and maintaining a current
brightness of the screen when it is detected that the
photosensitive sensor is blocked.
2. The method according to claim 1, wherein the detecting whether
the photosensitive sensor is blocked comprises: detecting whether
the screen is in a landscape state; detecting whether a touch
operation is performed on a first area and a second area of the
screen, wherein the first area is adjacent to the photosensitive
sensor, and the second area is an area other than the first area on
the screen; and when the screen is in the landscape state and the
touch operation is performed on the first area and the second area,
determining that the photosensitive sensor is blocked.
3. The method according to claim 2, wherein before determining that
the photosensitive sensor is blocked, the method further comprises:
detecting report rates of the touch operation for the first area
and the second area; comparing the report rate of the first area
with a preset first report threshold, and comparing the report rate
of the second area with a preset second report threshold; and
determining whether the photosensitive sensor is blocked based on
comparison results.
4. The method according to claim 2, wherein before determining that
the photosensitive sensor is blocked, the method further comprises:
detecting, by a distance sensor, whether an object exists within a
preset distance threshold, wherein the distance sensor is disposed
adjacent to the photosensitive sensor; and determining whether the
photosensitive sensor is blocked according to a detection
result.
5. The method according to claim 2, wherein the detecting whether
the photosensitive sensor is blocked further comprises: when the
screen is in the landscape state and there is no touch operation on
the first area and the second area, detecting, by a distance
sensor, whether there is an object within a preset distance
threshold, wherein the distance sensor is disposed adjacent to the
photosensitive sensor; and determining whether the photosensitive
sensor is blocked according to a detection result.
6. The method according to claim 1, wherein the detecting whether
the photosensitive sensor is blocked comprises: detecting whether
the screen is in a landscape state; detecting, by a distance
sensor, whether an object exists within a preset distance
threshold, wherein the distance sensor is disposed adjacent to the
photosensitive sensor; and determining whether the photosensitive
sensor is blocked according to a detection result.
7. The method according to claim 2, wherein the landscape state of
the screen is detected by a gravity sensor.
8. The method according to claim 1, wherein when it is detected
that the photosensitive sensor is blocked, the method further
comprises: updating a first adjustment threshold to a second
adjustment threshold, wherein the second adjustment threshold is
greater than the first adjustment threshold, and the first
adjustment threshold or the second adjustment threshold is
configured to trigger an event of automatically adjusting the
brightness of the screen.
9. The method according to claim 1, further comprising: when it is
detected that the photosensitive sensor is unblocked, adjusting the
brightness of the screen according to a current light intensity
parameter.
10. The method according to claim 9, wherein before adjusting the
brightness of the screen according to the current light intensity
parameter, the method further comprises: displaying a first control
and a second control on a current interface of the screen, wherein
the first control is configured to trigger an event of
automatically adjusting the brightness of the screen, and the
second control is configured to trigger an event of canceling the
automatic adjustment of the brightness of the screen; and based on
a currently triggered control, determining whether to adjust the
brightness of the screen according to the current light intensity
parameter.
11. An electronic device, comprising: a processor; a memory for
storing instructions executable by the processor; and a screen;
wherein the processor is configured to: detect whether a
photosensitive sensor is blocked when a change in light intensity
is detected; and maintain a current brightness of the screen when
it is detected that the photosensitive sensor is blocked.
12. The electronic device according to claim 11, wherein in
detecting whether the photosensitive sensor is blocked, the
processor is further configured to: detect whether the screen is in
a landscape state; detect whether a touch operation is performed on
a first area and a second area of the screen, wherein the first
area is adjacent to the photosensitive sensor, and the second area
is an area other than the first area on the screen; and when the
screen is in the landscape state and the touch operation is
performed on the first area and the second area, determine that the
photosensitive sensor is blocked.
13. The electronic device according to claim 12, wherein before
determining that the photosensitive sensor is blocked, the
processor is further configured to: detect report rates of the
touch operation for the first area and the second area; compare the
report rate of the first area with a preset first report threshold,
and compare the report rate of the second area with a preset second
report threshold; and determine whether the photosensitive sensor
is blocked based on comparison results.
14. The electronic device according to claim 12, wherein before
determining that the photosensitive sensor is blocked, the
processor is further configured to: detect, by a distance sensor,
whether an object exists within a preset distance threshold,
wherein the distance sensor is disposed adjacent to the
photosensitive sensor; and determine whether the photosensitive
sensor is blocked according to a detection result.
15. The electronic device according to claim 12, wherein in
detecting whether the photosensitive sensor is blocked, the
processor is further configured to: when the screen is in the
landscape state and there is no touch operation on the first area
and the second area, detect, by a distance sensor, whether there is
an object within a preset distance threshold, wherein the distance
sensor is disposed adjacent to the photosensitive sensor; and
determine whether the photosensitive sensor is blocked according to
a detection result.
16. The electronic device according to claim 11, wherein in
detecting whether the photosensitive sensor is blocked, the
processor is further configured to: detect whether the screen is in
a landscape state; detect, by a distance sensor, whether an object
exists within a preset distance threshold, wherein the distance
sensor is disposed adjacent to the photosensitive sensor; and
determine whether the photosensitive sensor is blocked according to
a detection result.
17. The electronic device according to claim 12, wherein the
landscape state of the screen is detected by a gravity sensor.
18. The electronic device according to claim 11, wherein when it is
detected that the photosensitive sensor is blocked, the processor
is further configured to: update a first adjustment threshold to a
second adjustment threshold, wherein the second adjustment
threshold is greater than the first adjustment threshold, and the
first adjustment threshold or the second adjustment threshold is
configured to trigger an event of automatically adjusting the
brightness of the screen.
19. The electronic device according to claim 11, wherein the
processor is further configured to: when it is detected that the
photosensitive sensor is unblocked, adjust the brightness of the
screen according to a current light intensity parameter.
20. A computer-readable storage medium having stored thereon
instructions that, when executed by a processor of a device, cause
the device to perform a method for controlling a brightness of a
screen, the method comprising: detecting whether a photosensitive
sensor is blocked when a change in light intensity is detected; and
maintaining a current brightness of the screen when it is detected
that the photosensitive sensor is blocked.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is based upon and claims priority to
Chinese Patent Application No. 201810847098.2, filed Jul. 27, 2018,
the entire contents of which are incorporated herein by
reference.
TECHNICAL FIELD
[0002] The present disclosure relates generally to the field of
screen control technologies, and in particular, to a method,
apparatus, electronic device, and storage medium for controlling a
brightness of a screen.
BACKGROUND
[0003] In the related art, an electronic device, such as a mobile
phone and a tablet, can automatically adjust the brightness of its
screen according to a change in light brightness of the environment
in which the electronic device is located. However, in the case
where the light brightness of the environment does not change, if
the user holds the electronic device horizontally, that is, the
user holds opposite ends of the electronic device with hands where
one end of the electronic device is provided with a photosensitive
sensor, the photosensitive sensor of the electronic device may be
blocked by a finger or the palm of the user, then the
photosensitive sensor may misjudge that the light of the current
environment changes, which triggers the automatic adjustment of the
brightness of the screen of the electronic device to adapt the
brightness of the screen to the current environment.
[0004] Therefore, in the related art, the screen brightness
adjustment may still proceed under the condition that the ambient
light intensity does not change, and the brightness mis-adjustment
is easy to occur.
SUMMARY
[0005] According to a first aspect of the embodiments of the
present disclosure, there is provided a method for controlling a
brightness of a screen, including: detecting whether a
photosensitive sensor is blocked when a change in light intensity
is detected; and maintaining a current brightness of the screen
when it is detected that the photosensitive sensor is blocked.
[0006] According to a second aspect of the embodiments of the
present disclosure, there is provided an electronic device,
including: a processor; and a memory storing instructions
executable by the processor. The processor is configured to detect
whether a photosensitive sensor is blocked when a change in light
intensity is detected; and maintain a current brightness of the
screen when it is detected that the photosensitive sensor is
blocked.
[0007] According to a third aspect of the embodiments of the
present disclosure, there is provided a computer-readable storage
medium having stored thereon instructions that, when executed by a
processor of a device, cause the device to perform a method for
controlling a brightness of a screen, including: detecting whether
a photosensitive sensor is blocked when a change in light intensity
is detected; and maintaining a current brightness of the screen
when it is detected that the photosensitive sensor is blocked.
[0008] 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, as
claimed.
BRIEF DESCRIPTION OF THE DRAWINGS
[0009] FIG. 1 is a flowchart of a method for controlling a
brightness of a screen according to an exemplary embodiment of the
present disclosure.
[0010] FIG. 2 is a flowchart illustrating a step of detecting
whether a photosensitive sensor is blocked according to an
exemplary embodiment of the present disclosure.
[0011] FIG. 3 is a schematic diagram showing a screen of a terminal
device in a portrait state according to an exemplary embodiment of
the present disclosure.
[0012] FIG. 4 is a schematic diagram showing a screen of a terminal
device in a landscape state according to an exemplary embodiment of
the present disclosure.
[0013] FIG. 5 is a schematic diagram of a first area and a second
area of a screen according to an exemplary embodiment of the
present disclosure.
[0014] FIG. 6 is a schematic diagram of a first area and another
second area of a screen according to an exemplary embodiment of the
present disclosure.
[0015] FIG. 7 is a schematic diagram showing a user's hand
occluding a photosensitive sensor according to an exemplary
embodiment of the present disclosure.
[0016] FIG. 8 is a flowchart illustrating a step of detecting
whether a photosensitive sensor is blocked according to an
exemplary embodiment of the present disclosure.
[0017] FIG. 9 is a flowchart illustrating a step of detecting
whether a photosensitive sensor is blocked according to another
exemplary embodiment of the present disclosure.
[0018] FIG. 10 is a schematic diagram of an interface when a
terminal device displays a first control and a second control
according to an exemplary embodiment of the present disclosure.
[0019] FIG. 11 is a block diagram of an electronic device according
to an exemplary embodiment of the present disclosure.
DETAILED DESCRIPTION
[0020] Reference will now be made in detail to exemplary
embodiments, examples of which are illustrated in the accompanying
drawings. The following description refers to the accompanying
drawings in which the same numbers in different drawings represent
the same or similar elements unless otherwise represented. The
implementations set forth in the following description of exemplary
embodiments do not represent all implementations consistent with
the disclosure. Instead, they are merely examples of apparatuses
and methods consistent with aspects related to the disclosure as
recited in the appended claims.
[0021] The terms used in the present disclosure only tend to depict
specific embodiments, rather than restricting the present
disclosure. Unless the exceptional case in which the context
clearly gives supports, the singular forms "a", "an", and "the"
used in the present disclosure and accompany claims are intended to
include the plural forms. It should also be appreciated that the
expression "and/or" used herein indicates including any and all
possible combinations of one or more of the associated listed
items.
[0022] It should be understood, although terms first, second, third
and the like are used in the present disclosure to depict various
information, such information is not restricted by these terms.
These terms are only used to distinguish information of the same
type from each other. For example, without departing from the scope
of the present disclosure, the first information may also be
referred to as the second information. Similarly, the second
information may also be referred to as the first information.
Depending on context, the word "if" used herein may be explained to
"when" or "upon" or "in response to determining . . . ".
[0023] FIG. 1 is a flowchart of a method for controlling a
brightness of a screen according to an exemplary embodiment of the
present disclosure. As shown in FIG. 1, the method may be used in a
terminal device, and includes the following steps.
[0024] In step 101, when a change in light intensity is detected,
it is detected whether a photosensitive sensor of the terminal
device is blocked.
[0025] In step 102, current brightness of the screen is maintained
when it is detected that the photosensitive sensor is blocked.
[0026] The light intensity may be detected by the photosensitive
sensor of the terminal device. When an electrical signal
corresponding to the current light intensity detected by the
photosensitive sensor is different from an electrical signal
corresponding to the light intensity detected last time, a change
of the light intensity may be detected.
[0027] The change in the light intensity detected by the
photosensitive sensor is usually caused by a change in the actual
light intensity of the environment or the occlusion of the
photosensitive sensor. In order to determine the cause of the
change in the detected light intensity so as to avoid mis-adjusting
the brightness in the case where the intensity of the ambient light
does not change, in the step 101, when it is detected that the
light intensity changes, it is further detected whether the
photosensitive sensor is blocked.
[0028] Therefore, when the change of the light intensity is
detected, the present disclosure firstly detects whether the
photosensitive sensor of the terminal device is blocked, and then
determines whether it is necessary to adjust the brightness of the
screen according to the detection result, rather than directly
adjusting the brightness of the screen, thereby effectively
avoiding adjusting the brightness of the screen due to the
occlusion of the photosensitive sensor in the case where the
ambient light intensity does not change; and it is advantageous to
prevent the brightness from being mis-adjusted and the energy loss
caused by the mis-adjustment, and to improve accuracy of control of
the brightness of the screen. Moreover, even if the user grips the
terminal device horizontally and blocks the photosensitive sensor,
the screen maintains the original brightness, instead of becoming
dark, thereby optimizing the user experience.
[0029] FIG. 2 is a flowchart illustrating a step of detecting
whether a photosensitive sensor is blocked according to an
exemplary embodiment of the present disclosure. As shown in FIG. 2,
the step of detecting whether the photosensitive sensor is blocked
includes the following steps.
[0030] In step 101a, it is detected whether the screen is in a
landscape state.
[0031] In step 101b, it is detected whether a touch operation is
performed on a first area and a second area of the screen. The
first area is adjacent to the photosensitive sensor, and the second
area is an area on the screen except the first area.
[0032] In step 101c, when the screen is in the landscape state and
the touch operation is performed on the first area and the second
area, it is determined that the photosensitive sensor is
blocked.
[0033] In the landscape state, when the user touches the first area
adjacent to the photosensitive sensor and the second area except
the first area in the touch screen, the hand for touching the first
area generally spans above the photosensitive sensor and falls on
the first area, thereby blocking the photosensitive sensor, which
causes the intensity of the light detected by the photosensitive
sensor to be weakened. Therefore, the present disclosure determines
whether the photosensitive sensor is blocked by detecting whether
the screen is in a landscape state, and whether the touch operation
is performed on the first area and the second area, thereby
improving the detection accuracy of the occlusion of the
photosensitive sensor, and improving the accuracy of control of the
brightness of the screen; and, in the detection process, it is
sufficient only to apply the gravity sensor and the touch sensor,
therefore the detection is easy to implement and the detection
process is simple, which is beneficial to improve the detection
efficiency.
[0034] In this embodiment, the order of the step 101a and the step
10b is not limited.
[0035] In the step 101a, the landscape state of the screen may be
detected by the gravity sensor of the terminal device. FIG. 3 is a
schematic diagram showing a screen of a terminal device in a
portrait state according to an exemplary embodiment of the present
disclosure; and FIG. 4 is a schematic diagram showing a screen of a
terminal device in a landscape state according to an exemplary
embodiment of the present disclosure.
[0036] In the step 101b, the touch operation of the first area and
the second area may be detected by the touch sensor of the terminal
device, such as a touch screen of the terminal device. In order to
determine whether the touch operation occurs in the first area or
the second area, the first area and the second area of the screen
may be pre-divided, e.g., by the developer in the development
stage, and coordinates of the first area and the second area are
saved in the terminal device.
[0037] FIG. 5 is a schematic diagram of a first area and a second
area of a screen according to an exemplary embodiment of the
present disclosure. As shown in FIG. 5, the screen includes a
photosensitive sensor A, a first area B1 represented by a dotted
frame, and a second area B2 except the dotted frame. In other
embodiments, the second area may be a portion of other area than
the first area and separated from the first area, as shown in FIG.
6. FIG. 6 is a schematic diagram showing a first area C1 and
another second area C2 of the screen according to an exemplary
embodiment of the present disclosure, wherein the first area C1 is
represented a first dotted frame, and the second area C2 is
represented by a second dotted frame.
[0038] In an embodiment, in order to improve the detection accuracy
of the touch operation and the accuracy of the screen brightness
adjustment, in the step 101c (FIG. 2), before determining that the
photosensitive sensor is blocked, the method further includes the
following steps: detecting report rates of the touch operation for
the first area and the second area; comparing the report rate of
the first area is compared with a preset first report threshold,
and the report rate of the second area with a preset second report
threshold; and determining whether the photosensitive sensor is
blocked according to the comparison results.
[0039] In this embodiment, the report rate may be detected by the
touch sensor of the terminal device, such as a touch screen of the
terminal device. The first report threshold and the second report
threshold may be preset, e.g., by a developer during a development
phase, or may be set by a user according to usage. The first report
threshold may be equal to or approximately equal to the second
report threshold such that, for example, a difference between the
first report threshold and the second report threshold being less
than 1. The difference being less than 1 is only an example. In
other embodiments, other reasonable values may also be taken, and
the value may be obtained by triggering a corresponding instruction
when clicking controls displayed in the first area and the second
area of the screen by fingers of both hands of the user while
interacting through the screen.
[0040] In an embodiment, when the comparison result is: the report
rate of the first area is greater than or equal to the first report
threshold, and the report rate of the second area is greater than
or equal to the second report threshold, it is determined that the
photosensitive sensor is blocked.
[0041] In an embodiment, in the landscape state, even if the touch
operation is not detected in the first area and/or the second area,
the user may block the photosensitive sensor by hands when using
the terminal device. For example, when the user holds the terminal
device to watch the video with both hands or one hand, the hand
near the first area may block the photosensitive sensor, as shown
in FIG. 7. FIG. 7 is a schematic diagram illustrating that the
user's hand blocks the photosensitive sensor according to an
exemplary embodiment of the present disclosure. Therefore, in order
to realize the detection of whether the photosensitive sensor is
blocked in this case, so as to further improve the accuracy of
adjusting the brightness of the screen, the step of detecting
whether the photosensitive sensor is blocked may further include
the following steps, as shown in FIG. 8, which is a flowchart
illustrating a step of detecting whether the photosensitive sensor
is blocked according to an exemplary embodiment of the present
disclosure.
[0042] In step 101d: when the screen is in the landscape state and
there is no touch operation on the first area and/or the second
area, the distance sensor detects whether there is an object within
a preset distance threshold; wherein the distance sensor is
disposed adjacent to the photosensitive sensor.
[0043] In step 101f: it is determined whether the photosensitive
sensor is blocked according to the detection result.
[0044] In an embodiment, in the portrait state, the phenomenon of
blocking the photosensitive sensor by the hand may also occur
during use of the terminal device by the user. In order to also
detect whether the photosensitive sensor is blocked in the portrait
mode, and to eliminate the situation in which the distance sensor
detects the object within the preset distance threshold due to the
close contact with the earpiece (i.e., in this case, it is not
regarded as the photosensitive sensor being blocked), the control
accuracy of the brightness of the screen is further improved. As
shown in FIG. 8, the step of detecting whether the photosensitive
sensor is blocked may further include the following steps.
[0045] In step 101e: when the screen is not in the landscape mode
(i.e., in a portrait state), it is detected whether a call
application is running.
[0046] When the call application is running, a result that the
photosensitive sensor is unblocked is outputted.
[0047] When the call application is not running, the distance
sensor detects whether there is an object within a preset distance
threshold.
[0048] In step 101f: it is determined whether the photosensitive
sensor is blocked according to the detection result.
[0049] In the step 101d or the step 101e, in the step of
determining whether the photosensitive sensor is blocked according
to the detection result, the detection result includes the
following two situations. In the first situation, the distance
sensor detects that there is the object existing within the
distance threshold; and in the second situation, the distance
sensor does not detect the presence of the object within the
distance threshold. Under the first detection result, it is
determined that the photosensitive sensor is blocked; and under the
second detection result, it is determined that the photosensitive
sensor is not blocked.
[0050] In the embodiment, the distance sensor is disposed adjacent
to the photosensitive sensor, and if there is an object being too
close to the distance sensor, i.e., the distance sensor detects the
existence of an object within the distance threshold, the
photosensitive sensor is likely blocked. Therefore, whether the
photosensitive sensor is blocked may be determined by the detection
result of the distance sensor within the distance threshold. The
distance threshold may be acquired by the developer according to
experiments, and the specific acquisition manner may be obtained by
combining the present disclosure with the related art, which is not
elaborated herein.
[0051] FIG. 9 is a flowchart illustrating a step of detecting
whether the photosensitive sensor is blocked according to another
exemplary embodiment of the present disclosure. As shown in FIG. 9,
the step of detecting whether the photosensitive sensor is blocked
includes the following steps.
[0052] In step 101c1', it is detected whether the screen is in a
landscape state.
[0053] In step 101c2', the distance sensor detects whether an
object exists within a preset distance threshold. The distance
sensor is disposed adjacent to the photosensitive sensor.
[0054] In step 101c3', it is determined whether the photosensitive
sensor is blocked based on the detection result.
[0055] In the embodiments shown in the steps 101c1' to 101c3', for
the understanding of the landscape state and the distance
threshold, reference may be made to the foregoing description of
the landscape state and the distance threshold, and details are not
described herein.
[0056] The step 101c3' may include the following steps.
[0057] When it is detected that the screen is in the landscape
state and the distance sensor detects an object within the preset
distance threshold, it is determined that the photosensitive sensor
is blocked.
[0058] When it is detected that the screen is not in the landscape
state, and/or the distance sensor does not detect an object within
the preset distance threshold, it is determined that the
photosensitive sensor is unblocked.
[0059] Thereby, by detecting whether the screen is in the landscape
state and detecting whether there is an object within the preset
distance threshold by the distance sensor, and then determining
whether the photosensitive sensor is blocked based on the detection
results, the detection step is simplified. Furthermore, the
distance sensor and the photosensitive sensor are disposed
adjacently, and as long as the object is detected within the preset
distance threshold by the distance sensor in the landscape state
(to exclude the condition that the distance sensor detects the
object within the preset distance threshold due to the close
contact with the earpiece), the object may block the photosensitive
sensor, and when no object is detected within the preset distance
threshold, there is no blocking the photosensitive sensor, the
detection accuracy of the photosensitive sensor being blocked or
not can be ensured, the control accuracy of the brightness of the
screen is improved, and the user experience is optimized.
[0060] In an embodiment, based on any of the foregoing embodiments,
the method for controlling a brightness of a screen of the present
disclosure may further include: when it is detected that the
photosensitive sensor is not blocked, the brightness of the screen
is adjusted according to a current light intensity parameter.
[0061] In the embodiment, adjusting the brightness of the screen
according to the current light intensity parameter may be
implemented with a traditional method known from the related art,
and details are not described herein.
[0062] Therefore, in the present disclosure, by adjusting the
brightness of the screen according to the current light intensity
parameter when the photosensitive sensor is not blocked, the
brightness of the screen can be adjusted properly so as to adapt to
the current use environment.
[0063] In an embodiment, before adjusting the brightness of the
screen according to the current light intensity parameter, the
following steps are further included: a first control and a second
control are displayed on a current interface of the screen, wherein
the first control is used to trigger an event of automatically
adjusting the brightness of the screen, and the second control is
used to trigger an event of canceling the automatic adjustment of
the brightness of the screen; it is determined, according to the
currently triggered control, whether to adjust the brightness of
the screen according to the current light intensity parameter.
[0064] The above operation is performed when it is detected that
the photosensitive sensor is unblocked.
[0065] FIG. 10 is a schematic diagram of an interface when the
terminal device displays the first control and the second control
according to an exemplary embodiment of the present disclosure. As
shown in FIG. 10, the first control 1001 and the second control
1002 may be configured in a pop-up window, then when it is detected
that the photosensitive sensor is not blocked, the pop-up window
pops up. The pop-up window displays the text content, e.g., "The
screen brightness auto-adjustment function is started after 5s",
the first control 1001, and the second control 1002. The display
content of the first control 1001 may be: "Confirm", and the
display content of the second control 1002 may be: "Cancel". In
other embodiments, instead of displaying the pop-up window, the
content "Turn on the screen brightness auto-adjustment" may be
displayed directly in the first control 1001, and the content
"Cancel the screen brightness auto-adjustment" is displayed in the
second control 1002. Thus, the user can clearly know the functions
of the first control 1001 and the second control 1002 so as to
trigger the desired control.
[0066] In the embodiment, when the user clicks on the first control
1001 to trigger an event of automatically adjusting the brightness
of the screen, the system of the terminal device adjusts the
brightness of the screen according to the current light intensity
parameter detected by the photosensitive sensor. When the user
clicks on the second control 1002 to trigger an event of cancelling
the automatic adjustment of the brightness of the screen, the
system of the terminal device does not perform the operation of
adjusting the brightness of the screen, but maintains the current
brightness to meet the current usage requirements of the user.
[0067] In the present disclosure, by displaying the controls for
controlling the automatic adjustment of the brightness of the
screen to the user before adjusting the brightness of the screen
according to the current light intensity parameter, the user can
determine whether to adjust the brightness of the screen according
to the needs of the user, which is beneficial to further optimize
the user experience.
[0068] In an embodiment, based on any of the foregoing embodiments,
when it is detected or determined that the photosensitive sensor is
blocked, the method for adjusting the brightness of the screen of
the present disclosure may further include the following step: a
first adjustment threshold is updated to a second adjustment
threshold, where the second adjustment threshold is greater than
the first adjustment threshold, and the first adjustment threshold
or the second adjustment threshold is used to trigg an event of
automatic adjustment of brightness of the screen.
[0069] The first adjustment threshold and the second adjustment
threshold correspond to a degree of change of the light intensity
detected by the photosensitive sensor. For example, assuming that
the light intensity detected by the photosensitive sensor last time
is a, and the light intensity detected this time is b, then only if
an absolute value of a difference between b and a is greater than
or equal to the first adjustment threshold or the second adjustment
threshold, the event of automatically adjusting the brightness of
the screen is triggered.
[0070] Thus, in the embodiment, when the photosensitive sensor is
occluded, by updating the adjustment threshold for triggering the
event of automatically adjusting the brightness of the screen, the
adjustment threshold is increased, thereby facilitating further
preventing the mis-adjustment of brightness of the screen when the
ambient light intensity does not change while the photosensitive
sensor is occluded.
[0071] Corresponding to the foregoing embodiments of the method for
controlling the brightness of the screen, the present disclosure
further provides an apparatus for controlling a brightness of a
screen, the apparatus includes: a detecting module and a brightness
control module.
[0072] The detecting module is configured to detect whether a
photosensitive sensor is blocked when a change in the light
intensity is detected.
[0073] The brightness control module is configured to maintain
current brightness of the screen when the photosensitive sensor is
blocked.
[0074] In this embodiment, the detecting module includes: a light
intensity detecting submodule, a landscape detecting submodule, a
touch detecting submodule, and a first determining submodule.
[0075] The light intensity detecting submodule is configured to
detect whether the light intensity changes.
[0076] The landscape detecting submodule is configured to detect
whether the screen is in a landscape state when the light intensity
changes.
[0077] The touch detecting submodule is configured to detect
whether a touch operation is performed on a first area and a second
area of the screen when the light intensity changes or when the
screen is in the landscape state. The first area is adjacent to the
photosensitive sensor, and the second area is another area in the
screen except the first area.
[0078] The first determining submodule is configured to: when the
screen is in the landscape state, and the touch operation is
performed on the first area and the second area, determine that the
photosensitive sensor is blocked.
[0079] In an embodiment, the first determining submodule includes:
a report detecting submodule, a report comparing submodule, and a
result determination submodule.
[0080] The report detecting submodule is configured to detect
report rates of the touch operation for the first area and the
second area when the screen is in the landscape state and the touch
operation is performed in the first area and the second area.
[0081] The report comparing submodule is configured to compare the
report rate of the first area with a preset first report threshold,
and compare the report rate of the second area with a preset second
report threshold.
[0082] The result determining submodule is configured to determine
whether the photosensitive sensor is blocked based on the
comparison results.
[0083] In another embodiment, the first determining submodule may
be replaced by another scheme, that is, the new first determining
submodule includes: a first distance detecting submodule, and a
result determining submodule.
[0084] The first distance detecting submodule is configured to:
when the screen is in the landscape state, and the touch operation
is performed on the first area and the second area, the distance
sensor detects whether there is an object within the preset
distance threshold.
[0085] The result determining submodule is configured to determine
whether the photosensitive sensor is blocked based on the detection
result.
[0086] In an embodiment, the detecting module may further include:
a second distance detecting submodule, and a second determining
submodule.
[0087] The second distance detecting submodule is configured to:
when the screen is in the landscape state, and the first area
and/or the second area have no touch operation, the distance sensor
detects whether there is an object within the preset distance
threshold: wherein the distance sensor is disposed adjacent to the
photosensitive sensor.
[0088] The second determining submodule is configured to determine
whether the photosensitive sensor is blocked according to the
detection result of the second distance detecting submodule.
[0089] In an embodiment, the detecting module may further include:
a call detecting submodule, a first result output submodule, a
third distance detecting submodule, and a second result output
submodule.
[0090] The call detecting submodule is configured to detect whether
a call application is running when the screen is not in the
landscape state (i.e., in a portrait state).
[0091] The first result output submodule is configured to output a
result that the photosensitive sensor is unblocked when the call
application is running.
[0092] The third distance detecting submodule is configured to:
when the calling application is not in operation, detect whether an
object exists in a preset distance threshold by using the distance
sensor.
[0093] The second result output submodule is configured to
determine whether the photosensitive sensor is blocked according to
the detection result. In other embodiments, the detecting module
may be replaced with other schemes, that is, the new detecting
module includes: a light intensity detecting submodule, a landscape
detecting submodule, a distance detecting submodule, and a
determining submodule.
[0094] The light intensity detecting submodule is configured to
detect whether the light intensity changes.
[0095] The landscape detecting submodule is configured to detect
whether the screen is in the landscape state when the light
intensity changes.
[0096] The distance detecting submodule is configured to detect
whether an object exists within a preset distance threshold by the
distance sensor when the light intensity changes or when the screen
is in the landscape state. The distance sensor is disposed adjacent
to the photosensitive sensor.
[0097] The determining submodule is configured to determine whether
the photosensitive sensor is blocked according to the detection
result.
[0098] Accordingly, based on the new detecting module, the
determination submodule is configured to: determine that the
photosensitive sensor is blocked when the screen is in the
landscape state and detect, by the distance sensor, an object
within the preset distance threshold, and determine that the
photosensitive sensor is unblocked when the screen is not in the
landscape state, and/or the distance sensor does not detect an
object within the preset distance threshold.
[0099] In an embodiment, based on any of the foregoing embodiments,
the brightness control module is further configured to: adjust the
brightness of the screen according to a current light intensity
parameter when the photosensitive sensor is unblocked.
[0100] In an embodiment, the apparatus further includes: a control
display module, and an adjustment determining module.
[0101] The control display module is configured to: display a first
control and a second control on a current interface of the screen
before the brightness control module adjusts the brightness of the
screen; wherein the first control is used to trigger an event of
automatically adjusting the brightness of the screen, and the
second control is used to trigger an event that cancels the
automatic adjustment of the brightness of the screen.
[0102] The adjustment determining module is configured to:
determine whether to adjust the brightness of the screen according
to the current light intensity parameter according to the currently
triggered control.
[0103] The adjustment determining module outputs an instruction for
adjusting the brightness of the screen to the brightness control
module, so that the brightness control module maintains or adjusts
the current brightness of the screen according to the received
instruction.
[0104] In an embodiment, based on any of the foregoing apparatus,
the apparatus further includes: a threshold update module.
[0105] The threshold update module is configured to: when the
photosensitive sensor is blocked, update a first adjustment
threshold to a second adjustment threshold, wherein the second
adjustment threshold is greater than the first adjustment
threshold, and the first adjustment threshold or the second
adjustment threshold is used to trigger an event of automatically
adjusting the brightness of the screen.
[0106] Since the modules in the apparatus of the present disclosure
correspond to the foregoing method for controlling the brightness
of the screen, reference may be made to the foregoing method for
details.
[0107] FIG. 11 is a block diagram of an electronic device 500
according to an exemplary embodiment of the present disclosure. As
shown in FIG. 11, the electronic device 500 may be a computer, a
mobile phone, a digital broadcast terminal, a messaging apparatus,
a gaming console, a tablet, a medical apparatus, exercise
equipment, a personal digital assistant, and other terminal
devices.
[0108] Referring to FIG. 11, the electronic device 500 may include
one or more of the following components: a processing component
501, a memory 502, a power component 503, a multimedia component
504, an audio component 505, an input/output (I/O) interface 506, a
sensor component 507, and a communication component 508.
[0109] The processing component 501 typically controls overall
operations of the electronic device 500, such as the operations
associated with display, telephone calls, data communications,
camera operations, and recording operations. The processing
component 501 may include one or more processors 509 to execute
instructions to perform all or part of the steps in the above
described methods. Moreover, the processing component 501 may
include one or more modules which facilitate the interaction
between the processing component 501 and other components. For
instance, the processing component 501 may include a multimedia
module to facilitate the interaction between the multimedia
component 504 and the processing component 501.
[0110] The memory 502 is configured to store various types of data
to support the operation of the electronic device 500. Examples of
such data include instructions for any applications or methods
operated on the electronic device 500, contact data, phonebook
data, messages, pictures, video, etc. The memory 502 may be
implemented using any type of volatile or non-volatile memory
apparatuses, or a combination thereof, such as a static random
access memory (SRAM), an electrically erasable programmable
read-only memory (EEPROM), an erasable programmable read-only
memory (EPROM), a programmable read-only memory (PROM), a read-only
memory (ROM), a magnetic memory, a flash memory, a magnetic or
optical disk.
[0111] The power component 503 provides power to various components
of the electronic device 500. The power component 503 may include a
power management system, one or more power sources, and any other
components associated with the generation, management, and
distribution of power in the electronic device 500.
[0112] The multimedia component 504 includes a screen providing an
output interface between the electronic device 500 and the user. In
some embodiments, the screen may include a touch panel (TP), and
the screen may be implemented as a touch screen to receive input
signals from the user. The touch panel includes one or more touch
sensors to sense touches, swipes, and gestures on the touch panel.
The touch sensors may not only sense a boundary of a touch or swipe
action, but also sense a period of time and a pressure associated
with the touch or swipe action. In some embodiments, the multimedia
component 504 includes a front camera and/or a rear camera. The
front camera and the rear camera may receive an external multimedia
datum while the electronic device 500 is in an operation mode, such
as a photographing mode or a video mode. Each of the front camera
and the rear camera may be a fixed optical lens system or have
focus and optical zoom capability.
[0113] The audio component 505 is configured to output and/or input
audio signals. For example, the audio component 505 includes a
microphone (MIC) configured to receive an external audio signal
when the electronic device 500 is in an operation mode, such as a
call mode, a recording mode, and a voice recognition mode. The
received audio signal may be further stored in the memory 502 or
transmitted via the communication component 508. In some
embodiments, the audio component 505 further includes a speaker to
output audio signals.
[0114] The I/O interface 502 provides an interface between the
processing component 501 and peripheral interface modules, such as
a keyboard, a click wheel, buttons, and the like. The buttons may
include, but are not limited to, a home button, a volume button, a
starting button, and a locking button.
[0115] The sensor component 507 includes one or more sensors to
provide status assessments of various aspects of the electronic
device 500. For instance, the sensor component 507 may detect an
open/closed status of the electronic device 500, relative
positioning of components, e.g., the display and the keypad, of the
electronic device 500, a change in position of the electronic
device 500 or a component of the electronic device 500, a presence
or absence of user contact with the electronic device 500, an
orientation or an acceleration/deceleration of the electronic
device 500, and a change in temperature of the electronic device
500. The sensor component 507 may include a proximity sensor
configured to detect the presence of nearby objects without any
physical contact. The sensor component 507 may also include a
photosensitive sensor, such as a CMOS or CCD image sensor, for use
in imaging applications. In some embodiments, the sensor component
507 may also include an accelerometer sensor, a gyroscope sensor, a
magnetic sensor, a pressure sensor, a temperature sensor, a
photoelectric sensor or a GPS sensor.
[0116] The communication component 508 is configured to facilitate
communication, wired or wirelessly, between the electronic device
500 and other apparatus. The electronic device 500 may access a
wireless network based on a communication standard, such as WiFi,
2G, or 3G, 4G, or a combination thereof. In one exemplary
embodiment, the communication component 508 receives a broadcast
signal or broadcast associated information from an external
broadcast management system via a broadcast channel. In one
exemplary embodiment, the communication component 508 further
includes a near field communication (NFC) module to facilitate
short-range communications. In some embodiments, the communication
component 508 may be implemented based on a radio frequency
identification (RFID) technology, an infrared data association
(IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth
(BT) technology, and other technologies.
[0117] In exemplary embodiments, the electronic device 500 may be
implemented with one or more application specific integrated
circuits (ASICs), digital signal processors (DSPs), digital signal
processing apparatuses (DSPDs), programmable logic apparatuses
(PLDs), field programmable gate arrays (FPGAs), controllers,
micro-controllers, microprocessors, or other electronic components,
for performing the above described methods.
[0118] The above-described apparatus embodiments are only
illustrative. The units illustrated as separate components may be
or may not be separated physically, the component illustrated as a
unit may be or may not be a physical unit. i.e., may be located at
one location, or may be distributed into multiple network units. A
part or all of the modules may be selected to achieve the purpose
of the solution in the present disclosure according to actual
requirements. The person skilled in the art can understand and
implement the present disclosure without paying inventive
labor.
[0119] Corresponding to the foregoing embodiments of the method for
controlling the brightness of the screen, the present disclosure
further provides a computer-readable storage medium having stored
thereon instructions that, when executed by the processor 509,
cause the electronic device 500 to perform the method for
controlling the brightness of the screen, including: detecting
whether a photosensitive sensor is blocked when a change in light
intensity is detected; and maintaining current brightness of the
screen when it is detected that the photosensor is blocked.
[0120] The present disclosure may take the form of a computer
program product embodied on one or more storage media (including,
but not limited to, a disk storage, a CD-ROM, an optical storage,
etc.) containing program codes. The computer-readable storage media
includes both permanent and non-persistent, removable and
non-removable media, and information storage may be implemented by
any method or technology. The information may be computer-readable
instructions, data structures, modules of programs, or other data.
Examples of the computer storage media include, but are not limited
to, a phase change memory (PRAM), a static random access memory
(SRAM), a dynamic random access memory (DRAM), other types of
random access memory (RAM), read only memory, (ROM), electrically
erasable programmable read only memory (EEPROM), flash memory or
other memory technology, a compact disk read only memory (CD-ROM),
a digital versatile disk (DVD) or other optical storage, and
magnetic tape cartridges, and magnetic tape storage or other
magnetic storage devices or any other non-transportable media may
be used to store information that may be accessed by a computing
device.
[0121] Other embodiments of the present disclosure will be apparent
to those skilled in the art from consideration of the specification
and practice of the disclosure disclosed here. The present
disclosure is intended to cover any variations, uses, or
adaptations of the present disclosure following the general
principles thereof and including such departures from the present
disclosure as come within known or customary practice in the art.
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.
[0122] It will be appreciated that the present disclosure is not
limited to the exact construction that has been described above and
illustrated in the accompanying drawings, and that various
modifications and changes may be made without departing from the
scope thereof. It is intended that the scope of the disclosure only
be limited by the appended claims.
* * * * *