Hovering adaptation method and device and storage medium
By detecting the folding screen status parameters and controlling the electronic device to enter hover mode, the problem of untimely system updates and messy list management is solved, and the adaptation of more applications or interfaces is achieved, providing a better user experience and reducing maintenance costs.
Patent Information
- Application Number
- CN202311369990.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2025-04-22
AI Technical Summary
In the prior art, the system fails to update the list in time, resulting in the hover function being unable to use the new application or new interface of application development, and the list management is messy and the maintenance cost is high.
By detecting whether the status parameters of the folding screen meet the preset conditions and controlling the electronic device to enter hover mode when the conditions are met, the problem of untimely system updates is solved and list management is simplified.
It realizes hover adaptation for more applications or interfaces, provides a better user experience, reduces maintenance costs, and enhances market competitiveness.
Smart Images

Figure CN119865541A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer communications, and in particular to a hover adaptation method, device and storage medium. Background Art
[0002] With the rapid development of technology today, the use of folding screens has broken the limitations of the traditional form of smart electronic devices. How to break the use of two-dimensional plane space and expand the use of folding screens to three-dimensional space to free your hands is the direction that folding screens have been committed to discussing, and hovering is an important research direction in this direction. In related technologies, the reverse adaptation used is a targeted solution, and the hover function can only be used for applications or interfaces on the list. If a new application is developed or a new interface is developed by the application, the system will not update the list in time, and the new application or the new interface developed by the application will not be on the list, which will cause the hover function to fail. At the same time, the lists that need to be maintained are large and messy, which is not easy to manage, and the maintenance cost will become higher and higher. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a hover adaptation method, device and storage medium. The method overcomes the problem that the system fails to update the list in time, which will cause the new application or the new interface developed by the application to be unable to use the hover function; and the maintenance list is too large and messy, which is difficult to manage and the maintenance cost will become higher and higher.
[0004] According to a first aspect of an embodiment of the present disclosure, a hovering adaptation method is provided.
[0005] The method is used for an electronic device including a folding screen, and the method comprises:
[0006] When detecting that the folding screen of the electronic device displays the first interface, obtaining a first state parameter corresponding to the folding screen in the current first state;
[0007] When the first state parameter meets a preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
[0008] In some embodiments, the method further comprises:
[0009] When the first state parameter does not meet the preset condition, adjusting the folding screen so that the folding screen is in a second state; wherein the second state parameter corresponding to the second state meets the preset condition;
[0010] When the second state parameter meets the preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
[0011] In some embodiments, the method further comprises:
[0012] Before controlling the electronic device to enter the hover mode, if it is detected that the folding screen switches from displaying the first interface to displaying the second interface, re-determine whether to control the electronic device to enter the hover mode; wherein the first interface and the second interface belong to different types of interfaces.
[0013] In some embodiments, detecting that the folding screen of the electronic device displays a first interface includes:
[0014] Monitoring the operation of a processing module related to the first interface display in the electronic device, and recording an operation log of the processing module;
[0015] When a startup event is monitored in the operation log, it is detected that the folding screen displays the first interface.
[0016] In some embodiments, the processing module includes: a media codec; correspondingly, the first interface includes a video interface.
[0017] In some embodiments, the method further comprises:
[0018] When a closing event is monitored in the operation log, it is detected that the folding screen exits displaying the first interface.
[0019] In some embodiments, the first state parameter includes:
[0020] Folding parameters of the folding screen; the folding parameters include a first angle between a first screen area and a second screen area included in the folding screen;
[0021] The rotation parameter of the folding screen; the rotation parameter includes a second angle between the display direction of the first interface and the rotation axis of the folding screen; the second angle includes one of the following: 0 or 90 degrees;
[0022] The display mode of the folding screen; the display mode includes one of the following: single window display, multi-window display;
[0023] Among them, the first state parameter satisfies the preset conditions including: the first angle is within a preset range; the second angle is 90 degrees; and the display mode is single-window display.
[0024] According to a second aspect of an embodiment of the present disclosure, a hovering adaptation device is provided, for an electronic device including a folding screen, the hovering adaptation device comprising:
[0025] An acquisition module, configured to acquire a first state parameter corresponding to a current first state of the folding screen when detecting that the folding screen of the electronic device displays a first interface;
[0026] The control module is configured to control the electronic device to enter a hovering mode when the first state parameter meets a preset condition and the folding screen still displays the first interface.
[0027] In some embodiments, the control module is configured as follows:
[0028] When the first state parameter does not meet the preset condition, adjusting the folding screen so that the folding screen is in a second state; wherein the second state parameter corresponding to the second state meets the preset condition;
[0029] When the second state parameter meets the preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
[0030] In some embodiments, the control module is configured as follows:
[0031] Before controlling the electronic device to enter the hovering mode, if it is detected that the folding screen switches from displaying the first interface to displaying the second interface, it is re-determined whether to control the electronic device to enter the hovering mode.
[0032] In some embodiments, the acquisition module is configured to include:
[0033] The operation of the processing module related to the display of the first interface in the electronic device is monitored, and the operation log of the processing module is recorded; when a startup event is monitored in the operation log, it is detected that the folding screen displays the first interface.
[0034] In some embodiments, the processing module includes: a media codec; correspondingly, the first interface includes a video interface.
[0035] In some embodiments, the acquisition module is configured to:
[0036] When a closing event is monitored in the operation log, it is detected that the folding screen exits displaying the first interface.
[0037] In some embodiments, the first state parameter includes:
[0038] Folding parameters of the folding screen; the folding parameters include a first angle between a first screen area and a second screen area included in the folding screen;
[0039] The rotation parameter of the folding screen; the rotation parameter includes a second angle between the display direction of the first interface and the rotation axis of the folding screen; the second angle includes one of the following: 0 or 90 degrees;
[0040] The display mode of the folding screen; the display mode includes one of the following: single window display, multi-window display;
[0041] Among them, the first state parameter satisfies the preset conditions including: the first angle is within a preset range; the second angle is 90 degrees; and the display mode is single-window display.
[0042] According to a third aspect of an embodiment of the present disclosure, there is provided a hovering adaptation device, comprising:
[0043] processor;
[0044] a memory configured to store processor-executable instructions;
[0045] Wherein, the processor is configured to: implement the steps in any one of the hover adaptation methods in the first aspect when executed.
[0046] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a hovering adaptation device, the hovering adaptation device is enabled to perform the steps in any one of the hovering adaptation methods in the first aspect.
[0047] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: in the embodiments of the present disclosure, when it is detected that the folding screen of the electronic device displays the first interface, the first state parameter corresponding to the folding screen in the current first state is obtained; when the first state parameter meets the preset conditions and the folding screen still displays the first interface, the electronic device is controlled to enter the hover mode. Here, the first interface is not a specific page, but can be a type of interface, such as a video interface, a chat interface, and so on. In other words, the hover adaptation method provided by the embodiments of the present disclosure is a system-level general reverse hover adaptation, which can be generally used to control an electronic device to enter a hover mode when a certain type of interface meets certain conditions.
[0048] Through the embodiments of the present disclosure, it is possible to be compatible with hover adaptation of more applications or interfaces, provide a better user experience, and enhance market competitiveness.
[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0051] Figure 1 The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 1 ;
[0052] Figure 2The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 2 ;
[0053] Figure 3 The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 3 ;
[0054] Figure 4 The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 4 ;
[0055] Figure 5 is a block diagram of a hovering adaptation device according to an exemplary embodiment;
[0056] Figure 6 is a block diagram of another hovering adaptation device according to an exemplary embodiment;
[0057] Figure 7 The figure is a hardware structure block diagram of a hovering adaptation device according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0059] Figure 1 The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 1 The hovering adaptation method is used for an electronic device including a folding screen; Figure 1 As shown, the method mainly includes the following steps:
[0060] In step 101, when it is detected that the folding screen of the electronic device displays a first interface, a first state parameter corresponding to the folding screen in the current first state is obtained;
[0061] In step 102, when the first state parameter meets a preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
[0062] It should be noted that the hovering adaptation method proposed in the present disclosure can be applied to electronic devices with folding screens. Here, the electronic device may include: a mobile terminal. Among them, the mobile terminal may include but is not limited to: mobile phones, tablet computers, laptops, wearable devices and other devices. The so-called hovering may mean that when the display screen of the electronic device is folded, the displayed display interface (such as a video interface) and the control interface for operating the display interface (such as a control interface for controlling the fast forward, sound and other functions of the video interface) can be displayed in the first screen area and the second screen area of the folding screen respectively, wherein the first screen area and the second screen area are connected by a hinge, and the first screen area and the second screen area can be rotated at a certain angle with the hinge as the rotation axis. The hovering function of the electronic device, on the one hand, enables the user to save the bracket supporting the electronic device and fix the electronic device on the desktop or other flat position to free his hands; on the other hand, it makes full use of the advantages of split-screen control, which is quite useful in typing and watching scenes, enough to increase the fun and convenient operation of the electronic device. The so-called hovering adaptation is to make the electronic device enter the hovering mode according to some configurations when the folding screen displays a certain interface.
[0063] In some embodiments, the hover adaptation method in the embodiments of the present disclosure may be configured in a hover adaptation device, and the hover adaptation device may be provided in an electronic device, and the embodiments of the present disclosure are not limited to this. It should be noted that the execution subject of the embodiments of the present disclosure may be a central processing unit (CPU) in an electronic device in terms of hardware, and may be a related system application in an electronic device in terms of software, and is not limited to this.
[0064] In some embodiments, the hover adaptation method disclosed in the present invention can be used to enable the folding screen of the electronic device to realize the hover function when it is in different types of interfaces or applications. For example, the folding screen of the electronic device can realize the hover function in the video interface; the folding screen of the electronic device can realize the hover function in the chat interface; the folding screen of the electronic device can realize the hover function in the shopping interface, etc.
[0065] In some embodiments, the detecting that the folding screen of the electronic device displays the first interface in step 101 may include:
[0066] Monitoring the operation of a processing module related to the first interface display in the electronic device, and recording an operation log of the processing module;
[0067] When a startup event is monitored in the operation log, it is detected that the folding screen displays the first interface.
[0068] It should be noted that the electronic device can monitor some processing modules related to the display of each interface in the electronic device, and record the corresponding operation logs. Among them, when the startup event is currently monitored in the operation log of a certain processing module, it means that the folding screen is currently displaying the interface related to the processing module. In other words, when the folding screen is to display the first interface, the processing mode related to the display of the first interface is to start running to process some data that needs to be processed when the first interface is displayed. Then, the operation of the processing module can be monitored and the operation log of the processing module can be recorded. Afterwards, when the startup event is monitored in the operation log, it is detected that the folding screen is displaying the first interface.
[0069] In some embodiments, the processing module includes: a media codec; correspondingly, the first interface includes a video interface.
[0070] That is, to determine whether the folding screen displays the first interface, the media codec (MediaCodec) can be monitored and its operation log (or event log) can be recorded. When a startup event appears in the operation log, it is considered that the folding screen starts to display the first interface. Among them, the media codec can access the underlying media codec framework (StageFright or OpenMAX), that is, the codec component, which is part of Android's low-level multimedia infrastructure (usually used with MediaExtractor, MediaSync, MediaMuxer, Image, Surface, and AudioTrack). It does not have Codec capabilities by itself, but obtains Codec capabilities by mobilizing the underlying codec components.
[0071] Here, the recorded operation log can be manually customized to only record events that can determine whether the folding screen displays the first interface, such as startup events and shutdown events. The startup event refers to the event that the recorded processing module starts running. The shutdown event can be the event that the recorded processing module stops running.
[0072] Based on this, in some embodiments, the method may further include: when a closing event is monitored in the operation log, detecting that the folding screen exits displaying the first interface.
[0073] In some embodiments, obtaining the first state parameter corresponding to the folding screen in the current first state in step 101 may include: obtaining the first state parameter corresponding to the folding screen in the current first state from a corresponding storage module of the electronic device.
[0074] It should be noted that each module in the electronic device stores the state parameters of each module in a corresponding location according to a certain classification for later use. In this way, the state parameters of the folding screen will also be stored in the corresponding storage module. That is, to obtain the first state parameters corresponding to the current first state of the folding screen, just access the corresponding storage module.
[0075] In some embodiments, the first state parameter includes:
[0076] Folding parameters of the folding screen; the folding parameters include a first angle between a first screen area and a second screen area included in the folding screen;
[0077] The rotation parameter of the folding screen; the rotation parameter includes a second angle between the display direction of the first interface and the rotation axis of the folding screen; the second angle includes one of the following: 0 or 90 degrees;
[0078] The display mode of the folding screen; the display mode includes one of the following: single window display, multi-window display;
[0079] Among them, the first state parameter satisfies the preset conditions including: the first angle is within a preset range; the second angle is 90 degrees; and the display mode is single-window display.
[0080] Here, the first state parameters may include: folding parameters of the folding screen, rotation parameters of the folding screen and display mode of the folding screen; wherein the folding parameters may include a first angle between the first screen area and the second screen area included in the folding screen. The first angle may refer to the angle between the first screen area and the second screen area after the first screen area and / or the second screen area rotate in a direction close to each other (or rotate inward, or fold inward). In some embodiments, the preset range may refer to the range of angles between the first screen area and the second screen area that can be hovered that is supported by the hardware of the electronic device. The preset ranges of different electronic devices may be different or the same, depending on the capabilities of the hinge on the electronic device.
[0081] Here, the rotation parameters may include: the angle between the display direction of the first interface and the rotation axis of the folding screen. It should be noted that there are two types between the display direction of the first interface and the rotation axis of the folding screen: one is that the display direction is parallel to the rotation axis (that is, vertical screen display), that is, the second angle is 0 degrees; the other is that the display direction is perpendicular to the rotation axis, that is, the second angle is 90 degrees (that is, horizontal screen display). In actual display, the second angle is 0 degrees or 90 degrees, that is, one of the two.
[0082] Here, the display mode of the folding screen refers to one of the following: single-window display and multi-window display, wherein the single-window display may refer to the first screen area and the second screen area jointly displaying the first interface; the multi-window display may refer to the first interface being displayed only in the first screen area and / or a part of the second screen area, and the remaining area is still displaying other interfaces different from the first interface.
[0083] After the first state parameter is acquired, when the first state parameter meets a preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter the hover mode.
[0084] It should be noted that in controlling whether the electronic device enters the hover mode, not only the first state parameter of the folding screen is required, but also it is necessary to determine whether the first interface is currently open, so as to realize the hover function displayed on the first interface. In this embodiment, the electronic device monitors the processing module related to the display of the first interface in real time. Therefore, after obtaining the first state parameter, it can be determined whether the folding screen is still displaying the first interface. In this way, combined with the judgment of whether the folding screen displays the first interface at this time and whether the first state parameter meets the preset conditions, it is possible to control whether the electronic device enters the hover mode.
[0085] Here, the first state parameter meeting the preset condition may include: the first angle is within a preset range; the second angle is 90 degrees; the display mode is single-window display. That is, when the folding screen is in the folded state, the display direction of the first interface and the rotation axis of the folding screen are horizontally displayed, and the folding screen displays the first interface in a single-window display, and the folding screen still displays the first interface, at this time, the electronic device is controlled to enter the hover mode to free both hands or achieve single-handed operation.
[0086] In an embodiment of the present disclosure, when it is determined through certain recorded logs that the folding screen is in the first interface, the state parameters of the folding screen are obtained, and based on the obtained state parameters and the displayed first interface, the electronic device is controlled whether to enter the hover mode. The first interface represents a certain type of interface. That is to say, the hover adaptation method provided in the embodiment of the present disclosure can be simultaneously applicable to the hover adaptation of multiple applications or interfaces. It is a general method, which provides a better user experience and does not take a lot of space and time to maintain the hover adaptation list. It is convenient and saves resources, which improves market competitiveness.
[0087] Figure 2 The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 2 ,like Figure 2 As shown, the method may also include:
[0088] In step 103, when the first state parameter does not meet the preset condition, the folding screen is adjusted so that the folding screen is in a second state; wherein the second state parameter corresponding to the second state meets the preset condition;
[0089] In step 104, when the second state parameter meets the preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
[0090] It should be noted that the first state parameter obtained may not meet the preset condition. At this time, if you still want to implement the hover function of the first interface, you can adjust the folding screen so that the folding screen is in the second state; the second state parameter corresponding to the second state meets the preset condition. When the second state of the folding screen meets the preset condition, and when the folding screen still displays the first interface, control the electronic device to enter the hover mode. Among them, adjusting the folding screen here may include at least one of the following: if the first angle included in the folding parameters of the folding screen does not meet the preset range, adjust the first angle to within the preset range; if the second angle included in the rotation parameters of the folding screen is not 90 degrees, adjust the second angle to 90 degrees; if the display mode of the folding screen is not a single-window display, adjust the display mode of the folding screen to a single-window display.
[0091] Figure 3 The following is a flow chart of a hovering adaptation method according to an exemplary embodiment. Figure 3 ,like Figure 3 As shown, the method may also include the following steps:
[0092] In step 105, before controlling the electronic device to enter the hovering mode, if it is detected that the folding screen switches from displaying the first interface to displaying the second interface, it is re-determined whether to control the electronic device to enter the hovering mode;
[0093] The first interface and the second interface are different types of interfaces.
[0094] It should be noted that if, before controlling the electronic device to enter the hover mode, it is detected that the folding screen switches from displaying the first interface to displaying the second interface, at this time, the electronic device cannot be controlled to enter the hover mode, and it is necessary to re-determine whether the second interface needs to use the hover function, that is, to re-determine whether to control the electronic device to enter the hover mode. Here, the component state management service (ASM, Activity Manager Service) can be used to determine whether to switch from the first interface to display the second interface, and then determine whether the processing module is still working normally to determine whether the first interface and the second interface belong to the same type of interface. When the first interface and the second interface do not belong to the same type of interface, re-determine whether to control the electronic device to enter the hover mode; if the first interface and the second interface belong to the same type of interface and the state parameters of the folding screen meet the preset conditions, control the electronic device to enter the hover mode.
[0095] In order to understand the present disclosure, the hover adaptation solution provided by the present disclosure is explained by taking a video interface in an electronic device, that is, an electronic device in which the first interface is a video interface and the processing module is a media codec as an example.
[0096] like Figure 4 As shown, the main steps may include:
[0097] Step 401: monitor the operation of the media codec and record the operation log of the media codec;
[0098] The operation log may include information of the first interface and decoder information. In the present disclosure, the first interface may be determined to be a video interface according to a start event of the decoder information.
[0099] Step 402: When a startup event is detected in the operation log, it is detected that the folding screen displays a video interface;
[0100] Step 403: Obtaining state parameters corresponding to the folding screen of the electronic device in the current state;
[0101] Step 404: When the state parameter corresponding to the current state of the folding screen meets the preset condition and the folding screen still displays the video interface, control the electronic device to enter the hovering mode;
[0102] Step 405: When the state parameter corresponding to the current state of the folding screen does not meet the preset condition, adjust the folding screen so that the state parameter of the folding screen meets the preset condition; and when the folding screen still displays the video interface, control the electronic device to enter the hover mode;
[0103] Step 406: upon detecting that the folding screen switches from displaying a video interface to a non-video interface, re-determine whether to control the electronic device to enter a hovering mode.
[0104] For the above Figure 4 The implementation of the hover adaptation process involves the AMS, Media Codec, and hover adaptation device in the electronic device, specifically, Figure 5 shown.
[0105] exist Figure 5 Among them, AMS is an important service in the Android system, which is used to manage the life cycle, task stack and process of the application. That is to say, AMS can obtain the status of the interface (Activity) displayed on the folding screen and determine whether the interface switching occurs. Media Codec is a decoder that receives video data from the interface of the electronic device, decodes the video data and displays the video data on the video interface. The hover adaptation device executes the above steps 401 to 406.
[0106] The hover adaptation solution of the embodiment of the present disclosure is a system-level universal reverse adaptation solution, which can be compatible with more applications or interfaces to implement the hover function and provide a better user experience.
[0107] Figure 6 FIG. 1 is a block diagram of a hovering adaptation device according to an exemplary embodiment. Figure 6 As shown, the hovering adaptation device 600 is applied to an electronic device including a folding screen, and mainly includes:
[0108] An acquisition module 601 is configured to acquire a first state parameter corresponding to a current first state of the folding screen when detecting that the folding screen of the electronic device displays a first interface;
[0109] The control module 602 is configured to control the electronic device to enter a hovering mode when the first state parameter meets a preset condition and the folding screen still displays the first interface.
[0110] In some embodiments, the control module 602 is configured to: when the first state parameter does not meet the preset condition, adjust the folding screen so that the folding screen is in a second state; wherein the second state parameter corresponding to the second state meets the preset condition; and when the second state parameter meets the preset condition and the folding screen still displays the first interface, control the electronic device to enter a hovering mode.
[0111] In some embodiments, the control module 602 is configured to: before controlling the electronic device to enter the hover mode, if it is detected that the folding screen switches from displaying the first interface to displaying the second interface, re-determine whether to control the electronic device to enter the hover mode; wherein the first interface and the second interface belong to different types of interfaces.
[0112] In some embodiments, the acquisition module 601 is configured to include: monitoring the operation of the processing module related to the display of the first interface in the electronic device, recording the operation log of the processing module; and when a startup event is monitored in the operation log, detecting that the folding screen displays the first interface.
[0113] In some embodiments, the processing module includes: a media codec; correspondingly, the first interface includes a video interface.
[0114] In some embodiments, the acquisition module 601 is configured to: upon monitoring a closing event in the operation log, detect that the folding screen exits displaying the first interface.
[0115] In some embodiments, the first state parameter includes:
[0116] Folding parameters of the folding screen; the folding parameters include a first angle between a first screen area and a second screen area included in the folding screen;
[0117] The rotation parameter of the folding screen; the rotation parameter includes a second angle between the display direction of the first interface and the rotation axis of the folding screen; the second angle includes one of the following: 0 or 90 degrees;
[0118] The display mode of the folding screen; the display mode includes one of the following: single window display, multi-window display;
[0119] Among them, the first state parameter satisfies the preset conditions including: the first angle is within a preset range; the second angle is 90 degrees; and the display mode is single-window display.
[0120] It should be noted that the hovering adaptation device provided in the embodiment of the present disclosure and the hovering adaptation method described above belong to the same inventive concept. The above method has described the technical solution of the present disclosure in detail. For the terms and features appearing in the hovering adaptation device, please refer to the above description for understanding, and will not be repeated here.
[0121] The present disclosure also provides a hovering adaptation device, which may include:
[0122] processor;
[0123] a memory for storing processor-executable instructions;
[0124] Wherein, the processor is configured to: implement the steps in any one of the above-mentioned hovering adaptation methods during execution.
[0125] Based on this, Figure 7As shown, it is a block diagram of a hovering adaptation device 700 according to an exemplary embodiment. For example, the hovering adaptation device 700 may be included in an electronic device such as a mobile phone, a mobile computer, etc.
[0126] Reference Figure 7 The hovering adaptation device 700 may include one or more of the following components: a processor 702 , a memory 704 , and a folding screen 706 .
[0127] The processor 702 may include one or more processing cores. The processor 702 uses various interfaces and lines to connect the various parts of the entire mobile phone, mobile computer and other electronic devices, and executes various functions and processes data of the hovering adaptation device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 704, and calling the data stored in the memory 704. Optionally, the processor 702 can be implemented in at least one hardware form of digital signal processing (DSP, Digital Signal Processing), field programmable gate array (FPGA, Field-Programmable Gate Array), and programmable logic array (PLA, Programmable Logic Array). The processor 702 can integrate one or more combinations of a central processing unit (CPU, Central Processing Unit), an image processor (GPU, Graphics Processing Unit), a neural network processor (NPU, Neural-network Processing Unit) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the NPU is used to implement artificial intelligence (AI, Artificial Intelligence) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor, but may be implemented by a separate chip.
[0128] The memory 704 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 704 includes a non-transitory computer-readable storage medium. The memory 704 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 704 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book), etc.
[0129] The folding screen 706 is a component for displaying an interface. Optionally, the folding screen 706 also has a touch function, and the user can control the displayed content by performing a touch operation on the folding screen 706. For example, the folding screen 706 is a touch display screen of a smart phone.
[0130] In addition, those skilled in the art can understand that the structure of the device 500 shown in the above-mentioned figure does not constitute a limitation on the computer device, and the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the hovering adaptation device 700 also includes a camera assembly, a microphone, a speaker, a radio frequency circuit, an input unit, a sensor (such as an acceleration sensor, an angular velocity sensor, a light sensor, etc.), an audio circuit, a WiFi module, a power supply, a Bluetooth module and other components, which will not be repeated here.
[0131] The embodiment of the present disclosure further provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the hovering adaptation device, the hovering adaptation device can perform the steps in any of the above-mentioned hovering adaptation methods.
[0132] The embodiment of the present disclosure also provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any of the above-mentioned hovering adaptation methods.
[0133] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present disclosure, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.
[0134] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0135] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0136] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0137] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0138] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0139] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A hovering adaptation method, characterized in that: The method is used for an electronic device including a folding screen, and the method comprises: When detecting that the folding screen of the electronic device displays the first interface, obtaining a first state parameter corresponding to the folding screen in the current first state; When the first state parameter meets a preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
2. The method according to claim 1, characterized in that The method further comprises: When the first state parameter does not meet the preset condition, adjusting the folding screen so that the folding screen is in a second state; wherein the second state parameter corresponding to the second state meets the preset condition; When the second state parameter meets the preset condition and the folding screen still displays the first interface, the electronic device is controlled to enter a hovering mode.
3. The method according to claim 1, characterized in that The method further comprises: Before controlling the electronic device to enter the hovering mode, if it is detected that the folding screen switches from displaying the first interface to displaying the second interface, re-determining whether to control the electronic device to enter the hovering mode; The first interface and the second interface are interfaces of different types.
4. The method according to claim 1, characterized in that: The detecting that the folding screen of the electronic device displays a first interface includes: Monitoring the operation of a processing module related to the first interface display in the electronic device, and recording an operation log of the processing module; When a startup event is monitored in the operation log, it is detected that the folding screen displays the first interface.
5. The method according to claim 4, characterized in that The processing module includes: a media codec; correspondingly, the first interface includes a video interface.
6. The method according to claim 4, characterized in that The method further includes: when a closing event is monitored in the operation log, detecting that the folding screen exits displaying the first interface.
7. The method according to claim 1, characterized in that The first state parameter includes: Folding parameters of the folding screen; the folding parameters include a first angle between a first screen area and a second screen area included in the folding screen; The rotation parameter of the folding screen; the rotation parameter includes a second angle between the display direction of the first interface and the rotation axis of the folding screen; the second angle includes one of the following: 0 or 90 degrees; The display mode of the folding screen; the display mode includes one of the following: single window display, multi-window display; Among them, the first state parameter satisfies the preset conditions including: the first angle is within a preset range; the second angle is 90 degrees; and the display mode is single-window display.
8. A hovering adapter device, characterized in that: For an electronic device including a folding screen, the hovering adaptation device comprises: An acquisition module, configured to acquire a first state parameter corresponding to a current first state of the folding screen when detecting that the folding screen of the electronic device displays a first interface; The control module is configured to control the electronic device to enter a hovering mode when the first state parameter meets a preset condition and the folding screen still displays the first interface.
9. A hovering adapter device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: implement the steps of any one of the hovering adaptation methods in claims 1 to 7 when executed.
10. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by the processor of the hovering adaptation device, the hovering adaptation device is enabled to perform the steps in any one of the hovering adaptation methods in claims 1 to 7.