Screen-off display method and electronic equipment

By implementing an intelligent screen-on display method in the outer folding folding screen mobile phone, the different display areas of the main screen and the back screen are used to solve the problem that the outer folding folding screen mobile phone cannot intelligently display the screen-on display in the folding state, and improve the convenience of user information viewing and power consumption utilization efficiency.

CN119576258APending Publication Date: 2025-03-07HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311101915.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The external folding and folding screen mobile phone cannot intelligently display the screen when folded, resulting in inconvenience to users to view information such as time and date.

Method used

By implementing a screen-off display method in an electronic device, the display area is intelligently switched according to the screen posture and user operation to realize the intelligent display of screen-off display using different display areas of the main screen and the back 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 avoids the power consumption and waste caused by invalid screen-opening screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576258A_ABST
    Figure CN119576258A_ABST
Patent Text Reader

Abstract

The invention discloses a screen-off display method and electronic equipment, the electronic equipment comprises a display screen, the display screen comprises 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 equipment is folded, the main screen and the back screen face opposite directions; when the electronic equipment is unfolded, the main screen and the back screen face the same direction, and the display area is the whole display screen; the method comprises the steps of displaying an AOD interface on a main screen in response to a screen turn-off operation at a first time point; before the first time point, the electronic equipment is in a folded state, a main screen faces upwards, the main screen is turned on, and a first interface is displayed; displaying the AOD interface on the back screen and extinguishing the AOD interface on the main screen in response to overturning of the electronic equipment at a second time point; after the electronic equipment is overturned, the main screen faces downwards; the second time point is later than the first time point. According to the method and the device, the intellectualization of screen-off display on the outward folding screen mobile phone can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] The always on display (AOD) function refers to the function of an electronic device to display information such as time, date, and icons in a part of the screen without lighting up the entire screen (i.e., the electronic device maintains low power consumption). Figure 1A As shown, after the mobile phone turns on the screen-off display function, when the mobile phone is off, the time, date, power level and other contents can be displayed in area 101 of the screen, and icons and other contents can also be displayed in area 102. In this way, when the mobile phone is off, the user can also obtain information such as time and date, which is conducive to saving the power consumption of the screen when the user is on to view information such as time and date.

[0003] But for outward folding screen mobile phones, Figure 1B As shown, the external folding screen mobile phone can include an unfolded state and a folded state. When the external folding screen mobile phone is in the folded state, the mobile phone presents a display area on the main screen and the back screen respectively. When the external folding screen mobile phone is in the folded state, the screen is currently only displayed on the main screen, and the screen cannot be displayed intelligently. Summary of the invention

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

[0005] 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, and the display screen includes a main screen and a back screen, wherein 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.

[0006] 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 of users in viewing information such as time and date.

[0007] In a possible implementation, at a first time point, in response to a screen-off operation, an AOD interface is displayed on a main screen, including: at a first time point, in response to the screen-off operation, obtaining a screen posture of the electronic device; based on the screen posture being a folded state and the main screen facing upward, displaying the AOD interface on the main screen. Based on this approach, the accuracy of displaying the AOD interface can be improved.

[0008] In a possible implementation, obtaining the screen posture of the electronic device includes: obtaining 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 determining the screen posture of the electronic device based on the first information. Based on this method, the accuracy of detecting the screen posture of the electronic device can be improved.

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

[0010] In a possible implementation, displaying the AOD interface on the main screen includes: setting the display mode to the main screen display; and displaying the AOD interface on the main screen based on the set display mode. Based on this method, the accuracy of the electronic device switching screen for AOD display can be improved, and power consumption waste caused by invalid screen switching operations can be avoided.

[0011] In a 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, the incoming call interface is displayed on the main screen, and the AOD interface is not displayed or turned off on the back screen. Based on this method, the large display area of ​​the main screen can be used to present more and more sophisticated interfaces to the user.

[0012] In a 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 a notification event, displaying a notification 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 used to present more and more sophisticated interfaces to the user.

[0013] In a 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, the alarm interface is displayed on the main screen, and the AOD interface is not displayed or turned off on the back screen. Based on this method, the large display area of ​​the main screen can be used to present more and more sophisticated interfaces to the user.

[0014] In a 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 the time point of exiting the display of the AOD interface, the back screen does not display or turns off the AOD interface. Based on this approach, it is beneficial to save power consumption of the electronic device.

[0015] In a possible implementation, the method further includes: 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, 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. Based on this method, the intelligent screen-off display on the outward folding screen mobile phone is realized.

[0016] In a possible implementation, displaying the AOD interface on the back screen includes: setting the display mode to back screen display; and displaying the AOD interface on the back screen based on the set display mode. Based on this method, the accuracy of the electronic device switching screen for AOD display can be improved, and power consumption waste caused by invalid screen switching operations can be avoided.

[0017] In a possible implementation, the method further includes: obtaining a 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, determining that the main screen is facing downward. Based on this method, the accuracy of determining the screen orientation of the electronic device can be improved.

[0018] In the second aspect, the present application provides a screen-off display device, which may be an electronic device, or 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 repetitive parts will not be repeated.

[0019] 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 codes, and the computer program codes include 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.

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

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

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

[0023] Figure 1A is a schematic diagram of a screen-off display interface provided in an embodiment of the present application;

[0024] Figure 1B It is a schematic diagram of an outward-folding folding screen mobile phone provided by an embodiment of the present application in an unfolded state and a folded state;

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

[0026] Figure 3 It is a software structure block diagram of an electronic device provided in an embodiment of the present application;

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

[0028] Figure 5 It is a flowchart of a method for displaying a screen off provided in an embodiment of the present application;

[0029] Figure 6 It is a flowchart of another screen-off display method provided in an embodiment of the present application;

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

[0031] Fig. 8A is a schematic diagram of a main screen off screen display interface provided by an embodiment of the present application;

[0032] Figure 8B is a schematic diagram of a back screen off display interface provided by an embodiment of the present application;

[0033] Fig. 9 It is a flowchart of another screen-off display method provided in an embodiment of the present application;

[0034] Fig.10 It is a flowchart of another screen-off display method provided in an embodiment of the present application;

[0035] Fig.11 It is a flowchart of another screen-off display method provided in an embodiment of the present application;

[0036] Fig.12 It is a flow chart of another screen-off display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be described clearly and in detail below 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 of associated 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.

[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0039] The term "user interface (UI)" in the following embodiments of the present 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 a 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.

[0040] In order to facilitate understanding of the solution provided by the embodiment of the present application, the following introduces the relevant concepts involved in the embodiment of the present application:

[0041] 1. Always on display (AOD)

[0042] 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 conducive 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 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.

[0043] like Figure 1A As shown, the AOD interface can display time, date, power and other contents in area 101 of the screen, and can also display icons and other contents in area 102. In this way, when the mobile phone screen is off, the user can also obtain information such as time and date, which is conducive to saving the power consumption of the screen when the user checks the time, date and other information.

[0044] 2. Outward folding screen

[0045] An outward folding screen refers to a display screen that can be folded outward. For example, a mobile phone is an electronic device. Figure 1B As shown, the outward folding screen mobile phone can include an unfolded state and a folded state. When the outward 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 screen, the main screen and the back screen are different display areas of the same screen. When the outward 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 obtain a better visual effect. Among them, the so-called screen orientation refers to the direction facing the front of the display screen.

[0046] 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 inconveniences. For example, when the outward-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 time, date and other information. 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.

[0047] 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 an 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.

[0048] The hardware structure of the electronic device 100 is introduced below. Figure 2 , Figure 2 It is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.

[0049] 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 also 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, etc. 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.

[0050] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0051] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0052] 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.

[0053] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. The processor 110 calls the instructions or data stored in the memory, so that the electronic device 100 executes the screen-off display method executed by the electronic device in the following method embodiment.

[0054] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.

[0055] The charging management module 140 is used to receive charging input from a charger, which may be a wireless charger or a wired charger. The power management module 141 may also be disposed in the processor 110 .

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

[0057] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The display screen 194 may be an outward folding screen, that is, a display screen that is folded outward.

[0058] In addition, an operating system is running on 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 micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the 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 by taking the Android system as an example, its basic principles are also applicable to electronic devices of other operating systems.

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

[0060] The application layer may include a series of application packages. Figure 3 As shown, the application package may include AOD, call, music, video, short message and other applications. The application layer may 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, display the AOD interface according to the screen posture, etc., and can realize the intelligent display of the screen-off display.

[0061] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include system services (SystemSever), etc. SystemSever may include a device state provider (Device State Provider), a folding screen management service (Fold Screen ManagerService), a power management service (Power Manager Service), a device management service (Device ManagerService), etc.

[0062] SystemSever is responsible for starting and managing the entire application framework layer. Specifically, it is responsible for scheduling the application startup process, creating and managing processes, creating and managing windows, etc.

[0063] Device State Provider is a module in SystemSever that provides screen posture, such as unfolded state, folded state, etc. Specifically, it can obtain posture sensor data (such as the angle between the main screen and the back screen) and Hall sensor data (such as the magnetic field strength between the main screen and the back screen) from the hardware abstraction layer, and judge the current screen posture based on these sensor data.

[0064] Fold Screen Manager Service is a module in SystemSever, which is used to manage the screen display of outward-folding screen electronic devices. It can realize the display of user interfaces on the main screen, back screen or full screen according to the coordinates set 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 an outward-folding screen mobile phone, on the back screen of an outward-folding screen mobile phone, or on the entire screen of an outward-folding screen mobile phone. Of course, the user interface can also be displayed on the main screen of an outward-folding screen mobile phone, etc., which is not limited here. Among them, the coordinates set by the dual-screen display scheme can be referred to Figure 4 ,like Figure 4 As shown, the total screen width of the external folding screen is w, and the height is h. After the external 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 the main screen and the back screen are switched, the display area can be switched according to the above coordinates.

[0065] 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 the changes in the screen's on and off state, thereby controlling the start and end of displaying the AOD interface. In an embodiment of the present application, the screen of an electronic device can be divided into an off state, a bright screen state, and a screen-off state; wherein, the off state (OFF state) indicates that the electronic device screen is off; the bright screen 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 consumption state. The change in the on and off state may 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.

[0066] Device Manager Service is a module in SystemSever that provides the screen orientation of the device. For example, the main screen of an outward-folding screen mobile phone faces upward, the main screen of an outward-folding screen mobile phone faces downward, etc. Specifically, the attitude angle, acceleration and other data can be obtained from the hardware abstraction layer, and the screen orientation of the current device can be determined based on these data.

[0067] The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and can provide a virtual hardware platform for the operating system. Figure 3 As shown, the hardware abstraction layer may include sensor services, etc. Among them, the sensor service may provide sensor data, attitude angle, acceleration and other information, for example, providing sensor data to the device state provider, and providing attitude angle, acceleration and other information to the device manager service.

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

[0069] S501 : The AOD application registers to monitor the power management service.

[0070] In an embodiment of the present application, the electronic device can turn on the AOD function in order to save the power consumption of the screen when the user checks the time, date and other information. The AOD application can register for monitoring with the power management service in a static configuration. 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.

[0071] 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.

[0072] In the embodiment of the present application, the event that the screen display state changes to the Doze state may be the user's screen-off operation. The screen-off operation may be the user's screen-locking operation on the electronic device, triggering the screen display state to change from the ON state to the Doze state; or it may be the user's touch of 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, that is, start executing the following steps S503 to S510.

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

[0074] 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 state, steps S504 to S510 are executed; when the screen posture is unfolded state, step S511 is executed.

[0075] In addition, the AOD application can call the registerDeviceListener function to listen to the device status provider. The specific event to be listened is whether the screen posture determined by the device status provider changes (such as the user folds the unfolded electronic device, or unfolds the folded electronic device). If the AOD application listens to the change of the screen posture, steps S503 to S511 are re-executed. Based on this method, the intelligence and accuracy of the screen display can be improved.

[0076] Optionally, when the Device State Provider determines the screen posture of the electronic device, the specific implementation method 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.

[0077] 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.

[0078] 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.

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

[0080] 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 the angle between the main screen and the back screen and whether the electronic device is in a folded state; no limitation is made here. Based on this method, the accuracy of detecting the screen posture of the electronic device can be improved.

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

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

[0083] 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.

[0084] In the embodiment of the present application, the screen orientation of the electronic device may 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 may 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 may also be understood as the back screen facing down, and the main screen facing down may also be understood as the back screen facing up.

[0085] 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.

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

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

[0088] In an embodiment of the present application, 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 according to the direction of the vertical acceleration. Specifically, if the direction of the vertical acceleration is downward (for example, the vertical acceleration is 9.8), it is considered that the main screen of the electronic device is facing upward; if the direction of the vertical acceleration is upward (for example, the vertical acceleration is -9.8), it is considered that the main screen of the electronic device is facing downward.

[0089] 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 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.

[0090] 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.

[0091] 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.

[0092] In an embodiment of the present application, 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 without resetting 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), step S507 is executed.

[0093] 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.

[0094] 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.

[0095] In an embodiment of the present application, 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 without resetting 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), step S509 is executed.

[0096] 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.

[0097] S510: When the screen posture is in 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.

[0098] In an embodiment of the present application, when the screen is in the unfolded state, the user can see the entire screen. The display screen does not need to be divided into a main screen and a 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.

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

[0100] 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.

[0101] S512: When the display area is on the back screen, the AOD application exits displaying 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.

[0102] In an embodiment of the present application, the event for exiting the display of the AOD interface may be receiving an incoming call event, 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 needs 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 is 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 used to present more and more sophisticated interfaces to the user. The target interface here is the interface corresponding to the event for 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.

[0103] The event of exiting the display of the AOD interface may also be the time point of exiting the display of the AOD interface. When the time point of 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 of 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. The electronic device displays the AOD interface on the back screen at this time, 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 within 5 seconds, it can be re-timed or not. For example, assuming that the electronic device displays the AOD interface within 5 seconds, it flips in the 2nd second. If the electronic device re-times for 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 back screen turns off the AOD interface; 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 back screen turns off the AOD interface. Based on this approach, the power consumption of electronic devices can be saved.

[0104] 1. A method for displaying the AOD interface at any time point.

[0105] 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. Figure 6 As shown, the screen-off display method includes the following steps S601 to S604. Figure 6 The method execution subject shown can be the electronic device mentioned above. Or, Figure 6 The method execution entity shown may be a chip in an electronic device, which is not limited in the embodiments of the present application. Figure 6An electronic device is used as an example of the execution subject of the method. 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.

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

[0107] 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 the 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 user's screen lock operation on the electronic device, and 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 lock screen operation, the mode of displaying the AOD interface can be either a constantly lit display, a timed display, or a touch display, that is, all three modes are satisfied; when the screen-off operation performed by the user is an operation of touching the screen, the mode of displaying the AOD interface can only be a touch display. It should be noted that when the AOD application detects that the screen posture has changed (such as the user folds an unfolded electronic device, or unfolds a folded electronic device), the screen posture needs to be re-acquired, and step S602 or S603 needs to be re-executed subsequently.

[0108] 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; the hardware abstraction layer includes the Sensor Service. After the AOD function is turned on, the specific implementation process of obtaining the screen posture of the electronic device can refer to the above steps S501 to S503, that is:

[0109] The electronic device can enable the AOD application, and the AOD application registers a monitor with the Power Manager Service, wherein 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 ManagerService 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.

[0110] In a possible implementation, when the electronic device obtains the screen posture of the electronic device, the specific implementation 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; 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.

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

[0112] In a specific implementation, the posture sensor in the 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 according to 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, wherein 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.

[0113] 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 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 according to the posture sensor data provided by the Sensor Service.

[0114] like Figure 7As shown in (a), 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 bracket 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.

[0115] like Figure 7 As shown in (b), 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 support 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.

[0116] It should be noted that when the folding screen of the electronic device is unfolded, there is a hysteresis of 3 degrees when the folding state is changed to the stand state, that is, when the angle between the main screen and the back screen is 60 to 63 degrees, the screen posture of the electronic device is still considered to be in the folding state; when the stand state is changed to the unfolded state, if the angle between the main screen and the back screen is 153 degrees, the screen posture of the electronic device is considered to be in the stand state. Similarly, when the folding screen of the electronic device is closed, there is a hysteresis of 3 degrees when the unfolded state is changed to the stand state, that is, when the angle between the main screen and the back screen is 147 to 150 degrees, the screen posture of the electronic device is still considered to be in the unfolded state; when the stand state is changed to the folded state, if the angle between the main screen and the back screen is 57 degrees, the screen posture of the electronic device is considered to be in the stand state. In other words, in the process of changing from the folding state to the stand state or from the stand state to the folded state, a certain error rate can be guaranteed by a hysteresis of 3 degrees, and taking the previous screen posture as the screen posture in the hysteresis angle is conducive to improving the accuracy of detecting the screen posture of the electronic device. In the process of changing from the stand state to the folded state or from the folded state to the stand state, when the angle between the main screen and the back screen is at the boundary value, the previous screen posture is also used as the current screen posture, which is conducive to improving the accuracy of detecting the screen posture of the electronic device. Of course, the degree of hysteresis can be any predefined value, and 3 degrees is used as an example here, and it is not limited here.

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

[0118] 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 whether the electronic device is in a folded (closed) state can be determined based on the magnetic field strength between the main screen and the back screen. 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 at this time, 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 at this time, the screen state of the electronic device can be determined to be in an unfolded state or a stand state.

[0119] 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 Device State Provider with Hall sensor data (that is, whether the electronic device is in a folded state), and the Device State Provider determines the screen posture of the electronic device based on the Hall sensor data provided by the Sensor Service.

[0120] 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.

[0121] 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 together with the above-mentioned situation 1 and situation 2. Based on this approach, the accuracy of detecting the screen posture of the electronic device can be further improved.

[0122] For example, suppose that the electronic device determines that the screen posture of the electronic device is in a folded state based on the angle between the main screen and the back screen (i.e., the posture sensor data). At this time, 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 a folded state, then the determined screen posture is also in a folded state, and finally it can be determined that the screen posture of the electronic device is in a folded state; if the Hall sensor data indicates that the electronic device is not in a folded state, then it is necessary to re-acquire the data detected by the posture sensor and / or the Hall sensor to determine the screen posture of the electronic device.

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

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

[0125] 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 described in detail later.

[0126] 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 DeviceManager 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 ManagerService 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.

[0127] 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.

[0128] 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 according to the direction of the vertical acceleration. Specifically, if the direction of the vertical acceleration is downward (for example, the vertical acceleration is 9.8), it is considered that the main screen of the electronic device is facing upward; if the direction of the vertical acceleration is upward (for example, the vertical acceleration is -9.8), it is considered that the main screen of the electronic device is facing downward.

[0129] Optionally, when the electronic device obtains the vertical acceleration when the electronic device is in a stationary state, specifically, it can be: 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. Wherein, 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 it can be any preset value, which is not limited here. Based on this method, it is possible to ensure that the display plane of the electronic device is 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.

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

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

[0132] 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 upward; 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 downward. That is to say, when the screen posture of the electronic device is in a folded state and the main screen faces upward, 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 (such as Fig. 8A When the main screen of the electronic device faces downward, indicating that the user is looking at the back screen, the electronic device can automatically display the AOD interface on the back screen (such as Figure 8B Based on this method, it is possible to realize the intelligent display of the screen off on the outward folding screen mobile phone and improve the convenience of users in viewing information such as time and date.

[0133] In one possible implementation, the specific implementation 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 ManagerService 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.

[0134] 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; 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 caused by invalid screen switching operations can be avoided.

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

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

[0137] Optionally, after the electronic device displays the AOD interface on the main screen, the method further includes: in response to an incoming call event, displaying the incoming call interface on the main screen. For example, when the electronic device displays the AOD interface on the main screen and receives an incoming call, 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 used to present more and more sophisticated interfaces to the user.

[0138] 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 method, the large display area of ​​the main screen can be used to present more and more sophisticated interfaces to the user.

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

[0140] Optionally, after the electronic device displays the AOD interface on the main screen, the method further includes: in response to an alarm event, displaying the alarm interface on the main screen. For example, when the electronic device displays the AOD interface on the main screen, the alarm set by the electronic device rings, and the alarm interface is directly displayed 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 the user.

[0141] 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, and the incoming call interface is displayed on the main screen, and the back screen exits the display of the AOD interface. Based on this method, the large display area of ​​the main screen can be used to present more and more sophisticated interfaces to the user.

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

[0143] Optionally, after the electronic device displays the AOD interface on the main screen, the method further includes: in response to a notification event, displaying a notification interface on the main screen. For example, when the electronic device displays the AOD interface on the main screen, the electronic device receives a notification message, and then the notification interface is directly displayed 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 the user.

[0144] 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 method, the large display area of ​​the main screen can be used to present more and more sophisticated interfaces to the user.

[0145] For the above three types, the specific implementation process can refer to the above steps S511 and S512, that is, the PowerManager 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.

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

[0147] 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 restarted 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 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 seconds (i.e., the end time point of the 5th second) is reached, the back screen turns off the AOD interface. Based on this method, the power consumption of the electronic device can be saved.

[0148] Taking the electronic device as a mobile phone with an outward folding screen as an example, when the electronic device is in a folded state, the display area 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 a table may be used to illustrate different scenarios. 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; 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; 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.

[0149] If the phone displays the AOD interface on the back screen at the first time point, and the phone 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.

[0150] If the mobile phone does not display the AOD interface at the first time point, and the mobile 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 been exited or the mobile phone has turned on; if the mobile phone does not display the AOD interface at the first time point, and the mobile phone still does not display the AOD interface at the second time point, it means that the mobile phone has kept the screen on.

[0151] It should be noted that for the scenario of mobile phone flipping, the specific implementation process can be referred to below Fig. 9 and Fig.10 The description in the section will not be repeated here. For scenarios where there are events such as incoming calls, notifications, and alarms that exit the AOD interface, the specific implementation process can be found below Fig.11 and Fig.12 The description in will not be repeated here.

[0152] Table 1

[0153]

[0154]

[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 is an explanation of the situation where the screen posture is in the unfolded state. In a possible implementation, the method further includes: based on the screen posture being in the unfolded state, displaying the AOD interface on the display screen. That is to say, 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 judge the screen orientation of the electronic device, and 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 in 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 the present application, the electronic device obtains the screen posture of the electronic device in response to the screen-off operation at a first point in time; when the screen posture is in a folded state, the electronic device further determines the screen orientation of the electronic device, and 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 an outward-folding-screen mobile phone, while improving the convenience for users to view information such as time and date.

[0159] 2. A method for displaying an AOD interface in a flip scenario of an 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 turned over, the AOD interface is displayed on the back screen at a second time point, wherein the second time point is later than the first time point.

[0161] Based on the above, another screen-off display method provided by an embodiment of the present application is further described in detail below. Fig. 9 As shown, the screen-off display method includes the following steps S901 and S902. Fig. 9 The method execution subject shown can be the electronic device mentioned above. Or, Fig. 9 The method execution entity shown may be a chip in an electronic device, which is not limited in the embodiments of the present application. Fig. 9 An electronic device is used as an example of the execution subject of the method. 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 the embodiment of the present application, before the 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, and the electronic device responds to the user's screen-off operation according to the above Figure 6 The method for displaying the AOD interface described in the description can determine that the screen posture of the electronic device at this time is in 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 a possible implementation, when the electronic device displays the AOD interface on the main screen in response to the user's screen-off operation at the first time point, the specific implementation method may be: at the first time point, in response to the user's screen-off operation, the screen posture of the electronic device is obtained; based on the screen posture being a folded state and the main screen facing upward, the AOD interface is displayed on the main screen. For details, please refer to the description of the above steps S601 to S603, 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 up 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 ManagerService 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 be displayed on the main screen; 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 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.

[0167] In the embodiment of the present application, the screen posture at this time is still in the 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 the 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 the above Figure 6 In step S602, it is determined 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 the present application, when the electronic device is in a folded state, in response to the screen-off operation at a first time point, 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 flipping the electronic device, it is determined that the main screen is facing downward, 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.

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

[0170] Based on the above, another screen-off display method provided by an embodiment of the present application is further described in detail below. Fig.10 As shown, the screen-off display method includes the following steps S1001 and S1002. Fig.10 The method execution subject shown can be the electronic device mentioned above. Or, Fig.10 The method execution entity shown may be a chip in an electronic device, which is not limited in the embodiments of the present application. Fig.10 An electronic device is used as an example of the execution subject of the method. 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.

[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 the 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, and the electronic device responds to the user's screen-off operation according to the above Figure 6 The method for displaying the AOD interface described in the text can determine that the screen posture of the electronic device is in 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 a 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, the screen posture of the electronic device is obtained; based on the screen posture being a folded state and the main screen facing downward, the AOD interface is displayed on the back screen. For details, please refer to the description of the above steps S601, S602 and S604, 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 to say, 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 ManagerService 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 the 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 the embodiment of the present application, the screen posture at this time is still in the folded state, and the user flips the electronic device at the 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 the 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 the above Figure 6 In step S602, it is determined that the main screen is facing upwards. 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 the present 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, while improving the convenience for users to view information such as time and date.

[0178] 3. A method for implementing displaying the AOD interface in a scenario where an event such as an incoming call, notification, alarm, etc. that exits the display of the AOD interface occurs.

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

[0180] Based on the above, another screen-off display method provided by an embodiment of the present application is further described in detail below. Fig.11 As shown, the screen-off display method includes the following steps S1101 to S1103. Fig.11 The method execution subject shown can be the electronic device mentioned above. Or, Fig.11 The method execution entity shown may be a chip in an electronic device, which is not limited in the embodiments of the present application. Fig.11 An electronic device is used as an example of the execution subject of the method. 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. In an embodiment of the present application, the event for exiting the display of the AOD interface may 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 the specific implementation, the electronic device displays the AOD interface on the back screen at this time. When an incoming call event is received, the PowerManager 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 ScreenManager 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 of 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 displays the AOD interface on the back screen at this time, 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 within 5 seconds, it can be re-timed or not. For example, assuming that the electronic device displays the AOD interface within 5 seconds, it flips in the 2nd second. If the electronic device re-times for 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 back screen turns off the AOD interface; 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 back screen turns off the AOD interface. Based on this method, the power consumption of the electronic device can be saved, and the intelligent display of the screen on the folding screen mobile phone can be realized.

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

[0189] Based on the above, another screen-off display method provided by an embodiment of the present application is further described in detail below. Fig.12 As shown, the screen-off display method includes the following steps S1201 and S1202. Fig.12 The method execution subject shown can be the electronic device mentioned above. Or, Fig.12The method execution entity shown may be a chip in an electronic device, which is not limited in the embodiments of the present application. Fig.12 An electronic device is used as an example of the execution subject of the method. 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. In an embodiment of the present application, the event for exiting the display of the AOD interface may 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.

[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, which is not limited here. The specific implementation of step S1202 can refer to the specific implementation of step S1103, which is not limited here. Based on this method, the large display area of ​​the main screen can be used 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 combination 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 used to respond to the screen-off operation at a first time point; the display unit is used 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 lit and displays the first interface;

[0195] A processing unit is used to respond to flipping the electronic device at a second time point; a 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 time point, responds to a screen-off operation, and the display unit, when displaying the AOD interface on the main screen, is specifically used to: at the first time point, in response 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 acquiring the screen posture of the electronic device, is specifically used to: acquire 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 used 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 a 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 a second time point, in response to flipping the electronic device, an AOD interface is displayed on the back screen, and after the AOD interface is turned off on the main screen, the display unit is further used to: in response to a notification event, display a 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 a 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, with the main screen facing downward, and 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 used 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 a 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, in which a computer program is stored. 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. When the computer program product is executed on a computer, the computer can implement the functions of any of the above method embodiments.

[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. 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. 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 is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for displaying a screen off, 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 a 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

Cited By

  • Always on display method, and electronic device

    EP4715564A1

  • Always on display method, and electronic device

    WO2025044104A1