CN-122027734-A - Display processing method, device, chip system, storage medium, and program product
Abstract
The embodiment of the application provides a display processing method, display processing equipment, a chip system, a storage medium and a program product, and relates to the technical field of terminals. The method comprises the steps that the electronic equipment can acquire an instruction sequence issued to a display screen in a scene of on-off screen, wherein the instruction sequence comprises one or more instructions. And the acquired instruction sequence can be detected, so that an abnormal instruction sequence can be determined. Therefore, the abnormal instruction sequence determined by the electronic equipment can be obtained later, and the abnormal instruction sequence is processed, so that the reason that the electronic equipment displays the abnormality in the scene of on-off screen can be positioned.
Inventors
- Zhuang Ruigang
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241108
Claims (14)
- 1. A display processing method, characterized by being applied to an electronic device including a display screen, the method comprising: When the display screen is in a first state, a first instruction sequence is transmitted to the display screen based on a first operation, the first instruction sequence comprises indication information of one or more instructions, and the one or more instructions are used for indicating the display screen to be switched from the first state to a second state; Acquiring a second instruction sequence, and judging whether the second instruction sequence is abnormal or not based on N preset instruction sets corresponding to indication information of N instructions, wherein the second instruction sequence comprises indication information of part or all instructions in the first instruction sequence, the N preset instruction sets are used for indicating arrangement rules of the indication information of the N instructions, and N is a positive integer; and storing the second instruction sequence under the condition that the second instruction sequence is abnormal.
- 2. The method according to claim 1, wherein the arrangement rule is used for indicating indication information of an instruction that can appear after indication information of each instruction of the indication information of the N instructions.
- 3. Method according to claim 1 or 2, characterized in that the indication information of a first instruction of the N instructions corresponds to a first instruction set of the N preset instruction sets, the first instruction set comprising indication information of a null instruction, which indicates that the indication information of the first instruction may be the last indication information of the second instruction sequence, and/or indication information of at least one instruction, which may occur after the indication information of the first instruction.
- 4. A method according to any one of claims 1 to 3, wherein said determining whether said second instruction sequence is abnormal comprises: Acquiring the x-th indication information and the x+1-th indication information in the second instruction sequence, wherein the x-th indication information belongs to one of the indication information of the N instructions, x is a positive integer less than or equal to M-1, and M is the number of the indication information included in the second instruction sequence; Judging whether the (x+1) th indication information belongs to a second preset instruction set or not, wherein the second preset instruction set is a preset instruction set corresponding to the (x) th indication information in the N preset instruction sets; And determining that the second instruction sequence is abnormal under the condition that the (x+1) th instruction information does not belong to the second preset instruction set.
- 5. The method according to claim 4, wherein the method further comprises: And under the condition that the (x+1) th indication information belongs to the second preset instruction set, determining that the time sequence of the (x) th indication information and the (x+1) th indication information is correct.
- 6. The method of any one of claims 1 to 5, wherein the determining whether the second instruction sequence is abnormal comprises: judging whether the indication information of the last instruction in the second instruction sequence is the indication information of the first preset instruction or not under the condition that the second instruction sequence is judged to be normal based on the N preset instruction sets; Judging whether the second instruction sequence comprises a second preset instruction and a third preset instruction positioned after the second preset instruction under the condition that the indication information of the last instruction is not the indication information of the first preset instruction; and judging that the second instruction sequence is abnormal under the condition that the second instruction sequence comprises the second preset instruction and the second instruction sequence does not comprise the third preset instruction after the second preset instruction.
- 7. The method of claim 6, wherein the method further comprises: judging whether a fourth preset instruction and a fifth preset instruction positioned after the fourth preset instruction are included in the second instruction sequence under the condition that the second preset instruction and the third preset instruction positioned after the second preset instruction are included in the second instruction sequence; and judging that the second instruction sequence is abnormal under the condition that the fourth preset instruction is included in the second instruction sequence and the fifth preset instruction is not included in the second instruction sequence after the fourth preset instruction.
- 8. The method according to any one of claims 1 to 7, wherein the second instruction sequence includes indication information in the first instruction sequence that a preset condition is not satisfied.
- 9. The method according to any one of claims 1 to 8, wherein the first instruction sequence is determined based on a preset instruction set including correspondence of a plurality of instructions and a plurality of instruction information; before the first instruction sequence is transmitted to the display screen, the method further comprises: Detecting whether the corresponding relation between the plurality of instructions and the plurality of indication information in the preset instruction set is correct or not; Correcting the corresponding relation between the plurality of instructions and the plurality of indication information under the condition that the corresponding relation between the plurality of instructions and the plurality of indication information is incorrect, so as to obtain a corrected preset instruction set; The transmitting a first instruction sequence to the display screen includes: and transmitting the first instruction sequence to the display screen based on the corrected preset instruction set.
- 10. The method according to any one of claims 1 to 9, further comprising: determining the abnormal times of the second instruction sequence under the condition that the second instruction sequence is abnormal; and sending the second instruction sequence and the abnormal times to target equipment.
- 11. An electronic device, the electronic device comprising: one or more processors and memory; The memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-10.
- 12. A chip system for application to an electronic device, the chip system comprising one or more processors to invoke computer instructions to cause the electronic device to perform the method of any of claims 1 to 10.
- 13. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 10.
- 14. A computer program product, characterized in that the computer program product comprises computer program code which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 10.
Description
Display processing method, device, chip system, storage medium, and program product Technical Field The present application relates to the field of terminal technologies, and in particular, to a display processing method, a device, a chip system, a storage medium, and a program product. Background In order to reduce the operating power consumption of the electronic device, in some cases, the electronic device may enter a sleep state in which the electronic device may be turned off. In other cases, the electronic device may be awakened and may be switched to a bright screen state based on an operation to wake the electronic device while the electronic device is in a sleep state. However, when the electronic device switches between the sleep state and the bright screen state, abnormal display of the display screen may be caused, so that the user experience is poor. Accordingly, there is a need to provide a method for determining the cause of display anomalies. Disclosure of Invention The embodiment of the application provides a display processing method, a device, a chip system, a storage medium and a program product, which are applied to the technical field of terminals and are beneficial to locating the reasons of abnormal display when electronic equipment is switched between a dormant state and a bright screen state. In a first aspect, an embodiment of the present application provides a display processing method. The method comprises the steps of transmitting a first instruction sequence to a display screen based on first operation when the display screen is in a first state, wherein the first instruction sequence comprises indication information of one or more instructions, the one or more instructions are used for indicating the display screen to switch from the first state to a second state, the first state is a screen-off state, the second state is a screen-on state, or the second state is a screen-off state, the first state is a screen-on state, the second instruction sequence is obtained, judging whether the second instruction sequence is abnormal or not based on N preset instruction sets corresponding to the indication information of N instructions, the second instruction sequence comprises indication information of part or all instructions in the first instruction sequence, the N preset instruction sets are used for indicating arrangement rules of the indication information of the N instructions, N is a positive integer, and the second instruction sequence is stored under the condition that the second instruction sequence is abnormal. The off-screen state may also be referred to as an off-screen state, and may be understood as a state of a display screen when the electronic device is in the sleep state. The off-screen state may be an off-screen state (a state shown in fig. 1 (b)) or an off-screen display state (a state shown in fig. 1 (d)) as an example. When the electronic device in the off-screen state is awakened, the electronic device may be in a bright-screen state (e.g., the state shown in fig. 1 (a) or the state shown in fig. 3 (a)). The off-screen state and the on-screen state may also refer to the following description of the off-screen state and the on-screen state, which will not be described herein. The first operation may be understood as an operation of indicating the display screen to switch from the first state to the second state, and the display screen to switch from the first state to the second state may be understood as a scene of turning on or off the screen hereinafter, or may be understood as an up-current flow or a down-current flow, etc. The first operation may be any operation capable of triggering the display screen to switch from the first state to the second state. And the first operation may be an input operation of the user, and assuming that the first state is a screen off state and the second state is a screen on state, the first operation may be understood as an operation of indicating that the display screen is switched from the screen off state to the screen on state, for example, the first operation may be an operation of pressing a power key of the electronic device by the user. Or the first operation may not have a specific operation, but may be a trigger operation caused by a mechanism of the electronic device itself. For example, assuming that the first state is an off-screen state and the second state is a bright-screen state, the first operation may be understood as an operation of indicating that the display screen is switched from the off-screen state to the bright-screen state, for example, the electronic device receives a notification message or the like, which is not limited herein. Or the second state is assumed to be in a screen-off state, the first state is in a screen-on state, and the first operation can be understood as an operation for indicating the display screen to be switched from the screen-on state to the screen-off state, for example, t