Method for detecting ambient light intensity, storage medium and electronic device
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsHaiping ZHANG, Yibao ZHOU
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method for detecting ambient light intensity, a storage medium and an electronic device. The method for detecting ambient light intensity includes: controlling a preset region of a display screen of an electronic device to display a predetermined picture; obtaining an ambient light intensity value detected by the ambient light sensor; and controlling the display screen to respond according to the ambient light intensity value. The preset region is a region facing an ambient light sensor in the display screen. The predetermined picture is a pure color picture.
Claims20
A method for detecting ambient light intensity, comprising:
- controlling a preset region of a display screen of an electronic device to display a predetermined picture, wherein the preset region is a region facing an ambient light sensor of the electronic device in the display screen, and the predetermined picture is a pure color picture;
- obtaining an ambient light intensity value detected by the ambient light sensor;
- and
- controlling the display screen to respond according to the ambient light intensity value.
A storage medium, having stored therein one or more computer programs, when the one or more computer programs is performed by a computer, the computer is configured to perform a method for detecting ambient light intensity, wherein the method for detecting ambient light intensity comprises:
- controlling a preset region of a display screen of an electronic device to display a predetermined picture, wherein the preset region is a region facing an ambient light sensor of the electronic device in the display screen, and the predetermined picture is a pure color picture;
- obtaining an ambient light intensity value detected by the ambient light sensor;
- and
- controlling the display screen to respond according to the ambient light intensity value.
An electronic device, comprising:
- a display screen, comprising a display region;
- an ambient light sensor, disposed facing the display region of the display screen;
- and
- a processor, configured to control the preset region to display a predetermined picture when the ambient light sensor detects ambient light intensity, wherein the predetermined picture is a pure color picture.
Dependencies are inferred from the claim text.