Patent ID: 11881137
Assignee: HONOR DEVICE CO., LTD.
Field: Telecommunications (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 0:
1. A proximity detection method, comprising:
displaying, by a terminal, a black picture for at least two times in a first area of a display area of a display screen of the terminal, wherein the terminal includes a first optical proximity sensor under the display screen, the display area of the display screen includes the first area and a second area, the first optical proximity sensor detects an external object through the first area, and the second area is outside the first area, and wherein the black picture is displayed for at least two times in the first area during refreshing of one frame of an image frame picture;
displaying, by the terminal, the image frame picture in the second area when the black picture is displayed in the first area;
displaying, by the terminal, the image frame picture in the first area in an interval between displaying the black picture in the first area for two times; and
obtaining, by the terminal, approaching data of the external object based on data detected by the first optical proximity sensor when the first area displays the black picture and not based on data detected by the first optical proximity sensor when the first area displays the image picture frame.