CN117707659A - Screen-extinguishing display method and terminal equipment - Google Patents

Screen-extinguishing display method and terminal equipment Download PDF

Info

Publication number
CN117707659A
CN117707659A CN202310834500.4A CN202310834500A CN117707659A CN 117707659 A CN117707659 A CN 117707659A CN 202310834500 A CN202310834500 A CN 202310834500A CN 117707659 A CN117707659 A CN 117707659A
Authority
CN
China
Prior art keywords
screen
display
state
terminal device
view
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
CN202310834500.4A
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 CN202310834500.4A priority Critical patent/CN117707659A/en
Publication of CN117707659A publication Critical patent/CN117707659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The screen-extinguishing display method and the terminal equipment are beneficial to avoiding the phenomenon that the terminal equipment generates flashing frequency when displaying the screen-extinguishing display interface in a horizontal screen mode, and improving user experience. The method comprises the following steps: detecting a screen-off signal, and switching the screen state of the terminal equipment from a screen-on state to a screen-off state; under the condition that screen-extinguishing display is required and the current screen direction of the terminal equipment is the horizontal screen direction, drawing a first view based on a first window layout parameter, wherein the foreground color of the first view is black, and the first window layout parameter is related to the current screen direction; switching the screen state of the terminal equipment from the screen-off state to the screen-off display state, and displaying a first view; adjusting the first window layout parameters into second window layout parameters, drawing a second view based on the second window layout parameters, wherein the foreground color of the second view is empty, and the second window layout parameters are related to the vertical screen direction; a second view is displayed.

Description

Screen-extinguishing display method and terminal equipment
Technical Field
The application relates to the technical field of terminals, in particular to a screen-extinguishing display method and terminal equipment.
Background
With the development of terminal devices, most terminal devices support a normally bright display (always on display, AOD) function in a standby state, which may also be referred to as "off-screen display". Under the condition that the normally-bright display function is started, after the terminal equipment is turned off, preset information of screen-off display can be displayed on the screen of the terminal equipment, and an interface for displaying the information of screen-off display can be called a screen-off display interface. The information displayed on the screen may include, for example, time, power, personality pattern, notification, and the like.
Currently, most terminal devices support a screen rotation function, for example, a screen is switched from a vertical screen to a horizontal screen, and the terminal device needs to switch a vertical screen display interface to a horizontal screen display interface. In one possible scenario, the terminal device is in an awake state and displays a cross-screen display interface. And the terminal equipment responds to the pressing operation of the user on the power key, enters a standby state and displays a screen-extinguishing display interface.
However, the terminal device may display a screen-extinguishing display interface of a horizontal screen first, and then display a screen-extinguishing display interface of a vertical screen, so that an abnormal display scene appears in the terminal device, that is, a phenomenon of flashing frequency is generated when the screen-extinguishing display interface is displayed, which results in poor user experience.
Disclosure of Invention
The application provides a screen-extinguishing display method and terminal equipment, and the method is beneficial to avoiding the phenomenon of frequency flashing generated when the terminal equipment displays a screen-extinguishing display interface in a horizontal screen mode, and improving user experience.
In a first aspect, a method for displaying a screen of interest is provided, which is applied to a terminal device, and the method includes: detecting a screen-off signal, and switching the screen state of the terminal equipment from a screen-on state to a screen-off state; under the condition that screen-extinguishing display is required and the current screen direction of the terminal equipment is the horizontal screen direction, drawing a first view based on a first window layout parameter, wherein the foreground color of the first view is black, and the first window layout parameter is related to the current screen direction; switching the screen state of the terminal equipment from the screen-off state to the screen-off display state, and displaying a first view; adjusting the first window layout parameters into second window layout parameters, drawing a second view based on the second window layout parameters, wherein the foreground color of the second view is empty, and the second window layout parameters are related to the vertical screen direction; a second view is displayed.
According to the screen-off display method provided by the embodiment of the application, after the screen-off signal is detected, the screen state of the terminal equipment is switched from the screen-on state to the screen-off state; under the condition that screen-extinguishing display is required and the current screen direction of the terminal equipment is the horizontal screen direction, drawing a first view based on a first window layout parameter, wherein the foreground color of the first view is black, and the first window layout parameter is related to the current screen direction; switching the screen state of the terminal equipment from the screen-off state to the screen-off display state, and displaying a first view; and adjusting the first window layout parameters into second window layout parameters, and drawing and displaying a second view based on the second window layout parameters, wherein the foreground color of the second view is empty, and the second window layout parameters are related to the vertical screen direction. In this way, the terminal device displays the first view with black foreground color, so that the user cannot see the screen-extinguishing display interface of the horizontal screen, after the window layout parameters are adjusted, the second view with empty foreground color is drawn and displayed based on the adjusted window, and when the terminal device starts drawing the view based on the horizontal screen layout parameters and the vertical screen layout parameters are not adjusted, the screen-extinguishing display interface of the horizontal screen is prevented from being displayed, so that the abnormal display scene of the screen-flashing appears, and the user experience is improved.
Specifically, the detection of the off-screen signal by the terminal device may be that the terminal device detects the off-screen signal in response to a pressing operation of a power key by a user. The detection of the off-screen signal by the terminal device may be that the terminal device does not detect the operation of the user within a preset time, and the off-screen signal is detected.
It should be understood that after the screen state of the terminal device is switched from the bright screen state to the off screen state, the display screen of the terminal device is turned off.
Specifically, the first window layout parameter may be a window direction of the current screen. Alternatively, the first window layout parameter may be the width and height of the window of the current screen. The second window layout parameter may be the width and height of the window in the portrait orientation, or the second window layout parameter may also be the portrait window orientation.
Specifically, the following possible implementations of adjusting the first window layout parameter to the second window layout parameter are possible.
In one possible implementation, the first window layout parameter is the width and height of the window of the current screen, and the second window layout parameter is the width and height of the window in the portrait orientation. The first window layout parameter is adjusted to the second window layout parameter as follows: and taking the height of the window in the vertical screen direction as the width of the adjusted window, and taking the width of the window in the vertical screen direction as the height of the adjusted window to obtain the adjusted window layout parameter, namely the second window layout parameter. For example, the first window layout parameter has a width of 2 and a height of 1, and the adjusted window layout parameter has a width of 1 and a height of 2, i.e., the second window layout parameter has a width of 1 and a height of 2.
In another possible implementation, the first window layout parameter is a window direction of the current screen and the second window layout parameter is a vertical screen window direction. The first window layout parameter is adjusted to the second window layout parameter as follows: and adjusting the window direction from the horizontal screen direction to the vertical screen direction. For example, the window direction of the first window layout parameter is a horizontal screen direction, and the adjusted window direction is a vertical screen direction, that is, the window direction in the second window layout parameter is a vertical screen direction.
Specifically, the process of drawing the first view may be: firstly, drawing a background layer of the first view, then drawing a layer corresponding to the display element of the screen, and finally drawing a black foreground layer.
It should be appreciated that the layer corresponding to the display style on the screen may include multiple sub-views. When each of the plurality of sub-views is drawn, it is necessary to measure the width and height of each sub-view, and draw the corresponding sub-view according to the width and height of each sub-view.
Alternatively, the foreground color being black means that the color of the foreground color layer is black, and the RGB color value code of each pixel point of the foreground color layer may be set to (0, 0), or the color value code of each pixel point of the foreground color layer may be set to #000000 according to a hexadecimal color table.
Alternatively, the foreground color of the second view may be null, or the foreground color layer may not be drawn when the second view is drawn, by setting the foreground color layer to a null value (for example, null). The implementation manner of the terminal device to draw the second view may be as follows:
in one possible implementation, the terminal device draws a background layer of the first view first, draws a layer corresponding to the screen display element of the message screen, and draws an empty foreground layer.
In another possible implementation manner, the terminal device draws a background layer of the first view first, and draws a layer corresponding to the screen display element.
With reference to the first aspect, in some implementations of the first aspect, switching the screen state of the terminal device from the on-screen state to the off-screen state includes: the battery management service module sends a first screen state switching request to the layer management service module, wherein the first screen state switching request is used for requesting to switch the screen state of the terminal equipment from a bright screen state to a dead screen state; the layer combination service module sends a first screen state switching request to the display frame module and the display driver respectively; the display frame module and the display driver respectively switch the screen state of the terminal equipment from a bright screen state to a screen-off state; when the battery management service module monitors that the screen state in the display frame module is switched to the off-screen state, a power-down request is sent to the display driver; the display driver performs a power-down operation of the display screen based on the power-down request.
With reference to the first aspect, in certain implementations of the first aspect, drawing the first view based on the first window layout parameter includes: the battery management service module adjusts the information screen display service through the information screen display application; the screen-extinguishing display application transmits a second window layout parameter to the window management service module; the window management service module transmits a first drawing request to the screen-extinguishing display application, wherein the first drawing request carries a first window layout parameter; the screen-extinguishing display application draws a first view based on the first window layout parameters; adjusting the first window layout parameter to a second window layout parameter, comprising: the window management service module adjusts the first window layout parameters to second window layout parameters; drawing a second view based on a second window layout parameter, comprising: the window management service module transmits a second drawing request to the screen-extinguishing display application, wherein the second drawing request carries second window layout parameters; the off-screen display application draws a second view based on the second window layout parameters.
With reference to the first aspect, in certain implementation manners of the first aspect, before drawing the first view, the method further includes: the screen-extinguishing display application determines that the current screen direction of the terminal equipment is the horizontal screen direction based on the width and the height of the window.
It should be understood that the width and height of the window, that is, the width and height of the window of the current screen, determines the current screen direction of the terminal device to be the horizontal screen direction in case that the width is greater than the height, and determines the current screen direction of the terminal device to be the vertical screen direction in case that the width is less than the height.
The screen direction is determined through the width and the height of the window, and compared with the method that the sensor collects and reports gravity data, the screen direction is determined according to the gravity data, the screen direction is calculated more quickly, and the power consumption is reduced.
With reference to the first aspect, in some implementation manners of the first aspect, switching the screen state of the terminal device from the off-screen state to the off-screen display state includes: the battery management service module sends a second screen state switching request to the layer management service module, wherein the second screen state switching request is used for requesting to switch the screen state of the terminal equipment from the screen-off state to the screen-off display state; the layer combination service module sends a second screen state switching request to the display frame module and the display driver respectively; the display frame module and the display driver respectively switch the screen state of the terminal equipment from a screen-off state to a screen-off display state; when the screen state in the display frame module is monitored to be switched to the screen-off display state, the screen-off display application transmits a backlight instruction to the battery management service module; the battery management service module responds to the backlight down instruction and sends a power-on request to the display driver; the display driver performs a power-on operation of the display screen based on the power-on request.
With reference to the first aspect, in certain implementation manners of the first aspect, the battery management service module sends a power-on request to the display driver in response to the lower backlight instruction, including: and the battery management service module repeatedly sends the power-on request to the display driver for a plurality of times under the condition that the power-on success notification from the display driver is not received, until the power-on success notification is received.
The power-on request is repeatedly sent to the display driving module, so that the problem that a screen display interface of a screen can not be displayed due to power-on failure caused when the screen state of the display frame module is successfully switched and the screen state of the display driving is not successfully switched is solved, and the stability of the screen display of the terminal equipment is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: the battery management service module judges whether the repeated sending times of the power-on request are equal to a preset upper limit value or not; repeating the sending of the power-on request to the display driver a plurality of times, comprising: and under the condition that the repeated sending times of the power-on request are smaller than the preset upper limit value, the battery management service module repeatedly sends the power-on request for a plurality of times.
It should be understood that, when the number of repeated sending times of the power-on request is greater than the preset upper limit value and the power-on fails, the battery management service module reports the abnormal power-on. The power-on anomaly may be obtained through a code log.
By setting the preset upper limit value, the problem that the power-on current process enters the dead loop when the power-on failure of the display drive is caused by other faults can be solved.
With reference to the first aspect, in some implementations of the first aspect, switching the screen state of the terminal device from the on-screen state to the off-screen state includes: setting a screen state parameter as a first gear, wherein the screen state parameter comprises screen refreshing frequency and screen brightness, the screen refreshing frequency corresponding to the first gear is the first frequency, and the screen brightness corresponding to the first gear is the first brightness.
It should be understood that the screen states are different and the gear positions corresponding to the screen state parameters are different. The first frequency is 0 and the first brightness is 0.
Optionally, the screen state parameter of the bright screen state may be a third gear, the screen refresh frequency corresponding to the third gear is a third frequency, and the screen brightness corresponding to the third gear is between the first brightness and the third brightness. The third frequency is greater than the first frequency.
With reference to the first aspect, in some implementation manners of the first aspect, switching the screen state of the terminal device from the off-screen state to the off-screen display state includes: setting the screen state parameter as a second gear, wherein the screen state parameter comprises screen refreshing frequency and screen brightness, the screen refreshing frequency corresponding to the second gear is the second frequency, and the screen brightness corresponding to the second gear is between the first brightness and the second brightness.
It will be appreciated that the second frequency is greater than the first frequency and less than the third frequency, and that the second brightness is greater than the first brightness and less than the third brightness.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: and under the condition that a screen-extinguishing display switch of the terminal equipment is turned on, determining that screen-extinguishing display is required.
Specifically, the on-screen display switch is turned on, which means that the user sets to turn on the on-screen display in the on-screen display application program, so that the on-screen display interface is displayed after the terminal equipment is turned off.
With reference to the first aspect, in certain implementation manners of the first aspect, determining that the screen-extinguishing display is required includes: under the condition that a screen-extinguishing display switch of the terminal equipment is turned on and the terminal equipment meets a first preset condition, determining that screen-extinguishing display is required, wherein the first preset condition comprises at least one of the following: the electric quantity of the terminal equipment is larger than a preset value; alternatively, the terminal device does not detect the proximity light.
And 1, determining that screen-extinguishing display is required under the condition that a screen-extinguishing display switch of the terminal equipment is turned on and the electric quantity of the terminal equipment is larger than a preset value.
And 2, determining that screen-extinguishing display is required under the condition that a screen-extinguishing display switch of the terminal equipment is turned on and the terminal equipment does not detect the proximity light.
And 3, when a screen-extinguishing display switch of the terminal equipment is turned on, and the electric quantity of the terminal equipment is larger than a preset value and the terminal equipment does not detect the proximity light, determining that screen-extinguishing display is required.
Alternatively, the absence of detection of the proximity light means that the light sensor of the terminal device does not detect the light source. Under the condition that the display screen interface of the terminal equipment is shielded, the light sensor of the terminal equipment cannot detect light. For example, the display screen interface of the terminal device is placed facing the desktop. As another example, the terminal device is placed in a pocket.
By setting the condition that the power is low or the light is not detected, the terminal equipment can turn off the screen when the user does not need to look over the information screen display interface, so that the power consumption is reduced and the electric quantity consumption is reduced.
With reference to the first aspect, in certain implementations of the first aspect, drawing the first view includes: drawing a first view under the conditions that screen-extinguishing display is required, the current screen direction of the terminal equipment is the horizontal screen direction, and the terminal equipment meets a second preset condition, wherein the second preset condition comprises any one of the following: the display screen is a non-folding screen; or the display screen is an external display screen of the terminal equipment, and the folding screen is in a completely folded state.
It should be understood that the above-described fully folded state refers to the state in which the inner display of the folding screen is in full engagement.
In a possible implementation manner, the folding manner of the terminal device is transverse folding, and transverse folding can be understood as folding along the long axis of the terminal device, and can also be understood as folding the terminal device left and right.
With reference to the first aspect, in certain implementations of the first aspect, the off-screen signal is generated based on a user pressing an electric power key; or, the off-screen signal is generated based on the fact that the terminal device does not detect user operation within a preset time.
In a second aspect, a terminal device is provided for performing the method in any of the possible implementations of the first aspect. In particular, the terminal device comprises means for performing the method in any of the possible implementations of the first aspect described above.
In one design, the terminal device may include modules corresponding to the methods/operations/steps/actions described in the first aspect, where the modules may be hardware circuits, software, or a combination of hardware circuits and software.
In a third aspect, there is provided a terminal device comprising: a processor and a memory, the processor being configured to read instructions stored in the memory to perform the method of any one of the possible implementations of the first aspect.
Optionally, the processor is one or more and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transient (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
The terminal device in the above third aspect may be a chip, and the processor may be implemented by hardware or by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside the processor, and exist separately.
In a fourth aspect, there is provided a computer program product comprising: a computer program (which may also be referred to as code, or instructions) which, when executed, causes a computer to perform the method of any one of the possible implementations of the first aspect described above.
In a fifth aspect, a computer readable storage medium is provided, which stores a computer program (which may also be referred to as code, or instructions) which, when run on a computer, causes the computer to perform the method of any one of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 2 is a software configuration block diagram of a terminal device according to an embodiment of the present application;
FIG. 3 is a diagram showing the interface change of the mobile phone in a horizontal screen state;
FIG. 4 is a diagram showing the interface change of a mobile phone in a horizontal screen state;
FIG. 5 is a schematic flow chart of a method for displaying a screen of interest according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of another method for displaying a message provided in an embodiment of the present application;
fig. 7 is a schematic diagram of switching between four screen states of a terminal device;
FIG. 8 is a schematic flow chart of a method for displaying a message screen according to an embodiment of the present application;
fig. 9 is a schematic block diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described below with reference to the accompanying drawings.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "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.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
In the embodiments of the present application, the descriptions of "when … …", "in the case of … …", "if" and "if" all refer to that the device will make corresponding processing under some objective condition, and are not limited in time, nor do the devices require that the device have to perform a judging action when implemented, nor are other limitations meant to exist.
In order to better understand the terminal device in the embodiment of the present application, the hardware structure of the terminal device in the embodiment of the present application is described in detail below with reference to fig. 1.
Fig. 1 is a schematic structural diagram of a terminal device 100 according to an embodiment of the present application. As shown in fig. 1, the terminal 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, a key 190, a motor 191, an indicator 192, a camera 193, a display 194, a user identification module (subscriber identification module, SIM) card interface 195, and the like. 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 is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or less components than illustrated, 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, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the terminal 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 function of terminal device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display function of the terminal 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 terminal device 100, or may be used to transfer data between the terminal 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 terminal devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal 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 terminal device 100. The charging management module 140 may also supply power to the terminal device 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 terminal device 100 can 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 terminal 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 including 2G/3G/4G/5G wireless communication applied to the terminal 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., applied to the terminal 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 terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via 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 terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 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), 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 terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device 100 may implement a photographing function 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, the terminal 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 terminal 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 terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in various encoding formats, for example: 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 terminal device 100 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The terminal 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 terminal device 100 can listen to music or to handsfree talk 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 the terminal device 100 receives a call or voice message, it is possible to receive voice by approaching the receiver 170B 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 terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal 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 terminal device 100 may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130 or a 3.5mm open mobile terminal 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 pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The terminal device 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects the angle of shake of the terminal apparatus 100, calculates the distance to be compensated for by the lens module according to the angle, and allows the lens to counteract the shake of the terminal apparatus 100 by the reverse movement, thereby realizing anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates altitude from barometric pressure values measured by the barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the terminal device 100 is a folder, the terminal device 100 may detect opening and closing of the folder according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E can detect the magnitude of acceleration of the terminal device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the terminal device 100 is stationary. The method can also be used for identifying the gesture of the terminal equipment, and is applied to the applications such as horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The terminal device 100 may measure the distance by infrared or laser. In some embodiments, the terminal device 100 may range using the distance sensor 180F to achieve fast focusing.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the terminal device 100. When insufficient reflected light is detected, the terminal device 100 may determine that there is no object in the vicinity of the terminal device 100. The terminal device 100 can detect that the user holds the terminal device 100 close to the ear to talk by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The terminal device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The terminal device 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, the terminal device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 performs a reduction in the performance of a processor located near the temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the terminal device 100 heats the battery 142 to avoid the low temperature causing the terminal device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the terminal device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
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 terminal device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal 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 contacted and separated from the terminal apparatus 100 by being inserted into the SIM card interface 195 or by being withdrawn from the SIM card interface 195. The terminal 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 terminal device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100. The software system of the terminal device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the terminal device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the terminal device 100 according to the embodiment of the present application.
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. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in FIG. 2, the application package may include applications for cameras, calendars, maps, phones, music, settings, mailboxes, off-screen displays, and the like.
The application framework layer 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. As shown in fig. 2, the application framework layer may include a content provider, a view system, a telephony manager, a resource manager, a notification manager, an input management service, a window management service, a display framework module, a battery management service, a layer composition service, 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 used to provide the communication functions of the terminal device 100. 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 terminal equipment vibrates, and an indicator light blinks.
The input management service module is used for acquiring and transmitting various input information of the user. Illustratively, after the user presses the power key, the input management service may receive the press data reported by the kernel layer.
The window management service module can be used for acquiring, analyzing and adjusting view layout parameters transmitted by the application program layer.
The display frame module may be used to save the display state of the screen. Illustratively, the status of the screen is updated from an off-screen status to an off-screen status.
The battery management service module may be configured to determine whether to invoke a service of the application layer, monitor a screen state, and request a power-up of the kernel layer based on the pressing data transferred by the input management service.
The layer-by-layer service module may be used to forward the screen state switch request.
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 and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program 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 may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
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 kernel layer is a layer between hardware and software. The kernel layer is used for driving the hardware so that the hardware works. The kernel layer at least includes a display driver, a screen driver, an image processor (graphics processing unit, GPU) driver, a camera, and a sensor driver, which is not limited in this embodiment. For example, the screen driver may drive a screen bright or off screen.
With the development of terminal devices, most terminal devices support a normally bright display (always on display, AOD) function in a standby state, which may also be referred to as "off-screen display". Under the condition that the normally-bright display function is started, after the terminal equipment is turned off, preset information of screen-off display can be displayed on the screen of the terminal equipment, and an interface for displaying the information of screen-off display can be called a screen-off display interface. The information displayed on the screen may include, for example, time, power, personality pattern, notification, and the like.
Currently, most terminal devices support a screen rotation function, for example, a screen is switched from a vertical screen to a horizontal screen, and the terminal device needs to switch a vertical screen display interface to a horizontal screen display interface. In one possible scenario, the terminal device is in an awake state and displays a cross-screen display interface. And the terminal equipment responds to the pressing operation of the user on the power key, enters a standby state and displays a screen-extinguishing display interface.
However, since the window management service module in the terminal device adjusts the layout parameters, the drawing of the view is not sequentially performed with the triggering of the off-screen display application in the terminal device by the window management service module in the terminal device, it may occur that the off-screen display application in the terminal device has already started drawing the view after being triggered, and the window management service module layout parameters in the terminal device have not been adjusted. Therefore, the terminal equipment can display a screen-extinguishing display interface of a frame of horizontal screen, then display a screen-extinguishing display interface of a vertical screen, and abnormal display scenes are caused to the terminal equipment, namely, the phenomenon of flashing frequency is generated when the screen-extinguishing display interface is displayed, so that the user experience is poor.
The display interface of the related art will be described below by taking the example that the terminal device is a mobile phone.
Exemplary, fig. 3 shows a diagram of a change of a screen-extinguishing display interface of a mobile phone in a horizontal screen state. In the interface a shown in fig. 3, the interface displays a plurality of application icons, i.e., the interface is in an awake state. The user presses the power key of the mobile phone, the mobile phone responds to the pressing operation of the user, the interface displays the interface b shown in fig. 3, and then the interface d shown in fig. 3 is displayed after the interface flashes the interface c shown in fig. 3. The interface b shown in fig. 3 is an off-screen interface, and the interface does not display any content. In the interface c shown in fig. 3, the time information "11:34 months 29 days, monday, twelve earthly branches, forty-one year", is displayed in the middle of the interface, and the battery icon and the battery power information "50%" are displayed below the time information. The directions of the time information, the battery icon and the battery electric quantity information are adapted to the horizontal screen direction of the mobile phone, namely, the directions are displayed through the horizontal screen. In the interface d shown in fig. 3, the time information "11:34 months 29 days, monday, twelve earthly branches, forty-one year", is displayed in the middle of the interface, and the battery icon and the battery power information "50%" are displayed below the time information. The directions of the time information, the battery icon and the battery electric quantity information are adapted to the vertical screen direction of the mobile phone, namely, the display is performed through the vertical screen.
The interface c and the interface d in fig. 3 are all screen display interfaces. The interface c can flash when the mobile phone displays the screen-extinguishing display interface in a horizontal screen state, namely, the screen-flashing phenomenon is generated, and the user experience is poor.
Therefore, in the case that the screen-extinguishing display is required and the current screen direction of the terminal device is the horizontal screen direction, by drawing and displaying the first view with the black foreground color, if the terminal device completes the adjustment of the layout parameters after the window management service module triggers the screen-extinguishing display application drawing, the terminal device can display the first view, that is, the user cannot see the screen-extinguishing display interface of the horizontal screen, and after the window management service module completes the adjustment of the layout parameters, drawing and displaying the second view (the view corresponding to the screen-extinguishing display interface and with the empty foreground color) based on the adjusted window. Therefore, the drawing of the view can be started after the screen-extinguishing display application in the terminal equipment is triggered, and under the condition that the layout parameters of the window management service module in the terminal equipment are not adjusted, the screen-extinguishing display interface of the transverse screen is prevented from being displayed, so that abnormal display scenes of the screen-flashing occur, and the user experience is improved.
In the following, an interface change chart of the screen-extinguishing display method provided in the embodiment of the present application is described by taking a mobile phone as an example of a terminal device.
Fig. 4 shows a diagram of still another screen-extinguishing display interface change of the mobile phone in a horizontal screen state. In the interface a shown in fig. 4, the interface displays a plurality of application icons, i.e., the interface is in an awake state. The user presses the power key of the mobile phone, and the mobile phone responds to the pressing operation of the user, and the interface displays the interface b of fig. 4, and then the interface b is changed into the interface c of fig. 4. Interface b of fig. 4 does not display anything. In the interface c shown in fig. 4, the time information "11:34 months 29 days, monday, twelve earthly branches, forty-one year", is displayed in the middle of the interface, and the battery icon and the battery power information "50%" are displayed below the time information. The directions of the time information, the battery icon and the battery electric quantity information are adapted to the vertical screen direction of the mobile phone, namely, the display is performed through the vertical screen.
And in the transverse screen mode, the terminal equipment responds to the pressing operation of the power key by the user and displays a screen-extinguishing display interface. Interface change is: and the display interface is excessively changed from the bright screen to the off screen. The phenomenon of screen flashing when the terminal equipment enters the screen-extinguishing display interface in the horizontal screen state is avoided, and the user experience is improved.
The following describes the technical solution of the present application and how the technical solution of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be implemented independently or combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 5 is a schematic flowchart of a screen-off display method 500 according to an embodiment of the present application. The hardware structure of the terminal device involved in the method 500 may be shown in fig. 1, and the software structure may be shown in fig. 2.
S501, detecting a screen-off signal by the terminal equipment, and switching the screen state of the terminal equipment from a screen-on state to a screen-off state.
Specifically, the detection of the off-screen signal by the terminal device may be that the terminal device detects the off-screen signal in response to a pressing operation of a power key by a user. The detection of the off-screen signal by the terminal device may be that the terminal device does not detect the operation of the user within a preset time, and the off-screen signal is detected.
It should be understood that after the screen state of the terminal device is switched from the bright screen state to the off screen state, the display screen of the terminal device is turned off.
Optionally, the screen states are different, and the gear positions corresponding to the screen state parameters are different. The terminal equipment sets screen state parameters to be a first gear, wherein the screen state parameters comprise screen refreshing frequency and screen brightness, the screen refreshing frequency corresponding to the first gear is the first frequency, and the screen brightness corresponding to the first gear is the first brightness.
It should be understood that the first frequency is 0 and the first brightness is 0.
Optionally, the screen state parameter of the bright screen state may be a third gear, the screen refresh frequency corresponding to the third gear is a third frequency, and the screen brightness corresponding to the third gear is between the first brightness and the third brightness. The third frequency is greater than the first frequency.
In one possible implementation, the terminal device detects the off-screen signal in response to a user's pressing operation of a power key. The power key may be incorporated into key 190 in fig. 1. Switching the screen state from the on-screen state to the off-screen state may be by the display frame module and the display driver in fig. 2.
S502, drawing a first view based on a first window layout parameter under the condition that screen-extinguishing display is required and the current screen direction of the terminal equipment is the horizontal screen direction, wherein the foreground color of the first view is black.
It should be understood that the current screen direction may be a screen direction of the terminal device after the terminal device is placed horizontally, and in this placement manner, a window direction of the screen is a horizontal screen direction.
Specifically, the first window layout parameter is related to the current screen direction. The first window layout parameter may be a window direction of the current screen. Alternatively, the first window layout parameter may be the width and height of the window of the current screen.
Specifically, the process of drawing the first view may be: firstly, drawing a background layer of the first view, then drawing a layer corresponding to the display element of the screen, and finally drawing a black foreground layer.
It should be appreciated that the layer corresponding to the display style on the screen may include multiple sub-views. When each of the plurality of sub-views is drawn, it is necessary to measure the width and height of each sub-view, and draw the corresponding sub-view according to the width and height of each sub-view.
Alternatively, the foreground color being black means that the color of the foreground color layer is black, and the RGB color value code of each pixel point of the foreground color layer may be set to (0, 0), or the color value code of each pixel point of the foreground color layer may be set to #000000 according to a hexadecimal color table.
S503, switching the screen state of the terminal equipment from the off-screen state to the off-screen display state, and displaying the first view.
Optionally, the terminal device sets the screen state parameter to a second gear, where the screen state parameter includes a screen refresh frequency and a screen brightness, the screen refresh frequency corresponding to the second gear is a second frequency, and the screen brightness corresponding to the second gear is between the first brightness and the second brightness.
It will be appreciated that the second frequency is greater than the first frequency and less than the third frequency, and that the second brightness is greater than the first brightness and less than the third brightness.
S504, the terminal equipment adjusts the first window layout parameters into second window layout parameters, draws a second view based on the second window layout parameters, and the foreground color of the second view is null, wherein the second window layout parameters are related to the vertical screen direction.
Specifically, the second window layout parameter may be a width and a height of a window in a vertical screen direction, or the second window layout parameter may also be a vertical screen window direction.
Optionally, the following possible implementations of adjusting the first window layout parameter to the second window layout parameter are possible.
In one possible implementation, the first window layout parameter is the width and height of the window of the current screen, and the second window layout parameter is the width and height of the window in the portrait orientation. The first window layout parameter is adjusted to the second window layout parameter as follows: and taking the height of the window in the vertical screen direction as the width of the adjusted window, and taking the width of the window in the vertical screen direction as the height of the adjusted window to obtain the adjusted window layout parameter, namely the second window layout parameter. For example, the first window layout parameter has a width of 2 and a height of 1, and the adjusted window layout parameter has a width of 1 and a height of 2, i.e., the second window layout parameter has a width of 1 and a height of 2.
In another possible implementation, the first window layout parameter is a window direction of the current screen and the second window layout parameter is a vertical screen window direction. The first window layout parameter is adjusted to the second window layout parameter as follows: and adjusting the window direction from the horizontal screen direction to the vertical screen direction. For example, the window direction of the first window layout parameter is a horizontal screen direction, and the adjusted window direction is a vertical screen, i.e. the window direction in the second window layout parameter is a vertical screen direction.
Alternatively, the foreground color of the second view may be null, or the foreground color layer may not be drawn when the second view is drawn, by setting the foreground color layer to a null value (for example, null). The implementation manner of the terminal device to draw the second view may be as follows:
in one possible implementation, the terminal device draws a background layer of the first view first, draws a layer corresponding to the screen display element of the message screen, and draws an empty foreground layer.
In another possible implementation manner, the terminal device draws a background layer of the first view first, and draws a layer corresponding to the screen display element.
S505, displaying the second view.
In this embodiment of the present application, the terminal device starts view drawing before adjusting the window layout parameters, where the window layout parameters acquired by the terminal device before drawing are first window layout parameters (i.e., window layout parameters in which the screen direction is the horizontal screen direction), and the terminal device may draw the first view based on the first window layout parameters. In addition, the terminal device adjusts the first window layout parameter to a second window layout parameter, and draws the second view.
In the method 500, S502 includes a process of drawing the first view, and S504 includes a process of adjusting parameters and drawing the second view. The terminal device may perform S502 and S504 simultaneously, and the terminal device may perform S502 and then S504, which is not limited in this application.
In an implementation manner of the embodiment of the present application, the terminal device finishes drawing the first view first and then finishes drawing the second view. After drawing the view, the terminal device triggers the display screen to power up and displays the corresponding interface. When the terminal device is powered on, the second view is not drawn yet, and the terminal device will display the first view first and then display the second view. At this time, the method 500 may be executed in the order of S501 to S505, or S502 and S504 may be executed simultaneously. The display interface change sequence of the terminal equipment is as follows: bright screen interface-off screen interface-first view interface-second view interface.
In another possible implementation manner, the terminal device finishes drawing the first view first and then finishes drawing the second view. After drawing the view, the terminal device triggers the display screen to power up and displays the corresponding interface. When the terminal device is powered on, the second view is drawn, and the terminal device does not display the first view and directly displays the second view. In this case, after the execution of S504 is completed, the terminal device then executes the screen state switching in S503, but does not display the first view, and directly displays the second view. The display interface change sequence of the terminal equipment is as follows: bright screen interface-off screen interface-second view interface.
In yet another possible implementation, the terminal device does not perform S502 nor the displaying of the first view in S503. That is, after the terminal apparatus performs the completion S501, S504 is then performed, and after the completion S504 is performed, the screen state switching in S503 is then performed, but the first view is not displayed, and S505 is then performed. The terminal equipment starts drawing the view after adjusting the window layout parameters, the window layout parameters acquired by the terminal equipment before drawing are second window layout parameters (namely window layout parameters in the vertical screen direction), the terminal equipment can draw a second view based on the second window layout parameters, after the second view is drawn, the screen state is switched from the screen-off state to the screen-off display state, the power on of the display screen is triggered, and the second view is displayed. The display interface change sequence of the terminal equipment is as follows: bright screen interface-off screen interface-second view interface.
According to the screen-off display method provided by the embodiment of the application, after the screen-off signal is detected, the screen state of the terminal equipment is switched from the screen-on state to the screen-off state; under the condition that screen-extinguishing display is required and the current screen direction of the terminal equipment is the horizontal screen direction, drawing a first view based on a first window layout parameter, wherein the foreground color of the first view is black, and the first window layout parameter is related to the current screen direction; switching the screen state of the terminal equipment from the screen-off state to the screen-off display state, and displaying a first view; and adjusting the first window layout parameters into second window layout parameters, and drawing and displaying a second view based on the second window layout parameters, wherein the foreground color of the second view is empty, and the second window layout parameters are related to the vertical screen display direction. In this way, the terminal device displays the first view with black foreground color, so that the user cannot see the screen-extinguishing display interface of the horizontal screen, after the window layout parameters are adjusted, the second view with empty foreground color is drawn and displayed based on the adjusted window, and when the terminal device starts drawing the view based on the horizontal screen layout parameters and the vertical screen layout parameters are not adjusted, the screen-extinguishing display interface of the horizontal screen is prevented from being displayed, so that the abnormal display scene of the screen-flashing appears, and the user experience is improved.
As an optional embodiment, the battery management service module sends a first screen state switching request to the layer stack service module, where the first screen state switching request is used to request to switch the screen state of the terminal device from a bright screen state to a dead screen state; the layer combination service module sends a first screen state switching request to the display frame module and the display driver respectively; the display frame module and the display driver respectively switch the screen state of the terminal equipment from a bright screen state to a screen-off state; when the battery management service module monitors that the screen state in the display frame module is switched to the off-screen state, a power-down request is sent to the display driver; the display driver performs a power-down operation of the display screen based on the power-down request.
As an alternative embodiment, the battery management service module invokes the off-screen display service via the off-screen display application; the screen-extinguishing display application transmits a second window layout parameter to the window management service module; the window management service module transmits a first drawing request to the screen-extinguishing display application, wherein the first drawing request carries a first window layout parameter; the screen-extinguishing display application draws a first view based on the first window layout parameters; the window management service module adjusts the first window layout parameters to second window layout parameters; the window management service module transmits a second drawing request to the screen-extinguishing display application, wherein the second drawing request carries second window layout parameters; the off-screen display application draws a second view based on the second window layout parameters.
As an alternative embodiment, before drawing the first view, the method further comprises: the screen-extinguishing display application determines that the current screen direction of the terminal equipment is the horizontal screen direction based on the width and the height of the window.
It should be understood that the width and height of the window, that is, the width and height of the window of the current screen, determines the current screen direction of the terminal device to be the horizontal screen direction in case that the width is greater than the height, and determines the current screen direction of the terminal device to be the vertical screen direction in case that the width is less than the height.
The screen direction is determined through the width and the height of the window, and compared with the method that the sensor collects and reports gravity data, the screen direction is determined according to the gravity data, the screen direction is calculated more quickly, and the power consumption is reduced.
As an optional embodiment, the battery management service module sends a second screen state switching request to the layer stack service module, where the second screen state switching request is used to request to switch the screen state of the terminal device from the off-screen state to the off-screen display state; the layer combination service module sends a second screen state switching request to the display frame module and the display driver respectively; the display frame module and the display driver respectively switch the screen state of the terminal equipment from a screen-off state to a screen-off display state; when the screen state in the display frame module is monitored to be switched to the screen-off display state, the screen-off display application transmits a backlight instruction to the battery management service module; the battery management service module responds to the backlight down instruction and sends a power-on request to the display driver; the display driver performs a power-on operation of the display screen based on the power-on request.
As an alternative embodiment, the battery management service module, in the case that no power-up success notification is received from the display driver, repeats sending the power-up request to the display driver a plurality of times until the power-up success notification is received.
The power-on request is repeatedly sent to the display driving module, so that the problem that a screen display interface of a screen can not be displayed due to power-on failure caused when the screen state of the display frame module is successfully switched and the screen state of the display driving is not successfully switched is solved, and the stability of the screen display of the terminal equipment is improved.
As an alternative embodiment, the method further comprises: the battery management service module judges whether the repeated sending times of the power-on request are equal to a preset upper limit value or not; and under the condition that the repeated sending times of the power-on request are smaller than the preset upper limit value, the battery management service module repeatedly sends the power-on request for a plurality of times.
It should be understood that, when the number of repeated sending times of the power-on request is greater than the preset upper limit value and the power-on fails, the battery management service module reports the abnormal power-on. The power-on anomaly may be obtained through a code log.
By setting the preset upper limit value, the problem that the power-on current process enters the dead loop when the power-on failure of the display drive is caused by other faults can be solved.
As an alternative embodiment, the method further comprises: and under the condition that a screen-extinguishing display switch of the terminal equipment is turned on, determining that screen-extinguishing display is required.
Specifically, the on-screen display switch is turned on, which means that the user sets to turn on the on-screen display in the on-screen display application program, so that the on-screen display interface is displayed after the terminal equipment is turned off.
As an optional embodiment, when the screen-off display switch of the terminal device is turned on and the terminal device meets a first preset condition, it is determined that screen-off display is required, where the first preset condition includes at least one of the following: the electric quantity of the terminal equipment is larger than a preset value; alternatively, the terminal device does not detect the proximity light.
Specifically, in the case that the terminal device meets the first preset condition, it is determined that screen-extinguishing display is required, including the following three cases.
And 1, determining that screen-extinguishing display is required under the condition that a screen-extinguishing display switch of the terminal equipment is turned on and the electric quantity of the terminal equipment is larger than a preset value.
And 2, determining that screen-extinguishing display is required under the condition that a screen-extinguishing display switch of the terminal equipment is turned on and the terminal equipment does not detect the proximity light.
And 3, when a screen-extinguishing display switch of the terminal equipment is turned on, and the electric quantity of the terminal equipment is larger than a preset value and the terminal equipment does not detect the proximity light, determining that screen-extinguishing display is required.
Alternatively, the absence of detection of the proximity light means that the light sensor of the terminal device does not detect the light source. Under the condition that the display screen interface of the terminal equipment is shielded, the light sensor of the terminal equipment cannot detect light. For example, the display screen interface of the terminal device is placed facing the desktop. As another example, the terminal device is placed in a pocket.
By setting the condition that the power is low or the light is not detected, the terminal equipment can turn off the screen when the user does not need to look over the information screen display interface, so that the power consumption is reduced and the electric quantity consumption is reduced.
As an optional embodiment, in a case where the screen-extinguishing display is required, the current screen direction of the terminal device is a horizontal screen direction, and the terminal device satisfies a second preset condition, the first view is drawn, and the second preset condition includes any one of the following: the display screen is a non-folding screen; or the display screen is an external display screen of the terminal equipment, and the folding screen is in a completely folded state.
It should be understood that the above-described fully folded state refers to the state in which the inner display of the folding screen is in full engagement.
In a possible implementation manner, the folding manner of the terminal device is transverse folding, and transverse folding can be understood as folding along the long axis of the terminal device, and can also be understood as folding the terminal device left and right.
Fig. 6 is a schematic flow chart of another method 600 for displaying a message according to an embodiment of the present application. The hardware structure of the terminal device involved in the method 600 may be shown in fig. 1, and the software structure may be shown in fig. 2.
S601, the terminal equipment judges whether the display screen is in a folded screen unfolding state.
Specifically, the terminal device judges whether the display screen is in a folded screen unfolding state or not under the condition that the terminal device detects a screen-off signal and the terminal device needs to perform screen-off display.
In the case where the display screen is not in the folded-screen unfolded state, S602 is performed. Otherwise, S604 is performed.
S602, the terminal equipment judges whether the width of the window is larger than the height.
Specifically, the window is the window of the current screen, which may also be referred to as a canvas.
In case the canvas is wider than high, S603 is performed. Otherwise, S604 is performed.
S603, the terminal equipment draws a first view, and the foreground color of the first view is black.
Specifically, the process of drawing the first view may be: firstly, drawing a background layer of the first view, then drawing a layer corresponding to the display element of the screen, and finally drawing a black foreground layer.
Alternatively, the foreground color being black means that the color of the foreground color layer is black, and the RGB color value code of each pixel point of the foreground color layer may be set to (0, 0), or the color value code of each pixel point of the foreground color layer may be set to #000000 according to a hexadecimal color table.
S604, the terminal equipment draws a second view, and the foreground color of the second view is null.
Alternatively, the foreground color of the second view may be null, or the foreground color layer may not be drawn when the second view is drawn, by setting the foreground color layer to a null value (for example, null).
Fig. 7 is a schematic diagram of switching between four screen states of a terminal device. Under the condition that the terminal equipment starts the AOD function, the display screen of the terminal equipment comprises four states which are respectively: a bright screen state (may be abbreviated as an on state), a dead screen state (may be abbreviated as an off state), a dead screen display state (may be abbreviated as a doze state), and a dead screen display pause state (may be abbreviated as a doze_supply state). The on state, the off state, the doze state, the doze_supported state, and the like are merely exemplary, and the four screen states are not limited in the present application.
When the display screen is in an on state, the display screen is electrified, and a user can see a picture displayed on the display screen. And when the display screen is in an off state, the display screen is not electrified. And when the display screen is in the doze state, the display screen is locally electrified, the screen displays a screen-extinguishing display interface, and the AP is in an active state. For example, in this state, when the screen-extinguishing display interface includes an animation style, the animation can be normally played. And when the display screen is in the doze_supported state, the local part on the screen is electrified, the screen displays a screen-extinguishing display interface, and the AP is in the dormant state. For example, in this state, when the screen-off display interface includes an animation style, the interface displays a certain frame of still picture of the animation.
The switching of the different states includes the following four cases.
In case 1, the screen state of the terminal device is in the on state.
Under the condition that the AOD is not started, the terminal equipment detects that the operation of the user is not accepted within the preset time or the terminal equipment detects the pressing operation of the power key by the user, and the terminal equipment controls the screen state to be switched into the off state.
In case 2, the screen state of the terminal device is in an off state.
The terminal device detects the pressing operation of the power key by the user, and controls the screen state to be switched to the on state. In a possible scenario where the AOD is on, the terminal device detects a touch operation of the user on the screen, and the terminal device controls the screen state to switch to the doze state. In another possible scenario, the terminal device detects that the operation of the user is not accepted within a preset time or the terminal device detects that the pressing operation of the power key by the user, and the terminal device controls the screen state to switch to the doze state.
In case 3, the screen state of the terminal device is in the doze state.
The terminal equipment detects double-click operation of a user on the screen or detects pressing operation of the user on a power key, and the terminal equipment controls the screen state to be switched to an on state. In one possible scenario, the user does not set the AOD mode to be the all-day mode, the terminal device does not continue to display the screen-extinguishing display interface after displaying the screen-extinguishing display interface for a preset time, and the terminal device controls the screen state to switch to the off state. In another possible scenario, the terminal device detects that the user opens the AOD all-day mode, and after displaying the rest screen display interface for a preset time, the terminal device does not display the animation in the rest screen display interface (if the rest screen display interface does not include the animation, the rest screen display interface does not change), and the terminal device controls the screen state to switch to the doze_supply state.
In case 4, the screen state of the terminal device is in the doze_supported state.
The terminal device detects the pressing operation of the power key by the user, and controls the screen state to be switched to the on state. The terminal equipment detects the touch of the user on the screen, or detects the mobile operation of the user on the mobile phone, or the signal of AOD display information updating, and controls the screen state to be switched to the doze state.
In the following, taking an example that the terminal device displays a screen-extinguishing display interface after the user presses the power key of the terminal device, the internal interaction process of the terminal device is described in detail.
Fig. 8 is a schematic flowchart of a screen-off display method 800 according to an embodiment of the present application. The hardware structure of the terminal device involved in the method 800 may be shown in fig. 2, and the software structure may be shown in fig. 3.
S801, in response to the pressing operation of the power key by the user, the kernel layer transmits the pressing data corresponding to the pressing operation to the input management service module, and correspondingly, the input management service module obtains the pressing data.
It should be appreciated that the power key sending the press data to the input management service module through the kernel layer may also be referred to as the power key reporting the press event to the input management service module through the kernel layer.
Specifically, the above-mentioned pressing data may include a key identification and a key type of the power key. Wherein, the key identification can be a key ID or a key name. The key types may include a short press type and a long press type.
It should also be understood that the keys on the terminal device include other keys in addition to the power key, such as a volume up key and a volume down key. Different keys correspond to different key identification information.
Optionally, the pressing operation corresponds to the following actions: the key is pressed first and then lifted, and the corresponding state bit change information is as follows: first pressed and then lifted. And determining that the key type is a short-press type under the condition that the time interval from pressing to lifting of the status bit of the key is smaller than or equal to a preset threshold value. And under the condition that the time interval from pressing to lifting of the state bit of the key is larger than a preset threshold value, determining that the key type is a long-press type.
Illustratively, the key identification of the power key may be "id=26". The time interval from pressing to lifting of the status bit of the key of the power key is 150ms, and the preset threshold is 200ms.150ms is less than a preset threshold of 200ms. The power key determines that the key type is a short press type.
S802, the input management service module transmits the pressing data to the battery management service module. Correspondingly, the battery management service module obtains the pressing data.
S803, based on the pressing data and the screen state, the battery management service module determines whether the screen state needs to be switched to the off-screen state.
Alternatively, before the pressing operation, the screen state may include four states of a bright screen state, a dead screen display state, and a dead screen display pause. The press data may include both a long press of the power key and a short press of the power key. The battery management service module judges what state the screen state is switched to based on the pressing data and the screen state includes the following cases.
In case 1, when the screen state is any one of a bright screen state, a dead screen display state, and a dead screen display pause state, and the pressing data is a long press type of a power key, the battery management service module determines that the subsequent terminal device is about to execute shutdown, and the display screen displays a shutdown selection interface, wherein the shutdown selection interface comprises a selection button for restarting or shutdown so as to be convenient for a user to select.
In case 2, when the screen state is any one of the off-screen state, the off-screen display state, and the off-screen display pause state, and the pressing data is a short press type of the power key, the battery management service module determines that the screen state needs to be switched to the on-screen state.
In case 3, when the screen state is the bright screen state and the pressing data is the short press type of the power key, the battery management service module determines that the screen state needs to be switched to the off screen state.
That is, in case 3, the battery management service module determines that the screen state needs to be switched to the off-screen state, and in case 1 or case 2, the battery management service module determines that the screen state does not need to be switched to the off-screen state.
S804, when the battery management service module determines that the screen state needs to be switched to the off-screen state, the battery management service module transmits a first screen state switching request to the layer combination service module, and correspondingly, the layer combination service module obtains the first screen state switching request.
It should be appreciated that the first screen state switching request is for switching the screen state from the on-screen state to the off-screen state.
After S804, S805 and S806 are performed simultaneously by the layer service module.
S805, the layer combination service module transmits a first screen state switching request to the display frame module, and correspondingly, the display frame module obtains the first screen state switching request.
S806, the layer combination service module transmits a first screen state switching request to the display driving module, and correspondingly, the display driving module obtains the first screen state switching request.
S807 is performed after S805, and S808 is performed after S806.
S807, the display frame module updates the screen state stored in the display frame module to the off-screen state.
S808, the display driving module updates the screen state saved in the display driving to the off-screen state.
Alternatively, the display driving module may update the screen state to the off-screen state by adjusting the screen refresh rate and the screen maximum brightness value.
It should be appreciated that different screen states correspond to different screen refresh rates and screen maximum brightness values.
S809, the battery management service module monitors whether the screen state stored by the display frame module is updated to the off-screen state.
S810, when the screen state stored in the display frame module is updated to the off-screen state, the battery management service module requests power-down to the display driving module.
S811, the display driving module executes power-down operation.
S812, based on the pressing data and the screen state change, the battery management service module judges whether the screen display service needs to be adjusted.
It should be understood that the screen state change means that the screen is switched from one of the four states to the other state within a preset time. For example, the screen is switched from the bright screen state to the off screen state within 200 ms.
Optionally, the battery management service module determines that the rest screen display service needs to be adjusted when the pressing data is of a short press type of the power key and the screen state is switched from the bright screen state to the off screen state within a preset time. Otherwise, the battery management service module determines that the rest screen display service does not need to be tuned.
S813, in the case where the battery management service module determines that the screen display needs to be adjusted, the battery management service module adjusts the service of the screen display application.
It will be appreciated that the services of the call-up screen display application may cause the call-up screen display application to perform subsequent call-up screen display related steps.
Illustratively, the battery management service module invokes the services of the message screen display application through the streamcontroller class.
Optionally, S814, the off-screen display application determines whether off-screen display can be performed.
Alternatively, in a case where the off-screen display function is turned on, the off-screen display application may be configured not to perform the off-screen display under a preset condition. The preset condition may be any one of the following conditions: the power of the terminal device is lower than a preset value and the terminal device detects the proximity light. And under the condition that the preset condition is met, the screen-extinguishing display application determines to execute screen-extinguishing display. And under the condition that the preset condition is not met, the screen-extinguishing display application determines that the screen-extinguishing display is not executed.
Illustratively, the off-screen display application determines to perform the off-screen display in the event that the power of the terminal device is less than 10%. As another example, in the case where the screen of the terminal device is blocked. The off-screen display application determines not to execute the off-screen display.
Optionally, S815, the off-screen display application determines whether the screen form is a folded-screen unfolded state.
In particular, the terminal device may comprise a straight panel terminal device and a foldable terminal device. The unfolded state of the folding screen means that the screen form of the foldable terminal device is in a non-fully folded state. When the display screen is the display screen of the straight panel terminal equipment or the display screen is the outer display screen when the foldable terminal equipment is in the completely folded state, the screen form of the display screen of the terminal equipment is determined not to be in the unfolded state of the folding screen.
The terminal device is a mobile phone, and the mobile phone comprises a board straightening machine and a folding screen mobile phone. And determining that the screen form is not in the folded screen unfolding state under the condition that the screen is a display screen of the straight-plate mobile phone or an external display screen when the folded-screen mobile phone is in the fully folded state.
S816, under the condition that the screen form is not the folded screen unfolding state, the screen extinguishing display application transmits the screen extinguishing display view and default window layout parameters to the window management service module, wherein the screen direction parameter in the default window layout parameters is a first parameter, and the first parameter indicates that the screen direction is the vertical screen direction.
It should be appreciated that the off-screen display view includes at least one sub-view. For example, the at least one sub-view may be one or more of a date field word sub-view, an animated sub-view, a background sub-view, etc.
It should also be understood that the screen direction parameter in the default window layout parameter is set by the developer for the terminal device to display the screen-in-screen display interface based on the screen direction parameter in the default window layout parameter. And the terminal equipment displays a vertical screen information display interface based on the screen direction parameter in the default window layout parameters.
Alternatively, the default window layout parameters may include the size of the window, the layout manner of the window (whether full screen layout is performed), whether the window is responsive to a touch signal, and the like. For example, the size of the window may be the same as the screen size, the layout of the window may be a full screen layout (i.e., the interface does not display a status bar), and the interface corresponding to the window may not respond to a touch operation by the user. A window may be understood as a container carrying a view.
Alternatively, the first parameter may be represented by a numerical value. For example, a first parameter of 1 indicates that the screen direction is the portrait direction.
It should be appreciated that in the case where the screen modality is the folded screen expanded state, the off-screen display application communicates the off-screen display view and a default window layout parameter to the window management service module, where the screen direction parameter in the default window layout parameter may be a third parameter indicating that the screen direction follows the direction of the terminal device. Or in the case that the terminal device is in a folded screen unfolded state, the default window layout parameters transferred to the window management service module by the off-screen display application do not include screen direction parameters.
Illustratively, the off-screen display application may communicate the off-screen display view and the default window layout parameters to the window management service module by invoking an add-view function through the window management interface. The window management interface may be a WindowManager interface, and the add view function may be an addView function.
S817 described below may be performed after S816, or S832 may be performed simultaneously.
S817, the window management service module transmits a first drawing request to the screen-in display application, where the first drawing request carries a window layout parameter of the current screen.
It should be appreciated that the first drawing request is used to instruct the message display application to execute a flow of drawing the view. The first drawing request may also be referred to as a triggering request, i.e. the window management service module triggers the off-screen display application to draw the off-screen display view.
Specifically, the window layout parameters of the current screen may include the width and height of the current window.
S818, the off-screen display application judges whether black foreground color is needed to be drawn for the off-screen display view.
Optionally, the off-screen display application compares the width and height of the current window. In the case of a width greater than height, the off-screen display application determines to draw a black foreground color for the off-screen display view.
It should be appreciated that the current window may also be referred to as a canvas on which the message screen display view is drawn.
And S819, in the case that the off-screen display application needs to draw a black foreground color for the off-screen display view, drawing a first view with the black foreground color by the off-screen display application.
It will be appreciated that the off-screen display application draws the first view from the resulting widths and heights described above.
Specifically, the process of drawing the first view may be: firstly, drawing a view background layer, then drawing a layer corresponding to a screen display element of the screen, and finally drawing a black foreground color layer.
It should be appreciated that the layer corresponding to the display style on the screen may include multiple sub-views. When each of the plurality of sub-views is drawn, it is necessary to measure the width and height of each sub-view, and draw the corresponding sub-view according to the width and height of each sub-view.
It should also be appreciated that where the off-screen display application does not need to draw a black foreground color for the off-screen display view, the off-screen display application draws a second view that does not include a black foreground color.
Alternatively, the process of drawing the second view may be: firstly, drawing a view background layer, and then drawing a layer corresponding to a screen-extinguishing display style.
S820, the screen-off display application notifies the battery management service module that the drawing of the view is completed.
S821, the battery management service module transmits a second screen state switching request to the layer combination service module, and correspondingly, the layer combination service module obtains the second screen state switching request.
It should be appreciated that the second screen state switching request is for switching the screen state from the off-screen state to the off-screen display state. I.e. the screen state is switched from off to doze.
After S821, the layer service module performs S822 and S823 simultaneously.
S822, the layer combination service module transmits a second screen state switching request to the display frame module, and correspondingly, the display frame module obtains the second screen state switching request.
S823, the layer combination service module transmits a second screen state switching request to the display driving module, and correspondingly, the display driving module obtains the second screen state switching request.
S824 is performed after S822, and S825 is performed after S823.
S824, the display frame module updates the screen state stored in the display frame module to a screen-off display state.
S825, the display driver module updates the screen state saved in the display driver to a screen-off display state.
S826, the screen-off display application monitors whether the screen state stored by the display framework module is updated to the screen-off state.
S827, when the screen state stored in the display frame module is updated to the screen-off state, the screen-off display application transmits a backlight-off instruction to the battery management service module, wherein the backlight-off instruction carries screen brightness information, and correspondingly, the battery management service module obtains the backlight-off instruction.
Optionally, the off-screen display application determines screen brightness information according to the ambient brightness and communicates the screen brightness information to the battery management service module.
S828, the battery management service module requests power up to the display driving module based on the backlight down instruction.
S829, the display driving module executes a power-on operation based on the backlight command.
It should be understood that the power-up operation may also be understood as controlling the screen lighting by the display driving module. Powering up may also be understood as setting a backlight.
In one possible case, the above-mentioned S824 is completed faster than S825. That is, the screen state stored in the display frame module is updated to the idle screen display state, and the screen state stored in the display driving module is not updated to the idle screen display state. This may result in the display driving module performing power-up failure in S829. After S829 fails to power up, the steps S828 to S829 continue to be cyclically executed until the power up of the display driving module is successful.
And S830, after the power-on of the display driving module is successful, notifying the battery management service module of finishing the power-on.
S831, the off-screen display application displays the first view.
S832, the window service management module judges whether the screen direction parameter in the default window layout parameter is the same as the screen direction parameter in the window layout parameter of the current screen.
It should be understood that the screen direction may include a horizontal screen direction or a vertical screen direction, and that the corresponding screen direction parameter may be a second parameter when the screen direction is the horizontal screen direction and the corresponding screen direction parameter may be a first parameter when the screen direction is the vertical screen direction. In the case that the screen direction parameter in the window layout parameters of the current screen is the second parameter, the window service management module determines that the screen direction parameter in the default window layout parameters is different from the screen direction parameter in the window layout parameters of the current screen. In the case that the screen direction parameter in the window layout parameters of the current screen is the first parameter, the window service management module determines that the screen direction parameter in the default window layout parameters is the same as the screen direction parameter in the window layout parameters of the current screen.
S833, when the screen direction parameter in the default window layout parameter is different from the screen direction parameter in the window layout parameter of the current screen, the window service management module adjusts the screen direction parameter in the window layout parameter of the current screen to be the first parameter, and the adjusted window layout parameter is obtained.
It should be understood that the screen direction parameter in the window layout parameters of the current screen is adjusted to the first parameter, that is, the window direction of the current screen is adjusted to the vertical screen direction.
It should also be appreciated that in the case where the screen direction parameter in the default window layout parameter is the same as the screen direction parameter in the window layout parameter of the current screen, the window service management module does not need to make parameter adjustments nor draw the second view.
S834, the window service management module transmits a second drawing request to the screen-extinguishing display application, wherein the second drawing request carries the adjusted window layout parameters.
It should be understood that the window layout parameters after adjustment are window layout parameters in the vertical screen direction.
It should also be appreciated that the second drawing request is for instructing the message display application to perform drawing of the second view. The second drawing request may also be referred to as a trigger request, i.e. the window management service module triggers the off-screen display application drawing view.
S835, the off-screen display application draws the second view based on the adjusted window layout parameters.
Specifically, the off-screen display application is based on the adjusted window width and Gao Huizhi second view.
Optionally, drawing the second view may include a variety of implementations.
In one possible implementation, the off-screen display application updates the first view according to the width and height of the adjusted window, and deletes the black foreground color layer in the first view to obtain the second view.
In another possible implementation, the off-screen display application first draws a view background layer according to the width and height of the adjusted window, and then draws a layer corresponding to the off-screen display style.
S836, the second view is displayed.
In the method 800, S817 to S819 are flows for drawing the first view, and S832 to S835 are flows for drawing the second view. The terminal device may perform S817 to S819 and S832 to S835 simultaneously. The terminal device may perform the completion of S817 to S819 first and then perform the completion of S832 to S835, which is not limited in this application.
Embodiments of the present application include the following many possible implementations:
mode 1, a terminal device draws and displays a first view and a second view.
The terminal equipment firstly completes drawing of the first view and then completes drawing of the second view. After drawing the view, the terminal device triggers the display screen to power up and displays the corresponding interface. When the terminal device is powered on, the second view is not drawn yet, and the terminal device will display the first view first and then display the second view. That is, after executing S816, the terminal device executes the completion S817 to S819, then executes the completion S832 to S835, and S835 is completed after S829, and after powering on the display driver, the terminal device displays the first view and then displays the second view.
In this implementation, the interface display of the terminal device changes to: bright screen interface-off screen interface-first view interface-second view interface.
In mode 2, the terminal device draws the first view and the second view, and does not display the first view, but only displays the second view.
The terminal equipment firstly completes drawing of the first view and then completes drawing of the second view. After drawing the view, the terminal device triggers the display screen to power up and displays the corresponding interface. When the terminal device is powered on, the second view is drawn, and the terminal device does not display the first view and directly displays the second view. That is, after executing S816, the terminal device executes the completion S817 to S819, then executes the completion S832 to S835, and S835 is completed before S829, and after powering up the display driver, the terminal device does not display the first view and directly displays the second view.
In this implementation manner, the display interface change sequence of the terminal device is: bright screen interface-off screen interface-second view interface.
Mode 3, the terminal device draws the second view and displays the second view.
The terminal device does not execute the flow of drawing and displaying the first view. The terminal equipment starts view drawing after adjusting window layout parameters, the window layout parameters acquired by the terminal equipment before drawing are second window layout parameters (namely window layout parameters in the vertical screen direction), the terminal equipment can draw a second view based on the second window layout parameters, after the second view drawing is completed, the screen state is switched from the screen-off state to the screen-off display state, the power on of the display screen is triggered, and the second view is displayed. That is, after executing S816, the terminal device executes S832 to S835, then executes S820 to S830, and finally executes S836.
In this implementation manner, the display interface change sequence of the terminal device is: bright screen interface-off screen interface-second view interface.
It should be understood that the method 800 shown in fig. 8 is a flowchart corresponding to the above-described mode 1, and modes 2 to 3 are other possible implementations, which are not shown in fig. 8.
The screen-extinguishing display method according to the embodiment of the present application is described in detail above with reference to fig. 2 to 8, and the terminal device according to the embodiment of the present application will be described in detail below with reference to fig. 9.
Fig. 9 shows another terminal device 900 provided in an embodiment of the present application. The terminal device 900 comprises a processor 901, a communication interface 902 and a memory 903. Wherein the processor 901, the communication interface 902 and the memory 903 communicate with each other via an internal connection path, the memory 903 is configured to store instructions, the processor 901 is configured to execute the instructions stored in the memory 903, the communication interface 902 is configured to receive signals from other modules (e.g., the memory 903), and the communication interface 902 is configured to send signals to other modules.
It should be understood that the terminal device 900 may be specifically a terminal device in the foregoing embodiment, and may be configured to perform the steps and/or flows corresponding to the terminal device in the foregoing method embodiment. The memory 903 may optionally include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 901 may be configured to execute instructions stored in a memory, and when the processor 901 executes instructions stored in the memory, the processor 901 is configured to perform the steps and/or processes of the method embodiments described above corresponding to the terminal device. Illustratively, the communication interface 902 may read instructions stored in the memory 903 and send the instructions to the processor 901. The illustrated instructions, when executed by the processor 901, may cause the terminal device to perform the various steps performed by the terminal device in the embodiments described above.
It should be appreciated that in embodiments of the present application, the processor may be a central processing unit (central processing unit, CPU), the processor may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
The present application also provides a computer-readable storage medium for storing a computer program for implementing the method corresponding to the terminal device in the above embodiment.
The present application also provides a computer program product comprising a computer program (which may also be referred to as code, or instructions) which, when run on a computer, is capable of executing the method corresponding to the terminal device shown in the above embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, 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 modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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.
The foregoing is merely specific embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and the changes or substitutions are intended to be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A screen-extinguishing display method, characterized in that it is applied to a terminal device provided with a display screen, said method comprising:
detecting a screen-off signal, and switching the screen state of the terminal equipment from a screen-on state to a screen-off state;
drawing a first view based on a first window layout parameter under the condition that screen-off display is required and the current screen direction of the terminal equipment is a horizontal screen direction, wherein the foreground color of the first view is black, and the first window layout parameter is related to the current screen direction;
switching the screen state of the terminal equipment from a screen-off state to a screen-off display state, and displaying the first view;
adjusting the first window layout parameters into second window layout parameters, and drawing a second view based on the second window layout parameters, wherein the foreground color of the second view is empty, and the second window layout parameters are related to the vertical screen direction;
and displaying the second view.
2. The method of claim 1, wherein the switching the screen state of the terminal device from the on-screen state to the off-screen state comprises:
the battery management service module sends a first screen state switching request to the layer management service module, wherein the first screen state switching request is used for requesting to switch the screen state of the terminal equipment from a bright screen state to a dead screen state;
The layer combination service module sends the first screen state switching request to a display frame module and a display driver respectively;
the display frame module and the display driver respectively switch the screen state of the terminal equipment from a bright screen state to a screen-off state;
the battery management service module sends a power-down request to the display driver when monitoring that the screen state in the display frame module is switched to the off-screen state;
and the display driver executes the power-down operation of the display screen based on the power-down request.
3. The method of claim 2, wherein the drawing the first view based on the first window layout parameter comprises:
the battery management service module adjusts the information screen display service through the information screen display application;
the screen-extinguishing display application transmits the second window layout parameters to a window management service module;
the window management service module transmits a first drawing request to the screen-extinguishing display application, wherein the first drawing request carries the first window layout parameters;
the screen-extinguishing display application draws the first view based on the first window layout parameters;
The adjusting the first window layout parameter to a second window layout parameter includes:
the window management service module adjusts the first window layout parameters to the second window layout parameters;
the drawing a second view based on the second window layout parameter includes:
the window management service module transmits a second drawing request to the screen-extinguishing display application, wherein the second drawing request carries the second window layout parameters;
and the screen-extinguishing display application draws the second view based on the second window layout parameters.
4. A method according to claim 3, wherein prior to said drawing said first view, said method further comprises:
and the screen-extinguishing display application determines that the current screen direction of the terminal equipment is a horizontal screen direction based on the width and the height of the window.
5. The method according to any one of claims 2 to 4, wherein said switching the screen state of the terminal device from the off-screen state to the off-screen display state comprises:
the battery management service module sends a second screen state switching request to the layer stack service module, wherein the second screen state switching request is used for requesting to switch the screen state of the terminal equipment from a screen-off state to a screen-off display state;
The layer-by-layer service module sends the second screen state switching request to a display frame module and a display driver respectively;
the display frame module and the display driver respectively switch the screen state of the terminal equipment from a screen-off state to a screen-off display state;
when the screen-off display application monitors that the screen state in the display frame module is switched to the screen-off display state, transmitting a backlight instruction to the battery management service module;
the battery management service module responds to the backlight down instruction and sends a power-on request to the display driver;
and the display driver executes the power-on operation of the display screen based on the power-on request.
6. The method of claim 5, wherein the battery management service module sending a power-up request to the display driver in response to the down-backlight instruction, comprising:
and the battery management service module repeatedly sends the power-on request to the display driver for a plurality of times under the condition that the power-on success notification from the display driver is not received, until the power-on success notification is received.
7. The method of claim 6, wherein the method further comprises:
The battery management service module judges whether the repeated sending times of the power-on request are equal to a preset upper limit value or not;
the repeatedly sending the power-up request to the display driver a plurality of times includes:
and under the condition that the repeated sending times of the power-on request are smaller than the preset upper limit value, the battery management service module repeatedly sends the power-on request for a plurality of times.
8. The method according to any one of claims 1 to 7, wherein said switching the screen state of the terminal device from the on-screen state to the off-screen state comprises:
setting a screen state parameter as a first gear, wherein the screen state parameter comprises screen refreshing frequency and screen brightness, the screen refreshing frequency corresponding to the first gear is the first frequency, and the screen brightness corresponding to the first gear is the first brightness.
9. The method according to any one of claims 1 to 8, wherein said switching the screen state of the terminal device from the off-screen state to the off-screen display state comprises:
setting a screen state parameter to be a second gear, wherein the screen state parameter comprises screen refreshing frequency and screen brightness, the screen refreshing frequency corresponding to the second gear is the second frequency, and the screen brightness corresponding to the second gear is between the first brightness and the second brightness.
10. The method according to any one of claims 1 to 9, further comprising:
and under the condition that a screen-extinguishing display switch of the terminal equipment is turned on, determining that screen-extinguishing display is required.
11. The method of claim 10, wherein the determining that a message display is required comprises:
and under the condition that a screen-extinguishing display switch of the terminal equipment is turned on and the terminal equipment meets a first preset condition, determining that screen-extinguishing display is required, wherein the first preset condition comprises at least one of the following:
the electric quantity of the terminal equipment is larger than a preset value; or,
the terminal device does not detect the proximity light.
12. The method of any one of claims 1 to 11, wherein the drawing the first view comprises:
and drawing the first view under the conditions that screen-off display is required, the current screen direction of the terminal equipment is a horizontal screen direction, and the terminal equipment meets a second preset condition, wherein the second preset condition comprises any one of the following:
the display screen is a non-folding screen; or,
the display screen is an external display screen of the terminal equipment, and the folding screen is in a completely folded state.
13. The method according to any one of claims 1 to 12, wherein the off-screen signal is generated based on a user's pressing operation of a power key; or the off-screen signal is generated based on that the terminal equipment does not detect the user operation within a preset time.
14. A terminal device, comprising: a processor coupled to a memory for storing a computer program which, when invoked by the processor, causes the terminal device to perform the method of any of claims 1 to 13.
15. A computer readable storage medium storing a computer program comprising instructions for implementing the method of any one of claims 1 to 13.
16. A computer program product comprising computer program code means for causing a computer to carry out the method as claimed in any one of claims 1 to 13 when said computer program code means are run on the computer.
CN202310834500.4A 2023-07-07 2023-07-07 Screen-extinguishing display method and terminal equipment Pending CN117707659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310834500.4A CN117707659A (en) 2023-07-07 2023-07-07 Screen-extinguishing display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310834500.4A CN117707659A (en) 2023-07-07 2023-07-07 Screen-extinguishing display method and terminal equipment

Publications (1)

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

Family

ID=90161276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310834500.4A Pending CN117707659A (en) 2023-07-07 2023-07-07 Screen-extinguishing display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN117707659A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598196A (en) * 2016-11-22 2017-04-26 维沃移动通信有限公司 Display method for graph code and mobile terminal
CN112130742A (en) * 2019-06-25 2020-12-25 华为技术有限公司 Full screen display method and device of mobile terminal
WO2021169337A1 (en) * 2020-02-29 2021-09-02 荣耀终端有限公司 In-screen fingerprint display method and electronic device
CN113824834A (en) * 2021-08-25 2021-12-21 荣耀终端有限公司 Control method for screen-off display and electronic equipment
WO2021259264A1 (en) * 2020-06-22 2021-12-30 深圳市万普拉斯科技有限公司 Screen display method and apparatus, terminal, and computer-readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598196A (en) * 2016-11-22 2017-04-26 维沃移动通信有限公司 Display method for graph code and mobile terminal
CN112130742A (en) * 2019-06-25 2020-12-25 华为技术有限公司 Full screen display method and device of mobile terminal
WO2021169337A1 (en) * 2020-02-29 2021-09-02 荣耀终端有限公司 In-screen fingerprint display method and electronic device
WO2021259264A1 (en) * 2020-06-22 2021-12-30 深圳市万普拉斯科技有限公司 Screen display method and apparatus, terminal, and computer-readable storage medium
CN113824834A (en) * 2021-08-25 2021-12-21 荣耀终端有限公司 Control method for screen-off display and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AYBIKE ÜSTÜNDAĞ; ÇETIN GENÇER: "Control of automatic fire extinguishing operation for 5 forest areas with SCADA", IEEE, 19 November 2021 (2021-11-19) *
刘昌平;刘洋;陈佳实;: "Android应用程序界面动态布局研究", 计算机与现代化, no. 05, 15 May 2013 (2013-05-15) *

Similar Documents

Publication Publication Date Title
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
US20230115868A1 (en) Displaying Interfaces in Different Display Areas Based on Activities
WO2021169337A1 (en) In-screen fingerprint display method and electronic device
CN112399390B (en) Bluetooth connection method and related device
CN112217923B (en) Display method of flexible screen and terminal
US11775135B2 (en) Application icon displaying method and terminal
CN114089932B (en) Multi-screen display method, device, terminal equipment and storage medium
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN115798390B (en) Screen display method and terminal equipment
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
CN116048358B (en) Method and related device for controlling suspension ball
CN113141483B (en) Screen sharing method based on video call and mobile device
WO2022170856A1 (en) Method for establishing connection, and electronic device
CN116389884B (en) Thumbnail display method and terminal equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN117009005A (en) Display method, automobile and electronic equipment
CN113645595B (en) Equipment interaction method and device
CN117707659A (en) Screen-extinguishing display method and terminal equipment
CN110737916A (en) Communication terminal and processing method
CN116700556B (en) Card generation method and related device
CN115706752B (en) Incoming call volume control method, electronic equipment and storage medium
CN116233599B (en) Video mode recommendation method and electronic equipment
US12032410B2 (en) Display method for flexible display, and terminal
CN116680001A (en) Starting method of camera application, readable storage medium and electronic equipment
CN117666810A (en) Input method and electronic equipment

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