CN117707405A - Display screen control method and related equipment - Google Patents

Display screen control method and related equipment Download PDF

Info

Publication number
CN117707405A
CN117707405A CN202310659955.7A CN202310659955A CN117707405A CN 117707405 A CN117707405 A CN 117707405A CN 202310659955 A CN202310659955 A CN 202310659955A CN 117707405 A CN117707405 A CN 117707405A
Authority
CN
China
Prior art keywords
power
instruction
screen
display screen
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310659955.7A
Other languages
Chinese (zh)
Inventor
武玉瑶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310659955.7A priority Critical patent/CN117707405A/en
Publication of CN117707405A publication Critical patent/CN117707405A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Power Sources (AREA)

Abstract

The application provides a display screen control method and related equipment, wherein the method comprises the following steps: responding to a screen-off instruction, and judging whether an AOD function or a fingerprint unlocking function is available; if the AOD function or the fingerprint unlocking function is available, generating a first power-down instruction, and sending the first power-down instruction to the display screen to control the display screen to be powered down; responding to the screen-lighting instruction, generating a first power-on instruction, sending the first power-on instruction to the display screen, controlling the power-on of the display screen, and enabling the second power-on instruction to correspond to the second power-off instruction; if the AOD function and the fingerprint unlocking function are unavailable, generating a second power-down instruction, and sending the second power-down instruction to the display screen to control the display screen to be powered down; and responding to the screen-lighting instruction, generating a second power-on instruction, sending the second power-on instruction to the display screen, and controlling the display screen to power on, wherein the second power-on instruction corresponds to the second power-off instruction. The power-on instruction generated when the screen is turned on corresponds to the power-off instruction generated when the screen is turned off last time, and the display screen is ensured to be normally turned on.

Description

Display screen control method and related equipment
Technical Field
The application relates to the technical field of display, in particular to a display screen control method and related equipment.
Background
When the display screen of the intelligent terminal such as the intelligent mobile phone and the tablet personal computer is turned off, the intelligent terminal can enter an all-day display (AOD, always On Display) mode, so that information such as date, time and notification and a fingerprint unlocking area can be continuously displayed. In the AOD mode, if a power key of the intelligent terminal is triggered, the display screen can be controlled to be lightened. When the display screen is on, the power-on instruction needs to be sent to control the display screen to power on, when the display screen is off, the power-off instruction needs to be sent to control the display screen to power off, and the power-off instruction when the display screen is off has a one-to-one correspondence with the power-on instruction when the display screen is on after the display screen is off. However, the power-on instruction actually generated when the screen is turned on after the screen is turned off may change along with the change of the on state of the AOD function, so that the power-on instruction does not correspond to the power-off instruction when the screen is turned off, the display screen cannot be powered on when the screen is turned on, the screen cannot be normally turned on, and the screen freezing phenomenon is caused, so that the user experience is affected.
Disclosure of Invention
In view of the above, it is necessary to provide a display screen control method and related devices, so as to solve the problem that the power-on instruction generated when the screen is turned on after the screen is turned off and the power-off instruction generated when the screen is turned off do not correspond to each other, so that the display screen cannot be powered on when the screen is turned on.
In a first aspect, the present application provides a display screen control method, applied to an electronic device, where the method includes: responding to a screen-off instruction, and judging whether an AOD function or a fingerprint unlocking function of the electronic equipment is available; if the AOD function or the fingerprint unlocking function of the electronic equipment is available, generating a first power-down instruction, sending the first power-down instruction to a display screen of the electronic equipment, and controlling the display screen to be powered down; responding to a screen-lighting instruction, generating a first power-on instruction, and sending the first power-on instruction to the display screen to control the power-on of the display screen, wherein the first power-on instruction corresponds to the first power-off instruction; if the AOD function and the fingerprint unlocking function of the electronic equipment are unavailable, generating a second power-down instruction, and sending the second power-down instruction to the display screen to control the display screen to be powered down; and responding to a screen-lighting instruction, generating a second power-on instruction, and sending the second power-on instruction to the display screen to control the power-on of the display screen, wherein the second power-on instruction corresponds to the second power-off instruction.
Through the technical scheme, the power-on instruction generated when the screen is turned on after the screen is turned off is correspondingly set with the power-off instruction when the screen is turned off, but is not set according to the available states of the real-time AOD function and the fingerprint unlocking function, so that the power-on instruction can control the power-on of the display screen and the screen is turned on.
In one possible implementation, the electronic device provides an off-screen display setup interface that includes controls for controlling on or off of an off-screen display and options for selecting an off-screen display mode.
Through the technical scheme, the user can conveniently set the off-screen display mode of the electronic equipment.
In one possible implementation, determining whether the AOD function of the electronic device is available includes: acquiring a control state and an option of an off-screen display mode for controlling the on-off display on an off-screen display setting interface; if the control state for controlling the on/off of the off-screen display is on and the option of the off-screen display mode is full-day display, determining that the AOD function is available; or if the control state for controlling the on/off of the off-screen display is that the option of the off/off-screen display mode is not the whole day display, determining that the AOD function is not available. Through the technical scheme, the available state of the AOD function can be accurately determined.
In one possible implementation, determining whether a fingerprint unlocking function of the electronic device is available includes: judging whether the electronic equipment inputs a fingerprint or not, and acquiring a control state for controlling unlocking opening or closing of the fingerprint on a fingerprint unlocking setting interface; if the electronic equipment inputs the fingerprint and the control state for controlling the unlocking or closing of the fingerprint is on, determining that the fingerprint unlocking function is available; or if the electronic equipment does not input the fingerprint, or the control state for controlling the unlocking of the fingerprint to be opened or closed is closed, determining that the fingerprint unlocking function is unavailable. By the technical scheme, the available state of the fingerprint unlocking function can be accurately determined.
In one possible implementation manner, the first power-down instruction, the first power-up instruction, the second power-down instruction, and the second power-up instruction are all preset CMD instructions, where the preset CMD instructions include instruction content and an index value. Through the technical scheme, the CMD command is adopted to control the power on and off of the display screen, so that the flow of turning on and off the display screen can be simplified, and the efficiency of turning on and off the display screen is improved.
In one possible implementation, the generating the first power-down instruction includes: and if the AOD function or the fingerprint unlocking function of the electronic equipment is available, an instruction sending interface is called to generate the first power-down instruction. Through the technical scheme, when the screen is turned off, the power-down instruction is generated according to the available states of the AOD function and the fingerprint unlocking function, so that the stored power-down instruction is consistent with the available states of the AOD function and the fingerprint unlocking function.
In one possible implementation manner, the generating the first power-on instruction includes: and acquiring a first power-on instruction stored in the last screen-off process, and calling the instruction sending interface to generate a first power-on instruction corresponding to the first power-on instruction.
Through the technical scheme, when the screen is on, the power-on instruction is generated not according to the available states of the AOD function and the fingerprint unlocking function, but rather the power-on instruction corresponding to the stored power-on instruction, so that the display screen can be normally powered on and turned on.
In one possible implementation, the generating the second power-down instruction includes: and if the AOD function and the fingerprint unlocking function of the electronic equipment are unavailable, an instruction sending interface is called to generate the second power-down instruction.
Through the technical scheme, when the screen is turned off, the power-down instruction is generated according to the available states of the AOD function and the fingerprint unlocking function, so that the stored power-down instruction is consistent with the available states of the AOD function and the fingerprint unlocking function.
In one possible implementation manner, the generating the second power-on instruction includes: and acquiring a second power-down instruction stored in the last screen-off process, and calling the instruction sending interface to generate a second power-up instruction corresponding to the second power-down instruction.
Through the technical scheme, when the screen is on, the power-on instruction is generated not according to the available states of the AOD function and the fingerprint unlocking function, but rather the power-on instruction corresponding to the stored power-on instruction, so that the display screen can be normally powered on and turned on.
In one possible implementation, the method further includes: and if the input event that the power key of the electronic equipment is triggered is generated when the display screen is on, or the electronic equipment does not generate any input event within the preset time, generating the screen-off instruction. Based on the technical scheme, the display screen can be controlled to be turned off in time by generating the screen-off instruction, so that the system power consumption is reduced, and the electric energy is saved.
In one possible implementation, the method further includes: and if an input event that the power key of the electronic equipment is triggered, the electronic equipment is lifted and the display screen is touched is generated when the display screen is turned off, generating the screen-lighting instruction. Based on the technical scheme, the display screen can be controlled to be on in time by generating the on-screen instruction, so that the normal use of the electronic equipment by a user is ensured.
In a second aspect, the present application provides an electronic device comprising a memory and a processor: wherein the memory is used for storing program instructions; the processor is configured to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, cause the electronic device to execute the display screen control method described above.
In a third aspect, the present application provides a chip coupled to a memory in an electronic device, where the chip is configured to control the electronic device to perform the display screen control method described above.
In a fourth aspect, the present application provides a computer storage medium storing program instructions that, when executed on an electronic device, cause the electronic device to perform the above-described display screen control method.
In addition, the technical effects of the second aspect to the fourth aspect may be referred to in the description related to the method designed in the method section, and are not repeated here.
Drawings
Fig. 1 is a schematic diagram of an off-screen display setting interface according to an embodiment of the present application.
Fig. 2 is another schematic diagram of an off-screen display setting interface according to an embodiment of the present application.
Fig. 3 is a flowchart of sending a power-up instruction and a power-down instruction to a display screen according to an embodiment of the present application.
Fig. 4 is a schematic diagram of generating a power-up instruction and a power-down instruction according to an embodiment of the present application.
Fig. 5 is a software architecture diagram of an electronic device according to an embodiment of the present application.
Fig. 6 is a schematic diagram of interaction of layers of a software architecture of an electronic device according to an embodiment of the present application.
Fig. 7 is a schematic diagram of interaction between layers of a software architecture of an electronic device according to an embodiment of the present application.
Fig. 8 is a flowchart of a display screen control method according to an embodiment of the present application.
Fig. 9 is a flowchart of a display screen control method according to another embodiment of the present application.
Fig. 10 is a schematic diagram of generating a power-up instruction and a power-down instruction according to another embodiment of the present application.
Fig. 11 is a flowchart of a display screen control method according to another embodiment of the present application.
Fig. 12 is a hardware architecture diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, "/" means or, unless otherwise indicated herein. For example, A/B may represent A or B. The term "and/or" in this application is merely an association relationship describing an association object, and means that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist simultaneously, and B exists alone. "at least one" means one or more. "plurality" means two or more than two. For example, at least one of a, b or c may represent: seven cases of a, b, c, a and b, a and c, b and c, a, b and c. The following embodiments and features of the embodiments may be combined with each other without conflict.
For detailed implementation of the display control method, reference may be made to the descriptions in the various embodiments below. In order to better understand the display screen control method provided in the embodiments of the present application, an application scenario of the display screen control method provided in the embodiments of the present application is described below with reference to fig. 1, fig. 2, and fig. 3.
In order to facilitate a user to learn about information of an electronic device, such as a date, a time, an incoming call, a push message, etc., without waking up the electronic device (i.e., without controlling the display screen of the electronic device to be on-screen), many electronic devices are configured with an all-day display (AOD, always On Display) function so that when the display screen of the electronic device is off-screen, an all-day display mode can be entered, and information such as a date, a time, an incoming call, a push message, etc., and an under-screen fingerprint unlock region are continuously displayed in an all-day display region. In the AOD mode, when a preset condition is triggered, the display screen can be controlled to be lightened, and the preset condition can be that a power key of the electronic equipment is triggered, the electronic equipment detects the lifting operation of a user, and the electronic equipment detects the operation of touching the display screen by the user. When the display screen is on, the power-on instruction is required to be sent based on the on state of the AOD function to control the display screen to be powered on, when the display screen is off, the power-off instruction is required to be sent based on the on state of the AOD function to control the display screen to be powered off, and the power-off instruction when the display screen is off and the power-on instruction when the display screen is on after the display screen is off have a one-to-one correspondence.
However, in the screen-off process, the on state of the AOD function may be changed, for example, the AOD function is originally turned on, when the electric quantity of the electronic device is too low, in order to save electricity, the AOD function is automatically turned off, and when the display screen is controlled to be on, a power-on instruction generated according to the on state of the AOD function does not correspond to a power-off instruction when the screen is off. That is, the power-on instruction actually generated when the screen is turned on after the screen is turned off may change along with the change of the on state of the AOD function, resulting in the failure of the power-on instruction when the screen is turned off, so that the display screen cannot be powered on when the screen is turned on, resulting in the failure of normal screen turning on of the display screen, and the display screen cannot respond to the operation of the user, resulting in the phenomenon of screen freezing, thereby affecting the user experience.
In an embodiment of the present application, the power-up Command and the power-down Command of the display screen are CMD (Command indicator) commands, for example, the power-up Command is CMD index1, and the power-down Command is CMD index2. The power-on instruction and the power-off instruction of the display screen are generated by an AOD management service (hwaodmaageservice), and the AOD management service generates the power-on instruction and the power-off instruction according to an on state or an available state of an AOD function and a fingerprint unlocking function (i.e., an off-screen fingerprint unlocking function) of the electronic device.
Referring to fig. 1, a schematic diagram of an off-screen display setting interface according to an embodiment of the present application is shown. The off-screen display setting interface comprises a control for controlling the off-screen display to be opened or closed and an option of an off-screen display mode, and when the off-screen display is opened and the off-screen display mode is full-day display, the AOD function of the electronic equipment is opened, namely the AOD function is available. When the AOD function or the fingerprint unlocking function of the electronic equipment is available, the AOD area or the fingerprint unlocking area needs to be continuously displayed, the power-down instruction is CMD 21, and the corresponding power-up instruction is CMD 22. When the display screen is controlled to be turned off, if the AOD function or the fingerprint unlocking function is available, the AOD management service generates a CMD 21 instruction as a power-down instruction and sends the CMD instruction to the display driving circuit to control the display screen to be powered down. When the display screen is controlled to be on, if the AOD function or the fingerprint unlocking function is available, the AOD management service generates a CMD 22 instruction as a power-on instruction and sends the CMD 22 instruction to the display screen driving circuit to control the power-on of the display screen.
Referring to fig. 2, another schematic diagram of an off-screen display setting interface according to an embodiment of the present application is shown. And when the off-screen display is closed or the off-screen display mode is not the full-day display, the AOD function of the electronic equipment is closed, namely the AOD function is unavailable. When the AOD function and the fingerprint unlocking function of the electronic equipment are unavailable, the AOD area and the fingerprint unlocking area do not need to be continuously displayed, the power-down instruction is CMD 20, and the corresponding power-up instruction is CMD 20. When the display screen is controlled to be turned off, if the AOD function and the fingerprint unlocking function are not available, the AOD management service generates a CMD 20 instruction as a power-down instruction and sends the CMD 20 instruction to the display screen driving circuit to control the display screen to be powered down. When the display screen is controlled to be on, if the AOD function and the fingerprint unlocking function are not available, the AOD management service generates a CMD 20 instruction as a power-on instruction and sends the CMD 20 instruction to the display screen driving circuit to control the power-on of the display screen.
Referring to fig. 3, a flowchart of sending a power-up instruction and a power-down instruction to a display screen according to an embodiment of the present application is shown. S101, judging whether an AOD function or a fingerprint unlocking function is available or not when a preset operation is detected. For example, the preset operation may be triggering a power key.
If neither the AOD function nor the fingerprint unlocking function is available, S102 is executed to generate a CMD 20 command, and the flow then proceeds to S106. If the AOD function or the fingerprint unlocking function is available, S103 is executed, and whether the preset operation is a screen-off operation is judged.
If the preset operation is not the off-screen operation, S104 is executed, it is determined that the preset operation is the on-screen operation, a CMD 22 command is generated, and then the flow proceeds to S106. If the preset operation is a screen-off operation, S105 is executed to generate a CMD 21 command.
And S106, sending the generated instruction to a display screen.
In an embodiment of the present application, the power-on instruction or the power-off instruction may be generated according to a determination result of whether the AOD function or the fingerprint unlocking function is available when the user performs the preset operation.
Referring to fig. 4, a schematic diagram of generating a power-on instruction and a power-off instruction according to an AOD function and a fingerprint unlocking function according to an embodiment of the present application is shown. When the screen-off operation is executed, a corresponding power-down instruction and power-up instruction are generated according to four conditions of availability of the AOD function and the fingerprint unlocking function, in the example of FIG. 4, AOD+ indicates that the AOD function is available, AOD-indicates that the AOD function is not available, finger+ indicates that the fingerprint unlocking function is available, and Finger-indicates that the fingerprint unlocking function is not available. Specifically, when the screen is turned off, if the AOD function and the fingerprint unlocking function are available, the power-down instruction is CMD 21, and when the screen is turned on under normal conditions, the AOD function and the fingerprint unlocking function are still available, and the power-up instruction is CMD 22 corresponding to the CMD 21; under abnormal conditions, after the electronic equipment enters a power saving mode due to the fact that the electric quantity is too low (for example, lower than 10%), when the electronic equipment is in a power saving mode, an AOD function is changed to be unavailable, a fingerprint unlocking function is still available, and a power-on instruction is CMD 22 corresponding to CMD 21. At this time, the power-up command CMD 22 corresponds to the power-down command CMD 21, and the display screen power-up can be controlled normally.
When the screen is turned off, if the AOD function is available and the fingerprint unlocking function is unavailable, the power-down instruction is CMD 21, and under normal conditions, when the screen is turned on, the AOD function is still available, the fingerprint unlocking function is still not available, and the power-up instruction is CMD 22 corresponding to the CMD 21; under abnormal conditions, the electronic equipment enters a power saving mode due to the fact that the electric quantity is too low, when the electronic equipment is in a screen-lighting mode, the AOD function is changed to be unavailable, the fingerprint unlocking function is still unavailable, and according to the available states of the AOD function and the fingerprint unlocking function, a power-on command is CMD 20 and is not corresponding to a power-off command CMD 21. At this time, the power-up command CMD 20 cannot control the power-up of the display.
When the screen is turned off, if the AOD function is unavailable and the fingerprint unlocking function is available, the power-down instruction is CMD 21, and when the screen is turned on under normal conditions, the AOD function is still unavailable, the fingerprint unlocking function is still available, and the power-up instruction is CMD 22 corresponding to the CMD 21; under abnormal conditions, the electronic equipment exits the power saving mode due to the fact that the electric quantity is increased (for example, the electric quantity of the electronic equipment is increased by charging the electronic equipment), when the electronic equipment is lightened, the AOD function is changed to be available, the fingerprint unlocking function is still available, and the power-on instruction is CMD 22 corresponding to CMD 21. At this time, the power-up command CMD 22 corresponds to the power-down command CMD 21, and the display screen power-up can be controlled normally.
When the screen is turned off, if the AOD function and the fingerprint unlocking function are not available, the power-down instruction is CMD 20, and under normal conditions, when the screen is turned on, the AOD function and the fingerprint unlocking function are not available, and the power-up instruction is CMD 20 corresponding to the CMD 20; under abnormal conditions, the electronic equipment exits from the power saving mode due to the increase of electric quantity, when the electronic equipment is on a screen, the AOD function is changed to be available, the fingerprint unlocking function is still not available, and according to the available states of the AOD function and the fingerprint unlocking function, the power-on command is CMD 22 and is not corresponding to the power-off command CMD 20. At this time, the power-up command CMD 22 cannot control the power-up of the display.
Based on the above example, after the display screen generates the power-on instruction according to the current available states of the AOD function and the fingerprint unlocking function to perform screen-off, the available states of the AOD function and the fingerprint unlocking function may be changed (for example, the available states of the electronic device are changed due to electric quantity change), so when the display screen is on, if the power-on instruction is generated according to the changed available states of the AOD function and the fingerprint unlocking function, the power-on instruction may not correspond to the power-off instruction when the screen is off last time, and the display screen on cannot be controlled normally.
Referring to fig. 5, a software architecture diagram of an electronic device according to an embodiment of the present application is shown. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. For example, the Android system is divided into four layers, namely, an application layer 101, a framework layer 102, an Android runtime (Android run) and system library 103, a hardware abstraction layer 104, a kernel layer 105 and a hardware layer 106 from top to bottom.
The application layer 101 may comprise a series of application packages. For example, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, device control services, etc.
The framework layer 102 provides an application programming interface (Application Programming Interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
Wherein the window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture. The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer 101 and the framework layer 102 run in virtual machines. The virtual machine executes java files of the application program layer and the framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library 103 may include a plurality of functional modules. Such as surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used for managing the display subsystem and providing fusion of 2D and 3D layers for a plurality of application programs. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The hardware abstraction layer 104 runs in user space, encapsulates kernel layer drivers, and provides a call interface to upper layers.
The kernel layer 105 is a layer between hardware and software. The kernel layer 105 contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
The kernel layer 105 is the core of the operating system of the electronic device, is a first layer of software expansion based on hardware, provides the most basic functions of the operating system, is the basis for the operating system to work, is responsible for managing the processes, the memory, the device drivers, the files and the network system of the system, and determines the performance and the stability of the system. For example, the kernel may determine the time an application is operating on a certain portion of hardware.
The kernel layer 105 includes hardware-closely related programs, such as interrupt handlers, device drivers, etc., and basic, common, higher frequency of operation modules, such as clock management modules, process scheduling modules, etc., and critical data structures. The kernel layer may be provided in the processor or cured in an internal memory.
The hardware layer 106 includes hardware of the electronic device, such as a display screen, keys, cameras, etc.
Referring to fig. 6 and fig. 7, an interaction diagram between layers of a software architecture of an electronic device according to an embodiment of the present application is shown.
In one embodiment of the present application, application layer 101 includes AOD application 1011, framework layer 102 includes input management service (InputManagerSevice) 1021, power management service (PowerManagerService, PMS) 1022, AOD management service (HwAodManagerService) 1023, display controller (TpController) 1024, display management service 1025, layer composition service 1026, kernel layer (or driver layer) 105 includes display driver circuit 1051, and hardware layer 106 includes power key 1061, display 194.
S201, after the power key is pressed, the pressing signal is triggered and sent to the input management service.
In an embodiment of the present application, the power key may generate a pressing signal when pressed by a user and send the pressing signal to the input management service, and the key code key of the power key is 26.
S202, the input management service generates an input event according to the pressing signal and distributes the input event to the power management service.
In one embodiment of the present application, the input management service includes an event processing center module (EventHub), an input read module (inputread), and an input dispatch module (inputdispatch). The event processing center module is used for monitoring input operation received by hardware equipment of the electronic equipment. The input reading module is used for acquiring input operation from the event processing center module, analyzing and processing the input operation, generating an input event which can be identified by the application program or the service, and facilitating the response of the application program or the service to the input event. The input distribution module is used for distributing the input event to the corresponding processing window.
In an embodiment of the present application, the event processing center module receives a pressing signal triggered by a power key pressing, and the input reading module is configured to obtain the pressing signal from the event processing center module, analyze and process the pressing signal, generate an input event identifiable by an application program or a service, and facilitate the application program or the service to respond to the input event. Specifically, the input reading module judges whether the display screen is in a bright screen state or a screen-off state currently, if the display screen is in the bright screen state currently, the input event corresponding to the pressing signal is determined to be the control of the display screen to stop the screen, and if the display screen is in the screen-off state currently, the input event corresponding to the pressing signal is determined to be the control of the display screen to stop the screen. The input distribution module is used for distributing the input event to the power management service, and controlling the display screen to be turned off or turned on through the power management service.
S203, the power management service informs the AOD management service to turn off or turn on.
In an embodiment of the present application, if the input event is to control the display screen to be turned off, the power management service invokes the first interface to send an off-screen notification instruction to the AOD management service, so as to notify the AOD management service to turn off the screen. If the input event is that the control display screen is on, the power management service call interface sends an on-screen notification to the AOD management service so as to notify the AOD management service to on-screen. For example, the first interface called is configTpInApMode (aodstate), if the input event is to control the display to be turned off, aodstate is 101, that is, the first interface called is configtp inoppmode (101); if the input event is to control the display to be on, aodstate is 102, that is, the first interface called is configtp inapplmode (102). The on-screen notification is Notify aod screen on, and the off-screen notification instruction is Notify aod screen off.
S204, the AOD management service constructs a display screen controller and sends the display screen state to be switched to the display screen controller.
In an embodiment of the application, the AOD management service invokes the second interface to construct the display controller and sends the display state to be switched to the display controller. For example, the second interface called may be tpontiller. Configtp inop mode (aodstate), if the input event is to control the display to be turned off, the display state aodstate to be switched is 101, that is, the second interface called is tpontiller configtp inop mode (101); if the input event is to control the display screen to be on, the state aodstate of the display screen to be switched is 102, that is, the second interface called is tpontiller.
S205, the display screen controller acquires the display screen state to be switched, and pauses the current on-off screen process.
In an embodiment of the present application, the display controller obtains a display state to be switched according to an aodstate in a second interface tpcontoller. For example, the third interface is suspendIfNeed (aodstate), if the aodstate is true, the third interface is called to pause the current screen-off process, and if the aodstate is false, the third interface is called to pause the current screen-on process. Continuing with the embodiment described in step S204, if the aodstate is 101, the display status to be switched is obtained as off-screen, and the third interface suspendIfNeed (true) may be invoked to pause the current off-screen process. If the aodstate is 102, the display screen to be switched is obtained to be in a bright screen state, and the third interface suspendIfNeed (false) can be called to pause the current bright screen process.
In an embodiment of the present application, if a screen-on/off process is executed normally, a CMD instruction during screen-off cannot be determined according to the available states of the AOD function and the fingerprint unlocking function, and a CMD instruction during screen-on is determined according to the CMD instruction during screen-off last time, so that the screen-on/off process needs to be suspended, the available states of the AOD function and the fingerprint unlocking function are determined, or the stored CMD instruction during screen-off last time is determined.
S206, the display screen controller judges whether the AOD function and the fingerprint unlocking function are available.
In an embodiment of the present application, an option for controlling a control of on-off display to be turned on or off and an on-off display mode is provided on an on-off display setting interface, and the display screen controller determines whether the AOD function is available by acquiring a control state of the control and the on-off display mode corresponding to the option. If the control state is on and the option of the off-screen display mode is full-day display, determining that the AOD function is available; if the control state is that the option of the closing or off-screen display mode is not displayed all the day, determining that the AOD function is not available.
In an embodiment of the application, the display screen controller judges whether the electronic device inputs a fingerprint, acquires a control state of a control on the fingerprint unlocking setting interface for controlling the unlocking or closing of the fingerprint, and judges whether a fingerprint unlocking function is available. If the electronic equipment inputs the fingerprint and the control state for controlling the unlocking or closing of the fingerprint is on, determining that the fingerprint unlocking function is available; if the electronic equipment does not input the fingerprint or the control state for controlling the unlocking of the fingerprint to be opened or closed is closed, determining that the fingerprint unlocking function is unavailable. In an embodiment of the present application, whether the electronic device inputs a fingerprint may be determined by determining whether the electronic device stores fingerprint image data, and if the electronic device stores fingerprint image data, determining that the electronic device has input a fingerprint; and if the electronic equipment does not store the fingerprint image data, determining that the electronic equipment does not input the fingerprint. Wherein the fingerprint comprises a front display screen fingerprint and/or a side fingerprint.
S207, the display controller issues a power-on instruction or a power-off instruction to the display driving circuit according to the judging result of whether the AOD function and the fingerprint unlocking function are available or not and the current screen-on and screen-off process.
In an embodiment of the present application, if the AOD function or the fingerprint unlocking function is available and is currently an off-screen process, the fourth interface is invoked to generate a first power-down instruction, and the first power-down instruction is sent to the display driving circuit. If the AOD function or the fingerprint unlocking function is available and is a screen-on process currently, judging whether the display controller stores a power-on instruction when the screen is turned off last time, if the display controller stores the power-on instruction when the screen is turned off last time and the power-on instruction when the screen is turned off last time is a first power-on instruction, calling a fourth interface to generate a first power-on instruction corresponding to the first power-on instruction, and sending the first power-on instruction to a display driving circuit; and if the display controller stores a power-down instruction in the last screen-off process, and the power-down instruction in the last screen-off process is a second power-down instruction, calling a fourth interface to generate a second power-up instruction corresponding to the second power-down instruction, and sending the second power-up instruction to the display driving circuit.
In an embodiment of the present application, if the AOD function and the fingerprint unlocking function are not available and are currently an off-screen process, the fourth interface is invoked to generate a second power-down instruction, and the second power-down instruction is sent to the display driving circuit. If the AOD function or the fingerprint unlocking function is unavailable and is a screen-on process currently, judging whether the display controller stores a power-on instruction when the screen is turned off last time, if the display controller stores the power-on instruction when the screen is turned off last time and the power-on instruction when the screen is turned off last time is a first power-on instruction, calling a fourth interface to generate a first power-on instruction corresponding to the first power-on instruction, and sending the first power-on instruction to a display driving circuit. And if the display controller stores a power-down instruction in the last screen-off process, and the power-down instruction in the last screen-off process is a second power-down instruction, calling a fourth interface to generate a second power-up instruction corresponding to the second power-down instruction, and sending the second power-up instruction to the display driving circuit.
In an embodiment of the present application, the first power-down instruction, the second power-down instruction, and the second power-up instruction are all CMD instructions, the fourth interface is sendCommandToTp (index), if the fourth interface is called to generate the first power-down instruction, the index of the CMD instruction is 21, if the fourth interface is called to generate the first power-up instruction corresponding to the first power-down instruction, the index of the CMD instruction is 22, if the fourth interface is called to generate the second power-down instruction, the index of the CMD instruction is 20, if the fourth interface is called to generate the second power-up instruction corresponding to the second power-down instruction, the index of the CMD instruction is 20. The fourth interface is an instruction sending interface of a power-on instruction and a power-off instruction.
That is, when the display screen is turned off, a power-down instruction is determined according to the available states of the AOD function and the fingerprint unlocking function, the power-down instruction is sent to the display driving circuit, the display screen is controlled to be powered down through the display driving circuit, and the power-down instruction is stored by the display screen controller. And then, when the display screen is on, determining a power-on instruction corresponding to the stored power-off instruction, sending the power-on instruction to a display driving circuit, and controlling the power-on of the display screen through the display driving circuit. If the power-on instruction in the last screen-off process is not stored by the display screen controller when the display screen is on, the power-on instruction can be determined according to the available states of the AOD function and the fingerprint unlocking function.
S208, the display driving circuit responds to the power-on instruction or the power-off instruction to control the power-on or the power-off of the display screen.
In an embodiment of the present application, if the display driving circuit receives the first power-down instruction or the second power-down instruction, the display screen is controlled to power down, and if the display driving circuit receives the first power-up instruction or the second power-up instruction, the display screen is controlled to power up.
And S209, after the display screen is powered down, the power management service sends an AOD view creation instruction to the AOD application.
In one embodiment of the present application, the power management service invokes a screen saver control function to send an AOD view creation instruction to the AOD application. For example, the screen saver control function may be a stream Controller.
S210, the AOD application creates an AOD view.
S211, if the AOD view creation is completed, the AOD application notifies a power management service that the AOD view is created.
S212, the power management service sends a screen saver start instruction to the AOD application.
In one embodiment of the present application, the power management service invokes a screen saver start function to send a screen saver start instruction to the AOD application. For example, the screen saver Start function may be onstreamingStart.
S213, the AOD application sends a dormancy instruction to the power management service.
In an embodiment of the present application, the AOD application may invoke a sleep start function start dozing to generate a sleep instruction and send the sleep instruction to the power management service.
S214, the power management service responds to the dormancy instruction and sends a state switching instruction to the layer composition service. The state switching instruction indicates the power management service to control the display screen to enter a dormant state.
In one embodiment of the present application, the power management service may invoke the state switching function notify screen state in response to the sleep instruction, sending the state switching instruction to the layer composition service. The state switching instruction instructs the layer synthesis service to control the display screen to enter a dormant state.
S215, the layer combination service sends a power supply setting instruction to the display driving circuit.
In one embodiment of the present application, the graphics layer receives a service response status switching command and sends a power setting command to the display driver circuit. For example, the layer composition service may call a power setting function set power mode and set the value of the power setting function set power mode to 1 to generate a power setting instruction.
S216, the display driving circuit responds to the power supply setting instruction to control the display screen to enter a dormant doze state.
In an embodiment of the present application, the display driving circuit sets the sleep state value to 1 and sends the sleep state value to the display screen, so as to control the display screen to enter the sleep state.
S217, the layer combination service sends a power supply setting instruction to the display management service.
In an embodiment of the present application, the power setting instruction further instructs the display management service to set the display screen state to the sleep state.
S218, the layer composition service returns the switching result of the sleep mode of the display screen to the power management service.
In an embodiment of the present application, the switching result of the sleep mode of the display screen may be represented by a finish return value, and the layer composition service sets the finish return value to 1 and sends the finish return value to the power management service.
S219, the AOD application listens for the display screen status of the display management service. Wherein the display screen state is a dormant state.
And S220, if the display screen state is the dormant state, the AOD application issues the content and the position of the AOD area to the power management service.
S221, the power management service issues the content and the position of the AOD area to the display driving circuit.
S222, the display driving circuit drives the display screen to display the AOD area based on the content and the position of the AOD area.
Based on the embodiment, through interaction of various levels in the bottom software architecture of the electronic device, the power-on instruction can be ensured to control the power-on of the display screen and accurately control the AOD area to display.
Referring to fig. 8, a flowchart of a display screen control method according to an embodiment of the present application is shown. The method is applied to the electronic equipment, and the display screen control method comprises the following steps:
s301, responding to the screen-off instruction, and judging whether an AOD function or a fingerprint unlocking function of the electronic equipment is available. If the AOD function or the fingerprint unlocking function of the electronic device is available, the flow proceeds to S302; if neither the AOD function nor the fingerprint unlocking function of the electronic device is available, the flow proceeds to S303.
In an embodiment of the present application, if an input event generated after a power key of an electronic device is triggered when a screen is turned on is detected, a screen-off instruction is generated. If the power key is detected to be released after being pressed, the power key is determined to be triggered by a user, a corresponding input event is generated, and then the display screen is controlled to be turned off in response to the input event. In another embodiment of the present application, the electronic device generates the off-screen command when no input event is generated within a preset time. The preset time may be an automatic screen locking time of the electronic device set by the user, for example, may be 30 seconds, 1 minute or 2 minutes, which is not limited in the embodiment of the present application. If the electronic device does not generate any input event within the preset time, it is determined that the electronic device does not receive user operation (such as key operation, touch operation and the like) for a long time, so that power consumption of the system is reduced, electric energy is saved, a screen-killing instruction is automatically generated, and a display screen is controlled to be killed.
In an embodiment of the present application, the display screen controller determines whether the AOD function is available by acquiring a control state for controlling on-off display on the off-screen display setting interface and an option for controlling on-off display mode. If the control state for controlling the on/off of the off-screen display is on and the option of the off-screen display mode is full-day display, determining that the AOD function is available; and if the option of controlling the on-off display or the off-screen display mode of the control state is not the full-day display, determining that the AOD function is unavailable.
In an embodiment of the application, the display screen controller judges whether the electronic device inputs a fingerprint, acquires a control state for controlling unlocking and opening or closing of the fingerprint on the fingerprint unlocking setting interface, and judges whether a fingerprint unlocking function is available. If the electronic equipment inputs the fingerprint and the control state for controlling the unlocking or closing of the fingerprint is on, determining that the fingerprint unlocking function is available; if the electronic equipment does not input the fingerprint or the control state for controlling the unlocking of the fingerprint to be opened or closed is closed, determining that the fingerprint unlocking function is unavailable. In an embodiment of the present application, whether the electronic device inputs a fingerprint may be determined by determining whether the electronic device stores fingerprint image data, and if the electronic device stores fingerprint image data, determining that the electronic device has input a fingerprint; and if the electronic equipment does not store the fingerprint image data, determining that the electronic equipment does not input the fingerprint.
S302, a first power-down instruction is generated, and the first power-down instruction is sent to the display screen to control the power-down of the display screen.
In an embodiment of the present application, when the screen is turned off, if the AOD function or the fingerprint unlocking function is available, the fourth interface is called by the display controller to generate a first power-down instruction, and the first power-down instruction is sent to the display driving circuit, and the power-down of the display screen is controlled by responding to the first power-down instruction. The first power-down command is CMD 21, and CMD 21 is only an example of the first power-down command, and in other embodiments, the first power-down command may be set to other specific commands according to the requirement.
S303, responding to the screen-lighting instruction, generating a first power-on instruction, and sending the first power-on instruction to the display screen to control the power-on of the display screen. The first power-on instruction corresponds to the first power-off instruction.
In an embodiment of the present application, if an input event generated by triggering a power key of an electronic device after a screen is turned off is detected, a screen-on instruction is generated. If the power key is detected to be released after being pressed, the power key is determined to be triggered by a user, a corresponding input event is generated, and then the display screen is controlled to be lightened in response to the input event. In another embodiment of the present application, if an input event generated after a display screen of an electronic device is touched after the display screen is turned off is detected, a screen-on instruction is generated. And if touch operation on the display screen is detected, generating a corresponding input event, and then responding to the input event to control the display screen to lighten. In another embodiment of the present application, if it is detected that the electronic device is lifted up during the screen-off, a screen-on command is generated. And if touch operation on the electronic equipment is detected, generating a corresponding input event, and then responding to the input event to control the display screen to be on.
In an embodiment of the present application, in a screen lighting process, no matter whether the AOD function and the fingerprint unlocking function are available or unavailable, a fourth interface is called by a display controller to generate a first power-on instruction corresponding to a first power-off instruction when the screen is turned off last time, the first power-on instruction is sent to a display driving circuit, and the display driving circuit responds to the first power-on instruction to control the power-on of the display screen. The first power-up instruction may be CMD 22, and CMD 22 is only used as an example of the first power-up instruction, and in other embodiments, the first power-up instruction may be set to other specific instructions according to the requirement.
S304, generating a second power-down instruction, sending the second power-down instruction to the display screen, and controlling the display screen to power down.
In an embodiment of the application, when the screen is turned off, if the AOD function and the fingerprint unlocking function are not available, the fourth interface is called by the display controller to generate a second power-down instruction, the second power-down instruction is sent to the display driving circuit, and the display screen is controlled to be powered down by responding to the second power-down instruction. The second power-down command may be CMD 20, and CMD 20 is only used as an example of the second power-down command, and in other embodiments, the second power-down command may be set to other specific commands according to the requirement.
S305, responding to the screen-lighting instruction, generating a second power-on instruction, and sending the second power-on instruction to the display screen to control the power-on of the display screen. The second power-on instruction corresponds to the second power-off instruction.
In an embodiment of the present application, in a screen lighting process, no matter whether the AOD function and the fingerprint unlocking function are available or unavailable, a fourth interface is called by a display controller to generate a second power-on instruction corresponding to a second power-off instruction when the screen is turned off last time, and the second power-on instruction is sent to a display driving circuit, and the display driving circuit responds to the second power-on instruction to control the power-on of the display screen. The first power-up instruction may be CMD 22, and CMD 22 is only used as an example of the first power-up instruction, and in other embodiments, the first power-up instruction may be set to other specific instructions according to the requirement.
Referring to fig. 9, a flowchart of a method for controlling a display screen according to another embodiment of the present application is shown. The method is applied to the electronic equipment, and the display screen control method comprises the following steps:
s401, when the electronic equipment receives a preset operation, judging whether an AOD function or a fingerprint unlocking function of the electronic equipment is available. If the AOD function or the fingerprint unlocking function of the electronic device is available, the flow proceeds to S402; if neither the AOD function nor the fingerprint unlocking function of the electronic device is available, the flow proceeds to S405.
In an embodiment of the present application, the preset operation is an operation that needs to be performed when the user controls the electronic device to turn on or off the screen, for example, may be an operation that triggers a power key of the electronic device. That is, when the electronic device receives an operation of triggering the power key, the electronic device controls the display screen to be on or off in response to the operation of triggering the power key. When the display screen is controlled to be on, a power-on instruction is required to be sent to control the display screen to be on, and when the display screen is controlled to be off, a power-off instruction is required to be sent to control the display screen to be off. The power-on instruction and the power-off instruction are generated according to the available states of the AOD function and the fingerprint unlocking function of the electronic device, so that whether the AOD function or the fingerprint unlocking function of the electronic device is available or not needs to be judged, and the available states of the AOD function and the fingerprint unlocking function are determined. The specific method for determining whether the AOD function or the fingerprint unlocking function of the electronic device is available is the same as the method for determining whether the AOD function or the fingerprint unlocking function of the electronic device is available in S301, and will not be described herein.
S402, judging whether the electronic equipment is currently executing a screen-off process or a screen-on process. If the electronic device is currently executing the screen-off process, the process goes to S403; if the electronic device is currently executing the screen-lighting process, the flow proceeds to S404.
In an embodiment of the present application, when the electronic device receives a preset operation, it determines whether the display screen is in a bright screen state or a screen-off state, if the display screen is in the bright screen state, the electronic device is currently executing a screen-off process, and if the display screen is in the screen-off state, the electronic device is currently executing a screen-on process.
S403, determining the index value index of the power-down instruction as the index value of the first power-down instruction.
In an embodiment of the present application, the power-down command is a CMD command, and the CMD command includes a command content and an index value, for example, CMD 21.
S404, determining that the index value of the power-on instruction is the index value of the first power-on instruction.
In an embodiment of the present application, the power-on command is a CMD command, and the CMD command includes a command content and an index value, for example, CMD 22.
S405, determining that the index value of the power-on instruction or the power-off instruction is the index value of the second power-off instruction.
S406, judging whether the electronic equipment is currently executing the screen-off process or the screen-on process. If the electronic device is currently executing the screen-off process, the flow proceeds to S407; if the electronic device is currently executing the screen-lighting process, the flow proceeds to S409.
In an embodiment of the present application, after determining the index value of the power-on instruction or the power-off instruction, it is determined again whether the electronic device is currently executing the screen-off process or the screen-on process, so that it is ensured that the power-off instruction is sent to the display screen when the screen-off process is processed, and the power-on instruction is sent to the display screen when the screen-on process is processed.
S407, determining the power-down instruction of the display screen as a first power-down instruction.
In an embodiment of the present application, the power-down instruction of the display screen is determined to be the first power-down instruction by assigning the power-down instruction of the display screen ofscreencmd to be the first power-down instruction.
S408, the first power-down instruction is sent to the display driving circuit, and the display screen is controlled to be powered down through the display driving circuit.
S409, judging whether the power-down instruction stored in the last screen-off process is a second power-down instruction. If the power-down instruction stored in the last screen-off process is the second power-down instruction, the process goes to S410; if the power-down instruction stored in the last screen-off is not the second power-down instruction, the flow proceeds to S412.
For example, in an embodiment of the present application, it is determined whether an index value of a power-down instruction stored at the time of last screen-off is 20, if the index value of the power-down instruction stored at the time of last screen-off is 20, it is determined that the power-down instruction stored at the time of last screen-off is a second power-down instruction; if the index value of the power-down instruction stored in the last screen-off process is not 20, determining that the power-down instruction stored in the last screen-off process is not a second power-down instruction. 20 are exemplary only, and are not limited in practice.
S410, determining that the index value of the power-on instruction is the index value of the second power-on instruction.
S411, sending a second power-on instruction to the display driving circuit, and controlling the power-on of the display screen through the display driving circuit.
S412, judging whether the power-down instruction stored in the last screen-off process is a first power-down instruction. If the power-down instruction stored in the last screen-off process is the first power-down instruction, the process goes to S413; if the power-down instruction stored in the last screen-off process is not the first power-down instruction, the process returns to S401.
S413, determining the index value of the power-on instruction as the index value of the first power-on instruction.
And S414, sending the first power-on instruction to a display driving circuit, and controlling the power-on of the display screen through the display driving circuit.
Referring to fig. 10, a schematic diagram of generating a power-on instruction and a power-off instruction according to an AOD function and a fingerprint unlocking function according to another embodiment of the present application is shown. In the example of fig. 9, aod+ indicates that the AOD function is available, AOD-indicates that the AOD function is not available, finger+ indicates that the fingerprint unlocking function is available, finger-indicates that the fingerprint unlocking function is not available, and corresponding power-down instruction and power-up instruction are generated according to four cases of whether the AOD function and the fingerprint unlocking function are available or not. Specifically, when the screen is turned off, if the AOD function and the fingerprint unlocking function are available, the power-on instruction is a first power-on instruction CMD 21, and under normal conditions, when the screen is turned on, the AOD function and the fingerprint unlocking function are still available, and the power-on instruction is a first power-on instruction CMD 22 corresponding to the first power-on instruction CMD 21; under abnormal conditions, the electronic equipment enters a power saving mode due to the fact that the electric quantity is too low (for example, lower than 10 percent), when the electronic equipment is in a bright screen, the AOD function is changed to be unavailable, the fingerprint unlocking function is still available, and the power-on instruction is a first power-on instruction CMD 22 corresponding to a first power-off instruction CMD 21. At this time, the first power-up command CMD 22 corresponds to the first power-down command CMD 21, and may normally control power-up of the display.
When the screen is turned off, if the AOD function is available and the fingerprint unlocking function is unavailable, the power-on instruction is a first power-on instruction CMD 21, and under normal conditions, when the screen is turned on, the AOD function is still available, the fingerprint unlocking function is still unavailable, and the power-on instruction is a first power-on instruction CMD 22 corresponding to the first power-on instruction CMD 21; under abnormal conditions, the electronic equipment enters a power saving mode due to the fact that the electric quantity is too low, when the electronic equipment is in a screen-lighting mode, the AOD function is changed to be unavailable, the fingerprint unlocking function is still unavailable, and the power-on command is still a first power-on command CMD 22 corresponding to the first power-off command CMD 21. At this time, the first power-up command CMD 22 may control power-up of the display.
When the screen is turned off, if the AOD function is unavailable and the fingerprint unlocking function is available, the power-on instruction is a first power-on instruction CMD 21, and when the screen is turned on under normal conditions, the AOD function is still unavailable and the fingerprint unlocking function is still available, and the power-on instruction is a first power-on instruction CMD 22 corresponding to the first power-on instruction CMD 21; under the abnormal condition, the electronic equipment exits from the power saving mode due to the increase of the electric quantity, when the electronic equipment is on a screen, the AOD function is changed to be available, the fingerprint unlocking function is still available, and the power-on instruction is a first power-on instruction CMD 22 corresponding to the first power-off instruction CMD 21. At this time, the first power-up command CMD 22 corresponds to the first power-down command CMD 21, and may normally control power-up of the display.
When the screen is turned off, if the AOD function and the fingerprint unlocking function are not available, the power-down instruction is a second power-down instruction CMD 20, and under normal conditions, when the screen is turned on, the AOD function and the fingerprint unlocking function are not available, and the power-up instruction is a second power-up instruction CMD 20 corresponding to the second power-down instruction CMD 20; under abnormal conditions, the electronic equipment exits from the power saving mode due to the increase of electric quantity, when the electronic equipment is on a screen, the AOD function is changed to be available, the fingerprint unlocking function is still not available, and the power-on instruction is still a second power-on instruction CMD 20 and corresponds to the second power-off instruction CMD 20. At this time, the second power-up command CMD 20 may control the power-up of the display.
That is, after the display screen generates the power-down instruction to turn off the screen according to the current available states of the AOD function and the fingerprint unlocking function, whether the available states of the AOD function and the fingerprint unlocking function are changed or not is not, so that when the display screen is on, a power-up instruction corresponding to the power-down instruction when the display screen is off is generated, and the display screen can be normally controlled to be on.
Referring to fig. 11, a flowchart of a method for controlling a display screen according to another embodiment of the present application is shown. The method is applied to the electronic equipment, and the display screen control method comprises the following steps:
S501, it is determined whether an AOD function or a fingerprint unlocking function of the electronic device is available. If the AOD function or the fingerprint unlocking function of the electronic device is available, the flow proceeds to S402; if neither the AOD function nor the fingerprint unlocking function of the electronic device is available, the flow proceeds to S405.
S502, judging whether the electronic equipment is currently executing a screen-off process or a screen-on process. If the electronic device is currently executing the screen-off process, the flow proceeds to S503; if the electronic device is currently executing the screen-lighting process, the flow proceeds to S504.
S503, determining that the index value of CMD is 20.
S504, determining that the index value of the CMD is CMD22.
S505, determining that the index value of CMD is CMD21.
S506, judging whether the electronic device is currently executing the screen-off process or the screen-on process. If the electronic device is currently executing the screen-off process, the flow proceeds to S407; if the electronic device is currently executing the screen-lighting process, the flow proceeds to S409.
S507, the power-down instruction offScreen CMD of the display screen is CMD21.
S508, issuing an instruction to the display driving circuit.
S509, judging whether the power-down instruction offScreen CMD stored in the last screen-off process is CMD20. If the power-down instruction stored in the last screen-off process is CMD, the flow goes to S510; if the power-down instruction stored in the last turn-off is not CMD20, the flow proceeds to S511.
S510, determining that the power-on command is CMD20, and then, the flow proceeds to S508.
S512, judging whether the power-down instruction offScreen CMD stored in the last screen-off process is CMD21. If the power-down command stored in the last screen-off is CMD21, the flow proceeds to S413.
S513, the power-on instruction is determined to be CMD22, and then the flow proceeds to S508.
The present embodiment further provides an electronic device 100, referring to fig. 12, where the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an Ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a netbook, a cellular phone, a personal digital assistant (Personal Digital Assistant, PDA), an augmented Reality (Augmented Reality, AR) device, a Virtual Reality (VR) device, an artificial intelligence (Artificial Intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device, and/or a smart city device, and the specific type of the electronic device 100 is not particularly limited in the embodiments of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (Subscriber Identification Module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor, DSP), a baseband processor, and/or a Neural network processor (Neural-network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (Inter-integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), a General-Purpose Input/Output (GPIO) interface, a subscriber identity module (Subscriber Identity Module, SIM) interface, and/or a universal serial bus (Universal Serial Bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous Serial bus, comprising a Serial Data Line (SDA) and a Serial clock Line (Derail Clock Line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (Camera Serial Interface, CSI), display serial interfaces (Display Serial Interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices 100, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (Low Noise Amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (Wireless Local Area Networks, WLAN) (e.g., wireless fidelity (Wireless Fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field wireless communication technology (Near Field Communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (Global System For Mobile Communications, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), time division code division multiple access (Time-Division Code Division Multiple Access, TD-SCDMA), long term evolution (Long Term Evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (Global Positioning System, GPS), a global navigation satellite system (Global Navigation Satellite System, GLONASS), a beidou satellite navigation system (Beidou Navigation Satellite System, BDS), a Quasi zenith satellite system (Quasi-Zenith Satellite System, QZSS) and/or a satellite based augmentation system (Satellite Based Augmentation Systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor controlled by the display screen and is connected with the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), an Active-matrix Organic Light-Emitting Diode (AMOLED) or an Active-matrix Organic Light-Emitting Diode (Matrix Organic Light Emitting Diode), a flexible Light-Emitting Diode (Flex), a mini, a Micro-OLED, a quantum dot Light-Emitting Diode (Quantum Dot Light Emitting Diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (Charge Coupled Device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (Moving Picture Experts Group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a Neural-Network (NN) computing processor, and can rapidly process input information by referencing a biological Neural Network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The internal Memory 121 may include one or more random access memories (Random Access Memory, RAM) and one or more Non-Volatile memories (NVM).
The Random Access Memory may include Static Random-Access Memory (SRAM), dynamic Random-Access Memory (Dynamic Random Access Memory, DRAM), synchronous dynamic Random-Access Memory (Synchronous Dynamic Random Access Memory, SDRAM), double data rate synchronous dynamic Random-Access Memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM, e.g., fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.;
the nonvolatile memory may include a disk storage device, a flash memory (flash memory).
The FLASH memory may include NOR FLASH, NAND FLASH, 3d nand FLASH, etc. divided according to an operation principle, may include Single-Level Cell (SLC), multi-Level Cell (MLC), triple-Level Cell (TLC), quad-Level Cell (QLC), etc. divided according to a storage specification, may include universal FLASH memory (Universal Flash Storage, UFS), embedded multimedia memory card (embedded Multi Media Card, eMMC), etc. divided according to a storage specification.
The random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like.
The nonvolatile memory may store executable programs, store data of users and applications, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
The external memory interface 120 may be used to connect external non-volatile memory to enable expansion of the memory capabilities of the electronic device 100. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external nonvolatile memory.
The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. One or more computer programs are configured to be executed by the processor 110. The one or more computer programs include a plurality of instructions that when executed by the processor 110, implement the screen display detection method performed on the electronic device 100 in the above embodiment to implement the screen display detection function of the electronic device 100.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device 100 platform (Open Mobile Terminal Platform, OMTP) standard interface, a american cellular telecommunications industry association (Cellular Telecommunications Industry Association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100. The present embodiment also provides a computer storage medium, in which computer instructions are stored, which when executed on the electronic device 100, cause the electronic device 100 to execute the above-mentioned related method steps to implement the display screen control method in the above-mentioned embodiment.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement the display screen control method in the above-mentioned embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component, or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer-executable instructions, and when the device is operated, the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the display screen control method in each method embodiment.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit may be stored in a readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that the above embodiments are merely for illustrating the technical solution of the present application and not for limiting, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present application may be modified or substituted without departing from the spirit and scope of the technical solution of the present application.

Claims (14)

1. A display screen control method applied to an electronic device, the method comprising:
responding to a screen-off instruction, and judging whether an AOD function or a fingerprint unlocking function of the electronic equipment is available;
if the AOD function or the fingerprint unlocking function of the electronic equipment is available, generating a first power-down instruction, and sending the first power-down instruction to a display screen of the electronic equipment to control the display screen to be powered down; responding to a screen-lighting instruction, generating a first power-on instruction, and sending the first power-on instruction to the display screen to control the power-on of the display screen, wherein the first power-on instruction corresponds to the first power-off instruction;
if the AOD function and the fingerprint unlocking function of the electronic equipment are unavailable, generating a second power-down instruction, and sending the second power-down instruction to the display screen to control the display screen to be powered down; and responding to a screen-lighting instruction, generating a second power-on instruction, and sending the second power-on instruction to the display screen to control the power-on of the display screen, wherein the second power-on instruction corresponds to the second power-off instruction.
2. The display control method of claim 1, wherein the electronic device provides an off-screen display setup interface including controls for controlling on or off of an off-screen display and options for selecting an off-screen display mode.
3. The display screen control method of claim 2, wherein the determining whether the AOD function of the electronic device is available comprises:
acquiring a control state of the control on the off-screen display setting interface and an off-screen display mode corresponding to the option;
if the control state is on and the off-screen display mode corresponding to the option is full-day display, determining that the AOD function is available; or (b)
And if the control state is closed or the off-screen display mode corresponding to the option is not full-day display, determining that the AOD function is unavailable.
4. The display screen control method of claim 1, wherein the determining whether a fingerprint unlocking function of the electronic device is available comprises:
judging whether the electronic equipment inputs a fingerprint or not, and acquiring a control state of a fingerprint control on a fingerprint unlocking setting interface, wherein the control state controls the fingerprint unlocking to be opened or closed;
if the electronic equipment inputs the fingerprint and the control state of the fingerprint control is open, determining that the fingerprint unlocking function is available; or (b)
And if the electronic equipment does not input the fingerprint or the control state of the fingerprint control is closed, determining that the fingerprint unlocking function is unavailable.
5. The method of claim 1, wherein the first power-down command, the first power-up command, the second power-down command, and the second power-up command are all preset CMD commands, and the preset CMD commands include command contents and index values.
6. The display screen control method of claim 1, wherein the generating the first power down instruction comprises:
and if the AOD function or the fingerprint unlocking function of the electronic equipment is available, an instruction sending interface is called to generate the first power-down instruction.
7. The display screen control method of claim 6, wherein the generating the first power-up instruction comprises:
and acquiring a first power-on instruction stored in the last screen-off process, and calling the instruction sending interface to generate a first power-on instruction corresponding to the first power-on instruction.
8. The display screen control method of claim 1, wherein the generating the second power-down instruction comprises:
and if the AOD function and the fingerprint unlocking function of the electronic equipment are unavailable, an instruction sending interface is called to generate the second power-down instruction.
9. The display screen control method of claim 8, wherein the generating the second power-up instruction comprises:
And acquiring a second power-down instruction stored in the last screen-off process, and calling the instruction sending interface to generate a second power-up instruction corresponding to the second power-down instruction.
10. The display screen control method of claim 1, wherein the method further comprises:
and if the input event that the power key of the electronic equipment is triggered is generated when the display screen is on, or the electronic equipment does not generate any input event within the preset time, generating the screen-off instruction.
11. The display screen control method of claim 10, wherein the method further comprises:
and if an input event that the power key of the electronic equipment is triggered, the electronic equipment is lifted or the display screen is touched is generated when the display screen is turned off, generating the screen-lighting instruction.
12. An electronic device, the electronic device comprising a memory and a processor:
wherein the memory is used for storing program instructions;
the processor configured to read and execute the program instructions stored in the memory, which when executed by the processor, cause the electronic device to perform the display screen control method according to any one of claims 1 to 11.
13. A chip coupled to a memory in an electronic device, wherein the chip is configured to control the electronic device to perform the display control method of any one of claims 1 to 11.
14. A computer storage medium storing program instructions which, when run on an electronic device, cause the electronic device to perform the display screen control method of any one of claims 1 to 11.
CN202310659955.7A 2023-06-05 2023-06-05 Display screen control method and related equipment Pending CN117707405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310659955.7A CN117707405A (en) 2023-06-05 2023-06-05 Display screen control method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310659955.7A CN117707405A (en) 2023-06-05 2023-06-05 Display screen control method and related equipment

Publications (1)

Publication Number Publication Date
CN117707405A true CN117707405A (en) 2024-03-15

Family

ID=90161268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310659955.7A Pending CN117707405A (en) 2023-06-05 2023-06-05 Display screen control method and related equipment

Country Status (1)

Country Link
CN (1) CN117707405A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143275A (en) * 2010-11-26 2011-08-03 华为终端有限公司 Mobile terminal display method and mobile terminal
JP2012231951A (en) * 2011-04-28 2012-11-29 Sankyo Co Ltd Managing apparatus
CN110581904A (en) * 2018-06-11 2019-12-17 Oppo广东移动通信有限公司 Control method, control device, electronic device, and storage medium
CN115257598A (en) * 2022-08-08 2022-11-01 芜湖汽车前瞻技术研究院有限公司 Power-on and power-off control method and vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143275A (en) * 2010-11-26 2011-08-03 华为终端有限公司 Mobile terminal display method and mobile terminal
JP2012231951A (en) * 2011-04-28 2012-11-29 Sankyo Co Ltd Managing apparatus
CN110581904A (en) * 2018-06-11 2019-12-17 Oppo广东移动通信有限公司 Control method, control device, electronic device, and storage medium
CN115257598A (en) * 2022-08-08 2022-11-01 芜湖汽车前瞻技术研究院有限公司 Power-on and power-off control method and vehicle

Similar Documents

Publication Publication Date Title
CN113704014B (en) Log acquisition system, method, electronic device and storage medium
WO2021169337A1 (en) In-screen fingerprint display method and electronic device
CN114443277A (en) Memory management method and device, electronic equipment and computer readable storage medium
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
CN114168065B (en) Method and device for adjusting memory configuration parameters
CN113641271A (en) Application window management method, terminal device and computer readable storage medium
CN115904297A (en) Screen display detection method, electronic device and storage medium
CN113986369A (en) Internet of things equipment control method and system, electronic equipment and storage medium
CN117130541B (en) Storage space configuration method and related equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN115482143B (en) Image data calling method and system for application, electronic equipment and storage medium
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN117707405A (en) Display screen control method and related equipment
CN115206308A (en) Man-machine interaction method and electronic equipment
CN117271170B (en) Activity event processing method and related equipment
CN116703691B (en) Image processing method, electronic device, and computer storage medium
CN116709609B (en) Message delivery method, electronic device and storage medium
CN117013660B (en) Charging icon display method and electronic equipment
WO2023246783A1 (en) Method for adjusting device power consumption and electronic device
CN116684520B (en) Shutdown method, electronic equipment, storage medium and chip
WO2024045841A1 (en) Storage method and apparatus, and electronic device
WO2024032430A1 (en) Memory management method and electronic device
WO2023051036A1 (en) Method and apparatus for loading shader
CN117707449A (en) Display control method and related equipment
CN114385282A (en) Theme color conversion method, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination