control method of electronic equipment with folding screen and electronic equipment

文档序号:1784828 发布日期:2019-12-06 浏览:34次 中文

阅读说明:本技术 一种具有折叠屏的电子设备的控制方法及电子设备 (control method of electronic equipment with folding screen and electronic equipment ) 是由 葛雄华 于 2019-07-18 设计创作,主要内容包括:本申请实施例公开了一种具有折叠屏的电子设备的控制方法及电子设备,涉及电子设备领域。电子设备接收用户对折叠屏的折叠操作,并在用户执行折叠操作的过程中,实时获取折叠屏的原参数,其中,原参数包括以下参数中的至少一种:第一屏与第二屏之间的夹角,被折叠屏的折叠速度,被折叠屏的折叠方向和被折叠屏的折叠加速度;被折叠屏为第一屏和第二屏中,用户执行折叠操作时转动的屏;电子设备根据实时获得的原参数执行对应功能;其中,夹角的大小不同,执行对应功能的程度不同;折叠速度的大小不同,执行对应功能的程度不同;折叠方向不同,执行对应功能的程度不同;或,折叠加速度的大小不同,执行对应功能的程度不同。(The embodiment of the application discloses a control method of electronic equipment with a folding screen and the electronic equipment, and relates to the field of electronic equipment. The method comprises the steps that the electronic equipment receives folding operation of a user on a folding screen, and in the process that the user executes the folding operation, original parameters of the folding screen are obtained in real time, wherein the original parameters comprise at least one of the following parameters: an included angle between the first screen and the second screen, the folding speed of the folded screen, the folding direction of the folded screen and the folding acceleration of the folded screen; the folded screen is a screen which is rotated when a user executes folding operation in the first screen and the second screen; the electronic equipment executes corresponding functions according to the original parameters obtained in real time; wherein, the degree of executing corresponding functions is different due to different included angles; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.)

1. A control method of an electronic device with a folding screen is characterized in that the folding screen can be folded to form a first screen and a second screen; the method comprises the following steps:

The electronic equipment receives the folding operation of a user on the folding screen;

In the process that a user executes the folding operation, the electronic device acquires original parameters of the folding screen in real time, wherein the original parameters comprise at least one of the following parameters: an included angle between the first screen and the second screen, a folding speed of the folded screen, a folding direction of the folded screen and a folding acceleration of the folded screen; the folded screen is a screen which is rotated when a user executes the folding operation in the first screen and the second screen;

The electronic equipment executes corresponding functions according to the original parameters obtained in real time;

Wherein, the degree of executing corresponding functions is different when the included angles are different; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.

2. The method of claim 1, wherein the folding screen is a Hinge device;

The electronic equipment executes corresponding functions according to the original parameters obtained in real time, and the functions comprise:

the electronic equipment generates a Hinge folding Hinge-Rotation event according to the original parameters, wherein the Hinge folding event is used for packaging the obtained original parameters; the hinge folding event comprises an included angle event, and the included angle event is packaged with the included angle;

The electronic equipment generates an event monitor according to the hinge folding event, and the event monitor is used for monitoring the hinge folding event; the event monitor comprises a hinge included angle monitor, and the hinge included angle monitor is used for monitoring the included angle packaged by the included angle event;

And the electronic equipment executes corresponding functions according to the monitoring result of the event monitor on the hinge folding event.

3. The method of claim 2,

The hinge-folding event further comprises at least one of the following event types: a velocity event, a direction event, an acceleration event, a state event, and a bounce event;

The folding speed is packaged in the speed event, the folding direction is packaged in the direction event, the folding acceleration is packaged in the acceleration event, the folding state of the folding screen is obtained according to the included angle, the folding state is an unfolding state, a closing state or a half unfolding state, the rebounding event is packaged with a rebounding identifier, and the rebounding identifier is used for indicating whether the folding screen is folded and then returns.

4. the method of claim 3,

The event monitor further comprises at least one of the following monitors: a hinge direction monitor, a hinge state monitor, a hinge motion monitor, a first hinge bounce monitor, a second hinge bounce monitor, a third hinge bounce monitor, a hinge bounce slide monitor;

wherein the hinge orientation monitor is to monitor the folding orientation of the orientation event package;

The hinge state monitor is configured to monitor one or more of the angle event package, the folding speed of the speed event package, and the folding acceleration of the acceleration event package to obtain a boolean value, where the boolean value is used to indicate whether the hinge device is rotating;

The hinge motion monitor is to monitor the included angle of the included angle event package, the fold speed of the velocity event package, the fold direction of the direction event package, and the fold acceleration of the acceleration event package;

the first hinge bounce monitor is to monitor the fold direction of the directional event package and the angle of the angle event package;

The second hinge bounce monitor is to monitor the fold direction of the directional event package;

The third hinge bounce monitor is to monitor the included angle of the included angle event package;

the hinge bounce slide monitor is configured to monitor the folding direction of the directional event package to obtain a target event corresponding to the folding direction, where the target event includes: a predefined fold operation event or a predefined system event.

5. The method of any of claims 2-4, wherein the electronic device performs a corresponding function based on the monitoring of the hinge-folding event by the event monitor, comprising:

The electronic equipment adjusts the brightness of the folding screen according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event;

Wherein, if the folding state of the folding screen is a closed state and the folding screen is in a black screen state before the folding operation is executed, the larger the monitored included angle is, the larger the brightness of the folding screen is;

If before carrying out folding operation, the fold condition of folding screen is the expansion state, just the folding screen is in bright screen state, then monitored the contained angle is less, the luminance of folding screen is less.

6. The method of any of claims 2-5, wherein the electronic device performs a corresponding function based on the monitoring of the hinge-folding event by the event monitor, comprising:

The electronic equipment adjusts the zooming magnification of the camera of the electronic equipment according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the zooming magnification of the camera is [ first magnification, second magnification ];

Wherein, if the folding state of the folding screen is a closed state and the zoom magnification of the camera is the second magnification before the folding operation is executed, the larger the monitored included angle is, the smaller the zoom magnification of the camera is;

If the folding state of the folding screen is a closed state and the zooming magnification of the camera is the first magnification before the folding operation is executed, the larger the monitored included angle is, the larger the zooming magnification of the camera is;

If the folded state of the folded screen is an unfolded state and the zooming magnification of the camera is the second magnification before the folding operation is executed, the smaller the monitored included angle is, the smaller the zooming magnification of the camera is;

If the folded state of the folded screen is an unfolded state and the zooming magnification of the camera is the first magnification before the folding operation is executed, the smaller the monitored included angle is, the larger the zooming magnification of the camera is;

If the folding state of the folding screen is a half-folding state and the zooming magnification of the camera is the second magnification before the folding operation is executed, when the included angle is smaller than 90 degrees, the monitored included angle is larger, the zooming magnification of the camera is smaller, and when the included angle is larger than 90 degrees, the monitored included angle is smaller, and the zooming magnification of the camera is smaller;

If the folded state of the folded screen is a half-folded state before the folding operation is performed, and the zoom magnification of the camera is a third value, the third value is greater than the first magnification and smaller than the second magnification, when the included angle is greater than 90 ° and the difference between the third value and the first magnification is smaller than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is smaller, the monitored included angle is smaller, and the zoom magnification of the camera is larger; when the included angle is larger than 90 degrees, and the difference between the third value and the first multiplying power is larger than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zooming multiplying power of the camera is larger, the monitored included angle is smaller, and the zooming multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is smaller than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zoom multiplying power of the camera is larger, the monitored included angle is smaller, and the zoom multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is larger than the difference between the second multiplying power and the third value, the larger the included angle is, the smaller the zooming multiplying power of the camera is, the smaller the included angle is, and the larger the zooming multiplying power of the camera is.

7. the method of any of claims 2-6, wherein the electronic device performs a corresponding function based on the monitoring of the hinge-folding event by the event monitor, comprising:

The electronic equipment adjusts the playing speed of a video according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, and the value range of the playing speed is [ a first speed and a second speed ];

Wherein, if before the folding operation is performed, the folding state of the folding screen is a closed state or a half-unfolded state, and the playing speed of the video is a third speed, the third speed is greater than the first speed and less than the second speed, and is a normal playing speed of the video, when the included angle is in the range of 0 ° to 45 °, the monitored included angle is larger, the playing speed is larger, when the included angle is in the range of 45 ° to 135 °, the monitored included angle is larger, the playing speed is smaller, and when the included angle is in the range of 135 ° to 180 °, the monitored included angle is larger, and the playing speed is larger;

If before carrying out folding operation, the fold condition of folding screen is the expansion state, just video's broadcast rate is the third rate, then when the contained angle is 180 to 135 within range, monitored the contained angle is the less, broadcast rate is the less, when the contained angle is 135 to 45 within range, monitored the contained angle is the less, broadcast rate is the bigger, when the contained angle is 45 to 0 within range, monitored the contained angle is the less, broadcast rate is the less.

8. The method of any of claims 4-7, wherein the electronic device performs a corresponding function based on the monitoring of the hinge-folding event by the event monitor, comprising:

The application of the electronic device executes a corresponding function according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event; or the like, or, alternatively,

The electronic device determines a corresponding target event according to a monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on parameters encapsulated in the corresponding event, and an application of the electronic device executes a function corresponding to the target event.

9. The method according to any of claims 4-8, wherein the electronic device performs a corresponding function based on the monitoring of the hinge-folding event by the event monitor, comprising:

And the application of the electronic equipment executes corresponding functions according to a target event obtained by monitoring the folding direction packaged in the direction event by the hinge rebounding sliding monitor.

10. An electronic device, characterized in that the electronic device comprises: one or more processors, memory, and a folding screen; wherein the content of the first and second substances,

The folding screens at least comprise a first screen and a second screen and are used for displaying contents according to the indication of the one or more processors;

The memory is used for storing one or more programs;

The one or more processors are configured to execute the one or more programs to perform the following acts:

Receiving folding operation of a user on the folding screen;

In the process of executing the folding operation by a user, acquiring original parameters of the folding screen in real time, wherein the original parameters comprise at least one of the following parameters: an included angle between the first screen and the second screen, a folding speed of the folded screen, a folding direction of the folded screen and a folding acceleration of the folded screen; the folded screen is a screen which is rotated when a user executes the folding operation in the first screen and the second screen;

Executing corresponding functions according to the original parameters obtained in real time;

Wherein, the degree of executing corresponding functions is different when the included angles are different; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.

11. the electronic device of claim 10, wherein the folding screen is a Hinge device;

The executing the corresponding function according to the original parameters obtained in real time comprises the following steps:

Generating a Hinge folding Hinge-Rotation event according to the original parameters, wherein the Hinge folding event is used for packaging the obtained original parameters; the hinge folding event comprises an included angle event, and the included angle event is packaged with the included angle;

generating an event monitor according to the hinge folding event, wherein the event monitor is used for monitoring the hinge folding event; the event monitor comprises a hinge included angle monitor, and the hinge included angle monitor is used for monitoring the included angle packaged by the included angle event;

And executing corresponding functions according to the monitoring result of the event monitor on the hinge folding event.

12. the electronic device of claim 11,

The hinge-folding event further comprises at least one of the following event types: a velocity event, a direction event, an acceleration event, a state event, and a bounce event;

The folding speed is packaged in the speed event, the folding direction is packaged in the direction event, the folding acceleration is packaged in the acceleration event, the folding state of the folding screen is obtained according to the included angle, the folding state is an unfolding state, a closing state or a half unfolding state, the rebounding event is packaged with a rebounding identifier, and the rebounding identifier is used for indicating whether the folding screen is folded and then returns.

13. The electronic device of claim 12,

the event monitor further comprises at least one of the following monitors: a hinge direction monitor, a hinge state monitor, a hinge motion monitor, a first hinge bounce monitor, a second hinge bounce monitor, a third hinge bounce monitor, a hinge bounce slide monitor;

Wherein the hinge orientation monitor is to monitor the folding orientation of the orientation event package;

The hinge state monitor is configured to monitor one or more of the angle event package, the folding speed of the speed event package, and the folding acceleration of the acceleration event package to obtain a boolean value, where the boolean value is used to indicate whether the hinge device is rotating;

The hinge motion monitor is to monitor the included angle of the included angle event package, the fold speed of the velocity event package, the fold direction of the direction event package, and the fold acceleration of the acceleration event package;

The first hinge bounce monitor is to monitor the fold direction of the directional event package and the angle of the angle event package;

The second hinge bounce monitor is to monitor the fold direction of the directional event package;

The third hinge bounce monitor is to monitor the included angle of the included angle event package;

the hinge bounce slide monitor is configured to monitor the folding direction of the directional event package to obtain a target event corresponding to the folding direction, where the target event includes: a predefined fold operation event or a predefined system event.

14. The electronic device of any of claims 11-13, wherein the performing a corresponding function based on the monitoring of the hinge-folding event by the event monitor comprises:

Adjusting the brightness of the folding screen according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event;

wherein, if the folding state of the folding screen is a closed state and the folding screen is in a black screen state before the folding operation is executed, the larger the monitored included angle is, the larger the brightness of the folding screen is;

if before carrying out folding operation, the fold condition of folding screen is the expansion state, just the folding screen is in bright screen state, then monitored the contained angle is less, the luminance of folding screen is less.

15. The electronic device of any of claims 11-14, wherein the performing a corresponding function based on the monitoring of the hinge-collapse event by the event monitor comprises:

Adjusting the zooming magnification of the camera of the electronic equipment according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the zooming magnification of the camera is [ first magnification, second magnification ];

wherein, if the folding state of the folding screen is a closed state and the zoom magnification of the camera is the second magnification before the folding operation is executed, the larger the monitored included angle is, the smaller the zoom magnification of the camera is;

If the folding state of the folding screen is a closed state and the zooming magnification of the camera is the first magnification before the folding operation is executed, the larger the monitored included angle is, the larger the zooming magnification of the camera is;

if the folded state of the folded screen is an unfolded state and the zooming magnification of the camera is the second magnification before the folding operation is executed, the smaller the monitored included angle is, the smaller the zooming magnification of the camera is;

if the folded state of the folded screen is an unfolded state and the zooming magnification of the camera is the first magnification before the folding operation is executed, the smaller the monitored included angle is, the larger the zooming magnification of the camera is;

if the folding state of the folding screen is a half-folding state and the zooming magnification of the camera is the second magnification before the folding operation is executed, when the included angle is smaller than 90 degrees, the monitored included angle is larger, the zooming magnification of the camera is smaller, and when the included angle is larger than 90 degrees, the monitored included angle is smaller, and the zooming magnification of the camera is smaller;

if the folded state of the folded screen is a half-folded state before the folding operation is performed, and the zoom magnification of the camera is a third value, the third value is greater than the first magnification and smaller than the second magnification, when the included angle is greater than 90 ° and the difference between the third value and the first magnification is smaller than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is smaller, the monitored included angle is smaller, and the zoom magnification of the camera is larger; when the included angle is larger than 90 degrees, and the difference between the third value and the first multiplying power is larger than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zooming multiplying power of the camera is larger, the monitored included angle is smaller, and the zooming multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is smaller than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zoom multiplying power of the camera is larger, the monitored included angle is smaller, and the zoom multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is larger than the difference between the second multiplying power and the third value, the larger the included angle is, the smaller the zooming multiplying power of the camera is, the smaller the included angle is, and the larger the zooming multiplying power of the camera is.

16. The electronic device of any of claims 11-15, wherein the performing a corresponding function based on the monitoring of the hinge-folding event by the event monitor comprises:

Adjusting the playing speed of a video according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the playing speed is [ a first speed and a second speed ];

Wherein, if before the folding operation is performed, the folding state of the folding screen is a closed state or a half-unfolded state, and the playing speed of the video is a third speed, the third speed is greater than the first speed and less than the second speed, and is a normal playing speed of the video, when the included angle is in the range of 0 ° to 45 °, the monitored included angle is larger, the playing speed is larger, when the included angle is in the range of 45 ° to 135 °, the monitored included angle is larger, the playing speed is smaller, and when the included angle is in the range of 135 ° to 180 °, the monitored included angle is larger, and the playing speed is larger;

if before carrying out folding operation, the fold condition of folding screen is the expansion state, just video's broadcast rate is the third rate, then when the contained angle is 180 to 135 within range, monitored the contained angle is the less, broadcast rate is the less, when the contained angle is 135 to 45 within range, monitored the contained angle is the less, broadcast rate is the bigger, when the contained angle is 45 to 0 within range, monitored the contained angle is the less, broadcast rate is the less.

17. the electronic device of any of claims 13-16, wherein the performing a corresponding function based on the monitoring of the hinge-collapse event by the event monitor comprises:

Executing a corresponding function according to a monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameter encapsulated in the corresponding event; or the like, or, alternatively,

And determining a corresponding target event according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event, and executing the function corresponding to the target event.

18. The electronic device of any of claims 13-17, wherein the performing a corresponding function based on the monitoring of the hinge-folding event by the event monitor comprises:

and executing corresponding functions according to a target event obtained by monitoring the folding direction packaged in the direction event by the hinge bounce sliding monitor.

19. a computer storage medium comprising computer instructions that, when run on an electronic device, cause the electronic device to perform the method of controlling an electronic device with a folding screen of any one of claims 1-7.

20. A computer program product, characterized in that it causes a computer to carry out the method of controlling an electronic device with a folding screen according to any one of claims 1 to 7, when said computer program product is run on the computer.

Technical Field

The embodiment of the application relates to the field of electronic equipment, in particular to a control method of electronic equipment with a folding screen and the electronic equipment.

Background

In the using process of the electronic equipment, a large amount of gradual change effects need to be controlled. For example, the fade effect may include screen brightness, camera focal length, volume of music playing, speed of video playing, and the like. Currently, the control of these gradual effects can be mostly realized according to the operation of a user on a display screen with a touch control function (such as a touch screen). However, the control accuracy of the gradual change effect based on the touch screen is not high, and misoperation is easily caused. Meanwhile, when the user controls the gradual change effect based on the touch screen, the finger can shield the screen, so that the visual interface can be shielded, and great inconvenience is brought to the user.

meanwhile, with the popularization and application of the folding screen on the electronic equipment, the display area of the display screen of the electronic equipment is further enlarged and may not be on the same plane, if the method is adopted to control the gradual change effect, the accuracy of the control can be further reduced, and meanwhile, the use of a user is obviously inconvenient. Therefore, there is a strong need for a method for more precisely controlling the gradation effect in an electronic apparatus (particularly, an electronic apparatus provided with a folding screen).

Disclosure of Invention

The embodiment of the application provides a control method of electronic equipment with a folding screen and the electronic equipment, and solves the problems that in a gradual change effect control process, the control accuracy is low, misoperation is easy to occur, and a visual interface is blocked.

in order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

in a first aspect, an embodiment of the present application provides a control method for an electronic device having a foldable screen, where the foldable screen may be folded to form a first screen and a second screen. The control method may include: the electronic equipment receives the folding operation of a user on the folding screen; in the process of executing the folding operation by the user, the electronic device acquires original parameters of the folding screen in real time, wherein the original parameters may include at least one of the following parameters: an included angle between the first screen and the second screen, the folding speed of the folded screen, the folding direction of the folded screen and the folding acceleration of the folded screen; the folded screen is a screen which is rotated when a user executes folding operation in the first screen and the second screen; the electronic equipment executes corresponding functions according to the original parameters obtained in real time; wherein, the degree of executing corresponding functions is different due to different included angles; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.

according to the control method of the electronic device with the folding screen, provided by the embodiment of the application, the user inputs the folding operation to the hinge device (such as the folding screen) in the electronic device, and the electronic device can collect the parameters of the folding screen and respectively package the parameters to acquire the corresponding events. The electronic equipment monitors the parameters in the events through the monitors corresponding to different events, and then executes corresponding functions according to monitoring results. The adjustment of the corresponding function in the electronic equipment by the folding operation of the user is realized. Since the folding operation input by the user is continuous, continuous change of parameters of the folding operation can be caused, and the electronic equipment can monitor the change of the parameters in real time, so that continuous adjustment of the gradual change effect can be realized. According to the method provided by the embodiment of the application, the user does not need to touch the screen or adjust the gradual change effect through the entity key, so that the user's sight line cannot be shielded while the gradual change effect is adjusted, and the accuracy is high.

With reference to the first aspect, in one possible implementation manner, the folding screen is a Hinge device; the electronic device executes the corresponding function according to the original parameter obtained in real time, which may specifically include: the electronic equipment generates a Hinge folding Hinge-Rotation event according to the original parameters, wherein the Hinge folding event is used for packaging the obtained original parameters; the hinge folding event comprises an included angle event, and an included angle is encapsulated in the included angle event; the electronic equipment generates an event monitor according to the hinge folding event, and the event monitor is used for monitoring the hinge folding event; the event monitor comprises a hinge included angle monitor, and the hinge included angle monitor is used for monitoring an included angle packaged by an included angle event; the electronic device executes a corresponding function according to a monitoring result of the event monitor on the hinge folding event. Therefore, the electronic equipment can monitor parameters (such as the included angle) in a hinge folding event (such as a hinge included angle event) through the event monitor and execute corresponding functions according to the monitoring result of the included angle. Therefore, the dynamic adjustment of the corresponding function by the user through the folding operation is realized.

With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the hinge folding event further includes at least one of the following event types: a velocity event, a direction event, an acceleration event, a state event, and a bounce event; the speed event is packaged with folding speed, the direction event is packaged with folding direction, the acceleration event is packaged with folding acceleration, the state event is packaged with a folding state of the folding screen obtained according to the included angle, the folding state is an unfolding state and a closed state or a half-unfolding state, the rebound event is packaged with a rebound identifier, and the rebound identifier is used for indicating whether the folding screen is folded and then returns. In this way, different types of hinge folding events are encapsulated with different parameters so that the electronic device can monitor the different parameters to perform corresponding functions according to the monitoring results.

With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the event monitor further includes at least one of the following monitors: a hinge direction monitor, a hinge state monitor, a hinge motion monitor, a first hinge bounce monitor, a second hinge bounce monitor, a third hinge bounce monitor, a hinge bounce slide monitor; the hinge direction monitor is used for monitoring the folding direction of the direction event package; the hinge state monitor is used for monitoring one or more of an included angle of the included angle event package, a folding speed of the speed event package and a folding acceleration of the acceleration event package to obtain a Boolean value, and the Boolean value is used for indicating whether the hinge equipment rotates or not; the hinge motion monitor is used for monitoring the included angle of the included angle event package, the folding speed of the speed event package, the folding direction of the direction event package and the folding acceleration of the acceleration event package; the first hinge bounce monitor is used for monitoring the folding direction of the direction event package and the included angle of the included angle event package; the second hinge bounce monitor is used for monitoring the folding direction of the direction event package; the third hinge bounce monitor is used for monitoring the included angle of the included angle event package; the hinge bounce slide monitor is used for monitoring the folding direction of the direction event package to obtain a target event corresponding to the folding direction, wherein the target event comprises: a predefined fold operation event or a predefined system event. Therefore, the electronic equipment can monitor different hinge folding events through different event monitors, and therefore the user can control various functions in the electronic equipment through the folding operation.

With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the electronic device executes a corresponding function according to a monitoring result of an event monitor on a hinge folding event, where the executing function includes: the electronic equipment adjusts the brightness of the folding screen according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event; wherein, if the folding state of the folding screen is a closed state and the folding screen is in a black screen state before the folding operation is executed, the larger the monitored included angle is, the larger the brightness of the folding screen is; if the folding state of the folding screen is the unfolding state before the folding operation is executed, and the folding screen is in the bright screen state, the smaller the monitored included angle is, the smaller the brightness of the folding screen is. Therefore, the control method of the electronic equipment with the folding screen can dynamically adjust the brightness of the folding screen according to the monitoring of the included angle in different scenes.

with reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the electronic device executes a corresponding function according to a monitoring result of an event monitor on a hinge folding event, where the executing function includes: the electronic equipment adjusts the zooming magnification of the camera of the electronic equipment according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, and the value range of the zooming magnification of the camera is [ first magnification, second magnification ]; wherein, if the folding state of the folding screen is a closed state and the zooming magnification of the camera is a second magnification before the folding operation is executed, the larger the monitored included angle is, the smaller the zooming magnification of the camera is; if the folding state of the folding screen is a closed state and the zooming magnification of the camera is a first magnification before the folding operation is executed, the larger the monitored included angle is, the larger the zooming magnification of the camera is; if the folding state of the folding screen is the unfolding state and the zooming magnification of the camera is the second magnification before the folding operation is executed, the smaller the monitored included angle is, the smaller the zooming magnification of the camera is; if the folding state of the folding screen is the unfolding state and the zooming magnification of the camera is a first magnification before the folding operation is executed, the smaller the monitored included angle is, the larger the zooming magnification of the camera is; if the folding state of the folding screen is a half-folding state before the folding operation is executed, and the zooming magnification of the camera is a second magnification, when the included angle is smaller than 90 degrees, the monitored included angle is larger, the zooming magnification of the camera is smaller, and when the included angle is larger than 90 degrees, the monitored included angle is smaller, and the zooming magnification of the camera is smaller; if the folding state of the folding screen is a half-folding state before the folding operation is executed, the zoom magnification of the camera is a third value which is larger than the first magnification and smaller than the second magnification, when the included angle is larger than 90 degrees and the difference between the third value and the first magnification is smaller than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is smaller, the monitored included angle is smaller, and the zoom magnification of the camera is larger; when the included angle is larger than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is larger, the monitored included angle is smaller, and the zoom magnification of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is smaller than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zooming multiplying power of the camera is larger, the monitored included angle is smaller, and the zooming multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the larger the monitored included angle is, the smaller the zoom magnification of the camera is, and the smaller the monitored included angle is, the larger the zoom magnification of the camera is. Therefore, the control method of the electronic equipment with the folding screen can adjust the focal length of the camera according to the monitoring of the included angle in different scenes.

With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the electronic device executes a corresponding function according to a monitoring result of an event monitor on a hinge folding event, where the executing function includes: the electronic equipment adjusts the playing speed of the video according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, and the value range of the playing speed is [ a first speed and a second speed ]; before the folding operation is executed, the folding state of the folding screen is a closed state or a half-unfolding state, the video playing speed is a third speed, the third speed is greater than the first speed and less than the second speed and is the normal video playing speed, when the included angle is in the range of 0-45 degrees, the monitored included angle is larger, the playing speed is larger, when the included angle is in the range of 45-135 degrees, the monitored included angle is larger, the playing speed is smaller, and when the included angle is in the range of 135-180 degrees, the monitored included angle is larger, and the playing speed is larger; if the folding state of the folding screen is the unfolding state before the folding operation is performed, and the playing speed of the video is the third speed, when the included angle is in the range of 180-135 degrees, the monitored included angle is smaller, the playing speed is smaller, when the included angle is in the range of 135-45 degrees, the monitored included angle is smaller, the playing speed is larger, and when the included angle is in the range of 45-0 degrees, the monitored included angle is smaller, and the playing speed is smaller. Therefore, the control method of the electronic equipment with the folding screen can adjust the video playing speed according to the monitoring of the included angle in different scenes.

with reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the electronic device executes a corresponding function according to a monitoring result of an event monitor on a hinge folding event, where the executing function includes: the application of the electronic device executes the corresponding function according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event; or, the electronic device determines a corresponding target event according to a monitoring result of the first hinge bounce monitor, the second hinge bounce monitor, or the third hinge bounce monitor on the parameter encapsulated in the corresponding event, and the application of the electronic device executes a function corresponding to the target event. In this way, the electronic device can execute a function corresponding to the monitoring result based on the monitoring result of the different hinge-bounce monitor, or can specify a target event corresponding to the monitoring result based on the monitoring result of the different hinge-bounce monitor and execute a function corresponding to the target event.

With reference to the first aspect or the foregoing possible implementation manners, in another possible implementation manner, the electronic device executes a corresponding function according to a monitoring result of an event monitor on a hinge folding event, where the executing function includes: the application of the electronic equipment executes corresponding functions according to a target event obtained by monitoring the folding direction of the package in the direction event by the hinge bounce sliding monitor. Thus, the electronic device can determine a target event, such as a slide, corresponding to the hinge bounce slide monitor according to the monitoring result of the hinge bounce slide monitor and execute a corresponding slide function.

in a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors, memory, and a folding screen; the folding screen at least comprises a first screen and a second screen and is used for displaying contents according to the indication of one or more processors; the memory is used for storing one or more programs; the one or more processors are configured to execute the one or more programs to perform the following acts: receiving folding operation of a user on a folding screen; in the process of executing folding operation by a user, acquiring original parameters of a folding screen in real time, wherein the original parameters comprise at least one of the following parameters: an included angle between the first screen and the second screen, the folding speed of the folded screen, the folding direction of the folded screen and the folding acceleration of the folded screen; the folded screen is a screen which is rotated when a user executes folding operation in the first screen and the second screen; executing corresponding functions according to the original parameters obtained in real time; wherein, the degree of executing corresponding functions is different due to different included angles; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.

with reference to the second aspect, in one possible implementation manner, the folding screen is a Hinge device; executing corresponding functions according to the original parameters obtained in real time, wherein the corresponding functions comprise: generating a Hinge folding Hinge-Rotation event according to the original parameters, wherein the Hinge folding event is used for packaging the obtained original parameters; the hinge folding event comprises an included angle event, and an included angle is encapsulated in the included angle event; generating an event monitor according to the hinge folding event, wherein the event monitor is used for monitoring the hinge folding event; the event monitor comprises a hinge included angle monitor, and the hinge included angle monitor is used for monitoring an included angle packaged by an included angle event; and executing corresponding functions according to the monitoring result of the event monitor on the hinge folding event.

with reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, the hinge folding event further includes at least one of the following event types: a velocity event, a direction event, an acceleration event, a state event, and a bounce event; the speed event is packaged with folding speed, the direction event is packaged with folding direction, the acceleration event is packaged with folding acceleration, the state event is packaged with a folding state of the folding screen obtained according to the included angle, the folding state is an unfolding state and a closed state or a half-unfolding state, the rebound event is packaged with a rebound identifier, and the rebound identifier is used for indicating whether the folding screen is folded and then returns.

with reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, the event monitor further includes at least one of the following monitors: a hinge direction monitor, a hinge state monitor, a hinge motion monitor, a first hinge bounce monitor, a second hinge bounce monitor, a third hinge bounce monitor, a hinge bounce slide monitor; the hinge direction monitor is used for monitoring the folding direction of the direction event package; the hinge state monitor is used for monitoring one or more of an included angle of the included angle event package, a folding speed of the speed event package and a folding acceleration of the acceleration event package to obtain a Boolean value, and the Boolean value is used for indicating whether the hinge equipment rotates or not; the hinge motion monitor is used for monitoring the included angle of the included angle event package, the folding speed of the speed event package, the folding direction of the direction event package and the folding acceleration of the acceleration event package; the first hinge bounce monitor is used for monitoring the folding direction of the direction event package and the included angle of the included angle event package; the second hinge bounce monitor is used for monitoring the folding direction of the direction event package; the third hinge bounce monitor is used for monitoring the included angle of the included angle event package; the hinge bounce slide monitor is used for monitoring the folding direction of the direction event package to obtain a target event corresponding to the folding direction, wherein the target event comprises: a predefined fold operation event or a predefined system event.

With reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, executing a corresponding function according to a monitoring result of an event monitor on a hinge folding event includes: adjusting the brightness of the folding screen according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event; wherein, if the folding state of the folding screen is a closed state and the folding screen is in a black screen state before the folding operation is executed, the larger the monitored included angle is, the larger the brightness of the folding screen is; if the folding state of the folding screen is the unfolding state before the folding operation is executed, and the folding screen is in the bright screen state, the smaller the monitored included angle is, the smaller the brightness of the folding screen is.

with reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, executing a corresponding function according to a monitoring result of an event monitor on a hinge folding event includes: adjusting the zooming magnification of the camera of the electronic equipment according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the zooming magnification of the camera is [ first magnification, second magnification ]; wherein, if the folding state of the folding screen is a closed state and the zooming magnification of the camera is a second magnification before the folding operation is executed, the larger the monitored included angle is, the smaller the zooming magnification of the camera is; if the folding state of the folding screen is a closed state and the zooming magnification of the camera is a first magnification before the folding operation is executed, the larger the monitored included angle is, the larger the zooming magnification of the camera is; if the folding state of the folding screen is the unfolding state and the zooming magnification of the camera is the second magnification before the folding operation is executed, the smaller the monitored included angle is, the smaller the zooming magnification of the camera is; if the folding state of the folding screen is the unfolding state and the zooming magnification of the camera is a first magnification before the folding operation is executed, the smaller the monitored included angle is, the larger the zooming magnification of the camera is; if the folding state of the folding screen is a half-folding state before the folding operation is executed, and the zooming magnification of the camera is a second magnification, when the included angle is smaller than 90 degrees, the monitored included angle is larger, the zooming magnification of the camera is smaller, and when the included angle is larger than 90 degrees, the monitored included angle is smaller, and the zooming magnification of the camera is smaller; if the folding state of the folding screen is a half-folding state before the folding operation is executed, the zoom magnification of the camera is a third value which is larger than the first magnification and smaller than the second magnification, when the included angle is larger than 90 degrees and the difference between the third value and the first magnification is smaller than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is smaller, the monitored included angle is smaller, and the zoom magnification of the camera is larger; when the included angle is larger than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is larger, the monitored included angle is smaller, and the zoom magnification of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is smaller than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zooming multiplying power of the camera is larger, the monitored included angle is smaller, and the zooming multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the larger the monitored included angle is, the smaller the zoom magnification of the camera is, and the smaller the monitored included angle is, the larger the zoom magnification of the camera is.

With reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, executing a corresponding function according to a monitoring result of an event monitor on a hinge folding event includes: adjusting the playing speed of the video according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the playing speed is [ first speed, second speed ]; before the folding operation is executed, the folding state of the folding screen is a closed state or a half-unfolding state, the video playing speed is a third speed, the third speed is greater than the first speed and less than the second speed and is the normal video playing speed, when the included angle is in the range of 0-45 degrees, the monitored included angle is larger, the playing speed is larger, when the included angle is in the range of 45-135 degrees, the monitored included angle is larger, the playing speed is smaller, and when the included angle is in the range of 135-180 degrees, the monitored included angle is larger, and the playing speed is larger; if the folding state of the folding screen is the unfolding state before the folding operation is performed, and the playing speed of the video is the third speed, when the included angle is in the range of 180-135 degrees, the monitored included angle is smaller, the playing speed is smaller, when the included angle is in the range of 135-45 degrees, the monitored included angle is smaller, the playing speed is larger, and when the included angle is in the range of 45-0 degrees, the monitored included angle is smaller, and the playing speed is smaller.

With reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, executing a corresponding function according to a monitoring result of an event monitor on a hinge folding event includes: the application of the electronic device executes the corresponding function according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event; or, according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event, determining the corresponding target event, and executing the function corresponding to the target event by the application of the electronic device.

with reference to the second aspect or the foregoing possible implementation manner, in another possible implementation manner, executing a corresponding function according to a monitoring result of an event monitor on a hinge folding event includes: the application of the electronic equipment executes corresponding functions according to a target event obtained by monitoring the folding direction of the package in the direction event by the hinge bounce sliding monitor.

In a third aspect, a computer storage medium is provided, which may include computer instructions that, when executed on an electronic device, cause the electronic device to perform the method for controlling an electronic device with a folding screen as described in the first aspect or any one of the possible implementations of the first aspect.

In a fourth aspect, a computer program product is provided, which, when run on a computer, causes the computer to perform the method of controlling an electronic device with a folding screen as described in the first aspect or any of its possible implementations.

In a fifth aspect, an embodiment of the present application provides an apparatus having a function of implementing the behavior of the electronic device in the method of the first aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, for example, a determination unit or module, and an execution unit or module.

it should be appreciated that the description of technical features, solutions, benefits, or similar language in this application does not imply that all of the features and advantages may be realized in any single embodiment. Rather, it is to be understood that the description of a feature or advantage is intended to include the specific features, aspects or advantages in at least one embodiment. Therefore, the descriptions of technical features, technical solutions or advantages in the present specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantages described in the present embodiments may also be combined in any suitable manner. One skilled in the relevant art will recognize that an embodiment may be practiced without one or more of the specific features, aspects, or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.

Drawings

Fig. 1 is a schematic form view of a flexible folding screen electronic device according to an embodiment of the present disclosure;

Fig. 2 is a schematic view of another flexible folding screen electronic device according to an embodiment of the present application;

FIG. 3 is a schematic view of a multi-screen foldable electronic device according to an embodiment of the present disclosure;

Fig. 4 is a schematic form view of another flexible folding screen electronic device provided in the embodiment of the present application;

Fig. 5 is a schematic form view of another flexible folding screen electronic device provided in the embodiment of the present application;

fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

Fig. 7 is a side view of a folding screen electronic device according to an embodiment of the present application;

FIG. 8 is a schematic diagram of a geographic coordinate system provided by an embodiment of the present application;

Fig. 9 is a flowchart illustrating a control method of an electronic device with a foldable screen according to an embodiment of the present application;

Fig. 10 is a schematic diagram of a logic composition of an electronic device according to an embodiment of the present application;

FIG. 11 is a schematic diagram of a logic configuration of an input device according to an embodiment of the present application;

fig. 12 is a schematic diagram illustrating a method for adjusting brightness of an electronic device according to an embodiment of the present disclosure;

fig. 13 is a corresponding diagram of brightness adjustment and parameters according to an embodiment of the present disclosure;

Fig. 14 is a schematic diagram illustrating a method for adjusting a focal length of an electronic device according to an embodiment of the present application;

FIG. 15 is a corresponding diagram of focal length adjustment and parameters provided in accordance with an embodiment of the present application;

Fig. 16 is a schematic diagram illustrating another method for adjusting a focal length of an electronic device according to an embodiment of the present application;

Fig. 17 is a schematic diagram illustrating a method for performing focus adjustment by an electronic device according to an embodiment of the present application;

fig. 18 is a schematic diagram illustrating a corresponding relationship between a video playing rate and an included angle of a folding screen according to an embodiment of the present application;

fig. 19 is a schematic diagram illustrating a method for controlling picture browsing by an electronic device according to an embodiment of the present application;

Fig. 20 is a schematic composition diagram of an electronic device according to an embodiment of the present application.

Detailed Description

the embodiment of the application provides a control method which can be applied to electronic equipment comprising a folding screen. The folded screen (which may also be referred to as a folding device) may be folded to form at least two screens. For example, the folded screen may be folded to form a first screen and a second screen. It should be noted that at least two screens formed by folding the folding screen may be a plurality of screens which exist independently, or may be a complete screen of an integral structure, and only are folded to form at least two parts.

wherein, folding screen by the in-process of folding, folding screen's parameter can change, if the contained angle between first screen and the second screen changes, also can change by folding screen's folding speed, folding direction, folding acceleration etc.. The folded screen may be a screen that is rotated when a user performs a folding operation, among the first screen and the second screen. In some embodiments of the present application, the electronic device may adjust the corresponding gradual change effect according to a change of a parameter (such as the above included angle, the folding direction, the folding speed, the folding acceleration, and the like) during the folding process of the folding screen. For example, in the process that the folding screen is folded, as the included angle between the first screen and the second screen becomes larger, the brightness of the folding screen becomes brighter, or as the included angle between the first screen and the second screen becomes smaller, the brightness of the folding screen becomes darker; for another example, in a shooting scene, in the process of folding the folding screen, along with the change of the included angle between the first screen and the second screen, the zoom magnification or focal length of the camera changes; for another example, in a video playing scene, in the process of folding the folding screen, along with the change of the included angle between the first screen and the second screen, the video playing rate changes accordingly, and the like. In other embodiments of the present application, the electronic device may further execute a corresponding function according to a change of a parameter during the folding process of the folding screen. For example, in a reading scene, the folding screen is folded in a reverse direction after being folded at a certain angle, and pages in the reading interface are turned.

to sum up, in this application embodiment, can correspond the contained angle between first screen that forms in the folding process of folding screen and the second screen, by folding screen's folding speed, folding acceleration and folding direction isoparametric change, with the regulation of electronic equipment's gradual change effect for electronic equipment can carry out dynamic adjustment to the gradual change effect according to the change of above-mentioned parameter, realized the accurate control to electronic equipment gradual change effect, and can not shelter from visual interface, be difficult to the condition that the maloperation appears.

for example, in some embodiments of the present application, the folding screen may be a flexible folding screen. Wherein, flexible folding screen is including adopting the folding limit of flexible material preparation. Part or all of the flexible folding screen is made of flexible materials. For example: only the foldable part (such as a folding edge) in the flexible folding screen is made of flexible materials, and other parts are made of rigid materials; or the flexible folding screen is made of flexible materials. The folded screen may be folded along the folded edge to form a plurality (two or more) of screens.

For example, the folding screen shown in fig. 1 (a) is a flexible folding screen. The foldable screen shown in fig. 1 (a) is a complete display screen, and the display screen includes a foldable edge made of a flexible material. The folded screen is folded along the folding edge to form an a-screen 101 and a B-screen 102 shown in fig. 1 (B).

for another example, the folding screen shown in fig. 2 (a) is also a flexible folding screen. The foldable screen shown in fig. 2 (a) is a complete display screen, and the display screen includes a foldable edge made of a flexible material. The folded screen is folded along the folding edge to form an a screen 201, a B screen 202, and a C screen 203 shown in fig. 2 (B).

Fig. 1 (a) and fig. 2 (a) are schematic views of the folded screen in the unfolded state (that is, the folded screen is in the unfolded state). Fig. 1 (b) and fig. 2 (b) are schematic views of the folding screen in a half-folded state. Fig. 1 (c) is a schematic diagram of the folded screen in the closed state. It should be noted that, in the embodiments of the present application, the states of the folding screen include three types: an unfolded state, a closed state and a semi-folded state. The unfolded state means that the folded screens are unfolded, i.e. the angle between any two of the folded screens is 180 °. The closed state means that the folded screens are completely folded, i.e. the angle between any two of the folded screens is 0 °. The state between the unfolded state and the closed state is a half-folded state.

In other embodiments of the present application, the folding screen may be a multi-screen folding screen. The multi-screen folding screen may include a plurality (two or more) of screens. It should be noted that the plurality of screens are a plurality of individual display screens. The plurality of screens may be connected in turn by a folding shaft. Each screen can rotate around a folding shaft connected with the screen, and folding of the multi-screen folding screen is achieved.

as shown in fig. 3 (a), the multi-screen folding screen includes two separate screens, which are referred to as an a-screen 301 and a B-screen 302, respectively. The A screen 301 and the B screen 302 are connected through a folding shaft, and the A screen 301 and the B screen 302 can rotate around the folding shaft, so that folding of the multi-screen folding screen is achieved. Fig. 3 (a) is a schematic diagram of a multi-screen folding screen in an unfolded state. Fig. 3 (b) is a schematic diagram of a configuration of a multi-panel folding screen in a half-folded state. Fig. 3 (c) is a schematic diagram of the multi-screen folding screen in the closed state. The multi-screen foldable screen may also include three or more screens, and the specific form and the folding manner thereof can refer to fig. 3 and the related description, which are not repeated herein.

Wherein, when the folding screen is in a closed state, the included angle between the adjacent screens is 0 degree. For example, the angle α between the a-screen and the B-screen shown in (c) of fig. 1 is 0 °. When the folding screens are in the unfolding state, the included angle between the adjacent screens is 180 degrees. For example, an angle α between the a screen 101 and the B screen 102 shown in fig. 1 (a) is 180 °. When the folding screens are in a half-folded state, the value range of the included angle between the adjacent screens can be (0 degrees and 180 degrees). For example, an angle α ∈ (0 °,180 °) between the a screen 101 and the B screen 102 shown in (B) in fig. 1.

in the above fig. 1-fig. 3, the folding screen of the electronic device is folded longitudinally to achieve the folding of the folding screen. Of course, the folding screen of the electronic device can also be folded transversely to realize the folding of the folding screen. For example, after the folded screen shown in fig. 4 (a) is folded along the folding edge, the a screen and the B screen shown in fig. 4 (B), fig. 4 (c), and fig. 4 (d) may be formed in sequence during the folding process.

In addition, fig. 1 to 4 are schematic diagrams in which the range of the angle between adjacent screens of the folded screen is [0 °,180 ° ]. Of course, the angle between adjacent panels of the folded screen may also be in a range of (180 °, 360 ° ], for example, in the case of the folded screen shown in fig. 1, the folded screen shown in (a) in fig. 1 is folded along the folding edge, and the a-panel 101 and the B-panel 102 shown in (a) and (B) in fig. 5 may be formed, the angle β between the a-panel 101 and the B-panel 102 shown in (a) in fig. 5 is 360 °. the angle β between the a-panel 101 and the B-panel 102 shown in (B) in fig. 5 is in a range of (180 °, 360 °).

The method provided by the embodiment of the application can be applied to the condition that the folding screen is in any one of an unfolding state, a half-folding state or a closing state. That is to say, no matter the folding screen is in the state of expanding, half folding state or when closed, if the user operates the folding screen for the parameter of folding screen changes, electronic equipment just can carry out gradual change effects such as adjusting folding screen luminance, adjusting camera focus or adjusting video playback rate according to the change of the parameter of folding screen.

For example, the electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an Augmented Reality (AR) \ Virtual Reality (VR) device, or the like, which includes a folding screen, and the embodiment of the present application is not particularly limited to the specific form of the device.

embodiments of the present application will be described in detail below with reference to the accompanying drawings.

Please refer to fig. 6, which is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure. As shown in fig. 6, the electronic device 100 may include a processor 610, an external memory interface 620, an internal memory 621, a Universal Serial Bus (USB) interface 630, a charging management module 640, a power management module 641, a battery 642, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, an earphone interface 670D, a sensor module 680, a button 690, a motor 691, a pointer 692, a camera 693, a display 694, and a Subscriber Identity Module (SIM) card interface 695, and the like. Among them, the sensor module 680 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, an infrared sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

it is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic apparatus 100. In other embodiments, electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

Processor 610 may include one or more processing units, such as: the processor 610 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.

The controller may be a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.

A memory may also be provided in the processor 610 for storing instructions and parameters. In some embodiments, the memory in the processor 610 is a cache memory. The memory may hold instructions or parameters that have just been used or recycled by the processor 610. If the processor 610 needs to reuse the instruction or parameter, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 610, thereby increasing the efficiency of the system.

In some embodiments, processor 610 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.

It should be understood that the interface connection relationship between the modules illustrated in the present embodiment is only an exemplary illustration, and does not limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.

the charging management module 640 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 640 may receive charging input from a wired charger via the USB interface 630. In some wireless charging embodiments, the charging management module 640 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 640 may also supply power to the electronic device through the power management module 641 while charging the battery 642.

The power management module 641 is configured to connect the battery 642, the charging management module 640 and the processor 610. The power management module 641 receives the input from the battery 642 and/or the charging management module 640, and supplies power to the processor 610, the internal memory 621, the external memory, the display 694, the camera 693, the wireless communication module 660, and the like. The power management module 641 may also be configured to monitor battery capacity, battery cycle count, battery state of health (leakage, impedance), and other parameters. In some other embodiments, the power management module 641 may be disposed in the processor 610. In other embodiments, the power management module 641 and the charging management module 640 may be disposed in the same device.

The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 650, the wireless communication module 660, the modem processor, the baseband processor, and the like.

the antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

the mobile communication module 650 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 650 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 650 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the filtered electromagnetic wave to the modem processor for demodulation. The mobile communication module 650 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 650 may be disposed in the processor 610. In some embodiments, at least some of the functional blocks of the mobile communication module 650 may be disposed in the same device as at least some of the blocks of the processor 610.

The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 670A, the receiver 670B, etc.) or displays an image or video through the display screen 694. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 610, and may be located in the same device as the mobile communication module 650 or other functional modules.

The wireless communication module 660 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 660 may be one or more devices integrating at least one communication processing module. The wireless communication module 660 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 610. The wireless communication module 660 may also receive a signal to be transmitted from the processor 610, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.

In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 650 and antenna 2 is coupled to wireless communication module 660 such that electronic device 100 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).

The electronic device 100 implements display functions via the GPU, the display screen 694, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 694 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 610 may include one or more GPUs that execute program instructions to generate or alter display information.

The display screen 694 is used to display images, video, and the like. The display screen 694 is a folding screen as described above (e.g., a flexible folding screen or a multi-screen folding screen). The display 694 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like.

When the user performs the folding operation on the display screen 694, the electronic device can obtain the original parameters (raw data) of the display screen 694 in real time during the process of performing the folding operation by the user. Wherein, the original parameters may include: the folding screen comprises an included angle formed between a first screen and a second screen after being folded, the folding speed of the folded screen, the folding direction of the folded screen and the folding acceleration of the folded screen. The folded screen is a screen that is rotated when a user performs a folding operation, of the first screen and the second screen. It should be noted that, in the embodiment of the present application, the included angle between the first screen and the second screen formed by folding the folded screen may also be referred to as a folding angle variable.

In some embodiments of the present application, the electronic device 100 may include an entity apparatus 681, and the entity apparatus 681 may be configured to obtain the original parameters of the display 694 during the folding process. Illustratively, the entity device 681 may be a stand-alone device or module. The entity device 681 can monitor the change of the included angle between the first screen and the second screen formed by folding the display screen 694, the folding direction, the folding speed, the folding acceleration and other parameters of the folded screen in real time.

in other embodiments of the present application, the electronic device 100 may obtain the original parameters through a sensor module 680. For example, the electronic device 100 may obtain the original parameters of the display screen 694 during the folding process by a gyroscope sensor, an infrared sensor, a magnetic sensor, an acceleration sensor, a proximity light sensor, or the like.

For example, the electronic device may obtain the original parameters of the display screen 694 during the folding operation performed by the user in the following manner.

Folding speed and folding acceleration: based on the parameter collected by the acceleration sensor during folding, the electronic device 100 may convert the parameter by the size of the folding screen to obtain the folding speed and the folding acceleration of the folded screen during the folding operation performed by the user.

Folding direction: the electronic device 100 may collect relevant parameters through an infrared sensor or a magnetic sensor to determine a folding direction of the folded screen, such as folding toward an unfolding direction or folding toward a closing direction, during the folding operation performed by the user. Alternatively, the electronic device 100 may obtain the folding direction of the folded screen during the folding operation performed by the user according to the direction of the motion of the acceleration sensor and/or the folding direction of the gyroscope.

Folding angle variation: the electronic device 100 may convert the parameters obtained by the acceleration sensor or the gyroscope sensor mounted on the folding screen to obtain the folding angle variable of the folding screen. Alternatively, the electronic device 100 may acquire sensing information from an infrared sensor or a magnetic sensor and convert the sensing information to acquire a folding angle variable of the folding screen.

The following description will take an example of obtaining an angle α between a first screen and a second screen, such as an a screen and a B screen, by a gyro sensor. The display screen 694 of the electronic device 100 may be folded to form multiple screens. A gyroscope sensor may be included in each screen for measuring the orientation (i.e., the directional vector of the orientation) of the corresponding screen. For example, in conjunction with FIG. 1, display 694 of electronic device 100 may be folded to form A-screen 101 and B-screen 102, where A-screen 101 and B-screen 102 each include a gyroscope sensor therein for measuring the orientation of A-screen 101 and B-screen 102, respectively. The electronic device 100 determines the angle between adjacent screens according to the measured orientation and angle change of each screen.

For example, referring to fig. 7, the a-screen is provided with a gyro sensor a, and the B-screen is provided with a gyro sensor B. The embodiment of the present application will be described herein with respect to a principle that the gyro sensor a measures the orientation of the a-screen (i.e., the directional vector of the orientation), the gyro sensor B measures the orientation of the B-screen (i.e., the directional vector of the orientation), and a principle that the electronic apparatus 100 calculates the angle α between the a-screen and the B-screen based on the orientation of the a-screen and the orientation of the B-screen.

Wherein the coordinate system of the gyro sensor is a geographical coordinate system. As shown in fig. 8, the origin O of the geographic coordinate system is located at the point where the vehicle (i.e., the device containing the gyro sensor, such as the electronic device 100) is located, the x-axis points east (E) along the local latitude, the y-axis points north (N) along the local meridian, and the z-axis points upward along the local geographic vertical line, and forms a right-hand rectangular coordinate system with the x-axis and the y-axis. The plane formed by the x axis and the y axis is the local horizontal plane, and the plane formed by the y axis and the z axis is the local meridian plane. Thus, it can be understood that the coordinate system of the gyro sensor is: the gyroscope sensor is used as an origin O, the east direction along the local latitude line is used as an x axis, the north direction along the local meridian line is used as a y axis, and the upward direction along the local geographical vertical line (namely the opposite direction of the geographical vertical line) is used as a z axis.

The electronic device can measure and obtain the direction vector of the orientation of each screen in the coordinate system of the gyro sensor arranged in the electronic device by using the gyro sensor arranged in each screen. For example, referring to the side view of the electronic device as shown in fig. 7, the directional vector of the orientation of the a-screen measured by the electronic device in the coordinate system of the gyro sensor a is vector z1, and the directional vector of the orientation of the B-screen in the coordinate system of the gyro sensor B is vector z 2. The electronic device utilizes equation (1): the angle θ between vector z1 and vector z2 can be calculated.

wherein the content of the first and second substances,

As can be seen from fig. 7, since the vector z1 is perpendicular to the a screen and the vector z2 is perpendicular to the B screen, the angle α between the a screen and the B screen can be obtained as 180 ° - θ. That is, the electronic device can determine the angle α between the a screen and the B screen according to the measured direction vector of the a screen in the coordinate system of the gyro sensor a (i.e., vector z1) and the direction vector of the B screen in the coordinate system of the gyro sensor B (i.e., vector z 2).

It should be noted that although the positions of the gyro sensors disposed in the a-screen and the B-screen do not overlap, that is, the origins of the coordinate systems of the gyro sensors disposed in the a-screen and the B-plane do not overlap, the x-axis, the y-axis, and the z-axis of the two coordinate systems are parallel, so that the coordinate systems of the gyro sensors disposed in the a-screen and the B-screen can be considered to be parallel. Thus, although the vector z1 and the vector z2 are not in the same coordinate system, the angle θ between the vector z1 and the vector z2 can be calculated by the above equation (1) because the axes of the two coordinate systems are parallel.

In some embodiments, the angle α between the a screen and the B screen can also be measured by one or more other sensors. For example, one acceleration sensor may be provided in each of the folding screens. The electronic device 100 (e.g., the processor 610) may measure the motion acceleration of each screen as it is rotated using the acceleration sensor; and then calculating the rotation angle of one screen relative to the other screen according to the measured motion acceleration, namely the included angle alpha between the screen A and the screen B.

In other embodiments, the gyro sensor may be a virtual gyro sensor formed by a plurality of other sensors in cooperation. The virtual gyroscope sensor can be used for calculating the included angle between adjacent screens of the folding screen, namely the included angle alpha between the screen A and the screen B.

It should be noted that, in the embodiment of the present application, the electronic device 100 may obtain different parameters of the folding operation through the above method, and may also obtain other parameters according to the included angle.

Illustratively, the angle between the a-screen and the B-screen at a first time (e.g., t1) is α 1, and the angle between the a-screen and the B-screen at a second time (e.g., t2) is α 2, wherein the second time is later than the first time, i.e., t2> t 1.

When the alpha 2 is smaller than the alpha 1, the electronic equipment can determine that the folding direction is a closing direction; correspondingly, when α 2 is greater than α 1, the electronic device may determine the folding direction as the unfolding direction.

The electronic equipment can also acquire the folding speed of the folded screen according to the included angle and the time at different moments. For example, the folding speed of the folded screen at time t1-t2 may be obtained according to equation (2).

It is understood that the average speed over a period of time can be obtained according to the above equation (2). In the embodiment of the application, in order to obtain the instantaneous speeds at different times (for example, the speed at the time t1), a time (for example, the time t2) very close to the time t1 may be selected, and according to the included angle (for example, α 2) of the folding screen at the time, the folding speed of the electronic device folded screen at the time t1 may be obtained by calculating and obtaining the corresponding folding speed of the folded screen.

Further, assume that the folding speed at the third time t3 is v3, and the folding speed at the fourth time t4 is v4, wherein the fourth time is later than the third time by a certain time, i.e., t4> t 3. Then, during the time period between the times t3 and t4, the folding acceleration of the folded screen can be obtained according to the formula (3).

Similar to the above-mentioned calculation method of the instantaneous velocity, the electronic device may calculate and acquire the instantaneous acceleration of the folded screen according to formula (3).

In the embodiment of the application, the state of the folding screen can be judged according to the size of the included angle. For example, if α 1 and α 2 are both 0 °, the electronic device may determine that the folding screen is in the closed state from time t1 to time t 2. If α 1 and α 2 are both 180 °, the electronic device may determine that the foldable screen is in the unfolded state from time t1 to time t 2.

in the electronic device 100 provided in the embodiment of the present application, the gyro sensor may also be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by a gyroscope sensor. The gyro sensor may be used for photographing anti-shake. For example, when the shutter is pressed, the gyroscope sensor detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor can also be used for navigation and body feeling game scenes.

the magnetic sensor includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using a magnetic sensor. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.

the acceleration sensor may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. It should be noted that in the embodiment of the present application, the display screen 694 of the electronic device 100 may be folded to form multiple screens. An acceleration sensor may be included in each screen for measuring the orientation (i.e., the directional vector of the orientation) of the corresponding screen.

The pressure sensor is used for sensing a pressure signal and converting the pressure signal into an electric signal. In some embodiments, the pressure sensor may be disposed on the display screen 694. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 694, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor. The electronic apparatus 100 may also calculate the touched position based on the detection signal of the pressure sensor. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.

The air pressure sensor is used for measuring air pressure. In some embodiments, the electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by a barometric pressure sensor.

A distance sensor for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize a range sensor to range to achieve fast focus.

The proximity light sensor may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically extinguish the foldable screen to achieve the purpose of saving power. The proximity light sensor can also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.

The ambient light sensor is used for sensing the ambient light brightness. The electronic device 100 may adaptively adjust the brightness of the display screen 694 based on the perceived ambient light brightness. The ambient light sensor can also be used to automatically adjust the white balance when taking a picture. The ambient light sensor may also cooperate with the proximity light sensor to detect whether the electronic device 100 is in a pocket to prevent inadvertent contact.

The fingerprint sensor is used for collecting fingerprints. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.

The temperature sensor is used for detecting temperature. In some embodiments, the electronic device 100 implements a temperature processing strategy using the temperature detected by the temperature sensor. For example, when the temperature reported by the temperature sensor exceeds the threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 642 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs a boost on the output voltage of the battery 642 to avoid an abnormal shutdown due to low temperature.

Touch sensors, also known as "touch panels". The touch sensor may be disposed on the display screen 694, and the touch sensor and the display screen 694 form a touch screen, which is also referred to as a "touch screen". The touch sensor is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 694. In other embodiments, the touch sensor can be disposed on the surface of the electronic device 100 at a different location than the display screen 694.

the bone conduction sensor may acquire a vibration signal. In some embodiments, the bone conduction sensor may acquire a vibration signal of a human voice vibrating a bone mass. The bone conduction sensor can also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor may also be disposed in a headset, integrated into a bone conduction headset. The audio module 670 may analyze a voice signal based on a vibration signal of the bone mass vibrated by the sound part obtained by the bone conduction sensor, so as to implement a voice function. The application processor can analyze heart rate information based on blood pressure beating signals acquired by the bone conduction sensor, and a heart rate detection function is realized.

the electronic device 100 may implement a shooting function through the ISP, the camera 693, the video codec, the GPU, the display 694, and the application processor.

The ISP is used to process the parameters fed back by the camera 693. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 693.

The camera 693 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, electronic device 100 may include 1 or N cameras 693, N being a positive integer greater than 1.

The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.

Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.

the NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.

The external memory interface 620 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 610 through the external memory interface 620 to implement the parameter storage function. For example, files such as music, video, etc. are saved in an external memory card.

Internal memory 621 may be used to store computer-executable program code, including instructions. The processor 610 executes various functional applications and parameter processing of the electronic device 100 by executing instructions stored in the internal memory 621. For example, in an embodiment of the present application, the processor 610 may detect a change in a parameter of the display screen 694 (i.e., a folding screen) by executing instructions stored in the internal memory 621, and control a fade effect in response to the change in the parameter, or perform a corresponding function. The internal memory 621 may include a program storage area and a parameter storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The parameter storage area may store parameters (such as audio parameters, phone book, etc.) created during the use of the electronic device 100, and the like. In addition, the internal memory 621 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.

Electronic device 100 may implement audio functions via audio module 670, speaker 670A, receiver 670B, microphone 670C, headset interface 670D, and an application processor, among others. Such as music playing, recording, etc.

the audio module 670 is used to convert digital audio information into an analog audio signal output and also used to convert an analog audio input into a digital audio signal. The audio module 670 may also be used to encode and decode audio signals. In some embodiments, the audio module 670 may be disposed in the processor 610, or some functional modules of the audio module 670 may be disposed in the processor 610. The speaker 670A, also known as a "horn", is used to convert electrical audio signals into acoustic signals. The electronic apparatus 100 can listen to music through the speaker 670A or listen to a hands-free call. The receiver 670B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive a voice by placing the receiver 670B close to the ear of a person. The microphone 670C, also known as a "microphone," is used to convert acoustic signals into electrical signals. When a call is placed or a voice message is sent or it is desired to trigger the electronic device 100 to perform some function by the voice assistant, the user may speak via his/her mouth near the microphone 670C and input an audio signal into the microphone 670C. The electronic device 100 may be provided with at least one microphone 670C. In other embodiments, the electronic device 100 may be provided with two microphones 670C to achieve noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 670C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.

The earphone interface 670D is used to connect a wired earphone. The headset interface 670D may be the USB interface 630, or may be an open mobile electronic device platform (OMTP) standard interface of 3.5mm, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.

The keys 690 include a power-on key, a volume key, and the like. The keys 690 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.

The motor 691 may produce a vibration indication. Motor 691 can be used for incoming call vibration prompting, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 691 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 694. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.

Indicator 692 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, a missed call, a notification, etc.

The SIM card interface 695 is used for connecting a SIM card. The SIM card can be attached to and detached from the electronic apparatus 100 by being inserted into the SIM card interface 695 or being pulled out of the SIM card interface 695. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 695 can support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 695 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 695 may also be compatible with different types of SIM cards. The SIM interface 695 may also be compatible with an external memory card. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and parameter communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

the methods in the following embodiments may be implemented in the electronic device 100 having the above-described hardware structure. And the method provided by the embodiment of the application can be applied to the electronic device 100 with the folding screen shown in any one of fig. 1-5. The electronic device 100 includes at least a first screen and a second screen.

It should be noted that, if the foldable screen of the electronic device 100 can be folded to form two screens, the first screen and the second screen may be referred to as two screens included in the electronic device 100, respectively. For example, in conjunction with (B) in fig. 1 or (B) in fig. 3, the first screen and the second screen are an a screen and a B screen, respectively. If the electronic device 100 includes three or more screens, the first screen and the second screen may respectively refer to any adjacent two screens among all the screens included in the electronic device 100. For example, in conjunction with (B) in fig. 2, the first screen and the second screen may be an a screen and a B screen, respectively, or may be a B screen and a C screen, respectively.

Meanwhile, in some embodiments, the included angle α between the a screen and the B screen may range from [0 °,180 ° ]. In conjunction with the above example, the angle of the folding screen of the electronic device shown in fig. 1 (a), 1 (b), and 1 (c) ranges from [0 °,180 ° ]. In other embodiments, the included angle between the a screen and the B screen may range from [180 °, 360 ° ]. In conjunction with the above example, the angle of the folding screen of the electronic device shown in fig. 5 (a) and fig. 5 (b) ranges from [180 °, 360 ° ]. In other embodiments, the included angle between the a screen and the B screen may range from [0 °, 360 ° ].

It should be noted that, no matter the variation range of the included angle between the a screen and the B screen is [0 °,180 ° ], [180 °, 360 ° ] or [0 °, 360 ° ], in this embodiment of the present application, the electronic device 100 may dynamically adjust the gradual change effect of the electronic device according to the variation of the parameter of the folding screen, for example, adjust the brightness of the electronic device, adjust the focal length of a camera in the electronic device, and adjust the playing rate of a video in the electronic device. The electronic device 100 may also implement corresponding functions according to the change of the parameters of the folding screen.

In the embodiment of the present application, the method in the embodiment of the present application is described by taking an example that the foldable screen of the electronic device 100 can be folded to form two screens, such as an a screen and a B screen, respectively, and the variation range of the included angle between the a screen and the B screen is [0 °,180 ° ].

Please refer to fig. 9, which is a flowchart illustrating a control method of an electronic device with a foldable screen according to an embodiment of the present application. The method may include S901-S905.

S901, the electronic equipment receives folding operation of a folding screen of the electronic equipment by a user.

wherein the folding screen may be a folding screen as shown in any one of fig. 1-5. The operation of the user on the folding screen of the electronic device may be an operation of the user on closing, unfolding or bouncing (folding screen is folded and then returned) the folding screen.

In the embodiment of the present application, the folding screen may be abstracted as a Hinge device. Referring to fig. 11, the hinge device may be juxtaposed with a keyboard device (keyboard device), a touch device (touch device), and other devices to constitute an input device (input device) of the electronic device. That is, the hinge device is substantially an input device. The user can operate the electronic device through the input device.

As shown in fig. 11, the hinge device may be a specific hinge, or a real hinge device (real hinge), or may be a virtual hinge device (virtual hinge) composed of a plurality of sensors (e.g., sensors disposed in a folding screen), for example, the hinge device includes a plurality of virtual hinge devices (e.g., virtual hinge devices 1-n shown in fig. 11).

S902, in the process that the user executes the folding operation, the electronic equipment acquires original parameters of the folding screen in real time.

The electronic equipment can acquire corresponding parameters in real time according to the folding operation of the user on the hinge equipment. This parameter can be used as the original parameter for folding the screen during the folding process.

for example, the original parameters may include an angle between the first screen and the second screen (e.g., an angle between the a screen and the B screen), a folding speed of the folded screen, a folding direction of the folded screen, and a folding acceleration of the folded screen. The folded screen may be a screen that is rotated when a user performs a folding operation, among the first screen and the second screen. As shown in fig. 10, the electronic device 100 may include an input reader (input reader), which may be used to collect parameters during the folding process of the hinge device in real time according to the physical devices or sensor modules disposed on the folding screen, such as the original parameters described above.

for example, the physical hinge apparatus can directly read parameters such as folding speed, folding direction, folding acceleration, and folding angle variation, etc. through a physical device provided on the folding screen. The virtual hinge device can acquire parameters of the folding screen when the folding screen is folded in real time through built-in sensors (such as an acceleration sensor, an infrared sensor, a magnetic sensor, a gyroscope and the like).

And S903, generating a Hinge-Rotation event by the electronic equipment according to the original parameters obtained in real time.

the electronic device may perform encapsulation processing on the obtained original parameters, and obtain an event corresponding to the original parameters. For example, the electronic device may encapsulate the original parameters to obtain hinge folding events, where different hinge folding events encapsulate the corresponding original parameters. Illustratively, the hinge fold event may comprise an angle event, the angle event encapsulating an angle.

the hinge fold event can also include a velocity event, a direction event, an acceleration event, a state event, and a bounce event. The speed event is packaged with folding speed, the direction event is packaged with folding direction, the acceleration event is packaged with folding acceleration, the state event is packaged with a folding state of the folding screen obtained according to the included angle, the folding state is an unfolding state and a closed state or a half-unfolding state, the rebound event is packaged with a rebound identifier, and the rebound identifier is used for indicating whether the folding screen is folded and then returns.

in the embodiment of the present application, the folded-back in the rebound event means that the rebound event is folded in one direction (for example, folded in the unfolding direction) and then folded in the other direction (for example, folded in the closing direction). For example, the resilient folding may be performed by folding the fabric in the unfolding direction at an angle and then in the closing direction. The rebound folding can also be that the folding is firstly carried out for a certain angle towards the closing direction and then carried out towards the unfolding direction.

for example, referring to fig. 10, the electronic device 100 may further include an input device manager (input management), which is connected to the input reader and can be used to package and generate corresponding events, such as an angle event, a speed event, a direction event, an acceleration event, a state event, and a bounce event, according to the original parameters collected by the input reader.

And S904, the electronic equipment generates an event monitor according to the hinge folding event.

The electronic device may generate different event monitors from different hinge folding events, and the event monitors may be used to monitor the hinge folding events.

illustratively, the event monitor may include a hinge angle monitor for monitoring an angle of an angle event package.

The event monitor further comprises: a hinge direction monitor, a hinge state monitor, a hinge motion monitor, a first hinge bounce monitor, a second hinge bounce monitor, a third hinge bounce monitor, and a hinge bounce slide monitor.

the hinge direction monitor is used for monitoring the folding direction of the direction event package; the hinge state monitor is used for monitoring one or more of the included angle event package, the folding speed of the speed event package and the folding acceleration of the acceleration event package to obtain a Boolean value which can indicate whether the hinge device rotates or not; the hinge motion monitor is used for monitoring the angle of the included angle event package, the folding speed of the speed event package, the folding direction of the direction event package and the folding acceleration of the acceleration event package; the first hinge bounce monitor is used for monitoring the folding direction of the directional event package and the angle of the included angle event package; the second hinge bounce monitor is used for monitoring the folding direction of the direction event package; the third hinge bounce monitor is used for monitoring the angle of the included angle event package; the hinge bounce slide monitor is used for monitoring the folding direction of the direction event package to obtain a target event corresponding to the folding direction, wherein the target event comprises: a predefined fold operation event or a predefined system event.

As shown in fig. 10, an event monitor may be included in the electronic device 100 and may be used to monitor parameters in different hinge-folding events generated by the input device manager package. In some embodiments, an event monitor may be included in the viewing layer that is capable of monitoring all raw data included in all types of hinge events. In other embodiments, the view layer may set different event monitors for different hinge collapse events, where the different event monitors are capable of monitoring parameters in the corresponding hinge collapse events.

And S905, the electronic equipment executes a corresponding function according to the monitoring result of the event monitor on the hinge folding event.

For example, the event monitor may be an event monitor disposed in the viewing layer. And the degree of the corresponding function executed by the electronic equipment is different according to different monitoring results. For example, the degree of executing the corresponding function is different due to different included angles; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.

The method provided by the embodiment of the application can be used in various scenes, such as: and the electronic equipment adjusts the brightness of the folding screen according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event. And the electronic equipment adjusts the zooming magnification of the camera of the electronic equipment according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event. And the electronic equipment adjusts the video playing speed according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event. The application of the electronic device executes the corresponding function according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event; or, the electronic device determines a corresponding target event according to a monitoring result of the first hinge bounce monitor, the second hinge bounce monitor, or the third hinge bounce monitor on the parameter encapsulated in the corresponding event, and the application of the electronic device executes a function corresponding to the target event.

The application of the electronic equipment executes corresponding functions according to a target event obtained by monitoring the folding direction of the package in the direction event by the hinge bounce sliding monitor.

In the embodiment of the present application, as described above, the electronic device may set an event monitor in the view layer shown in fig. 10 to monitor a hinge folding event, and in another implementation, the upper application may also monitor a hinge folding event corresponding to the hinge folding event through the app. When the app wants to monitor an event of a certain type, the app can inherit the monitor corresponding to the event from the view layer, that is, the monitoring of the parameter in the event of the type can be realized. For example, if the app wants to monitor an angle event, the app may inherit an angle monitor from the view layer to monitor the angle. If the app wants to monitor the direction event, the app can inherit the direction monitor from the view layer to monitor the folding direction. If the app wants to monitor the acceleration event, the app can inherit an acceleration monitor from the view layer, and monitoring of the fold-over stacking speed is achieved. For example, a reading app preset in the electronic device may adjust the brightness of the reading interface according to a change of an included angle in an included angle event, and then the reading app may monitor the hinge folding event (e.g., the included angle event) and execute a corresponding function according to a monitoring result.

in this way, the user inputs a folding operation to a hinge device (e.g., a folding screen) in the electronic device, and the electronic device may collect parameters of the folding screen and package the parameters to obtain corresponding events respectively. The electronic equipment monitors the parameters in the events through the monitors corresponding to different events, and then executes corresponding functions according to monitoring results. The adjustment of the corresponding function in the electronic equipment by the folding operation of the user is realized. Since the folding operation input by the user is continuous, continuous change of parameters of the folding operation can be caused, and the electronic equipment can monitor the change of the parameters in real time, so that continuous adjustment of the gradual change effect can be realized. According to the method provided by the embodiment of the application, the user does not need to touch the screen or adjust the gradual change effect through the entity key, so that the user's sight line cannot be shielded while the gradual change effect is adjusted, and the accuracy is high.

The following describes a control method of an electronic device with a foldable screen according to an embodiment of the present application with reference to a specific scenario example.

for example, the method provided by the embodiment of the present application can be applied to at least the following application scenarios (1), (2), (3) and (4):

Application scenario (1): the electronic apparatus is in a closed state (for example, a state shown in (c) of fig. 1), that is, the a screen and the B screen form an angle α of 0 on the display side, while both the a screen and the B screen are in a black screen.

When a user wants to adjust the brightness of the folding screen by operating the folding screen, the folding operation can be performed on the folding screen. For example, the user opens the a screen and the B screen in the closed state. During the process of opening the a-screen and the B-screen by the user, the electronic device may perform the above S902-S904 to generate the corresponding angle event and the hinge angle monitor. The electronic equipment can adjust the brightness of the folding screen according to the monitoring result of the included angle between the screen A and the screen B packaged by the hinge included angle monitor for the included angle event. The control of the brightness of the folding screen by the electronic equipment can be the control of the brightness of one or more folding screens in the folding screen.

For example, in the embodiment of the present application, as the included angle between the a screen and the B screen increases, for example, the brightness of the folded screen may gradually increase from the closed state to the unfolded state of the a screen and the B screen. For example, as shown in fig. 12, the electronic apparatus is in a closed state as shown in (a) in fig. 12, and both the a screen and the B screen are black, that is, the luminance is 0. When a user gradually opens the folding screen, namely the folding screen is changed into a half-unfolding state from a closed state by rotating the screen A and/or the screen B, and then the folding screen is changed into the unfolding state, the included angle alpha between the screen A and the screen B is gradually increased. The brightness of the folded screen can be increased as the included angle alpha between the A screen and the B screen becomes larger. For example, in combination with the diagram of the correspondence between the brightness and the included angle α shown in fig. 13, as shown in (b) - (d) of fig. 12, when α is 45 °, the brightness of the folded screen may be 25% of the preset maximum brightness of the folded screen. When α is 90 °, the brightness of the folding screen may be 50% of the preset maximum brightness. When α is 180 °, the brightness of the folded screen may be 100% of the preset maximum brightness.

It should be noted that the correspondence between the included angle α and the brightness is merely an exemplary illustration of the embodiment in this scenario. The correspondence between the included angle α and the brightness may be different from the correspondence shown in fig. 13, for example, when α is 30 °, the brightness of the folded screen is 50% of the preset maximum brightness, when α is 60 °, the brightness of the folded screen is 60% of the preset maximum brightness, when α is 90 °, the brightness of the folded screen is 75% of the preset maximum brightness, and when α is 180 °, the brightness of the folded screen is 100% of the preset maximum brightness. Like this, along with folding screen opening angle's grow, the speed that folding screen brightened becomes slow, is favorable to the user to the meticulous regulation of folding screen luminance.

In some embodiments, when the electronic device is in an unfolded state (e.g., the state shown in (a) of fig. 1), that is, when the foldable screen in the electronic device is in an unfolded state and the brightness of the foldable screen is a preset maximum brightness, if the user wants to adjust the brightness of the foldable screen by operating the foldable screen, the user may perform a closing operation on the foldable screen. For example, the electronic device may adjust the brightness of the a screen and/or the B screen in the foldable screen to become dark as the included angle α between the a screen and the B screen becomes smaller, until the foldable screen is closed, the brightness of the foldable screen is reduced to 0, and the foldable screen is in a black screen state at this time.

Further, the user may also perform an operation of folding the folding screen in a half-unfolded state (e.g., the state shown in fig. 1 (b)) to adjust the brightness of the folding screen. When the folding screen of the electronic device is in a half-unfolded state, the screen a and the screen B in the electronic device are not closed or opened to form the same plane, that is, an included angle α between the screen a and the screen B in the folding screen is not equal to 0 or 180 °. The electronic device may adjust the folded screen to be brighter or darker by the current brightness in response to a folding operation of the folded screen by the user. For example, the included angle α between the a screen and the B screen is 90 °, the user closes the folding screen, and as the included angle α between the a screen and the B screen becomes smaller, the brightness of the a screen and/or the B screen gradually becomes darker until the folding screen is closed (i.e., α ═ 0 °), the brightness decreases to 0, and a black screen is displayed. Correspondingly, the user unfolds the folding screen, and as alpha is increased, the brightness of the a screen and/or the B screen gradually becomes brighter until the folding screen unfolds (namely, alpha is 180 °), and the brightness of the folding screen is increased to the preset maximum brightness of the folding screen.

When a user uses the electronic equipment, the brightness of the folding screen of the electronic equipment can be adjusted through the folding operation of the folding screen. The process is applicable to a variety of usage scenarios. For example, when a user uses the electronic device to read through a reading-type application, the user can control the brightness of the reading interface by unfolding or closing the folding screen. For a specific implementation method, please refer to the above description, which is not repeated herein.

Application scenario (2): the electronic equipment turns on the camera and enters a shooting scene. The scenario may include the following specific implementation scenarios. It is understood that when the zoom magnification of a camera is at the maximum of the camera zoom range, the focal length of the corresponding camera is farthest, and when the zoom magnification of a camera is at the minimum of the camera zoom range, the focal length of the corresponding camera is closest. Accordingly, the focal length of the camera can be adjusted by adjusting the zoom magnification of the camera.

Case (1): the folding screen of the electronic device is in an unfolded state (e.g., the state shown in fig. 1 (a)), and the camera is opened to enter a shooting scene. When the folding screen of the electronic equipment is in an unfolded state, the focal length of the camera is the farthest focal length.

when a user wants to adjust the focal length of the folding camera by operating the folding screen, the user can close the folding screen. For example, the user closes the a screen and the B screen in the unfolded state. In response to the user' S operation during the process of closing the a-screen and the B-screen, the electronic device may execute the above S902-S904 to generate the corresponding angle event and the hinge angle monitor. The electronic equipment can adjust the focal length of the camera according to the monitoring result of the included angle between the screen A and the screen B packaged by the hinge included angle monitor for the included angle event. Illustratively, the electronic device adjusts the zoom ratio of the camera of the electronic device according to the monitoring result of the hinge angle monitor on the angle of the angle event package. Assume that the zoom magnification of the camera takes a value range of [ first magnification, second magnification ]. Then, if the folded state of the folded screen is the unfolded state and the zoom magnification of the camera is the second magnification before the folding operation is performed, the smaller the monitored angle, the smaller the zoom magnification of the camera. For example, the electronic device may control the focal length of the camera to be closer as the angle α between the a screen and the B screen becomes smaller. Wherein, the change speed of the focal length of the camera can be in positive correlation with the change speed of the angle of the folding screen. Referring to fig. 14, the user may open the camera into a shooting scene in the folded-screen unfolded state (the state shown in (a) of fig. 14). When a user needs to adjust the focal length of the camera, the folding screen is gradually closed, the included angle alpha between the screen A and the screen B on the folding screen is reduced, and the electronic equipment can adjust the focal length of the camera according to the change of the included angle alpha. For example, in connection with the example of fig. 15, and referring to (b) of fig. 14, when the included angle α is reduced to 90 °, the electronic device may control the focal length of the camera to be adjusted to 50% of the farthest focal length. When the angle α is reduced to 45 ° (as shown in (c) of fig. 14), the focal length of the camera may be adjusted to 25% of the farthest focal length. And when the user folds the folding screen to the closed state, namely the included angle alpha between the a screen and the B screen is 0 deg. (as shown in (d) of fig. 14), the electronic device can control the focal length of the camera to be adjusted to be nearest accordingly.

in other embodiments of the present application, when the user opens the camera while the foldable screen is in the unfolded state and the camera is at the minimum focal length, the user may also adjust the focal length of the camera by performing a closing operation on the foldable screen. Illustratively, if the folded state of the folded screen is the unfolded state and the zoom magnification of the camera is the first magnification before the folding operation is performed, the smaller the monitored angle, the larger the zoom magnification of the camera.

Case (2): the electronic device is in a closed state (e.g., the state shown in fig. 1 (c)), the camera is opened, and a shooting scene is entered. When the electronic equipment is in a closed state, the focal length of the camera is the farthest focal length.

when a user wants to adjust the focal length of the folding camera by operating the folding screen, the user can perform unfolding operation on the folding screen. For example, the user unfolds the a-screen and the B-screen in the closed state. In the process of unfolding the a screen and the B screen by the user, in response to the operation of the user, the electronic device may execute the above S902-S904 to generate a corresponding angle event and a hinge angle monitor. The electronic equipment can adjust the focal length of the camera according to the monitoring result of the included angle between the screen A and the screen B packaged by the hinge included angle monitor for the included angle event. Illustratively, the electronic device adjusts the zoom ratio of the camera of the electronic device according to the monitoring result of the hinge angle monitor on the angle of the angle event package. Assume that the zoom magnification of the camera takes a value range of [ first magnification, second magnification ]. Then, if the folded state of the folded screen is the closed state and the zoom magnification of the camera is the second magnification before the folding operation is performed, the larger the monitored angle, the smaller the zoom magnification of the camera. For example, the user gradually unfolds the folding screen, and the focal length of the camera is adjusted closer. Wherein, the speed of the focal length change of the camera can be in positive correlation with the change speed of the angle of the folding screen. Similar to the description in the above case (1), when the user needs to adjust the focal length of the camera, the foldable screen may be gradually unfolded, and the included angle α between the screen a and the screen B on the foldable screen gradually increases. The electronic equipment can be according to the degree of change of this angle and close camera focal length, until the folding screen expandes, and contained angle alpha is 180 promptly, and electronic equipment can be with the focal length adjustment of camera nearest. For example, when the user turns on the camera, the angle α is 0 °, and the focal length of the camera is farthest. The user unfolds the folding screen, and the included angle alpha is increased accordingly. When the included angle alpha is 45 degrees, the electronic equipment adjusts the focal length of the camera to 75% of the farthest focal length; when the included angle alpha is 90 degrees, the electronic equipment adjusts the focal length of the camera to 50% of the farthest focal length; when the included angle alpha is 75 degrees, the electronic equipment adjusts the focal length of the camera to 25% of the farthest focal length. When the user unfolds the folding screen, i.e. the angle α is 180 °, the electronic device adjusts the focal length of the camera to be closest.

It should be noted that the correspondence between the included angle α and the camera focal length in the above example is only one relationship included in the embodiments of the present application, and in other embodiments of the present application, the electronic device may also adjust the camera focal length in other correspondence relationships. The embodiments of the present application are not described herein again.

In other embodiments of the present application, when the user opens the camera when the foldable screen is in the closed state and the camera is at the minimum focal length, the user may also adjust the focal length of the camera by performing a closing operation on the foldable screen. Illustratively, if the folded state of the folded screen is a closed state and the zoom magnification of the camera is a first magnification before the folding operation is performed, the larger the monitored angle, the larger the zoom magnification of the camera.

in addition, if the focal length is adjusted in the manner provided in the above case (1) or case (2), when the initial position of the folding screen is not in the unfolded or closed state, the user may unfold or close the folding screen first, and then adjust the focal length according to the method provided in the above case (1) or case (2).

case (3): the folding screen of the electronic device is in a half-folded state (for example, the state shown in (B) in fig. 1), such as an angle α between the a screen and the B screen on the folding screen, and α ∈ (0 °,180 °). The user turns on the camera and enters a shooting state. The camera focus is at its farthest distance. The user can adjust the focal length of the camera by adjusting the angles of the A screen and the B screen on the folding screen. Similar to the two above cases, the electronic device may perform the above-described S902-S904 to generate corresponding angle events and hinge angle monitors. The electronic equipment can adjust the focal length of the camera according to the monitoring result of the included angle between the screen A and the screen B packaged by the hinge included angle monitor for the included angle event.

For example, the electronic device determines an included angle α between the a screen and the B screen on the folded screen, so as to determine a range of the side where the folding angle is adjustable by a larger amount. For example, the electronic device may compare the magnitude relationship between α and (180 ° - α), and when α > (180 ° - α), the range on the side where the folding angle is adjustable by a large amount may be determined to be (0 ° - α), and when α < (180 ° - α), the range on the side where the folding angle is adjustable by a large amount may be determined to be (180 ° - α). Therefore, when the included angle alpha is changed in the range of the side with the larger adjustable quantity, the electronic equipment can control the focal length of the camera to be correspondingly adjusted.

If the folding state of the folding screen is a half-folding state before the folding operation is executed, and the zooming magnification of the camera is a second magnification, when the included angle is smaller than 90 degrees, the monitored included angle is larger, the zooming magnification of the camera is smaller, and when the included angle is larger than 90 degrees, the monitored included angle is smaller, and the zooming magnification of the camera is smaller;

For example, referring to fig. 16 (a), when the angle between the a screen and the B screen on the folding screen of the electronic device is 60 ° (i.e., α is 60 °) and the camera is opened for shooting, the electronic device determines that the side on which the angle α of the folding screen is adjustable by a large amount is (60 ° -180 °). Therefore, the strategy that the electronic equipment adjusts the focal length of the camera according to the change of the included angle of the folding screen can be as follows: in the range of (60-180 degrees), the included angle alpha is increased, and the focal distance of the camera is adjusted closer. The change speed of the included angle α can be in a positive correlation with the adjustment speed of the focal length of the camera. For example, when the folding angle α is 60 °, the camera focal length is farthest. The user expands the folding screen, and the included angle of the folding screen is increased accordingly. When the included angle alpha is 90 degrees, the focal length of the camera can be adjusted to 75% of the farthest focal length; when the included angle alpha is 120 degrees, the focal length of the camera can be adjusted to 50% of the farthest focal length; when the included angle alpha is 150 degrees, the focal length of the camera can be adjusted to 25% of the farthest focal length; when the folded screen is unfolded, i.e. the angle α is 180 °, the camera focal length can be adjusted to be closest. When the user folds the folding screen in a direction in which the folding angle decreases, since the focal length of the camera is already in the farthest state, the focal length is not adjusted as the folding angle decreases.

for another example, referring to fig. 16 (B), when the angle between the a screen and the B screen on the folding screen of the electronic device is 100 ° (i.e., α is 100 °), the camera is turned on to shoot, and the electronic device determines that the side of the folding screen where the angle α is adjustable by a large amount is (0 ° -100 °). Therefore, the strategy that the electronic equipment adjusts the focal length of the camera according to the change of the included angle of the folding screen can be as follows: in the range of (0-100 degrees), the folding angle alpha is reduced, and the focal distance of the camera is adjusted to be closer. The change speed of the included angle α can be in a positive correlation with the adjustment speed of the focal length of the camera. For example, when the user turns on the camera, the angle α is 100 °, and the focal length of the camera is farthest. When the user closes the folding screen, when the included angle alpha is 75 degrees, the focal length of the camera can be adjusted to 75 percent of the farthest focal length; when the included angle alpha is 50 degrees, the focal length of the camera is 50% of the farthest focal length; when the included angle alpha is 25 degrees, the focal length of the camera can be adjusted to 25% of the farthest focal length; with an angle α of 0 °, the focal length of the camera can be adjusted to be closest. When the user unfolds the folding screen towards the direction of increasing the included angle, the focal length of the camera is in the farthest state, so that the focal length cannot be adjusted along with the increase of the included angle.

It should be noted that, in the above cases (1), (2), and (3), the focal length when the camera is initially opened is set to be the farthest focal length, in other embodiments of the present application, the focal length when the camera is initially opened may also be the closest focal length, at this time, the user closes or unfolds the folding screen to change the included angle α between the a screen and the B screen in the folding screen, and the electronic device may control the camera to adjust the focal length in the direction opposite to the direction in the above descriptions of the cases (1), (2), and (3). The specific implementation method is similar, and is not described herein again.

case (4): the folding screen of the electronic device is in any folding state (for example, the state shown in fig. 1 (B)), and an angle between the a screen and the B screen on the folding screen is α, α e (0 °,180 °). The user turns on the camera and enters a shooting state. The state of the focal length of the camera at this time may be any one of the farthest focal length and the closest focal length. The user can adjust the focal length of the camera by adjusting the included angle between the A screen and the B screen on the folding screen. The user can adjust the focal distance of the camera to the focal distance state of the camera through the folding screen. Similar to the above three cases, the electronic device may perform the above-described S902-S904 to generate corresponding angle events and hinge angle monitors. The electronic equipment can adjust the focal length of the camera according to the monitoring result of the included angle between the screen A and the screen B packaged by the hinge included angle monitor for the included angle event.

Illustratively, a user opens a camera to enter a shooting scene, and adjusts the focal distance of the camera to any one focal distance between the farthest focal distance and the nearest focal distance through adjustment of a folding screen, at this time, the electronic device determines an included angle α between a screen a and a screen B on the folding screen, and at the same time, determines the adjustment margin of the focal distance of the camera, so that when the user performs an operation of closing or unfolding the folding screen, the electronic device can adjust the focal distance of the camera in response to the operation. Wherein, the side with larger focal length adjustment allowance can correspond to the side with larger folding angle adjustable quantity of the folding screen.

If the folding state of the folding screen is a half-folding state before the folding operation is executed, the zoom magnification of the camera is a third value which is larger than the first magnification and smaller than the second magnification, when the included angle is larger than 90 degrees and the difference between the third value and the first magnification is smaller than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is smaller, the monitored included angle is smaller, and the zoom magnification of the camera is larger; when the included angle is larger than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is larger, the monitored included angle is smaller, and the zoom magnification of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is smaller than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zooming multiplying power of the camera is larger, the monitored included angle is smaller, and the zooming multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the larger the monitored included angle is, the smaller the zoom magnification of the camera is, and the smaller the monitored included angle is, the larger the zoom magnification of the camera is.

for example, referring to fig. 17, as shown in (a) of fig. 17, the folding screen of the electronic device is in a 60 ° folded state, that is, an angle α between the a screen and the B screen on the folding screen is 60 °. Assuming that the farthest focal length of the camera corresponds to the camera being in the state of 30 times zoom, the user may adjust the camera focal length to the state of 20 times zoom by folding the screen (e.g., the 20 times zoom is selected by the focal length selectable item displayed on the folding screen), and at this time, the accurate adjustment of the camera focal length may be continued by folding the folding screen. The electronic device determines that the side with the larger focal length adjustment margin of the camera is focal length adjustment of 0-20 times of zooming, and the electronic device simultaneously determines that the side with the larger adjustable margin of the included angle alpha is (60-180 degrees) in the current state of the folding screen, so that the electronic device can determine the focal length adjustment strategy as follows: when the folding angle is increased, the zooming magnification is reduced, and the focal length of the camera is correspondingly adjusted to be close. When the folding angle is reduced, the zooming magnification is increased, and the focal length of the camera is correspondingly adjusted far. When a user unfolds the folding screen, the included angle alpha is correspondingly increased, and the electronic equipment can adjust the zoom magnification of the camera according to the change of the included angle and the strategy, so that the focal length of the camera can be adjusted. When α is 90 °, the zoom magnification adjustment may be adjusted to 15 times by the electronic device; when α is 120 °, the zoom magnification may be adjusted to 10 times; when α is 150 °, the zoom magnification can be adjusted to 5 times; when α is 180 ° (the folded screen is unfolded), the camera focal length can be adjusted to the nearest focal length, i.e., the zoom magnification is 0. Correspondingly, when the user closes the folding screen, and when α is 30 °, the zoom magnification can be adjusted to be 25 times; when α is 0 ° (the folding screen is closed), the camera focal length can be adjusted to the farthest focal length, that is, the zoom magnification is 30 times.

As another example, as shown in fig. 17 (B), the folding panel of the electronic device is in a state of being folded at an angle of 60 °, that is, the folding angle α of the a panel and the B panel on the folding panel is 60 °. Assuming that the farthest focal length of the camera corresponds to the state that the camera is in a zoom state of 30 times, the user adjusts the focal length of the camera to the state of zoom of 10 times by folding the screen, and at this time, the focal length of the camera can be continuously adjusted by folding the folding screen. The electronic device determines that the side with larger focal length adjustment allowance of the camera is focal length adjustment of zooming 10-30 times, and the electronic device simultaneously determines that the side with larger adjustable allowance of the included angle is (60-180 degrees) in the current state of the folding screen, so that the electronic device can determine the focal length adjustment strategy as follows: when the folding angle is increased, the zooming magnification is increased, and the focal length of the camera is correspondingly adjusted far. When the folding angle is reduced, the zooming magnification is reduced, and the focal length of the camera is correspondingly adjusted to be close. When a user unfolds the folding screen, the included angle alpha is correspondingly increased, and the electronic equipment can adjust the zoom magnification of the camera according to the change of the included angle and the strategy, so that the focal length of the camera can be adjusted. When α is 90 °, the zoom magnification may be adjusted to 15 times; when α is 120 °, the zoom magnification may be adjusted to 20 times; when α is 150 °, the zoom magnification may be adjusted to 25 times; when α is 180 ° (the folding screen is unfolded), the camera focal length can be adjusted to the farthest focal length, i.e., the zoom magnification is 30 times. Correspondingly, when the user closes the folding screen, and when α is 30 °, the zoom magnification can be adjusted to 5 times; when α is 0 ° (the folding screen is closed), the camera focal length can be adjusted to the nearest focal length, i.e., the zoom magnification is adjusted to 0 times.

Application scenario (3): the electronic equipment opens the video and plays the video. In the video playing process, a user can control the video to fast forward or fast backward and control the video playing speed by unfolding or closing the folding screen (namely changing the included angle alpha between the A screen and the B screen on the folding screen). The electronic device may perform the above-described S902-S904 to generate a corresponding angle event and hinge angle monitor. The electronic equipment can adjust the video playing speed according to the monitoring result of the hinge included angle monitor on the included angle between the screen A and the screen B packaged by the included angle event. For convenience of description, it is assumed that the video playing speed value range [ the first speed, the second speed ], and the normal playing speed of the video is greater than the first speed and less than the second speed. The scenario may include the following cases:

Case (1): the folding screen is closed (namely the included angle alpha between the A screen and the B screen on the folding screen is 0 degrees), and the video is opened and played. The user gradually unfolds the folding screen to control the speed of video playing.

If before executing the folding operation, the folding state of the folding screen is a closed state, and the video playing speed is a third speed, the third speed is greater than the first speed and less than the second speed, and is a normal video playing speed, when the included angle is in the range of 0 ° to 45 °, the monitored included angle is larger, the playing speed is larger, when the included angle is in the range of 45 ° to 135 °, the monitored included angle is larger, the playing speed is smaller, and when the included angle is in the range of 135 ° to 180 °, the monitored included angle is larger, and the playing speed is larger.

For example, α ═ 45 °, 90 °, 135 °,180 ° may be used as the critical point. Please refer to fig. 18, which is a schematic diagram illustrating a corresponding relationship between a video playing rate and an included angle of a folding screen according to an embodiment of the present application. As shown in fig. 17, the user unfolds the folding screen from the closed state, and α becomes larger. And when the electronic equipment determines that the alpha belongs to the range of 0 degrees and 90 degrees, controlling the accelerated playing of the video. The video fast-forwarding speed is gradually increased when the alpha belongs to the range of 0 degrees and 45 degrees, and the video fast-forwarding speed is gradually reduced when the alpha belongs to the range of 45 degrees and 90 degrees. The video playing speed controlled by the electronic device along with the change of the folding screen included angle may be a sinusoidal relationship of a curve 1 as shown in fig. 18, may also be a linear relationship of a curve 2 as shown in fig. 18, and may also be other corresponding relationships besides the curve 1 and the curve 2. The following is an exemplary illustration of the change in the angle of the folded screen in a linear relationship with the video playback rate (curve 2 shown in fig. 17).

For example, when the video is normally played, i.e. in the state of the folding screen being closed, the video playing rate is 25 frames per second. The user gradually unfolds the folding screen and the video playback rate may increase to 30 frames per second when alpha is 15 deg. and may further increase to 35 frames per second when alpha increases to 30 deg.. When α is 45 °, the video playback rate is fastest, for example, 40 frames per second. As the user continues to unfold the folded screen, the video is slowed down gradually in the range of α ∈ (45 °, 90 °). When alpha is 60 deg., the video playback rate may be up to 35 frames per second, and when alpha is increased to 75 deg., the fast forward speed is further decreased, and the video playback rate may be up to 30 frames per second. When α increases to 90 °, the video playback rate returns to normal, which may be 25 frames per second in the folded screen closed state, for example.

And when the electronic equipment determines that the alpha is within the range of 90 degrees and 180 degrees, controlling the video to slow down the playing rate. Wherein the video playing speed gradually becomes slower when the alpha is within the range of 90 degrees and 135 degrees. Within the range of α ∈ (90 °, 135 °), the video playback rate gradually returns to normal. For example, when the angle α between the a screen and the B screen on the folding screen is 90 °, the video is played at a normal speed, for example, 25 frames per second. When a user unfolds the folding screen, the included angle alpha between the screen A and the screen B on the folding screen gradually increases, and the video playing speed is slowed down accordingly. For example, when the angle α is 105 °, the speed of video playback may be slowed down to 20 frames per second. When α is 120 °, the speed of video playback can be further slowed down to 15 frames per second. When α is 135 °, the video can be played at the slowest speed, such as 10 frames per second. And as the user continues to unfold the folding screen, the included angle alpha between the A screen and the B screen on the folding screen continues to be increased and enters a range of (135 degrees and 180 degrees), and the video playing speed gradually recovers to the normal playing speed. For example, when α is 150 °, the video may be played at a speed of 15 frames per second, and when α is 165 °, the video may be played at a speed of 20 frames per second. When the folding screen is unfolded, i.e. alpha is 165 deg., the electronic device can control the video to play at the normal speed of 25 frames per second.

Case (2): the folding screen is unfolded (namely the included angle alpha between the A screen and the B screen on the folding screen is 180 degrees), and the video is opened and played. The user gradually closes the folding screen to control the video to play at different speeds.

If the folding state of the folding screen is the unfolding state before the folding operation is performed, and the playing speed of the video is the third speed, when the included angle is in the range of 180-135 degrees, the monitored included angle is smaller, the playing speed is smaller, when the included angle is in the range of 135-45 degrees, the monitored included angle is smaller, the playing speed is larger, and when the included angle is in the range of 45-0 degrees, the monitored included angle is smaller, and the playing speed is smaller.

Exemplarily, similarly to the description in the case (1), α ═ 45 °, 90 °, 135 °,180 ° may be taken as the critical point. The user gradually closes the folding screen from the unfolded state, and alpha is reduced along with the closing. And when the electronic equipment determines that the alpha is within the range of 90 degrees and 180 degrees, controlling the video to slow down the playing rate. When α is 135 °, the video playback rate decreases to the slowest. As the user continues to close the folding screen, when the α ∈ (90 °, 135 °) is within the range, the video playing rate gradually returns from the slowest to normal, until the α ═ 90 °, the electronic device controls the video to play at the normal speed. The user may continue to close the folding screen and alpha may continue to decrease accordingly. And when the electronic equipment determines that the alpha belongs to the range of 0 degrees and 90 degrees, controlling the video to accelerate the playing speed. For example, when the electronic device determines that α ∈ (45 °, 90 °) is within the range, the video is controlled to gradually increase the playback rate. When α is 45 °, the video playback rate is increased to the maximum value. And as the user continues to close the folding screen, when the alpha belongs to the range of (0 degrees and 45 degrees), the video gradually returns to normal from the fastest playing speed until the folding screen is closed, namely, the alpha is 0 degrees, and the electronic equipment controls the video to return to normal speed for playing.

case (3): the folding screen is in a half-unfolding state, namely an included angle alpha epsilon (0 DEG and 180 DEG) between the screen A and the screen B on the folding screen, and the video is opened and played. The user can change the size of an included angle between the A screen and the B screen on the folding screen by folding the folding screen so as to control the video to be played at different speeds.

For example, please refer to the description in the case (3) in the above scenario (2), and similarly, the electronic device may determine the folding angle α between the a screen and the B screen on the folding screen, and accordingly determine the side with the larger folding angle adjustable amount. Then, the electronic device can control the video playing speed to be adjusted within the range of the side with the larger adjustable folding angle. For example, the electronic device determines that the adjustment range of (0 °, α) is greater than the adjustment range of (α,180 °), i.e., α > (180 ° - α), then, in some embodiments of the present application, the electronic device may determine the policy for adjusting the video playback rate as:

When a user closes the folding screen, namely an included angle alpha between the A screen and the B screen on the folding screen is reduced, the electronic equipment can control the video to slow down the playing speed, and when the folding angle is reduced to alpha/2, the video playing speed is reduced to the slowest. If the folding angle is reduced as the user folds, the video playing speed can be gradually restored to the normal playing speed within the range of (0, alpha/2) until the folding screen is closed, alpha is 0 degrees, and the electronic device controls the video to be played at the normal speed. Correspondingly, when the user unfolds the folding screen, the electronic equipment can control the video to accelerate the playing speed, when the folding angle is increased to (180-alpha)/2, the video playing speed is fastest, and when the folding angle exceeds (180-alpha)/2 and continues to be increased, the electronic equipment can control the video to gradually recover the normal playing speed until the folding screen unfolds and the video playing speed returns to normal.

In other embodiments of the present application, the electronic device may also determine the video playback rate adjustment policy to be:

When the user closes the folding screen, namely the folding angle alpha between the A screen and the B screen on the folding screen is reduced, the electronic equipment can control the video to accelerate the playing speed, and when the folding angle is reduced to alpha/2, the video playing speed is increased to the fastest speed. If the folding angle is reduced as the user folds, the video playing speed can be gradually restored to the normal playing speed within the range of (0, alpha/2) until the folding screen is closed, alpha is 0 degrees, and the electronic device controls the video to be played at the normal speed. Correspondingly, when the user unfolds the folding screen, the electronic equipment can control the video to reduce the playing speed, when the folding angle is increased to (180-alpha)/2, the video playing speed is slowest, and when the folding angle exceeds (180-alpha)/2 and continues to be increased, the electronic equipment can control the video to gradually recover the normal playing speed until the folding screen unfolds and the video playing speed returns to normal.

As another example, if the electronic device determines that the adjustment range of (0 °, α) is smaller than the adjustment range of (α,180 °), i.e., α < (180 ° - α), then the electronic device can control the playing rate of the video with the opposite strategy to the adjustment method in the above description. And will not be described in detail herein.

The embodiment of the present application also provides another example of adjusting the video playing rate through the input folding operation.

Illustratively, the folding screen is in a half-unfolded state, and the user opens the video to play at a normal third rate. When the user inputs a folding operation to the folding screen, so that the included angle of the folding screen changes, the electronic device may control the video to play at a rate that is consistent with the rate shown by curve 1 in fig. 18. For example, when the folding screen is in a half-unfolded state, the included angle α is 10 °, and at this time, the video is played at a normal speed, and when the electronic device monitors that the included angle changes, the electronic device may determine the playing speed corresponding to the included angle at the current time according to a preset corresponding relationship between the included angle and the playing speed. For example, the preset corresponding relationship is curve 2 as shown in fig. 18, and when the included angle of the folding screen changes, the electronic device adjusts the video to play at the rate of 1. Next, with the change of the included angle of the folding screen, the method for controlling the video playing rate by the electronic device may refer to the above case (1) or case (2), and details are not repeated here.

it should be noted that, in the above case (3) in the video playing scene, the electronic device may adjust the video playing speed in the range of the angle between the a screen and the B screen on the folding screen [0 ° -180 ° ] as described above. In other embodiments of the present application, the electronic device may also adjust the video playing speed when the included angle between the a screen and the B screen is smaller. For example, assuming that the angle between the a screen and the B screen is α when the video starts playing, and the adjustment range of (0 °, α) is smaller than (α,180 °), the electronic device may control the video to perform the adjustment of the playing rate within the range of the angle of (0 °, 2 α), for example, when the angle is smaller than α, the video playing rate may be slowed down with the change of the angle, and when the angle is greater than α and smaller than 2 α, the video playing rate may be accelerated with the change of the angle. And when the included angle is larger than 2 alpha, the playing speed of the video can not be influenced by the angle change.

it can be understood that, when the control method of the present application is applied to a video playing adjusting scene, a user can adjust the playing rate in the above 3 cases by folding the folding screen. In other embodiments, the method may also be used to adjust the playback of video fast-forward or fast-reverse. For example, video fast-forward may correspond to a case of playing at a rate greater than the third rate among the above cases, and video fast-reverse may correspond to a case of playing at a rate less than the third rate among the above cases. Therefore, the user can realize the fast forward or fast backward modulation of the video through the folding operation of the folding screen. The specific method is similar to the above 3 cases, and is not described herein again.

Application scenario (4): the folding screen of the electronic device is at any angle. The user folds the A screen or the B screen of the folding screen at any angle and then returns, namely, the user inputs rebound operation, and a certain specific function is realized.

illustratively, when a user wants to input a bounce operation to adjust the electronic device, the electronic device may perform the above-described S902-S904 to generate a corresponding hinge bounce monitor. The hinge bounce monitor may include a first hinge bounce monitor capable of monitoring direction events encapsulating a folding direction and angle events encapsulating an angle, a second hinge bounce monitor capable of monitoring direction events encapsulating a folding direction, a third hinge bounce monitor capable of monitoring angle events encapsulating an angle, and a hinge bounce slide monitor.

Wherein the hinge bounce slide monitor can be used to monitor a folding direction of the directional event package to obtain a target event corresponding to the folding direction, which may be a predefined folding operation event or a predefined system event.

In some embodiments, an application of the electronic device may perform a corresponding function based on the results of monitoring of parameters encapsulated in a corresponding event by the first hinge bounce monitor, the second hinge bounce monitor, or the third hinge bounce monitor.

in other embodiments, the electronic device may determine a corresponding target event according to a monitoring result of the first hinge-bounce monitor, the second hinge-bounce monitor, or the third hinge-bounce monitor on the parameter encapsulated in the corresponding event, and an application of the electronic device may execute a function corresponding to the target event.

In other embodiments, the electronic device may further include a fourth hinge bounce monitor that monitors the bounce flag encapsulated in the bounce event to show whether the folded screen is folded and returned. The electronic device can execute the corresponding function according to the monitoring result of the rebound mark.

It should be noted that, the application of the electronic device may also execute a corresponding function according to a target event obtained by monitoring the folding direction of the package in the direction event by the hinge-bounce sliding monitor.

In this embodiment, the electronic device may send the parameters obtained by monitoring by the different monitors to the app in various forms, so that the app executes the corresponding function.

In some embodiments, the electronic device may provide the received parameters of the bounce operation to the app through an Application Programming Interface (API) in the form of a Software Development Kit (SDK), so that the app can automatically process the function corresponding to the bounce operation event according to the current service scenario.

For example, it is assumed that the current business scenario is reading through an e-book reading app, and a folding screen of the electronic device is in an unfolded state and displays the content of a certain page of the currently-read e-book.

For example, the user folds the B screen of the folded screen by an angle α 1 and then unfolds the folded screen again quickly without stopping, where α 1 is smaller than a first preset threshold. Then, the folding screen is folded from the unfolded state by α 1 and then restored to the unfolded state constitutes a rebound operation. The electronic device may send the parameter of the bounce operation to the electronic book reading app, and in response to the bounce operation, the electronic book reading app may perform an operation of turning to a next page, that is, displaying the content of the next page on the folding screen of the electronic device. Correspondingly, the user inputs the bounce operation to the screen a of the folding screen, so that the e-book reading app can perform an operation of turning to the previous page, that is, the content of the previous page is displayed on the folding screen of the electronic device.

For another example, the user folds the B screen of the folding screen by an angle α 2 and then rapidly unfolds the folding screen again without stopping, where α 2 is greater than the first preset threshold and smaller than the second preset threshold. Then, the restoration of the unfolded state of the folding screen after folding α 2 from the unfolded state constitutes another rebound operation. The electronic device may send the parameter of the bounce operation to the e-book reading app, and as a response to the bounce operation, the e-book reading app may perform an operation of exiting the e-book, entering a last page or a first page of a next e-book, and displaying content of a relevant page on a folding screen of the electronic device. Correspondingly, the user inputs the rebounding operation to the screen a of the folding screen, so that the e-book reading app can execute the operation of exiting the e-book, entering the operation of reading the last page or home page of the previous e-book, and displaying the content of the relevant page on the folding screen of the electronic device.

For another example, after the user folds the B screen or the a screen of the folded screen by an angle α 3, the folded screen is unfolded again to the unfolded state after a slight pause (e.g. 1 second), where α 3 is greater than the second preset threshold. Then, the folding screen is folded from the unfolded state by α 3, and then the folded screen is stopped slightly and then restored to the unfolded state, which constitutes another rebound operation. The electronic device may send the parameter of the bounce operation to the e-book reading app, and as a response to the bounce operation, the e-book reading app may exit the currently displayed e-book, return to the user library page, and display the e-book in the library.

In other embodiments, the electronic device may provide the predefined bouncing operation event to the system or app in the form of a system-defined general standard folding operation event (e.g., a bouncing closing event that triggers a closing direction, and a bouncing unfolding event that triggers an unfolding direction, etc.) in a broadcast manner via the API or system. So that the system or app can monitor the event to implement the corresponding function.

Illustratively, the electronic device is playing music. The user can adjust the volume of music and switch music by inputting a rebound operation.

for example, the folding screen is in an unfolded state. The predefined rebound operation event is that the B screen of the folding screen is folded to a certain angle in the closing direction and then unfolded again. The electronic device may provide the bounce operation to the system as a bounce closure event. The system may establish a correspondence between the angular variation of the fold angle and the volume adjustment in the bounce closure event, such as a corresponding 1 db reduction in volume for each angular variation of the fold angle that occurs with an alpha. The system monitors the event, and when the user inputs the rebound operation, the system can determine the decibel number of the volume reduction according to the angle variable of the rebound operation, and then correspondingly adjust the playing volume of the music.

as another example, the folding screen is in a closed state. The predefined rebound operation event is that the B screen of the folding screen is closed again after being unfolded for a certain angle. The electronic device may provide the bounce operation as a bounce unrolling event to the app. The app can establish a corresponding relationship between the folding acceleration and music switching in the rebound unfolding event, and if the folding acceleration is greater than a preset threshold value, the currently played music can be switched to the next music. The app detects the event, and when the user inputs the bounce operation, the app can determine whether to switch to the next playing according to the folding acceleration of the bounce operation.

in other embodiments, the electronic device may process the bounce operation event as a target event (e.g., as a left or right swipe event like a page swipe event) and provide this target event to the app via the API in the form of an SDK, and the app that needs to use the function may inherit the event and respond.

illustratively, a user is using an electronic device for picture preview through a picture preview app. Wherein the electronic device is in an unfolded stowed position. The user can perform an operation of zooming in and out on the picture or switch to another picture for browsing by inputting a bounce operation.

For example, referring to fig. 19, the bounce operation is to close the B screen of the folding screen to the a screen or to open the B screen of the folding screen to the a screen after closing the B screen at a certain angle (for example) in the direction away from the a screen. When greater than 0, i.e., the B screen of the folded screen is closed toward the a screen, the bounce operation may correspond to a target event of sliding away to both ends at the same time, as shown in (a) of fig. 19; when less than 0, i.e., the B screen of the folded screen is closed away from the a screen, the bounce operation may correspond to a target event of simultaneously approaching a slide toward the middle. The electronic device provides the target event corresponding to the rebound event to the picture preview app in the form of an SDK through the API. It is assumed that the app enlarges the displayed picture when receiving an operation of simultaneously sliding away from both ends, and reduces the displayed picture when receiving an operation of simultaneously sliding toward the middle. The app can determine whether to zoom in or out on the picture by monitoring the size and direction of the fold angle in the bounce operation entered by the user.

For another example, the bounce operation is to close the a screen of the folded screen to a direction close to the B screen or to close the a screen to a direction away from the B screen by a certain angle (e.g., ξ) and then expand the a screen again. When ξ is greater than 0, that is, the B screen of the folding screen is closed in the direction approaching the a screen, as shown in fig. 19 (B), this bouncing operation may correspond to a target event of sliding to the left; when ξ is less than 0, i.e., the B screen of the folded screen closes away from the a screen, this bouncing operation may correspond to a target event of sliding to the right. The electronic device provides the target event corresponding to the rebound event to the picture preview app in the form of an SDK through the API. Assume that the app jumps to the previous picture display (a lamb as shown in (b) in fig. 19) when receiving the operation of sliding left, and jumps to the next picture display (a mouse as shown in (b) in fig. 19) when receiving the operation of sliding right. The app can determine whether to jump to display the previous picture or the next picture by monitoring the size and direction of the folding angle in the bounce operation input by the user.

When the method for dynamically adjusting through the bounce operation provided by the embodiment of the present application is applied to the application scenario (4), some other implementation manners different from the above description may also be adopted, for example, an event corresponding to a certain feature of the bounce operation is provided to the system and the app application as an event function preset by the system. For example, a certain angle of bounce operation may trigger a screen capture function of the electronic device, a certain angle of bounce operation may trigger the electronic device to turn on a voice assistant, and a certain angle of bounce operation may trigger the electronic device to turn on a camera.

further embodiments of the present application further provide an electronic device, configured to perform the method described in each of the above method embodiments. As shown in fig. 20, the electronic device may include: a folding screen 2001, one or more processors 2002, and memory 2003. The foldable screen 2001 is a display screen that includes or can be folded to form at least a first screen and a second screen for displaying content according to instructions from the one or more processors 2002. The memory 2003 is used to store one or more computer programs 2004. The one or more processors 2002 are configured to execute one or more computer programs 2004, the one or more computer programs 2004 including instructions that may be configured to perform the steps performed by the electronic device in the corresponding embodiment of fig. 9. The above folding screen 2001, processor 2002 and memory 2003 may be connected to each other via a communication line 2005.

for example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: receiving a folding operation of the folding screen 2001 by a user; during the folding operation performed by the user, the original parameters of the folding screen 2001 are obtained in real time, and the original parameters may include at least one of the following parameters: the folding device comprises an included angle between a first screen and a second screen, the folding speed of a folded screen, the folding direction of the folded screen and the folding acceleration of the folded screen. The folded screen is a screen which is rotated when a user executes folding operation in the first screen and the second screen; executing corresponding functions according to the original parameters obtained in real time; wherein, the degree of executing corresponding functions is different due to different included angles; the folding speeds are different, and the degrees of executing corresponding functions are different; the folding directions are different, and the degrees of executing corresponding functions are different; or, the folding acceleration is different in magnitude, and the degree of executing the corresponding function is different.

As another example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: generating a Hinge folding Hinge-Rotation event according to the original parameters, wherein the Hinge folding event is used for packaging the obtained original parameters; the hinge folding event comprises an included angle event, and an included angle is encapsulated in the included angle event; generating an event monitor according to the hinge folding event, wherein the event monitor is used for monitoring the hinge folding event; the event monitor comprises a hinge included angle monitor, and the hinge included angle monitor is used for monitoring an included angle packaged by an included angle event; and executing corresponding functions according to the monitoring result of the event monitor on the hinge folding event.

In other embodiments of the present application, the hinge folding event further comprises at least one of the following event types: a velocity event, a direction event, an acceleration event, a state event, and a bounce event; the speed event is packaged with a folding speed, the direction event is packaged with a folding direction, the acceleration event is packaged with a folding acceleration, the state event is packaged with a folding state of the folding screen 2001 obtained according to an included angle, the folding state is an unfolding state, a closing state or a half-unfolding state, the rebound event is packaged with a rebound mark, and the rebound mark is used for indicating whether the folding screen 2001 is folded and then returns. Correspondingly, the event monitor further comprises at least one of the following monitors: a hinge direction monitor, a hinge state monitor, a hinge motion monitor, a first hinge bounce monitor, a second hinge bounce monitor, a third hinge bounce monitor, a hinge bounce slide monitor; the hinge direction monitor is used for monitoring the folding direction of the direction event package; the hinge state monitor is used for monitoring one or more of an included angle of the included angle event package, a folding speed of the speed event package and a folding acceleration of the acceleration event package to obtain a Boolean value, and the Boolean value is used for indicating whether the hinge equipment rotates or not; the hinge motion monitor is used for monitoring the included angle of the included angle event package, the folding speed of the speed event package, the folding direction of the direction event package and the folding acceleration of the acceleration event package; the first hinge bounce monitor is used for monitoring the folding direction of the direction event package and the included angle of the included angle event package; the second hinge bounce monitor is used for monitoring the folding direction of the direction event package; the third hinge bounce monitor is used for monitoring the included angle of the included angle event package; the hinge bounce slide monitor is used for monitoring the folding direction of the direction event package to obtain a target event corresponding to the folding direction, wherein the target event comprises: a predefined fold operation event or a predefined system event.

As another example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: adjusting the brightness of the folding screen 2001 according to the monitoring result of the hinge included angle monitor on the included angle of the included angle event package; wherein, if the folded state of the folded screen 2001 is a closed state and the folded screen 2001 is in a black screen state before the folding operation is performed, the larger the monitored included angle is, the larger the brightness of the folded screen 2001 is; if the folded state of the folded screen 2001 is the unfolded state and the folded screen 2001 is in the bright screen state before the folding operation is performed, the smaller the monitored angle, the smaller the brightness of the folded screen 2001.

as another example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: adjusting the zooming magnification of the camera of the electronic equipment according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the zooming magnification of the camera is [ first magnification, second magnification ]; wherein, if the folded state of the folded screen 2001 is a closed state and the zoom magnification of the camera is a second magnification before the folding operation is performed, the larger the monitored included angle is, the smaller the zoom magnification of the camera is; if the folded state of the folded screen 2001 is a closed state and the zoom magnification of the camera is a first magnification before the folding operation is performed, the larger the monitored included angle is, the larger the zoom magnification of the camera is; if the folded state of the folded screen 2001 is the unfolded state and the zoom magnification of the camera is the second magnification before the folding operation is performed, the smaller the monitored included angle, the smaller the zoom magnification of the camera; if the folded state of the folded screen 2001 is the unfolded state and the zoom magnification of the camera is the first magnification before the folding operation is performed, the smaller the monitored included angle is, the larger the zoom magnification of the camera is; if the folded state of the folded screen 2001 is a half-folded state and the zoom magnification of the camera is the second magnification before the folding operation is performed, the monitored included angle is larger and the zoom magnification of the camera is smaller when the included angle is smaller than 90 °, and the monitored included angle is smaller and the zoom magnification of the camera is smaller when the included angle is larger than 90 °; if the folded state of the folded screen 2001 is a half-folded state before the folding operation is performed, and the zoom magnification of the camera is a third value, the third value being greater than the first magnification and smaller than the second magnification, when the included angle is greater than 90 °, and the difference between the third value and the first magnification is smaller than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is smaller, the monitored included angle is smaller, and the zoom magnification of the camera is larger; when the included angle is larger than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the monitored included angle is larger, the zoom magnification of the camera is larger, the monitored included angle is smaller, and the zoom magnification of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first multiplying power is smaller than the difference between the second multiplying power and the third value, the monitored included angle is larger, the zooming multiplying power of the camera is larger, the monitored included angle is smaller, and the zooming multiplying power of the camera is smaller; when the included angle is smaller than 90 degrees, and the difference between the third value and the first magnification is larger than the difference between the second magnification and the third value, the larger the monitored included angle is, the smaller the zoom magnification of the camera is, and the smaller the monitored included angle is, the larger the zoom magnification of the camera is.

As another example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: adjusting the playing speed of the video according to the monitoring result of the hinge included angle monitor on the included angle packaged by the included angle event, wherein the value range of the playing speed is [ first speed, second speed ]; wherein, if before executing the folding operation, the folding state of the folding screen 2001 is a closed state or a half-unfolded state, and the playing speed of the video is a third speed, the third speed is greater than the first speed and less than the second speed, and is a normal playing speed of the video, when the included angle is in the range of 0 ° to 45 °, the monitored included angle is larger, the playing speed is larger, when the included angle is in the range of 45 ° to 135 °, the monitored included angle is larger, the playing speed is smaller, and when the included angle is in the range of 135 ° to 180 °, the monitored included angle is larger, and the playing speed is larger; if the folded state of the folding screen 2001 is the unfolded state and the playing rate of the video is the third rate before the folding operation is performed, the monitored angle is smaller and the playing rate is smaller when the angle is in the range of 180 ° to 135 °, the monitored angle is smaller and the playing rate is larger when the angle is in the range of 135 ° to 45 °, and the monitored angle is smaller and the playing rate is smaller when the angle is in the range of 45 ° to 0 °.

As another example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: the application of the electronic device executes the corresponding function according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event; or, according to the monitoring result of the first hinge bounce monitor, the second hinge bounce monitor or the third hinge bounce monitor on the parameters encapsulated in the corresponding event, determining the corresponding target event, and executing the function corresponding to the target event by the application of the electronic device.

As another example, the one or more processors 2002 are configured to execute the one or more computer programs 2004 to implement the following: the application of the electronic equipment executes corresponding functions according to a target event obtained by monitoring the folding direction of the package in the direction event by the hinge bounce sliding monitor.

Of course, the electronic device shown in fig. 20 may further include other devices such as an audio module and a SIM card interface, which is not limited in this embodiment. When it includes other devices, it may be specifically the electronic apparatus shown in fig. 6.

Still other embodiments of the present application provide a computer storage medium, which may include computer instructions that, when executed on an electronic device, cause the electronic device to perform the steps as performed by the electronic device in the corresponding embodiment of fig. 9.

Further embodiments of the present application also provide a computer program product, which when run on a computer causes the computer to perform the steps as performed by the electronic device in the corresponding embodiment of fig. 9.

Other embodiments of the present application further provide an apparatus having a function of implementing the behavior of the electronic device in the corresponding embodiment of fig. 9. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, for example, a determination unit or module, a storage unit or module, a division unit or module, and a display unit or module.

Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.

in the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

The above is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

57页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种智能提醒方法、终端及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类