Method and device for controlling screen of electronic device, related electronic device and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorHao Liu
Life of this patent
Estimating the term…
Abstract
A method for controlling a screen of an electronic device includes the following. A switching instruction sent by an application layer is received. The switching instruction is configured to control a display chip to switch between an AOD state and a non-AOD state. In response to the switching instruction, it is determined whether a first display interface received from the application layer at a current moment matches the switching instruction. In response to determining that the first display interface matches the switching instruction, the display chip switches between the AOD state and the non-AOD state based on the switching instruction to display the first display interface.
Claims17
A method for controlling a screen of an electronic device, comprising:
- receiving a switching instruction sent by an application layer, wherein the switching instruction is configured to control a display chip to switch between an always on display (AOD) state and a non-AOD state;
- in response to the switching instruction, determining whether a first display interface received from the application layer at a current moment matches the switching instruction;
- and
- in response to determining that the first display interface matches the switching instruction, switching between the AOD state and the non-AOD state based on the switching instruction to display the first display interface;
- wherein in response to the switching instruction, determining whether the first display interface received from the application layer at a current moment matches the switching instruction comprises:
- in response to the switching instruction that is configured to control the display chip to switch to the AOD state, determining whether the first display interface received from the application layer at the current moment is an AOD interface;
- in response to determining that the first display interface is the AOD interface, determining that the first display interface matches the switching instruction;
- and
- in response to determining that the first display interface is a non-AOD interface, determining that the first display interface does not match the switching instruction.
An electronic device, comprising:
- a processor;
- a memory, for storing instructions executable by the processor;
- and
- a display chip;
- wherein, the display chip is configured to:
- receive a switching instruction sent by an application layer, wherein the switching instruction is configured to control a display chip to switch between an always on display (AOD) state and a non-AOD state;
- in response to the switching instruction, determine whether a first display interface received from the application layer at a current moment matches the switching instruction;
- and
- in response to determining that the first display interface matches the switching instruction, switch between the AOD state and the non-AOD state based on the switching instruction to display the first display interface;
- wherein the display chip is further configured to:
- in response to the switching instruction that is configured to control the display chip to switch to the AOD state, determine whether the first display interface received from the application layer at the current moment is an AOD interface;
- in response to determining that the first display interface is the AOD interface, determine that the first display interface matches the switching instruction;
- and
- in response to determining that the first display interface is a non-AOD interface, determine that the first display interface does not match the switching instruction.
A non-transitory computer-readable storage medium having instructions stored thereon that, when executed by a display chip of an electronic device, control the display chip to:
- receive a switching instruction sent by an application layer, wherein the switching instruction is configured to control a display chip to switch between an always on display (AOD) state and a non-AOD state;
- in response to the switching instruction, determine whether a first display interface received from the application layer at a current moment matches the switching instruction;
- and
- in response to determining that the first display interface matches the switching instruction, switch between the AOD state and the non-AOD state based on the switching instruction to display the first display interface;
- in response to the switching instruction, determine whether the first display interface received from the application layer at a current moment matches the switching instruction, the display chip is controlled to:
- in response to the switching instruction that is configured to control the display chip to switch to the AOD state, determine whether the first display interface received from the application layer at the current moment is an AOD interface;
- in response to determining that the first display interface is the AOD interface, determine that the first display interface matches the switching instruction;
- and
- in response to determining that the first display interface is a non-AOD interface, determine that the first display interface does not match the switching instruction.
Dependencies are inferred from the claim text.