Always on display method, and electronic device

By implementing an intelligent screen-on display method in an external folding and folding screen mobile phone, using different display areas of the home screen and the back screen, intelligently displaying the screen-on interface according to the screen posture and user operations, solving the problem of only screen-on display on the home screen in the prior art, and improving user experience and power consumption management.

WO2025044104A1PCT designated stage expired Publication Date: 2025-03-06HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078781
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-29
Filing Date
2024-02-27
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

When the existing external folding screen mobile phone is in a folded state, it can only display the screen on the main screen, and cannot display the screen on the intelligent screen, which makes it inconvenient for users to view information such as time and date.

Method used

By implementing a screen-off display method in an electronic device, using different display areas of the home screen and the back screen, the screen-off interface is intelligently displayed on the home screen or the back screen according to the screen posture of the electronic device and the operation of the user, thereby realizing the intelligent screen-off display on the mobile phone with folding screen.

Benefits of technology

The intelligent display of the screen on the folding screen on the mobile phone is realized, which improves the convenience of users to view information such as time and date, and saves the bright screen power consumption generated by users to view information such as time and date.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078781_06032025_PF_FP_ABST
    Figure CN2024078781_06032025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are an always on display (AOD) method, and an electronic device. The electronic device comprises a display screen, the display screen comprising a main screen and a back screen, and the main screen and the back screen being two display areas of the same display screen. When the electronic device is folded, the main screen and the back screen face opposite directions; and when the electronic device is unfolded, the main screen and the back screen face a same direction, the display area being the whole display screen. The method comprises: at a first time point, in response to a screen-off operation, displaying an AOD interface on the main screen, wherein, before the first time point, the electronic device is in a folded state, the main screen faces upwards, and the main screen is on and displays a first interface; and at a second time point, in response to turning around the electronic device, displaying the AOD interface on the back screen, and turning off the AOD interface on the main screen, wherein, after the electronic device is turned around, the main screen faces downwards, the second time point being later than the first time point. The present application achieves smart always on display of outward-folding foldable screen mobile phones.
Need to check novelty before this filing date? Find Prior Art

Description

Screen-off display method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 29, 2023, with application number 202311101915.7 and application name “Screen-off Display Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of computers, and in particular to a screen-off display method and an electronic device. Background Art

[0003] The always on display (AOD) function allows an electronic device to display information such as time, date, and icons in a portion of the screen without illuminating the entire screen (i.e., while maintaining low power consumption). Taking a mobile phone as an example, as shown in Figure 1A, when the always on display function is enabled, the screen can display information such as time, date, and battery level in area 101, and icons and other content in area 102. This allows users to access information such as time and date even when the screen is off, saving power consumption that would otherwise be required to view information such as time and date.

[0004] However, for outward-folding foldable phones, as shown in Figure 1B, they can be in both unfolded and folded states. When in the folded state, the phone presents a display area on both the main screen and the back screen. When in the folded state, the phone currently only displays the screen off on the main screen, and cannot intelligently display the screen off.

[0005] Summary of the Invention

[0006] The present application provides a screen-off display method and electronic device, which can realize intelligent screen-off display on an outward-folding folding screen mobile phone.

[0007] In the first aspect, the present application provides a screen-off display method, which is applied to an electronic device, wherein the electronic device includes a display screen, the display screen includes a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen; the method includes: at a first time point, in response to a screen-off operation, displaying an AOD interface on the main screen; before the first time point, the electronic device is in a folded state, the main screen faces upward, the main screen is lit and displays the first interface; at a second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and the AOD interface is turned off on the main screen; after flipping the electronic device, the main screen faces downward; the second time point is later than the first time point.

[0008] Based on the method described in the first aspect, when the electronic device is in a folded state, at a first time point, in response to the user's screen-off operation, it is determined that the main screen is facing upward, and the AOD interface is displayed on the main screen; at a second time point, after the user flips the electronic device, it is determined that the main screen is facing downward (that is, the back screen is facing upward), and the AOD interface is displayed on the back screen, thereby realizing the intelligent screen-off display on the outward-folding folding screen mobile phone, while improving the convenience for users to view information such as time and date.

[0009] In one possible implementation, at a first time point, in response to a screen-off operation, displaying an AOD interface on the main screen includes: at the first time point, in response to the screen-off operation, obtaining a screen posture of the electronic device; and based on the screen posture being a folded state with the main screen facing upward, displaying the AOD interface on the main screen. This approach can improve the accuracy of displaying the AOD interface.

[0010] In one possible implementation, obtaining the screen posture of the electronic device includes: obtaining first information, the first information including an angle between the main screen and the back screen, and / or whether the electronic device is in a folded state; and determining the screen posture of the electronic device based on the first information. This approach can improve the accuracy of detecting the screen posture of the electronic device.

[0011] In one possible implementation, the method further includes: displaying an AOD interface on the display screen based on the screen being in the unfolded state. Based on this approach, the entire screen can be used for an off-screen display, presenting the user with more sophisticated interfaces and realizing intelligent off-screen display on an outward-folding screen mobile phone.

[0012] In one possible implementation, displaying the AOD interface on the main screen includes: setting a display mode to display on the main screen; and displaying the AOD interface on the main screen based on the set display mode. This approach can improve the accuracy of AOD display when switching screens on an electronic device and avoid power consumption caused by ineffective switching operations.

[0013] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the AOD interface is turned off on the main screen, the method further includes: in response to an incoming call event, displaying the incoming call interface on the main screen, and not displaying or turning off the AOD interface on the back screen. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0014] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the AOD interface is extinguished on the main screen, the method further includes: in response to a notification event, displaying a notification interface on the main screen, and not displaying or extinguishing the AOD interface on the back screen. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0015] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the AOD interface is turned off on the main screen, the method further includes: in response to an alarm event, displaying the alarm interface on the main screen, and not displaying or turning off the AOD interface on the back screen. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0016] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the main screen turns off the AOD interface, the method further includes: in response to reaching a time point for exiting the display of the AOD interface, not displaying or turning off the AOD interface on the back screen. Based on this approach, it is beneficial to save power consumption of the electronic device.

[0017] In one possible implementation, the method further includes: at a third time point, in response to a screen-off operation, displaying an AOD interface on the back screen; before the third time point, the electronic device is in a folded state, with the main screen facing downward, and the back screen illuminated and displaying a second interface; at a fourth time point, in response to flipping the electronic device, displaying the AOD interface on the main screen and extinguishing the AOD interface on the back screen; after flipping the electronic device, the main screen faces upward; the fourth time point is later than the third time point. Based on this approach, intelligent screen-off display is achieved on an outward-folding foldable screen mobile phone.

[0018] In one possible implementation, displaying the AOD interface on the back screen includes: setting a display mode to back screen display; and displaying the AOD interface on the back screen based on the set display mode. This approach can improve the accuracy of the electronic device's screen switching for AOD display and avoid power consumption caused by ineffective screen switching operations.

[0019] In one possible implementation, the method further includes: obtaining vertical acceleration of the electronic device when it is in a stationary state; if the vertical acceleration is in a downward direction, determining that the main screen is facing upward; and if the vertical acceleration is in an upward direction, determining that the main screen is facing downward. Based on this approach, the accuracy of determining the screen orientation of the electronic device can be improved.

[0020] In the second aspect, the present application provides a screen-off display device, which may be an electronic device, a device in an electronic device, or a device that can be used in combination with an electronic device; wherein, the screen-off display device may also be a chip system, and the screen-off display device may execute the method executed by the electronic device in the first aspect. The functions of the screen-off display device may be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more units corresponding to the above functions. The unit may be software and / or hardware. The operations and beneficial effects performed by the screen-off display device may refer to the methods and beneficial effects described in the first aspect above, and the repeated parts will not be repeated.

[0021] In a third aspect, the present application provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, wherein the computer program code comprises computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the screen-off display method in any possible implementation of the first aspect.

[0022] In a fourth aspect, the present application provides a screen-off display device, which includes a function or unit for executing any one of the methods in the first aspect.

[0023] In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions. When the program instructions are run on a screen-off display device, the screen-off display device executes the screen-off display method in any possible implementation of the first aspect above.

[0024] In a sixth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the screen-off display method in any possible implementation of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] FIG1A is a schematic diagram of an off-screen display interface provided in an embodiment of the present application;

[0026] FIG1B is a schematic diagram of an outward-folding foldable screen mobile phone in an unfolded state and a folded state provided by an embodiment of the present application;

[0027] FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0028] FIG3 is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0029] FIG4 is a coordinate diagram of a dual-screen (main screen and back screen) display solution provided in an embodiment of the present application;

[0030] FIG5 is a schematic flow chart of a method for displaying an off-screen display according to an embodiment of the present application;

[0031] FIG6 is a flow chart of another method for displaying an off-screen display according to an embodiment of the present application;

[0032] FIG7 is a schematic diagram of the angle between the main screen and the back screen and the screen posture provided by an embodiment of the present application;

[0033] FIG8A is a schematic diagram of a main screen off screen display interface provided by an embodiment of the present application;

[0034] FIG8B is a schematic diagram of a rear screen off display interface provided by an embodiment of the present application;

[0035] FIG9 is a flow chart of another method for displaying an off-screen image according to an embodiment of the present application;

[0036] FIG10 is a flow chart of another method for displaying an off-screen display according to an embodiment of the present application;

[0037] FIG11 is a flow chart of another method for displaying an off-screen display according to an embodiment of the present application;

[0038] FIG12 is a flow chart of another screen-off display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0041] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as time, date, text, icon, button, menu, tab, text box, dialog box, status bar, navigation bar, widget, etc. displayed on the display screen of an electronic device.

[0042] To facilitate understanding of the solutions provided by the embodiments of the present application, the following describes the relevant concepts involved in the embodiments of the present application:

[0043] 1. Always on display (AOD)

[0044] The always on display (AOD) function refers to the function of an electronic device displaying information such as time, date, and icons in a partial area of ​​the screen without lighting up the entire screen (that is, the electronic device maintains low power consumption), which is beneficial to saving the power consumption of the screen generated by the user to view the time, date and other information. Taking the electronic device as a mobile phone as an example, assuming that the mobile phone has turned on the screen off display function, when the user performs the screen off operation, the electronic device needs to display the AOD interface. Among them, there are three modes for displaying the AOD interface, namely always on display (which can be understood as always displaying the AOD interface), timed display (which can be understood as always displaying the AOD interface within a preset time period, for example, always displaying the AOD interface within 1 hour) and touch display (which can be understood as briefly displaying the AOD interface when the user touches the screen, for example, displaying the AOD interface for 5 seconds when the user touches the screen). The screen off operation can be a lock screen operation or a touch screen operation, which is not limited here. When the screen-off operation performed by the user is a lock screen operation, the mode of displaying the AOD interface can be either always-on display, timed display, or light-touch display, that is, all three modes are met; when the screen-off operation performed by the user is a light-touch operation, the mode of displaying the AOD interface can only be light-touch display.

[0045] As shown in FIG1A , the AOD interface can display time, date, battery level, and other information in area 101 of the screen, and can also display icons and other information in area 102. In this way, even when the phone's screen is off, the user can still obtain information such as time and date, which helps save power consumption when the screen is on to view information such as time and date.

[0046] 2. Outward folding screen

[0047] An outward-folding folding screen refers to a display screen that can be folded outward. Taking the electronic device as a mobile phone as an example, as shown in Figure 1B, the outward-folding folding screen mobile phone can include an unfolded state and a folded state. When the outward-folding folding screen mobile phone is in the folded state, the main screen and the back screen face opposite directions. It should be noted that on the outward-folding folding screen, the main screen and the back screen are different display areas of the same screen. When the outward-folding folding screen mobile phone is in the unfolded state, the entire screen faces the user, that is, the main screen and the back screen face the same direction, and the display area that the user can see is the entire screen, which can achieve a better visual effect. Among them, the so-called screen orientation refers to the direction facing the front of the display screen.

[0048] However, for the AOD function of an outward-folding folding screen mobile phone, if the screen is only displayed in one area, the user may need to turn the phone over in order to view information such as time and date, which causes certain inconvenience. For example, when the outward-folding folding screen mobile phone is in the folded state, the screen is only displayed on the main screen. If the phone is placed with the main screen facing down, the user needs to turn the phone over to view information such as time, which reduces the convenience of users viewing information such as time and date. If the screen is displayed in both areas, then when the outward-folding folding screen mobile phone is placed in the folded state, there will always be an area where the screen is invalid.

[0049] In order to realize the intelligent display of the screen off on the outward folding screen mobile phone and improve the convenience of users to view information such as time and date, the present application provides a screen off display method and electronic device. In a specific implementation, the above-mentioned screen off display method can be executed by an electronic device 100. Among them, the electronic device 100 can be an electronic device with an outward folding screen, such as an outward folding screen mobile phone, an outward folding screen tablet computer, an outward folding screen laptop computer, etc., but is not limited to this. Among them, the so-called outward folding screen here refers to a display screen that can be folded outward, and the display screen includes a main screen and a back screen.

[0050] The following describes the hardware structure of the electronic device 100. Please refer to Figure 2, which is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.

[0051] The electronic device 100 may include a processor 110, a charging management module 140, a power management module 141, a battery 142, and a display screen 194. Optionally, the electronic device 100 may further include an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, and a subscriber identification module (SIM) card interface 195. 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, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0052] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0053] The processor 110 may include one or more processing units. For example, the processor 110 may include 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, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

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

[0055] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or is reusing. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. The processor 110 calls the instructions or data stored in the memory, causing the electronic device 100 to execute the screen-off display method executed by the electronic device in the following method embodiment.

[0056] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0057] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 can also be set in the processor 110.

[0058] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0059] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1. Display screen 194 may be an outward-folding screen, i.e., a display screen that folds outward.

[0060] In addition, an operating system runs on top of the above components. For example, operating systems such as iOS and Android. The operating system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100. It should be noted that although the embodiment of the present application is described using the Android system as an example, its basic principles are also applicable to electronic devices with other operating systems.

[0061] Figure 3 is a block diagram of the software structure of the electronic device 100 in an embodiment of the present application. The software structure adopts a layered architecture, which divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In an embodiment of the present application, the operating system (taking the Android system, where the Android system runs on an AP as an example) can be divided into three layers, from top to bottom: the application layer (APP), the application framework layer (FWK), and the hardware abstraction layer (HAL).

[0062] Among them, the application layer can include a series of application packages. As shown in Figure 3, the application package can include AOD, call, music, video, short message and other applications. The application layer can also include system UI (systemUI), which is used to display the interface of the electronic device, such as displaying the screen off interface (including time, date, icons, etc.), displaying the screen on interface, displaying notification information, etc. Among them, the AOD application can monitor the screen posture of the device and display the AOD interface according to the screen posture, etc., which can realize the intelligent display of the screen off.

[0063] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 3, the application framework layer may include system services (SystemSever), etc. SystemSever may include the Device State Provider (Device State Provider), the Fold Screen Manager Service (Fold Screen Manager Service), the Power Manager Service (Power Manager Service), the Device Manager Service (Device Manager Service), etc.

[0064] SystemSever is responsible for starting and managing the entire application framework layer. Specifically, it is responsible for application startup process scheduling, process creation and management, window creation and management, etc.

[0065] The Device State Provider is a module in the System Server that provides screen state information, such as the expanded and folded states. Specifically, it obtains data from the hardware abstraction layer (HAL) such as the angle between the main and back screens and Hall effect sensor data (such as the magnetic field strength between the main and back screens). The device uses this data to determine the current screen state.

[0066] Fold Screen Manager Service is a module in SystemSever, which is used to manage the screen display of the outward-folding folding screen electronic device. It can realize the display of the user interface on the main screen, back screen or full screen according to the coordinates formulated by the dual-screen (i.e. main screen and back screen) display scheme. For example, the AOD interface can be displayed on the main screen of the outward-folding folding screen mobile phone, the AOD interface can also be displayed on the back screen of the outward-folding folding screen mobile phone, or the AOD interface can be displayed on the entire screen of the outward-folding folding screen mobile phone. Of course, the user interface can also be displayed on the bright screen of the main screen of the outward-folding folding screen mobile phone, etc., which is not limited here. Among them, the coordinates formulated by the dual-screen display scheme can refer to Figure 4. As shown in Figure 4, the total screen width of the outward-folding folding screen is w and the height is h. After the outward-folding folding screen is unfolded, it can be divided into three areas from left to right, namely the back screen, the central axis area and the main screen. Among them, when the back screen is displayed, the actual display area is [(0,0)–(w1,h)], (0,0) and (w1,h) are the coordinates of the diagonal points of the back screen display area (i.e., point A and point B); when the main screen is displayed, the actual display area is [(w-w2,0)–(w,h)], (w-w2,0) and (w,h) are the coordinates of the diagonal points of the main screen display area (i.e., point C and point D). When the external folding screen is in the unfolded state, all areas of the entire screen can be displayed; when the external folding screen is in the folded state, the back screen and the main screen can be displayed, and the central axis area is not displayed. When switching between the main screen and the back screen, the display area can be switched according to the above coordinates.

[0067] Power Manager Service is a module in SystemSever. It is one of the system services responsible for managing and coordinating device power management. Common functions include turning on the screen, turning off the screen, brightness adjustment, low power mode, keeping the CPU awake, etc., which will be coordinated and processed by Power Manager Service. For example, Power Manager Service can monitor changes in the screen's on and off states, thereby controlling the start and end of displaying the AOD interface. In an embodiment of the present application, the screen of the electronic device can be divided into an off state, a bright state, and a screen-off state; wherein, the off state (OFF state) indicates that the electronic device screen is off; the bright state (ON state) indicates that the electronic device screen is lit; the screen-off state (Doze state) indicates that the electronic device screen is dormant and in a low-power state. Changes in the on and off states can include the screen changing from the ON state to the OFF state, or from the ON state to the Doze state, or from the OFF state to the Doze state, or from the Doze state to the ON state, or from the OFF state to the ON state, and so on.

[0068] The Device Manager Service is a module within the System Server that provides information about the device's screen orientation. For example, whether a foldable phone's main screen faces up or down, the device's screen orientation is determined by obtaining data such as attitude angle and acceleration from the hardware abstraction layer.

[0069] The Hardware Abstraction Layer (HAL) is an interface layer between the operating system kernel and the hardware circuitry. Its purpose is to abstract the hardware. It hides the platform-specific hardware interface details and provides the operating system with a virtual hardware platform. As shown in Figure 3, the HAL can include sensor services, among others. The Sensor Service can provide information such as sensor data, attitude angle, and acceleration. For example, it can provide sensor data to the Device State Provider and attitude angle, acceleration, and other information to the Device Manager Service.

[0070] Based on the above software structure, the embodiment of the present application provides a flowchart of a method for displaying a screen off. As shown in FIG5 , the method for displaying a screen off includes the following steps S501 to S512. Among them:

[0071] S501: The AOD application registers a monitor with the power management service.

[0072] In an embodiment of the present application, in order to save the power consumption of the screen when the user checks the time, date and other information, the electronic device can turn on the AOD function. The AOD application can register for monitoring with the power management service in a static configuration manner. The so-called monitoring refers to a mechanism for monitoring the occurrence of an event and performing corresponding operations when the event occurs. Among them, the specific event monitored by the AOD application is whether the screen display state of the power management service changes to the Doze state or whether the screen display state of the power management service changes from the Doze state to the ON state.

[0073] S502 : In response to the screen display state changing to the Doze state, the power management service uses the callback function onDreamingStarted to notify the AOD application that the current screen display state has changed to the Doze state.

[0074] In an embodiment of the present application, the event that causes the screen display state to change to the Doze state may be a user's screen-off operation. The screen-off operation may be a user locking the electronic device, triggering the screen display state to change from the ON state to the Doze state; or a user touching the screen after the electronic device turns off the screen, triggering the screen display state to change from the OFF state to the Doze state, and so on. When the current screen display state changes to the Doze state, the AOD application needs to prepare to display the AOD interface, i.e., start executing the following steps S503 to S510.

[0075] S503: The AOD application calls the getDisplayMode function to obtain the screen posture of the electronic device from the device status provider.

[0076] In the embodiment of the present application, the AOD application needs to obtain the screen posture of the electronic device in real time, where the screen posture may include folded state, unfolded state, etc. When the screen posture is folded, steps S504 to S510 are executed; when the screen posture is unfolded, step S511 is executed.

[0077] In addition, the AOD application can call the registerDeviceListener function to listen to the device status provider. The specific event monitored is whether the screen posture determined by the device status provider has changed (such as the user folding an unfolded electronic device, or unfolding a folded electronic device). If the AOD application detects a change in the screen posture, steps S503 to S511 are re-executed. Based on this approach, the intelligence and accuracy of the screen-off display can be improved.

[0078] Optionally, when the Device State Provider determines the screen posture of the electronic device, the specific implementation may include steps s11 and s12. Steps s11 and s12 have no time sequence relationship with steps S501 and S502, and the electronic device may always execute steps s11 and s12.

[0079] s11. The sensor service of the hardware abstraction layer provides sensor data to the device status provider. Correspondingly, the device status provider receives the sensor data.

[0080] The sensor data may be first information, which includes posture sensor data (such as the angle between the main screen and the back screen), Hall sensor data (such as whether the electronic device is in a folded state), etc.

[0081] s12. The device status provider detects the screen posture of the electronic device based on the sensor data provided by the sensor service.

[0082] In a specific implementation, when the sensor data is posture sensor data, the screen posture of the electronic device can be determined based on the angle between the main screen and the back screen; when the sensor data is Hall sensor data, the screen posture of the electronic device can be determined based on whether the electronic device is in a folded state; when the sensor data is posture sensor data and Hall sensor data, the screen posture of the electronic device can be determined based on a combination of the angle between the main screen and the back screen and whether the electronic device is in a folded state; these are not limited here. Based on this approach, the accuracy of detecting the screen posture of the electronic device can be improved.

[0083] S504: When the screen posture is in the folded state, the AOD application calls the registerDeviceListener function to listen to the device management service.

[0084] The specific monitored event is whether the screen orientation of the electronic device has changed (eg, the user flips the electronic device over) as determined by the device management service. If the AOD application detects that the screen orientation has changed, steps S505 to S509 are executed again.

[0085] S505: After the sensor service determines the screen orientation of the electronic device, it sends the screen orientation of the electronic device to the AOD application. Correspondingly, the AOD application obtains the screen orientation of the electronic device.

[0086] In the embodiment of the present application, the screen orientation of the electronic device can be the orientation of the main screen, for example, the main screen facing up or the main screen facing down. Alternatively, the screen orientation of the electronic device can also be the orientation of the back screen, for example, the back screen facing up or the back screen facing down. In the embodiment of the present application, the main screen facing up can also be understood as the back screen facing down, and the main screen facing down can also be understood as the back screen facing up.

[0087] Optionally, the specific implementation of the sensor service determining the screen orientation of the electronic device includes steps s21 and s22. Steps s21 and s22 have no time sequence relationship with steps S504 and S505, and the electronic device can always execute steps s21 and s22.

[0088] s21. The sensor service of the hardware abstraction layer sends attitude angle, acceleration and other data to the device management service. Correspondingly, the device management service receives the attitude angle, acceleration and other data.

[0089] s22. The device management service determines the screen orientation of the electronic device based on attitude angle, acceleration and other data.

[0090] In an embodiment of the present application, when the electronic device is in a stationary state, the vertical acceleration of the electronic device is obtained using an acceleration sensor. The screen orientation of the electronic device can be determined based on the direction of the vertical acceleration. Specifically, if the direction of the vertical acceleration is downward (for example, the vertical acceleration is 9.8), the main screen of the electronic device is considered to be facing upward; if the direction of the vertical acceleration is upward (for example, the vertical acceleration is -9.8), the main screen of the electronic device is considered to be facing downward.

[0091] Optionally, the attitude angle of the electronic device is less than a preset value. The attitude angle refers to the angle between the display plane of the electronic device and the horizontal plane. The preset value can be 8 degrees or any other preset value, which is not limited here. Based on this approach, the display plane of the electronic device can be kept as level as possible with the horizontal plane within a certain error range, which helps improve the accuracy of determining the screen orientation of the electronic device.

[0092] It should be noted that the transmission and reception between modules are actually implemented through functions. If the main screen of the electronic device is facing upward, steps S506 and S507 are executed; if the main screen of the electronic device is facing downward, steps S509 and S510 are executed.

[0093] S506: If the main screen of the electronic device is facing upward, the AOD application determines whether the current display area is a non-main screen display.

[0094] In an embodiment of the present application, if the current display area is not a non-main screen display (i.e., the display area is on the main screen), the AOD application displays the AOD interface without resetting the display area; if the current display area is a non-main screen display (i.e., the display area is on the back screen or the entire screen), step S507 is executed.

[0095] S507: The AOD application displays the AOD interface and calls the setDisplayMode function to set the folding screen management service to display the AOD interface on the main screen. Accordingly, the folding screen management service displays the AOD interface on the main screen.

[0096] S508: If the main screen of the electronic device is facing downward, the AOD application determines whether the current display area is a non-back screen display.

[0097] In an embodiment of the present application, if the current display area is not a non-back screen display (i.e., the display area is on the back screen), the AOD application displays the AOD interface without resetting the display area; if the current display area is a non-back screen display (i.e., the display area is on the main screen or the entire screen), step S509 is executed.

[0098] S509: The AOD application displays the AOD interface and calls the setDisplayMode function to set the folding screen management service to display the AOD interface on the back screen. Accordingly, the folding screen management service displays the AOD interface on the back screen.

[0099] S510: When the screen posture is the unfolded state, the AOD application displays the AOD interface and calls the setDisplayMode function to set the folding screen management service to display the AOD interface on the entire screen. Accordingly, the folding screen management service displays the AOD interface on the entire screen.

[0100] In an embodiment of the present application, when the screen posture is in the unfolded state, the user can see the entire screen. The display screen does not need to be divided into the main screen and the back screen. There is no need to judge the screen orientation of the electronic device, and the AOD interface can be displayed directly on the entire screen.

[0101] Optionally, the screen-off display method may further include the following steps S511 and S512.

[0102] S511 : In response to the event of exiting the display of the AOD interface, the power management service uses the callback function onDreamingStopped to notify the AOD application to exit the display of the AOD interface.

[0103] S512: When the display area is on the back screen, the AOD application exits the display of the AOD interface and calls the setDisplayMode function to set the folding screen management service to display the target interface on the main screen. Accordingly, the folding screen management service displays the target interface on the main screen.

[0104] In an embodiment of the present application, the event for exiting the display of the AOD interface may be an event of receiving an incoming call, an alarm event, a notification event, and the like. At this time, the target interface will be displayed on the main screen, and the screen display state will change from the Doze state to the ON state. If the display area is on the back screen at this time, the folding screen management service will also need to be set to display the target interface on the main screen; if the display area is on the main screen at this time, the target interface will be displayed directly on the main screen without resetting the display area. Based on this method, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user. The target interface here is the interface corresponding to the event of exiting the display of the AOD interface. For example, the target interface corresponding to the incoming call event is the incoming call interface, the target interface corresponding to the alarm event is the alarm interface, and the target interface corresponding to the notification event is the notification interface, which is not limited here.

[0105] The event of exiting the display of the AOD interface may also be reaching the time point for exiting the display of the AOD interface. When the time point for exiting the display of the AOD interface is reached, the back screen exits the display of the AOD interface. For example, assuming that the mode for displaying the AOD interface is touch display, that is, after the user touches the screen, the AOD interface is displayed for 5 seconds (the 5 seconds here is just an example and can be other preset values) and then the AOD interface is automatically exited. The electronic device then displays the AOD interface on the back screen and turns off the AOD interface on the main screen. When the end time point of the 5-second display of the AOD interface on the back screen is reached, the AOD interface is turned off on the back screen. If the electronic device flips over within 5 seconds, the timer may be re-timed or not. For example, assuming that the electronic device flips over at the 2nd second within 5 seconds of displaying the AOD interface, if the electronic device re-times 5 seconds, then when the end time point of the re-timed 5 seconds (i.e., the end time point of the 7th second) is reached, the back screen turns off the AOD interface; if the electronic device does not re-time 5 seconds, then when the end time point of the continued 3-second count (i.e., the end time point of the 5th second) is reached, the back screen turns off the AOD interface. Based on this approach, the power consumption of electronic devices can be saved.

[0106] 1. Implementation method for displaying the AOD interface at any time point.

[0107] Based on the above, a method for displaying a screen off provided by an embodiment of the present application is further described in detail below. As shown in Figure 6, the method for displaying a screen off includes the following steps S601 to S604. The execution subject of the method shown in Figure 6 can be the electronic device mentioned above. Alternatively, the execution subject of the method shown in Figure 6 can be a chip in an electronic device, which is not limited in the embodiment of the present application. Figure 6 takes an electronic device as an example to illustrate the execution subject of the method. Among them, the electronic device includes a display screen, and the display screen includes a main screen and a back screen. The main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen.

[0108] S601: At a first time point, the electronic device obtains a screen posture of the electronic device in response to a screen-off operation.

[0109] In the embodiment of the present application, the first time point is an arbitrary time point. In order to save the power consumption of the screen when the user checks the time, date and other information, the electronic device can turn on the AOD function. The AOD application can register a monitor with the Power Manager Service in a static configuration manner. At the first time point, after the user performs the screen-off operation on the electronic device, the electronic device needs to detect the current screen posture. Among them, the screen posture here may include a folded state, an unfolded state, etc. The screen-off operation here can be a screen-locking operation of the electronic device by the user. The screen-off operation can trigger the screen display state to change from the ON state to the Doze state; the screen-off operation can also be an operation in which the user touches the screen after the electronic device turns off the screen. At this time, the screen-off operation can trigger the screen display state to change from the OFF state to the Doze state, which is not limited here. When the screen-off operation performed by the user is a screen-locking operation, the mode of displaying the AOD interface can be either a constantly on display, a timed display, or a touch display, that is, all three modes are met; when the screen-off operation performed by the user is a touch screen operation, the mode of displaying the AOD interface can only be a touch display. It should be noted that when the AOD application detects a change in the screen posture (such as the user folds an unfolded electronic device, or unfolds a folded electronic device), it is necessary to re-acquire the screen posture and subsequently re-execute step S602 or S603.

[0110] In the software structure of the electronic device, the application layer includes the AOD application; the application framework layer includes the SystemSever, which includes the Device State Provider, Fold Screen Manager Service, Power Manager Service, and Device Manager Service; and the hardware abstraction layer includes the Sensor Service. After the AOD function is enabled, the specific implementation process of obtaining the screen posture of the electronic device can refer to the above steps S501 to S503, namely:

[0111] The electronic device can enable the AOD application, and the AOD application registers a monitor with the Power Manager Service. The specific event monitored by the AOD application is whether the screen display state of the Power Manager Service changes to the Doze state or whether the screen display state of the Power Manager Service changes from the Doze state to the ON state; when the Power Manager Service responds to the screen display state changing to the Doze state, it uses the callback function onDreamingStarted to notify the AOD application that the current screen display state has changed to the Doze state; the AOD application calls the getDisplayMode function to obtain the screen posture of the electronic device from the device status provider.

[0112] In one possible implementation, when an electronic device obtains the screen posture of the electronic device, the specific implementation method may be: the electronic device obtains first information, the first information including the angle between the main screen and the back screen, and / or whether the electronic device is in a folded state; and the electronic device determines the screen posture of the electronic device based on the first information. The following describes in detail three situations in which the electronic device determines the screen posture of the electronic device based on the first information.

[0113] Case 1: The first information includes the angle between the main screen and the back screen.

[0114] In a specific implementation, a posture sensor in an electronic device can detect the angle between the main screen and the back screen, and the screen posture of the electronic device can be determined based on the angle between the main screen and the back screen. The so-called angle between the main screen and the back screen refers to the angle between the plane where the front of the main screen is located and the plane where the front of the back screen is located, where the front of the main screen is the plane where the display area of ​​the main screen is located, and the front of the back screen is the plane where the display area of ​​the back screen is located.

[0115] The specific implementation process can refer to the above steps s11 and s12, that is, the Sensor Service in the hardware abstraction layer can provide posture sensor data (that is, the angle between the main screen and the back screen) to the Device State Provider, and the Device State Provider determines the screen posture of the electronic device based on the posture sensor data provided by the Sensor Service.

[0116] As shown in (a) of Figure 7, when the outward folding screen of the electronic device is unfolding, when the angle between the main screen and the back screen is 0 to 60 degrees, the screen posture of the electronic device is determined to be in a folded state; when the angle between the main screen and the back screen is 63 to 153 degrees, the screen posture of the electronic device is determined to be in a stand state; when the angle between the main screen and the back screen is 153 to 180 degrees, the screen posture of the electronic device is determined to be in an unfolded state.

[0117] As shown in (b) of Figure 7, when the outward folding screen of the electronic device is closing, when the angle between the main screen and the back screen is 150 to 180 degrees, the screen posture of the electronic device is determined to be in the unfolded state; when the angle between the main screen and the back screen is 57 to 147 degrees, the screen posture of the electronic device is determined to be in the stand state; when the angle between the main screen and the back screen is 0 to 57 degrees, the screen posture of the electronic device is determined to be in the folded state.

[0118] It should be noted that when an electronic device's foldable screen is unfolded, there is a 3-degree hysteresis when the folded state transitions to the stand state. This means that when the angle between the main screen and the rear screen is 60-63 degrees, the screen is still considered to be in the folded state. When the stand state transitions to the unfolded state, if the angle between the main screen and the rear screen is 153 degrees, the screen is considered to be in the stand state. Similarly, when an electronic device's foldable screen is closed, there is a 3-degree hysteresis when the unfolded state transitions to the stand state. This means that when the angle between the main screen and the rear screen is 147-150 degrees, the screen is still considered to be in the unfolded state. When the stand state transitions to the folded state, if the angle between the main screen and the rear screen is 57 degrees, the screen is considered to be in the stand state. This means that a 3-degree hysteresis ensures a certain error rate when transitioning from the folded state to the stand state, or vice versa. Using the previous screen posture as the screen posture within the hysteresis angle helps improve the accuracy of detecting the screen posture of the electronic device. During the transition from the stand to the folded state, or vice versa, when the angle between the main screen and the back screen is at a boundary value, the previous screen posture is used as the current screen posture, which helps improve the accuracy of detecting the screen posture of the electronic device. Of course, the degree of hysteresis can be any predefined value; 3 degrees is used here as an example and is not limited here.

[0119] Case 2: The first information includes whether the electronic device is in a folded state.

[0120] In a specific implementation, the Hall sensor in the electronic device can detect the magnetic field strength between the main screen and the back screen, and based on the magnetic field strength between the main screen and the back screen, it can be determined whether the electronic device is in a folded (closed) state. For example, when the magnetic field strength between the main screen and the back screen is greater than or equal to a preset magnetic field strength value, the electronic device is considered to be in a folded (closed) state, and the screen state of the electronic device can be determined to be in a folded state; when the magnetic field strength between the main screen and the back screen is less than the preset magnetic field strength value, the electronic device is considered not to be in a folded (closed) state, and the screen state of the electronic device can be determined to be in an unfolded state or a stand state.

[0121] The specific implementation process can refer to the above steps s11 and s12, that is, the Sensor Service in the hardware abstraction layer can provide the Hall sensor data (that is, whether the electronic device is in a folded state) to the Device State Provider, and the Device State Provider determines the screen posture of the electronic device based on the Hall sensor data provided by the Sensor Service.

[0122] Case 3: The first information includes the angle between the main screen and the back screen and whether the electronic device is in a folded state.

[0123] In a specific implementation, the electronic device can determine the screen posture of the electronic device based on the angle between the main screen and the back screen (i.e., the posture sensor data) and whether the electronic device is in a folded state (i.e., the Hall sensor data). In other words, the screen posture of the electronic device can be determined by combining the above-mentioned cases 1 and 2. Based on this approach, the accuracy of detecting the screen posture of the electronic device can be further improved.

[0124] For example, suppose that the electronic device determines that the screen posture of the electronic device is in the folded state based on the angle between the main screen and the back screen (i.e., the posture sensor data). In this case, it is necessary to further determine the screen posture of the electronic device based on the Hall sensor data. If the Hall sensor data indicates that the electronic device is in the folded state, then the determined screen posture is also in the folded state, and finally it can be determined that the screen posture of the electronic device is in the folded state; if the Hall sensor data indicates that the electronic device is not in the folded state, then it is necessary to re-acquire the data detected by the posture sensor and / or Hall sensor to determine the screen posture of the electronic device.

[0125] S602: When the screen posture is in the folded state, the electronic device determines the screen orientation of the electronic device.

[0126] In an embodiment of the present application, when the electronic device determines that the screen posture is in the folded state, it can further determine the screen orientation of the electronic device based on posture angle, acceleration and other data, so as to subsequently display the AOD interface according to the screen orientation.

[0127] The screen orientation here can be the orientation of the main screen, such as the main screen facing up or the main screen facing down. Optionally, the screen orientation of the electronic device can also be the orientation of the back screen, such as the back screen facing up or the back screen facing down. In the embodiment of the present application, the main screen facing up can also be understood as the back screen facing down, and the main screen facing down can also be understood as the back screen facing up, which will not be further described later.

[0128] The specific implementation process can refer to the above step S505, that is, when the screen posture is in the folded state, the AOD application calls the registerDeviceListener function to listen to the Device Manager Service. The specific event monitored is whether the screen orientation of the electronic device determined by the Device Manager Service has changed (such as the user flipping the electronic device). If the AOD application detects that the screen posture has changed, the screen orientation of the electronic device is re-determined; after the Device Manager Service determines the screen orientation of the electronic device, it sends the screen orientation of the electronic device to the AOD application. Accordingly, the AOD application can obtain the screen orientation of the electronic device.

[0129] In one possible implementation, when an electronic device determines the screen orientation of the electronic device, the specific implementation may be: the electronic device obtains the vertical acceleration of the electronic device when it is in a stationary state; if the direction of the vertical acceleration is downward, the electronic device determines that the main screen of the electronic device is facing upward; if the direction of the vertical acceleration is upward, the electronic device determines that the main screen of the electronic device is facing downward.

[0130] In a specific implementation, when the electronic device is in a stationary state, the acceleration sensor is used to obtain the vertical acceleration of the electronic device at this time. The screen orientation of the electronic device can be determined based on the direction of the vertical acceleration. Specifically, if the direction of the vertical acceleration is downward (for example, the vertical acceleration is 9.8), the main screen of the electronic device is considered to be facing upward; if the direction of the vertical acceleration is upward (for example, the vertical acceleration is -9.8), the main screen of the electronic device is considered to be facing downward.

[0131] Optionally, when the electronic device obtains the vertical acceleration when the electronic device is in a stationary state, specifically, the electronic device obtains the vertical acceleration when the electronic device is in a stationary state and the attitude angle is less than a preset value. The attitude angle refers to the angle between the display plane of the electronic device and the horizontal plane. The preset value can be 8 degrees or any preset value, which is not limited here. Based on this method, the display plane of the electronic device can be kept as level as possible with the horizontal plane within a certain error range, which is conducive to improving the accuracy of determining the screen orientation of the electronic device.

[0132] S603: When the screen of the electronic device is facing the main screen upward, the AOD interface is displayed on the main screen.

[0133] S604: When the screen of the electronic device is facing the main screen downward, the AOD interface is displayed on the back screen.

[0134] For steps S602 to S604, it can also be understood that the electronic device displays the AOD interface on the main screen based on the screen posture being in a folded state and the main screen facing upwards; the electronic device displays the AOD interface on the back screen based on the screen posture being in a folded state and the main screen facing downwards. In other words, when the screen posture of the electronic device is in a folded state and the main screen is facing upwards, indicating that the user is seeing the main screen at this time, the electronic device can automatically display the AOD interface on the main screen (as shown in Figure 8A); when the main screen of the electronic device is facing downwards, indicating that the user is seeing the back screen at this time, the electronic device can automatically display the AOD interface on the back screen (as shown in Figure 8B). Based on this method, the intelligent screen-off display on the outward-folding folding screen mobile phone can be realized, and the convenience of users viewing information such as time and date can be improved.

[0135] In one possible implementation, the specific implementation method of the electronic device displaying the AOD interface on the main screen can refer to the above steps S506 to S509, that is, if the main screen of the electronic device is facing upward, the AOD application determines whether the current display area is a non-main screen display; if the current display area is not a non-main screen display (that is, the display area is on the main screen), the AOD application displays the AOD interface, and there is no need to reset the display area. If the current display area is a non-main screen display (that is, the display area is on the back screen or the entire screen), the AOD application displays the AOD interface and calls the setDisplayMode function to set the Fold Screen Manager Service to display the AOD interface on the main screen; accordingly, the Fold Screen Manager Service displays the AOD interface on the main screen; it can be understood that if the current display area is not a non-main screen display, the electronic device needs to set the display mode to main screen display; based on the set display mode, the AOD interface is displayed on the main screen.

[0136] If the main screen of the electronic device is facing down, the AOD application determines whether the current display area is a non-back screen display; if the current display area is not a non-back screen display (that is, the display area is on the back screen), the AOD application displays the AOD interface, and there is no need to reset the display area. If the current display area is a non-back screen display (that is, the display area is on the main screen or the entire screen), the AOD application displays the AOD interface, and calls the setDisplayMode function to set the Fold Screen Manager Service to display the AOD interface on the back screen; accordingly, the Fold Screen Manager Service displays the AOD interface on the back screen; it can be understood that if the current display area is a non-main screen display, the electronic device needs to set the display mode to back screen display; based on the set display mode, the AOD interface is displayed on the back screen. Based on this method, the accuracy of the electronic device's screen switching for AOD display can be improved, and power consumption waste caused by invalid screen switching operations can be avoided.

[0137] In one possible implementation, when the electronic device displays the AOD interface, if it detects an event of exiting the display of the AOD interface, it will exit the display of the AOD interface (i.e., not displaying the AOD interface or extinguishing the AOD interface). The event of exiting the AOD interface can be an incoming call event, an alarm event, a notification event, etc., or it can be the time point of exiting the AOD interface. Different types of events of exiting the AOD interface are described in detail below.

[0138] Type 1: The event for exiting the AOD interface is an incoming call event.

[0139] Optionally, after the electronic device displays the AOD interface on the main screen, the method further includes: displaying the incoming call interface on the main screen in response to an incoming call event. For example, if the electronic device receives an incoming call while the AOD interface is displayed on the main screen, the incoming call interface will be directly displayed on the main screen. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0140] Optionally, after the electronic device displays the AOD interface on the back screen, the method further includes: in response to an incoming call event, displaying the incoming call interface on the main screen, and exiting the display of the AOD interface on the back screen. For example, when the electronic device receives an incoming call while the AOD interface is displayed on the back screen, the incoming call interface will be displayed on the main screen, and the back screen will exit the display of the AOD interface. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0141] Type 2: The event of exiting the AOD interface is an alarm event.

[0142] Optionally, after the electronic device displays the AOD interface on the main screen, the method further includes: displaying an alarm interface on the main screen in response to an alarm event. For example, when the electronic device displays the AOD interface on the main screen and the alarm set by the electronic device rings, the alarm interface will be directly displayed on the main screen. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0143] Optionally, after the electronic device displays the AOD interface on the back screen, the method further includes: in response to an alarm event, displaying the alarm interface on the main screen, and exiting the display of the AOD interface on the back screen. For example, when the electronic device displays the AOD interface on the back screen, the alarm set by the electronic device rings. At this time, the incoming call interface will be displayed on the main screen, and the back screen will exit the display of the AOD interface. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0144] Type 3: The event of exiting the AOD interface is a notification event.

[0145] Optionally, after the electronic device displays the AOD interface on the main screen, the method further includes: displaying a notification interface on the main screen in response to a notification event. For example, when the electronic device displays the AOD interface on the main screen, the electronic device receives a notification message, and at this time, the notification interface will be directly displayed on the main screen. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0146] Optionally, after the electronic device displays the AOD interface on the back screen, the method further includes: in response to a notification event, displaying the notification interface on the main screen, and exiting the display of the AOD interface on the back screen. For example, when the electronic device displays the AOD interface on the back screen, the electronic device receives a notification message, then the notification interface will be displayed on the main screen, and the back screen will exit the display of the AOD interface. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0147] For the above three types, the specific implementation process can refer to the above steps S511 and S512. That is, the Power Manager Service responds to the event of exiting the display of the AOD interface and uses the callback function onDreamingStopped to notify the AOD application to exit the display of the AOD interface. When the display area is on the back screen, the AOD application exits the display of the AOD interface and calls the setDisplayMode function to set the Fold Screen Manager Service to display the target interface on the main screen. Accordingly, the Fold Screen Manager Service displays the target interface on the main screen.

[0148] Type 4: The event of exiting the AOD interface is the time point of exiting the AOD interface.

[0149] In a specific implementation, when the electronic device displays the AOD interface on the back screen, in response to reaching the time point for exiting the AOD interface, the back screen exits displaying the AOD interface (that is, the back screen does not display or turns off the AOD interface). For example, assuming that the mode for displaying the AOD interface is touch display, that is, after the user touches the screen, the AOD interface is displayed for 5 seconds (the 5 seconds here is just an example, and it can be other preset values) and then automatically exits the AOD interface. At this time, the electronic device displays the AOD interface on the back screen and turns off the AOD interface on the main screen. When the end time point of the 5-second display of the AOD interface on the back screen is reached, the AOD interface is turned off on the back screen. If the electronic device flips over within 5 seconds, the timer may be reset or not. For example, if the electronic device displays the AOD interface for 5 seconds and a flip occurs at the 2nd second, if the electronic device re-times the 5-second display, the back screen will turn off the AOD interface when the end time of the re-timed 5 seconds (i.e., the end time of the 7th second) is reached; if the electronic device does not re-time the 5-second display, the back screen will turn off the AOD interface when the end time of the continued 3-second display (i.e., the end time of the 5th second) is reached. Based on this approach, the power consumption of the electronic device can be saved.

[0150] Taking the example of a mobile phone with an outward-folding screen as the electronic device, when the electronic device is in a folded state, the display areas displaying the AOD interface at different time points (such as the first time point and the second time point) may be the same or different, and different scenarios may be described in the form of a table. As shown in Table 1, assuming that the screen posture of the mobile phone is in a folded state, the second time point is later than the first time point. If the mobile phone displays the AOD interface on the main screen at the first time point, and the mobile phone still displays the AOD interface on the main screen at the second time point, it means that the mobile phone has not been flipped over; if the mobile phone displays the AOD interface on the main screen at the first time point, and the mobile phone displays the AOD interface on the back screen at the second time point, it means that the mobile phone has been flipped over; if the mobile phone displays the AOD interface on the main screen at the first time point, and the mobile phone does not display the AOD interface at the second time point, it means that the screen display has exited or the mobile phone is on.

[0151] If the phone displays the AOD interface on the back screen at the first time point and displays the AOD interface on the main screen at the second time point, it means that the phone is flipped over or an event such as an incoming call, notification, alarm, etc. occurs to exit the display of the AOD interface; if the phone displays the AOD interface on the back screen at the first time point and the phone still displays the AOD interface on the back screen at the second time point, it means that the phone has not been flipped over; if the phone displays the AOD interface on the back screen at the first time point and the phone does not display the AOD interface at the second time point, it means that the screen off display has exited or the phone screen is on.

[0152] If the phone does not display the AOD interface at the first time point, and the phone displays the AOD interface on the main screen or the back screen at the second time point, it means that the screen off display has exited or the phone is on; if the phone does not display the AOD interface at the first time point, and the phone still does not display the AOD interface at the second time point, it means that the phone has always kept the screen on.

[0153] It should be noted that for the scenario of flipping the phone, the specific implementation process can refer to the description in Figures 9 and 10 below, which will not be repeated here. For the scenario where an event such as an incoming call, notification, alarm, etc. exits the display of the AOD interface, the specific implementation process can refer to the description in Figures 11 and 12 below, which will not be repeated here.

[0154] Table 1

[0155] In addition, if the trigger method for the screen off display is click display (such as the user clicks the screen to display the AOD interface after locking the screen), there is no need to detect the screen orientation of the electronic device. The AOD display can be directly performed according to the position where the user clicks the screen. That is, if the user's click operation occurs on the main screen, the AOD interface will be displayed on the main screen. If the user's click operation occurs on the back screen, the AOD interface will be displayed on the back screen.

[0156] The following description focuses on the case where the screen posture is in the unfolded state. In one possible implementation, the method further includes: displaying the AOD interface on the display screen based on the screen posture being in the unfolded state. In other words, when the screen posture is in the unfolded state, the user can see the entire screen. At this time, the display screen does not need to be divided into a main screen and a back screen, and there is no need to determine the screen orientation of the electronic device. The AOD interface is directly displayed on the entire screen.

[0157] The specific implementation process can refer to the above step S510, that is, when the screen posture is the unfolded state, the AOD application displays the AOD interface and calls the setDisplayMode function to set the Fold Screen Manager Service to display the AOD interface on the entire screen. Accordingly, the Fold Screen Manager Service displays the AOD interface on the entire screen.

[0158] It can be seen that based on the method described in this application, the electronic device obtains the screen posture of the electronic device in response to the screen-off operation at the first time point; when the screen posture is in a folded state, the electronic device further determines the screen orientation of the electronic device. When the main screen of the electronic device is facing upward, the electronic device displays the AOD interface on the main screen; when the main screen of the electronic device is facing downward, the electronic device displays the AOD interface on the back screen, thereby realizing the intelligent screen-off display on the outward-folding folding screen mobile phone, and at the same time improving the convenience for users to view information such as time and date.

[0159] 2. Implementation method of displaying the AOD interface in the flip scenario of the electronic device.

[0160] 1. The electronic device displays the AOD interface on the main screen at a first time point, and after the electronic device is flipped over, displays the AOD interface on the rear screen at a second time point, wherein the second time point is later than the first time point.

[0161] Based on the above, another method for displaying the screen off provided by an embodiment of the present application is further described in detail below. As shown in Figure 9, the method for displaying the screen off includes the following steps S901 and S902. The execution subject of the method shown in Figure 9 can be the electronic device mentioned above. Alternatively, the execution subject of the method shown in Figure 9 can be a chip in an electronic device, which is not limited in the embodiment of the present application. Figure 9 is used as an example to illustrate an electronic device as the execution subject of the method. Among them, the electronic device includes a display screen, and the display screen includes a main screen and a back screen. The main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen.

[0162] S901. At a first time point, the electronic device displays an AOD interface on the main screen in response to a screen-off operation.

[0163] In an embodiment of the present application, before a first time point, the electronic device is in a folded state, the main screen is facing upward, the main screen is on and displays the first interface. The first time point is any time point, and the first interface is any user interface. The user performs a screen-off operation at the first time point. At this time, the electronic device responds to the user's screen-off operation. According to the method for displaying the AOD interface described in FIG6 above, it can be determined that the screen posture of the electronic device at this time is a folded state, and the main screen is facing upward, that is, the AOD interface needs to be displayed on the main screen.

[0164] In one possible implementation, when the electronic device displays the AOD interface on the main screen in response to the user's screen-off operation at a first time point, the specific implementation method may be: at the first time point, in response to the user's screen-off operation, obtaining the screen posture of the electronic device; based on the screen posture being a folded state with the main screen facing upward, displaying the AOD interface on the main screen. For details, please refer to the description of steps S601 to S603 above, which will not be repeated here.

[0165] In one possible implementation, when the electronic device displays the AOD interface on the main screen, the specific implementation method may be: based on the main screen facing upwards and the non-main screen displaying the first interface, the AOD interface is set to be displayed on the main screen. That is, before the first time point, the first interface is displayed on the main screen, and the current display area is the main screen (that is, the current display area is a non-main screen display), so it is necessary to reset the display area, that is, the AOD application displays the AOD interface, and calls the setDisplayMode function to set the Fold Screen Manager Service to display the AOD interface on the main screen. Accordingly, the Fold Screen Manager Service displays the AOD interface on the main screen. It can be understood that if the current display area is not a non-main screen display, the electronic device needs to set the display mode to main screen display; based on the set display mode, the AOD interface is displayed on the main screen.

[0166] S902: At a second time point, in response to turning over the electronic device, the electronic device displays the AOD interface on the back screen and turns off the AOD interface on the main screen.

[0167] In an embodiment of the present application, the screen posture at this time is still in a folded state, and the user flips the electronic device at a second time point. The second time point is later than the first time point. After the user flips the electronic device, the main screen faces downward, that is, the screen orientation of the electronic device has changed. Since the AOD application calls the registerDeviceListener function to listen to the Device Manager Service, when the AOD application listens to a change in the screen posture, the electronic device will re-determine the screen orientation of the electronic device, that is, the electronic device will re-execute step S602 in Figure 6 above, and determine that the main screen is facing downward at this time. According to the above step S604, it can be determined that the AOD interface needs to be displayed on the back screen, and the AOD interface previously displayed on the main screen will be turned off.

[0168] It can be seen that based on the method described in this application, when the electronic device is in the folded state, it responds to the screen-off operation at the first time point, determines that the main screen is facing upward, and displays the AOD interface on the main screen; at the second time point, after flipping the electronic device, it determines that the main screen is facing downward, and displays the AOD interface on the back screen, thereby realizing the intelligent screen-off display on the outward-folding folding screen mobile phone, and at the same time improving the convenience for users to view information such as time and date.

[0169] 2. The electronic device displays the AOD interface on the back screen at a third time point, and after the electronic device is flipped over, the AOD interface is displayed on the main screen at a fourth time point, wherein the fourth time point is later than the third time point.

[0170] Based on the above, another method for displaying the screen off provided by an embodiment of the present application is further described in detail below. As shown in Figure 10, the method for displaying the screen off includes the following steps S1001 and S1002. The execution subject of the method shown in Figure 10 can be the electronic device mentioned above. Alternatively, the execution subject of the method shown in Figure 10 can be a chip in an electronic device, which is not limited in the embodiment of the present application. Figure 10 is illustrated by taking an electronic device as an example of the execution subject of the method. Among them, the electronic device includes a display screen, and the display screen includes a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen.

[0171] S1001. At a third time point, the electronic device displays an AOD interface on the back screen in response to a screen-off operation.

[0172] In an embodiment of the present application, before the third time point, the electronic device is in a folded state, the back screen is facing upward, the back screen is lit and the second interface is displayed. The third time point is any time point, and the second interface is any user interface. The user performs a screen-off operation at the third time point. At this time, the electronic device responds to the user's screen-off operation. According to the method for displaying the AOD interface described in Figure 6 above, it can be determined that the screen posture of the electronic device at this time is a folded state, and the back screen is facing upward, that is, the AOD interface needs to be displayed on the back screen.

[0173] In one possible implementation, when the electronic device displays the AOD interface on the back screen at the third time point in response to the user's screen-off operation, the specific implementation method may be: at the third time point, in response to the user's screen-off operation, obtaining the screen posture of the electronic device; based on the screen posture being a folded state with the main screen facing downward, displaying the AOD interface on the back screen. For details, please refer to the description of steps S601, S602, and S604 above, which will not be repeated here.

[0174] In one possible implementation, when the electronic device displays the AOD interface on the back screen, the specific implementation method may be: based on the main screen facing down and the second interface being displayed on the non-back screen, the AOD interface is set to be displayed on the back screen. That is, before the third time point, the second interface is displayed on the back screen, and the current display area is the back screen (that is, the current display area is not displayed on the back screen), so it is necessary to reset the display area, that is, the AOD application displays the AOD interface, and calls the setDisplayMode function to set the Fold Screen Manager Service to display the AOD interface on the back screen. Accordingly, the Fold Screen Manager Service displays the AOD interface on the back screen. It can be understood that if the current display area is not displayed on the main screen, the electronic device needs to set the display mode to back screen display; based on the set display mode, the AOD interface is displayed on the back screen.

[0175] S1002: At a fourth time point, in response to flipping the electronic device, the electronic device displays the AOD interface on the main screen and turns off the AOD interface on the back screen.

[0176] In an embodiment of the present application, the screen posture at this time is still in a folded state, and the user flips the electronic device at a fourth time point. The fourth time point is later than the third time point. After the user flips the electronic device, the main screen faces upward, that is, the screen orientation of the electronic device has changed. Since the AOD application calls the registerDeviceListener function to listen to the Device Manager Service, when the AOD application listens to a change in the screen posture, the electronic device will re-determine the screen orientation of the electronic device, that is, the electronic device will re-execute step S602 in Figure 6 above. At this time, it is determined that the main screen is facing upward. According to the above step S603, it can be determined that the AOD interface needs to be displayed on the main screen, and the AOD interface previously displayed on the back screen will be turned off.

[0177] It can be seen that based on the method described in this application, when the electronic device is in the folded state, in response to the screen-off operation at the third time point, it is determined that the back screen is facing upward, and the AOD interface is displayed on the back screen; at the fourth time point, after flipping the electronic device, it is determined that the main screen is facing upward, and the AOD interface is displayed on the main screen, thereby realizing the intelligent screen-off display on the outward-folding folding screen mobile phone, and at the same time improving the convenience for users to view information such as time and date.

[0178] 3. Implementation method of displaying the AOD interface in scenarios where events such as incoming calls, notifications, and alarms that exit the display of the AOD interface occur.

[0179] 1. After the electronic device is flipped over and the AOD interface is displayed on the back screen, an event such as an incoming call, notification, or alarm is received to exit the AOD interface.

[0180] Based on the above, another method for displaying the screen off provided by an embodiment of the present application is further described in detail below. As shown in Figure 11, the method for displaying the screen off includes the following steps S1101 to S1103. The method execution subject shown in Figure 11 can be the electronic device mentioned above. Alternatively, the method execution subject shown in Figure 11 can be a chip in an electronic device, which is not limited in the embodiment of the present application. Figure 11 takes an electronic device as an example to illustrate the execution subject of the method. Among them, the electronic device includes a display screen, and the display screen includes a main screen and a back screen. The main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen. In an embodiment of the present application, the event for exiting the display of the AOD interface can be an incoming call event, a notification event, an alarm event, etc. The following is an example of the event for exiting the display of the AOD interface being an incoming call event.

[0181] S1101. At a first time point, the electronic device displays an AOD interface on the main screen in response to a screen-off operation.

[0182] S1102 : At a second time point, in response to flipping the electronic device, the electronic device displays the AOD interface on the back screen and turns off the AOD interface on the main screen.

[0183] The specific implementation of steps S1101 and S1102 may refer to the above steps S901 and S902.

[0184] S1103: In response to the incoming call event, the electronic device displays an incoming call interface on the main screen, and does not display the AOD interface on the back screen.

[0185] In a specific implementation, the electronic device displays the AOD interface on the back screen at this time. When an incoming call event is received, the Power Manager Service responds to the incoming call event and uses the callback function onDreamingStopped to notify the AOD application to exit the display of the AOD interface; the AOD application exits the display of the AOD interface on the back screen (that is, the AOD application does not display or turns off the AOD interface on the back screen). Since the display area is on the back screen at this time, the AOD application also needs to call the setDisplayMode function to set the Fold Screen Manager Service to display the incoming call interface on the main screen. Accordingly, the Fold Screen Manager Service displays the incoming call interface on the main screen. Based on this method, the large display area of ​​the main screen can be used to present more and more sophisticated interfaces to users.

[0186] In addition, the event of exiting the display of the AOD interface may also be that the time point of exiting the AOD interface is reached, and the back screen exits the display of the AOD interface (ie, the back screen does not display or turns off the AOD interface).

[0187] For example, assuming that the mode for displaying the AOD interface is touch display, that is, after the user touches the screen, the AOD interface is displayed for 5 seconds (the 5 seconds here is just an example, and it can be other preset values) and then the AOD interface is automatically exited. The electronic device now displays the AOD interface on the back screen and turns off the AOD interface on the main screen. When the end time point of the 5-second display of the AOD interface on the back screen is reached, the AOD interface is turned off on the back screen. If the electronic device flips over within 5 seconds, it can be re-timed or not. For example, assuming that the electronic device displays the AOD interface for 5 seconds and flips over at the 2nd second, if the electronic device re-times 5 seconds, when the end time point of the re-timed 5 seconds (i.e., the end time point of the 7th second) is reached, the AOD interface is turned off on the back screen; if the electronic device does not re-time for 5 seconds, when the end time point of the continued timing for 3 seconds (i.e., the end time point of the 5th second) is reached, the AOD interface is turned off on the back screen. Based on this approach, the power consumption of the electronic device can be saved, and the intelligent screen display on the folding screen mobile phone can be realized.

[0188] 2. When the electronic device is not flipped over and the AOD interface is displayed on the back screen, an event such as an incoming call, notification, or alarm is received to exit the AOD interface.

[0189] Based on the above, another method for displaying the screen off provided by an embodiment of the present application is further described in detail below. As shown in Figure 12, the method for displaying the screen off includes the following steps S1201 and S1202. The method execution body shown in Figure 12 can be the electronic device mentioned above. Alternatively, the method execution body shown in Figure 12 can be a chip in an electronic device, which is not limited in the embodiment of the present application. Figure 12 is illustrated by taking an electronic device as the execution body of the method as an example. Among them, the electronic device includes a display screen, and the display screen includes a main screen and a back screen. The main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen. In an embodiment of the present application, the event for exiting the display of the AOD interface can be an incoming call event, a notification event, an alarm event, etc. The following is illustrated by taking the event for exiting the display of the AOD interface as an example of an incoming call event.

[0190] S1201. At a third time point, the electronic device displays an AOD interface on the back screen in response to a screen-off operation.

[0191] S1202: In response to an incoming call event, the electronic device displays an incoming call interface on the main screen and does not display an AOD interface on the back screen.

[0192] The specific implementation of step S1201 can refer to the specific implementation of step S1001 above, and is not limited here. The specific implementation of step S1202 can refer to the specific implementation of step S1103 above, and is not limited here. Based on this approach, the large display area of ​​the main screen can be utilized to present more and more sophisticated interfaces to the user.

[0193] An embodiment of the present application provides a screen-off display device, which can be an electronic device, a device in an electronic device, or a device that can be used in conjunction with an electronic device. The electronic device includes a display screen, which includes a main screen and a back screen, and the main screen and the back screen are two display areas of the same display screen; when the electronic device is folded, the main screen and the back screen face opposite directions; when the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen. The screen-off display device may include a processing unit and a display unit. Among them:

[0194] The processing unit is configured to respond to the screen-off operation at a first time point; the display unit is configured to display the AOD interface on the main screen; before the first time point, the electronic device is in a folded state, the main screen is facing upward, the main screen is illuminated and displays the first interface;

[0195] The processing unit is used to respond to flipping the electronic device at a second time point; the display unit is used to display the AOD interface on the back screen and turn off the AOD interface on the main screen; after flipping the electronic device, the main screen faces downward; the second time point is later than the first time point.

[0196] In one possible implementation, the processing unit, at a first point in time, responds to a screen-off operation, and the display unit, when displaying the AOD interface on the main screen, is specifically used to: at a first point in time, respond to the screen-off operation, obtain the screen posture of the electronic device; and the display unit, based on the screen posture being in a folded state and the main screen facing upward, display the AOD interface on the main screen.

[0197] In one possible implementation, the processing unit, when obtaining the screen posture of the electronic device, is specifically used to: obtain first information, the first information including the angle between the main screen and the back screen, and / or whether the electronic device is in a folded state; and determine the screen posture of the electronic device based on the first information.

[0198] In a possible implementation, the display unit is further configured to: display an AOD interface on the display screen based on the screen posture being in the unfolded state.

[0199] In a possible implementation, when the AOD interface is displayed on the main screen, the display unit is specifically configured to: set the display mode to main screen display; and display the AOD interface on the main screen based on the set display mode.

[0200] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the AOD interface is turned off on the main screen, the display unit is also used to: in response to an incoming call event, display the incoming call interface on the main screen, and not display or turn off the AOD interface on the back screen.

[0201] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the main screen turns off the AOD interface, the display unit is also used to: in response to a notification event, display the notification interface on the main screen, and not display or turn off the AOD interface on the back screen.

[0202] In one possible implementation, at the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the AOD interface is turned off on the main screen, the display unit is also used to: in response to an alarm event, display the alarm interface on the main screen, and not display or turn off the AOD interface on the back screen.

[0203] In one possible implementation, the processing unit is further used to: at a third time point, in response to a screen-off operation, the display unit is further used to: display the AOD interface on the back screen; before the third time point, the electronic device is in a folded state, the main screen faces downward, the back screen is lit and displays the second interface; the processing unit is further used to: at a fourth time point, in response to flipping the electronic device, the display unit is further used to: display the AOD interface on the main screen and turn off the AOD interface on the back screen; after flipping the electronic device, the main screen faces upward; the fourth time point is later than the third time point.

[0204] In a possible implementation, when the AOD interface is displayed on the back screen, the display unit is specifically configured to: set the display mode to back screen display; and display the AOD interface on the back screen based on the set display mode.

[0205] In one possible implementation, the processing unit is further used to: obtain the vertical acceleration of the electronic device when it is in a stationary state; if the direction of the vertical acceleration is downward, determine that the main screen is facing upward; if the direction of the vertical acceleration is upward, determine that the main screen is facing downward.

[0206] The present application also provides a chip, which includes a processor and an interface, and the processor and the interface are coupled; the interface is used to receive or output signals, and the processor is used to execute code instructions to implement the functions of any of the above method embodiments.

[0207] The present application also provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed on a screen-off display device, the functions of any of the above-mentioned method embodiments are implemented.

[0208] The present application also provides a computer program product, which, when executed on a computer, enables the computer to implement the functions of any of the above method embodiments.

[0209] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, 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. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. 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 one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0210] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A screen-off display method, characterized in that: Applied to an electronic device, the electronic device comprises a display screen, the display screen comprises a main screen and a back screen, the main screen and the back screen are two display areas of the same display screen; When the electronic device is folded, the main screen and the back screen face opposite directions; When the electronic device is unfolded, the main screen and the back screen face the same direction, and the display area is the entire display screen; The method comprises: At a first time point, in response to a screen-off operation, displaying an AOD interface on the main screen; Before the first time point, the electronic device is in a folded state, the main screen faces upward, and the main screen is lit and displays a first interface; At a second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and the AOD interface is turned off on the main screen; after flipping the electronic device, the main screen faces downward; the second time point is later than the first time point.

2. The method according to claim 1, characterized in that The step of displaying the AOD interface on the main screen in response to the screen-off operation at the first time point includes: At a first time point, in response to a screen-off operation, acquiring a screen posture of the electronic device; Based on the screen posture being in a folded state and the main screen facing upward, an AOD interface is displayed on the main screen.

3. The method according to claim 2, characterized in that The obtaining of the screen posture of the electronic device comprises: Acquiring first information, where the first information includes an angle between the main screen and the back screen, and / or whether the electronic device is in a folded state; The screen posture of the electronic device is determined based on the first information.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: Based on the screen posture being in the unfolded state, an AOD interface is displayed on the display screen.

5. The method according to any one of claims 1 to 4, characterized in that Displaying the AOD interface on the main screen includes: Set the display mode to main screen display; Based on the set display mode, the AOD interface is displayed on the main screen.

6. The method according to any one of claims 1 to 5, characterized in that At the second time point, in response to flipping the electronic device, the AOD interface is displayed on the back screen, and after the main screen turns off the AOD interface, the method further includes: In response to an incoming call event, an incoming call interface is displayed on the main screen, and the AOD interface is not displayed on the back screen.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: At a third time point, in response to the screen-off operation, the AOD interface is displayed on the back screen; before the third time point, The electronic device is in a folded state, the main screen faces downward, and the back screen is lit and displays the second interface; At a fourth time point, in response to flipping the electronic device, the AOD interface is displayed on the main screen, and the AOD interface is turned off on the back screen; after flipping the electronic device, the main screen faces upward; the fourth time point is later than the third time point.

8. The method according to claim 7, characterized in that Displaying the AOD interface on the back screen includes: Set the display mode to back screen display; Based on the set display mode, the AOD interface is displayed on the back screen.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Acquiring the vertical acceleration of the electronic device when it is in a stationary state; If the direction of the vertical acceleration is downward, determining that the main screen is facing upward; If the direction of the vertical acceleration is upward, it is determined that the main screen is facing downward.

10. An electronic device, characterized in that: include: One or more processors, one or more memories; wherein the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Screen-off display method and electronic equipment

    CN119576258A

  • A method for controlling screen display and electronic equipment

    CN109840061A

  • Screen-off display method and electronic equipment

    CN110012153A

  • Display method and electronic equipment

    CN114840280A

  • Screen-off display method of electronic equipment

    CN114980286A