Screen-off display method and electronic equipment
Patent Information
- Application Number
- CN202380099927.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-13
- Publication Date
- 2026-02-13
AI Technical Summary
When the folded state of the electronic device is satisfied at the same time, the back screen cannot display the screen off information or the screen splash problem occurs.
By passing specific information between the processors of the electronic device, it is ensured that in the folded state, when the back screen is detected to face up, the main screen blacks the back screen and the back screen displays the screen-off interface, thereby solving the problem of screen-off display in the conflicting state.
It effectively solves the problem that when the electronic device meets the inverted state and the back screen facing upward state, the back screen cannot display the off-screen information or the splash screen when the electronic device is folded, improving user experience and device performance.
Smart Images

Figure CN121533002A_ABST
Abstract
Description
Screen-off display method and electronic device Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and more particularly to a screen-off display method and an electronic device. Background Art
[0002] The AOD (always on display) function can also be called the screen-off display, screen-off display or screen-off display function. It refers to the function of an electronic device displaying screen-off information (such as time, incoming call information, push messages, etc.) in part of the screen without lighting up the entire screen.
[0003] For electronic devices with an outward-folding folding screen (or called an outward-folding folding screen), after the electronic device is folded along the folding edge (or folding axis), a main screen and a back screen can be formed. In the related art, when the electronic device enters the screen-off state, the electronic device displays the screen-off information on the main screen. In one scenario, when it is detected that the electronic device is in an upside-down state (the main screen is facing down and the back screen is facing up), the electronic device turns off the screen-off display function, that is, the main screen and the back screen are in a completely black screen state and do not display any content. In another scenario, when it is detected that the electronic device is in a back-screen-up state (the main screen is facing down), the electronic device switches from the main screen to the back screen displaying the screen-off information, and the main screen is black.
[0004] As can be seen, the upside-down state requires the screen-off function to be turned off, while the back-screen-up state requires that a portion of the back-screen area be illuminated. Furthermore, when the foldable screen is folded, the upside-down state is essentially similar to the back-screen-up state. Therefore, there is a conflict between the above two scenarios. If the electronic device is folded and the screen-off function is turned on, if the electronic device satisfies both the upside-down state and the back-screen-up state, the back screen may not display the screen-off information; or the back screen may flicker when displaying the screen-off information.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a screen-off display method and an electronic device, which can solve the problem that when the electronic device is in a folded state and satisfies both the upside-down state and the back-screen-facing state, the back screen cannot display the screen-off information; or the back screen flashes when displaying the screen-off information.
[0007] In a first aspect, a method for displaying a screen off is provided, which is applied to an electronic device including a folding screen, wherein the folding screen can be folded to form a main screen and a back screen, and when the folding screen is in a folded state, the main screen and the back screen are facing each other; the electronic device includes a first processor and a second processor. The method includes: when the folding screen is in a folded state, the main screen faces upward, the back screen faces downward, and the back screen is black. When the screen off display function of the electronic device is turned on, the back screen screen off display function is turned on, and the upside-down black screen display function is turned on, in response to the screen off operation, the main screen displays a screen off interface; based on the user's flipping operation of the electronic device in a folded state, the main screen faces downward, the back screen faces downward, and the second processor of the electronic device reports the first information to the first processor, but does not report the second information (the first information is different from the second information); based on the first information, the back screen displays the screen off interface, and the main screen is black.
[0008] When the folding screen is in the folded state, the main screen faces upward, the back screen faces downward, and the back screen is black; when the screen off display function of the electronic device is turned on, the back screen's screen off display function is in the off state, and the upside-down black screen display function is in the on state, in response to the screen off operation, the main screen displays the screen off interface; based on the user's flipping operation of the electronic device in the folded state, the main screen faces downward and the back screen faces upward, the second processor of the electronic device reports the second information to the first processor, but does not report the first information; based on the second information, the main screen is black, and the back screen is black.
[0009] Based on the first aspect, in the related technology, when the folding screen of the electronic device is in the folded state, the main screen faces upward, the back screen faces downward, and the back screen is black; when the screen-off display function of the electronic device is turned on, the back screen's screen-off display function is in the off state, and the upside-down black screen display function is in the on state, in response to the screen-off operation, the main screen displays the screen-off interface; then, when the user flips the electronic device in the folded state, the main screen faces downward and the back screen faces upward, the second processor of the electronic device reports the second information to the first processor, and does not report the first information, so that the main screen and the back screen of the electronic device are both black.
[0010] In the present application, when the folding screen of the electronic device is in the folded state, the main screen faces upward, the back screen faces downward, and the back screen is black; when the screen-off display function of the electronic device is turned on, the back screen screen-off display function is in the turned-on state, and the upside-down black screen display function is in the turned-on state, in response to the screen-off operation, the main screen displays the screen-off interface; then, when the user flips the electronic device in the folded state, the main screen faces downward and the back screen faces upward, the first processor on the second processor of the electronic device reports the first information but does not report the second information, so that the main screen of the electronic device is black and the back screen displays the screen-off interface, thereby solving the problem that the back screen cannot display the screen-off information when the electronic device is in the folded state and satisfies the upside-down state and the back screen faces upward; or the screen flickers when the back screen displays the screen-off information.
[0011] Optionally, the screen-off display function is used to instruct the electronic device to display a screen-off interface in response to a screen-off operation.
[0012] Optionally, when the electronic device is in the unfolded state and the screen-off display function is turned on, the electronic device responds to the screen-off operation and displays the screen-off interface on the folded screen (including the main screen display area and the back screen display area). When the electronic device is in the unfolded state and the screen-off display function is turned on, the electronic device responds to the screen-off operation and displays the screen-off interface on the main screen.
[0013] Optionally, when the back screen screen off display function is turned on, the electronic device is in the folded state and, in response to the screen off operation, displays the screen off interface on the back screen and the main screen is black.
[0014] Optionally, the electronic device turns on the back screen off display function in response to the screen off operation; or, the electronic device turns on the back screen off display function after turning on the screen off display function.
[0015] Optionally, the upside-down black screen display function is enabled, and when the user turns the electronic device upside down, the foldable screen is black. The black foldable screen includes the foldable screen not displaying any content.
[0016] Optionally, when the foldable screen is in the unfolded state and the user turns the electronic device upside down, the foldable screen of the electronic device (including the main screen display area and the back screen display area) is black and does not display any content. When the foldable screen is in the folded state and the user turns the electronic device upside down, both the main screen and the back screen of the electronic device are black and do not display any content.
[0017] Optionally, the main screen facing up means that the main screen is oriented opposite to the direction of gravity, and the back screen facing down means that the back screen is oriented in the same direction as gravity. Correspondingly, the main screen facing down means that the main screen is oriented in the same direction as gravity, and the back screen facing up means that the back screen is oriented opposite to the direction of gravity.
[0018] In a possible implementation of the first aspect, the first information includes that the electronic device is in a back-screen-up state, and the second information includes that the electronic device is in an upside-down state.
[0019] In a possible implementation of the first aspect, the second processor of the electronic device reports the first information to the first processor but does not report the second information, including: the second processor of the electronic device determines that the electronic device is in a back-screen-up state and reports the first information to the first processor; after the second processor of the electronic device reports the first information to the first processor, the second processor of the electronic device determines that the electronic device is in an upside-down state and intercepts the second information.
[0020] In this implementation, when the second processor of the electronic device determines that the electronic device is in the back-screen-up state, it reports the first information to the first processor, that is, reports the information used to indicate the back-screen-up state; and when the second processor of the electronic device determines that the electronic device is in the upside-down state, it intercepts the second information, that is, intercepts the information used to indicate the upside-down state. In this way, the first processor of the electronic device can display the screen-off interface on the back screen based on the first information, and the main screen is black, thereby solving the problem that the back screen cannot display the screen-off information when the electronic device is in the folded state and satisfies the upside-down state and the back-screen-up state at the same time; or the screen flickers when the back screen displays the screen-off information.
[0021] In a possible implementation of the first aspect, the second processor of the electronic device determines that the electronic device is in an upside-down state and intercepts the second information, including: the second processor of the electronic device determines that the electronic device is in an upside-down state, and the first processor of the electronic device subscribes to a back-screen-up event to the second processor to intercept the second information; wherein, subscribing to the back-screen-up event is used to instruct the second processor to report the first information to the first processor when determining that the electronic device is in a back-screen-up state.
[0022] Optionally, when the second processor of the electronic device determines that the electronic device is in an upside-down state, if the first processor of the electronic device has not subscribed to the back-screen-up event to the second processor, the second information is not intercepted, that is, the second processor of the electronic device reports the second information to the first processor.
[0023] In a possible implementation of the first aspect, the first processor of the electronic device subscribes to the back-screen-up event to the second processor, including: the electronic device responds to the screen-off operation, and after the main screen displays the screen-off interface, the first processor of the electronic device subscribes to the back-screen-up event to the second processor.
[0024] In a possible implementation of the first aspect, the second processor of the electronic device does not report the second information to the first processor, including: the second processor of the electronic device determines that the electronic device is in an inverted state and obtains a first flag bit; wherein the first flag bit is used to indicate whether the second processor intercepts the second information; if the first flag bit indicates that the second processor intercepts the second information, the second processor does not report the second information to the first processor.
[0025] In a possible implementation manner of the first aspect, the method further includes: after the first processor of the electronic device subscribes to the back-screen-up event from the second processor, the second processor of the electronic device sets a first flag.
[0026] According to a second aspect, a screen-off display method is provided, which is applied to an electronic device including a folding screen, wherein the folding screen can be folded to form a main screen and a back screen, and when the folding screen is in the folded state, the main screen and the back screen are facing each other. The method comprises: when the folding screen is in the unfolded state, the folding screen is illuminated; based on a user's flipping operation on the electronic device in the unfolded state, the folding screen faces downward; the screen-off display function of the electronic device is turned on, and the upside-down black screen display function is turned on, and in response to the screen-off operation, the folding screen is black; then, based on the user's folding operation on the electronic device in the unfolded state, the main screen faces downward and the back screen faces upward, and in response to the folding operation, the main screen displays a screen-off interface and the back screen is black; after the main screen displays the screen-off interface and the back screen is black, the main screen is black and the back screen displays the screen-off interface.
[0027] Based on the second aspect, when the folding screen is in the unfolded state, the folding screen is on. When the user flips the electronic device in the unfolded state, the folding screen faces downward. Since the screen-off display function of the electronic device is turned on, the upside-down black screen display function is turned on. Therefore, in response to the screen-off operation, the folding screen is black; when the user folds the electronic device in the unfolded state, the main screen faces downward and the back screen faces upward. Since the main screen displays the screen-off interface first, the back screen is black; after the main screen displays the screen-off interface and the back screen is black, the main screen is black again, and the back screen displays the screen-off interface again. Therefore, the problem that the back screen cannot be lit after the electronic device enters the screen-off state when it is in the upside-down state and the folding screen changes from the unfolded state to the folded state can be solved.
[0028] Optionally, in response to the flip operation, the electronic device turns on the upside-down black screen display function. Alternatively, in response to the screen-off operation, the electronic device turns on the upside-down black screen display function.
[0029] In a possible implementation of the second aspect, in response to a folding operation, the main screen displays a screen off interface, and the back screen is black; after the main screen displays the screen off interface and the back screen is black, the main screen is black, and the back screen displays the screen off interface, including: in response to the folding operation, reading a second flag; wherein the second flag is used to indicate whether the electronic device is in an inverted black screen state; if the second flag indicates that the electronic device is currently in an inverted black screen state, the main screen displays the screen off interface, and the back screen is black; after the main screen displays the screen off interface and the back screen is black, the main screen is black, and the back screen displays the screen off interface.
[0030] In a possible implementation of the second aspect, after the folding screen goes black in response to the screen-off operation, the method further includes: the first processor of the electronic device sets a second flag.
[0031] In a third aspect, an electronic device is provided, wherein the electronic device has the function of implementing any one of the above-mentioned first aspect or second aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
[0032] In a fourth aspect, an electronic device is provided, comprising: a foldable screen, a memory, and one or more processors; wherein the foldable screen is foldable to form a main screen and a rear screen, and when the foldable screen is folded, the main screen and the rear screen face each other. The memory is configured to store computer instructions, and when the electronic device is in operation, the processor executes the computer instructions in the memory to cause the electronic device to perform any of the methods described in the first aspect or any of the methods described in the second aspect.
[0033] In a fifth aspect, a chip system is provided, which includes: at least one processor and an interface; the interface is used to receive instructions and transmit them to at least one processor; at least one processor executes instructions so that the electronic device executes any one of the methods in the first aspect above; or executes any one of the methods in the second aspect above.
[0034] In a sixth aspect, a computer-readable storage medium is provided, which stores instructions. When the computer-readable storage medium is run on a computer, the computer can execute any of the methods in the first aspect; or execute any of the methods in the second aspect.
[0035] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect; or to execute any of the methods described in the second aspect.
[0036] Among them, the technical effects brought about by any implementation method in the above-mentioned second to seventh aspects can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] FIG1 is a schematic diagram of an electronic device including a foldable screen provided in an embodiment of the present application;
[0038] FIG2 is a schematic diagram of a folding screen in an unfolded state provided by an embodiment of the present application;
[0039] FIG3 is a schematic diagram of a folding screen in a folded state provided by an embodiment of the present application;
[0040] FIG4 is a schematic diagram of an angle between a screen and a horizontal plane provided in an embodiment of the present application;
[0041] FIG5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0042] FIG6 is a schematic diagram of a software framework of an electronic device provided in an embodiment of the present application;
[0043] FIG7 is a first flow chart of a method for displaying an off-screen display according to an embodiment of the present application;
[0044] FIG8 is a second flow chart of a method for displaying an off-screen display according to an embodiment of the present application;
[0045] FIG9 is a third flow chart of a method for displaying an off-screen display according to an embodiment of the present application;
[0046] FIG10 is a schematic diagram of a foldable screen provided by an embodiment of the present application, showing a state where the screen is on in an unfolded state and changes to a state where the screen is off in a folded state;
[0047] FIG11 is a fourth flow chart of a method for displaying an off-screen display according to an embodiment of the present application;
[0048] FIG12 is a fifth flow chart of a method for displaying an off-screen display according to an embodiment of the present application;
[0049] FIG13 is a schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] Embodiments of the present application provide a method for displaying an always-on screen. This method can be applied to an electronic device with a foldable screen. The foldable screen can be folded to form at least two screens. For example, the foldable screen can be folded along a folding edge or folding axis to form a first screen and a second screen. In other words, the at least two screens include the first screen and the second screen.
[0051] The folding screen in the embodiment of the present application can be a folding screen that folds outward (referred to as an outward folding screen). Taking the folding screen that can be folded to form a first screen and a second screen as an example, after the outward folding screen is folded, the first screen and the second screen are opposite to each other.
[0052] For example, please refer to Figure 1, which shows a product form schematic diagram of an electronic device 100 with an outward folding screen provided in an embodiment of the present application. Among them, Figure 1 (a) is a form schematic diagram of the outward folding screen when it is fully unfolded. The outward folding screen can be flipped along the folding edge in the directions 101a and 101b shown in Figure 1 (a) to form the first screen (or main screen) and the second screen (or back screen) shown in Figure 1 (b). The outward folding screen can continue to be folded along the folding edge in the directions 102a and 102b shown in Figure 1 (b) to form the outward folding screen in a folded state shown in Figure 1 (c). As shown in Figure 1 (c), after the folding screen of the electronic device 100 is completely folded, the first screen and the second screen are facing each other and are visible to the user.
[0053] It is understood that for electronic devices with an outward-folding folding screen, when the folding screen is in the folded state, the interface can be displayed on the first screen or the second screen; when the folding screen is in the unfolded state, the interface can be displayed on both the first screen and the second screen. For an introduction to the unfolded and folded states of the folding screen, please refer to the description in the following embodiments and will not be repeated here.
[0054] Generally speaking, the angle α between the first screen and the second screen of a folding screen (such as an outward-folding folding screen) ranges from [0°, 180°]. In an embodiment of the present application, if α∈[0°, P], the electronic device can determine that the folding screen is in a folded state; if α∈[P, 180°], the electronic device can determine that the folding screen is in an unfolded state. Alternatively, if α∈[0°, P), the electronic device can determine that the folding screen is in a folded state; if α∈[P, 180°], the electronic device can determine that the folding screen is in an unfolded state, where P is a preset angle threshold. P can be determined based on the usage habits of a large number of users using folding screens; or, P can be set by the user in the electronic device.
[0055] In some embodiments, according to the usage habits of most users, when the angle α between the first screen and the second screen is greater than 90°, the user is more likely to want to use the first screen and the second screen as a whole (i.e., as a complete display screen). Therefore, the preset angle threshold P in the embodiment of the present application can be greater than 90°. The value range of the preset angle threshold P can be (0°, 180°). For example, the preset angle threshold P can be 100°, 120°, 135°, 140°, or 150°, etc.
[0056] It should be noted that the at least two screens formed after the folding screen in the embodiment of the present application is folded can be multiple independent screens, or a complete screen with an integrated structure, which is just folded into at least two parts.
[0057] For example, the foldable screen can be a flexible foldable screen. The flexible foldable screen includes a folding edge made of a flexible material. Part or all of the flexible foldable screen is made of a flexible material. When the flexible foldable screen is folded, the at least two screens formed are a complete integrated screen, but are folded into at least two parts.
[0058] For another example, the foldable screen may be a multi-screen foldable screen. The multi-screen foldable screen may include multiple (two or more) screens, each of which is a plurality of separate display screens. The multiple screens may be sequentially connected via folding axes, and each screen may rotate around the folding axis connected thereto to achieve folding of the multi-screen foldable screen.
[0059] In FIG1 , a flexible folding screen is used as an example to illustrate the folding screen in the embodiment of the present application. In addition, the method provided in the embodiment of the present application is also described by taking the flexible folding screen as an example in the subsequent embodiments of the present application.
[0060] Taking the electronic device 100 as a mobile phone as an example, as shown in FIG1 , the mobile phone includes a foldable screen 103 and a back cover 104. The back cover 104 includes side covers 105 (or side frames), which may be provided with a camera 105a, a flash 105b, and buttons 105c (such as a volume button, a power button, or a fingerprint unlock button). Alternatively, other controls may be provided on the side cover 105 without limitation.
[0061] As shown in Figure 1, the folding screen 103 of the mobile phone is also provided with a camera 106, which is provided in the folding screen 103 and close to one side of the side cover 105. For example, in the embodiment of the present application, the camera 105a can be called a rear camera, and the camera 106 can be called a front camera.
[0062] Among them, Figure 1 (a) is a schematic diagram of the mobile phone when it is fully unfolded. For example, the mobile phone can be flipped along the folded edge in the directions 101a and 101b shown in Figure 1 (a) to form the mobile phone in the folded state shown in Figure 1 (b). After the folding screen of the mobile phone is fully folded, the folding screen 103 of the mobile phone includes a main screen and a back screen. In the embodiment of the present application, when the mobile phone is in the folded state, the display screen on the same side as the front camera 106 can be called the main screen, and the display screen on the same side as the rear camera 105a can be called the back screen.
[0063] For example, as shown in FIG1(b), when the foldable screen of the mobile phone is folded, the back screen of the foldable screen is flush with the side cover 105, and the back screen faces away from the main screen. In addition, when the foldable screen of the mobile phone is folded, the size of the back screen of the foldable screen is smaller than the size of the main screen. In some embodiments, the sum of the size of the back screen and the size of the side cover 105 is similar to or equal to the size of the main screen.
[0064] In some embodiments, regardless of whether the electronic device is in a folded state or a non-folded state, in a scenario where the screen-off display function of the electronic device is turned on, when it is detected that the electronic device is in an "upside-down state", the electronic device automatically turns off the screen-off display function, that is, the folding screen (main screen and back screen) of the electronic device is in a black screen state and does not display any content, so as to reduce the power consumption of the screen-off display of the electronic device.
[0065] In other embodiments, when the electronic device is in a folded state and the screen-off display function is enabled, the electronic device displays a screen-off interface on the main screen. When the electronic device is detected to be in a "back screen facing up state," the electronic device displays a screen-off interface on the back screen to improve the user experience.
[0066] For ease of understanding, the terms "inverted state" and "back screen facing up state" involved in the embodiments of the present application are introduced here with reference to the accompanying drawings.
[0067] In some embodiments of the present application, an electronic device being in an "inverted state" means that the screen of the electronic device is facing downwards and the screen is in contact with the surface of an object (such as a desktop). It should be understood that, in the case where the display screen of the electronic device is a non-folding screen, the electronic device being in an inverted state means that the display screen of the electronic device is facing downwards and in contact with the surface of an object. In the case where the display screen of the electronic device is an outward-folding screen, the inverted state of the electronic device means that the main screen of the outward-folding screen of the electronic device is facing downwards and in contact with the surface of an object.
[0068] For example, the phone shown in Figure 2 is in a non-folded state (i.e., unfolded state), with the folding screen facing down and the back cover facing up. When the folding screen of the phone is unfolded, it is in an "upside-down state." After the phone enters the screen-off state, the folding screen of the phone is black.
[0069] For another example, the phone shown in Figure 3 is in a folded state, with the main screen facing down and the back screen facing up. That is, the state shown in Figure 3 can be either "upside down" or "back screen facing up." After the phone enters the screen-off state, if the phone is in the "upside down state," both the main screen and the back screen are black; if the phone is in the "back screen facing up state," the back screen displays the screen-off interface, and the main screen is black.
[0070] In the embodiments of the present application, "downward" and "upward" are two relative directions. For example, "downward" refers to the direction in the same direction as gravity, while "upward" refers to the direction opposite to gravity. For example, when the main screen is facing upward and the back screen is facing downward, the direction of the main screen is opposite to gravity, while the direction of the back screen is the same as gravity. Correspondingly, when the main screen is facing downward and the back screen is facing upward, the direction of the main screen is the same as gravity, while the direction of the back screen is opposite to gravity.
[0071] In some embodiments, the angle between the screen and the horizontal plane can be used to determine whether the electronic device is in an "upside-down position" or a "back-screen-up position." The angle between the screen and the horizontal plane refers to the angle between the display plane of the screen and the horizontal plane. Alternatively, the angle between the top surface of the screen and the horizontal plane can be used to determine whether the electronic device is in an "upside-down position" or a "back-screen-up position."
[0072] Exemplarily, the angle between the screen and the horizontal plane is φ. If φ∈[-M°, +M°], the electronic device can determine that the electronic device has entered the "back-screen-up state"; if φ∈[-N°, +N°], the electronic device can determine that the electronic device has exited the "back-screen-up state". Among them, M and N are preset angle thresholds, and M and N can be pre-configured in the electronic device. For example, M can be greater than 5° and less than 15°; for example, M can be 8°, 10°, 12°, etc. For example, N can be greater than 10° and less than or equal to 15°; for example, N can be 15°.
[0073] Taking M as 10° and N as 15° as an example, as shown in Figure 4, if φ∈[-10°, +10°], the electronic device can determine that the electronic device enters the "back screen facing up state"; if φ∈[-15°, +15°], the electronic device can determine that the electronic device exits the "back screen facing up state".
[0074] For example, if φ∈[-m°, +m°], the electronic device can determine that the electronic device has entered the "upside-down state"; if φ∈[-n°, +n°], the electronic device can determine that the electronic device has exited the "upside-down state." m and n are preset angle thresholds, and m and n can be pre-configured in the electronic device. For example, m can be greater than 0° and less than or equal to 2°; for example, m can be 1° or 2°, etc. For example, n can be greater than or equal to 5° and less than 10°; for example, n can be 5° or 6°, etc.
[0075] Taking m as 2° and n as 5° as an example, illustratively, if φ∈[-2°, +2°], the electronic device can determine that the electronic device enters the "inverted state"; if φ∈[-5°, +5°], the electronic device can determine that the electronic device exits the "inverted state".
[0076] It can be seen that in the embodiment of the present application, when the electronic device is in the folded state, the "inverted state" is essentially similar to the "back screen facing up state", the "inverted state" requires turning off the screen off display function, while the "back screen facing up state" requires displaying the screen off interface on the back screen. There is a conflict between these two states. When the electronic device is in the folded state and the screen off display function is turned on, if the electronic device satisfies both the "inverted state" and the "back screen facing up state", the back screen may not be able to display the screen off interface; or a screen flickering problem may occur when the back screen displays the screen off interface.
[0077] In related technologies, when a foldable screen is in the folded state and the screen-off function of the electronic device is turned on, when the main screen of the electronic device is facing down and the back screen is facing up, the electronic device satisfies both the "back screen facing up state" and the "upside down state." Based on this, the first processor of the electronic device will report not only information indicating that the "back screen is facing up" but also information indicating that the "upside down state" is reported to the second processor.
[0078] Among them, since the time length for the electronic device to calculate the inverted state is shorter, and the time length for calculating the back-screen-facing state is longer, for example, the time length for the electronic device to calculate the inverted state is 100ms, and the time length for calculating the back-screen-facing state is 300ms. Therefore, if the electronic device satisfies both the "back-screen-facing state" and the "inverted state", the first processor of the electronic device will first report the information indicating "inverted" to the second processor, and then report the information indicating "back-screen-facing".
[0079] In this way, when the second processor of the electronic device receives information indicating "upside down", the second processor of the electronic device responds to the information indicating "upside down" and turns off the screen off display function, that is, the main screen and the back screen of the electronic device are both black and do not display any content (this process can be called a screen power-off operation). When the second processor of the electronic device receives information indicating "back screen facing up", the second processor of the electronic device responds to the information indicating "back screen facing up" and lights up part of the back screen, and displays the screen off interface on the back screen (this process can be called a screen power-on operation).
[0080] It is understandable that since the electronic device first turns off the screen-off display function and then lights up the back screen, that is, the electronic device first performs the screen power-off operation and then performs the screen power-on operation, it may cause the back screen to fail to light up; or, the response time of lighting the back screen is long, causing the back screen display screen-off interface to flicker, which not only reduces the performance of the electronic device, but also affects the user experience.
[0081] In order to solve the above problems, an embodiment of the present application provides a method for displaying a screen off, which is used to solve the problem of the conflict between the "upside-down state" and the "back screen facing up state" of an electronic device. Take the above-mentioned outward-folding folding screen as an example. When the folding screen is in the folded state, in the scenario where the screen off display function of the electronic device is turned on, in response to the flipping operation of the electronic device, the main screen of the electronic device faces down and the back screen faces up. The first processor of the electronic device reports information indicating "back screen facing up" to the second processor, and does not report information indicating "upside-down". Then, in response to the information of "back screen facing up", the electronic device displays the screen off interface on the back screen.
[0082] The first processor and the second processor are different. Exemplarily, the first processor may be an application processor (AP) of an electronic device, and the second processor may be a coprocessor; for example, the coprocessor may be an audio digital signal processor (ADSP), and the second processor may be configured with a smart sensor hub.
[0083] The Sensor Hub's primary function is to receive and process data from various sensors. For example, the Sensor Hub can control sensor modules even when the AP is in sleep mode, reducing power consumption. Furthermore, the Sensor Hub can fuse data from different types of sensors to improve status monitoring of electronic devices.
[0084] Optionally, the Sensor Hub can sense the state of the electronic device, such as whether the screen of the electronic device is facing up / down. Optionally, the Sensor Hub can also sense user gestures, such as flipping the electronic device, tapping the electronic device, shaking the electronic device, picking up / putting down the electronic device, and other gestures. Alternatively, the Sensor Hub can also sense whether the electronic device is on the table / in the pocket / in the user's hand. Alternatively, the Sensor Hub can also sense the user's state, such as whether the user is running, walking, standing, or sitting. Of course, the Sensor Hub can also sense other states, which will not be elaborated on.
[0085] In an embodiment of the present application, the Sensor Hub can be used to detect the status of the electronic device, such as the "upside-down state", "back screen facing up state", and "flipped electronic device" state, and report the detected status of the electronic device to the AP.
[0086] The real-time method of the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0087] For example, the screen-off display method provided in the embodiments of the present application can be applied to mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, and other electronic devices that include the above-mentioned folding screens. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0088] Please refer to Figure 5, which is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. As shown in Figure 5, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a positioning module 181, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc.
[0089] The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and other sensors.
[0090] For example, the electronic device 100 may use the various sensors in the sensor module 180 to collect corresponding sensor data. For example, the electronic device 100 may use a GPS device to obtain the user's location. For another example, the electronic device 100 may use an acceleration sensor and a gravity sensor to obtain the user's step count. For another example, the electronic device 100 may use a temperature sensor to obtain the temperature of the user's environment.
[0091] In an embodiment of the present application, the electronic device 100 can use an acceleration sensor to obtain the angle between the electronic device 100 and the horizontal plane to determine the state of the electronic device 100 (such as the upside-down state and the back-screen-facing state). For example, the acceleration sensor can collect acceleration data of the electronic device 100 in any direction (such as the magnitude and direction of axial acceleration) and transmit the acceleration data to the Sensor Hub of the electronic device. After receiving the acceleration data transmitted by the acceleration sensor, the Sensor Hub processes the acceleration data to determine the state of the electronic device 100.
[0092] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0093] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0094] 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.
[0095] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0096] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0097] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely an illustrative illustration and does not limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0098] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.
[0099] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery profile (leakage, impedance). In some other embodiments, the power management module 141 can also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0100] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0101] In the embodiment of the present application, the display screen 194 may be a foldable screen. When folded, the foldable screen is approximately the same size as a non-foldable screen, while when unfolded, it is significantly larger. This allows users to use the electronic device 100 with a foldable screen with greater flexibility and portability. Furthermore, when the foldable screen is unfolded, the impact on the user's visual experience caused by the size limitations of the non-foldable screen is reduced.
[0102] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0103] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0104] The mobile communication module 150 can provide wireless communication solutions for electronic device 100, including 2G / 3G / 4G / 5G. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation.
[0105] The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0106] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0107] The music module 170 is used to convert digital audio information into analog audio signal outputs and also to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and interface audio signals. The speaker 170A, also known as the "speaker," is used to convert audio electrical signals into sound information. The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone," is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones.
[0108] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, audio, video, and other files can be stored on the external memory card.
[0109] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area.
[0110] The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, a graphics playback function), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.). In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0111] Buttons 190 include a power button and volume buttons. Motor 191 can be used for incoming call vibration alerts and touch vibration feedback. Indicator 192 can be an indicator light that can be used to indicate charging status, power level changes, messages, missed calls, notifications, etc.
[0112] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or removing it from the SIM card interface. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM card, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0113] The methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0114] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0115] FIG6 is a block diagram of the software structure of the electronic device 100 provided in an embodiment of the present application. A layered architecture can divide the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer (abbreviated as application layer), the application framework layer (abbreviated as framework layer), the hardware abstraction layer (HAL), and the kernel layer (also known as the driver layer).
[0116] Application layer: This layer includes a series of application packages. For example, the application layer may include screen-off applications and common applications. Common applications may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and desktop launcher applications (not shown in the figure).
[0117] The screen-off app is used to turn the screen-off display function on and off. When the screen-off app turns on the screen-off display function, it triggers the electronic device to light up part of the screen and display the screen-off interface. When the screen-off app turns off the screen-off display function, it triggers the electronic device to go black and display no content.
[0118] The framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 6, the framework layer may include a screen saver service (dream service), a power manager service (PMS), a window manager service (WMS), and an activity manager service (AMS). Optionally, the framework layer may also include a content provider, a view system, a telephony manager, a resource manager, a notification manager, etc. (not shown in the figure).
[0119] Among them, dream service is used to register a monitor with the power manager, and when it monitors that the electronic device enters the screen-off state, it starts the screen-off application.
[0120] The window manager manages windowed programs. It can determine the display size, determine whether a status bar is present, lock the screen, and take screenshots. The activity manager manages activities, starting, switching, and scheduling components in the system, as well as managing and scheduling applications.
[0121] The hardware abstraction layer may include multiple library modules, such as a hardware compositor (HWComposer, HWC), a camera library module, etc. The Android system can load the corresponding library module for the device hardware, thereby enabling the application framework layer to access the device hardware.
[0122] The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, audio drivers, and sensor drivers.
[0123] In some embodiments of the present application, the above-mentioned application layer, framework layer, hardware abstraction layer and kernel layer can be deployed in an application processor (AP), that is, the AP controls the modules in the above-mentioned software layers to perform corresponding functions. In other embodiments of the present application, the software framework of the electronic device may also include various modules deployed in an audio digital signal processor (ADSP), and the ADSP controls each module to perform corresponding functions. Exemplarily, the ADSP may include a Sensor Hub. The Sensor Hub can obtain sensor data from each sensor and determine the status of the electronic device in combination with the sensor data.
[0124] Exemplarily, as shown in FIG6 , the Sensor Hub obtains the acceleration data collected by the acceleration sensor and determines the state of the electronic device based on the acceleration data. In one example, when the Sensor Hub determines that the state of the electronic device is the back screen facing up state, the Sensor Hub reports the back screen facing up state to the screen off application of the application layer through the kernel layer, the hardware abstraction layer, and the framework layer. After the screen off application receives the back screen facing up state reported by the Sensor Hub, it executes the back screen off function, that is, displays the screen off interface on the back screen. In another example, when the Sensor Hub determines that the state of the electronic device is the inverted state, the Sensor Hub reports the inverted state to the screen off application of the application layer through the kernel layer, the hardware abstraction layer, and the framework layer. After the screen off application receives the inverted state reported by the Sensor Hub, it executes the inverted black screen logic, that is, both the main screen and the back screen are in a black screen state and do not display any content.
[0125] Optionally, the ADSP can exchange information with the kernel layer through the Qualcomm messaging interface (QMI) or IPC_Router to transmit the status of the electronic device determined by the Sensor Hub to the AP side.
[0126] In some embodiments, as shown in Figure 6, the Sensor Hub may include an acceleration module and a gesture module (e.g., motion). The acceleration module is used to obtain acceleration data (or ACC data) collected by the acceleration sensor and report the acceleration data to the gesture module. The gesture module is also used to determine the status of the electronic device based on the acceleration data.
[0127] Optionally, the gesture module can also detect user gestures, such as a gesture of flipping an electronic device, a gesture of picking up / putting down an electronic device, etc., without limitation.
[0128] The following uses the electronic device as a mobile phone, where the foldable screen of the mobile phone is the aforementioned outward-folding foldable screen, which can be folded to form a first screen (such as a main screen) and a second screen (such as a back screen) as an example to specifically illustrate the technical solutions provided in the embodiments of this application. As shown in Figure 7, the screen-off display method may include S201-S204.
[0129] S201: The folding screen is in the folded state, the main screen faces upward, the back screen faces downward, and the back screen is black.
[0130] It is understood that the main screen facing up means that the display direction of the main screen is opposite to the direction of gravity, and the back screen facing down means that the display direction of the back screen is in the same direction as gravity. Among them, for the description of the main screen facing up and the back screen facing down, please refer to the above embodiment and will not be repeated here.
[0131] Optionally, a back screen black refers to the back screen of the mobile phone generally not displaying any content, so that the entire display area of the back screen of the mobile phone appears black. In some embodiments, all pixels included in the back screen are not illuminated, resulting in a back screen black. In other embodiments, all pixels included in the back screen are illuminated, and the illuminated pixels appear black.
[0132] S202: In response to the screen-off operation, the main screen of the mobile phone displays a screen-off interface.
[0133] Exemplarily, in response to a screen-off operation, the phone generates a screen-off event. For example, the screen-off event may be an event in which the user presses the power button (i.e., the power button) while the phone screen is on. For another example, the screen-off event may be an event in which the phone detects no user operation within a certain period of time while the screen is on.
[0134] In some embodiments, the screen-off interface may also be referred to as the AOD interface. The screen-off interface displayed on the phone's main screen includes screen-off information. The screen-off information may include time, incoming call information, push messages, and other content. Of course, the screen-off information may also include other content, such as screen-off animations and user usage data (such as user steps, heart rate, etc.), which will not be detailed here.
[0135] For example, in combination with Figure 6, as shown in Figure 8, S203 can be implemented by the following steps. In which, taking the mobile phone application layer including the screen-off application and the Sensor Hub including the gesture module and the acceleration module as an example, S202 can specifically include steps ① to ④.
[0136] Step 1: Initialize the gesture module of the mobile phone.
[0137] For example, the mobile phone can initialize the gesture module after it is turned on. Alternatively, the mobile phone can initialize the gesture module when it is turned on for the first time; or the mobile phone can initialize the gesture module every time it is turned on, without limitation.
[0138] Initialization refers to restoring the gesture module to its initial settings or state, for example, setting various configuration parameters of the gesture module to a predefined initial state.
[0139] Step ②: The gesture module of the mobile phone sends a first subscription message to the acceleration module, which is used to instruct the acceleration module to report acceleration data.
[0140] Step 3: The acceleration module of the mobile phone returns the first subscription receipt to the gesture module, including the acceleration data.
[0141] Optionally, in step ②, the first subscription message sent by the gesture module of the mobile phone to the acceleration module instructs the acceleration module to report acceleration data at a frequency of 100 Hz. Accordingly, in step ③, the acceleration module of the mobile phone returns a first subscription receipt to the gesture module, indicating that it will report acceleration data at a frequency of 100 Hz.
[0142] In some embodiments, step ② above can also be replaced by: the gesture module of the mobile phone sends a first registration message to the acceleration module to instruct the acceleration module to report acceleration data. Correspondingly, step ③ above can also be replaced by: the acceleration module of the mobile phone returns the first registration callback to the gesture module, i.e., returns the acceleration data.
[0143] In the embodiment of the present application, after steps ① to ③, the acceleration module continuously reports acceleration data to the gesture module at a frequency of 100 Hz.
[0144] Optionally, steps ① to ③ above may be performed before step 201, or after step 201; or in step 202; or, steps ① to ③ above may also be performed after the mobile phone is turned on, without limitation. This embodiment of the application takes steps ① to ③ as an example of being performed in step 202.
[0145] Step ④: The screen-off application of the mobile phone responds to the screen-off operation and triggers the main screen to display the screen-off interface.
[0146] For example, as shown in Figure 6 above, the dream service in the framework layer can register a listener with the power manager and, upon detecting that the phone has entered the screen-off state, launch the screen-off application. The screen-off application then responds to the screen-off operation by triggering the main screen to display the screen-off interface. Optionally, the screen-off application can call a function (onDreamingStarted()) to trigger the main screen to display the screen-off interface. It is understood that in the folded state, the back screen of the phone is black.
[0147] As another example, when the phone exits the screen-off state, the dream service cancels its registration and monitoring with the power manager. For example, the dream service calls a function (onDreamingStop()) to cancel its registration and monitoring with the power manager.
[0148] Optionally, in an embodiment of the present application, the screen-off application of the mobile phone responds to the screen-off operation and turns on the back screen screen-off function. The back screen screen-off function refers to the mobile phone displaying the screen-off interface on the back screen and the main screen being black when the back screen of the mobile phone is facing up.
[0149] S203: The mobile phone's AP subscribes to the event of the mobile phone status from the Sensor Hub, which is used to instruct the Sensor Hub to report the mobile phone's status to the AP.
[0150] For example, in response to the screen-off operation, the main screen is triggered to display the screen-off interface, and the AP is triggered to subscribe to the back-screen-up event from the Sensor Hub, which is used to instruct the Sensor Hub to report information indicating the back-screen-up state to the AP when it determines that the phone is in the back-screen-up state. It is understandable that in this embodiment of the present application, the Sensor Hub can continuously detect the state of the phone and report information indicating the back-screen-up state to the AP when it determines that the phone is in the back-screen-up state.
[0151] After the mobile phone's AP subscribes to the back-screen-up event from the Sensor Hub, the mobile phone's AP subscribes to the inverted event from the Sensor Hub, which instructs the Sensor Hub to report information indicating the inverted state to the AP when it determines that the mobile phone is in the inverted state. It is understood that in this embodiment of the application, the Sensor Hub can continuously detect the status of the mobile phone and report information indicating the inverted state to the AP when it determines that the mobile phone is in the inverted state.
[0152] Exemplarily, still as shown in FIG8 , S203 may specifically include steps ⑤ to ⑥.
[0153] Step ⑤: The screen-off application of the mobile phone sends a second subscription message to the gesture module, which is used to instruct the gesture module to report the back-screen-up state.
[0154] Optionally, the phone's screen-off application responds to the screen-off operation by enabling the screen-off display function and sending a second subscription message to the gesture module to subscribe to the back-screen-up event, thereby instructing the gesture module to report the back-screen-up state. When the folding screen is folded, the screen-off display function triggers the main screen to display the screen-off interface. In the folded state, the back screen is black.
[0155] For example, the phone's screen-off application can call a function (enableMotionRotation()) to send a second subscription message to the gesture module. Alternatively, the phone's screen-off application can replace the second subscription message with: the phone's screen-off application registers a listener with the gesture module, including a method for monitoring the back-screen-up state (such as extDeviceEventListener).
[0156] Step 6: The screen-off application of the mobile phone sends a third subscription message to the gesture module, which is used to instruct the gesture module to report the reverse status.
[0157] For example, after the phone's screen-off app subscribes to the gesture module for the back-screen-up event, the phone's screen-off app also subscribes to the gesture module for the upside-down event, instructing the gesture module to report the upside-down state. Based on this, the phone's hand-held module detects the phone's state and determines whether the phone is upside down based on acceleration data. If the phone is determined to be upside down, it reports information indicating the upside-down state to the phone's screen-off app.
[0158] Optionally, the screen-off application of the mobile phone responds to the screen-off event by enabling the inverted screen blacking function and sending a third subscription message to the gesture module to subscribe to the inverted screen event, thereby instructing the gesture module to report the inverted screen state. The inverted screen blacking function is used to trigger the phone's screen to go black when the phone is in the inverted screen state.
[0159] Among them, the upside-down black screen function is used to indicate that the phone is in the upside-down state, triggering the screen to go black, including the main screen display area and the back screen display area. In the folded state, the back screen itself is black, and the upside-down black screen function is used to indicate that the phone is in the upside-down state, triggering the phone's main screen to go black.
[0160] For example, the phone's screen-off application can call a function (onSetUp()) to send a third subscription message to the gesture module. Optionally, the phone's screen-off application can replace the third subscription message with: the phone's screen-off application registers a listener with the gesture module, including a method for listening for inverted events (such as extDeviceEventListener).
[0161] In the embodiment of the present application, step ⑤ is executed before step ⑥, that is, the screen-off application of the mobile phone first subscribes to the back screen facing up event from the gesture module, and then subscribes to the inverted event. This is because: the gesture module detects that the mobile phone is in the inverted state for a short time (for example, 100ms), while the gesture module detects that the mobile phone is in the back screen facing up state for a long time (for example, 300ms). If the screen-off application of the mobile phone first subscribes to the inverted event from the gesture module, and then subscribes to the back screen facing up event, then, when the mobile phone is flipped over (that is, the main screen faces down and the back screen faces up), the gesture module of the mobile phone will first report to the screen-off application the information indicating the inverted state, and then report the information indicating the back screen facing up. In this way, the screen-off application of the mobile phone will first perform the power-off operation, and then perform the power-on operation, which will result in the back screen being unable to be lit, or the response time for the back screen to be lit is long.
[0162] Based on this, in an embodiment of the present application, the screen-off application of the mobile phone first subscribes to the back screen facing up event to the gesture module, and then subscribes to the inverted event. In this way, when the mobile phone is flipped over, the gesture module of the mobile phone first reports to the screen-off application the information indicating the back screen facing up state, triggering the mobile phone to display the screen-off interface on the back screen, and the main screen to go black. Correspondingly, if the gesture module of the mobile phone reports to the screen-off application the information indicating the inverted state, it triggers both the main screen and the back screen to go black. It can be understood that in this case, the back screen-off function of the mobile phone is in the off state, that is, the logic of the back screen-off in the mobile phone is not effective.
[0163] Optionally, when the phone's foldable screen is in the folded state, each time it enters the screen-off state, the screen-off application will subscribe to the gesture module for both the back-screen-up event and the back-screen-down event. Each subscription will first subscribe to the back-screen-up event, followed by the back-screen-down event.
[0164] Optionally, when the phone's foldable screen is in the folded state and exits the screen-off state, the phone's screen-off application cancels its subscription to the gesture module for the back-screen-up and back-up events, thereby reducing phone power consumption. There is no restriction on the order in which the phone's screen-off application cancels its subscription to the gesture module for the back-screen-up and back-up events.
[0165] Furthermore, after step ⑤, S203 may also include: step ⑤-1: the gesture module of the mobile phone sets the upside-down interception flag (or the first flag), which is used to not report the information indicating the upside-down state to the screen-off application of the mobile phone when the gesture module detects that the mobile phone is in the upside-down state.
[0166] Optionally, after the gesture module of the mobile phone receives the back screen facing up event subscribed by the screen off application, it sets the upside down interception flag (cur_motion_type_back_screen) to true, instructing the gesture module not to report the information indicating the upside down state to the screen off application, that is, to intercept the information of the upside down state.
[0167] Optionally, when the gesture module of the mobile phone sets the back-screen interception flag (cur_motion_type_back_screen) to false, the gesture module is instructed to report information indicating the back-screen state to the screen-off application.
[0168] S204: In response to the user's flipping operation, the mobile phone displays the screen-off interface on the back screen, and the main screen is black.
[0169] It is understandable that when the mobile phone is in the folded state, in response to the user's flipping operation, the main screen of the mobile phone faces downward and the back screen faces upward.
[0170] Optionally, the mobile phone displays the screen-off interface on the back screen and the main screen is black, including: the mobile phone switches from the main screen to the back screen displaying the screen-off interface, and the main screen is black.
[0171] Optionally, the phone's Sensor Hub reports information indicating the back-screen-up state to the AP, but does not report information indicating the upside-down state. Based on the information indicating the back-screen-up state, the phone displays the screen-off interface on the back screen, and the main screen goes black.
[0172] In some embodiments, users can set the screen-off display function in their phones to display in various modes, including all-day display, scheduled display, or touch display. All-day display means that the screen-off interface will be displayed whenever the phone enters the screen-off state throughout the day. Scheduled display means that the screen-off interface will be displayed whenever the phone enters the screen-off state within the time range set by the user. For example, if the user sets the screen-off display function to be enabled within the time range of 8:00-18:00, then when the phone detects a screen-off event, if the current time is between 8:00-18:00, the phone will display the screen-off interface after the screen is off; otherwise, the phone will enter a black screen state. Touch display means that the time for each screen-off interface to be displayed after the phone enters the screen-off state is fixed. If no user touch operation is detected, the phone will stop displaying the screen-off interface and enter a black screen state. Correspondingly, if a user touch operation is detected in the black screen state, the phone will display the screen-off interface again.
[0173] For example, when the display mode of the screen-off display function is all-day display, after the mobile phone switches from the main screen to the back screen displaying the screen-off interface, the above-mentioned screen-off interface needs to be displayed when the back screen of the mobile phone enters the screen-off state throughout the day.
[0174] As another example, when the display mode of the screen-off display function is timed display, after the mobile phone switches from the main screen to the back screen displaying the screen-off interface, if the current time is within the time range set by the user, the mobile phone displays the screen-off interface on the back screen, otherwise it enters a black screen state.
[0175] As another example, when the display mode of the screen-off display function is touch display, the duration of each screen-off interface display after the phone enters the screen-off state is fixed. For example, after the phone enters the screen-off state, the screen-off interface is displayed for 6 seconds each time. Assuming that the phone displays the screen-off interface on the main screen for 3 seconds, and then switches from the main screen to the back screen to display the screen-off interface, the back screen will also display the screen-off interface for 3 seconds. After the back screen detects a user touch operation, the back screen will display the screen-off interface for 6 seconds.
[0176] For example, as shown in FIG9 , S204 may specifically include steps ⑦ to
[0177] Step 7: The gesture module of the mobile phone responds to the user's flipping operation and determines that the mobile phone is in the back-screen-up state.
[0178] Optionally, a gesture module of the mobile phone can detect the state of the mobile phone. After detecting that the mobile phone is flipped, the gesture module of the mobile phone determines that the mobile phone is in the back-screen-up state based on acceleration data.
[0179] It should be understood that since the screen-off application of the mobile phone first subscribes to the back-screen-up event from the gesture module, when the gesture module of the mobile phone detects that the mobile phone is flipped, the gesture module first determines whether the mobile phone is in the back-screen-up state based on the acceleration data.
[0180] Optionally, the phone's acceleration module calls a function (handle_acc_data) to return a second subscription receipt, including the acceleration data, to the gesture module. The gesture module then calls a function (back_screen_up_mode(&acc_data,&direction,this)) to calculate the angle between the phone's screen and the horizontal plane to determine whether the phone is facing up.
[0181] For example, if the gesture module of the mobile phone calculates that the angle between the display screen of the mobile phone and the horizontal plane is within the range of [-10°, +10°], the gesture module of the mobile phone may determine that the mobile phone is in the rear-screen-up state.
[0182] To improve the accuracy of determining that the phone is in the rear-screen-up position, in some embodiments, the phone's gesture module may calculate the angle between the phone's display screen and the horizontal plane based on acceleration data from consecutive Z frames. If the angles calculated by the phone's gesture module based on acceleration data from consecutive Z frames are all within the range of [-10°, +10°], the phone's gesture module determines that the phone is in the rear-screen-up position.
[0183] Correspondingly, if the gesture module of the mobile phone calculates the angle between the display screen of the mobile phone and the horizontal plane to be within the range of [-15°, +15°] based on the acceleration data of continuous Z frames, the gesture module of the mobile phone can determine that the mobile phone has exited the back-screen-up state.
[0184] It should be noted that the value of Z can be set according to actual needs and is not limited. For example, Z can be 30 frames, 40 frames, or 50 frames.
[0185] Step ⑧: The gesture module of the mobile phone reports information indicating that the back screen is facing up to the screen off application.
[0186] Exemplarily, the information of the back-screen-up state may be expressed as: motion=18, which is used to indicate that the mobile phone is in the back-screen-up state.
[0187] Optionally, the gesture module of the mobile phone can call the interface (pb_send_sensor_stream_event) to report information indicating the back screen facing upward to the screen off application, that is, report motion=18.
[0188] Step 9: The screen-off application of the mobile phone responds to the information indicating that the back screen is facing up, triggering the mobile phone to display the screen-off interface on the back screen and the main screen is black.
[0189] Optionally, the screen-off application of the mobile phone responds to the information indicating that the back screen is facing up and turns on the back screen screen-off function, wherein the back screen screen-off function is used to instruct the mobile phone to display the screen-off interface on the back screen and the main screen is black.
[0190] In some embodiments, after step ⑨, the S204 may further include: step ⑩: the gesture module of the mobile phone determines that the mobile phone is in an upside-down state in response to the user's flipping operation.
[0191] It should be understood that since the phone's screen-off application first subscribes to the back-screen-up event and then subscribes to the upside-down event to the gesture module, the phone's gesture module will determine whether the phone is in the upside-down state based on the acceleration data after determining that the phone is in the back-screen-up state.
[0192] Optionally, the phone's acceleration module calls a function (handle_acc_data) to return a third subscription receipt, including acceleration data, to the gesture module. The gesture module then calls a function (handle_head_down_with_als_type) to calculate the angle between the phone's display and the horizontal plane to determine whether the phone is in an upside-down position.
[0193] For example, if the gesture module of the mobile phone calculates that the angle between the display screen of the mobile phone and the horizontal plane is within the range of [-2°, +2°], the gesture module of the mobile phone may determine that the mobile phone is in an upside-down state.
[0194] Optionally, the phone's gesture module may calculate the angle between the phone's display screen and the horizontal plane based on the acceleration data from consecutive Z frames. If the angles between the phone's display screen and the horizontal plane calculated by the phone's gesture module based on the acceleration data from consecutive Z frames are all within the range of [-2°, +2°], the phone's gesture module determines that the phone is in an inverted state, thereby improving the accuracy of determining that the phone is in an inverted state.
[0195] Correspondingly, if the gesture module of the mobile phone calculates the angle between the display screen of the mobile phone and the horizontal plane based on the acceleration data of continuous Z frames to be within the range of [-5°, +5°], the gesture module of the mobile phone can determine that the mobile phone has exited the inverted state.
[0196] step The gesture module of the mobile phone reads the first flag bit.
[0197] Optionally, the first flag bit can be represented as: (cur_motion_type_back_screen). If the first flag bit is true, it indicates that the gesture module does not report information indicating the back-up state to the screen-off application. If the first flag bit is false, it indicates that the gesture module reports information indicating the back-up state to the screen-off application.
[0198] step If the first flag is true, the gesture module of the mobile phone does not report information indicating the inverted state to the screen-off application.
[0199] For example, when the phone's gesture module determines that the phone is in an upside-down state and the phone's screen-off app subscribes to the back-screen-up event, the phone's gesture module does not report information indicating the upside-down state to the screen-off app and instead detects the phone's state based on acceleration data. For example, the phone's gesture module returns to the previous logic and calls the function (back_screen_up_mode(&acc_data,&direction,this)) to detect the phone's state.
[0200] Optionally, each time the gesture module of the mobile phone determines that the mobile phone is in an upside-down state, it reads the first flag bit and determines whether the first flag bit is true.
[0201] In the embodiment of the present application, the screen-off application of the mobile phone first subscribes to the back screen facing up event from the gesture module, and after subscribing to the back screen facing up event, the inverted interception flag is set to the first flag. In this way, when the gesture module of the mobile phone determines that the mobile phone is in the inverted state, if the first flag is true, the gesture module of the mobile phone does not report the information indicating the inverted state to the screen-off application, thereby avoiding the gesture module of the mobile phone reporting the information indicating the back screen facing up and the inverted state to the screen-off interaction, resulting in the back screen being unable to light up, or the back screen lighting response time being long, causing the back screen to display the screen-off interface with a flickering screen.
[0202] In some embodiments, S204 may further include: If the first flag is false, the gesture module of the mobile phone reports information indicating the inverted state to the screen-off application.
[0203] Exemplarily, the information of the upside-down state may be expressed as: motion=19, which is used to indicate that the mobile phone is in the upside-down state.
[0204] Optionally, the gesture module of the mobile phone can call the interface (pb_send_sensor_stream_event) to report information indicating the inverted state to the screen-off application, that is, report motion=19.
[0205] step The phone's screen-off application triggers the main screen to go black in response to the information indicating the inverted state.
[0206] Optionally, the phone's screen-off application, in response to information indicating the inverted state, executes inverted screen blacking logic to trigger a blacking of the main screen. It is understood that when the phone is in the folded state, the back screen is black. Therefore, when the phone is in the folded state and in the inverted state, both the main screen and the back screen of the phone are black.
[0207] For example, the screen-off application of the mobile phone can call a function (SendCommand) to execute the reverse black screen logic (or perform a power-off operation).
[0208] It should be noted that the above embodiment mainly describes the specific implementation method after the mobile phone enters the screen-off state when the screen-off display function of the mobile phone is turned on and the back screen screen-off display function is turned on. It can be understood that when the screen-off display function of the mobile phone is turned on and the back screen screen-off display function is turned off, when the Sensor Hub of the mobile phone determines that the mobile phone is in the upside-down state, it reports information indicating the upside-down state to the AP, and does not report information indicating the back screen facing up state. This is because the back screen screen-off display function of the mobile phone is turned off. Even if the mobile phone determines that the mobile phone is in the back screen facing up state, it will not display the screen-off interface on the back screen. That is, the back screen screen-off logic requires the mobile phone to turn on the back screen screen-off display function. When the Sensor Hub of the mobile phone determines that the mobile phone is in the back screen facing up state, it reports information indicating the back screen facing up state to the AP. Based on the information indicating the back screen facing up state, the screen-off interface is displayed on the back screen, and the main screen is black.
[0209] The above scheme mainly describes the specific implementation method of the foldable screen in the folded state and entering the screen-off state. The following embodiments, combined with the accompanying drawings, mainly describe the specific implementation method of the foldable screen after it changes from the unfolded state to the folded state and enters the screen-off state.
[0210] Please refer to Figure 10, which shows a schematic diagram of a folding screen changing from an unfolded state to a folded state. Exemplarily, the folding screen of the mobile phone displays a light-on screen interface in the unfolded state. In response to the user's flip operation, the mobile phone is in an upside-down state. Furthermore, in response to the user's screen-off operation, since the mobile phone is in an upside-down state, the mobile phone enters a black screen state. In this scenario, after the folding screen is changed from the unfolded state to the folded state, the back screen may fail to light up, that is, the back screen cannot display the screen-off interface.
[0211] To solve the above problems, an embodiment of the present application also provides a screen-off display method, which is applied to an electronic device with the above-mentioned folding screen. It can solve the problem that the back screen cannot be lit after the electronic device enters the screen-off state when it is in an inverted state and the folding screen changes from the unfolded state to the folded state.
[0212] Still taking the aforementioned electronic device as a mobile phone, where the foldable screen of the mobile phone is an outward-folding foldable screen, and the outward-folding foldable screen can fold into a first screen (such as a main screen) and a second screen (such as a back screen) as an example, the technical solution provided by the embodiment of the present application is specifically described. As shown in Figure 11, the screen-off display method may include S301-S304.
[0213] S301: When the folding screen of the mobile phone is unfolded, the main screen and the back screen are lit.
[0214] For example, as shown in Figure 10, when the foldable screen of a mobile phone is unfolded, the main screen and back screen of the mobile phone are illuminated. Here, the illuminated screen refers to the entire area of the mobile phone display being illuminated. In one example, the illuminated screen of the mobile phone includes the mobile phone being in the locked state. In another example, the illuminated screen of the mobile phone includes the mobile phone being in the unlocked state.
[0215] 10 is an example of a mobile phone in a locked state and displaying a lock screen interface. It is understood that when the mobile phone is in an unlocked state, the mobile phone can display an application interface (such as a main interface, a video interface, a chat interface, etc.).
[0216] S302: In response to the user's flipping operation, the screen of the mobile phone faces downward.
[0217] It is understood that when the mobile phone is in the unfolded state, after the mobile phone is flipped, the screen of the mobile phone faces downward, including the main screen display area and the back screen display area. For the description of the main screen and the back screen facing downward, please refer to the above embodiment and will not be repeated here.
[0218] S303: The mobile phone responds to the screen-off operation, and the screen of the mobile phone goes black.
[0219] It should be understood that in this scenario, after the phone enters the screen-off state, since the folding screen of the phone is in the unfolded state and the phone is in the upside-down state, the phone executes the upside-down black screen logic, triggering the phone's screen to go black, including the main screen display area and the back screen display area.
[0220] S304: In response to the folding screen changing from an unfolded state to a folded state, the mobile phone first executes a first operation and then executes a second operation; wherein, the first operation is used to instruct the main screen to display the screen off interface; the second operation is used to instruct the mobile phone to display the screen off interface on the back screen, and the main screen is black.
[0221] Among them, the first operation can be an operation of exiting the inverted black screen logic, and the second operation can be an operation of executing the back screen off logic.
[0222] In an embodiment of the present application, after the mobile phone enters the screen-off state in the upside-down state, when the folding screen changes from the unfolded state to the folded state, the mobile phone first displays the screen-off interface on the main screen; then, the mobile phone displays the screen-off interface on the back screen, and the main screen is black. In this way, the problem that the back screen cannot be lit when the folding screen changes from the unfolded state to the folded state after the mobile phone enters the screen-off state in the upside-down state can be solved.
[0223] For example, as shown in Figure 12, S303-S304 can be implemented by the following steps: Taking the mobile phone application layer including the screen-off application and the sensor hub including the gesture module and the acceleration module as an example, S303-S304 can specifically include steps i-x.
[0224] It should be noted that, in the embodiment shown in FIG12 , the mobile phone can execute the above steps ① to ③ after being turned on. For specific descriptions, reference can be made to the above embodiment and details will not be given here.
[0225] Step i: In response to the screen-off operation, the screen-off application of the mobile phone sends a third subscription message to the gesture module, which is used to instruct the gesture module to report the reverse status.
[0226] It's understandable that the subscription to the back-screen-up event is triggered when the phone's foldable screen enters the screen-off state from the folded state; while the phone's foldable screen is in the unfolded state, if the phone enters the screen-off state, the subscription to the back-screen-up event is triggered. Therefore, when the phone's foldable screen is in the unfolded state, in response to the screen-off operation, the phone's screen-off application subscribes to the back-screen-up event from the gesture module.
[0227] Optionally, when the mobile phone is in the unfolded state, the screen-off application of the mobile phone responds to the screen-off operation, turns on the inverted black screen function, and sends a third subscription message to the gesture module, that is, subscribes to the inverted black screen event.
[0228] For the example description of step i, please refer to the above step ⑥ and will not be repeated here.
[0229] Step II: The gesture module of the mobile phone determines that the mobile phone is in an upside-down state based on the acceleration data.
[0230] Among them, for the example description of step ⅱ, please refer to the above step ⑩ and will not be repeated here.
[0231] Step III: The gesture module of the mobile phone reports information indicating the inverted state to the screen-off application.
[0232] For the example description of step iii, please refer to the above steps. No further details will be given.
[0233] Step IV: The screen-off application of the mobile phone triggers the screen of the mobile phone to go black in response to the information indicating the inverted state.
[0234] For the example description of step ⅳ, please refer to the above steps. No further details will be given.
[0235] Step V: The screen-off application of the mobile phone sets a second flag to indicate that the mobile phone enters an inverted black screen state.
[0236] Exemplarily, the second flag bit can be represented as: g_invert mode.
[0237] Optionally, the phone's screen-off application can call the function (SendCommand) to execute step IV, i.e., execute the inverted black screen logic. Based on this, the phone's screen-off application sets a second flag after calling the function (SendCommand). For example, it sets g_invert mode to true.
[0238] Step ⅵ: When the mobile phone enters the screen-off state and the foldable screen changes from the unfolded state to the folded state, the screen-off application of the mobile phone sends a second subscription message to the gesture module to instruct the gesture module to report the back screen facing up state.
[0239] It is understandable that when the folding screen of the mobile phone is in the folded state and enters the screen-off state, the subscription of the back screen facing up event can be triggered. Therefore, the screen-off application of the mobile phone will send a second subscription message to the gesture module to subscribe to the back screen facing up event.
[0240] For the description of step ⅵ, please refer to the above step ⑤ and will not be repeated here.
[0241] Step ⅶ: When the gesture module of the mobile phone determines that the mobile phone is in the back-screen-up state, it reports information indicating the back-screen-up state to the screen-off application.
[0242] Among them, for the description of step ⅶ, please refer to the above step ⑧ and will not be repeated here.
[0243] Step VIII: The screen-off application of the mobile phone responds to the information indicating that the back screen is facing up, reads the second flag, and executes step ⅸ first based on the second flag, and then executes step X.
[0244] Optionally, the screen-off application of the mobile phone responds to the information indicating that the back screen is facing upward, first turns on the back screen off function, and then reads the first flag bit.
[0245] Optionally, the phone's screen-off application determines whether the phone has entered the upside-down black screen state based on the second flag; if the phone currently enters the upside-down black screen state, the phone's screen-off application first executes step ⅸ (such as exiting the upside-down black screen logic), and then executes step X (such as the back screen off logic).
[0246] For example, if the phone is currently in the upside-down black screen state, the phone's screen-off application first calls the function (SendCommand) to execute the logic for exiting the upside-down black screen, that is, lighting up part of the main screen and displaying the screen-off interface. Then, it calls the function (setDisplayMode) to execute the back screen screen off logic, that is, displaying the screen-off interface on the back screen and turning the main screen black.
[0247] As shown in FIG12 , step ⅸ includes: the screen-off application of the mobile phone triggers the main screen to display the screen-off interface. Step X includes: the screen-off application of the mobile phone triggers the mobile phone to display the screen-off interface on the back screen, and the main screen is black.
[0248] In this embodiment, since the phone enters the screen-off state when inverted, a second flag is set to indicate that the phone has entered the screen-off state. Based on this, when the foldable screen of the phone transitions from the unfolded state to the folded state, the phone can trigger the display of the screen-off interface on the main screen based on the second flag, and then display the screen-off interface on the back screen, with the main screen black. This solves the problem of the back screen not being able to light up when the foldable screen transitions from the unfolded state to the folded state after the phone enters the screen-off state when inverted.
[0249] It should be noted that the contents recorded in each embodiment of the present application can explain the technical solutions in other embodiments of the present application, and the technical features recorded in each embodiment can also be applied in other embodiments, and the technical features in other embodiments can be combined to form a new solution. This application only exemplifies several embodiments for illustration, and does not mean that this application is limited to this.
[0250] An embodiment of the present application provides an electronic device that may include a foldable screen that can be folded to form at least two screens, including a first screen and a second screen. When the foldable screen is folded, the first screen and the second screen face each other. The electronic device also includes a memory and one or more processors; the memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs the various functions or steps performed in the mobile phone described above. The structure of the electronic device can refer to the structure of the electronic device 100 shown in Figure 5 above.
[0251] The present application also provides a chip system for use in an electronic device. As shown in FIG13 , the chip system 1100 includes at least one processor 1101 and at least one interface circuit 1102. The processor 1101 may be the processor 110 shown in FIG5 in the above embodiment. The interface circuit 1102 may be, for example, an interface circuit between the processor 110 and an external memory device, or an interface circuit between the processor and the internal memory device 121.
[0252] The processor 1101 and the interface circuit 1102 can be interconnected via lines. For example, the interface circuit 1102 can be used to receive signals from other devices (such as the memory of the electronic device 100). For another example, the interface circuit 1102 can be used to send signals to other devices (such as the processor 1101). Exemplarily, the interface circuit 1102 can read instructions stored in the memory and send the instructions to the processor 1101. When the instructions are executed by the processor 1101, the electronic device can perform the various functions or steps performed by the mobile phone in the above embodiment. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiments of the present application.
[0253] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the various functions or steps executed by the mobile phone in the above method embodiment.
[0254] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the mobile phone in the above method embodiment.
[0255] It should be noted that the terms "first" and "second" in the specification, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific order. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "multiple" means two or more.
[0256] Furthermore, the terms "include," "comprise," and "have," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0257] It should be understood that in this application, "at least one (item)" refers to one or more. "Multiple" refers to two or more. "At least two (items)" refers to two or three and more than three. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple. “When” and “if” both mean that corresponding measures will be taken under certain objective circumstances. They do not limit the time, nor do they require any judgment action when they are implemented, nor do they mean that there are other limitations.
[0258] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner to facilitate understanding.
[0259] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules according to the system, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0260] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0261] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0262] In addition, the functional units in various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0263] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0264] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A screen-off display method, characterized in that: Applicable to an electronic device including a folding screen, the folding screen can be folded to form a main screen and a back screen, and when the folding screen is in a folded state, the main screen and the back screen are opposite to each other; the electronic device includes a first processor and a second processor; the method includes: When the folding screen is in the folded state, the main screen faces upward, the back screen faces downward, and the back screen is black; the screen-off display function of the electronic device is turned on, the screen-off display function of the back screen is in an turned-on state, and the upside-down black screen display function is in an turned-on state, and in response to the screen-off operation, the main screen displays a screen-off interface; based on the user's flipping operation of the electronic device in the folded state, the main screen faces downward, and the back screen faces upward, the second processor of the electronic device reports first information to the first processor, and does not report second information; the first information is different from the second information; based on the first information, the back screen displays the screen-off interface, and the main screen is black; When the folding screen is in the folded state, the main screen faces upward, the back screen faces downward, and the back screen is black; the screen off display function of the electronic device is turned on, the back screen's screen off display function is in an off state, and the upside-down black screen display function is in an on state, and in response to the screen off operation, the main screen displays a screen off interface; based on the user's flipping operation of the electronic device in the folded state, the main screen faces downward, and the back screen faces upward, and the second processor of the electronic device reports the second information to the first processor, but does not report the first information; based on the second information, the main screen is black, and the back screen is black.
2. The method according to claim 1, characterized in that The first information includes that the electronic device is in a state where the back screen faces upward, and the second information includes that the electronic device is in an upside-down state.
3. The method according to claim 2, characterized in that The second processor of the electronic device reports the first information to the first processor but does not report the second information, including: The second processor of the electronic device determines that the electronic device is in a state where the back screen faces upward, and reports the first information to the first processor; After the second processor of the electronic device reports the first information to the first processor, the second processor of the electronic device determines that the electronic device is in an inverted state and intercepts the second information.
4. The method according to claim 3, characterized in that The second processor of the electronic device determines that the electronic device is in an inverted state, and intercepts the second information, including: The second processor of the electronic device determines that the electronic device is in an upside-down state, and the first processor of the electronic device subscribes to a back-screen-up event from the second processor to intercept the second information; The subscribed back-screen-up event is used to instruct the second processor to report the first information to the first processor when determining that the electronic device is in a back-screen-up state.
5. The method according to claim 4, characterized in that The first processor of the electronic device subscribes to the second processor for a back-screen-up event, including: In response to the screen-off operation, after the main screen displays the screen-off interface, the first processor of the electronic device subscribes to a back-screen-up event from the second processor.
6. The method according to any one of claims 1 to 5, characterized in that The second processor of the electronic device does not report the second information to the first processor, including: The second processor of the electronic device determines that the electronic device is in an inverted state and obtains a first flag bit; wherein the first flag bit is used to indicate whether the second processor intercepts the second information If the first flag bit indicates that the second processor intercepts the second information, the second processor does not report the second information to the first processor.
7. The method according to claim 6, characterized in that The method further comprises: After the first processor of the electronic device subscribes to the second processor for a back-screen-up event, the second processor of the electronic device sets a first flag.
8. A method for displaying a screen off, characterized in that: Applicable to an electronic device including a folding screen, the folding screen can be folded to form a main screen and a back screen, and when the folding screen is in a folded state, the main screen and the back screen face each other in reverse; the method comprises: When the folding screen is in the unfolded state, the folding screen is illuminated; Based on the user's flipping operation on the electronic device in the unfolded state, the folding screen faces downward; the screen-off display function of the electronic device is turned on, the inverted black screen display function is in the turned-on state, and in response to the screen-off operation, the folding screen is black; Based on the user's folding operation of the electronic device in the unfolded state, the main screen faces downward and the back screen faces upward. In response to the folding operation, the main screen displays the screen off interface and the back screen is black; after the main screen displays the screen off interface and the back screen is black, the main screen is black and the back screen displays the screen off interface.
9. The method according to claim 8, characterized in that In response to the folding operation, the main screen displays a screen-off interface, and the back screen is black; After the main screen displays the screen-off interface and the back screen goes black, the main screen goes black and the back screen displays the screen-off interface, including: In response to the folding operation, a second flag is read; wherein the second flag is used to indicate whether the electronic device is in an inverted black screen state; If the second flag indicates that the electronic device is currently in an inverted black screen state, the main screen displays the screen off interface and the back screen is black; after the main screen displays the screen off interface and the back screen is black, the main screen is black and the back screen displays the screen off interface.
10. The method according to claim 9, characterized in that After the folding screen goes black in response to the screen-off operation, the method further includes: The first processor of the electronic device sets the second flag bit.
11. An electronic device, characterized in that: include: A folding screen, a memory and one or more processors; wherein the folding screen can be folded to form a main screen and a back screen, and when the folding screen is in a folded state, the main screen and the back screen are facing each other; The memory stores computer program code, which includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-7; or, executes the method as described in any one of claims 8-10.
12. A chip system, characterized in that: The chip system includes: at least one processor and an interface; The interface is used to receive instructions and transmit them to the at least one processor; the at least one processor executes the instructions so that the electronic device executes the method as described in any one of claims 1-7; or, executes the method as described in any one of claims 8-10.
13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method as claimed in any one of claims 1 to 7; or, execute the method as claimed in any one of claims 8 to 10.