CN114374766A - Interface display method and electronic equipment - Google Patents

Interface display method and electronic equipment Download PDF

Info

Publication number
CN114374766A
CN114374766A CN202011104659.3A CN202011104659A CN114374766A CN 114374766 A CN114374766 A CN 114374766A CN 202011104659 A CN202011104659 A CN 202011104659A CN 114374766 A CN114374766 A CN 114374766A
Authority
CN
China
Prior art keywords
screen
electronic device
screen state
electronic equipment
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011104659.3A
Other languages
Chinese (zh)
Other versions
CN114374766B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011104659.3A priority Critical patent/CN114374766B/en
Priority to CN202211136471.6A priority patent/CN115695648A/en
Publication of CN114374766A publication Critical patent/CN114374766A/en
Application granted granted Critical
Publication of CN114374766B publication Critical patent/CN114374766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application provides an interface display method and electronic equipment, relates to the technical field of intelligent control, and can directly display a screen locking interface in a horizontal screen state or a vertical screen state indicated by a direction parameter when the electronic equipment is in a bright screen state to a user, so that the visual experience of the user is improved. The specific scheme comprises the following steps: the method comprises the steps that when the display screen of the electronic equipment is blank, first operation of a user is received; the first operation is used for triggering the electronic equipment to light; the electronic equipment responds to the first operation, acquires a first direction parameter of the electronic equipment through a direction sensor, and adjusts a backlight value of a backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to a user; the first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state; the electronic equipment displays a first screen locking 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 a user.

Description

Interface display method and electronic equipment
Technical Field
The application relates to the technical field of intelligent control, in particular to an interface display method and electronic equipment.
Background
With the popularization of electronic devices with display screens, users have higher and higher requirements for using the electronic devices. The speed and display effect of the electronic device in response to user operations both directly affect the user experience. The electronic equipment responds to the awakening operation to light the screen (namely, to light the screen) when the screen is dark, and if the physical direction (such as a horizontal screen or a vertical screen) when the screen is bright of the electronic equipment is different from the physical direction when the electronic equipment enters the dark screen, the electronic equipment can display the screen locking interface according to the physical direction when the screen enters the dark screen, and then display the adjusted screen locking interface according to the physical direction when the screen is bright. For example, when the electronic device enters a black screen, the electronic device is in a horizontal screen, and when the electronic device is in a vertical screen, the electronic device displays a screen locking interface in the horizontal screen state first, and then displays a screen locking interface in the vertical screen state.
Therefore, the electronic equipment does not directly display the screen locking interface in the physical direction when the electronic equipment is turned on, and the visual experience of a user is reduced.
Disclosure of Invention
The application provides an interface display method and electronic equipment, which can directly display a screen locking interface in a horizontal screen state or a vertical screen state indicated by a direction parameter when the electronic equipment is lightened to a user, and improve the visual experience of the user.
In order to achieve the technical purpose, the following technical scheme is adopted in the application:
the method comprises the steps that when the display screen of the electronic equipment is blank, the electronic equipment receives a first operation of a user; the first operation is used for triggering the electronic equipment to light; the electronic equipment responds to the first operation, acquires a first direction parameter of the electronic equipment through a direction sensor, and adjusts a backlight value of a backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to a user; the electronic equipment displays a first screen locking 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 a user. The first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state.
It will be appreciated that when the electronic device is blank, the orientation sensor of the electronic device is inactive; the direction sensor cannot acquire the direction parameters of the electronic equipment when the electronic equipment is in a black screen. Therefore, the direction sensor is operated 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 already displays the screen locking interface. And the orientation sensor may not have acquired the orientation parameters when the electronic device changes from a black screen to a bright screen. In a conventional technology, the electronic device may display the screen locking interface in a horizontal screen state or a vertical screen state indicated by the direction parameter acquired by the direction sensor before the electronic device is blank. However, the state (e.g., landscape state or portrait state) indicated by the front direction parameter of the electronic device during the black screen may be different from the real-time state (e.g., landscape state or portrait state) of the electronic device during the time when the electronic device changes from the black screen to the bright screen. For example, the orientation parameter indicates a portrait screen state before the electronic device is blank, and the electronic device is in a landscape screen state when the electronic device changes from a black screen to a bright screen. Therefore, even if the electronic equipment is in a horizontal screen state, when the electronic equipment is changed from a black screen state to a bright screen state, the electronic equipment can still display a screen locking interface in a vertical screen state, and visual experience of a user is influenced.
In the application, the electronic equipment responds to the first operation, and when the first direction parameter of the electronic equipment is collected through the direction sensor, the backlight value of the backlight module of the display screen can be adjusted to be the first threshold value, so that the display content of the display screen is invisible to a user. In this way, even if the state indicated by the front direction parameter of the black screen of the electronic device is different from the real-time state of the electronic device when the electronic device is changed from the black screen to the bright screen, the display content of the display screen is invisible to the user. And then, the electronic equipment displays the first screen locking interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusts the backlight value to be the second threshold value, so that the display content of the display screen is visible to the user. Namely, after the electronic device is turned on, the screen locking interface is displayed in a horizontal screen state or a vertical screen state indicated by the direction parameters acquired by the direction sensor. Therefore, the horizontal and vertical screen states of the screen locking interface displayed by the electronic equipment are consistent with the current real-time state of the electronic equipment.
According to the method, the screen locking interface in the horizontal screen state or the vertical screen state indicated by the direction parameter when the electronic equipment is on the screen can be directly displayed to the user, and the visual experience of the user is improved.
In one possible embodiment, the method further comprises: the electronic equipment responds to the first operation, and displays a second screen locking interface under the condition that the backlight value is the first threshold value; the second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic equipment, and the second direction parameter is a direction parameter when the electronic equipment is changed from a bright screen to a black screen. The first screen locking interface is drawn by the electronic equipment according to a horizontal screen state or a vertical screen state indicated by the first direction parameter.
It is understood that the orientation sensor is only activated to acquire orientation parameters of the electronic device when the electronic device changes from a dark screen to a bright screen in response to the first operation. However, at this time, the display screen of the electronic device already displays the screen locking interface. And the orientation sensor may not have acquired the orientation parameters when the electronic device changes from a black screen to a bright screen. When the electronic equipment is changed from a dark screen to a bright screen, the second screen locking interface is displayed in a transverse screen state or a vertical screen state indicated by the second direction parameter acquired by the direction sensor when the electronic equipment is changed from the bright screen to the dark screen. However, a state (e.g., a landscape state or a portrait 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 a state indicated by the second direction parameter when the electronic device changes from a bright screen to a black screen, and the electronic device adjusts the backlight value of the backlight module to the first threshold value and displays the second screen locking interface. The backlight value of the backlight module is a first threshold value, the display content of the display screen is invisible to a user, and the second screen locking interface displayed by the display screen is invisible to the user, so that the screen locking interface which is not consistent with the current real-time state of the electronic equipment is prevented from being displayed to the user.
In another possible embodiment, 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 is blacked, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.
In this design, an implementation that the electronic device controls the display content of the display screen to be invisible to the user and several implementations that the display content of the display screen to be visible to the user are described.
In another possible implementation, the landscape screen state includes a first landscape screen state and a second landscape screen state, and the portrait screen state includes a first portrait screen state and a second portrait screen state. The display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, wherein 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 cross screen state, the included 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 away from the horizontal plane than the second long frame; in the second horizontal screen state, the included 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 away from the horizontal plane than the first long frame. In the first vertical screen state, the included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the first short frame is farther away from the horizontal plane than the second short frame; in the second vertical screen state, the included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the second short frame is farther away from the horizontal plane than the first short frame.
In this design, several states are described in which the orientation parameters of the electronic device may indicate.
In a second aspect, the present application further provides an electronic device, including: the device comprises an input module and a control module. The input module is used for receiving a first operation of a user when the display screen is blank; the first operation is used for triggering the electronic equipment to light; the control module is used for responding to the first operation, acquiring a first direction parameter of the electronic equipment through the direction sensor, and adjusting a backlight value of the backlight module of the display screen to be a first threshold value to enable the display content of the display screen to be invisible to a user; the first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state; and the control module is further used for displaying the first screen locking interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusting the backlight value to be the second threshold value so that the display content of the display screen is visible to the user.
In a possible implementation manner, the control module is further configured to respond to the first operation and display a second screen locking interface under the condition that the backlight value is a first threshold value; the second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic equipment, and the second direction parameter is a direction parameter when the electronic equipment is changed from a bright screen to a black screen. The first screen locking interface is drawn by the electronic equipment according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.
In another possible embodiment, 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 is blacked, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.
In another possible implementation, the landscape screen state includes a first landscape screen state and a second landscape screen state, and the portrait screen state includes a first portrait screen state and a second portrait screen state. The display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, wherein 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 cross screen state, the included 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 away from the horizontal plane than the second long frame; in the second horizontal screen state, the included 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 away from the horizontal plane than the first long frame. In the first vertical screen state, the included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the first short frame is farther away from the horizontal plane than the second short frame; in the second vertical screen state, the included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the second short frame is farther away from the horizontal plane than the first short frame.
In a third aspect, the present application further provides an electronic device, including: a processor and a memory; wherein the memory is to store computer program code, the computer program code comprising computer instructions; the processor is configured to execute the computer instructions to cause the electronic device to perform the interface display method according to the first aspect and any possible implementation manner thereof.
In a fourth aspect, the present application further provides a computer-readable storage medium having stored thereon computer instructions, which, when run on an electronic device, cause the electronic device to execute the interface display method according to the first aspect and any one of its possible implementations.
In a fifth aspect, the present application further provides a computer program product including one or more instructions executable on an electronic device, so that the electronic device performs the interface display method according to the first aspect and any possible implementation manner thereof.
For technical effects brought by the second aspect and any possible design manner thereof, and the third aspect, the fourth aspect, and the fifth aspect, reference may be made to technical effects brought by different design manners in the first aspect, and details are not described here.
Drawings
Fig. 1 is a display schematic diagram of an electronic device from a landscape screen to a portrait screen according to a conventional technology;
fig. 2 is a schematic view of an electronic device in a landscape state according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an electronic device in a portrait screen state according to an embodiment of the present disclosure;
fig. 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a first flowchart of an interface display method provided in an embodiment of the present application;
fig. 6 is a display schematic diagram of an electronic device according to an embodiment of the present application from a first landscape screen to a first portrait screen;
fig. 7 is a display schematic diagram of an electronic device from a first vertical screen to a first horizontal screen according to an embodiment of the present application;
fig. 8 is a display schematic diagram of an electronic device according to an embodiment of the present application, where the electronic device is configured to display from a first vertical screen to a second vertical screen;
fig. 9 is a schematic system architecture diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a timing diagram illustrating an interface display method executed by an electronic device according to an embodiment of the present application;
fig. 11 is a flowchart of a second interface display method according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" and the like in the embodiments of the present application are used to distinguish different objects or to distinguish different processes for the same object, and are not used to describe a specific order of the objects. For example, the first threshold and the second threshold are different thresholds.
At present, along with the popularization of electronic equipment with a display screen, the use requirements of users on the electronic equipment are higher and higher. The display effect of the electronic equipment has a large influence on the user experience. In order to improve user experience, the electronic device detects a physical direction (such as a horizontal screen or a vertical screen) of the electronic device through the direction sensor, and then adjusts an interface displayed on the display screen according to the detected physical direction. For example, when the electronic device lights up the screen (i.e., turns on the screen) in response to the wake-up operation, the electronic device may display the screen locking interface in the physical direction when entering the black screen, and then display the adjusted screen locking interface in the physical direction when turning on the screen.
It should be noted that the electronic device is in a sleep state when it is in a dark screen, and the operation of the direction sensor is stopped for the purpose of power saving. Therefore, when the electronic device changes from a black screen to a bright screen, the electronic device can only display the screen locking interface according to the physical direction before the black screen, and simultaneously start the direction sensor. And then, detecting the physical direction when the screen is on through a direction sensor, and displaying a screen locking interface according to the physical direction when the screen is on.
It can be understood that, if the physical direction of the electronic device entering the blank screen is different from the physical direction of the electronic device entering the bright screen, the electronic device displays one screen locking interface according to the physical direction of the electronic device entering the blank screen, and then displays the other screen locking interface according to the physical direction of the electronic device entering the bright screen. Therefore, the electronic equipment does not directly display the screen locking interface according to the physical direction during screen lightening, but displays the screen locking interface which accords with the physical direction during screen lightening after interface switching once for a user, and visual experience of the user is reduced.
Illustratively, when the electronic device runs a certain video Application (APP) in the landscape state, the interface of the APP in the landscape state is displayed on the display screen according to the detected physical direction of the electronic device (i.e. landscape), as shown in fig. 1 (a). When the electronic device receives a screen locking operation of a user, the display screen is changed to a black screen in response to the screen locking operation, as shown in fig. 1 (b).
Then, the user turns the electronic device with the black screen from the horizontal screen to the vertical screen, and awakening operation is performed on the electronic device. When the electronic device receives a wake-up operation of a user, and responds to the wake-up operation, when the screen is lightened (i.e., the screen is lightened) by adopting the above scheme, the screen locking interface in the horizontal screen state is displayed according to the physical direction (i.e., the horizontal screen) of the electronic device when the screen is changed from the bright screen to the black screen, as shown in (c) of fig. 1. Then, the electronic equipment detects the physical direction (namely vertical screen) when the screen is changed from black screen to bright screen through a direction sensor; and displaying the screen locking interface in the vertical screen state according to the physical direction (namely, the vertical screen) of the electronic device when the electronic device is changed from the black screen to the bright screen, as shown in (d) of fig. 1. The display contents of the screen locking interface in the horizontal screen state and the screen locking interface in the vertical screen state are the same, and the screen locking interface both have the time of '11: 30, 09 months, 10 days, thursdays' and unlocking prompt information of 'sliding unlocking'.
It can be seen that the electronic device displays the screen locking interface in the horizontal screen state first, and then displays the screen locking interface in the vertical screen state. When the electronic equipment is changed from a black screen to a bright screen, the screen locking interface which accords with the physical direction when the screen is bright cannot be directly displayed, and the visual experience of a user is influenced.
The embodiment of the application provides an interface display method, by which a screen locking interface in a horizontal screen state or a vertical screen state indicated by a direction parameter when an electronic device is on screen can be directly displayed to a user, and the visual experience of the user is improved.
When the user uses the electronic equipment, the electronic equipment can be in a horizontal screen state or a vertical screen state; the horizontal screen state comprises a first horizontal screen state and a second horizontal screen state, and the vertical screen state comprises a first vertical screen state and a second vertical screen state. The physical orientation of the electronic device may include: the first transverse screen, the second transverse screen, the first vertical screen and the second vertical screen correspond to the first transverse screen state, the second transverse screen state, the first vertical screen state and the second vertical screen state one to one. The display screen of the electronic device may include four frames, where the four frames include two parallel and equal long frames, which may be referred to as a first long frame and a second long frame of the display screen; the four frames also include two parallel and equal short frames, which may be referred to as a first short frame and a second short frame of the display screen. The first long frame is perpendicular to the first short frame.
In the first landscape state, as shown in fig. 2 (a), 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 (i.e. the included 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 c 2. Alternatively, as shown in fig. 2 (b), an included 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 c 2. The preset value 1 is less than or equal to 45 °, and the specific value of the preset value 1 may be set according to an actual application scenario, for example, the preset value 1 may be 20 °.
In the second landscape state, as shown in fig. 2 (c), the first long bezel c1 or the second long bezel c2 of the display screen of the electronic device is parallel to the horizontal plane p, and the second long bezel c2 is farther from the horizontal plane p than the first long bezel c 1. Alternatively, as shown in fig. 2 (d), an included 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 c 1.
As can be seen from fig. 2, the display screen of the electronic device is substantially in a bar shape in both the first landscape state and the second landscape state.
In the first vertical screen state, as shown in fig. 3 (a), 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 (i.e., the included 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 d 2. Or, as shown in fig. 3 (b), an included angle a2 between the first short frame d1 or the second short frame d2 of the display screen and the horizontal plane p is less than or equal to the preset value 1, and the first short frame d1 is farther from the horizontal plane p than the second short frame d 2.
In the second vertical screen state, as shown in (c) of fig. 3, the first short bezel d1 or the second short bezel d2 of the display screen of the electronic device is parallel to the horizontal plane p, and the second short bezel d2 is farther from the horizontal plane p than the first short bezel d 1. Or, as shown in (d) of fig. 3, an included angle a2 between the first short frame d1 or the second short frame d2 of the display screen and the horizontal plane p is less than or equal to the preset value 1, and the second short frame d2 is farther from the horizontal plane p than the first short frame d 1.
As can be seen from fig. 3, the display screen of the electronic device is substantially vertical bar-shaped in the first vertical screen state and the second vertical screen state.
It should be noted that the electronic device in the embodiment of the present application may be any device including a display screen and an orientation sensor, for example, a mobile phone, a tablet computer, a desktop computer, a handheld computer, a notebook computer, an in-vehicle device, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an augmented reality device, a virtual reality device, and the like, and the embodiment of the present application does not particularly limit the specific form of the electronic device.
It should be noted that the interface display method provided in the embodiment of the present application may be applied to the electronic device. The execution main body of the interface display method provided by the embodiment of the application can also be an interface display device, and the interface display device can be electronic equipment. The interface display device can also be an APP with an interface display function; alternatively, the interface display device may also be a Central Processing Unit (CPU) in the electronic device; or a control module in the electronic device for executing the interface display method.
In the following, the hardware structure of the electronic device is described by taking the electronic device as a mobile phone as an example. As shown in fig. 4, the electronic device 400 may include: processor 410, external memory interface 420, internal memory 421, Universal Serial Bus (USB) interface 430, charging management module 440, power management module 441, battery 442, antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, audio module 470, speaker 470A, receiver 470B, microphone 470C, earphone interface 470D, sensor module 480, keys 490, motor 491, indicator 492, camera 493 (which may include cameras 1-N), display 494 (such as a touch screen), and Subscriber Identity Module (SIM) card interface 495 (which may include SIM card interfaces 1-N), among others.
The sensor module 480 may include a direction sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device 400. In other embodiments, electronic device 400 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 410 may include one or more processing units, such as: 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. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the electronic device 400. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 410. If the processor 410 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 410, thereby increasing the efficiency of the system.
In some embodiments, processor 410 may include one or more interfaces. It should be understood that the interface connection relationship between the modules illustrated in the present embodiment is only an exemplary illustration, and does not constitute a limitation on the structure of the electronic device 400. In other embodiments, the electronic device 400 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 440 is configured to receive charging input (charging input of a wired charger and/or wireless charging input) from a charger to charge the battery 442. The charger may be a wireless charger or a wired charger. While the charging management module 440 charges the battery 442, the power management module 441 may also supply power to the electronic device.
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 provides power to the processor 410, the internal memory 421, the external memory, the display 494, the camera 493, the wireless communication module 460, and the like. 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 be disposed in the same device.
The wireless communication function of the electronic device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. In some embodiments, antenna 1 of electronic device 400 is coupled to mobile communication module 450 and antenna 2 is coupled to wireless communication module 460, such that electronic device 400 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include Global Navigation Satellite System (GNSS), Wireless Local Area Network (WLAN) (e.g., Wi-Fi network) technology, and the like. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS), and the like. For example, the electronic device 400 may obtain the real-time location information of the electronic device 400 through a positioning technology such as GPS, BDS, or SBAS.
The mobile communication module 450 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device 400. For example, the electronic device 400 may transmit an email to a server through the mobile communication module 450.
The wireless Communication module 460 may provide a solution for wireless Communication applied on the electronic device 400, including WLAN (e.g., Wi-Fi network), Bluetooth (BT), GNSS, Near Field Communication (NFC), Infrared (IR), Frequency Modulation (FM), and the like. For example, the electronic device 400 may obtain real-time location information of the electronic device 400 through GNSS positioning technology.
The electronic device 400 implements display functions via the GPU, the display screen 494, and the application processor, among other things. The electronic device 400 may implement a shooting function through the ISP, the camera 493, the video codec, the GPU, the display screen 494, the application processor, and the like. The external memory interface 420 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 400. The internal memory 421 may be used to store computer-executable program code, including instructions. The processor 410 executes various functional applications of the electronic device 400 and data processing by executing instructions stored in the internal memory 421. Electronic device 400 may implement audio functions via audio module 470, speaker 470A, microphone 470C, headset interface 470D, and an application processor, among other things.
It should be noted that the methods in the following embodiments can be implemented in the electronic device 400 having the above hardware structure.
Please refer to fig. 5, which is a flowchart illustrating an interface display method according to an embodiment of the present disclosure. As shown in fig. 5, the interface display method may include S501-S503.
S501, when a display screen of the electronic equipment is blank, receiving a first operation of a user; the first operation is used for triggering the electronic equipment to light.
Wherein the first operation may be an operation of waking up the electronic device. For example, the electronic apparatus includes a power key, and the first operation may be an operation of the power key by the user. The Display screen may be a Liquid Crystal Display (LCD).
In the embodiment of the application, the electronic device is in the screen locking state when the screen is dark, and the first operation can be used for triggering the electronic device to light the screen and displaying a screen locking interface.
In the embodiment of the application, the electronic device can further comprise a backlight module of the display screen besides the display screen and the direction sensor. The backlight module is used for providing light sources with different brightness for the display screen, so that the display screen can normally display information. The direction sensor is used for acquiring direction parameters of the electronic equipment; the direction parameter can be used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state; the direction parameter may also be used to specifically indicate that the electronic device is in a first landscape screen state, a second landscape screen state, a first portrait screen state, or a second portrait screen state.
It should be noted that, when the display screen of the electronic device is blank, the electronic device is in a dormant state, the display screen, the direction sensor and the backlight module all stop working, and the electronic device cannot detect the direction parameter of the electronic device when the display screen is blank.
S502, the electronic equipment responds to the first operation, collects first direction parameters of the electronic equipment through a direction sensor, and adjusts a backlight value of a backlight module of the display screen to be a first threshold value, so that the display content of the display screen is invisible to a user; the first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state.
The electronic device responds to the first operation and starts the direction sensor and the backlight module. The electronic equipment adjusts the backlight value of the backlight module to be a first threshold value when the backlight module is started. The electronic equipment starts the direction sensor, and the direction sensor starts to acquire the direction parameters of the electronic equipment. The electronic device can acquire a first direction parameter of the electronic device through the direction sensor.
Wherein the first threshold may be zero. The first orientation parameter may be an orientation parameter when the electronic device is lit in response to the first operation. The first direction parameter may be used to specifically indicate that the electronic device is in a first landscape screen state, a second landscape screen state, a first portrait screen state, or a second portrait screen state.
In the embodiment of the application, the electronic equipment responds to the first operation, and displays a second screen locking interface under the condition that the backlight value is the first threshold value; the second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic equipment, and the second direction parameter is a direction parameter when the electronic equipment is changed from a bright screen to a black screen. The first screen locking interface is drawn by the electronic equipment according to a horizontal screen state or a vertical screen state indicated by the first direction parameter.
When the electronic equipment is on the bright screen of the display screen, the direction sensor works normally, and then the electronic equipment can acquire the direction parameters of the electronic equipment through the direction sensor. When the display screen is changed from a bright screen to a black screen, the electronic equipment can also store the direction parameters collected at that time, namely the second direction parameters. Then, the electronic device may display a screen locking interface in the horizontal screen state or the vertical screen state indicated by the second direction parameter, that is, a second screen locking interface, in response to the first operation when the display screen is blank. Meanwhile, the electronic equipment acquires first direction parameters of the electronic equipment through the direction sensor and adjusts the backlight value to be a first threshold value, so that a second screen locking interface displayed by the display screen is invisible to a user.
In some embodiments, the electronic device may draw the second screen-locking interface according to the landscape screen state or the portrait screen state indicated by the second direction parameter while saving the second direction parameter, and save the second screen-locking interface. Or, the electronic device responds to the first operation when the display screen is blank, and draws the second screen locking interface according to the horizontal screen state or the vertical screen state indicated by the second direction parameter.
S503, the electronic equipment displays the first screen locking interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusts the backlight value to be the second threshold value, so that the display content of the display screen is visible to the user.
After the electronic equipment acquires the first direction parameter through the direction sensor, displaying a first screen locking interface in a horizontal screen state or a vertical screen state indicated by the first direction parameter, and adjusting the backlight value to a second threshold value so that the first screen locking interface displayed by the display screen is visible to a user.
The second threshold may be a pre-stored backlight value, or the second threshold may be a backlight value of the backlight module before the display screen is blacked, or the second threshold may be a backlight value determined according to ambient light brightness around the electronic device.
In some embodiments, after the electronic device acquires the first direction parameter through the direction sensor, the first lock screen interface may be drawn according to a horizontal screen state or a vertical screen state indicated by the first direction parameter. Then, a first lock screen interface is displayed on the display screen.
It will be appreciated that when the electronic device is blank, the orientation sensor of the electronic device is inactive; the direction sensor cannot acquire the direction parameters of the electronic equipment when the electronic equipment is in a black screen. Therefore, the direction sensor is operated 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 already displays the screen locking interface. And the orientation sensor may not have acquired the orientation parameters when the electronic device changes from a black screen to a bright screen. In a conventional technology, the electronic device may display the screen locking interface in a horizontal screen state or a vertical screen state indicated by the direction parameter acquired by the direction sensor before the electronic device is blank. However, the state (e.g., landscape state or portrait state) indicated by the front direction parameter of the electronic device during the black screen may be different from the real-time state (e.g., landscape state or portrait state) of the electronic device during the time when the electronic device changes from the black screen to the bright screen. For example, the orientation parameter indicates a portrait screen state before the electronic device is blank, and the electronic device is in a landscape screen state when the electronic device changes from a black screen to a bright screen. Therefore, even if the electronic equipment is in a horizontal screen state, when the electronic equipment is changed from a black screen state to a bright screen state, the electronic equipment can still display a screen locking interface in a vertical screen state, and visual experience of a user is influenced.
In the embodiment of the application, the electronic device responds to the first operation, and when the first direction parameter of the electronic device is collected through the direction sensor, the backlight value of the backlight module of the display screen can be adjusted to be the first threshold value, so that the display content of the display screen is invisible to a user. In this way, even if the state indicated by the front direction parameter of the black screen of the electronic device is different from the real-time state of the electronic device when the electronic device is changed from the black screen to the bright screen, the display content of the display screen is invisible to the user. And then, the electronic equipment displays the first screen locking interface in the horizontal screen state or the vertical screen state indicated by the first direction parameter, and adjusts the backlight value to be the second threshold value, so that the display content of the display screen is visible to the user. Namely, after the electronic device is turned on, the screen locking interface is displayed in a horizontal screen state or a vertical screen state indicated by the direction parameters acquired by the direction sensor. Therefore, the horizontal and vertical screen states of the screen locking interface displayed by the electronic equipment are consistent with the current real-time state of the electronic equipment.
In summary, the electronic device can directly display the screen locking interface in the horizontal screen state or the vertical screen state indicated by the direction parameter when the electronic device is on the screen to the user, so that the visual experience of the user is improved. And the electronic equipment 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 a user, and no new interface is added. Therefore, a new interface does not need to be drawn, and the power consumption of the electronic device does not increase.
Exemplarily, when the electronic device runs a certain video type APP in the first landscape state, a second direction parameter is detected by a direction sensor, and the second direction parameter indicates that the electronic device is in the first landscape state; and displaying the interface of the APP in the first landscape state indicated by the second direction parameter on the display screen, as shown in (a) of fig. 6. Next, when the electronic device receives a screen locking operation by the user, the display screen is changed to a black screen in response to the screen locking operation (as shown in (b) of fig. 6), and the second direction parameter is saved.
Then, after the user changes the electronic device with the black screen from the first horizontal screen to the first vertical screen, the electronic device receives the first operation of the user again, responds to the first operation, and executes the following steps at the same time: the first direction parameters are collected through the direction sensor, the backlight value of the backlight module is adjusted to be 0, and a second screen locking interface in the first transverse screen state is displayed on the display screen. Since the backlight value of the backlight module is 0, the second lock screen interface in the first landscape screen state displayed on the display screen is invisible to the user, and the display screen is a black screen, as shown in (c) of fig. 6. And finally, after the electronic equipment acquires the first direction parameter through the direction sensor, displaying a first screen locking interface in a first vertical screen state indicated by the first direction parameter on the display screen, and adjusting the backlight value of the backlight module to be a 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 (d) of fig. 6. The second screen locking interface in the first transverse screen state and the first screen locking interface in the first vertical screen state both display screen lightening time of 11:30, 09 months, 10 days, thursdays and unlocking prompt information of 'sliding unlocking'.
As can be seen from fig. 6, the electronic device does not display the switching process from the second screen locking interface in the first horizontal screen state to the first screen locking interface in the first vertical screen state to the user, and directly displays the first screen locking interface in the first vertical screen state where the electronic device is located when the screen is on, so that the visual experience of the user is improved.
Exemplarily, when the electronic device runs a certain video type APP in the first vertical screen state, a second direction parameter is detected by a direction sensor, and the second direction parameter indicates that the electronic device is in the first vertical screen state; and displaying the interface of the APP in the first vertical screen state indicated by the second direction parameter on the display screen, as shown in (a) of fig. 7. Next, when the electronic device receives a screen locking operation by the user, the display screen is changed to a black screen in response to the screen locking operation (as shown in (b) of fig. 7), and the second direction parameter is saved.
Then, after the user changes the electronic device with the black screen from the first vertical screen to the first horizontal screen, the electronic device receives the first operation of the user again, responds to the first operation, and executes the following steps at the same time: the first direction parameters are collected through the direction sensor, the backlight value of the backlight module is adjusted to be 0, and a second screen locking interface in a first vertical screen state is displayed 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 invisible to the user, and the display screen is a black screen, as shown in (c) of fig. 7. And finally, after the electronic equipment acquires the first direction parameter through the direction sensor, displaying a first screen locking interface in a first transverse screen state indicated by the first direction parameter on the display screen, and adjusting the backlight value of the backlight module to be a second threshold value. At this time, the first lock screen interface in the first landscape state displayed on the display screen is visible to the user, as shown in (d) of fig. 7. And the unlocking prompt information displayed on the second screen locking interface and the first screen locking interface is 'sliding unlocking'.
As can be seen from fig. 7, the electronic device does not display the switching process from the second screen locking interface in the first vertical screen state to the first screen locking interface in the first horizontal screen state to the user, and directly displays the first screen locking interface in the first horizontal screen state where the electronic device is located when the screen is on, so that the visual experience of the user is improved.
Exemplarily, when the electronic device runs a certain video type APP in the first vertical screen state, a second direction parameter is detected by a direction sensor, and the second direction parameter indicates that the electronic device is in the first vertical screen state; and displaying the interface of the APP in the first vertical screen state indicated by the second direction parameter on the display screen, as shown in (a) of fig. 8. Next, when the electronic device receives a screen locking operation by the user, the display screen is changed to a black screen in response to the screen locking operation (as shown in (b) of fig. 8), and the second direction parameter is saved.
Then, the user changes the electronic equipment with the black screen from the first vertical screen to the second vertical screen. And the electronic equipment receives the operation of the power key by the user, responds to the operation of the power key by the user and simultaneously executes the following steps: the first direction parameters are collected through the direction sensor, the backlight value of the backlight module is adjusted to be 0, and a second screen locking interface in a first vertical screen state is displayed 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 invisible to the user, and the display screen is a black screen, as shown in (c) of fig. 8. And finally, after the electronic equipment acquires the first direction parameter through the direction sensor, displaying a first screen locking interface in a second vertical screen state indicated by the first direction parameter on the display screen, and adjusting the backlight value of the backlight module to be a 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 (d) of fig. 8. And the unlocking prompt information displayed on the second screen locking interface and the first screen locking interface is 'sliding unlocking'.
As can be seen from fig. 8, the electronic device does not display the switching process from the second screen locking interface in the first vertical screen state to the first screen locking interface in the second vertical screen state to the user, and directly displays the first screen locking interface in the second vertical screen state where the electronic device is located when the screen is on, so that the visual experience of the user is improved.
Please refer to fig. 9, which is a schematic diagram of a system architecture of an electronic device according to an embodiment of the present application. The operating system adopted by the electronic device 400 may be an Android (Android) system, and a system architecture of the Android system includes: an Application Framework layer (Application Framework)910 and Application layers (Applications) 920. The electronic device 400 may include in hardware: power button 931, direction sensor 932, display 933, backlight unit 934 of display.
The application framework layer 910 may include: power management services 911, backlight management services 912, and direction sensor management services 913. A power management service 911 for triggering a black screen event or a bright screen event in response to a user' S operation of the power key 931 (e.g., a first operation in S501). The backlight module management service 912 is used for controlling the backlight value of the backlight module 934 (i.e. the brightness of the display screen 933). The orientation sensor management service 913 is configured to transmit the detected orientation parameters to the APP in the application layer 920 when the electronic device 400 is turned on. The application layer 920 includes all APPs installed on the electronic device 400, such as a lock screen APP 921. The screen locking APP921 is used to execute screen blank time and screen bright events, and draw a screen locking interface.
In the embodiment of the application, when the electronic device is in a screen-locked state with a display screen being dark, a user can change the physical direction of the electronic device (namely the horizontal and vertical screen states of the electronic device) after the electronic device is in the screen-on state and the screen-dark state, and then operate the power key (for example, press the power key); alternatively, only the power key is operated. Then, the electronic device executes an interface display method in response to an operation of the power key by the user. Taking the electronic device in fig. 9 as an example, a specific process of the electronic device executing the interface display method is described, and as shown in fig. 9 and fig. 10, steps a1-a9 may be included.
A1, electronic apparatus 400 receives a user operation of power key 931 when display 933 is in a black screen state and in a lock screen state.
A2, the electronic device 400 sends a bright-screen trigger instruction to the power management service 911 and activates the direction sensor 934 in response to the user's operation of the power key 931.
The electronic apparatus 400 changes from the sleep state to the operating state in response to the user's operation of the power key 931, and activates the direction sensor 934 to start collecting the direction parameters. Meanwhile, a bright screen trigger instruction is sent to the power management service 911. The bright screen trigger instruction may include a bright screen time, where the bright screen time refers to an absolute time when the operation of the power key 931 by the user is received.
A3, the electronic device 400 responds to the bright screen triggering instruction through the power management service 911, sends a first instruction to the backlight module management service 912, and sends a bright screen execution instruction to the screen locking APP 921; the first instruction is used for indicating that the backlight value is adjusted to be 0.
A4, the electronic device 400 responds to the first instruction through the backlight module management service 912 to adjust the backlight value of the backlight module 934 to 0.
A5, the electronic device 400 responds to the bright screen execution instruction through the screen locking APP921, outputs a second screen locking interface, and displays the second screen locking interface on the display screen 933.
The second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by the second direction parameter of the electronic device 400; the second direction parameter is a direction parameter when the electronic device 400 changes from a bright screen to a black screen.
In some embodiments, the electronic device 400 may output a second screen-lock interface including the screen-up time in response to the screen-up execution instruction through the screen-lock APP 921.
It should be noted that, the electronic device 400 may perform step a4 and step a5 at the same time; step a4 may be performed first, and then step a5 may be performed, where the order of performing step a4 and step a5 is not limited in this embodiment of the present application.
A6, the electronic device 400 sends the first direction parameter of the electronic device 400 collected by the direction sensor 934 to the screen locking APP921 through the direction sensor management service 913.
The direction sensor management service 913 receives the first direction parameter from the direction sensor 934, and then sends the first direction parameter to the screen locking APP 921. The first direction parameter may be a direction parameter when the electronic apparatus 400 is turned on in response to the user's operation of the power key 931.
It should be noted that, the electronic device 400 may perform the step a6 after the step a2 and before the step a7, specifically perform the step a6 before the steps A3-a5, after the steps A3-a5, or between the steps A3-a5, which is not limited in this embodiment of the application.
A7, if it is determined that the first direction parameter is different from the second direction parameter through the screen locking APP921, the electronic device 400 outputs a first screen locking interface, and displays the first screen locking interface on the display screen 933.
The electronic device 400 receives the first direction parameter through the screen locking APP921, 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 performs step a 7. If it is determined that the first direction parameter and the second direction parameter are the same, the electronic device 400 does not perform step a7, and directly performs steps A8-a 9.
It should be noted that, when the electronic device 400 is in a screen-locked state and the display screen is blank, the user changes the physical direction of the electronic device after the electronic device is turned from a bright screen to a blank screen, and then operates the power key, so that the first direction parameter is different from the second direction parameter, and the electronic device sequentially outputs the second screen-locked interface and the first screen-locked interface.
A8, the electronic device 400 sends a second instruction to the backlight module management service 912 through the power management service 911, where the second instruction is used to instruct to adjust the backlight value to the second threshold value.
The second threshold may be a backlight value determined according to the ambient light brightness around the electronic device.
A9, the electronic device 400 responds to the second instruction through the backlight module management service 912, and adjusts the backlight value of the backlight module 934 to the second threshold value.
It is understood that the orientation sensor is only activated to acquire orientation parameters of the electronic device when the electronic device changes from a dark screen to a bright screen in response to the first operation. However, at this time, the display screen of the electronic device already displays the screen locking interface. And the orientation sensor may not have acquired the orientation parameters when the electronic device changes from a black screen to a bright screen. When the electronic equipment is changed from a dark screen to a bright screen, the second screen locking interface is displayed in a transverse screen state or a vertical screen state indicated by the second direction parameter acquired by the direction sensor when the electronic equipment is changed from the bright screen to the dark screen.
However, a state (e.g., a landscape state or a portrait 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 a state indicated by the second direction parameter when the electronic device changes from a bright screen to a black screen, and the electronic device adjusts the backlight value of the backlight module to 0 and displays the second screen locking interface. The backlight value of the backlight module is 0, the display content of the display screen is invisible to a user, and the second screen locking interface displayed by the display screen is invisible to the user, so that the screen locking interface which is not consistent with the current real-time state of the electronic equipment is prevented from being displayed to the user. And the electronic equipment only adjusts the backlight value of the backlight module to 0 before collecting the first direction parameter, so that a new interface does not need to be drawn, and the power consumption of the electronic equipment cannot be increased.
Referring to fig. 11, continuing with the electronic device in fig. 9 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, the power management service in the electronic device, in addition to being used to trigger a black screen event or a bright screen event in response to the user' S operation of the power key (e.g., the first operation in S501), may also be used to control the backlight value of the backlight module, and transmit the detected direction parameter to the APP in the application layer when the electronic device is bright screen. The electronic device executes specific processes of the interface display method, which may include S1101-S1108.
S1101, when the display screen is blank and is in the screen locking state, the electronic equipment receives the operation of a user on a power key.
S1102, the electronic equipment responds to the operation of the user on the power key, sends a bright screen triggering instruction to the power management service, and starts a direction sensor.
S1103, the electronic equipment responds to the bright screen triggering instruction through the power management service, adjusts the backlight value of the backlight module of the display screen to 0, and sends a bright screen execution instruction to the screen locking APP.
S1104, the electronic device responds to the bright screen execution instruction through the screen locking APP, outputs a second screen locking interface, and displays the second screen locking interface on the display screen.
S1105, the electronic device transmits the first direction parameter of the electronic device collected by the direction sensor to the screen locking APP through the power management service.
S1106, the electronic device judges whether the first direction parameter and the second direction parameter are the same through the screen locking APP.
If the electronic equipment determines that the first direction parameter is different from the second direction parameter, executing S1107-S1108; if it is determined that the first direction parameter and the second direction parameter are the same, S1108 is performed.
S1107, the electronic device draws a first screen locking interface according to the first direction parameter through the screen locking APP, and displays the first screen locking interface on the display screen.
S1108, the electronic device adjusts the backlight value of the backlight module to a second threshold value through the power management service.
It is understood that the above method may be implemented by an interface display device. The interface display device includes a hardware structure and/or a software module corresponding to each function in order to implement the functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware 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 embodiments of the present application.
In the embodiment of the present application, the electronic device and the like may be divided into functional modules according to the method example, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 12 shows a schematic diagram of a possible structure of the electronic device according to the above embodiment, and the electronic device 120 includes: an input module 121 and a control module 122. The input module 121 is configured to receive a first operation of a user when the display screen is blank; the first operation is used for triggering the electronic equipment to light; the control module 122 is configured to, in response to the first operation, acquire a first direction parameter of the electronic device through the direction sensor, and adjust a backlight value of the backlight module of the display screen to a first threshold value, so that display content of the display screen is invisible to a user; the first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state; the control module 122 is further configured to display the first screen-locking interface in the landscape screen state or the portrait 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.
In a possible implementation manner, the control module 122 is further configured to, in response to the first operation, display a second screen locking interface in a case that the backlight value is a first threshold value; the second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic equipment, and the second direction parameter is a direction parameter when the electronic equipment is changed from a bright screen to a black screen. The first screen locking interface is drawn by the electronic equipment according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.
In another possible embodiment, 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 is blacked, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.
In another possible implementation, the landscape screen state includes a first landscape screen state and a second landscape screen state, and the portrait screen state includes a first portrait screen state and a second portrait screen state. The display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, wherein 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 cross screen state, the included 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 away from the horizontal plane than the second long frame; in the second horizontal screen state, the included 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 away from the horizontal plane than the first long frame. In the first vertical screen state, the included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the first short frame is farther away from the horizontal plane than the second short frame; in the second vertical screen state, the included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the second short frame is farther away from the horizontal plane than the first short frame.
Another embodiment of the present application provides an electronic device (e.g., the electronic device 400 shown in fig. 4 or fig. 9, the electronic device 120 shown in fig. 12). The electronic device may include: one or more processors, 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 for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the respective functions or steps performed by the electronic device 400 or the electronic device 120 in the above-described method embodiments.
Another embodiment of the present application provides a computer-readable storage medium, which stores computer instructions, and when the computer instructions are executed on an electronic device (e.g., the electronic device 400 shown in fig. 4 or 9, or the electronic device 120 shown in fig. 12), the electronic device is caused to perform the functions or steps performed by the electronic device 400 or the electronic device 120 in the above-described method embodiments. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Another embodiment of the present application provides a computer program product, which includes one or more instructions that can be executed on an electronic device (e.g., the electronic device 400 shown in fig. 4 or 9, the electronic device 120 shown in fig. 12), so that the electronic device performs the functions or steps performed by the electronic device 400 or the electronic device 120 in the above method embodiments.
Through the description of the above embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An interface display method is applied to an electronic device, wherein the electronic device comprises a display screen and an orientation sensor, and the method comprises the following steps:
the electronic equipment receives a first operation of a user when the display screen is blank; the first operation is used for triggering the electronic equipment to light;
the electronic equipment responds to the first operation, acquires a first direction parameter of the electronic equipment through the direction sensor, and adjusts a backlight value of a backlight module of the display screen to a first threshold value, so that the display content of the display screen is invisible to a user; the first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state;
and the electronic equipment displays a first screen locking 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 to enable the display content of the display screen to be visible to a user.
2. The method of claim 1, further comprising:
the electronic equipment responds to the first operation, and displays a second screen locking interface under the condition that the backlight value is the first threshold value; the second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic equipment, and the second direction parameter is a direction parameter when the electronic equipment is changed from a bright screen to a black screen;
the first screen locking interface is drawn by the electronic equipment according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.
3. The method according to claim 1 or 2, characterized in that the first threshold value 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 is blank, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.
4. The method of any of claims 1-3, wherein the landscape screen state comprises a first landscape screen state and a second landscape screen state, and the portrait screen state comprises a first portrait screen state and a second portrait screen state;
the display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, wherein 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 cross screen state, an included angle between the first long frame or the second long frame and a horizontal plane is smaller than a preset value, and the first long frame is farther away from the horizontal plane than the second long frame; in the second horizontal screen state, an included angle between the first long frame or the second long frame and a horizontal plane is smaller than a preset value, and the second long frame is farther away from the horizontal plane than the first long frame;
in the first vertical screen state, an included angle between the first short frame or the second short frame and a horizontal plane is smaller than the preset value, and the first short frame is farther away from the horizontal plane than the second short frame; in the second vertical screen state, an included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the second short frame is farther away from the horizontal plane than the first short frame.
5. An electronic device, characterized in that the electronic device comprises: an input module and a control module;
the input module is used for receiving a first operation of a user when the display screen is blank; the first operation is used for triggering the electronic equipment to light;
the control module is used for responding to the first operation, acquiring a first direction parameter of the electronic equipment through the direction sensor, and adjusting a backlight value of a backlight module of the display screen to be a first threshold value, so that the display content of the display screen is invisible to a user; the first direction parameter is used for indicating that the electronic equipment is in a horizontal screen state or a vertical screen state;
the control module is further configured to display a first screen locking interface in a horizontal screen state or a vertical screen state indicated by the first direction parameter, and adjust the backlight value to a second threshold value, so that display content of the display screen is visible to a user.
6. The electronic device of claim 5,
the control module is further configured to respond to the first operation, and display a second screen locking interface under the condition that the backlight value is the first threshold value; the second screen locking interface is a screen locking interface in a horizontal screen state or a vertical screen state indicated by a second direction parameter of the electronic equipment, and the second direction parameter is a direction parameter when the electronic equipment is changed from a bright screen to a black screen;
the first screen locking interface is drawn by the electronic equipment according to the horizontal screen state or the vertical screen state indicated by the first direction parameter.
7. The electronic device of claim 5 or 6, wherein 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 is blank, or the second threshold is a backlight value determined according to the ambient light brightness around the electronic device.
8. The electronic device of any of claims 5-7, wherein the landscape screen state comprises a first landscape screen state and a second landscape screen state, and the portrait screen state comprises a first portrait screen state and a second portrait screen state;
the display screen comprises a first long frame, a second long frame, a first short frame and a second short frame, wherein 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 cross screen state, an included angle between the first long frame or the second long frame and a horizontal plane is smaller than a preset value, and the first long frame is farther away from the horizontal plane than the second long frame; in the second horizontal screen state, an included angle between the first long frame or the second long frame and a horizontal plane is smaller than a preset value, and the second long frame is farther away from the horizontal plane than the first long frame;
in the first vertical screen state, an included angle between the first short frame or the second short frame and a horizontal plane is smaller than the preset value, and the first short frame is farther away from the horizontal plane than the second short frame; in the second vertical screen state, an included angle between the first short frame or the second short frame and the horizontal plane is smaller than a preset value, and the second short frame is farther away from the horizontal plane than the first short frame.
9. An electronic device, characterized in that the electronic device comprises: a processor and a memory; wherein the memory is to store computer program code comprising computer instructions; the processor is configured to execute the computer instructions to cause the electronic device to perform the method of any of claims 1-4.
10. A computer-readable storage medium having stored thereon computer instructions which, when run on an electronic device, cause the electronic device to perform implementing the method of any one of claims 1-4.
CN202011104659.3A 2020-10-15 2020-10-15 Interface display method, electronic equipment and computer readable storage medium Active CN114374766B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011104659.3A CN114374766B (en) 2020-10-15 2020-10-15 Interface display method, electronic equipment and computer readable storage medium
CN202211136471.6A CN115695648A (en) 2020-10-15 2020-10-15 Interface display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011104659.3A CN114374766B (en) 2020-10-15 2020-10-15 Interface display method, electronic equipment and computer readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211136471.6A Division CN115695648A (en) 2020-10-15 2020-10-15 Interface display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114374766A true CN114374766A (en) 2022-04-19
CN114374766B CN114374766B (en) 2022-09-23

Family

ID=81138851

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211136471.6A Pending CN115695648A (en) 2020-10-15 2020-10-15 Interface display method and electronic equipment
CN202011104659.3A Active CN114374766B (en) 2020-10-15 2020-10-15 Interface display method, electronic equipment and computer readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202211136471.6A Pending CN115695648A (en) 2020-10-15 2020-10-15 Interface display method and electronic equipment

Country Status (1)

Country Link
CN (2) CN115695648A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200084385A1 (en) * 2018-09-06 2020-03-12 Canon Kabushiki Kaisha Display control apparatus, imaging apparatus, and control method
CN115695648A (en) * 2020-10-15 2023-02-03 华为技术有限公司 Interface display method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786353A (en) * 2016-02-19 2016-07-20 努比亚技术有限公司 Screen locking interface adjusting method and device
CN107015732A (en) * 2017-04-28 2017-08-04 维沃移动通信有限公司 A kind of interface display method and mobile terminal
CN108111691A (en) * 2017-12-27 2018-06-01 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium for controlling screen
CN111414204A (en) * 2020-03-19 2020-07-14 京东方科技集团股份有限公司 Startup display method and device and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2681856A1 (en) * 2008-10-07 2010-04-07 Research In Motion Limited A method and handheld electronic device having a graphic user interface with efficient orientation sensor use
CN103176589B (en) * 2013-03-04 2016-02-10 东莞宇龙通信科技有限公司 Screen display method and system for editing content
CN106033666B (en) * 2015-03-18 2019-02-05 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105739986B (en) * 2016-02-02 2019-04-12 Oppo广东移动通信有限公司 A kind of awakening method and terminal of terminal
CN106886703B (en) * 2017-03-08 2020-01-14 Oppo广东移动通信有限公司 Fingerprint unlocking method and mobile terminal
CN108038359A (en) * 2017-12-25 2018-05-15 广东欧珀移动通信有限公司 Unlocking method and related product
CN115695648A (en) * 2020-10-15 2023-02-03 华为技术有限公司 Interface display method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786353A (en) * 2016-02-19 2016-07-20 努比亚技术有限公司 Screen locking interface adjusting method and device
CN107015732A (en) * 2017-04-28 2017-08-04 维沃移动通信有限公司 A kind of interface display method and mobile terminal
CN108111691A (en) * 2017-12-27 2018-06-01 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium for controlling screen
CN111414204A (en) * 2020-03-19 2020-07-14 京东方科技集团股份有限公司 Startup display method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200084385A1 (en) * 2018-09-06 2020-03-12 Canon Kabushiki Kaisha Display control apparatus, imaging apparatus, and control method
CN115695648A (en) * 2020-10-15 2023-02-03 华为技术有限公司 Interface display method and electronic equipment

Also Published As

Publication number Publication date
CN115695648A (en) 2023-02-03
CN114374766B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
WO2021052279A1 (en) Foldable screen display method and electronic device
WO2021063237A1 (en) Control method for electronic device, and electronic device
CN111819533B (en) Method for triggering electronic equipment to execute function and electronic equipment
CN108304151B (en) Method for displaying content and electronic device thereof
CN111742361A (en) Method for updating voice wake-up of voice assistant by terminal and terminal
CN110827820B (en) Voice awakening method, device, equipment, computer storage medium and vehicle
CN110543287A (en) Screen display method and electronic equipment
CN114374766B (en) Interface display method, electronic equipment and computer readable storage medium
KR102473790B1 (en) method for display time information in low power state and electronic device including the same
CN110572866B (en) Management method of wake-up lock and electronic equipment
US20240214939A1 (en) Power consumption optimization method and electronic device
WO2022247571A1 (en) Method for switching virtual card, and electronic device
CN110647731A (en) Display method and electronic equipment
CN112684969B (en) Always displaying method and mobile device
WO2023207667A1 (en) Display method, vehicle, and electronic device
CN111862972A (en) Voice interaction service method, device, equipment and storage medium
CN114201738A (en) Unlocking method and electronic equipment
CN110336881B (en) Method and device for executing service processing request
CN114375027A (en) Method and device for reducing power consumption
CN114475520A (en) Automobile control method and device and computer storage medium
CN115206308A (en) Man-machine interaction method and electronic equipment
CN116389640A (en) Interface display method and electronic equipment
CN112817512A (en) False touch prevention method, mobile device and computer readable storage medium
CN117116258B (en) Voice awakening method and electronic equipment
CN116700585B (en) Screen-off control method, electronic equipment and storage medium

Legal Events

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