Interface display method, electronic device and storage medium

By collecting direction parameters and adjusting the backlight value when the electronic device is on the screen, the problem of being unable to directly display the lock screen interface when the screen is on is on the screen is on, and better visual experience and power consumption management are achieved.

CN115695648BActive Publication Date: 2025-03-18HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211136471.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-15
Publication Date
2025-03-18
Estimated Expiration
2040-10-15

AI Technical Summary

Technical Problem

When existing electronic devices change from black screen to light screen, they cannot directly display the lock screen interface in the physical direction when the screen is bright, resulting in a degradation of user visual experience.

Method used

When the electronic device is on, it uses the direction sensor to collect direction parameters and adjust the backlight value of the display screen to make the display content invisible to the user, and then displays the lock screen interface in the horizontal or vertical screen state indicated by the direction parameters when the screen is on.

Benefits of technology

The lock screen interface is realized directly to the user by the direction parameters indicating when the electronic device is illuminated, which improves the user's visual experience, avoids unnecessary interface switching, and reduces power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695648B_ABST
    Figure CN115695648B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an interface display method and an electronic device, which relates to the field of intelligent control technology, and can directly display to the user the lock screen interface in the horizontal screen state or the vertical screen state indicated by the direction parameter when the electronic device is on the screen, thereby improving the user's visual experience. The specific scheme includes: the electronic device receives a first operation from the user when the display screen is black; wherein the first operation is used to trigger the electronic device to light up the screen; the electronic device responds to the first operation, collects the first direction parameter of the electronic device through the direction sensor, and adjusts the backlight value of the backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to the user; wherein the first direction parameter is used to indicate that the electronic device is in the horizontal screen state or the vertical screen state; the electronic device displays the first lock screen interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusts the backlight value to a second threshold value, so that the display content of the display screen is visible to the user.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202011104659.3, and the original application date is October 15, 2020. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of intelligent control technology, and in particular to an interface display method and an electronic device. Background Art

[0003] With the popularization of electronic devices with display screens, users have higher and higher requirements for the use of electronic devices. The speed and display effect of electronic devices in response to user operations directly affect the user experience. Among them, when the electronic device is in a black screen, it responds to the wake-up operation to light up the screen (i.e., light up the screen). If the physical direction of the electronic device when the screen is on (such as horizontal or vertical screen) is different from the physical direction when the electronic device enters the black screen, the electronic device will first display the lock screen interface according to the physical direction when entering the black screen, and then display the adjusted lock screen interface according to the physical direction when the screen is on. For example, when the electronic device enters the black screen, it is in the horizontal screen, and when the screen is on, it is in the vertical screen. The electronic device first displays the lock screen interface in the horizontal screen state, and then displays the lock screen interface in the vertical screen state.

[0004] In this way, the electronic device does not directly display the lock screen interface in the physical direction when the electronic device's screen is turned on, which reduces the user's visual experience. Summary of the invention

[0005] The present application provides an interface display method and an electronic device, which can directly display to the user a lock screen interface in a horizontal screen state or a vertical screen state indicated by a direction parameter when the electronic device is on the screen, thereby improving the user's visual experience.

[0006] In order to achieve the above technical objectives, this application adopts the following technical solutions:

[0007] In the first aspect, the present application provides an interface display method, which is applied to an electronic device, the electronic device including a display screen and a direction sensor, the method comprising: when the display screen is black, the electronic device receives a first operation from a user; wherein the first operation is used to trigger the electronic device to light up the screen; in response to the first operation, the electronic device collects a first direction parameter of the electronic device through the direction sensor, and adjusts the backlight value of the backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to the user; the electronic device displays a first lock screen interface in a horizontal screen state or a vertical screen state indicated by the first direction parameter, and adjusts the backlight value to a second threshold value, so that the display content of the display screen is visible to the user. wherein the first direction parameter is used to indicate that the electronic device is in a horizontal screen state or a vertical screen state.

[0008] It is understandable that when the electronic device is black, the direction sensor of the electronic device is not working; the direction sensor cannot collect the direction parameters of the electronic device when the screen is black. Therefore, when the electronic device changes from a black screen to a bright screen in response to the first operation, the direction sensor starts to work to collect the direction parameters of the electronic device. However, at this time, the display screen of the electronic device is about to display the lock screen interface. And the direction sensor may not have collected the direction parameters of the electronic device when it changes from a black screen to a bright screen. In conventional technology, the electronic device can display the lock screen interface in the horizontal screen state or the vertical screen state indicated by the direction parameter collected by the direction sensor before the electronic device is black. However, the state indicated by the direction parameter before the electronic device is black (such as the horizontal screen state or the vertical screen state) may be different from the real-time state of the electronic device when the electronic device changes from a black screen to a bright screen (such as the horizontal screen state or the vertical screen state). For example, the direction parameter before the electronic device is black indicates the vertical screen state, and the electronic device is in the horizontal screen state when the electronic device changes from a black screen to a bright screen. In this way, even if the electronic device is in the horizontal screen state, when the electronic device changes from a black screen to a bright screen, the electronic device will still display the lock screen interface in the vertical screen state, affecting the user's visual experience.

[0009] In the present application, the electronic device responds to the first operation, and while collecting the first direction parameter of the electronic device through the direction sensor, the backlight value of the backlight module of the display screen can be adjusted to the first threshold value, so that the display content of the display screen is invisible to the user. In this way, even if the state indicated by the direction parameter before the electronic device goes black is different from the real-time state of the electronic device when the electronic device changes from black to bright, the display content of the display screen is invisible to the user. Afterwards, the electronic device displays the first lock screen interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusts the backlight value to the second threshold value, so that the display content of the display screen is visible to the user. That is, the electronic device can display the lock screen interface in the horizontal screen state or the vertical screen state indicated by the direction parameter collected by the direction sensor after the electronic device turns on the screen. In this way, the horizontal and vertical screen states of the lock screen interface displayed by the electronic device are consistent with the current real-time state of the electronic device.

[0010] The method of the present application can directly display to the user the lock screen interface in the horizontal or vertical state indicated by the orientation parameter of the electronic device when the screen is on, thereby improving the user's visual experience.

[0011] In a possible implementation, the method further includes: the electronic device displays a second lock screen interface in response to the first operation when the backlight value is a first threshold; wherein the second lock screen interface is a lock screen interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic device, and the second direction parameter is a direction parameter when the electronic device changes from a bright screen to a black screen. wherein the first lock screen interface is a lock screen interface drawn by the electronic device according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.

[0012] It is understandable that when the electronic device changes from a black screen to a bright screen in response to the first operation, the direction sensor starts working to collect the direction parameters of the electronic device. However, at this time, the display screen of the electronic device is about to display the lock screen interface. The direction sensor may not have collected the direction parameters when the electronic device changes from a black screen to a bright screen. When the electronic device changes from a black screen to a bright screen, the second lock screen interface is first displayed in the horizontal screen state or vertical screen state indicated by the second direction parameter collected by the direction sensor when the electronic device changes from a bright screen to a black screen. However, the state indicated by the direction parameter (i.e., the first direction parameter) when the electronic device changes from a black screen to a bright screen (such as a horizontal screen state or a vertical screen state) may be different from the state indicated by the second direction parameter when the screen changes from a bright screen to a black screen, then the electronic device displays the second lock screen interface while adjusting the backlight value of the backlight module to the first threshold. Among them, the backlight value of the backlight module is the first threshold, and the display content of the display screen is invisible to the user, then the second lock screen interface displayed by the display screen is invisible to the user, avoiding showing the user a lock screen interface that does not match the current real-time state of the electronic device.

[0013] In another possible implementation, the first threshold is zero. The second threshold is a pre-stored backlight value, or the second threshold is a backlight value of a backlight module before the display screen goes black, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.

[0014] In this design method, an implementation method of controlling the display content of the display screen of an electronic device to be invisible to the user, and several implementation methods of controlling the display content of the display screen to be visible to the user are described.

[0015] In another possible implementation, the landscape state includes a first landscape state and a second landscape state, and the portrait state includes a first portrait state and a second portrait state. The display screen includes a first long frame, a second long frame, a first short frame, and a second short frame, the first long frame is parallel to the second long frame, the first short frame is parallel to the second short frame, and the first long frame is perpendicular to the first short frame. In the first landscape state, the angle between the first long frame or the second long frame and the horizontal plane is less than a preset value, and the first long frame is farther from the horizontal plane than the second long frame; in the second landscape state, the angle between the first long frame or the second long frame and the horizontal plane is less than a preset value, and the second long frame is farther from the horizontal plane than the first long frame. In the first portrait state, the angle between the first short frame or the second short frame and the horizontal plane is less than a preset value, and the first short frame is farther from the horizontal plane than the second short frame; in the second portrait state, the angle between the first short frame or the second short frame and the horizontal plane is less than a preset value, and the second short frame is farther from the horizontal plane than the first short frame.

[0016] In this design approach, several states that may be indicated by the direction parameter of the electronic device are described.

[0017] In the second aspect, the present application also provides an electronic device, which includes: an input module and a control module. The input module is used to receive a first operation from a user when the display screen is black; the first operation is used to trigger the electronic device to light up the screen; the control module is used to collect a first direction parameter of the electronic device through a direction sensor in response to the first operation, and adjust the backlight value of the backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to the user; the first direction parameter is used to indicate that the electronic device is in a horizontal screen state or a vertical screen state; the control module is also used to display a first lock screen interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjust the backlight value to a second threshold value, so that the display content of the display screen is visible to the user.

[0018] In a possible implementation, the control module is further configured to, in response to the first operation, display a second lock screen interface when the backlight value is a first threshold value; wherein the second lock screen interface is a lock screen interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic device, and the second direction parameter is a direction parameter when the electronic device changes from a bright screen to a black screen. The first lock screen interface is a lock screen interface drawn by the electronic device according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.

[0019] In another possible implementation, the first threshold is zero. The second threshold is a pre-stored backlight value, or the second threshold is a backlight value of a backlight module before the display screen goes black, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.

[0020] In another possible implementation, the landscape state includes a first landscape state and a second landscape state, and the portrait state includes a first portrait state and a second portrait state. The display screen includes a first long frame, a second long frame, a first short frame, and a second short frame, the first long frame is parallel to the second long frame, the first short frame is parallel to the second short frame, and the first long frame is perpendicular to the first short frame. In the first landscape state, the angle between the first long frame or the second long frame and the horizontal plane is less than a preset value, and the first long frame is farther from the horizontal plane than the second long frame; in the second landscape state, the angle between the first long frame or the second long frame and the horizontal plane is less than a preset value, and the second long frame is farther from the horizontal plane than the first long frame. In the first portrait state, the angle between the first short frame or the second short frame and the horizontal plane is less than a preset value, and the first short frame is farther from the horizontal plane than the second short frame; in the second portrait state, the angle between the first short frame or the second short frame and the horizontal plane is less than a preset value, and the second short frame is farther from the horizontal plane than the first short frame.

[0021] In a third aspect, the present application also provides an electronic device, comprising: a processor and a memory; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; the processor is used to run computer instructions so that the electronic device executes an interface display method as in the first aspect and any possible implementation manner thereof.

[0022] In a fourth aspect, the present application also provides a computer-readable storage medium, on which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes an interface display method as in the first aspect and any possible implementation manner thereof.

[0023] In a fifth aspect, the present application also provides a computer program product, comprising one or more instructions, which can be executed on an electronic device so that the electronic device executes the interface display method of the first aspect and any possible implementation manner thereof.

[0024] The technical effects brought about by the second aspect of this application and any possible design thereof, as well as the third, fourth and fifth aspects can refer to the technical effects brought about by the different design methods in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of display of an electronic device from horizontal screen to vertical screen provided by conventional technology;

[0026] Figure 2 is a schematic diagram of an electronic device in a horizontal screen state provided by an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of an electronic device in a vertical screen state provided by an embodiment of the present application;

[0028] Figure 4 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0029] Figure 5 This is a flow chart of an interface display method provided in an embodiment of the present application. Figure 1 ;

[0030] Figure 6 This is a schematic diagram of display of an electronic device from a first horizontal screen to a first vertical screen provided by an embodiment of the present application;

[0031] Figure 7 This is a schematic diagram of display of an electronic device from a first vertical screen to a first horizontal screen provided by an embodiment of the present application;

[0032] Figure 8This is a schematic diagram of display of an electronic device from a first vertical screen to a second vertical screen provided by an embodiment of the present application;

[0033] Fig. 9 is a schematic diagram of a system architecture of an electronic device provided in an embodiment of the present application;

[0034] Fig.10 It is a timing diagram of an electronic device executing an interface display method provided in an embodiment of the present application;

[0035] Fig.11 This is a flow chart of an interface display method provided in an embodiment of the present application. Figure 2 ;

[0036] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The "first" and "second" in the embodiments of the present application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects. For example, the first threshold and the second threshold are different thresholds.

[0038] At present, with the popularization of electronic devices with display screens, users have higher and higher requirements for the use of electronic devices. Among them, the display effect of electronic devices has a greater impact on user experience. In order to improve user experience, electronic devices detect their own physical direction (such as horizontal or vertical screen) through direction sensors, and then adjust the interface displayed on the display screen according to the detected physical direction. For example, when an electronic device lights up the screen (i.e., turns on the screen) in response to a wake-up operation, the electronic device will first display the lock screen interface according to the physical direction when entering the black screen, and then display the adjusted lock screen interface according to the physical direction when the screen is turned on.

[0039] It should be noted that when the screen is black, the electronic device is in a dormant state, and the direction sensor will stop working for the purpose of saving power. Therefore, when the screen changes from black to bright, the electronic device can only display the lock screen interface according to the physical direction before the black screen, and start the direction sensor at the same time. Then, the physical direction when the screen is bright is detected by the direction sensor, and then the lock screen interface is displayed according to the physical direction when the screen is bright.

[0040] It is understandable that if the physical orientation of the electronic device when entering the black screen is different from the physical orientation when the screen is on, the electronic device first displays a lock screen interface according to the physical orientation when the screen is on, and then displays another lock screen interface according to the physical orientation when the screen is on. In this way, the electronic device does not directly display the lock screen interface according to the physical orientation when the screen is on, but displays the lock screen interface that matches the physical orientation when the screen is on after an interface switch, which reduces the user's visual experience.

[0041] For example, when an electronic device runs a video application (APP) in landscape mode, the interface of the APP in landscape mode is displayed on the display screen according to the detected physical orientation of the electronic device (i.e. landscape mode). Figure 1 When the electronic device receives a lock screen operation from the user, the display screen turns black in response to the lock screen operation, as shown in (a) of FIG. Figure 1 As shown in (b) in .

[0042] Then, the user turns the electronic device with a black screen from landscape to portrait, and performs a wake-up operation on the electronic device. When the electronic device receives the user's wake-up operation, it responds to the wake-up operation by lighting up the screen (i.e., lighting the screen) using the above solution, and first displays the lock screen interface in the landscape state according to the physical direction of the electronic device when the screen changes from the light screen to the black screen (i.e., landscape), such as Figure 1 Then, the electronic device detects the physical direction when the screen changes from black to bright (i.e., vertical screen) through the direction sensor; and then displays the lock screen interface in the vertical screen state according to the physical direction when the screen changes from black to bright (i.e., vertical screen), as shown in (c) of FIG. Figure 1 As shown in (d) in the figure, the lock screen interface in the horizontal screen state and the lock screen interface in the vertical screen state have the same display content, both displaying the time "11:30, Thursday, September 10" and the unlock prompt information "Slide to unlock".

[0043] It can be seen that the electronic device first displays the lock screen interface in the horizontal screen state, and then displays the lock screen interface in the vertical screen state. When the electronic device changes from a black screen to a bright screen, it cannot directly display the lock screen interface that conforms to the physical direction of the bright screen, which affects the user's visual experience.

[0044] An embodiment of the present application provides an interface display method, through which the lock screen interface in the horizontal screen state or the vertical screen state indicated by the direction parameter of the electronic device when the screen is on can be directly displayed to the user, thereby improving the user's visual experience.

[0045] When a user uses an electronic device, the electronic device may be in a horizontal screen state or a vertical screen state; wherein the horizontal screen state includes a first horizontal screen state and a second horizontal screen state, and the vertical screen state includes a first vertical screen state and a second vertical screen state. The physical direction of the electronic device may include: a first horizontal screen, a second horizontal screen, a first vertical screen, and a second vertical screen corresponding to the first horizontal screen state, the second horizontal screen state, the first vertical screen state, and the second vertical screen state. The display screen of the electronic device may include four frames, including two parallel and equal longer frames, which may be referred to as the first long frame and the second long frame of the display screen; the four frames also include two parallel and equal shorter frames, which may be referred to as the first short frame and the second short frame of the display screen. The first long frame is perpendicular to the first short frame.

[0046] In the first horizontal screen state, if Figure 2 As shown in (a) of FIG. 1 , the first long frame c1 or the second long frame c2 of the display screen of the electronic device is parallel to the horizontal plane p (that is, the angle between the first long frame c1 or the second long frame c2 of the display screen and the horizontal plane p is 0), and the first long frame c1 is farther from the horizontal plane p than the second long frame c2. Or, as Figure 2 As shown in (b), the angle a1 between the first long frame c1 or the second long frame c2 of the display screen and the horizontal plane p is less than or equal to a preset value 1, and the first long frame c1 is farther from the horizontal plane p than the second long frame c2. The preset value 1 is less than or equal to 45°, and the specific value of the preset value 1 can be set according to the actual application scenario, for example, the preset value 1 can be 20°.

[0047] In the second horizontal screen state, Figure 2 As shown in (c) of FIG. 1 , the first long frame c1 or the second long frame c2 of the display screen of the electronic device is parallel to the horizontal plane p, and the second long frame c2 is farther from the horizontal plane p than the first long frame c1. Figure 2 As shown in (d), the angle a1 between the first long frame c1 or the second long frame c2 of the display screen and the horizontal plane p is less than or equal to the preset value 1, and the second long frame c2 is farther from the horizontal plane p than the first long frame c1.

[0048] from Figure 2 It can be seen that in the first horizontal screen state and the second horizontal screen state, the display screen of the electronic device is basically in a horizontal strip shape.

[0049] In the first vertical screen state, Figure 3As shown in (a) of FIG. 1 , the first short frame d1 or the second short frame d2 of the display screen of the electronic device is parallel to the horizontal plane p (that is, the angle between the first short frame d1 or the second short frame d2 of the display screen and the horizontal plane p is 0), and the first short frame d1 is farther from the horizontal plane p than the second short frame d2. Or, as Figure 3 As shown in (b), the angle a2 between the first short border d1 or the second short border d2 of the display screen and the horizontal plane p is less than or equal to the above-mentioned preset value 1, and the first short border d1 is farther from the horizontal plane p than the second short border d2.

[0050] In the second vertical screen state, Figure 3 As shown in (c) of FIG. 1 , the first short frame d1 or the second short frame d2 of the display screen of the electronic device is parallel to the horizontal plane p, and the second short frame d2 is farther from the horizontal plane p than the first short frame d1. Figure 3 As shown in (d), the angle a2 between the first short border d1 or the second short border d2 of the display screen and the horizontal plane p is less than or equal to the above-mentioned preset value 1, and the second short border d2 is farther from the horizontal plane p than the first short border d1.

[0051] from Figure 3 It can be seen that in the first vertical screen state and the second vertical screen state, the display screen of the electronic device is basically in the shape of a vertical strip.

[0052] It should be noted that the electronic device in the embodiments of the present application can be any device including a display screen and a direction sensor, for example, a mobile phone, a tablet computer, a desktop computer, a handheld computer, a laptop computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, and a personal digital assistant (PDA), an augmented reality device, a virtual reality device, etc. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0053] It should be noted that the interface display method provided in the embodiment of the present application can be applied to the above-mentioned electronic device. The execution subject of the interface display method provided in the embodiment of the present application can also be an interface display device, and the interface display device can be an electronic device. The interface display device can also be an APP installed with an interface display function; or, the interface display device can also be a central processing unit (CPU) in an electronic device; or, a control module in an electronic device for executing the interface display method.

[0054] The following takes the mobile phone as an example to introduce the hardware structure of the electronic device. Figure 4As shown, the electronic device 400 may include: a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493 (may include cameras 1-N), a display screen 494 (such as a touch screen), and a subscriber identification module (SIM) card interface 495 (may include SIM card interfaces 1-N), etc.

[0055] Among them, the above-mentioned sensor module 480 may include sensors such as direction sensor, pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.

[0056] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments, the electronic device 400 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0057] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0058] The controller may be the nerve center and command center of the electronic device 400. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0059] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0060] In some embodiments, the processor 410 may include one or more interfaces. It is understood that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 400. In other embodiments, the electronic device 400 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0061] The charging management module 440 is used to receive charging input from a charger (charging input of a wired charger and / or wireless charging input) to charge the battery 442. The charger can be a wireless charger or a wired charger. While the charging management module 440 is charging the battery 442, it can also power the electronic device through the power management module 441.

[0062] The power management module 441 is used to connect the battery 442, the charging management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440, and supplies power to the processor 410, the internal memory 421, the external memory, the display screen 494, the camera 493, and the wireless communication module 460. In some embodiments, the power management module 441 may also be disposed in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 may also be disposed in the same device.

[0063] The wireless communication function of the electronic device 400 can be implemented by antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, modem processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. In some embodiments, the antenna 1 of the electronic device 400 is coupled with the mobile communication module 450, and the antenna 2 is coupled with the wireless communication module 460, so that the electronic device 400 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global navigation satellite system (GNSS), wireless local area network (WLAN) (such as Wi-Fi network) technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS), etc. Exemplarily, the electronic device 400 may obtain the real-time location information of the electronic device 400 through positioning technologies such as GPS, BDS or SBAS.

[0064] The mobile communication module 450 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 400. For example, the electronic device 400 can send an email to a server through the mobile communication module 450.

[0065] The wireless communication module 460 can provide wireless communication solutions including WLAN (such as Wi-Fi network), Bluetooth (BT), GNSS, Near Field Communication (NFC), Infrared (IR), and frequency modulation (FM) for application in the electronic device 400. For example, the electronic device 400 can obtain the real-time location information of the electronic device 400 through GNSS positioning technology.

[0066] The electronic device 400 implements a display function through a GPU, a display screen 494, and an application processor. The electronic device 400 can implement a shooting function through an ISP, a camera 493, a video codec, a GPU, a display screen 494, and an application processor. The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The internal memory 421 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 410 executes various functional applications and data processing of the electronic device 400 by running the instructions stored in the internal memory 421. The electronic device 400 can implement an audio function through an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, a headphone interface 470D, and an application processor.

[0067] It should be noted that the methods in the following embodiments can all be implemented in the electronic device 400 having the above hardware structure.

[0068] Please refer to Figure 5 , is a flow chart of an interface display method provided in an embodiment of the present application. Figure 5 As shown, the interface display method may include S501-S503.

[0069] S501. When the display screen of the electronic device is black, the electronic device receives a first operation from the user; wherein the first operation is used to trigger the electronic device to light up the screen.

[0070] The first operation may be an operation of waking up the electronic device. For example, the electronic device includes a power button, and the first operation may be an operation of the power button by a user. The display screen may be a liquid crystal display (LCD).

[0071] In an embodiment of the present application, when the electronic device is in a locked screen state when the screen is black, the first operation can be used to trigger the electronic device to light up the screen and display the lock screen interface.

[0072] In an embodiment of the present application, the electronic device may include a backlight module for the display screen in addition to the display screen and the direction sensor. The backlight module is used to provide light sources of different brightness for the display screen so that the display screen can display information normally. The direction sensor is used to collect the direction parameters of the electronic device; the direction parameters can be used to indicate that the electronic device is in a horizontal screen state or a vertical screen state; the direction parameters can also be used to specifically indicate that the electronic device is in a first horizontal screen state, a second horizontal screen state, a first vertical screen state, or a second vertical screen state.

[0073] It should be noted that when the display screen of the electronic device is black, it is in a sleep state, and the display screen, direction sensor and backlight module all stop working. Therefore, the electronic device cannot detect the direction parameters of the electronic device when the screen is black.

[0074] S502. In response to the first operation, the electronic device collects a first direction parameter of the electronic device through a direction sensor, and adjusts the backlight value of the backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to the user; wherein the first direction parameter is used to indicate that the electronic device is in a horizontal screen state or a vertical screen state.

[0075] The electronic device starts the direction sensor and the backlight module in response to the first operation. When the electronic device starts the backlight module, the backlight value of the backlight module is adjusted to the first threshold. The electronic device starts the direction sensor and starts to collect the direction parameter of the electronic device through the direction sensor. The electronic device can collect the first direction parameter of the electronic device through the direction sensor.

[0076] The first threshold may be zero. The first direction parameter may be a direction parameter when the electronic device lights up the screen in response to the first operation. The first direction parameter may be used to specifically indicate that the electronic device is in a first horizontal screen state, a second horizontal screen state, a first vertical screen state, or a second vertical screen state.

[0077] In the embodiment of the present application, the electronic device displays a second lock screen interface in response to a first operation when the backlight value is a first threshold value; wherein the second lock screen interface is a lock screen interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic device, and the second direction parameter is a direction parameter when the electronic device changes from a bright screen to a black screen. wherein the first lock screen interface is a lock screen interface drawn by the electronic device according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.

[0078] When the display screen of the electronic device is on and the direction sensor works normally, the electronic device can collect the direction parameters of the electronic device through the direction sensor. When the display screen of the electronic device changes from a bright screen to a black screen, the electronic device can also save the direction parameters collected at that time, that is, the second direction parameters. Then, when the display screen is black, the electronic device can respond to the first operation and display the lock screen interface in the horizontal screen state or the vertical screen state indicated by the second direction parameter, that is, the second lock screen interface. At the same time, the electronic device collects the first direction parameter of the electronic device through the direction sensor, and adjusts the backlight value to the first threshold value, so that the second lock screen interface displayed on the display screen is invisible to the user.

[0079] In some embodiments, the electronic device can draw the second lock screen interface according to the horizontal screen state or the vertical screen state indicated by the second direction parameter while saving the second direction parameter, and save the second lock screen interface. Alternatively, the electronic device responds to the first operation when the display screen is black, and draws the second lock screen interface according to the horizontal screen state or the vertical screen state indicated by the second direction parameter.

[0080] S503: The electronic device displays the first lock screen interface in the horizontal or vertical state indicated by the first orientation parameter, and adjusts the backlight value to a second threshold value so that the display content of the display screen is visible to the user.

[0081] After the electronic device collects the first direction parameter through the direction sensor, it displays the first lock screen interface in the horizontal or vertical state indicated by the first direction parameter, and adjusts the backlight value to the second threshold so that the first lock screen interface displayed on the display is visible to the user.

[0082] The second threshold may be a pre-stored backlight value, or the second threshold may be a backlight value of a backlight module before the display screen goes black, or the second threshold may be a backlight value determined according to the ambient light brightness around the electronic device.

[0083] In some embodiments, after the electronic device collects the first direction parameter through the direction sensor, it can draw the first lock screen interface according to the horizontal screen state or the vertical screen state indicated by the first direction parameter. Then, the first lock screen interface is displayed on the display screen.

[0084] It is understandable that when the electronic device is black, the direction sensor of the electronic device is not working; the direction sensor cannot collect the direction parameters of the electronic device when the screen is black. Therefore, when the electronic device changes from a black screen to a bright screen in response to the first operation, the direction sensor starts to work to collect the direction parameters of the electronic device. However, at this time, the display screen of the electronic device is about to display the lock screen interface. And the direction sensor may not have collected the direction parameters of the electronic device when it changes from a black screen to a bright screen. In conventional technology, the electronic device can display the lock screen interface in the horizontal screen state or the vertical screen state indicated by the direction parameter collected by the direction sensor before the electronic device is black. However, the state indicated by the direction parameter before the electronic device is black (such as the horizontal screen state or the vertical screen state) may be different from the real-time state of the electronic device when the electronic device changes from a black screen to a bright screen (such as the horizontal screen state or the vertical screen state). For example, the direction parameter before the electronic device is black indicates the vertical screen state, and the electronic device is in the horizontal screen state when the electronic device changes from a black screen to a bright screen. In this way, even if the electronic device is in the horizontal screen state, when the electronic device changes from a black screen to a bright screen, the electronic device will still display the lock screen interface in the vertical screen state, affecting the user's visual experience.

[0085] In an embodiment of the present application, the electronic device responds to the first operation, and while collecting the first direction parameter of the electronic device through the direction sensor, the backlight value of the backlight module of the display screen can be adjusted to the first threshold value, so that the display content of the display screen is invisible to the user. In this way, even if the state indicated by the direction parameter before the electronic device goes black is different from the real-time state of the electronic device when the electronic device changes from black to bright, the display content of the display screen is invisible to the user. Afterwards, the electronic device displays the first lock screen interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusts the backlight value to the second threshold value, so that the display content of the display screen is visible to the user. That is, the electronic device can display the lock screen interface in the horizontal screen state or the vertical screen state indicated by the direction parameter collected by the direction sensor after the electronic device turns on the screen. In this way, the horizontal and vertical screen states of the lock screen interface displayed by the electronic device are consistent with the current real-time state of the electronic device.

[0086] In summary, the electronic device can directly display the lock screen interface in the horizontal or vertical state indicated by the orientation parameter when the electronic device is on, thereby improving the user's visual experience. In addition, the electronic device only reduces the backlight value of the backlight module before displaying the first lock screen interface, so that the display content of the display screen is invisible to the user, and no new interface is added. Therefore, there is no need to draw a new interface, and the power consumption of the electronic device will not be increased.

[0087] For example, when the electronic device runs a video APP in the first horizontal screen state, the second direction parameter is detected by the direction sensor, and the second direction parameter indicates that the electronic device is in the first horizontal screen state; then the interface of the APP in the first horizontal screen state indicated by the second direction parameter is displayed on the display screen, such as Figure 6 Then, the electronic device receives the user's lock screen operation, and in response to the lock screen operation, the display screen turns black (such as Figure 6 ), and save the second direction parameter.

[0088] Then, after the user turns the electronic device with a black screen from the first horizontal screen to the first vertical screen, the electronic device receives the user's first operation again, and in response to the first operation, simultaneously performs the following steps: collects the first direction parameter through the direction sensor, adjusts the backlight value of the backlight module to 0, and displays the second lock screen interface in the first horizontal screen state on the display screen. Since the backlight value of the backlight module is 0, the second lock screen interface in the first horizontal screen state displayed on the display screen is not visible to the user, and the display screen is black. Figure 6 Finally, after the electronic device collects the first direction parameter through the direction sensor, it displays the first lock screen interface in the first vertical screen state indicated by the first direction parameter on the display screen, and adjusts the backlight value of the backlight module to the second threshold value. At this time, the first lock screen interface in the first vertical screen state displayed on the display screen is visible to the user, as shown in FIG. Figure 6 As shown in (d) in the figure, the second lock screen interface in the first horizontal screen state and the first lock screen interface in the first vertical screen state both display the screen light time "11:30, Thursday, September 10" and the unlock prompt information "Slide to unlock".

[0089] from Figure 6 It can be seen that the electronic device does not show the user the switching process from the second lock screen interface in the first horizontal screen state to the first lock screen interface in the first vertical screen state. Instead, it directly displays the first lock screen interface in the first vertical screen state of the electronic device when the screen is turned on, thereby improving the user's visual experience.

[0090] For example, when the electronic device runs a video APP in the first portrait state, the direction sensor detects a second direction parameter, and the second direction parameter indicates that the electronic device is in the first portrait state; then the interface of the APP in the first portrait state indicated by the second direction parameter is displayed on the display screen, such as Figure 7 Then, the electronic device receives the user's lock screen operation, and in response to the lock screen operation, the display screen turns black (such as Figure 7 ), and save the second direction parameter.

[0091] Then, after the user turns the electronic device with a black screen from the first portrait screen to the first landscape screen, the electronic device receives the user's first operation again, and in response to the first operation, simultaneously performs the following steps: collects the first direction parameter through the direction sensor, adjusts the backlight value of the backlight module to 0, and displays the second lock screen interface in the first portrait screen state on the display screen. Since the backlight value of the backlight module is 0, the second lock screen interface in the first portrait screen state displayed on the display screen is not visible to the user, and the display screen is black. Figure 7 Finally, after the electronic device collects the first direction parameter through the direction sensor, it displays the first lock screen interface in the first horizontal screen state indicated by the first direction parameter on the display screen, and adjusts the backlight value of the backlight module to the second threshold value. At this time, the first lock screen interface in the first horizontal screen state displayed on the display screen is visible to the user, as shown in FIG. Figure 7 As shown in (d) in the figure, both the second lock screen interface and the first lock screen interface display the unlock prompt message "Slide to unlock".

[0092] from Figure 7 It can be seen that the electronic device does not display to the user the switching process from the second lock screen interface in the first vertical screen state to the first lock screen interface in the first horizontal screen state. Instead, it directly displays the first lock screen interface in the first horizontal screen state of the electronic device when the screen is turned on, thereby improving the user's visual experience.

[0093] For example, when the electronic device runs a video APP in the first portrait state, the direction sensor detects a second direction parameter, and the second direction parameter indicates that the electronic device is in the first portrait state; then the interface of the APP in the first portrait state indicated by the second direction parameter is displayed on the display screen, such as Figure 8 Then, the electronic device receives the user's lock screen operation, and in response to the lock screen operation, the display screen turns black (such as Figure 8 ), and save the second direction parameter.

[0094] Then, the user turns the electronic device with a black screen from the first vertical screen to the second vertical screen. When the electronic device receives the user's operation of the power button, it responds to the user's operation of the power button and simultaneously performs the following steps: collects the first direction parameter through the direction sensor, adjusts the backlight value of the backlight module to 0, and displays the second lock screen interface in the first vertical screen state on the display screen. Since the backlight value of the backlight module is 0, the second lock screen interface in the first vertical screen state displayed on the display screen is not visible to the user, and the display screen is black. Figure 8 Finally, after the electronic device collects the first direction parameter through the direction sensor, it displays the first lock screen interface in the second vertical screen state indicated by the first direction parameter on the display screen, and adjusts the backlight value of the backlight module to the second threshold value. At this time, the first lock screen interface in the second vertical screen state displayed on the display screen is visible to the user, as shown in FIG. Figure 8 As shown in (d) in the figure, both the second lock screen interface and the first lock screen interface display the unlock prompt message "Slide to unlock".

[0095] from Figure 8 It can be seen that the electronic device does not display to the user the switching process from the second lock screen interface in the first vertical screen state to the first lock screen interface in the second vertical screen state. Instead, it directly displays the first lock screen interface in the second vertical screen state of the electronic device when the screen is turned on, thereby improving the user's visual experience.

[0096] Please refer to Fig. 9 , is a schematic diagram of a system architecture of an electronic device provided in an embodiment of the present application. The operating system used by the electronic device 400 may be an Android system, and the system architecture of the Android system includes: an application framework layer (Application Framework) 910 and an application layer (Applications) 920. The electronic device 400 may include: a power key 931, a direction sensor 932, a display screen 933, and a backlight module 934 of the display screen in terms of hardware.

[0097] Among them, the application framework layer 910 may include: a power management service 911, a backlight module management service 912 and a direction sensor management service 913. The power management service 911 is used to respond to the user's operation on the power button 931 (such as the first operation in S501) to trigger a black screen event or a bright screen event. The backlight module management service 912 is used to control the backlight value of the backlight module 934 (that is, the brightness of the display screen 933). The direction sensor management service 913 is used to transmit the detected direction parameters to the APP in the application layer 920 when the electronic device 400 turns on the screen. The application layer 920 includes all APPs installed on the electronic device 400, such as the lock screen APP 921. The lock screen APP 921 is used to execute black screen time and bright screen events, as well as to draw the lock screen interface.

[0098] In the embodiment of the present application, when the electronic device has a black screen and is in a locked screen state, the user can change the physical orientation of the electronic device (i.e., the horizontal or vertical screen state of the electronic device) after the electronic device changes from a bright screen to a black screen, and then operate the power button (e.g., press the power button); or, only operate the power button. Then, the electronic device executes the interface display method in response to the user's operation on the power button. Fig. 9 Taking the electronic device in the example as an example, the specific process of the electronic device executing the interface display method is described, such as Fig. 9 and Fig.10 As shown, steps A1-A9 may be included.

[0099] A1. When the display screen 933 of the electronic device 400 is black and in the locked screen state, the electronic device 400 receives an operation of the power button 931 by the user.

[0100] A2. In response to the user's operation on the power button 931 , the electronic device 400 sends a screen-on trigger instruction to the power management service 911 and activates the direction sensor 934 .

[0101] In response to the user's operation on the power key 931, the electronic device 400 changes from the sleep state to the working state, starts the direction sensor 934, and starts collecting direction parameters. At the same time, it also sends a screen-on trigger instruction to the power management service 911. The screen-on trigger instruction may include a screen-on time, which refers to the absolute time when the user's operation on the power key 931 is received.

[0102] A3. The electronic device 400 responds to the screen-on trigger instruction through the power management service 911, sends a first instruction to the backlight module management service 912, and sends a screen-on execution instruction to the lock screen APP 921; wherein the first instruction is used to instruct to adjust the backlight value to 0.

[0103] A4. The electronic device 400 adjusts the backlight value of the backlight module 934 to 0 in response to the first instruction through the backlight module management service 912.

[0104] A5. The electronic device 400 responds to the screen light execution instruction through the lock screen APP 921, outputs a second lock screen interface, and displays the second lock screen interface on the display screen 933.

[0105] Among them, the second lock screen interface is the lock screen interface in the horizontal screen state or the vertical screen state indicated by the second direction parameter of the electronic device 400; the second direction parameter is the direction parameter when the electronic device 400 changes from a bright screen to a black screen this time.

[0106] In some embodiments, the electronic device 400 can output a second lock screen interface including the screen light-up time in response to the screen light-up execution instruction through the lock screen APP 921.

[0107] It should be noted that the electronic device 400 may execute step A4 and step A5 simultaneously, or may execute step A4 first and then step A5. The embodiment of the present application does not limit the execution order of step A4 and step A5.

[0108] A6. The electronic device 400 sends the first direction parameter of the electronic device 400 collected by the direction sensor 934 to the lock screen APP 921 through the direction sensor management service 913.

[0109] The direction sensor management service 913 receives the first direction parameter from the direction sensor 934 and sends it to the lock screen APP 921. The first direction parameter may be a direction parameter when the electronic device 400 turns on the screen in response to the user's operation on the power button 931.

[0110] It should be noted that the electronic device 400 can execute step A6 after step A2 and before step A7, specifically, before steps A3-A5, after steps A3-A5, or between steps A3-A5. This embodiment of the present application does not limit this.

[0111] A7. If the electronic device 400 determines through the lock screen APP 921 that the first direction parameter and the second direction parameter are different, it outputs a first lock screen interface and displays the first lock screen interface on the display screen 933.

[0112] The electronic device 400 receives the first direction parameter through the lock screen APP 921, and determines whether the first direction parameter and the second direction parameter are the same. If it is determined that the first direction parameter and the second direction parameter are not the same, the electronic device 400 executes step A7. If it is determined that the first direction parameter and the second direction parameter are the same, the electronic device 400 does not execute step A7, and directly executes steps A8-A9.

[0113] It should be noted that when the electronic device 400 has a black screen and is in a locked state, if the user changes the physical direction of the electronic device after the screen changes from bright to black, and then operates the power button, the first direction parameter and the second direction parameter are different, and the electronic device outputs the second lock screen interface and the first lock screen interface in sequence.

[0114] A8. The electronic device 400 sends a second instruction to the backlight module management service 912 through the power management service 911. The second instruction is used to instruct to adjust the backlight value to a second threshold.

[0115] The second threshold may be a backlight value determined according to the ambient light brightness around the electronic device.

[0116] A9. The electronic device 400 responds to the second instruction through the backlight module management service 912 to adjust the backlight value of the backlight module 934 to the second threshold.

[0117] It is understandable that the direction sensor starts working to collect the direction parameters of the electronic device when the electronic device changes from a black screen to a bright screen in response to the first operation. However, at this time, the display screen of the electronic device is about to display the lock screen interface. The direction sensor may not have collected the direction parameters of the electronic device when it changes from a black screen to a bright screen. When the electronic device changes from a black screen to a bright screen, the second lock screen interface is first displayed in the horizontal screen state or the vertical screen state indicated by the second direction parameter collected by the direction sensor when the electronic device changes from a bright screen to a black screen.

[0118] However, the state (such as horizontal screen state or vertical screen state) indicated by the direction parameter (i.e., the first direction parameter) when the electronic device changes from a black screen to a bright screen may be different from the state indicated by the second direction parameter when the bright screen changes from a black screen. In this case, the electronic device displays the second lock screen interface while adjusting the backlight value of the backlight module to 0. Among them, the backlight value of the backlight module is 0, and the display content of the display screen is invisible to the user, so the second lock screen interface displayed by the display screen is invisible to the user, avoiding showing the user a lock screen interface that is inconsistent with the current real-time state of the electronic device. In addition, the electronic device only adjusts the backlight value of the backlight module to 0 before collecting the first direction parameter, and does not need to draw a new interface, which will not increase the power consumption of the electronic device.

[0119] Please refer to Fig.11 , continue with Fig. 9Taking the electronic device in as an example, the power management service in the electronic device may include a backlight module management service and a direction sensor management service. That is to say, the power management service in the electronic device, in addition to being used to trigger a black screen event or a light screen event in response to the user's operation of the power button (such as the first operation in S501), can also be used to control the backlight value of the backlight module, and when the electronic device lights up the screen, transmit the detected direction parameters to the APP in the application layer. The specific process of the electronic device executing the interface display method may include S1101-S1108.

[0120] S1101. When the display screen of the electronic device is black and in a locked state, the electronic device receives an operation of a power button by a user.

[0121] S1102: In response to the user operating the power button, the electronic device sends a screen-on trigger instruction to the power management service and starts the direction sensor.

[0122] S1103. The electronic device responds to the screen-on trigger instruction through the power management service, adjusts the backlight value of the backlight module of the display screen to 0, and sends a screen-on execution instruction to the lock screen APP.

[0123] S1104. The electronic device responds to the screen light execution instruction through the lock screen APP, outputs a second lock screen interface, and displays the second lock screen interface on the display screen.

[0124] S1105. The electronic device transmits the first direction parameter of the electronic device collected by the direction sensor to the lock screen APP through the power management service.

[0125] S1106. The electronic device determines, through the lock screen APP, whether the first direction parameter and the second direction parameter are the same.

[0126] If the electronic device determines that the first direction parameter and the second direction parameter are different, S1107-S1108 are executed; if the electronic device determines that the first direction parameter and the second direction parameter are the same, S1108 is executed.

[0127] S1107. The electronic device draws a first lock screen interface through the lock screen APP according to the first direction parameter, and displays the first lock screen interface on the display screen.

[0128] S1108: The electronic device adjusts the backlight value of the backlight module to a second threshold value through the power management service.

[0129] It is understandable that the above method can be implemented by an interface display device. In order to implement the above functions, the interface display device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0130] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0131] In the case of dividing each functional module into corresponding functional modules, Fig.12 A possible structural diagram of the electronic device involved in the above embodiment is shown, and the electronic device 120 includes: an input module 121 and a control module 122. The input module 121 is used to receive a first operation of the user when the display screen is black; the first operation is used to trigger the electronic device to light up the screen; the control module 122 is used to respond to the first operation, collect the first direction parameter of the electronic device through the direction sensor, and adjust the backlight value of the backlight module of the display screen to the first threshold value, so that the display content of the display screen is invisible to the user; the first direction parameter is used to indicate that the electronic device is in a horizontal screen state or a vertical screen state; the control module 122 is also used to display the first lock screen interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjust the backlight value to the second threshold value, so that the display content of the display screen is visible to the user.

[0132] In a possible implementation, the control module 122 is further configured to display a second lock screen interface in response to the first operation when the backlight value is a first threshold value; wherein the second lock screen interface is a lock screen interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic device, and the second direction parameter is a direction parameter when the electronic device changes from a bright screen to a black screen. The first lock screen interface is a lock screen interface drawn by the electronic device according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.

[0133] In another possible implementation, the first threshold is zero. The second threshold is a pre-stored backlight value, or the second threshold is a backlight value of a backlight module before the display screen goes black, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.

[0134] In another possible implementation, the landscape state includes a first landscape state and a second landscape state, and the portrait state includes a first portrait state and a second portrait state. The display screen includes a first long frame, a second long frame, a first short frame, and a second short frame, the first long frame is parallel to the second long frame, the first short frame is parallel to the second short frame, and the first long frame is perpendicular to the first short frame. In the first landscape state, the angle between the first long frame or the second long frame and the horizontal plane is less than a preset value, and the first long frame is farther from the horizontal plane than the second long frame; in the second landscape state, the angle between the first long frame or the second long frame and the horizontal plane is less than a preset value, and the second long frame is farther from the horizontal plane than the first long frame. In the first portrait state, the angle between the first short frame or the second short frame and the horizontal plane is less than a preset value, and the first short frame is farther from the horizontal plane than the second short frame; in the second portrait state, the angle between the first short frame or the second short frame and the horizontal plane is less than a preset value, and the second short frame is farther from the horizontal plane than the first short frame.

[0135] Another embodiment of the present application provides an electronic device (such as Figure 4 or Fig. 9 The electronic device 400 shown, Fig.12 The electronic device may include: one or more processors, a memory, a wireless communication module, and a mobile communication module. The memory, the wireless communication module, and the mobile communication module are coupled to the processor. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device may execute the various functions or steps executed by the electronic device 400 or the electronic device 120 in the above method embodiment.

[0136] Another embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are in an electronic device (such as Figure 4 or Fig. 9 The electronic device 400 shown, Fig.12When the computer readable storage medium is executed on the electronic device 120 shown in the figure, the electronic device executes the functions or steps executed by the electronic device 400 or the electronic device 120 in the above method embodiment. For example, the computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0137] Another embodiment of the present application provides a computer program product, including one or more instructions, which can be executed on an electronic device (such as Figure 4 or Fig. 9 The electronic device 400 shown, Fig.12 The electronic device 120 shown in the figure) is executed so that the electronic device executes each function or step executed by the electronic device 400 or the electronic device 120 in the above method embodiment.

[0138] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0140] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.

[0143] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. An interface display method, characterized in that: Applied to an electronic device, the electronic device includes a display screen, and the method includes: When the electronic device is in a vertical screen state, the screen changes from bright to black; After the electronic device changes from the portrait screen state to the landscape screen state, receiving a first operation of the user; wherein the first operation is used to trigger the screen of the electronic device to light up; In response to the first operation, the electronic device displays a second lock screen interface of the electronic device in a vertical screen state, and adjusts a backlight value of a backlight module of the display screen to a first threshold value, so that the second lock screen interface displayed on the display screen is invisible to the user; Draw a first lock screen interface of the electronic device in the horizontal screen state; The electronic device displays the first lock screen interface and adjusts the backlight value to a second threshold value, so that the first lock screen interface displayed on the display screen is visible to the user.

2. The method according to claim 1, characterized in that The electronic device further includes a direction sensor, and the state of the electronic device is indicated by a first direction parameter, which is collected by the electronic device through the direction sensor in response to the first operation.

3. The method according to claim 1 or 2, characterized in that: The second lock screen interface is a lock screen interface in the portrait state indicated by the second direction parameter of the electronic device, and the second direction parameter is a direction parameter when the electronic device changes from a bright screen to a black screen; the first lock screen interface is a lock screen interface drawn by the electronic device according to the landscape state indicated by the first direction parameter.

4. The method according to claim 1 or 2, characterized in that: The first threshold is zero; The second threshold is a pre-stored backlight value, or the second threshold is a backlight value of the backlight module before the display screen goes black, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.

5. The method according to claim 1 or 2, characterized in that: The horizontal screen state includes a first horizontal screen state and a second horizontal screen state, and the vertical screen state includes a first vertical screen state and a second vertical screen state; The display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, the first long frame is parallel to the second long frame, the first short frame is parallel to the second short frame, and the first long frame is perpendicular to the first short frame; Wherein, in the first horizontal screen state, the angle between the first long frame or the second long frame and the horizontal plane is smaller than a preset value, and the first long frame is farther from the horizontal plane than the second long frame; in the second horizontal screen state, the angle between the first long frame or the second long frame and the horizontal plane is smaller than a preset value, and the second long frame is farther from the horizontal plane than the first long frame; In the first vertical screen state, the angle between the first short border or the second short border and the horizontal plane is smaller than the preset value, and the first short border is farther from the horizontal plane than the second short border; in the second vertical screen state, the angle between the first short border or the second short border and the horizontal plane is smaller than the preset value, and the second short border is farther from the horizontal plane than the first short border.

6. An electronic device, characterized in that: The electronic device comprises: an input module and a control module; Wherein, the control module is used to change the screen from bright to black when in the vertical screen state; The input module is used to receive a first operation of the user after the electronic device changes from the portrait screen state to the landscape screen state; wherein the first operation is used to trigger the screen of the electronic device to light up; The control module is configured to, in response to the first operation, display a second lock screen interface of the electronic device in a vertical screen state, and adjust a backlight value of a backlight module of the display screen to a first threshold value, so that the second lock screen interface displayed on the display screen is invisible to a user; The control module is further used to draw a first lock screen interface of the electronic device in the horizontal screen state; The control module is also used to display the first lock screen interface and adjust the backlight value to a second threshold value, so that the first lock screen interface displayed on the display screen is visible to the user.

7. The electronic device according to claim 6, characterized in that: The electronic device further includes a direction sensor, and the state of the electronic device is indicated by a first direction parameter, which is collected by the control module through the direction sensor in response to the first operation.

8. The electronic device according to claim 6 or 7, characterized in that: The second lock screen interface is a lock screen interface in the portrait state indicated by the second direction parameter of the electronic device, and the second direction parameter is a direction parameter when the electronic device changes from a bright screen to a black screen; the first lock screen interface is a lock screen interface drawn by the electronic device according to the landscape state indicated by the first direction parameter.

9. The electronic device according to claim 6 or 7, characterized in that: The first threshold is zero; The second threshold is a pre-stored backlight value, or the second threshold is a backlight value of the backlight module before the display screen goes black, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.

10. The electronic device according to claim 6 or 7, characterized in that: The horizontal screen state includes a first horizontal screen state and a second horizontal screen state, and the vertical screen state includes a first vertical screen state and a second vertical screen state; The display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, the first long frame is parallel to the second long frame, the first short frame is parallel to the second short frame, and the first long frame is perpendicular to the first short frame; Wherein, in the first horizontal screen state, the angle between the first long frame or the second long frame and the horizontal plane is smaller than a preset value, and the first long frame is farther from the horizontal plane than the second long frame; in the second horizontal screen state, the angle between the first long frame or the second long frame and the horizontal plane is smaller than a preset value, and the second long frame is farther from the horizontal plane than the first long frame; In the first vertical screen state, the angle between the first short border or the second short border and the horizontal plane is smaller than the preset value, and the first short border is farther from the horizontal plane than the second short border; in the second vertical screen state, the angle between the first short border or the second short border and the horizontal plane is smaller than the preset value, and the second short border is farther from the horizontal plane than the first short border.

11. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; the processor is used to execute the computer instructions, so that the electronic device executes the method as described in any one of claims 1-5.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Information processing method and electronic equipment

    CN106033666A

  • Fingerprint unlocking method and mobile terminal

    CN106886703A

  • Unlocking method and related product

    CN108038359A

  • A method for displaying an interface, an electronic device, and a computer-readable storage medium.

    CN114374766B