Screen switching method, folding screen device, and storage medium

By locking the inner screen to be on and the outer screen to be off in foldable screen devices, and using the priority of the rewritten form and sensor data to control screen switching, the functional abnormality caused by the overlapping angle of the inner and outer screens is solved, achieving smooth screen switching and an improved user experience.

CN120151424BActive Publication Date: 2026-04-17HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-12-05
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In the intermediate state of foldable screen phones, when the angle between the inner and outer screens overlaps, the requirements for brightness and shutdown differ, leading to functional abnormalities and affecting the user experience.

Method used

By locking the inner screen on and the outer screen off in stand mode, and keeping the inner screen on and the outer screen off when the device changes form, the screen state is controlled by overwriting form priority, and screen switching is determined by combining sensor data and form duration to prevent frequent switching.

Benefits of technology

Ensure smooth screen switching across different device configurations, avoid frequent screen shutdowns, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151424B_ABST
    Figure CN120151424B_ABST
Patent Text Reader

Abstract

The application provides a screen switching method, a folding screen device and a storage medium. According to the method, when a user uses an inner screen of the folding screen device, the inner screen is controlled to be in a bright screen state and an outer screen is controlled to be in an off screen state, regardless of whether a current device form of the folding screen device is in a stand state or a table calendar state. In this way, the inner screen can be in the bright screen state during a shooting process, screen switching is not triggered due to the inner screen being in the table calendar state, the inner screen is not turned off, and the inner screen and the outer screen are not frequently switched due to the inner screen being in the table calendar state and the stand state, thereby ensuring user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of foldable screen device technology, and in particular to a screen switching method, a foldable screen device, and a storage medium. Background Technology

[0002] With the gradual development of flexible screen technology, foldable electronic devices, such as foldable phones, have emerged. Because the inner screen of a foldable phone can fold inwards, allowing it to easily switch between larger and smaller sizes, it has become quite popular.

[0003] Currently, to meet the diverse needs of users in different scenarios, foldable screen phones can present different forms or postures, such as folded (closed) state, unfolded state, and intermediate state. Among them, the intermediate state can be further divided into multiple forms according to business needs.

[0004] For various intermediate forms, there may be a situation where the inner screen areas on both sides of the folding axis overlap. Different forms may have different requirements for the on / off state of the inner and outer screens of the folding phone, which may lead to abnormal operation of the function when the angle overlaps. Summary of the Invention

[0005] To address the aforementioned technical issues, this application provides a screen switching method, a foldable screen device, and a storage medium, aiming to reasonably control the on / off state of the inner and outer screens of the foldable device, prevent frequent switching between the inner and outer screens, ensure the normal operation of current services, and improve the user experience.

[0006] In a first aspect, this application provides a screen switching method applied to a foldable screen device. The foldable screen device includes a first screen and a second screen located on different sides of the foldable screen device. The first screen is a foldable screen. The screen switching method includes: when the foldable screen device is in a stand mode, in response to a received first operation, determining the screen usage requirements of the service corresponding to the first operation; wherein, when the foldable screen device is in stand mode, the first screen is in a lit state and the second screen is in a turned-off state; if the screen usage requirements of the service corresponding to the first operation restrict the use of the first screen, locking the first screen to a lit state and the second screen to a turned-off state, and using the first screen to display the interface corresponding to the service; during the execution of the service by the foldable screen device, when the foldable screen device switches to calendar mode, continuing to use the first screen to display the interface corresponding to the service, and keeping the second screen in a turned-off state; wherein, when the first screen is not locked to a lit state and the second screen to a turned-off state, when the foldable screen device is in calendar mode, the first screen is switched to a turned-off state and the second screen is switched to a lit state.

[0007] Among them, the bracket mode can be described as the bracket state, and the calendar mode can be described as the calendar state.

[0008] Among them, foldable screen devices can be small foldable devices (such as small foldable phones) or large foldable devices (such as large foldable phones).

[0009] The first screen can be considered as the inner screen of the foldable device, and the second screen can be considered as the outer screen of the foldable device.

[0010] Therefore, when users take selfies or shoot from a low angle using the camera on the inner screen of a foldable device, regardless of whether the device is in stand mode or calendar mode, the inner screen will always be on, while the outer screen will be off. This ensures the inner screen remains lit throughout the shooting process, preventing screen switching and the inner screen from being turned off due to the angle of the inner screen changing between calendar and stand modes, thus guaranteeing a smooth user experience.

[0011] According to the first aspect, locking the first screen to be on and the second screen to be off includes: obtaining the user identity verification UID of the application corresponding to the business; and verifying the legitimacy of the application based on the UID.

[0012] When the application is valid, the replica form value corresponding to the support mode is recorded in the storage area corresponding to the replica form. The replica form has higher priority than the physical form. The physical form is the device form determined by the angle data between the first display unit and the second display unit collected by the sensors in the foldable device. The storage area corresponding to the physical form records the physical form value corresponding to the device form determined by the angle data. When the replica form value corresponding to the support mode is recorded in the storage area corresponding to the replica form, the foldable screen device controls the first screen to be on and the second screen to be off according to the replica form value.

[0013] Among them, the replicated form value is, for example, the device form value reported by the foldable screen management service to the device status management service, and the physical form value is, for example, the device form value reported by the device status physical reporting module to the device status management service.

[0014] Therefore, by setting priorities for device form factor values ​​from these two sources, specifically prioritizing the rewritten form factor over the physical form factor, the screen state is always determined using the rewritten form factor value recorded in the storage area corresponding to the rewritten form factor, thus controlling the on / off state of the first and second screens and locking the current screen state.

[0015] According to the first aspect, or any implementation of the first aspect above, the method further includes: when the first screen is locked in a bright state and the second screen is locked in a dark state, in response to the received second operation, determining the screen usage requirements of the service corresponding to the second operation; if the screen usage requirements of the service corresponding to the second operation do not limit the use of the first screen, canceling the locking of the current state of the first screen and the second screen.

[0016] For example, if the first operation is to select the shooting mode of the camera on the first screen side, the second operation is, for example, to deselect the camera on the first screen side.

[0017] Therefore, once it's determined that the user has stopped using the camera on the inner screen of the foldable device for selfies or low-angle shots, the inner screen lock is released. This allows the foldable device to determine its current form based on factors such as the inner screen's angle detected by sensors, its relationship to the horizontal plane, and the duration of the form change. The screen then switches accordingly, ensuring that changes in screen size are timely and that the foldable device can seamlessly switch between different forms to meet diverse user needs.

[0018] According to the first aspect, or any implementation of the first aspect above, the method further includes: when the first screen is locked in a bright state and the second screen is locked in a dark state, monitoring the process of the application corresponding to the business; when an abnormality is detected in the process, canceling the locking of the current state of the first screen and the second screen.

[0019] Among these, abnormal situations may occur, such as the application process being killed or crashing.

[0020] Therefore, when the inner screen is locked, the device state management service directly monitors whether the camera application process is malfunctioning. If an malfunction is detected in the camera application, the lock on the inner screen is immediately released. In this way, during user operation of the foldable device, the device can determine its current form based on factors such as the inner screen's angle detected by sensors, its relationship to the horizontal plane, and the duration of the form change. Based on this determined form change, the screen can be switched accordingly, ensuring that the screen changes promptly with changes in device form and guaranteeing smooth switching between different forms to meet diverse user needs.

[0021] According to the first aspect, or any implementation of the first aspect above, the locking of the current state of the first screen and the second screen is cancelled, including: clearing the overwrite pattern value recorded in the storage area corresponding to the overwrite pattern.

[0022] In this way, when determining the screen state, foldable screen devices will no longer rely on the rewritten form value, but on the physical form value, thereby unlocking the current state of the first and second screens.

[0023] Understandably, the unlocking mentioned in this application does not refer to unlocking the screen and entering the desktop as commonly understood, but rather to removing restrictions on the screen states of the first and second screens. That is, after unlocking the current state of the first and second screens, the first and second screens can switch between operating screens according to the needs of the current business and the form factor of the foldable device, such as switching the first screen from a lit state to a lit state and the second screen from a lit state to a lit state, or vice versa.

[0024] According to the first aspect, or any implementation of the first aspect above, after unlocking the current state of the first screen and the second screen, the method further includes: determining the current device state of the folding device based on the physical form value recorded in the storage area corresponding to the physical form; and when the current device state of the folding screen device changes to calendar mode, switching the first screen from the on state to the off state and the second screen from the off state to the on state.

[0025] When the lock on the first and second screens is released, the foldable device clears the overwrite mode value recorded in the storage area corresponding to the overwrite mode. Therefore, in the absence of an overwrite mode value, the foldable device will use the physical mode value recorded in the storage area corresponding to the physical mode to determine the screen state. In this way, during user operation, the foldable device can determine the current device mode based on factors such as the inner screen angle detected by sensors, its relationship to the horizontal plane, and the duration of the mode's duration. Based on the determined device mode, the screen will switch accordingly, ensuring that screen changes adapt promptly to changes in device mode. This guarantees that the small foldable phone can switch smoothly between different device modes, meeting diverse user needs.

[0026] According to the first aspect, or any implementation of the first aspect above, the application's legitimacy is verified based on the UID, including: determining whether the UID is a system UID and whether it is a platform signature; if the UID is a system UID and is a platform signature, determining that the application is legitimate.

[0027] Among them, the system UID is the system-level UID, which can be represented as systemUID.

[0028] Specifically, adding "android:sharedUserId="android.uid.system"" to the manifest node of the application installation package, and then adding "LOCAL_CERTIFICATE:=platform" to the Android project management file (Android.mk), the application's UID can be regarded as the system UID.

[0029] According to the first aspect, or any implementation of the first aspect above, the first screen includes a camera, and the first operation is a selection operation of a shooting mode using the camera.

[0030] Among them, the shooting mode using the camera located on one side of the first screen (inner screen) can be, for example, a shooting mode that shoots from below, or various shooting modes supported by the selfie mode, such as portrait, smile, etc.

[0031] According to the first aspect, or any implementation of the first aspect above, the shooting mode using the camera includes the upward shooting mode.

[0032] In some embodiments, the upward shooting mode can be divided into a shooting mode using the camera on the outer screen. In other embodiments, the upward shooting mode can also be a shooting mode using the camera on the inner screen.

[0033] The upward shooting mode in this application embodiment takes the use of the inner side camera as an example.

[0034] According to the first aspect, or any implementation of the first aspect above, when the foldable screen device is in stand mode, the included angle between the first display unit and the second display unit of the first screen is within a first included angle range; when the foldable screen device is in calendar mode, the included angle between the first display unit and the second display unit of the first screen is within a second included angle range, and the back shell of the foldable screen device is parallel to the horizontal plane for more than a preset time; wherein, the first included angle range and the second included angle range partially overlap.

[0035] According to the first aspect, or any of the above implementations of the first aspect, the preset duration is 400ms.

[0036] According to the first aspect, or any implementation of the first aspect above, the value of the first included angle range is between [45°, 150°], and the value of the second included angle range is between (0°, 80°].

[0037] The first included angle range corresponds to the included angle value in the support mode (support state), and the second included angle range corresponds to the included angle value in the calendar mode (calendar state). For this range, the overlapping part is [45°, 80°].

[0038] Secondly, this application provides a foldable screen device. The foldable screen device includes: one or more processors; a memory; and one or more computer programs; wherein the memory is coupled to one or more processors, and the one or more computer programs are stored in the memory; when the computer programs are executed by one or more processors, they cause the foldable screen device to execute instructions of the method in the first aspect or any possible implementation thereof.

[0039] Thirdly, this application provides a computer-readable medium for storing a computer program including instructions for performing the methods in the first aspect or any possible implementation thereof.

[0040] Fourthly, this application provides a computer program including instructions for performing the method in the first aspect or any possible implementation thereof.

[0041] Fifthly, this application provides a chip including a processing circuit and transceiver pins. The transceiver pins and the processing circuit communicate with each other via an internal connection path. The processing circuit executes the method in the first aspect or any possible implementation of the first aspect to control the receiving pin to receive signals and to control the transmitting pin to transmit signals. Attached Figure Description

[0042] Figure 1 This is a schematic diagram illustrating the shape of a conventional mobile phone as an example.

[0043] Figure 2 This is a schematic diagram illustrating the shape of a large folding mobile phone as an example.

[0044] Figure 3 This is a schematic diagram illustrating the shape of a small folding phone as an example.

[0045] Figure 4 This is a schematic diagram illustrating the included angle range corresponding to different forms of a foldable screen device;

[0046] Figure 5A This is a schematic diagram illustrating a small folding phone and a large folding phone in a folded state, as examples.

[0047] Figure 5B This is a schematic diagram illustrating a small folding phone and a large folding phone in their unfolded state, as examples.

[0048] Figure 5C This is a schematic diagram illustrating a small folding phone and a large folding phone in a calendar-like configuration.

[0049] Figure 5D This is a schematic diagram illustrating a small folding phone and a large folding phone in a tent-like configuration, as examples.

[0050] Figure 5E This is a schematic diagram illustrating a small folding phone and a large folding phone in a stand-up configuration, as examples.

[0051] Figures 6A to 6C This is an illustrative diagram illustrating the impact of form change on business operations when a small folding phone is selected to shoot from an upward angle with its inner screen.

[0052] Figure 7 This is a schematic diagram of the hardware structure of a small foldable phone as an example.

[0053] Figure 8 A schematic diagram of the software structure of a small foldable phone as an example;

[0054] Figure 9 This is a flowchart illustrating an exemplary screen switching method;

[0055] Figure 10 This is an illustrative diagram showing the small folding phone in stand mode and calendar mode after the inner screen is locked.

[0056] Figure 11 This is a flowchart illustrating yet another screen switching method as an example.

[0057] Figure 12 This is a flowchart illustrating yet another screen switching method as an example. Detailed Implementation

[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0059] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0060] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0061] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0062] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0063] In the embodiments of this application, electronic devices can be divided into two main categories: electronic devices with non-foldable displays and electronic devices with foldable displays.

[0064] Electronic devices whose displays cannot be folded can be simply referred to as "conventional electronic devices" or "conventional devices," etc.

[0065] Among them, electronic devices with foldable displays can be simply referred to as "foldable electronic devices", "foldable screen devices", or "devices with foldable screens", etc.

[0066] Currently, foldable screen devices can be divided into large-folding devices and small-folding devices. Large-folding devices can have a larger folding screen while maintaining the size of a regular device. Small-folding devices can make the body more compact while maintaining the size of a regular mobile phone screen.

[0067] To better understand conventional devices, large folding devices, and small folding devices, let's take a mobile phone as an example, combining... Figures 1 to 3 Please provide an explanation.

[0068] See Figure 1 The diagram illustrates the external shape of a conventional mobile phone.

[0069] See Figure 1 For example, a conventional mobile phone includes a display screen and a back cover. The display screen and the back cover are positioned opposite each other, and their dimensions are basically the same as the external dimensions of a conventional mobile phone and cannot be changed.

[0070] See also Figure 1 For example, a conventional mobile phone may also include multiple cameras, such as a first camera located on the same side as the display screen and a second camera located on the same side as the back cover.

[0071] For example, in some possible implementations, the first camera can be used as a front-facing camera and the second camera can be used as a rear-facing camera.

[0072] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the sole limitation on conventional equipment. In practical applications, the number, location, and shape of the first and second cameras, as well as the overall appearance of conventional equipment, can be set according to business needs, and this application embodiment does not impose any limitations on this.

[0073] See Figure 2 The diagram illustrates the shape of a large folding phone in its unfolded state.

[0074] See Figure 2 For example, a large foldable phone includes an outer screen, a back cover, and an inner screen. The inner screen is a foldable screen, while the outer screen is a non-foldable screen. The size of the inner screen is approximately twice that of the outer screen.

[0075] See also Figure 2 For example, the outer screen of a large folding phone is typically the same size as the display of a regular phone, while the inner screen of a large folding phone is approximately twice the size of the display of a regular phone.

[0076] See also Figure 2 For example, when the large folding phone is in the unfolded state, the inner screen and the outer screen are located on different sides of the large folding phone, while the outer screen and the outer shell are on the same side.

[0077] See also Figure 2 For example, when a large folding phone is in its unfolded state, with the folding axis ( Figure 2 The dashed line shown in (2) is the center line, and the inner screen may include two symmetrical screen areas. In this embodiment, these two symmetrical screen areas are referred to as the first display unit and the second display unit.

[0078] See also Figure 2 For example, a large folding phone may also include multiple cameras, such as a first camera located on the same side as the outer screen and a second camera located on the same side as the back cover.

[0079] For example, in some possible implementations, the first camera can be used as a front-facing camera and the second camera can be used as a rear-facing camera.

[0080] It's worth noting that for large foldable phones, the camera is usually not located on the inner screen side. That is, users view the image on the outer screen when taking photos.

[0081] See also Figure 2For example, for a large folding phone, when it is in the unfolded state, the overall dimensions are basically the same as the inner screen. When it is in the folded (closed) state, the first and second display units of the inner screen are folded along the folding axis, and the overall dimensions are basically the same as the outer screen or back cover.

[0082] In other words, when the large foldable phone is folded, it maintains the size of a regular phone, making it easy for users to hold and carry. When unfolded, it provides a larger screen, making it convenient for users to watch videos and view documents.

[0083] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the sole limitation on the large folding device. In practical applications, the number, location, and shape of the first and second cameras, as well as the overall shape of the large folding device, can be set according to business needs, and this application embodiment does not impose any limitations in this regard.

[0084] In addition, it should be noted that for large folding devices, the inner screen is usually folded horizontally, such as... Figure 2 The large folding phone shown is folded along the X-axis.

[0085] See Figure 3 The diagram illustrates the shape of a small folding phone.

[0086] See Figure 3 For example, a small foldable phone includes an outer screen, a back cover, and an inner screen. The inner screen is a foldable screen, while the outer screen is a non-foldable screen. The size of the inner screen is approximately twice that of the outer screen.

[0087] See also Figure 3 For example, the inner screen of a small folding phone is typically the same size as the display of a regular phone, while the outer screen of a small folding phone is about half the size of the display of a regular phone.

[0088] See also Figure 3 For example, when the small folding phone is in the unfolded state, the inner screen and the outer screen are located on different sides of the small folding phone, while the outer screen and the outer shell are on the same side.

[0089] See also Figure 3 For example, when a small folding phone is in its unfolded state, with the folding axis ( Figure 3 The dashed line shown in (1) is the center line, and the inner screen may include two symmetrical screen areas. In this embodiment, these two symmetrical screen areas are referred to as the first display unit and the second display unit.

[0090] See also Figure 3For example, a small folding phone may also include multiple cameras, such as a first camera located on the same side as the inner screen and a second camera located on the same side as the outer screen.

[0091] For example, in some possible implementations, the first camera can be used as a front-facing camera, and the second camera can be used as a rear-facing camera. In this way, when taking a photo using the first camera, the user can view the image on the inner screen; when taking a photo using the second camera, the user can view the image on the outer screen.

[0092] See also Figure 3 For example, for a small folding phone, when it is in the unfolded state, the overall dimensions are basically the same as the inner screen. When it is in the folded (closed) state, the first and second display units of the inner screen are folded along the folding axis, and the overall dimensions are basically the same as the outer screen or back cover.

[0093] In other words, when the small foldable phone is unfolded, it maintains the size of a regular phone, allowing for work and entertainment using a larger internal screen. When folded, it becomes compact and easy for users to carry.

[0094] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the sole limitation on the small folding device. In practical applications, the number, location, and shape of the first and second cameras, as well as the overall shape of the small folding device, can be set according to business needs, and this application embodiment does not impose any limitations on this.

[0095] In addition, it should be noted that for small foldable devices, the inner screen is usually folded vertically, such as... Figure 3 The small folding phone shown is folded along the Y-axis.

[0096] As discussed above regarding conventional devices, large-folding devices, and small-folding devices, the screen shape of conventional devices is fixed. However, for foldable devices (large-folding and small-folding), different shapes can be achieved by folding the inner screen, such as... Figure 2 , Figure 3 The expanded states shown in (1) and (2) are as follows: Figure 3 The folded state shown in (3) and the intermediate state between the unfolded state and the folded state.

[0097] Currently, to better meet user needs and improve user experience, the intermediate state can be further divided into various forms according to business requirements, such as stand state, calendar state, and tent state. These forms can be classified based on factors such as the angle between the first and second display units of the inner screen, the relationship between the back cover and the horizontal plane, and the duration.

[0098] In this embodiment of the application, the surface where the outer screen of the foldable screen device is located is referred to as "surface A", and the surface where the back cover is located is referred to as "surface B".

[0099] To facilitate understanding, the above-mentioned form of the foldable screen will be explained below with reference to the accompanying drawings.

[0100] See Figure 4 For example, in one possible implementation, the angle between the first display unit and the second display unit of the inner screen of the foldable screen device can be agreed to be within the range of 0° to 45°, and the foldable screen device is in a folded state or a closed state. This application uses the folded state description in its embodiments.

[0101] Understandably, when a foldable device is in a folded state, the inner screen is inconvenient to operate. Therefore, in this configuration, the foldable device will switch to operating the outer screen, meaning the outer screen will be on while the inner screen is off.

[0102] For example, as one possible implementation, in the folded state, the outer screen of the foldable device can display a default interface (such as the interface of an application that does not involve user privacy) or a lock screen interface. This application embodiment does not limit this.

[0103] See Figure 5A (1) illustrates an example of a small folding phone in a folded state. Figure 5A As shown in (1), in this form, the interface displayed on the outer screen of the small folding phone is, for example, a lock screen interface that displays time and date information.

[0104] See Figure 5A (2) illustrates an example of a large folding phone in a folded state. Figure 5A As shown in (2), in this form, the external screen of the large folding phone displays, for example, a lock screen that displays time information, date information, and battery information.

[0105] In this way, users can view the time, date, or access other applications through the external screen of the foldable device.

[0106] In addition, it should be noted that when the foldable screen device is in the folded state, if the foldable screen device does not receive any user operation on the external screen, or operation on the mechanical buttons (such as volume buttons) on the side frame of the foldable screen device, or if the external screen is not playing multimedia content, the foldable screen device can control the external screen to turn off, thereby reducing power consumption.

[0107] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0108] See also Figure 4 For example, in one possible implementation, the angle between the first display unit and the second display unit of the inner screen of the foldable screen device can be agreed to be within the range of 150° to 180°, and the foldable screen device is in the unfolded state.

[0109] Understandably, when a foldable device is in its unfolded state, users typically use the relatively larger inner screen. Therefore, in this configuration, the foldable device switches to inner screen operation, meaning the inner screen is on while the outer screen is off.

[0110] For example, as one possible implementation, in the unfolded state, the inner screen of the foldable device can display a default interface (such as the interface of an application that does not involve user privacy), a lock screen, an unlocked desktop, or the interface of an application currently running in the foreground. This application embodiment does not limit this.

[0111] See Figure 5B (1) illustrates an example of a small folding phone in its unfolded state. Figure 5B As shown in (1), in this form, the inner screen of the small folding phone displays, for example, a lock screen that displays time and date information.

[0112] See Figure 5B (2) illustrates an example of a large folding phone in its unfolded state. Figure 5B As shown in (2), in this form, the inner screen of the large folding phone displays, for example, a lock screen that displays time information, date information, and battery information.

[0113] In this way, users can view the time, date, or access other applications through the inner screen of the foldable device.

[0114] In addition, it should be noted that when the foldable screen device is in the unfolded state, if the foldable screen device does not receive any user operation on the inner screen, or operation on the mechanical buttons (such as volume buttons) on the side frame of the foldable screen device, or if the inner screen is not playing multimedia content, the foldable screen device can control the inner screen to turn off, thereby reducing power consumption.

[0115] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0116] See also Figure 4 For example, in one possible implementation, it can be agreed that the angle between the first display unit and the second display unit of the inner screen of the foldable screen device is within the range of 0° to 80°, and the B-side of the foldable screen device is parallel to the horizontal plane. The foldable screen device maintains this form for more than a set time, such as 400ms, and the foldable screen device is in calendar state.

[0117] In this embodiment, the horizontal surface can be, for example, a desktop. The duration can be set according to business needs, which will not be discussed in this application.

[0118] Understandably, in a scenario where a foldable device is in calendar mode, its shape resembles a calendar placed on a table. In this form, the inner screen is inconvenient to operate, so the foldable device will switch to operating the outer screen, that is, turn on the outer screen and turn off the inner screen.

[0119] Since a foldable screen device in calendar mode looks like a calendar placed on a desktop, it can display time and date information on the outer screen so that users can check it at any time.

[0120] See Figure 5C (1) illustrates, by way of example, a small folding mobile phone in calendar mode. Figure 5C As shown in (1), in this form, the interface displayed on the outer screen of the small folding phone includes information such as the current system time and date.

[0121] See Figure 5C (2) illustrates an example of a large folding mobile phone in calendar mode. Figure 5C As shown in (2), in this form, the interface displayed on the outer screen of the large folding phone includes, for example, the current system time, the date information of the day, the date of the set number of days (such as 7 days), the weather, and the icons of commonly used applications.

[0122] In this way, users can view the time, date, or access other applications through the external screen of the foldable device.

[0123] Furthermore, it should be noted that, in one possible implementation where the foldable screen device is in calendar mode, for example, if the angle between the first display unit and the second display unit is always within the range of 0° to 80° and the B-side is always parallel to the horizontal plane, the outer screen of the foldable screen device can always be lit up to display the above information.

[0124] For example, in another possible implementation, if the foldable screen device does not receive any user operation on the external screen, or operation of mechanical buttons (such as volume buttons) on the side frame of the foldable screen device, or if the external screen is not playing multimedia content after the foldable screen device is in calendar state, the foldable screen device can control the external screen to turn off, thereby reducing power consumption.

[0125] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0126] See also Figure 4 For example, in one possible implementation, it can be agreed that the angle between the first display unit and the second display unit of the inner screen of the foldable screen device is within the range of 0° to 100°, and the foldable screen device maintains this form for more than a set time, such as 400ms, and the foldable screen device is in tent state.

[0127] Understandably, in a scenario where a foldable screen device is in tent mode, the bezel on one side of the outer screen and the bezel on the opposite side of the back shell are in contact with a table or other object, making the foldable screen look like a small tent. In this configuration, the inner screen is inconvenient to operate, so the foldable screen device will switch to operating the outer screen, i.e., turn on the outer screen and turn off the inner screen.

[0128] For example, as one possible implementation, in tent mode, the outer screen of the foldable screen device can display a default interface (such as the interface of an application that does not involve user privacy), a lock screen, an unlocked desktop, or the interface of an application currently running in the foreground. This application embodiment does not limit this.

[0129] See Figure 5D (1) illustrates an example of a small folding mobile phone in a tent-like configuration. Figure 5D As shown in (1), in this form, the interface displayed on the outer screen of the small folding phone is, for example, an interface that includes information such as the current system time and date.

[0130] See Figure 5D (2) illustrates an example of a large folding mobile phone in a tent-like configuration. Figure 5DAs shown in (2), in this form, the interface displayed on the outer screen of the large folding phone includes, for example, the current system time, the date information of the day, the date of the set number of days (such as 7 days), the weather, and the icons of commonly used applications.

[0131] In this way, users can use the external screen of the foldable device to view the time and date, access other applications, or watch multimedia content.

[0132] Furthermore, it should be noted that, in one possible implementation where the foldable screen device is in tent mode, for example, if the angle between the first display unit and the second display unit is always within the range of 0° to 100°, the outer screen of the foldable screen device can always be lit up to display the above information.

[0133] For example, in another possible implementation, if the foldable screen device is in tent mode and does not receive any user operation on the external screen, operation on the mechanical buttons (such as volume buttons) on the side frame of the foldable screen device, or if the external screen is not playing multimedia content, the foldable screen device can control the external screen to turn off, thereby reducing power consumption.

[0134] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0135] Furthermore, it should be noted that since the angle ranges corresponding to the calendar mode and the tent mode overlap, when the angle range is between 0° and 80°, flipping the foldable screen device in calendar mode and placing it upside down on a table will switch the foldable screen to tent mode. Similarly, flipping the foldable screen device in tent mode and placing it upside down on a table will switch the foldable screen to calendar mode.

[0136] Furthermore, since the outer screen is used for all operations when the foldable screen device is in calendar or tent mode, the device does not need to perform screen switching operations when switching between these modes; simply keep the outer screen on and turn off the inner screen.

[0137] Furthermore, understandably, in the tent configuration, the first display unit, the second display unit, and the desktop form a triangular structure, which is therefore more stable.

[0138] See also Figure 4 For example, in one possible implementation, the angle between the first display unit and the second display unit of the inner screen of the foldable screen device can be agreed to be within the range of 45° to 150°, and the foldable screen device is in the support state.

[0139] Understandably, when a foldable device is in stand mode, users typically use the relatively larger inner screen. Therefore, in this configuration, the foldable device switches to inner screen operation, meaning the inner screen is on while the outer screen is off.

[0140] For example, as one possible implementation, in the stand mode, the inner screen of the foldable screen device can display a default interface (such as the interface of an application that does not involve user privacy), a lock screen, an unlocked desktop, or the interface of an application currently running in the foreground. This application embodiment does not limit this.

[0141] See Figure 5E (1) illustrates an example of a small folding phone in a stand-up configuration. Figure 5E As shown in (1), in this form, the inner screen of the small folding phone displays, for example, a lock screen that displays time and date information.

[0142] See Figure 5E (2) illustrates an example of a large folding phone in a stand-up configuration. Figure 5E As shown in (2), in this form, the inner screen of the large folding phone displays, for example, a lock screen that displays time information, date information, and battery information.

[0143] In this way, users can view the time, date, or access other applications through the inner screen of the foldable device.

[0144] In addition, it should be noted that when the foldable screen device is in stand mode, if the foldable screen device does not receive any user operation on the inner screen, or operation on the mechanical buttons (such as volume buttons) on the side frame of the foldable screen device, or if the inner screen is not playing multimedia content, the foldable screen device can control the inner screen to turn off, thereby reducing power consumption.

[0145] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0146] It should be noted that, in the embodiments of this application, the included angle range corresponding to various shapes may include the endpoints.

[0147] In addition, it should be noted that when both the inner and outer screens of the foldable device are black, the sensors in the foldable device will report the sensor data collected during the process of the user folding the inner screen. When the value of the sensor (such as the Hall sensor) changes, the foldable device will decide whether to control the inner screen to light up (turn on the inner screen) based on the changing angle.

[0148] See also Figure 4For example, in one possible implementation, it can be agreed that the angle between the first display unit and the second display unit of the inner screen of the foldable screen device changes within the range of 10° to 15°. The foldable screen device will light up the inner screen when it is in black, while the outer screen remains black.

[0149] Furthermore, after the inner screen is lit, the foldable screen device can determine which of the above-mentioned forms the foldable screen device is in based on factors such as the current angle between the first display unit and the second display unit, the relationship between the B-side and the horizontal plane, and the duration of the illumination. In turn, it can control the inner and outer screens to make them be in the state specified by the current form (on or off).

[0150] As described above regarding the various forms that foldable screen devices can present, the stand mode and calendar mode appear similar in appearance, and their corresponding angle ranges overlap, such as 45° to 80°. However, these two modes have different requirements for the on / off state of the inner and outer screens of the foldable phone. The stand mode requires the inner screen to be on while the outer screen is off. The calendar mode requires the outer screen to be on while the inner screen is off. Therefore, when the angle between the first and second display units of the inner screen of the foldable screen device changes from 80°–150° to within the range of 45°–80°, and the B-side of the foldable screen device is parallel to the horizontal plane, and the foldable screen device maintains this form for more than a set duration, such as 400ms, the conditions for the calendar mode are met, and the foldable screen device will switch to outer screen operation, i.e., turn on the outer screen and turn off the inner screen.

[0151] However, in real-world usage scenarios, users may still prefer the foldable device to be in stand mode. To adjust to the ideal viewing angle, the inner and outer screens frequently switch between on and off as the user folds the first display unit and changes the angle between it and the second display unit. This not only affects the user experience but can also cause malfunctions in currently used functions, such as the inability to play multimedia content, use the camera on the inner screen, or view footage from the camera on the outer screen through the inner screen.

[0152] This application uses a small folding phone as an example to illustrate the impact of changes in the form of the small folding phone on the photography process when a user uses the inner screen of the small folding phone to view the image from the camera on the inner screen side or the camera on the outer screen side to take a picture.

[0153] See Figure 6A(1) exemplarily illustrates an interface diagram of the inner screen display of a small folding phone in an unfolded state. Exemplarily, interface 10a includes icons for multiple applications (hereinafter referred to as "applications"), such as icons for clock, calendar, gallery, memo, camera, contacts, messages, and phone. In some embodiments, when a user clicks / touches the camera icon 10a-1 in interface 10a, the small folding phone responds to the operation by displaying... Figure 6A Interface 10b is shown in (2).

[0154] See Figure 6A In example (2), interface 10b includes multiple icons and options, such as an icon for opening the gallery application, a shutter icon 10b-1, an icon for switching between front and rear cameras, and shooting modes selectable by the user, such as aperture, night scene, portrait, photo, low-angle shot, video recording, and smile modes. The low-angle shot mode refers to the user shooting the image from a low angle upwards. In some embodiments, the low-angle shot mode uses the camera located on the inner screen side. In other embodiments, the low-angle shot mode may also use the camera located on the outer screen side.

[0155] For example, in some embodiments, the user clicks the "Shoot from below" option on interface 10b, or swipes the shooting mode selection list to the left to move the "Shoot from below" option to the middle position (the current position of the "Take Photo" option), or switches the currently used camera to the camera located on the inner screen by toggling the front and rear camera icons. The foldable phone responds to this operation by displaying... Figure 6B Interface 10c is shown in Figure (1). In some embodiments, the user folds the inner screen, placing the small folding phone in a stand state. Figure 6B As shown in Figure (2), the angle between the first display unit and the second display unit is 90°. Then, the small folding phone in the stand mode is placed on the table, freeing up the hands for shooting. For example, the camera on the outer screen side can be used to shoot from below, or the camera on the inner screen side can be used to take a selfie. Furthermore, since the inner screen of the small folding phone is lit in the stand mode, the user can directly preview the image through the inner screen during the shooting process, thereby adjusting the shooting angle.

[0156] For example, in some embodiments, taking a selfie using a small folding phone placed on a table and in stand mode, the user may adjust the angle between the first and second display units to achieve the desired shooting effect during the selfie process. For instance, the angle may be adjusted from 90° to a range of 45° to 80°. Figure 6C The style shown in (1) has been adjusted to Figure 6CThe pattern shown in (2) is as follows. When the angle between the first display unit and the second display unit of the inner screen of the small folding phone is within the range of 45° to 80°, and the B side of the small folding phone is placed horizontally on the table, and the small folding phone maintains this form for more than a set time, such as 400ms, it will be judged that the conditions of the calendar state are met, and then the operation will switch from the inner screen operation to the outer screen operation, that is, the outer screen will be lit and the inner screen will be turned off, causing the ongoing selfie business to be interrupted.

[0157] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0158] In view of this, embodiments of this application provide a method suitable for Figure 3 The screen switching method shown is for small folding devices or folding screen devices with cameras on the inner screen side. It aims to reasonably control the on / off state of the inner and outer screens of the folding device, prevent frequent switching between the inner and outer screens, ensure the normal operation of current business, and improve the user experience.

[0159] To better understand the screen switching scheme provided in the embodiments of this application, before describing the screen switching scheme of the embodiments of this application, the hardware and software structures of the foldable screen devices to which the embodiments of this application are applicable will first be described with reference to the accompanying drawings. For ease of explanation, the embodiments of this application use a foldable screen device as an example. Figure 3 Take, for example, a small folding phone with the shape shown.

[0160] See Figure 7 The diagram illustrates a hardware structure of a small foldable phone 100 according to an embodiment of this application.

[0161] like Figure 7 As shown, the small folding phone 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 sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a first display screen 194, a second display screen 195, and a subscriber identification module (SIM) card interface 196, etc.

[0162] Specifically, in this embodiment, the first display screen 194 can be configured as a foldable display screen, serving as the inner screen of the small foldable phone 100. The second display screen 195 can be configured as a non-foldable display screen, serving as the outer screen of the small foldable phone 100. For the positional and dimensional relationship between the first display screen 194 and the second display screen 195, please refer to [reference needed]. Figure 3 The embodiments shown are not described in detail here.

[0163] Processor 110 may include one or more processing units, such as: application processor (AP), modem, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0164] The controller can serve as the central nervous system and command center of the foldable phone 100. It can generate operation control signals based on instruction operation codes and timing signals to control the fetching and execution of instructions.

[0165] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the foldable phone 100, and can also be used for data transfer between the foldable phone 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as augmented reality (AR) devices.

[0166] The charging management module 140 receives charging input from the 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 foldable phone 100. While charging the battery 142, the charging management module 140 can also supply power to the foldable phone 100 via the power management module 141.

[0167] 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 to supply power to the processor 110, internal memory 121, external memory, first display screen 194, second display screen 195, camera 193, wireless communication module 160, etc.

[0168] Specifically, in the screen switching scheme provided in this application embodiment, when the small folding phone 100 is in different states, the power management module 141 can supply power to the inner screen and stop supplying power to the outer screen according to the on / off requirements of the inner and outer screens based on the current state, thereby turning on the inner screen and turning off the outer screen. Alternatively, it can supply power to the outer screen and stop supplying power to the inner screen, thereby turning on the outer screen and turning off the inner screen.

[0169] The wireless communication function of the small foldable phone 100 can be achieved through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0170] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G for use in the small foldable phone 100. The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) for use in the small foldable phone 100.

[0171] In some embodiments, the antenna 1 of the small folding phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, enabling the small folding phone 100 to communicate with networks and other devices via wireless communication technology.

[0172] The small foldable phone 100 implements its display function through a GPU, a first display screen 194, a second display screen 195, and an application processor. The GPU is a microprocessor for image processing, connected to the first display screen 194, the second display screen 195, and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0173] The first display screen 194 serves as the inner screen of the small foldable phone 100 and can be used to display the interface, images, videos, etc. The second display screen 195 serves as the outer screen of the electronic device and can be used to display default or user-preset content such as images, videos, or text.

[0174] Both the first display screen 194 and the second display screen 195 include display panels. The display panels can be liquid crystal displays (LCDs), organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), Mini-LEDs, Micro-OLEDs, Micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc.

[0175] For the first display screen 194 with folding characteristics, it can be a single-piece flexible display screen, or it can be a spliced ​​display screen composed of multiple flexible display screens and hinges located between each pair of flexible display screens, or it can be a spliced ​​display screen composed of multiple rigid screens and hinges located between each pair of rigid screens. The embodiments of this application do not limit this.

[0176] In this embodiment of the application, the first display screen 194 can be divided into two screen areas of the same size along the folding axis. These two screen areas can be described as a first display unit and a second display unit.

[0177] For the non-foldable second display screen 195, the specific material of its display panel can be selected according to business needs, and this application embodiment does not limit this.

[0178] The small foldable phone 100 can achieve shooting functions through ISP, camera 193, video codec, GPU, first display 194 or second display 195, and application processor.

[0179] Camera 193 is used to capture still images or video. A digital signal processor (DSP) is used to process digital signals; in addition to digital image signals, it can process other digital signals. A video codec is used to compress or decompress digital video.

[0180] In this embodiment, the number of cameras 193 is at least one. When there is only one camera 193, it is specifically located on the side of the first display screen 194. When there are multiple cameras 193, at least one camera 193 is located on the side of the first display screen 194.

[0181] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the small foldable phone 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, videos, photos, and other files can be saved on the external memory card.

[0182] The internal memory 121 can be used to store computer executable program code. The executable program code includes instructions. The processor 110 executes various functional applications and data processing of the foldable phone 100 by running the instructions stored in the internal memory 121, enabling the foldable phone 100 to implement the screen switching method in this embodiment. The internal memory 121 may include a program storage area and a data storage area. In this embodiment, the internal memory 121 can be used to store configuration files, video resources, etc.

[0183] The small foldable phone 100 can achieve audio functions such as music playback and recording through an audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0184] The sensor module 180 may include pressure sensors, touch sensors, gyroscope sensors, accelerometers, magnetic sensors, etc.

[0185] A pressure sensor is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor may be located on the first display screen 194 and the second display screen 195. The foldable phone 100 may also calculate the touch position based on the detection signal from the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different touch intensity may correspond to different operation commands.

[0186] A touch sensor, also known as a "touch panel," can be located on a first display screen 194 and a second display screen 195. The touch sensor, along with either the first or second display screen 194, forms a touchscreen, also called a "touch display." The touch sensor detects touch operations applied to or near it. It then transmits the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through either the first or second display screen 194.

[0187] A gyroscope sensor can be used to determine the motion attitude of the small folding phone 100. In some embodiments, the angular velocity of the small folding phone 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor.

[0188] The accelerometer can detect the magnitude of acceleration of the small foldable phone 100 in various directions (generally three axes). When the small foldable phone 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the small foldable phone 100, and can be applied to applications such as landscape / portrait switching and pedometers.

[0189] In some embodiments, the foldable phone 100 may incorporate at least two sets of gyroscopes and accelerometers. One set of gyroscopes and accelerometers can be used to determine the motion posture of the first display unit of the first display screen 194 and the magnitude of acceleration in each direction; the other set can be used to determine the motion posture of the second display unit of the first display screen 194 and the magnitude of acceleration in each direction. Furthermore, based on the motion posture and acceleration magnitudes of the first and second display units of the foldable screen, the processor 110 can determine the current form (posture) of the foldable phone 100 using this acceleration information.

[0190] The magnetic sensor includes a Hall sensor. The foldable phone 100 can use the magnetic sensor to detect the angle between the first display unit and the second display unit in the first display screen 194. In this way, the processor 110 can determine the current configuration of the foldable phone 100 based on the detected angle.

[0191] Furthermore, depending on business needs, the sensor module 180 of the small foldable phone 100 may also include a barometric pressure sensor, a proximity sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc., which will not be listed here, and this application embodiment does not limit this. The specific working principles of these sensors will not be elaborated in this application embodiment.

[0192] Buttons 190 include a power button, volume buttons, etc. The small folding phone 100 can receive button input and generate key signal inputs related to user settings and function control of the small folding phone 100. Among them, pressing the power button can turn the phone screen off or on.

[0193] That concludes the introduction to the hardware structure of the foldable phone 100. It should be understood that... Figure 7 The small folding phone 100 shown is merely an example. In a specific implementation, the small folding phone 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. Figure 7 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0194] See Figure 8 The diagram illustrates a software structure block diagram of a small foldable mobile phone 100 according to an embodiment of this application.

[0195] Before explaining the software structure of the foldable phone 100, we will first describe the software system architecture that the foldable phone 100 can adopt. Specifically, the software system of the foldable phone 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.

[0196] Furthermore, it is understood that the software systems used by mainstream electronic devices currently include, but are not limited to, Windows, Android, and iOS systems. For ease of explanation, this application embodiment uses the layered architecture of the Android system as an example to illustrate the software structure of the small foldable phone 100.

[0197] Furthermore, the screen switching schemes provided in the embodiments of this application are also applicable to other systems in specific implementations.

[0198] See Figure 8For example, the layered architecture of the small foldable phone 100 divides the software into several layers. Each layer has a clear role and division of labor, and the layers can communicate with each other through software interfaces. In some embodiments, the Android system can be divided into five layers, from top to bottom: the application (APP) layer, the application framework (FWK) layer, the Android runtime and system libraries, the hardware abstraction layer (HAL), and the kernel layer.

[0199] The application layer can include a series of application packages.

[0200] like Figure 8 As shown, the application package may include applications such as camera, settings, map, music, calendar, and gallery, which will not be listed here, and this application embodiment does not limit this.

[0201] The camera app can use either the camera on the same side of the foldable phone as the inner screen or the camera on the same side of the foldable phone as the outer screen to take pictures.

[0202] The application framework layer provides application programming interfaces (APIs) and programming frameworks (which can be described as functions) for applications in the application layer. In some embodiments, the application framework layer includes a number of predefined functions.

[0203] like Figure 8 As shown, the application framework layer may include application folding screen management service, device status management service, device status physical reporting module, camera service, window management service, power management service, display management service, etc.

[0204] Foldable screen management service is used to manage the posture or form of foldable screen devices, such as determining whether a small foldable phone is currently in a folded state, an unfolded state, a calendar state, a tent state, or a stand state.

[0205] The device status management service is used to manage device states. For example, it can receive the device state of the small foldable phone from upper-layer applications (such as camera applications), foldable screen management services, and device status physical reporting modules, and notify the display management service to switch screens according to the managed device state. The device state can be, for example, the various forms (postures) that the small foldable phone can be in.

[0206] The device status physical reporting module receives data on changes in the inner screen angle collected by sensors (such as Hall effect sensors), determines the device configuration based on the received data, and sends the device configuration value to the device status management service. Specifically, it sends device configuration values ​​corresponding to different device configurations.

[0207] In the application embodiment, the device form reported by the device status physical reporting module to the device status management service can be referred to as the physical form. The device form determined by the foldable screen management service can be referred to as the copy form. The copy form has a higher priority than the physical form. That is, if the copy form managed by the device status management service has a specific value, the display management service is notified to switch the screen based on the value recorded in the copy form indicating the current device form of the foldable phone. If the copy form is empty (no specific value), the display management service is notified to switch the screen based on the value recorded in the physical form indicating the current device form of the foldable phone.

[0208] The display management service is used to determine which screens should be turned on and off, enabling the switching between the inner and outer screens.

[0209] The power management service supplies power to screens that the display management service determines need to be lit, and stops supplying power to screens that the display management service determines need to be turned off.

[0210] Window management service is used to manage window programs, determine the content to be displayed on the lit screen, and enable the lit screen to display the content.

[0211] Camera services are used to perform camera-related operations, such as sending images captured by the camera to upper-layer applications or other services.

[0212] The system library and runtime layer includes the system libraries and the Android Runtime. The Android Runtime includes the core libraries and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0213] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0214] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0215] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), shape managers, etc.

[0216] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0217] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0218] The shape manager is used to detect changes in the shape (font) of the small folding phone.

[0219] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0220] Understandably, the 2D graphics engine mentioned above is a 2D drawing engine.

[0221] The HAL layer is the interface layer located between the operating system kernel and the hardware circuitry. The HAL layer includes, but is not limited to: the camera hardware abstraction layer, the display driver hardware abstraction layer, and the power supply hardware abstraction layer.

[0222] The kernel layer is the layer between hardware and software. It contains at least display drivers, camera drivers, power management drivers, and sensor drivers. The display driver can include drivers for the external screen and the internal screen. The sensor drivers can include drivers for gyroscope sensors, accelerometers, Hall effect sensors, etc., used to detect angle changes between the first and second display units on the inner screen of the foldable phone. The camera driver is used to operate the corresponding camera. The capacitor management driver is used to drive the power management module to supply power to the internal or external screen.

[0223] That concludes the introduction to the software structure of the foldable phone 100. It's understandable that... Figure 8 The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on the small foldable phone 100. In other embodiments of this application, the small foldable phone 100 may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not impose any limitations.

[0224] Furthermore, it is understood that foldable screen devices, such as small foldable phones, include hardware and / or software modules that perform the respective functions in order to achieve the above-mentioned functions. Based on the algorithmic steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0225] To better understand the screen switching scheme provided in the embodiments of this application, the following embodiments still use a small folding phone (such as...) Figure 3 The shape shown. Figure 7 The hardware structure shown is as follows. Figure 8 Taking the aforementioned software structure as an example, combined with... Figures 9 to 12 Please provide an explanation.

[0226] See Figure 9 The illustration shows a flowchart of a screen switching method. The screen switching method provided in this application includes, but is not limited to:

[0227] S101, after the camera application is launched, in response to the user's selection of shooting mode, determines whether the currently selected shooting mode is the inner screen upward shooting mode.

[0228] In this embodiment of the application, the inner screen upward shooting mode refers to taking a picture using a camera located on one side of the inner screen or a camera located on one side of the outer screen, but using the inner screen to display the preview of the shooting process and the captured image, i.e., the inner screen display needs to be locked.

[0229] Furthermore, in some other embodiments, after the camera application is launched, it can also determine whether the currently used camera is located on the inner screen side by responding to the user's switching operation of the camera. For example, if it is determined that the currently used camera is located on the inner screen side, regardless of whether the current shooting mode is an upward shooting mode or other shooting modes, such as portrait, smile, etc., it can be determined that the inner screen display needs to be locked when taking a picture.

[0230] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0231] In this embodiment, the user-selected shooting mode is the inner screen upward shooting mode. In this case, the camera application can transmit the indication information to lock the inner screen display to the foldable screen management service through the interface provided by the FWK layer, that is, the step proceeds to S102.

[0232] Furthermore, it's worth noting that in this scenario, the foldable phone can be in a folded state, an unfolded state, a calendar state, a tent state, or a stand state before launching the camera app. That is, the user can operate on the currently active screen (the lit screen), such as by tapping the displayed camera app icon. In this way, the foldable phone responds to the user's action and launches the camera app.

[0233] For example, after the camera application is launched, if the user switches the shooting mode to the inner screen upward shooting mode, or needs to use the camera on the inner screen side for a selfie, the corresponding interface of the camera application can be displayed on the screen of the current operation. If the user selects to lock the shooting mode displayed on the inner screen (inner screen upward shooting or inner screen side camera selfie), the process proceeds to S102.

[0234] S102, the camera application transmits an instruction to the foldable screen management service to lock the inner screen display.

[0235] Understandably, the camera application is an application at the APP layer, while the foldable screen management service is a predefined function / framework / service at the FWK layer. The camera application can transmit indications indicating that the inner screen display is locked to the foldable screen management service through the programming interface provided by the FWK layer.

[0236] In this embodiment, the camera application can call the LockDisplayMode() interface in the predefined FoldScreenManagerEx interface to transmit the indication information for locking the inner screen display and the user identification (UID) of the camera application to the FoldScreenManageService.

[0237] Regarding the indication information for locking the inner screen display, in some embodiments, it may be agreed to use an integer (int) value to represent it.

[0238] For example, a first value (such as 1) can be used as an indication that the inner screen display is locked, i.e., the inner screen needs to be turned on.

[0239] Understandably, in some embodiments, the screen that needs to be locked can also be determined as the outer screen based on current business requirements. For the indication information indicating that the outer screen display is locked, for example, a second value (such as 2) can be agreed to be used as the indication information indicating that the outer screen is locked, that is, the outer screen needs to be turned on.

[0240] Specifically, in this embodiment of the application, when it is necessary to lock the inner screen display, the camera application calls LockDisplayMode(), and the passed-in indication information is the first value of an integer.

[0241] Furthermore, it should be noted that the foldable screen management interface and foldable screen management service are newly added interfaces and services to implement the screen switching method provided in this application embodiment. The device state management service (DeviceStateManagerService), device state physical reporting module (DeviceStatePoviderlmpl), display management service (DisplayManagerService), power management service (PowerManagerService), and window management service (WindowManagerService) are native services of the Android system. To distinguish them from these native services, "FoldScreenManagerEx" can be represented as "HnFoldScreenManagerEx", and "FoldScreenManageService" can be represented as "HnFoldScreenManageService".

[0242] Furthermore, it should be noted that in some embodiments, these newly added interfaces and services may also be named with other names, and this application embodiment does not impose any restrictions on this.

[0243] S103, after receiving the instruction information transmitted by the camera application, the foldable screen management service determines whether the application transmitting the instruction information is legitimate.

[0244] Understandably, in the Android operating system, each application has a unique UID to identify it. For system-level applications or system-level components, the UID needs to be system-level, represented as systemUID.

[0245] In this embodiment, the camera application is a system-level application, therefore its UID needs to be system-level. In the Android system, all Android application packages (APKs) that use Android.uid.system as a shared UID will add "android:sharedUserId="android.uid.system"" to the manifest node of the APK, and then add "LOCAL_CERTIFICATE:=platform" to the Android project management file (Android.mk).

[0246] In this embodiment, if the camera application's UID is a system-level UID and also a platform signature, the application transmitting the indication information is deemed legitimate, i.e., the camera application is legitimate. Regarding the platform signature, in some embodiments, it can be defined as a fixed value. For example, in this embodiment, the camera application's UID can be defined as systemUID, and if the value is the platform signature, such as 1000, the camera application is deemed legitimate.

[0247] Understandably, platform signing refers to a certificate that signs the Android operating system to verify the legitimacy of an application. If an application needs to use certain core functions of the Android system, it needs to be signed using the platform signature corresponding to that function. For example, in this embodiment, if the camera application needs to lock the Android system's display function, it needs to be signed using the platform signature corresponding to that display function.

[0248] Specifically, in this embodiment of the application, taking the legitimate use of the camera application as an example, in this case, the foldable screen management service will determine the current device form value (rewrite form value) of the local device based on the current angle and the requirement to lock the inner screen display, that is, the step proceeds to S104.

[0249] S104, The folding screen management service determines the current device form value (rewrite form value) based on the current angle of the device and the requirement to lock the inner screen display.

[0250] For example, in some embodiments, different forms of the small foldable phone can be represented by different device form values. An important factor in distinguishing these different device forms, such as the folded, unfolded, calendar, tent, and stand forms given above, is the angle of the inner screen.

[0251] Furthermore, as can be seen from the above descriptions of these device forms, the screens that are lit and turned off differ depending on the device form.

[0252] Therefore, after receiving the instruction information sent by a legitimate application, the foldable screen management service can determine the device form where the angle range includes the current angle and the screen being operated is the inner screen, i.e. the inner screen is lit and the outer screen is turned off, based on the current angle of the small foldable phone and the requirement of locking the inner screen display indicated by the instruction information. Then, the device form value corresponding to the determined device form is used as the current device form value of the small foldable phone.

[0253] Understandably, the device forms managed in the device status management service can be divided into rewritten forms and physical forms based on their source. The rewritten form values ​​for rewritten forms come from the foldable screen management service, while the physical form values ​​for physical forms come from the device status physical reporting module.

[0254] Therefore, in step S104, the current device form value of the small folding phone is determined to be the overwrite form value.

[0255] S105, the foldable screen management service sends the determined copy mode value to the device status management service.

[0256] For example, in some embodiments, the foldable screen management service can send the determined overwrite form value to the device state management service through the request state interface (requestState()).

[0257] S106, The device status management service updates the recorded overwrite status value based on the received overwrite status value.

[0258] For example, by using an overwrite interface (such as mActiveOverride()), the overwrite pattern value recorded in the cache corresponding to the overwrite pattern can be updated to the currently received overwrite pattern value.

[0259] S107, the sensor sends the collected data on the change in the inner screen angle to the device status physical reporting module.

[0260] In some embodiments, the sensor that collects data on changes in the inner screen angle may be, for example, an accelerometer, a gyroscope, a magnetic sensor (such as a Hall sensor), etc.

[0261] For example, in some embodiments, the sensor can send the collected data on the change of the inner screen angle to the device status physical reporting module through the sensor data change interface (onSensorChanged()).

[0262] S108, the device status physical reporting module determines the current device form value based on the data on the change of the inner screen angle collected by the sensor.

[0263] Specifically, the device status physical reporting module can determine the changing angle, the current angle, its relationship with the horizontal plane, and the duration based on data collected by sensors regarding changes in the inner screen angle. In this way, based on these factors affecting the device's form, the current device form can be determined, and thus the corresponding device form value can be determined.

[0264] Understandably, the device status physical reporting module reports physical form values ​​to the device status management service. Therefore, the current device form value of the small folding phone determined in step S108 is the physical form value.

[0265] S109, the device status physical reporting module sends the determined physical form value to the device status management service.

[0266] For example, in some embodiments, the device status physical reporting module can send the determined physical form value to the device status management service through the state change interface (onStateChanged()).

[0267] S110, The device status management service updates the recorded physical form value based on the received physical form value.

[0268] For example, by using the physical form setting interface (such as setBaseState()), the physical form value recorded in the cache corresponding to the physical form can be updated to the currently received physical form value.

[0269] S111, The device status management service determines the current screen status of the device based on the overwrite mode value.

[0270] It should be noted that, in this embodiment, the priority of the overwrite form is higher than that of the physical form. Therefore, if the overwrite form value exists in the cache corresponding to the overwrite form, the device state management service will determine the current screen state of the device based on the currently recorded overwrite form. Conversely, if the overwrite form value does not exist in the cache corresponding to the overwrite form, the device state management service will determine the current screen state of the device based on the currently recorded physical form.

[0271] In this embodiment, the camera application transmits instruction information indicating that the inner screen display should be locked. Therefore, the overwrite mode value determined by the foldable screen management service has a specific value; that is, the determined overwrite mode value is not empty or invalid. Thus, in this scenario, the device state management service, based on the priority of overwrite mode and physical mode, will choose to determine the current screen state of the device based on the overwrite mode value.

[0272] For example, in some embodiments, a function / interface (e.g., commitPendingState()) can be predefined to select a form value based on the aforementioned priority relationship.

[0273] In addition, it should be noted that in actual use cases, as long as the device state management service receives a device state value, whether it is a rewritten state value reported by the foldable screen device management service or a physical state value reported by the device state physical reporting module, it can call commitPendingState() after updating the device state value recorded in the corresponding cache based on the received device state value, decide on the device state value to be selected, and thus determine the screen state.

[0274] In this way, the physical state value of the priority level will be intercepted, that is, it will not be sent to the display management service through updatePendingStateLocked() as mentioned below, thus realizing the locking of the screen state.

[0275] S112, The device status management service determines whether the current screen status of the local machine is the same as the determined screen status.

[0276] Specifically, if the current screen state of the device is the same as the screen state determined by the device management server based on the device form value (specifically, the overwrite form value in this embodiment), then there is no need to switch the screen currently used by the foldable phone, and the process proceeds directly to step S116. Otherwise, the screen currently used by the foldable phone needs to be switched, i.e., the process proceeds to step S113, and steps S113 to S115 are executed.

[0277] In addition, it should be noted that since the current scenario requires locking the inner screen display, the device state management service also needs to perform step S116 after switching the screen if the screen states are different, in order to lock the screen state to the changed screen state.

[0278] S113, Device Status Management Service Notification Display Management Service Change Screen Status.

[0279] For example, the device status management service can call the status change interface (such as onStateChnged()) to notify the display management service that the screen status has changed.

[0280] S114, The display management service notifies the power management service to power the internal screen and stop powering the external screen.

[0281] For example, if the user locks the inner screen display through the outer screen of the small folding phone, that is, the current screen state of the small folding phone is that the outer screen is on and the inner screen is off, the device state management service notifies the display management service of the screen state change by calling onStateChnged(). The display management service can then notify the power management service to switch the screen to inner screen operation, that is, to supply power to the inner screen and stop supplying power to the outer screen.

[0282] For example, the operations to be performed by the power management service can be achieved by predefining the working screens corresponding to different device state values, i.e., the screens that are lit and the platforms that are turned off (e.g., setFoldDisplayStatePolicyInternal()). In this way, the display management service informs the power management service of the current device state by calling setFoldDisplayStatePolicyInternal(), and the power management service can then determine the working screen corresponding to that device state. Subsequently, power is supplied to the screens that need to be lit, and power is stopped from the screens that do not need to be lit.

[0283] S115 displays the management service notification window. The management service screen is switched, and the displayed content is changed.

[0284] Understandably, since the inner and outer screens have different screen sizes, after switching screens, the window management service needs to adapt the screen according to the current job, i.e., the size of the screen that is lit, so that the content displayed after the screen switch can be adapted to the current screen.

[0285] For example, in some embodiments, an interface for switching the display screen can be predefined (e.g., onDisplayChange()). In this way, the display management service can notify the window management service to change the displayed content by calling onDisplayChange().

[0286] S116, Device Status Management Service locks screen status.

[0287] In other words, when a small foldable phone needs to lock the inner screen display, regardless of whether the screen state needs to be changed, the device state management service will ultimately need to lock the screen state. Specifically, this means locking the inner screen display, i.e., the screen state where the inner screen is on and the outer screen is off.

[0288] For example, in some embodiments, a predefined interface for locking the screen state (e.g., updatePendingStateLocked()) can be used. Thus, when it is determined that the inner screen display needs to be locked, the device state management service can call updatePendingStateLocked() to lock the screen state.

[0289] Therefore, when users take selfies or shoot from a low angle using the camera on the inner screen of the foldable phone, regardless of whether the phone is in stand mode or calendar mode, the inner screen will be on while the outer screen will be off. Figure 10As shown in (1) and (2). In this way, the inner screen can always be on during the shooting process. The screen will not be turned off because the inner screen angle is in the calendar state. The inner screen will not be frequently switched between the inner and outer screens because the angle of the inner screen changes between the calendar state and the bracket state. This ensures the user experience.

[0290] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0291] See Figure 11 This exemplarily illustrates a flowchart of yet another screen switching method. The screen switching method provided in this application embodiment specifically includes, but is not limited to:

[0292] S201, after the camera application is launched, in response to the user's selection of shooting mode, it determines whether the currently selected shooting mode is the inner screen upward shooting mode.

[0293] For confirmation of the inner screen upward shooting mode, or other indications to lock the inner screen display, please refer to step S101 in the above embodiments, which will not be repeated here.

[0294] In this embodiment, we take as an example that the user-selected shooting mode is not the inner screen upward shooting mode, or in other words, it is not a shooting mode using the camera on the inner screen side. That is, there is no need to lock the inner screen display at present. In this case, the camera application can transmit the instruction information to exit the lock on the inner screen display to the foldable screen management service through the interface provided by the FWK layer, that is, the step proceeds to S202.

[0295] S202, the camera application transmits an instruction to the foldable screen management service to exit the locked inner screen display.

[0296] In this embodiment, the camera application can call the UnLockDisplayMode() interface in the predefined FoldScreenManagerEx interface to transmit the indication information for exiting the locked inner screen display and the user identity certificate (UserIdentification, UID) that identifies the camera application to the FoldScreenManageService.

[0297] Specifically, in the embodiments of this application, when it is necessary to exit the locked inner screen display, the camera application calls LockDisplayMode(), and the passed-in indication information can be the second value of an integer, or other agreed-upon integer numbers.

[0298] S203 After receiving the instruction information transmitted by the camera application, the foldable screen management service determines whether the application transmitting the instruction information is legitimate.

[0299] Specifically, verifying the legitimacy of a camera application also requires verifying whether the camera application's UID is a systemUID and whether that UID is a platform signature.

[0300] As described in the above embodiments, when a write-mode value exists in the cache corresponding to the write-mode, the device state management service will prioritize determining the screen state based on the write-mode value and perform screen switching and locking. Only when a write-mode value does not exist in the cache corresponding to the write-mode will the screen state be determined based on the physical form value and screen switching performed. Therefore, in one embodiment, where the camera application is legitimate, the foldable screen management service can send an empty write-mode value or a pre-agreed invalid value to the device state management service, i.e., the process proceeds to step S204.

[0301] S204, The foldable screen management service sends an empty overwrite mode value to the device status management service.

[0302] In this way, the device state management service can unlock the screen. For example, in some embodiments, the foldable screen management service can send an empty overwrite state value to the device state management service through a predefined cancellation state request interface (e.g., cancelStateRequest()).

[0303] S205, Clear record overwrite format value of device status management service.

[0304] For example, since the cancelStateRequest() function called by the foldable screen management service does not carry a specific value or the agreed-upon first value for locking the inner screen display, the device state management service will clear the overwrite state value recorded in the cache corresponding to the overwrite state.

[0305] For example, in some embodiments, the overwrite form value recorded in the cache corresponding to the overwrite form can be cleared through a predefined interface for clearing overwrite form values ​​(e.g., onOverrideRequestStatusChangedLocked()).

[0306] S206, the sensor sends the collected data on the change in the inner screen angle to the device status physical reporting module.

[0307] S207, The device status physical reporting module determines the current device form value based on the data on the change of the inner screen angle collected by the sensor.

[0308] S208, the device status physical reporting module sends the determined physical form value to the device status management service.

[0309] S209, The device status management service updates the recorded physical form value based on the received physical form value.

[0310] For specific processing details of steps S206 to S209, please refer to steps S107 to S110 in the above embodiments, which will not be repeated here.

[0311] Understandably, in practical use cases, during the process of unlocking the inner screen display, the user may not need to adjust the inner screen angle; that is, steps S206 to S209 can be optional. In other words, steps S206 to S209 are only executed if the inner screen angle changes.

[0312] S210, the device status management service determines the current screen status of the device based on the physical form value.

[0313] Specifically, since the overwrite form value is empty, in this scenario, the device state management service calls commitPendingState() and selects the physical form value to determine the screen state.

[0314] S211, The device status management service determines whether the current screen status of the local machine is the same as the determined screen status.

[0315] Specifically, if the current screen state of the device is the same as the screen state determined by the device management server based on the device form value (specifically the physical form value in this embodiment), then there is no need to switch the screen currently being used by the foldable phone. Otherwise, it is necessary to switch the screen currently being used by the foldable phone, i.e., proceed to step S212 and execute steps S212 to S214.

[0316] S212, Device Status Management Service Notification Display Management Service Change Screen Status.

[0317] S213, The display management service notifies the power management service to power the external screen and stop powering the internal screen.

[0318] S214, Display Management Service Notification Window, Management Service Screen Switch, Change Display Content.

[0319] Therefore, once it's determined that the user has stopped using the camera on the inner screen of the foldable phone for selfies or low-angle shots, the inner screen lock is released. In this way, during user use, the foldable phone can determine its current device mode based on factors such as the inner screen's angle detected by sensors, its relationship to the horizontal plane, and the duration of the current mode. Based on this determined mode, the screen switches accordingly, ensuring that the screen changes promptly with changes in device mode. This guarantees that the foldable phone can switch smoothly between different device modes. For example, when adjusting to the stand mode, the inner screen is on, and the outer screen is off. Figure 6C As shown in Figure (1), when the calendar state is satisfied, the inner screen switches to the off state and the outer screen switches to the on state, i.e., as shown in Figure (1). Figure 6C The style shown in (2) is designed to meet the different usage needs of users.

[0320] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0321] See Figure 12 This exemplarily illustrates a flowchart of yet another screen switching method. The screen switching method provided in this application embodiment specifically includes, but is not limited to:

[0322] S301, the device status management service detected that the camera application was killed or crashed.

[0323] Specifically, to ensure that the screen of the foldable phone can switch appropriately according to the actual usage scenario in case of abnormalities in the camera application process, such as being killed or crashing and unable to send instruction information, thus avoiding the problem of prolonged inner screen locking and subsequent failure of other device forms, in this embodiment, after the camera application starts, the device state management service can register and start a listening fence / event for the camera application process. In this way, if the camera application process is killed or crashes, the device state management service can promptly detect the abnormality and actively call cancelStateRequst() to clear the overwrite form value recorded in the cache corresponding to the overwrite form, i.e., proceed to step S302.

[0324] S302, Device Status Management Service clears the overwrite format value of the record.

[0325] S303, the sensor sends the collected data on the change in the inner screen angle to the device status physical reporting module.

[0326] S304, the device status physical reporting module determines the current device form value based on the data on the change of the inner screen angle collected by the sensor.

[0327] S305, the device status physical reporting module sends the determined physical form value to the device status management service.

[0328] S306, The device status management service updates the recorded physical form values ​​based on the received physical form values.

[0329] For specific processing details of steps S303 to S306, please refer to steps S107 to S110 in the above embodiments, which will not be repeated here.

[0330] Understandably, in real-world usage scenarios, before the camera app is killed or crashes, the user may not need to adjust the inner screen angle; that is, steps S303 to S306 can be optional. In other words, steps S303 to S306 are only executed if the inner screen angle changes.

[0331] S307, the device status management service determines the current screen status of the device based on the physical form value.

[0332] Specifically, since the overwrite form value is empty, in this scenario, the device state management service calls commitPendingState() and selects the physical form value to determine the screen state.

[0333] S308, Device Status Management Service determines whether the current screen status of the local machine is the same as the determined screen status.

[0334] Specifically, if the current screen state of the device is the same as the screen state determined by the device management server based on the device form value (specifically the physical form value in this embodiment), then there is no need to switch the screen currently being used by the foldable phone. Otherwise, it is necessary to switch the screen currently being used by the foldable phone, i.e., proceed to step S310 and execute steps S310 to S312.

[0335] S309, Device Status Management Service Notification Display Management Service Change Screen Status.

[0336] S310, the display management service notifies the power management service to power the external screen and stop powering the internal screen.

[0337] S311, Display Management Service Notification Window, Management Service Screen Switch, Change Display Content.

[0338] Therefore, when the inner screen is locked, the device state management service directly monitors whether the camera application process is malfunctioning. If an malfunction is detected, the inner screen is unlocked. This allows the foldable phone to determine its current form based on factors such as the inner screen's angle detected by sensors, its relationship to the horizontal plane, and the duration of the form change. Based on this determined form change, the screen switches accordingly, ensuring the screen changes seamlessly with the form change and allowing the foldable phone to switch normally between different forms. For example, when the stand is in stand mode, the inner screen is on and the outer screen is off. Figure 6C As shown in Figure (1), when the calendar state is satisfied, the inner screen switches to the off state and the outer screen switches to the on state, i.e., as shown in Figure (1). Figure 6C The style shown in (2) is designed to meet the different usage needs of users.

[0339] It should be understood that the above description is merely an example provided to better understand the technical solution of this embodiment, and is not intended as the only limitation on this embodiment.

[0340] Furthermore, it should be noted that in practical application scenarios, the screen switching methods provided in the above embodiments, implemented by foldable screen devices such as small foldable phones, can also be executed by a chip system included in the foldable screen device. This chip system may include a processor. The chip system can be coupled to a memory, enabling it to call computer programs stored in the memory during runtime to implement the steps executed by the foldable screen device. The processor in this chip system can be an application processor or a non-application processor.

[0341] In addition, this application embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on a foldable screen device, the foldable screen device performs the above-mentioned related method steps to implement the screen switching method in the above embodiment.

[0342] In addition, this application also provides a computer program product that, when run on a foldable screen device, causes the foldable screen device to perform the above-mentioned related steps to implement the screen switching method in the above embodiments.

[0343] In addition, embodiments of this application also provide a chip (which may also be a component or module), which may include one or more processing circuits and one or more transceiver pins; wherein the transceiver pins and the processing circuits communicate with each other through internal connection paths, and the processing circuits execute the above-mentioned related method steps to implement the screen switching method in the above embodiments, so as to control the receiving pin to receive signals and control the transmitting pin to transmit signals.

[0344] Furthermore, as can be seen from the above description, the foldable screen device, computer-readable storage medium, computer program product or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0345] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A screen switching method, characterized by, Applied to foldable screen devices, the foldable screen devices include a first screen and a second screen located on different sides of the foldable screen devices, the first screen is a foldable screen, and the first screen is divided into a first display unit and a second display unit along the folding axis of the first screen; The screen switching method includes: When the foldable screen device is in stand mode, in response to the received first operation, the screen usage requirements of the service corresponding to the first operation are determined; wherein, when the foldable screen device is in stand mode, the first screen is in a lit state and the second screen is in a turned-off state. When the screen usage requirement of the service corresponding to the first operation restricts the use of the first screen, the first screen is locked in the on state and the second screen is locked in the off state, and the interface corresponding to the service is displayed on the first screen. During the execution of the service by the foldable screen device, when the foldable screen device switches to calendar mode, the first screen continues to display the interface corresponding to the service, while the second screen remains in the off state. Specifically, when the first screen is not locked in the on state and the second screen is locked in the off state, when the foldable screen device is in the calendar mode, the first screen is switched to the off state and the second screen is switched to the on state. Wherein, locking the first screen to the on state and the second screen to the off state includes: Obtain the user identity verification UID of the application corresponding to the service; The application is validated based on the UID; When the application is valid, the replica form value corresponding to the bracket mode is recorded in the storage area corresponding to the replica form; wherein, the replica form has higher priority than the physical form, the replica form is the device form determined by the folding screen management service in the folding screen device, the replica form value is the device form value determined by the folding screen management service based on the requirement to lock the first screen display and the angle data between the first display unit and the second display unit, the physical form is the device form determined based on the angle data between the first display unit and the second display unit collected by the sensors in the folding screen device, and the physical form value corresponding to the device form determined based on the angle data is recorded in the storage area corresponding to the physical form; When the copy mode value corresponding to the bracket mode is recorded in the storage area corresponding to the copy mode, the foldable screen device controls the first screen to be in the on state and the second screen to be in the off state according to the copy mode value.

2. The method of claim 1, wherein, The method further includes: When the first screen is locked in the on state and the second screen is locked in the off state, the screen usage requirements of the service corresponding to the second operation are determined in response to the received second operation. If the screen usage requirement of the service corresponding to the second operation is not limited to using the first screen operation, the current state of the first screen and the second screen is unlocked.

3. The method of claim 1, wherein, The method further includes: When the first screen is locked in the on state and the second screen is locked in the off state, the process of the application corresponding to the service is monitored. If an anomaly is detected in the process, the current state of the first screen and the second screen is unlocked.

4. The method according to claim 2 or 3, characterized in that, The step of unlocking the current state of the first screen and the second screen includes: Clear the overwrite pattern value recorded in the storage area corresponding to the overwrite pattern.

5. The method of claim 4, wherein, After unlocking the current state of the first screen and the second screen, the method further includes: The current device form of the foldable screen device is determined based on the physical form value recorded in the storage area corresponding to the physical form. When the current device form of the foldable screen device changes to the calendar mode, the first screen is switched from the on screen state to the off screen state, and the second screen is switched from the off screen state to the on screen state.

6. The method of claim 1, wherein, The step of validating the application based on the UID includes: Determine whether the UID is a system UID and whether it is a platform signature; If the UID is the system UID and is the platform signature, the application is determined to be legitimate.

7. The method according to any one of claims 1 to 6, characterized in that, The first screen includes a camera, and the first operation is a selection operation for using the shooting mode of the camera.

8. The method of claim 7, wherein, The shooting modes using the camera include the upward shooting mode.

9. The method according to any one of claims 1 to 8, characterized in that, When the foldable screen device is in the bracket mode, the included angle between the first display unit and the second display unit of the first screen is within a first included angle range. When the foldable screen device is in the calendar mode, the included angle between the first display unit and the second display unit of the first screen is within the second included angle range, and the back shell of the foldable screen device is parallel to the horizontal plane for more than a preset time. The first included angle range and the second included angle range partially overlap.

10. The method according to claim 9, characterized in that, The preset duration is 400ms.

11. The method of claim 9, wherein, The first included angle range is between [45°, 150°], and the second included angle range is between (0°, 80°].

12. A foldable screen device, characterized in that, include: One or more processors; Memory; and one or more computer programs; The memory is coupled to the one or more processors, and the one or more computer programs are stored in the memory; When the computer program is executed by the one or more processors, the foldable screen device performs the screen switching method as described in any one of claims 1 to 11.

13. A computer-readable storage medium, characterized in that, Includes a computer program that, when run on a foldable screen device, causes the foldable screen device to perform the screen switching method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Display control method of electronic equipment with folding screen and electronic equipment

    CN110798568A

  • Display method and folding screen equipment

    CN116301514A