INTERFACE DISPLAY METHOD AND ELECTRONIC DEVICE

The interface display method in terminal devices adapts to screen orientation using real-time sensor data to reduce waiting times by skipping layout loading and animation, allowing immediate screen operation after activation.

JP7571961B2Active Publication Date: 2024-10-23HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023522928
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-28
Filing Date
2021-10-14
Publication Date
2024-10-23
Estimated Expiration
2041-10-14

AI Technical Summary

Technical Problem

Current terminal devices experience long waiting times when the screen orientation is rotated after being turned off, as they perform layout loading, interface drawing, and screen rotation animations, preventing users from performing actions immediately after screen activation.

Method used

An interface display method that includes performing a screen-on interruption, adapting the interface to the screen orientation by obtaining and drawing the interface based on real-time sensor data, and disabling screen-on interruptions until the interface is fully drawn, allowing the screen to be lit up only after completion.

Benefits of technology

Significantly reduces user waiting time by eliminating unnecessary layout loading and animation steps, enabling immediate screen operation after activation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571961000005
    Figure 0007571961000005
  • Figure 0007571961000006
    Figure 0007571961000006
  • Figure 0007571961000007
    Figure 0007571961000007
Patent Text Reader

Abstract

An embodiment of the present application provides an interface display method and an electronic device. The method includes: performing a screen-on interruption in response to a screen-wakeup action performed by a user on the electronic device to prevent the screen from lighting up; drawing an interface adapted to the screen orientation; and, after the interface has been drawn, disabling the screen-on interruption and displaying the interface based on the screen orientation. The electronic device may collect and report data in real time through a sensor and calculate the current screen orientation in real time, so that the drawn interface adapts to the current screen orientation. Therefore, even if the screen of the electronic device is rotated when the screen is off, after detecting the screen-wakeup action performed by the user, the interface displayed when the screen is on can also adapt to the screen orientation obtained after the screen is rotated, and there is no need to play a screen rotation animation. The user can directly perform an action on the interface without waiting, thereby reducing the waiting time during which the user cannot perform an action.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202011176906.0, entitled “INTERFACE DISPLAY METHOD AND ELECTRONIC DEVICE,” filed with the China National Intellectual Property Office on October 28, 2020, which is incorporated herein by reference in its entirety.

[0002] The present application relates to the field of terminals, and more particularly to an interface display method and electronic device. [Background technology]

[0003] Currently, the interfaces of most terminal devices (such as mobile phones and tablets) may be rotated based on the rotation of the screen orientation with the support of an application to help users view in landscape or portrait mode.

[0004] In a possible scenario, after the screen of the terminal device is turned off, the screen orientation is rotated. After the screen is activated, the terminal device usually first displays the interface acquired before the screen rotation, and then switches to the interface acquired after the screen rotation by playing the screen rotation animation. For example, the screen of a mobile phone is in a portrait display state before the screen is turned off. Before the screen is activated, if the screen of the mobile phone is rotated by 90°, i.e., to a landscape display state, when the screen is activated, the mobile phone usually first loads a layout for a portrait display, draws and displays an interface. Then, the mobile phone calculates the screen orientation. When the mobile phone determines that the screen has been rotated to a landscape state, the mobile phone loads a layout for a landscape display, draws an interface, and finally loads and plays the screen rotation animation. The whole process may take a long time. As a result, the user cannot perform screen operations within a long time after the screen of the mobile phone is activated. Summary of the Invention

[0005] The embodiments of the present application provide an interface display method and an electronic device to reduce the waiting time during which a user cannot perform an action when the screen of the electronic device is rotated after screen off and then turned on.

[0006] According to a first aspect, the present application provides an interface display method. The method may be executed by an electronic device or by a processor disposed in the electronic device. This is not limited in this embodiment of the present application.

[0007] For example, the method may include: performing a screen-on interrupt in response to a screen wake-up action performed by a user on the electronic device to prevent the screen from lighting up; rendering an interface that adapts to the screen orientation; and disabling the screen-on interrupt for the screen and displaying the interface based on the screen orientation.

[0008] Based on the above solution, after the screen is off, the electronic device may not temporarily light up the screen for display based on the screen activation action performed by the user. The electronic device may first obtain the screen orientation, and perform layout loading and interface drawing based on the screen orientation to obtain an interface adapted to the current screen orientation. The electronic device may light up the screen to display the interface after the interface drawing is completed. As a result, the user can directly perform the operation after the screen is on, and the waiting time during which the user cannot perform the operation is greatly reduced.

[0009] Referring to the first aspect, in some possible implementations, prior to the step of performing a screen-on interruption in response to a screen wake-up action performed by a user on the electronic device, the method further comprises: entering screen-off if the screen orientation of the electronic device is in a first orientation.

[0010] If possible, when a screen orientation of the electronic device is in the first orientation, the electronic device detects a screen off action performed by a user on the electronic device and enters screen off in response to the screen off action performed by the user on the electronic device.

[0011] It should be understood that the user may perform different actions to switch off the screen, and the specific screen-off action performed by the user is not limited in this application.

[0012] In another possible case, when the screen orientation of the electronic device is in a first orientation, the electronic device automatically enters screen off because the standby time reaches a preset threshold.

[0013] It should be understood that the conditions for triggering the electronic device to enter screen-off are not limited in this application.

[0014] Referring to the first aspect, in some possible implementations, the method further comprises: detecting a screen wake-up action performed by a user on the electronic device when a screen orientation of the electronic device switches to a second orientation.

[0015] It should be understood that the user may perform different actions to activate the screen, and the specific screen activation action is not limited in this application.

[0016] Based on the aforementioned solution, when the screen of the electronic device is rotated after screen off, the electronic device can directly display an interface that can adapt to the screen orientation, even if a screen wake-up action performed by the user is detected.

[0017] In contrast, in the current technology, when the screen of an electronic device is rotated after the screen is off, when a user's screen activation action is detected, it is necessary to execute procedures such as layout loading for an interface used before the screen is off, procedures for interface drawing, procedures for screen rotation animation loading and playing, etc. The solution provided in this application can cut out procedures such as layout loading for an interface used before the screen is off of an electronic device, procedures for interface drawing, procedures for screen rotation animation loading and playing, etc. This greatly reduces the waiting time during which the user cannot perform an action.

[0018] Referring to the first aspect, in some possible implementations, prior to the step of rendering the screen orientation-adapted interface, the method further comprises the step of: obtaining a screen orientation of the electronic device.

[0019] Optionally, obtaining a screen orientation of the electronic device comprises: collecting data in real time via a sensor; and calculating a screen orientation based on the collected data.

[0020] Data is collected in real time through sensors, and the screen orientation is calculated in real time based on the collected data, which can reduce the waiting time for obtaining the screen orientation later.

[0021] It should be understood that collecting data in real time through a sensor is just a possible implementation. With the development of technology, the response speed of the sensor will be improved. For example, data collection and reporting, and screen orientation calculation can be completed within 10 milliseconds (ms). In this case, when the electronic device detects a screen wake-up action performed by a user, the electronic device may alternatively trigger the sensor to collect and report data, and then calculate the screen orientation. This may reduce the large power consumption caused by real-time data collection and calculation in the background.

[0022] Optionally, the sensor is a gravity sensor.

[0023] It should be understood that collecting data for calculating screen orientation through a gravity sensor is merely a possible implementation and does not constitute any limitation to this embodiment of the present application. The present application does not exclude the possibility that another sensor may be used to collect data for calculating screen orientation.

[0024] Referring to the first aspect, in some possible implementations, the step of performing a screen-on interrupt on the screen comprises: setting a backlight brightness of a backlight panel configured to provide a light source to the screen to a first brightness value such that the screen becomes dark.

[0025] Optionally, the first brightness value is 0. Alternatively, the first brightness value may be a small value.

[0026] It should be understood that the purpose of setting the backlight brightness of the backlight panel to the first brightness value is to disable the backlight panel to provide a sufficient light source for the screen so that the screen cannot normally display the interface. For the user, when the backlight brightness of the backlight panel is set to the first brightness value, the screen becomes dark.

[0027] Referring to the first aspect, in some possible implementations, the step of disabling screen-on interruption of the screen includes a step of: setting a backlight brightness of the backlight panel to a second brightness value such that the screen is lit up, where the second brightness value is greater than the first brightness value.

[0028] It should be understood that the purpose of setting the backlight brightness of the backlight panel to the second brightness value is to enable the backlight panel to provide a sufficient light source to the screen so that the screen can normally display the interface. For the user, when the backlight brightness of the backlight panel is set to the second brightness value, the screen is lit up and the user can normally view the interface on the screen.

[0029] It should further be understood that implementing screen-on pause and disabling screen-on pause by using backlight brightness is just a possible implementation, and the present application does not exclude the possibility that screen-on pause may be implemented and disabled in other possible ways.

[0030] According to a second aspect, an electronic device is provided. The electronic device is configured to execute the method according to the first aspect or any one of the possible implementations of the first aspect. The electronic device may include a module or unit configured to execute the method according to the first aspect and any one of the possible implementations of the first aspect. It should be understood that the module or unit may implement the corresponding function by executing a computer program.

[0031] According to a third aspect, there is provided an electronic device comprising a memory and a processor configured to execute program instructions in the memory to enable the electronic device to implement a method according to the first aspect or any one of the possible implementations of the first aspect.

[0032] According to a fourth aspect, there is provided a computer readable storage medium, configured to store a computer program which, when executed by a computer or processor, implements a method according to the first aspect or any one of the possible implementations of the first aspect.

[0033] According to a fifth aspect, there is provided a computer program product comprising instructions that, when executed, enable a computer to perform a method according to the first aspect and any one of the possible implementations of the first aspect.

[0034] According to a sixth aspect, a system on chip or system chip is provided. The system on chip or system chip may be used in an electronic device. The system on chip or system chip includes at least one communication interface, at least one processor, and at least one memory. The communication interface, the memory, and the processor are interconnected through a bus. The processor executes instructions stored in the memory to enable the electronic device to perform the method according to the first aspect or any one of the possible implementations of the first aspect. [Brief description of the drawings]

[0035] [Figure 1] FIG. 2 is a schematic diagram of a structure of an electronic device applicable to an interface display method according to an embodiment of the present application;

[0036] [Diagram 2] FIG. 2 is a block diagram of the software and hardware structure of an electronic device applicable to an interface display method according to an embodiment of the present application.

[0037] [Diagram 3] FIG. 2 is a schematic diagram of the steps performed by an electronic device in the process of rotating the screen when the screen of the electronic device is in an off state and then waking up the screen.

[0038] [Figure 4] FIG. 2 is a schematic diagram of an interface according to an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic diagram of an interface according to an embodiment of the present application. [Figure 6(a)] FIG. 2 is a schematic diagram of an interface according to an embodiment of the present application. [Figure 6(b)] FIG. 2 is a schematic diagram of an interface according to an embodiment of the present application.

[0039] [Figure 7]FIG. 2 is a diagram showing the directions of the x-axis, y-axis, and z-axis of an electronic device according to an embodiment of the present application.

[0040] [Figure 8] 1 is a schematic flowchart of an interface display method according to an embodiment of the present application. [Figure 9] 1 is a schematic flowchart of an interface display method according to an embodiment of the present application. [Figure 10] 1 is a schematic flowchart of an interface display method according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0041] The following describes the technical solutions of the present application with reference to the accompanying drawings.

[0042] The method provided in the embodiments of the present application may be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), or distributed devices. The specific type of electronic device is not limited in the embodiments of the present application.

[0043] In addition, the method in the embodiment of the present application may support operating environments such as Linux, Android, Harmony operating system (HarmonyOS), Mac, iOS, Windows, and Internet of Things operating systems (e.g., LiteOS), etc. This is not limited to the embodiment of the present application.

[0044] For example, Figure 1 is a schematic diagram of the structure of an electronic device 100. As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a subscriber identification module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

[0045] It may be understood that the structures depicted herein do not constitute any particular limitations on electronic device 100. In other embodiments, electronic device 100 may include more or fewer components than those depicted in the figures, or some components may be combined, or some components may be divided, or different component configurations may be used. The components depicted in the figures may be implemented in hardware, software, or a combination of software and hardware.

[0046] The processor 110 may comprise one or more processing units. For example, the processor 110 may include one or more of an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU), etc. The different processing units may be separate components or may be integrated into one or more processors.

[0047] The application processor outputs sound signals through an audio module 170 (eg, a speaker 170A) or displays images or video on a display screen 194.

[0048] The controller may be the brain and command center of the electronic device 100. The controller may generate operational control signals based on instruction operation codes and timing signals to implement control over instruction fetching and execution.

[0049] The processor 110 may further be provided with a memory. The memory is configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that have been used or are used periodically by the processor 110. When the processor 110 needs to use the instructions or data again, the processor 110 may retrieve the instructions or data directly from the memory. This avoids repeated storage and retrieval, reducing the waiting time of the processor 110 and improving system efficiency.

[0050] The processor 110 may perform different operations by executing instructions to implement different functions. For example, the instructions may be pre-stored in memory before delivery of the device, or may be retrieved from a new application (APP) after the user installs the APP during use. This is not limited in this embodiment of the present application.

[0051] The processor 110 may control or call another component to execute the interface display method provided in the embodiment of the present application. For example, the processor 110 calls a processing program stored in an internal memory and in this embodiment of the present application, or calls a processing program stored in a third-party device and in this embodiment of the present application through an external memory interface. In this way, the processor 110 controls the display screen to temporarily skip lighting up for display, and to light up for display after the interface is drawn based on the correct screen orientation. When the screen of the electronic device is rotated after the screen is off, unnecessary procedures can be cut. For example, the layout load for the interface used before the screen is off, and the procedure for the interface drawing, and the procedure for the screen rotation animation loading and playing can be cut. As a result, the user's waiting time can be reduced, and the user experience can be improved. The processor 110 may include different components. For example, when the CPU and the GPU are integrated into the processor 110, the CPU and the GPU can work together to execute the interface display method provided in the embodiment of the present application. For example, some algorithms in the interface display method are executed by the CPU, and other algorithms are executed by the GPU to achieve high processing efficiency.

[0052] In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, a USB interface, etc.

[0053] The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the camera flash, the camera 193, etc. through separate and distinct I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through an I2C interface. Thus, the processor 110 may communicate with the touch sensor 180K through the I2C bus interface to implement touch functionality of the electronic device 100.

[0054] The I2S interface may be configured to perform audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may send audio signals to the wireless communication module 160 through the I2S interface to implement a function for answering a call through a Bluetooth headset.

[0055] The PCM interface may also be configured to perform audio communications and to sample, quantize, and code analog signals. In some embodiments, audio module 170 and wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, audio module 170 may also send audio signals to wireless communication module 160 through the PCM interface to implement a function for answering a call through a Bluetooth headset. Both the I2S interface and the PCM interface may be configured to perform audio communications.

[0056] The UART interface is a universal serial data bus configured to perform asynchronous communication. The bus may be a bidirectional communication bus. The bus converts untransmitted data from serial to parallel or parallel to serial for communication. In some embodiments, the UART interface is generally configured to connect the processor 110 to the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through the UART interface to implement a Bluetooth function. In some embodiments, the audio module 170 may send an audio signal to the wireless communication module 160 through the UART interface to implement a function of playing music through a Bluetooth headset.

[0057] The MIPI interface may be configured to connect the processor 110 to peripheral components such as a display screen 194 or a camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to implement a capture function of the electronic device 100. The processor 110 communicates with the display screen 194 through the DSI interface to implement a display function of the electronic device 100.

[0058] The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or a data signal. In some embodiments, the GPIO interface may be configured to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface may alternatively be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0059] The USB interface 130 is an interface that complies with the USB standard specifications, and may specifically be a mini USB interface, a micro USB interface, a USB Type-C interface, or the like. The USB interface 130 may be configured to connect to a charger to charge the electronic device 100, and may be configured to transmit data between the electronic device 100 and a peripheral device. The USB interface 130 may be configured to connect to a headset to play audio through the headset. The interface may further be configured to connect to another electronic device, such as an AR device.

[0060] It may be understood that the interface connection relationships between modules shown herein are merely illustrative examples and do not constitute limitations on the structure of electronic device 100. In some other embodiments, electronic device 100 may alternatively use different interface connection methods than those in the above-described embodiments, or a combination of multiple interface connection methods.

[0061] The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input from the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive the wireless charging input through a wireless charging coil of the electronic device 100. In addition to charging the battery 142, the charging management module 140 may further provide power to the electronic device through the power management module 141.

[0062] The power management module 141 is configured to connect to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or from the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 may be further configured to monitor parameters such as battery capacity, battery cycle count, and battery health status (electrical leakage or impedance). In some other embodiments, the power management module 141 may alternatively be located in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may alternatively be located in the same component.

[0063] The wireless communication function of the electronic device 100 may be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and the like.

[0064] Antenna 1 and Antenna 2 are configured to transmit and receive electromagnetic signals. Each antenna in electronic device 100 may be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed to improve antenna utilization. For example, Antenna 1 may be multiplexed as a diversity antenna in a wireless local area network. In some other embodiments, antennas may be used in combination with tuning switches.

[0065] The mobile communication module 150 may provide a solution for wireless communication, including 2G, 3G, 4G, 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, perform processing such as filtering or amplification on the received electromagnetic waves, and send the electromagnetic waves to a modem processor for demodulation. The mobile communication module 150 may further amplify the modulated signal by the modem processor and convert the signal to an electromagnetic wave for emission through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be located in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 may be located in the same component as at least some modules of the processor 110.

[0066] The modem processor may include a modulator and a demodulator. The modulator is configured to modulate the untransmitted low-frequency baseband signal into a medium and high-frequency signal. The demodulator is configured to demodulate the received electromagnetic signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then transmitted to the application processor. The application processor outputs a sound signal through an audio device (such as, but not limited to, speaker 170A, receiver 170B, etc.) or displays an image or video through a display screen 194. In some embodiments, the modem processor may be a separate component. In some other embodiments, the modem processor may be separate from the processor 110 and located in the same component as the mobile communication module 150 or another functional module.

[0067] The wireless communication module 160 may be applied to the electronic device 100 and provide wireless communication solutions including wireless local area network (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc. The wireless communication module 160 may be one or more components integrating at least one communication processor module. The wireless communication module 160 receives electromagnetic waves through the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may further receive untransmitted signals from the processor 110, perform frequency modulation and amplification on the signals, and convert the signals into electromagnetic waves for emission through the antenna 2.

[0068] In some embodiments, the antenna 1 and the mobile communication module 150 in the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 in the electronic device 100 are coupled, so that the electronic device 100 can communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), 5th generation (5G) communication systems, BT, GNSS, WLAN, NFC, FM, IR technology, etc. 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).

[0069] The electronic device 100 may implement display functions by using a GPU, a display screen 194, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display screen 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render graphics. The processor 110 may include one or more GPUs. The one or more GPUs execute program instructions that generate or modify display information.

[0070] The display screen 194, which may also be referred to as a screen, may be configured to display images, videos, etc. The display screen 194 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194.

[0071] It should be understood that the display screen 194 may further include additional components, such as a backlight panel and driving circuits. The backlight panel may be configured to provide a light source. The display panel emits light based on the light source provided by the backlight panel. The driving circuits may be configured to control the liquid crystals of the liquid crystal layer to transmit or block light.

[0072] The electronic device 100 may implement image capture functionality through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.

[0073] The ISP may be configured to process data fed back by the camera 193. For example, during capture, the shutter is pressed and light is transmitted through the lens to the camera's photosensitive elements. The optical signal is converted into an electrical signal. The camera's photosensitive elements send the electrical signal to the ISP for processing to convert the electrical signal into a visible image. The ISP may perform optimization for noise, brightness, and skin tone of the image by using algorithms. The ISP may optimize parameters such as exposure and color temperature in the captured scene. In some embodiments, the ISP may be located in the camera 193.

[0074] The camera 193 is configured to capture still images or video. An optical image of an object is generated through a lens and projected onto a photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then sent to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, such as RGB or YUV. In some embodiments, the electronic device 100 may include one or more cameras 193.

[0075] The digital signal processor is configured to process digital signals, and may process other digital signals in addition to the digital image signal, for example, when the electronic device 100 selects a frequency, the digital signal processor is configured to perform a Fourier transform on the frequency energy.

[0076] A video codec is configured to compress or decompress digital video. Electronic device 100 may support one or more types of video codecs. In this manner, electronic device 100 can play or record video in multiple coding formats, such as moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.

[0077] The external memory interface 120 may be configured to connect to an external memory card, such as a micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, the external memory card stores files such as music and videos.

[0078] The internal memory 121 may be configured to store computer executable program code. The executable program code includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to perform various functional applications and data processing of the electronic device 100. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, applications required for at least one function (such as sound playback function and image display function), etc. The data storage area may store data (e.g., audio data and address book) created during use of the electronic device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory or may include a non-volatile memory, such as at least one disk memory, flash memory, or universal flash storage (UFS).

[0079] The electronic device 100 may implement audio functions, such as music playback and recording, through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, an application processor, and the like.

[0080] The gyroscope sensor 180B may be configured to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity around three axes (i.e., x-axis, y-axis, and z-axis) of the electronic device 100 may be determined by using the gyroscope sensor 180B. The gyroscope sensor 180B may be configured to implement image stabilization during shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle at which the electronic device 100 shakes; based on this angle, calculates the distance that the lens module needs to compensate; and enables the lens to offset the shaking of the electronic device 100 through reverse motion to implement image stabilization. The gyroscope sensor 180B may further be used in navigation scenarios and motion-sensing game scenarios.

[0081] The acceleration sensor 180E may detect acceleration in various directions (usually, three-axis directions) of the electronic device 100, and when the electronic device 100 is stationary, the magnitude and direction of gravity may be detected.

[0082] The acceleration sensor 180E may be further configured to identify the orientation of the electronic device, and is used for applications such as landscape / portrait mode switching and pedometer. A gravity sensor, described below, used to calculate the screen orientation of the electronic device, is one type of acceleration sensor 180E. Gravity sensor values ​​are typically calculated based on the acceleration of gravity, g=9.8 meters per second squared (m / s 2 )

[0083] The touch sensor 180K may also be referred to as a "touch panel." The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 constitute a touch screen, also referred to as a "touch screen." In a specific implementation, the touch sensor 180K may be configured to detect a touch action performed on or near the touch sensor 180K. The touch sensor may forward the detected touch action to an application processor to determine a type of touch event. The touch sensor 180K may further provide a visual output associated with the touch action on the display screen 194.

[0084] In some other embodiments, touch sensor 180K may alternatively be located on a surface of electronic device 100 at a location different than the location of display screen 194. For example, touch sensor 180K may be located on a power on / off button (or referred to as a power button), and a user may press the power on / off button to simultaneously implement screen activation and fingerprint recognition.

[0085] The buttons 190 include a power on / off button (also referred to as an on / off button or a power button), a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive button inputs and generate button signal inputs related to user settings and function control of the electronic device 100. For example, in this embodiment of the present application, a user may press or touch the power on / off button 190 to implement screen off and screen wake functions.

[0086] The motor 191 may generate a vibration alert. The motor 191 may be configured to provide a vibration alert for an incoming call and may also be configured to provide vibration feedback for a touch. For example, touch actions performed for different applications (such as taking pictures and playing audio) may correspond to different vibration feedback effects. The motor 191 may provide different vibration feedback effects corresponding to touch actions performed on different areas of the display screen 194. Different application scenarios (such as time prompts, receiving information, alarm clocks, and games) may also correspond to different vibration feedback effects. The vibration feedback effects for a touch may further be defined by the user.

[0087] The indicator 192 may be an indicator light. The indicator 192 may be configured to indicate charging status and power changes, and may also be configured to indicate messages, missed calls, notifications, and the like.

[0088] The SIM card interface 195 is configured to connect to a SIM card. The SIM card may be inserted into or disconnected from the SIM card interface 195 to implement contact with or separation from the electronic device 100. The electronic device 100 may support one or more SIM card interfaces. The SIM card interface 195 may support a nano-SIM card, a micro-SIM card, a SIM card, etc. Multiple cards may be inserted into one SIM card interface 195 at the same time. The multiple cards may be of the same type or different types. The SIM card interface 195 may be compatible with different types of SIM cards. The SIM card interface 195 may be compatible with an external memory card. The electronic device 100 interacts with a network through the SIM card to implement functions such as calling and data communication functions. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card may be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0089] It may be understood that the structures depicted herein do not constitute any particular limitations on electronic device 100. In other embodiments, electronic device 100 may include more or fewer components than those depicted in the figures, or some components may be combined, or some components may be divided, or different component configurations may be used. The components depicted in the figures may be implemented in hardware, software, or a combination of software and hardware.

[0090] The software system of the electronic device 100 may use a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In this application, the Android system of the layered architecture is used as an example to describe the software structure of the electronic device 100. The type of the operating system of the electronic device is not limited in this application. For example, the operating system of the electronic device may be an Android system or a HarmonyOS system.

[0091] FIG. 2 is a block diagram of the software and hardware architecture of an electronic device applicable to a method according to an embodiment of the present application.

[0092] As shown in Figure 2, a layered architecture divides the software into several layers. Each layer has a clear role and task. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.

[0093] The application layer may include a series of application packages. As shown in FIG. 2, the application layer may include lock screen applications, desktop applications, etc. The desktop applications may further include applications such as camera, gallery, calendar, calling, maps, navigation, WLAN, Bluetooth, music, video, games, shopping, travel, instant messaging (such as Messages and WeChat), smart home, and device control.

[0094] A smart home application may be used to control or manage home devices having network connectivity. For example, the home devices may include lights, televisions, and air conditioners. As another example, the home devices may further include burglar door locks, sound boxes, floor cleaning robots, sockets, body fat scales, desk lamps, air purifiers, refrigerators, washing machines, water heaters, microwave ovens, electric cookers, curtains, fans, televisions, set-top boxes, doors, and windows.

[0095] The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may include an input manager service (IMS), a display policy service, a power manager service (PMS), a display manager service (DMS), an activity manager service, a resource manager service, a content provider service, a view system, a telephone manager service, a notification manager service, a window manager service, a process manager service, a drawing service, etc. This is not limited in this embodiment of the present application.

[0096] The window manager service may be configured to manage window programs. The window manager service may obtain the size of the display screen, determine whether a status bar is present, perform screen locking, take screenshots, etc.

[0097] Content provider services may be configured to store and retrieve data and make the data accessible to applications. Data may include video, images, audio, calls made and answered, browsing history and bookmarks, address books, etc.

[0098] A view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system may be used to build applications. A display interface may include one or more views. For example, a display interface that includes a message notification icon may include a text display view and an image display view.

[0099] The telephone manager service is configured to provide communication functions of the electronic device 100, such as managing call status (including answering, hanging up, etc.).

[0100] The resource manager service provides various resources to applications, such as localized strings, icons, images, layout files, and video files.

[0101] The notification manager service may be configured to allow applications to display notification information in the status bar and to communicate notification messages. The displayed notification information may disappear automatically after remaining for a short time without user interaction. For example, the notification manager may be configured to notify of download completion and provide message notifications. The notification manager may alternatively be notifications that appear in a status bar at the top of the system in the form of charts or scrollbar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of dialog windows. For example, text information may be displayed in the status bar, an announcement may be given, the electronic device may vibrate, or an indicator light may flash.

[0102] The drawing service may be configured to draw the interface. For example, the drawing service may convert the layout and resources of the application into a format that can be understood by the display service at the kernel layer. The drawing service may send the drawn interface to the display service at the kernel layer to display the drawn interface.

[0103] The Android runtime may include core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0104] The core library may include two parts: functions called by the Java language and the core library of the Android system.

[0105] The application layer and the application framework layer run on a virtual machine. The virtual machine executes Java files as binary files in the application layer and the application framework layer. The virtual machine is configured to implement functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0106] The system library may include multiple functional modules, such as a state monitoring service, a surface manager, media libraries, a three-dimensional graphics processing library (e.g., OpenGL ES), and a two-dimensional (2D) graphics engine (e.g., SGL).

[0107] The state monitoring service is configured to determine a particular orientation of the mobile phone, a physical state of the flexible display, etc., based on the monitoring data reported by the kernel layer. The surface manager is configured to manage the display subsystem and provide 2D and three dimensions (3D) layers to multiple applications. The media library supports multiple common audio and video formats for playback and recording, as well as still image files. The media library may support multiple audio and video coding formats, such as MPEG-4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing library is configured to implement 3D graphics drawing, image rendering, compositing, layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0108] The kernel layer is a layer between hardware and software. The kernel layer includes at least a power manager service, a sensor service (which may also be referred to as a sensor driver), a display service (which may also be referred to as a display driver), a camera driver, an audio driver, etc. This is not limited in this embodiment of the present application.

[0109] As still shown in FIG. 2, the system libraries and kernel layers, etc. below the application framework layer may be referred to as a lower layer system. The lower layer system includes a lower layer display system configured to provide display services. For example, the lower layer display system includes a display driver in the kernel layer, a surface manager in the system libraries, etc.

[0110] Below the underlying system is the hardware. The hardware provides the foundation for software execution. As shown in Figure 2, the hardware of an electronic device may include, but is not limited to, a power on / off button, sensors, a display screen, a fingerprint, a camera, etc.

[0111] For ease of explanation, in the following embodiments, the application framework layer may be abbreviated to the framework layer, and the application layer may be abbreviated to the app layer.

[0112] Currently, most electronic devices support viewing in landscape or portrait state to meet different requirements of users. In most cases, the screen of the electronic device is rotated when the screen is in off state, and then the screen is woken up. For example, the screen is turned off in portrait state and woken up after the screen switches to landscape state. The user may wait a long time before performing a screen action.

[0113] For ease of understanding, Fig. 3 shows the procedures that may be performed by an electronic device in the process of rotating the screen when the screen of the electronic device is in an off state and then waking up the screen. As shown in Fig. 3, the electronic device may go through a procedure for layout loading and drawing before the screen is off; a procedure for screen orientation calculation; a procedure for layout loading and drawing after the screen is rotated; and a procedure for screen rotation animation loading and playing.

[0114] FIG. 3 describes the above steps in terms of interactions between layers of software of the electronic device and between software and hardware. FIG. 3 shows steps 301-308. Step 303 is a procedure for layout loading and interface drawing for an interface used before the screen off of the electronic device. Steps 304 and 305 are procedures for screen orientation calculation. Step 306 is a procedure for layout loading and drawing after screen rotation. Steps 307 and 308 are procedures for screen rotation animation loading and playing. The following describes the steps in FIG. 3 in detail.

[0115] Step 301: In response to a user pressing a power on / off button, the electronic device reports a button press event to the kernel layer.

[0116] It should be understood that pressing the power on / off button by a user is one possible implementation of a screen wake-up action performed by the user, and that the user may alternatively perform another action to wake up the screen.

[0117] As used herein, waking up a screen refers to relighting the screen if it is initially off. The user may then perform screen actions on the screen that has been woken up.

[0118] Step 302: The kernel layer reports the button press event to the framework layer.

[0119] Step 303: Based on the button press event reported by the kernel layer, the framework layer performs layout loading for the interface used before screen off, and performs interface drawing.

[0120] In this specification, screen off may also be referred to as screen off or screen off.

[0121] It should be understood that before screen off, the electronic device may run an application in the foreground, for example, use a setting function, play a video, or use WeChat. The interface displays the application in a running state. FIG. 4 shows an example where the interface displays a setting function that is enabled. Alternatively, before screen off, the electronic device may not start an application. The interface displays a desktop icon. FIG. 5 shows an example where the interface displays a desktop icon in a portrait display state.

[0122] The framework layer may interact with the application layer to determine whether the interface used before screen off is the running interface of the application or the interface of the desktop icon, and then perform layout loading and interface drawing based on the interface obtained after layout loading. For example, the interface obtained through interface drawing at this time is shown as interface 1. The interface shown in FIG. 6(a) is an example of an interface displayed in a portrait upright orientation.

[0123] Step 304: The framework layer obtains the data collected by the sensor from the kernel layer.

[0124] For example, the framework layer may send instructions to a sensor service in the kernel layer to instruct the sensor service to control a sensor to collect data.

[0125] As described above, the electronic device may include an acceleration sensor, which may be configured to identify an orientation of the electronic device.

[0126] In a possible implementation, the gravity sensor may report detected data in real time to a sensor service at the kernel layer, which may determine a screen orientation of the electronic device based on the data reported by the gravity sensor.

[0127] For example, the data for calculating the screen orientation may be the gravitational acceleration collected by a gravity sensor, and may specifically include components of the gravitational acceleration relative to the x-axis, y-axis, and z-axis of the electronic device. The components of the gravitational acceleration relative to the x-axis, y-axis, and z-axis of the electronic device may be referred to as acceleration in the directions of the x-axis, y-axis, and z-axis of the electronic device, respectively.

[0128] FIG. 7 shows the directions of the x-axis, y-axis, and z-axis of an electronic device. (a), (b), (c), and (d) in FIG. 7 show the directions of the x-axis, y-axis, and z-axis of an electronic device whose screen faces the user and uses different orientations for display. The center of the electronic device is used as the coordinate center. (a) in FIG. 7 shows a portrait upright orientation, i.e., a normal hand-held orientation. The x-axis may be the horizontal left direction of the electronic device. The y-axis may be the vertical upward direction of the electronic device. The z-axis may be the orientation of the screen of the electronic device when it faces upward. (b) in FIG. 7 shows a landscape left orientation, i.e., an orientation obtained by rotating the normal hand-held orientation by 90° counterclockwise. (c) in FIG. 7 shows a portrait upside-down orientation, i.e., the upside-down direction in which the electronic device is held. 7(d) shows a right landscape orientation, i.e. an orientation obtained by rotating the normal handheld orientation 90° clockwise. It can be seen that as the electronic device is flipped or rotated, the x-, y-, and z-axis directions relative to the electronic device remain unchanged, but the x-, y-, and z-axis values ​​detected by the gravity sensor may change.

[0129] Step 305: The framework layer calculates a screen orientation of the electronic device based on the data reported by the kernel layer.

[0130] Specifically, the framework layer may calculate a vector based on the acceleration in the x-axis, y-axis, and z-axis directions reported by the sensor service in the kernel layer, where the vector is:

number

number

[0131] The screen orientation of the electronic device may be determined based on the narrow angle α obtained through calculation. Please refer to Table 1 for the corresponding relationship between the range of the narrow angle α and the screen orientation of the electronic device. [Table 1] [Table 1]

[0132] Screen rotations performed by typical users usually trigger shaking, which results in sensor data fluctuations. The sensor may perform calculations based on data reported multiple times and stabilizing within a certain range of angles to determine the screen orientation.

[0133] Specifically, the framework layer may calculate the confinement angle α based on the data reported by the sensor service each time (which may include, specifically, the acceleration of the electronic device in the x-axis, y-axis, and z-axis directions). If the confinement angle α obtained through multiple calculations performed by the framework layer based on the data reported by the sensor service multiple times each falls within a range in Table 1, the orientation corresponding to the range may be determined to be the screen orientation of the electronic device.

[0134] For example, the angles obtained through multiple calculations performed by the framework layer based on the data reported by the sensor service multiple times are each between 45 degrees and 135 degrees, and therefore it may be determined that the screen orientation of the electronic device is landscape left.

[0135] It should be understood that for ease of understanding only, the above uses the concave angle between the x-axis direction and the vector r as an example to describe a specific implementation in which the kernel layer determines the screen orientation. However, this shall not constitute any limitation to the present application. Based on the same principle, the kernel layer may alternatively determine the screen orientation based on the concave angle between the y-axis direction and the vector r, and the corresponding angle may be adjusted accordingly.

[0136] Step 306: If the framework layer determines that the screen of the electronic device has been rotated, the framework layer performs layout loading and interface drawing again.

[0137] The framework layer may determine that the screen of the electronic device is rotated based on the screen orientation determined in step 305 and the screen orientation used before the screen is off. Then, the framework layer may perform layout loading and interface drawing again based on the screen orientation obtained through calculation.

[0138] The framework layer may perform layout loading based on the screen orientation obtained through calculation. For example, the framework layer may complete the layout loading by interacting with a lock screen application, and perform interface drawing after the layout loading is completed through a drawing service. For example, an interface obtained through interface drawing is shown as interface 2. Interface 2 shown in FIG. 6(b) is an example of an interface displayed in a landscape left orientation.

[0139] Step 307: The framework layer loads the animation.

[0140] The framework layer may load an animation based on interface 1 used before screen off and interface 2 used after screen rotation. The animation is used to implement the transition from interface 1 to interface 2.

[0141] Step 308: The framework layer plays the animation.

[0142] The framework layer sends the loaded animation to a display service in the kernel layer, which then controls the display screen to play the animation. In a possible implementation, the framework layer may convert the animation into a set of instructions and send the instructions to the display service in chronological order. Based on the instructions, the display service performs operations such as panning, rotating, and zooming in the display interface.

[0143] Based on the above steps, the electronic device may switch the screen from interface 1 to interface 2 after screen on, and then switch focus to the new interface, i.e., interface 2.

[0144] However, the procedure for loading a layout for an interface to be used before the screen off of the electronic device may take approximately 100 milliseconds (ms). Sampling performed by a sensor of the electronic device may take approximately 66.7 ms. Screen orientation calculation may take 130 ms to 200 ms. After the electronic device determines that the screen has been rotated, the procedure for the electronic device to perform layout loading for an interface to be used after the screen rotation and to perform interface drawing may also take approximately 100 ms. In the procedure for the electronic device to load and play a rotation animation, the rotation animation loading takes approximately 40 ms and the animation playing takes approximately 300 ms.

[0145] It can be seen that in response to a screen activation operation performed by a user, the electronic device undergoes two procedures for layout loading and interface drawing, a procedure for multiple sensor sampling, a procedure for screen orientation calculation, and a procedure for screen rotation animation loading and playing. The whole process takes 606.7ms to 676.7ms. In this period, the user cannot perform the screen operation. In other words, the user needs to wait for a long time before performing the screen operation. This results in a poor user experience.

[0146] Based on this, the present application provides an interface display method. After a screen-on action performed by a user is detected, layout loading and interface display for an interface used before screen-off are not performed immediately, but layout loading and interface display after screen rotation are directly drawn based on data reported by a sensor. Therefore, the procedures for layout loading and interface drawing for an interface used before screen-off, and the procedures for screen rotation animation loading and playing can be cut, which greatly reduces the user's waiting time.

[0147] The following describes in detail the interface display method provided in the embodiments of the present application with reference to the accompanying drawings.

[0148] It should be understood that the interface display method provided in the embodiment of the present application is applicable not only when the screen orientation of the electronic device changes, but also when the screen orientation of the electronic device does not change. For ease of understanding and explanation, the following uses a scenario in which the screen of the electronic device switches from a first orientation used before the screen is off to a second orientation used during startup as an example for explanation. However, this shall not constitute any limitation to the present application.

[0149] Fig. 8 is a schematic flow chart of an interface display method 800 according to an embodiment of the present application. Fig. 9 further illustrates the interface display method provided in the embodiment of the present application in terms of interaction between modules in layers of an electronic device. The following describes the steps in the method 800 in detail with reference to Figs. 8 and 9.

[0150] As shown in Fig. 8, the method 800 may include steps 801 to 810. The following describes in detail the steps in the method 800. Reference numbers (1) to (12) in Fig. 9 indicate interaction information of modules in a layer.

[0151] Step 801: If the screen orientation of the electronic device is in the first orientation, enter screen off.

[0152] The electronic device may enter screen off based on different trigger conditions.

[0153] If possible, the user performs a screen-off action to trigger the electronic device to enter screen-off. In this case, step 801 may specifically include: when the screen orientation of the electronic device is in a first orientation, the electronic device detects a screen-off action performed by the user on the electronic device, and enters screen-off in response to the screen-off action.

[0154] The user may perform different actions to switch the screen off, which causes the screen to enter the off state. For example, the user may press the power on / off button to switch the screen off. For another example, the user may tap a "lock screen" application on the desktop to switch the screen off. When the electronic device detects a screen off action performed by the user on the electronic device, the screen enters the off state in response to the screen off action.

[0155] In another possible case, the user does not perform any operation on the electronic device for a long time; or the electronic device does not detect any operation performed by the user for a long time. The electronic device is in a standby state. When the standby time of the electronic device reaches a preset threshold, the electronic device may automatically enter screen off. The preset threshold may be defined by the user, and the user may set the preset threshold by using a setting function. For example, the preset threshold may be 15 seconds, 30 seconds, or 1 minute. This is not limited in this embodiment of the present application.

[0156] It can be understood that the interface displayed on the screen before the electronic device enters the screen off state is adapted to the screen orientation. For example, the screen of the electronic device is in a first orientation before the screen enters the off state. The interface displayed on the screen before the electronic device enters the off state is an interface adapted to the first orientation. For example, the first orientation may be the aforementioned portrait upright orientation, as shown in FIG. 6(a).

[0157] Step 802: The kernel layer determines the screen orientation based on the data reported by the sensors in real time.

[0158] In this embodiment, the screen enters an off state, but the sensor service in the kernel layer may control the sensor (e.g., gravity sensor) to collect and report data in real time. As shown by (1) in FIG. 9, the sensor reports the collected data to the sensor service. As described above, the data reported by the gravity sensor includes the gravitational acceleration of the electronic device in the x-axis, y-axis, and z-axis directions.

[0159] A sensor service at the kernel layer may calculate the screen orientation in real-time based on the data reported by the sensors.

[0160] For example, for a specific method of calculating the screen orientation by the sensor service, see the above related description in step 304. The difference is that in this embodiment, the kernel layer can calculate the screen orientation based on the data reported by the sensor.

[0161] Optionally, the kernel layer may store the screen orientation obtained through calculation in a local memory rather than actively reporting the screen orientation to the framework layer, to avoid waking up the framework layer and causing unnecessary power consumption. After the kernel layer receives a request from the framework layer, the kernel layer may report the screen orientation obtained through the latest calculation or multiple calculations to the framework layer, so that the framework layer can accurately obtain the correct screen orientation.

[0162] In this specification, the correct screen orientation may specifically be the current actual screen orientation. For example, in this embodiment, the sensor service calculates the screen orientation in real time, and the screen orientation obtained through each calculation is the current screen orientation, i.e., the correct screen orientation.

[0163] It should be understood that the method of determining the screen orientation is not limited to the method provided in this application, and the kernel layer may alternatively determine the screen orientation in another existing method. The specific method of determining the screen orientation is not limited in this application.

[0164] It should be further understood that the figure is merely an example. Step 802 shows a process in which a sensor reports collected data to a kernel layer, and the kernel layer calculates a screen orientation. In fact, step 802 may be performed continuously, rather than being performed only before step 803. In addition, step 802 may be performed multiple times, rather than being performed only once. The example in the figure shall not constitute any limitation to this embodiment of the present application. Step 803: When the screen orientation of the electronic device is switched to a second orientation, a screen wake-up action performed by a user on the electronic device is detected, and the kernel layer sends a screen-on request to the framework layer in response to the screen wake-up action performed by the user.

[0165] As described above, a user may perform various operations to wake up a screen. Based on the operations performed by the user on different hardware, each hardware in the electronic device may report the operation performed by the user to a sensor service in the kernel layer in response to the user's wake up screen operation. When the kernel layer determines that the operation performed by the user is to wake up a screen, the kernel layer may further send a screen on request to a window manager service in the framework layer to request the window manager service to prepare for screen on.

[0166] For example, as described above, a user may press a power on / off button to activate a screen. When a user presses the on / off button (also referred to as a power on / off button or a power button) in FIG. 9, a button press event is reported to a power manager service in the kernel layer in response to an action performed by the user. As shown by (2) in FIG. 9, the power on / off button reports the button press event to the power manager service. The power manager service may determine based on the button press event that the user expects to activate a screen, and therefore may further report to a window manager service in the framework layer to send a screen on request. As shown by (3) in FIG. 9, the power manager service sends the screen on request to the window manager service.

[0167] In another example, a user may activate the screen by a method such as fingerprint recognition or protective case opening. Based on different actions performed by the user, after the related hardware detects the action performed by the user, the related hardware may report the action performed by the user to the kernel layer. Then, the kernel layer sends a screen-on request to the framework layer.

[0168] Step 804: The framework layer performs a screen-on pause.

[0169] Typically, after the window manager service receives a screen on request, the window manager service in the framework layer may perform the following operations: First, the window manager service may update the power state of components related to the screen display. For example, the window manager service updates the power state from "off" to "on". Next, the window service management may power on the screen (e.g., LCD). Powering on the screen may specifically power on the components related to the screen display. The window service may further calculate a backlight brightness based on an interface displayed before the screen off of the electronic device. Next, the window manager service may send the backlight brightness to a display service in the kernel layer, and send the backlight brightness to a display screen through the display service. The display screen may adjust the brightness of a backlight panel based on the backlight brightness from the display service. It should be understood that the backlight brightness may be used to provide a light source to the display panel to light up the screen for display.

[0170] However, in this embodiment, after the window manager service receives the screen on request, the window manager service may temporarily execute a screen on interruption. The screen on interruption may specifically mean that after the window manager service receives the screen on request, the window manager service temporarily does not respond to the screen on request to delay the screen on. In this embodiment, the framework layer does not execute layout loading or screen drawing for the interface used before the screen off based on the screen activation operation executed by the user. Therefore, if the screen on interruption is not executed, no content may be displayed after the screen is lit up, and a splash screen may appear.

[0171] For example, the window manager service may temporarily not calculate the backlight brightness or may temporarily not send the actual requested backlight brightness obtained through calculation to the display service.

[0172] In the implementation, the window manager service may inform the display service that the backlight brightness is a first brightness value, as shown by (4) in FIG. 9. For example, the first brightness value may be 0 or a small value. When the backlight panel is set to the first brightness value, the backlight panel basically does not emit light. In this specification, the backlight panel basically does not emit light may specifically mean: the brightness value of the backlight panel is 0, and no light source is provided; or the brightness value of the backlight panel is close to 0, the light is very weak, and a sufficient light source cannot be provided to the screen to normally display the interface. In other words, when the backlight panel is set to the first brightness value, the backlight panel cannot provide the screen with a light source for normal display. As a result, the screen cannot normally display the interface, and the user cannot view the interface. To the user, when the backlight brightness of the backlight panel is set to the first brightness value, the screen becomes dark. In this way, a screen-on interruption is implemented, where the screen may not immediately light up based on a triggering action performed by the user.

[0173] When the backlight brightness is the first brightness value, the display service may send an instruction to the display screen indicating that the backlight brightness is the first brightness value, so that the display screen controls the backlight brightness to be the first brightness value. In other words, the backlight panel may not provide a sufficient light source to the screen to normally display the interface. In another implementation, the window manager service may not notify the display service of the backlight brightness, so that the adjustment of the backlight brightness is delayed. In the screen off state, the backlight panel does not provide a light source to the screen. Therefore, the screen cannot display an image. If no instruction indicating the backlight brightness is received, the backlight panel may continue to remain in the screen off state. In this way, a screen on interruption may be implemented, and the screen may not be instantly lit up based on a wake-up action performed by the user.

[0174] It should be understood that the first brightness value is not particularly limited to this embodiment of the present application, and falls within the scope of protection of the present application on the premise that the backlight brightness is set to temporarily prevent the backlight panel from emitting light.

[0175] It should be further understood that setting the backlight brightness to a first brightness value to prevent the backlight panel from emitting light is a possible way to implement screen-on interruption. If there is another way to implement screen-on interruption, the other way may also be applied to the method provided in this embodiment of the present application, which is not limited in this embodiment of the present application.

[0176] Step 805: The framework layer obtains the screen orientation from the kernel layer.

[0177] It is described that the sensor service may calculate the screen orientation of the electronic device in real time in step 802. For example, the window manager service in the framework layer may send a request for screen orientation to the sensor service in the kernel layer based on the screen on request in step 803, as shown by (5) in FIG.

[0178] The sensor service may report the screen orientation obtained through real-time calculation to the resource manager service in the framework layer, as shown by (6) in FIG. 9. In a possible implementation, different screen orientations may be indicated by using different identifiers. For example, the four different screen orientations listed in Table 1 may have a one-to-one correspondence with the identifiers shown in Table 2. [Table 2] [Table 2]

[0179] The sensor service and the resource manager service may agree in advance on the correspondence between the identifiers and the orientations shown in Table 2. After the sensor service determines the screen orientation based on the calculation result, the sensor service may report the identifier corresponding to the determined screen orientation to the resource manager service based on the correspondence. The resource manager service may determine the screen orientation based on the correspondence and the received identifier.

[0180] It should be understood that the correspondence between identifiers and orientations shown in Table 2 is merely an example and is not intended to constitute any limitation to the present application. The specific manner in which the sensor service reports the screen orientation is not limited in the present application.

[0181] It may be understood that the screen orientation obtained by the resource manager service may be a screen orientation determined based on the latest calculation, or may be a screen orientation determined based on multiple latest calculations. The purpose of determining the screen orientation based on multiple latest calculations is to avoid the possibility that the screen orientation is determined incorrectly due to incorrect calculations caused by possible shaking of the electronic device during screen rotation.

[0182] For ease of explanation, the current screen orientation obtained by the resource manager service is recorded as the correct screen orientation in this specification. The electronic device may be rotated after the screen is off, which causes a change in the screen orientation. Alternatively, the electronic device may not be rotated, and the screen orientation remains unchanged. Therefore, the correct screen orientation may be the same as or different from the screen orientation used before the screen is off. This is not limited in this embodiment of the present application.

[0183] Step 806: The framework layer executes a layout load.

[0184] The resource manager service in the framework layer may obtain resources for layout loading from the app layer based on the correct screen orientation. For example, the framework layer may send the screen orientation obtained in step 806 to the app layer, and the app layer may determine the resources to be loaded based on the screen orientation to deliver the resources to the resource manager service. The resource manager service may perform layout loading based on the resources obtained from the app layer.

[0185] In a possible design, the app layer may locally pre-store resources corresponding to different screen orientations (e.g., resources for landscape displays are placed in a landscape dictionary and resources for portrait displays are placed in a portrait dictionary). The app layer may deliver the corresponding resources to the framework layer based on the screen orientation indicated by the framework layer.

[0186] In addition, the screens of different models of electronic products are different sizes, and therefore the app layer may further pre-store resources applicable to different models of electronic devices. The resources applicable to different models of electronic devices may be stored in a dictionary separately for different models. After the app layer determines the screen orientation, the app layer may further load resources based on the model of the electronic device. If the electronic device currently used by the user is not among the pre-stored electronic device models, the app layer may alternatively load resources based on default settings.

[0187] It can be appreciated that some electronic devices are provided with a lock screen and other electronic devices are not provided with a lock screen, and the resources loaded by the framework layer and the interface subsequently rendered by the framework layer change depending on whether a lock screen is provided or not.

[0188] If a lock screen is provided on the electronic device, the interface displayed by the electronic device after the screen is on may be the lock screen. Therefore, the resource manager service needs to load resources for laying out the lock screen. For example, the framework layer may interact with the lock screen application to obtain resources for laying out the lock screen and perform layout loading based on the obtained resources, as shown by (7) in FIG. 9. The resources for layout loading may include resources such as images (e.g., lock screen wallpaper) and text.

[0189] If an electronic device is not provided with a lock screen, the content of the interface displayed by the electronic device after screen on may be the same as the content of the interface displayed by the electronic device before screen off. However, screen orientation may change. Thus, the lock screen application may load a layout that matches the correct screen orientation based on the content of the interface displayed before screen off.

[0190] When the electronic device executes an application in the foreground before the screen is off, the electronic device may obtain resources for layout loading from the application. The resources for layout loading may include resources such as icons, text, and background in the application.

[0191] If the electronic device does not run an application in the foreground before screen off, the interface displayed before screen off is a desktop icon. The electronic device may obtain resources for layout loading from each desktop application. The resources for layout loading may include resources such as icons for each desktop application and desktop backgrounds in the application.

[0192] Step 807: The framework layer performs interface drawing to obtain the undisplayed interfaces.

[0193] The drawing service in the framework layer may perform interface drawing based on the layout obtained by performing a layout load to obtain an undisplayed interface.

[0194] It can be understood that the undisplayed interface is an interface suitable for the correct screen orientation or an interface that can adapt to the screen orientation. For example, in this embodiment, the interface is an interface adapted to the second orientation. In other words, when the user places the screen of the electronic device in the second orientation or views the screen at an angle adapted to the second orientation, the undisplayed interface can meet the requirements for normal viewing. For example, if the second orientation is a portrait upright orientation, the interface is also displayed in a portrait upright orientation, as shown in FIG. 6(a). For another example, if the second orientation is a landscape left orientation, the interface is also displayed in a landscape left orientation, as shown in FIG. 6(b).

[0195] Step 808: The framework layer sends the unexposed interface to the kernel layer.

[0196] After the drawing service at the framework layer draws the undisplayed interface, the drawing service may send the undisplayed interface to the display service at the kernel layer, as indicated by (9) in FIG. 9, so that the display service uses a screen to display the undisplayed interface.

[0197] Step 809: The framework layer disables screen-on-suspend.

[0198] In addition, after the drawing service in the framework layer completes the interface drawing, the drawing service may send a notification indicating that the interface drawing is completed to the window manager service, as shown by (10) in FIG. 9. The window manager service may send the backlight brightness (e.g., shown as a second brightness value) obtained through calculation to the display service in the kernel layer based on the completion of the interface drawing, as shown by (11) in FIG. The window manager service may calculate the backlight brightness based on the application started on the interface used before the screen off, so that the backlight brightness is adapted to the undisplayed interface. For example, the window manager service may set the backlight brightness based on the backlight brightness used before the screen off.

[0199] In this specification, the second brightness value may be greater than the first brightness value. The backlight panel may be enabled by using the second brightness value to emit light, thereby providing a sufficient light source for the screen. As a result, the screen can display the interface normally, and the user can view the interface on the screen. For the user, when the backlight brightness of the backlight panel is set to the second brightness value, the screen is lit up, and the user can view the interface on the screen normally.

[0200] In a possible design, the second brightness value is greater than zero.

[0201] After the window manager service sends the backlight brightness to the display service, the display service may further send an instruction indicating the backlight brightness to the screen to control the screen to adjust the brightness of the backlight panel, as shown by (12) in Figure 9. The backlight panel may emit light based on the new backlight brightness value, thus providing a light source for the display panel. In this way, the screen-on interruption can be disabled.

[0202] It should be understood that the operation of calculating the backlight brightness by the window manager service may be performed before step 809, for example after step 803, or after step 808, or even after screen off, which is not limited in this embodiment of the present application.

[0203] It should be further understood that step 809 may be performed after step 808. In this case, the display service may first obtain the undisplayed interface before the backlight brightness is adjusted. Then, the undisplayed interface can be presented directly after the screen is turned on.

[0204] Of course, step 809 may alternatively be performed before or simultaneously with step 808. In this case, the backlight brightness may be adjusted after the display service gets the undisplayed interface to avoid a splash screen caused when no content is displayed after the screen is turned on.

[0205] Step 810: Light up the screen and display any undisplayed interfaces.

[0206] The screen may adjust the brightness of the backlight panel according to the backlight brightness. The backlight panel emits light to provide a light source for the display panel. In this way, the screen is lit up, enters a screen-on state, and displays an undisplayed interface in the screen-on state. As a result, the user can view the screen normally.

[0207] Based on the above solution, after the screen is off, the electronic device may not temporarily light up the screen for display based on a screen activation action performed by the user. The electronic device may first obtain the screen orientation, and perform layout loading and interface drawing based on the screen orientation to obtain an interface that is adapted to the current screen orientation. The electronic device may light up the screen to display the interface after the interface drawing is completed. Thus, after the screen is on, the electronic device may alternatively directly display an interface that can be adapted to the screen orientation, and the user can directly perform an action.

[0208] In particular, in the case where the screen of the electronic device is rotated after screen off, when the electronic device detects a screen wake-up action performed by a user, the electronic device does not need to perform procedures for layout loading and interface drawing for the interface used before screen off, and procedures for screen rotation animation loading and playing, thereby saving corresponding time.

[0209] In addition, the sensor reports data in real time. Therefore, the sensor service may calculate the screen orientation in real time. When the electronic device detects a screen wake-up action performed by a user, the electronic device may directly obtain the screen orientation and does not need to spend extra time in calculating the screen orientation. Therefore, the time for calculating the screen orientation is also saved. Therefore, the waiting time is greatly reduced and the user experience is greatly improved.

[0210] Even if the screen of the electronic device is not rotated after the screen is off, the sensor performs collection and reporting in real time, and the sensor service calculates the screen orientation in real time. As a result, the electronic device can obtain the screen orientation quickly to load the layout and draw the interface based on the correct screen orientation. Therefore, the electronic device can still light up the screen for display in a very short time, and no large delay is caused.

[0211] In another implementation, the electronic device may not collect data and calculate the screen orientation in real time. For example, with the development of sensor technology, when the sensor has a fast response to data collection and reporting instructions, the electronic device may alternatively use the sensor with a fast response to collect and report data. For specific procedures, please refer to the following description with reference to FIG. 10.

[0212] 10 is another schematic flowchart of an interface display method 1000 according to an embodiment of the present application. As shown in FIG. 10, the method 1000 may include steps 1001 to 1009. The following describes the steps in the method 1000 in detail.

[0213] Step 1001: If the screen orientation of the electronic device is in the first orientation, enter screen off.

[0214] Step 1002: When the screen orientation of the electronic device is switched to a second orientation, a screen wake-up action performed by a user on the electronic device is detected, and the kernel layer sends a screen-on request to the framework layer in response to the screen wake-up action performed by the user.

[0215] Step 1003: The framework layer performs a screen-on pause.

[0216] It should be understood that for the specific processes of steps 1001 to 1003, please refer to the above related descriptions of steps 801, 803, and 804 in method 800. For the sake of brevity, details will not be described again in this specification.

[0217] Step 1004: The framework layer calculates the screen orientation based on the data reported by the sensors.

[0218] In one implementation, a window manager service in the framework layer may send a data acquisition request to a sensor service in the kernel layer to acquire data from a sensor through a sensor service. Based on the request of the window manager service, the sensor service acquires data from the sensor and reports the data to the window manager service. The window manager service may calculate the screen orientation by itself based on the data reported by the sensor.

[0219] The specific method of calculating the screen orientation by the window manager service may be the same as the above specific method of calculating the screen orientation by the sensor service, which is not limited in this embodiment of the present application.

[0220] In addition, the above specific procedure for the window service management to obtain the data collected from the sensor is merely an example, which is not limited in this embodiment of the present application.

[0221] In this embodiment, a sensor with a fast response is used, and it is estimated that data collection and reporting, and screen orientation calculation can be completed within 10 ms. Therefore, step 802 in method 800 does not need to be performed intermittently, where in step 802, the sensor collects and reports data in real time, and the sensor service continues to calculate screen orientation in the background. As a result, power consumption can be reduced.

[0222] Step 1005: The framework layer executes a layout load.

[0223] Step 1006: The framework layer performs interface drawing to obtain the undisplayed interfaces.

[0224] Step 1007: The framework layer sends the unexposed interface to the kernel layer.

[0225] Step 1008: The framework layer disables screen-on-suspend.

[0226] Step 1009: Light up the screen and display any undisplayed interfaces.

[0227] It should be understood that for the specific process of Steps 1005 to 1009, please refer to the above related description of Steps 806 to 810 in the method 800. For the sake of brevity, the details will not be described again in this specification.

[0228] Based on the above solution, after the screen is off, the electronic device may not temporarily light up the screen for display based on a screen activation action performed by the user. The electronic device may first obtain the screen orientation, and perform layout loading and interface drawing based on the screen orientation to obtain an interface that is adapted to the current screen orientation. The electronic device may light up the screen to display the interface after the interface drawing is completed. Thus, after the screen is on, the electronic device may alternatively directly display an interface that can be adapted to the screen orientation, and the user can directly perform an action.

[0229] In particular, in the case where the screen of the electronic device is rotated after screen off, when the electronic device detects a screen wake-up action performed by a user, the electronic device does not need to perform procedures for layout loading and interface drawing for the interface used before screen off, and procedures for screen rotation animation loading and playing, thereby saving corresponding time.

[0230] In addition, the sensor can collect and report data in a short time. Therefore, the sensor does not need to collect data in real time in the background, and the sensor service does not need to calculate the screen orientation in real time in the background. As a result, the power consumption can be greatly reduced. Moreover, since the sensor responds quickly, the framework layer can obtain the screen orientation in a very short time, and no large delay is caused for the screen on. Therefore, the user can perform operations after the screen on, the waiting time is greatly reduced, and the user experience is greatly improved.

[0231] Even if the screen of the electronic device is not rotated after the screen is off, the sensor responds quickly. As a result, the electronic device can quickly obtain the screen orientation to load the layout and draw the interface based on the correct screen orientation. Therefore, the electronic device can still light up the screen for display in a very short time and no significant delay is caused.

[0232] It should be understood that the sequence numbers of the processes in the above embodiments do not mean the order of execution. The order of execution of the processes should be determined based on the functions and internal logic of the processes, and should not be interpreted as any limitation on the implementation process of the embodiments of the present application. For example, step 805 and step 804 in method 800 may be performed simultaneously, and step 1003 and step 1004 in method 1000 may also be performed simultaneously.

[0233] It should be understood that the steps of the aforementioned method can be completed by using hardware integrated logic circuits in a processor or by using instructions in the form of software. The steps of the method disclosed with reference to the embodiments of the present application may be directly executed by a hardware processor, or may be executed by using a combination of hardware and software modules in a processor. The software modules may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads information in the memory and completes the steps in the aforementioned method in combination with the hardware of the processor. In order to avoid repetition, the details are not described again in this specification.

[0234] The present application further provides an electronic device. The electronic device may include a memory and a processor. The memory may be configured to store a computer program. The processor may be configured to call the computer program in the memory, so that the electronic device executes the method in any one of the embodiments shown in FIG. 8 or the embodiments shown in FIG. 10.

[0235] The present application further provides a computer program product. The computer program product includes a computer program (which may also be referred to as code or instructions). When the computer program is executed, the electronic device is enabled to perform the method in any one of the embodiments shown in FIG. 8 or the embodiments shown in FIG. 10.

[0236] The present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program (which may also be referred to as code or instructions). When the computer program is executed, the electronic device is enabled to perform the method in any one of the embodiments shown in FIG. 8 or the embodiments shown in FIG. 10.

[0237] It should be understood that the processor in the embodiments of the present application may be an integrated circuit chip and have signal processing functions. During implementation, the steps in the embodiments of the above-mentioned method may be implemented by using hardware integrated logic circuits in the processor or by using instructions in the form of software. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processor may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The steps of the methods disclosed with reference to the embodiments of the present application may be directly executed by a hardware decoding processor, or may be executed by using a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads information in the memory and completes the steps in the above-mentioned method in combination with the hardware of the processor.

[0238] It may be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM) and is used as an external cache. By way of example and not limitation, many types of RAM may be used, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus random access memory (direct rambus RAM, DR RAM). It should be noted that memory in the systems and methods described herein includes, but is not limited to, these and any other suitable types of memory.

[0239] As used herein, terms such as "unit" and "module" may be used to indicate a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution.

[0240] Those skilled in the art may recognize that the illustrative logical blocks and steps described with reference to the embodiments disclosed herein may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of the present application. In some embodiments provided in the present application, it should be understood that the disclosed apparatus, device, and method may be implemented in other ways. For example, the described apparatus embodiment is merely an example. For example, the division into multiple units is merely a logical division of functions, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some functions may be ignored or not performed. In addition, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the devices or units may be implemented in electronic, mechanical, or other form.

[0241] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, located in one location or distributed over multiple network units. Some or all of the units may be selected based on the actual requirements for achieving the objectives of the solution of the embodiments.

[0242] In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist physically alone, or more than two units may be integrated into one unit.

[0243] In the above-mentioned embodiments, all or some of the functions of the functional units may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When the computer program instructions (programs) are loaded and executed on a computer, the procedures or functions of the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio wave, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or may be a data storage device, such as a server or a data center, that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., DVDs), semiconductor media (e.g., solid-state drives (SSDs)), etc.

[0244] When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be essentially implemented in the form of a software product, or the part that contributes to the prior art may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for instructing a computer device (which may be a personal computer, a server, a network device, etc.) to execute all or some of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0245] The above description is merely a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any modifications or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in this application shall be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims. [Other possible items] [Item 1] performing a screen-on interrupt in response to a screen wake-up action performed by a user on the electronic device to prevent the screen from lighting up; Rendering an interface that adapts to the screen orientation; and Disabling screen-on interruption for the screen and displaying the interface based on the screen orientation. An interface display method comprising: [Item 2] Prior to the step of performing a screen-on suspend in response to a screen wake-up action performed by a user on the electronic device, the method further comprises: entering screen off when the screen orientation of the electronic device is in a first orientation; 2. The method of claim 1, further comprising: [Item 3] The step of entering screen off when the screen orientation of the electronic device is in a first orientation comprises: detecting a screen-off action performed by the user on the electronic device when the screen orientation of the electronic device is in the first orientation; and entering screen-off in response to the screen-off action performed by the user on the electronic device. 3. The method according to item 2, comprising the steps of: [Item 4] The method comprises: detecting a screen wake-up action performed by the user on the electronic device when the screen orientation of the electronic device switches to a second orientation; 4. The method according to item 2 or 3, further comprising: [Item 5] Prior to the step of rendering an interface adapted to a screen orientation, the method further comprises: Obtaining the screen orientation of the electronic device The method according to any one of items 1 to 4, further comprising: [Item 6] The step of obtaining the screen orientation of the electronic device comprises: collecting data in real time via a sensor; and Calculating the screen orientation based on the collected data. 6. The method according to item 5, comprising the steps of: [Item 7] 7. The method of claim 6, wherein the sensor is a gravity sensor. [Item 8] The steps of performing a screen-on pause on the screen include: setting a backlight brightness of a backlight panel configured to provide a light source to the screen to a first brightness value such that the screen is darkened. The method according to any one of items 1 to 7, comprising: [Item 9] The step of disabling screen-on interruption of the screen comprises: setting the backlight brightness of the backlight panel to a second brightness value such that the screen is lit up. wherein the second brightness value is greater than the first brightness value. [Item 10] 1. An electronic device comprising: A memory configured to store a computer program; and A processor configured to call the computer program in the memory to enable the electronic device to execute the method according to any one of items 1 to 9. An electronic device comprising: [Item 11] A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, an electronic device is enabled to execute the method according to any one of items 1 to 9. [Item 12] A program product, wherein the program product comprises a computer program, the computer program being stored in a readable storage medium, at least one processor in a communication device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the communication device to perform the method according to any one of items 1 to 9.

Claims

1. A step of entering screen off when a screen orientation of an electronic device is in a first orientation; detecting a screen wake-up action performed by a user on the electronic device when the screen orientation of the electronic device switches to a second orientation while in a screen-off state; performing a screen-on pause in response to the screen wake-up action performed by the user on the electronic device to prevent the screen from lighting up; rendering an interface adapted to the second orientation; and Disabling the screen-on interruption of the screen and displaying the interface based on the second orientation. An interface display method comprising:

2. After the step of entering screen off, collecting data in real time via a sensor; and The interface display method of claim 1 , further comprising the step of calculating the screen orientation based on the collected data.

3. The interface display method of claim 2, wherein the steps of collecting data in real time via a sensor and calculating the screen orientation based on the collected data are performed continuously.

4. The step of entering screen off when the screen orientation of the electronic device is in a first orientation comprises: detecting a screen-off action performed by the user on the electronic device when the screen orientation of the electronic device is in the first orientation; and entering screen-off in response to the screen-off action performed by the user on the electronic device. The interface display method according to any one of claims 1 to 3, comprising:

5. Prior to the step of rendering an interface adapted to the second orientation, the interface display method further comprises: Obtaining the screen orientation of the electronic device The interface display method of any one of claims 1 to 4, further comprising:

6. The interface display method according to claim 2 or 3, wherein the sensor is a gravity sensor.

7. The step of performing a screen-on pause on the screen comprises: setting a backlight brightness of a backlight panel configured to provide a light source to the screen to a first brightness value such that the screen is darkened. The interface display method according to any one of claims 1 to 6, comprising:

8. The step of disabling screen-on interruption of the screen comprises: setting the backlight brightness of the backlight panel to a second brightness value so that the screen is lit up.

8. The interface display method of claim 7, wherein the second brightness value is greater than the first brightness value.

9. The interface display method of any one of claims 1 to 8, wherein the first orientation is a portrait orientation and the second orientation is a landscape orientation.

10. 1. An electronic device comprising: A memory configured to store a computer program; and A processor configured to call the computer program in the memory to enable the electronic device to execute the interface display method according to any one of claims 1 to 9. An electronic device comprising:

11. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, enables an electronic device to perform the interface display method according to any one of claims 1 to 9.

12. A computer program product for causing a communication device to carry out the interface display method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Reproducing device, setting switching method, and setting switching device

    JP2006313313A

  • Wearable terminal and display control method

    JP2017138956A

  • Method and handheld electronic device having a graphic user interface with efficient orientation sensor use

    US20100088532A1

  • Information processing apparatus

    WO2015114815A1