Display method and electronic device

Through the collaboration between the host operating system and the guest operating system running on the electronic device, the simulated touch sliding sequence is used to solve the problem of the virtual keyboard blocking the input area and improve the user experience, especially in ecological integration cross-system application scenarios.

WO2024193402A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/081296
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-13
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In ecological integration cross-system application scenarios, the problem of virtual keyboard blocking the input area leads to poor user experience. Existing solutions have shortcomings in single-system application scenarios and lack effective cross-system solutions.

Method used

Through the cooperation between the host operating system and the guest operating system running on the electronic device, the guest operating system sends input status and focus position information to the host operating system. The host operating system determines whether it is blocked and generates a simulated touch sliding sequence. The guest operating system uses this Slide the interface content so that the input focus is not blocked by the virtual keyboard.

Benefits of technology

It effectively solves the problem of the virtual keyboard blocking the input area and improves the user experience. Especially in ecological integration cross-system application scenarios, it simplifies user operations and avoids the cumbersome process of manual sliding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081296_26092024_PF_FP
    Figure CN2024081296_26092024_PF_FP
Patent Text Reader

Abstract

Disclosed in the present application are a display method and an electronic device. A host operating system is installed in the electronic device, a guest operating system is loaded on the host operating system, and the guest operating system uses a virtual keyboard of the host operating system, such that a user performs an input operation. When a certain application program of the guest operating system enters an input state, the guest operating system sends to the host operating system indication information for the entry into the input state, and position information of an input focus; on the basis of the indication information for the entry into the input state, the host operating system pulls up and displays the virtual keyboard, and determines, on the basis of the position information of the input focus and height information of the virtual keyboard, whether the input focus is shielded by the virtual keyboard; if the input focus is shielded by the virtual keyboard, the guest operating system is notified to slide, in a simulated touch sliding manner, content displayed in the application program, such that the input focus is not shielded by the virtual keyboard. Thus, the problem of a virtual keyboard shielding an input area can be effectively solved, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Display method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 20, 2023, with application number 202310305204.5, and priority to the Chinese patent application entitled “Display Method and Electronic Device”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a display method and electronic device. Background Art

[0003] With the continuous development of mobile Internet technology, electronic devices (such as mobile phones, tablet computers, and other mobile terminal devices) have gradually become an indispensable part of people's lives. Currently, many electronic devices use touch screens as a medium for human-computer interaction. In this case, people usually use virtual keyboards (also known as soft keyboards) to input information on electronic devices.

[0004] However, when an electronic device calls up a virtual keyboard on an operation interface, the virtual keyboard may block the input area. In this way, the user cannot see the input content during input operation, which reduces input efficiency, brings inconvenience to the user, and poor user experience.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a display method and an electronic device, which can solve the problem of a virtual keyboard blocking an input area and improve user experience.

[0007] In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device including a display screen, and a first operating system and a second operating system are running on the electronic device. The method includes: the electronic device displays an editing page of a first application, and the first application runs on the first operating system; the electronic device receives a user's input operation on the editing page; the electronic device displays a virtual keyboard, and the virtual keyboard is provided by the second operating system; the electronic device slides the editing page until the input focus corresponding to the input operation is not blocked by the virtual keyboard.

[0008] By implementing the method provided in the first aspect, after an application of a client operating system (also referred to as a first operating system) enters an input state, the client operating system sends indication information of entering the input state and position information of the input focus to a host operating system (also referred to as a second operating system). The host operating system pulls up and displays a virtual keyboard based on the indication information of entering the input state, and determines whether the input focus is blocked by the virtual keyboard based on the position information of the input focus and the height information of the virtual keyboard. If so, the client operating system is notified to slide the display content of the above application in a simulated touch sliding manner so that the input focus is not blocked by the virtual keyboard, thereby effectively solving the problem of the virtual keyboard blocking the input area and improving the user experience.

[0009] In a possible implementation, the display area of ​​the virtual keyboard on the display screen is a first area, and before the sliding, the display position of the input focus on the display screen falls within the first area.

[0010] That is to say, before sliding the editing page, the electronic device can determine whether the display position of the input focus on the display screen falls within the display area of ​​the virtual keyboard on the display screen. If so, the electronic device will execute the operation of sliding the editing page until the input focus is not blocked by the virtual keyboard.

[0011] In a possible implementation, the condition for the sliding to be executed includes: the editing page is not in a state of being slid and browsed by the user, and the sliding browsing refers to the user sliding the editing page to browse the content before or after the input focus.

[0012] In this way, when the user actively slides to browse the content in the editing page, the aforementioned sliding operation can be omitted to avoid conflict with the user's intention.

[0013] In a possible implementation, the electronic device displays a virtual keyboard, specifically including: the first operating system sends a first message to the second operating system based on the input operation; and the second operating system displays the virtual keyboard based on the first message.

[0014] In this way, after an application program of the first operating system enters the input state, the first operating system may send a first message to the second operating system to instruct the second operating system to pull up and display the virtual keyboard.

[0015] In one possible implementation, the electronic device slides the editing page until the input focus corresponding to the input operation is not blocked by the virtual keyboard, specifically including: the second operating system receives the first position information sent by the first operating system, the first position being the display position of the input focus on the display screen before the sliding; the second operating system determines whether the first position falls within the display area of ​​the virtual keyboard on the display screen, and if so, the second operating system sends a second message to the first operating system; the first operating system slides the editing page based on the second message until the input focus corresponding to the input operation is not blocked by the virtual keyboard.

[0016] In this way, when an application of the first operating system just enters the input state or during the entire user input process, the first operating system can send the latest position information of the input focus to the second operating system so that the second operating system can determine whether the input focus is blocked by the virtual keyboard. If so, the second operating system can instruct the first operating system to perform the operation of sliding the editing page until the input focus is no longer blocked by the virtual keyboard.

[0017] In a possible implementation, the second message includes a numerical sequence, and the numerical sequence is used by the electronic device to slide the editing page until the input focus corresponding to the input operation is not blocked by the virtual keyboard.

[0018] The numerical sequence may be a numerical sequence corresponding to a simulated user touching and sliding an editing page, so that the electronic device may slide the editing page based on the numerical sequence.

[0019] In one possible implementation, the numerical sequence includes at least a first numerical value and a second numerical value in sequence, wherein the first numerical value is the distance value between the input focus and the reference boundary of the display screen before the sliding, and the second numerical value is the distance value between the upper boundary of the virtual keyboard and the reference boundary of the display screen.

[0020] The first value may be a starting value of the sliding, and the second value may be an ending value of the sliding. In this way, the electronic device may determine the sliding starting point and the sliding ending point based on the first value and the second value.

[0021] In one possible implementation, the numerical sequence further includes one or more numerical values ​​between the first numerical value and the second numerical value, and the numerical sequence is an arithmetic sequence; and / or the reference boundary of the display screen is the upper boundary of the display screen; and / or the numerical sequence further includes one or more numerical values ​​that are the same as the second numerical value after the second numerical value.

[0022] Among them, inserting one or more values ​​between the above-mentioned first value and the second value to form an arithmetic sequence can enable the electronic device to present a better sliding effect to the user when sliding the editing page based on the value sequence.

[0023] Adding one or more values ​​that are the same as the second value after the second value can ensure that the electronic device can accurately slide the input focus to the position where the sliding end point is located.

[0024] In one possible implementation, the method also includes: the second operating system detects a first operation of the user on the virtual keyboard; the second operating system obtains the input object generated by the first operation and sends a third message to the first operating system, wherein the third message includes the input object; and the first operating system displays the input object based on the third message.

[0025] In this way, cross-system input operations can be implemented. For example, a user can perform input operations in an application running on a guest operating system through a virtual keyboard provided by the host operating system.

[0026] In one possible implementation, the method further includes: the first operating system detecting a second operation of the user; in response to the second operation, the first operating system sending a fourth message to the second operating system; and the second operating system canceling display of the virtual keyboard based on the fourth message.

[0027] In this way, when the application of the first operating system exits the input state, the first operating system may send a fourth message to the second operating system to instruct the second operating system to close and cancel the display of the virtual keyboard.

[0028] In the first aspect above, the first operating system may be a client operating system, the second operating system may be a host operating system, the first application may be an application running in the client operating system (such as an office application), the editing page may be a page provided by the first application for implementing the editing function, the input operation may be an operation triggered by the user to enter the input state (such as a click operation on the editing page by a mouse or finger), or it may be an input operation performed by the user through the virtual keyboard in step S 509 in Figure 5A, the first message may include indication information for entering the input state, the second message may be message 2 or message 5 in Figure 5A, the numerical sequence may be a simulated touch sliding sequence, the first numerical value may be the starting value of the simulated touch sliding sequence, the second numerical value may be the end value of the simulated touch sliding sequence, the first operation may be an input operation performed by the user on the virtual keyboard, the third message may be message 3 in Figure 5A, the second operation may be an operation triggered by the user to exit the input state, and the fourth message may be message 6 in Figure 5A.

[0029] In a second aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method described in any possible implementation method of the first aspect above.

[0030] In a third aspect, an embodiment of the present application provides a computer storage medium storing a computer program, wherein the computer program includes program instructions. When the program instructions are run on an electronic device, the electronic device executes the method described in any possible implementation of the first aspect above.

[0031] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is a schematic diagram of an electronic device 100 displaying application icons provided by an embodiment of the present application;

[0033] 2A-2D are schematic diagrams of a set of user interfaces involved in the display method provided in an embodiment of the present application;

[0034] 3A-3C are another set of user interface schematic diagrams involved in the display method provided in an embodiment of the present application;

[0035] 4A-4D are another set of user interface schematic diagrams involved in the display method provided in an embodiment of the present application;

[0036] FIG5A is a schematic diagram of a flow chart of a display method provided in an embodiment of the present application;

[0037] FIG5B is a schematic diagram illustrating the height of a virtual keyboard and the height of an input focus position, provided by an embodiment of the present application;

[0038] FIG6 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;

[0039] FIG7 is a schematic diagram of the software structure of another electronic device 100 provided in an embodiment of the present application;

[0040] FIG8 is a schematic diagram of a possible collaboration mode between various modules when the electronic device 100 provided by the embodiment of the present application implements the display method provided by the embodiment of the present application when a host operating system is installed and a guest operating system is loaded on the host operating system;

[0041] FIG9 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0043] It should be understood that the terms "first," "second," and the like in the specification, claims, and drawings of this application are used to distinguish between different objects, rather than to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0044] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0045] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0046] At present, the mainstream personal computer (PC) desktop operating systems on the market include Mainstream mobile operating systems include Since the operating mechanisms of applications on different operating systems are different, there are barriers to communication and interaction between different operating systems, making it difficult to achieve simple and effective ecological integration in many aspects. Therefore, in general, applications on operating system A cannot be installed and run on operating system B. For example, Applications in the operating system cannot be directly installed and run on On the operating system.

[0047] With the development and maturity of virtualization technology, if users need to run mobile applications on PCs, or run PC applications on mobile terminal devices, users can achieve this through virtualization technology.

[0048] In this scenario, the PC or mobile terminal device can be called the host machine, and the underlying operating system running on the host machine can be called the host operating system (Host OS). The operating system running on the host machine through virtualization technology can be called the guest operating system (Guest OS). In this case, the guest operating system can run on the host machine. The host machine creates a virtual hardware environment (including processor, memory, I / O devices, etc.) independent of the actual hardware. For the guest operating system, running in the virtual hardware environment on the host machine is no different from running on the actual hardware. In this way, the ecosystems of PC and mobile terminal devices can be integrated.

[0049] Generally speaking, PC applications (also called desktop-level applications) are often better able to meet users' office needs in terms of feature richness, keyboard and mouse adaptation, etc. compared to mobile applications. With the further integration of PCs and mobile terminal devices (such as mobile phones, tablets, etc.), PC applications can be run on mobile operating systems through the above-mentioned virtualization technology. In this way, the native experience of desktop-level applications can be achieved on mobile terminal devices, and more complex office demands that mobile applications cannot achieve can be achieved. Taking office applications as an example, the desktop-level native experience includes UI native experience, window hovering anywhere, free window scaling, touch interaction, keyboard and mouse interaction, etc. It is easy to understand that running desktop-level applications on mobile terminal devices and utilizing the touch screen and external keyboard and mouse peripherals of the mobile terminal device can maximize the capabilities of desktop-level applications on mobile terminal devices.

[0050] When users use mobile terminal devices, such as tablets, they will inevitably encounter scenarios where the tablet is not connected to a physical keyboard. In this case, the user needs to call out the tablet's virtual keyboard to perform input operations. However, current virtual keyboard technology may sometimes provide a poor experience in single-system or ecologically integrated cross-system application scenarios. For example, when the user calls out the virtual keyboard to the operation interface, or uses the virtual keyboard to perform input operations, the virtual keyboard may likely block the input area, causing the user to be unable to see the content they have entered.

[0051] In order to ensure that users can perform input operations smoothly without an external physical keyboard, especially in the ecological integration cross-system application scenario, it is necessary to open up the cross-system virtual keyboard input capability, so as to improve the user input scenario and allow users to perform input operations more flexibly.

[0052] At present, some operating systems will solve the problem of the virtual keyboard blocking the input area by shifting the window upwards, adjusting the interface layout, etc., but these methods also have some problems. For example, for the method of shifting the window upwards, if the virtual keyboard blocks the current input box, the entire interface above the current input box will be directly shifted upwards. In this way, the title bar in the interface will also be pushed out of the current layout, and the user cannot see the title bar, which is a bad experience. In addition, when there are multiple inputs, the input box below the current input box cannot be entered. The virtual keyboard must be folded to display the input box before entering, which is cumbersome. For another example, for the method of adjusting the interface layout, if the virtual keyboard blocks the current input box, the interface layout will be adjusted, but some interface layouts do not support adjustment. In this case, the problem of the virtual keyboard blocking the input area cannot be solved.

[0053] From the above, it can be seen that the current solutions to the problem of the virtual keyboard blocking the input area still have many shortcomings. In addition, the current solutions are usually based on single-system application scenarios and lack solutions for ecological integration and cross-system application scenarios.

[0054] In order to solve the problem of the virtual keyboard blocking the input area when using the virtual keyboard for input operations in the above-mentioned ecological integration cross-system application scenario, an embodiment of the present application provides a display method, which is applied to an electronic device 100. The electronic device 100 can be installed with a host operating system, and a guest operating system can be loaded on top of the host operating system. The guest operating system can use the host operating system's virtual keyboard for users to perform input operations. When an application in the guest operating system enters the input state, the guest operating system can send an indication of entering the input state and input focus position information to the host operating system. The host operating system can pull up and display the virtual keyboard based on the indication of entering the input state, and can determine whether the input focus is blocked by the virtual keyboard based on the input focus position information and the height information of the virtual keyboard. If so, the host operating system can generate a simulated touch sliding sequence and send the simulated touch sliding sequence to the guest operating system. The guest operating system can slide the content displayed in the interface of the above-mentioned application in a simulated touch sliding manner based on the simulated touch sliding sequence so that the input focus is not blocked by the virtual keyboard, thereby effectively solving the problem of the virtual keyboard blocking the input area in the ecological integration cross-system input scenario, ensuring that the input focus is not blocked when the user uses the virtual keyboard for input operations, and improving the user experience.

[0055] The electronic device 100 in the embodiment of the present application can be called a host machine. The electronic device 100 can be a mobile device, such as a tablet computer, a mobile phone, etc. The embodiment of the present application does not limit the type of the electronic device 100. The embodiment of the present application only takes the electronic device 100 being a tablet computer as an example to illustrate the content of the embodiment of the present application. The electronic device 100 can be installed with a host operating system, and a client operating system can be loaded on top of the host operating system. Among them, the host operating system can include but is not limited to operating system, operating system, Operating system, the client operating system may include but is not limited to operating system, operating system, Operating system: The embodiments of this application do not impose any restrictions on the types of host operating systems and client operating systems.

[0056] The display method provided in the embodiment of the present application can be applied to the ecological integration scenario of running PC applications on mobile terminal devices (such as tablet computers, etc.) through virtualization technology. The embodiment of the present application does not limit the type of the above-mentioned virtualization technology.

[0057] Below, a series of exemplary user interfaces involved in the embodiments of the present application are first introduced with reference to Figures 1, 2A-2D, 3A-3C, and 4A-4D.

[0058] In the embodiments of the present application, the electronic device 100 is described as a tablet computer. The electronic device 100 may be installed with a host operating system, on which a guest operating system may be loaded. Applications of the guest operating system run on the host operating system, and the guest operating system may use the host operating system's virtual keyboard for user input operations (i.e., the guest operating system may use the host operating system's input method as an input source).

[0059] 1 , user interface 110 may be a user interface (also referred to as a desktop) of a host operating system installed on electronic device 100. The user interface may include one or more application icons (e.g., icon 111, icon 112, icon 113, icon 114, etc.), which may include icons of applications of the host operating system (e.g., icon 111, icon 112, icon 113) or icons of applications of a client operating system (e.g., icon 114).

[0060] Optionally, the icon of the client operating system application may be displayed with a relevant identifier (such as identifier 114a) to indicate that the application is an application of the client operating system. This makes it easier for users to distinguish whether the icon is an icon of an application of the host operating system or an icon of an application of the client operating system.

[0061] Continuing to refer to FIG. 1 , the icon 114 may be an icon of an office application, which is an application of a client operating system and can implement various functions such as document editing.

[0062] In the embodiment of the present application, the application program that uses the virtual keyboard of the host operating system for input operations takes the office application program of the client operating system as an example.

[0063] 2A , the exemplary user interface 210 shown in FIG2A may be a user interface of Document 1, wherein Document 1 is a document generated using an office application of a client operating system. A user may input input into Document 1 using a virtual keyboard of the host operating system.

[0064] Continuing with FIG2A , user interface 210 may include multiple display areas (e.g., area 211, area 212, area 213, etc.), wherein area 211 may be used to display document 1 information, a quick access toolbar, and options corresponding to functions such as minimizing and closing document 1; area 212 may be used to display multiple function tabs; and area 213 may be used to display user-edited content (e.g., the content "1234567"), which is the document editing area (also referred to as the editing page), where users can enter text, images, and other content. User interface 210 may also include option 214, a slider 215, and option 216, wherein option 214 may be used to scroll down on the content being edited in the document, slider 215 may be used to scroll down / up on the content being edited in the document, and option 216 may be used to scroll up on the content being edited in the document. The user can slide down / up the edited content in the document (also called sliding down / up the editing page) by operating option 214 / option 216 (such as clicking), or slide down / up the edited content in the document by operating the slider 215 (such as dragging).

[0065] Continuing to refer to FIG2A , FIG2A may also display a cursor 217, which may be used to display the location of a mouse pointer connected to the electronic device 100. If the user wants to edit content in the document 1, the electronic device 100 may detect a click of the mouse by the user. In response to this operation, the electronic device 100 may display the cursor 222 exemplarily shown in FIG2B . The cursor 222 may be used to indicate that the document 1 is in an input state (i.e., the office application enters the input state). The cursor 222 may be a cursor that flashes according to certain rules, and the location of the cursor 222 is the starting point of the user's input content. The electronic device 100 may also switch the style of the cursor 217 exemplarily shown in FIG2A (e.g., an arrow style) to the style of the cursor 221 exemplarily shown in FIG2B (e.g., an "I" style).

[0066] It can be seen that in Figure 2A, Document 1 is not in the input state (that is, the office application has not entered the input state), and the user cannot edit the content in Document 1. Through user operation (such as a mouse click operation), Document 1 switches to the input state shown in Figure 2B, and the user can edit the content in Document 1.

[0067] In some examples, after the user opens Document 1, Document 1 may directly enter the input state as exemplarily shown in FIG. 2B , without the need for the user to manually operate and then enter the input state.

[0068] In the embodiment of the present application, "an office application program has entered an input state" may mean that the cursor 222, as shown in FIG. 2B , is displayed in a document generated using the office application program. Optionally, if a mouse is connected to the electronic device 100, the cursor 221, as shown in FIG. 2B , may also be displayed. "An office application program has not entered an input state" may mean that the cursor 222, as shown in FIG. 2B , is not displayed in a document generated using the office application program. Optionally, if a mouse is connected to the electronic device 100, the cursor 217, as shown in FIG. 2A , may be displayed.

[0069] Continuing to refer to FIG2B , after detecting that the office application has entered the input state, the client operating system can notify the host operating system so that the host operating system can call out the host operating system's virtual keyboard for the user to perform input operations. Referring to FIG2C , the virtual keyboard 230 exemplarily shown in FIG2C is the virtual keyboard called out by the host operating system. In the embodiment of the present application, there is no limitation on the type of virtual keyboard, which can be a nine-square type pinyin keyboard, a full keyboard type pinyin keyboard, an English keyboard, a numeric keyboard, an emoticon keyboard, or a voice keyboard, etc. It should be noted that in the embodiment of the present application, the virtual keyboard 230 is taken as an example of a virtual keyboard called out by the host operating system. In some other embodiments of the present application, the virtual keyboard 230 can also be a virtual keyboard called out by the client operating system.

[0070] Continuing to refer to FIG2C , it can be seen that the virtual keyboard 230 blocks part of the displayed content in the document 1, such as the content “4567” and the cursor 222 shown in FIG2B . In this way, the user cannot see the content of the input when performing input operations, resulting in a poor experience.

[0071] In the above situation, the problem of the virtual keyboard blocking the input area can be solved by manual user operation (such as dragging the slider 215, clicking option 216). However, as the user inputs, the cursor 222 may still be blocked by the virtual keyboard, and the user still has to perform manual operation. This makes the user's input process more cumbersome and the experience poor.

[0072] By implementing the method provided in the embodiments of the present application, when the application enters the input state, the electronic device 100 can determine whether the virtual keyboard obscures the input area. If so, the content displayed in the interface can be automatically slid in a manner that simulates touch sliding so that the cursor is not obscured by the virtual keyboard, eliminating the need for manual user operation, simplifying user operations, and improving user experience. The specific implementation process of the method provided in the embodiments of the present application will be described in detail in subsequent embodiments and will not be expanded here.

[0073] For example, when the application enters the input state shown in the example of FIG2B , the electronic device 100 may first display the user interface shown in the example of FIG2C , and after determining that the virtual keyboard 230 blocks the cursor 222 shown in the example of FIG2B , automatically slide the content displayed in the interface (e.g., the content "1234567" and the cursor 222) in a simulated touch sliding manner so that the cursor 222 is not blocked by the virtual keyboard 230 (e.g., automatically sliding the cursor 222 from the position shown in the example of FIG2B to the position shown in the example of FIG2D ). It is easy to see that during the sliding process, the display position of the cursor 222 on the display screen changes, while the relative position of the cursor 222 and the editing page remains unchanged. For example, the cursor 222 is at position 1 on the editing page before sliding, and is still at position 1 on the editing page after sliding.

[0074] In an embodiment of the present application, "the virtual keyboard obstructs the input area" may mean that the display area where the virtual keyboard is located (i.e., the display area of ​​the virtual keyboard on the display screen) overlaps with the input area (e.g., the display area where the cursor 222 is located) (i.e., the display position of the input focus on the display screen falls within the display area where the virtual keyboard is located), and the position of the input area is obstructed, resulting in the input area being partially / completely unable to be displayed on the screen. "The virtual keyboard does not obstruct the input area" may mean that the display area where the virtual keyboard is located does not overlap with the input area (e.g., the display area where the cursor 222 is located) (i.e., the display position of the input focus on the display screen falls outside the display area where the virtual keyboard is located), the position of the input area is not obstructed, and the input area can be fully displayed on the screen.

[0075] It can be seen that in the method provided in the embodiment of the present application, the electronic device 100 solves the problem of the virtual keyboard blocking the input area by sliding the editing content displayed in the interface (not necessarily containing exact text, pictures, emoticons, etc., but also blank content such as blank content generated by multiple line break operations) and the cursor, rather than solving the problem of the virtual keyboard blocking the input area by moving the entire interface or other areas in the interface (such as area 211 and area 212 as shown in Figure 2A) or adjusting the interface layout. In this way, a better experience can be provided to the user. It is easy to understand that the above-mentioned "sliding the editing content and cursor displayed in the interface to solve the problem of the virtual keyboard blocking the input area" may refer to sliding the editing page (for example, sliding the area 213 as shown in Figure 2A) until the cursor is no longer blocked by the virtual keyboard.

[0076] It is easy to understand that in actual applications, when the user actively slides to browse content on the editing page (that is, the user views the content before / after the position of the input focus in the editing page), the input focus may be blocked by the virtual keyboard. In this case, in order to avoid conflict with the user's intention, the method provided in the embodiment of the present application may not be executed, that is, the editing page will not be automatically slid so that the cursor is not blocked by the virtual keyboard. It should be noted that the content browsed by sliding does not necessarily contain exact text, pictures, emoticons, etc., but may also be blank content (for example, blank content generated by multiple line break operations).

[0077] Figures 2A-2D illustrate a set of user interfaces involved in the process of an application on the guest operating system entering an input state, and after the application enters the input state, the electronic device 100 automatically slides the content displayed in the application interface so that the cursor is not obscured by the virtual keyboard. After the above process of the cursor not being obscured by the virtual keyboard is completed, the application on the guest operating system can use the virtual keyboard of the host operating system to perform input operations (or editing operations). The user interfaces involved in this specific process can be referred to as the set of user interfaces illustrated in Figures 3A-3C below.

[0078] Also taking the document 1 generated by the office application as an example, the user can use the virtual keyboard of the host operating system to perform input operations in the document 1.

[0079] 3A , a user can complete information input in Document 1 by operating (e.g., clicking) virtual keys on the virtual keyboard. For example, the electronic device 100 can detect a user's operation on a virtual key on the virtual keyboard (e.g., the virtual key "a" exemplarily shown in FIG3A ). In response to the operation, the electronic device 100 can display the input object (e.g., the character "a" corresponding to the virtual key "a") and candidate objects (e.g., candidate texts such as "and" and "are") as shown in FIG3B for the user to select. Furthermore, the electronic device 100 can detect the user's operation on the above-mentioned input object or candidate object (such as a click operation). In response to the operation, the electronic device 100 can insert and display the input object or candidate object selected by the user with the position of the cursor shown in Figure 3A as the starting point. For example, if the user selects the character "a", the electronic device 100 will insert the character "a" with the position of the cursor shown in Figure 3A as the starting point, and display the character "a" in Figure 3C. At the same time, the position of the cursor will also change accordingly (for example, move to after the character "a" shown in Figure 3C), thereby completing the information input.

[0080] In some examples, after the user clicks a virtual key on the virtual keyboard, the electronic device 100 may not display the user interface shown in Figure 3B, but may directly insert and display the character corresponding to the key. For example, after the user clicks the virtual key "a" shown in Figure 3A, the electronic device 100 may directly display the user interface shown in Figure 3C, that is, insert the character "a" starting from the position of the cursor shown in Figure 3A, and display the character "a" in Figure 3C, thereby completing the information input.

[0081] In an embodiment of the present application, the electronic device 100 can not only determine whether the virtual keyboard blocks the input area when the application enters the input state, but can also continuously determine whether the virtual keyboard blocks the input area during the input process. Because the position of the cursor will change as the user inputs, the problem of the virtual keyboard blocking the input area may also reappear. Therefore, in order to avoid the problem of the virtual keyboard blocking the input area again, the electronic device 100 will also continuously determine whether the virtual keyboard blocks the input area based on the latest position of the cursor during the input process. If so, it can continue to automatically slide the content displayed in the interface in a simulated touch sliding manner to prevent the cursor from being blocked by the virtual keyboard, without the need for manual operation by the user, thereby simplifying user operations and improving user experience.

[0082] 4A-4D illustrate a possible situation in which a virtual keyboard obscures an input area during user input, as well as a set of user interfaces involved in the electronic device 100 solving the problem of the virtual keyboard obscuring the input area, provided by an embodiment of the present application.

[0083] Also taking the document 1 generated by the office application as an example, the user can use the virtual keyboard of the host operating system to perform input operations in the document 1.

[0084] Referring to FIG4A , the user can continuously perform input operations in document 1, and the cursor will continue to move until it moves to the position shown in FIG4A . Assuming that the position of the cursor shown in FIG4A is the end of the line, if the user continues to perform input operations, the electronic device 100 will change lines to display the user's newly input information. As can be seen from FIG4A , since the cursor is located at a position that is not blocked by the virtual keyboard, if the line is changed, the cursor will move to the next line of the current line, and the cursor will be blocked by the virtual keyboard. In this case, since the electronic device 100 can determine whether the virtual keyboard blocks the input area based on the latest position of the cursor, if the user continues to perform input operations in FIG4A , the electronic device 100 will determine that the virtual keyboard blocks the input area. Furthermore, the electronic device 100 can automatically slide the content displayed in the interface in a simulated touch sliding manner so that the cursor is not blocked by the virtual keyboard, for example, sliding to the position shown in FIG4B .

[0085] FIG4A above illustrates only one possible scenario in which the virtual keyboard obscures the input area during user input. Multiple possible scenarios exist. For example, referring to FIG4C , the user may have pressed the line feed key before reaching the end of a line, causing the cursor to move to the beginning of the next line. For another example, referring to FIG4D , the user may have pressed the line feed key directly at the position shown in FIG2D , causing the cursor to move to the beginning of the next line. It is easy to understand that, regardless of the possible scenario, electronic device 100 will determine whether the virtual keyboard obscures the input area based on the cursor's most recent position. If so, it can automatically slide the content displayed in the interface by simulating a touch slide to ensure that the cursor is not obscured by the virtual keyboard.

[0086] The following describes a specific process of a display method provided in an embodiment of the present application.

[0087] FIG5A exemplarily shows a specific process of a display method provided in an embodiment of the present application.

[0088] Referring to FIG5A , this method can be applied to an electronic device 100. The electronic device 100 may be installed with a host operating system, a guest operating system may be loaded on top of the host operating system, and the application of the guest operating system may use the virtual keyboard of the host operating system for user input operations. The specific steps of this method are described in detail below:

[0089] Scenario 1: Entering the input state scenario (steps S501-S508)

[0090] S501: The guest operating system detects that an application program of the guest operating system enters an input state.

[0091] Specifically, the guest operating system can detect whether one or more applications of the guest operating system enter the input state. If so, subsequent steps can be performed to notify the host operating system to pull up and display the virtual keyboard of the host operating system for the user to perform input operations.

[0092] Among them, the above-mentioned application can be an application that can edit text, pictures, emoticons and other information (such as office applications, social applications, shopping applications, etc.).

[0093] In the embodiment of the present application, the above application takes an office application as an example.

[0094] “The application enters the input state” may mean that an indicator indicating the entry into the input state is displayed on the interface of the application (eg, cursor 222 or cursor 221 as exemplified in FIG. 2B ).

[0095] Exemplarily, detecting that an application of the client operating system enters an input state may mean detecting that a user opens the editing page of the application and that the cursor 222 and cursor 221, such as shown in the aforementioned FIG2B , are displayed on the editing page; or it may mean detecting that the user opens the editing page of the application and then performs a certain operation (such as clicking the editing page with a mouse or finger) to trigger the display of the cursor 222 and cursor 221, such as shown in the aforementioned FIG2B .

[0096] S502: The guest operating system sends a message 1 to the host operating system. The message includes instruction information of entering the input state and position information 1 of the input focus.

[0097] Specifically, after detecting that the application of the client operating system has entered the input state, the client operating system can obtain the position information of the current input focus, where the input focus can be displayed as a flashing cursor (such as the cursor 222 shown in the aforementioned Figure 2B), and the position information of the input focus can refer to the position information of the cursor (that is, the information of the display position of the cursor on the display screen).

[0098] Furthermore, after obtaining the position information of the current input focus, the client operating system can send a message 1 to the host operating system, which includes instruction information for entering the input state and position information 1 of the input focus, wherein the position information 1 of the input focus is the position information of the current input focus (for example, the position information of the cursor 222 shown in the aforementioned Figure 2B).

[0099] Among them, the position information of the input focus can be described based on preset rules. One possible description is that the upper boundary of the screen (i.e., the display screen) is used as the reference boundary, and the distance between the upper boundary of the screen and the input focus (in pixels) is used to represent the height of the position where the input focus is located (i.e., the input position / editing position); another possible description is that the lower boundary of the screen is used as the reference boundary, and the distance between the lower boundary of the screen and the input focus (in pixels) is used to represent the height of the position where the input focus is located. It is easy to understand that in an embodiment of the present application, the position information of the input focus is used by the host operating system to determine whether the input focus is blocked by the virtual keyboard in subsequent steps. Moreover, under normal circumstances, the input area and the virtual keyboard are arranged vertically, not horizontally. Therefore, the position information of the input focus can only include the distance of the input focus relative to the upper boundary or the lower boundary of the screen, without including the distance of the input focus relative to the left boundary or the right boundary of the screen. That is to say, in an embodiment of the present application, the position information of the input focus can be represented by the height information of the position where the input focus is located.

[0100] It can be understood that in the embodiments of the present application, the boundaries of the screen can be determined according to the content displayed on the screen, and not necessarily according to the actual hardware boundaries of the electronic device. For example, the hardware boundary close to the status bar display on the screen is the upper boundary of the screen, and the hardware boundary close to the navigation bar display on the screen is the lower boundary of the screen.

[0101] In some examples, the indication information of entering the input state may include style information of the mouse cursor indicating entering the input state (eg, the “I”-shaped style information of the cursor 221 exemplarily shown in FIG. 2B ).

[0102] It should be noted that the above step S502 is an example in which the client operating system simultaneously sends the above-mentioned indication information of entering the input state and the position information 1 of the input focus to the host operating system. It is easy to understand that the client operating system can also send the above-mentioned indication information of entering the input state and the position information 1 of the input focus to the host operating system separately. The embodiment of the present application does not limit this.

[0103] It is understood that a communication connection must be established between the host operating system and the guest operating system. This communication connection enables communication between the host operating system and the guest operating system (e.g., the guest operating system sending message 1 to the host operating system). The essence of a communication connection is that the communicating parties use a mutually agreed-upon mechanism to transmit data. The embodiments of this application do not impose any limitations on the manner in which the host operating system and the guest operating system establish a connection.

[0104] S503: The host operating system pulls up and displays a virtual keyboard of the host operating system based on the instruction information of entering the input state.

[0105] Specifically, after receiving the indication information sent by the client operating system to enter the input state, the host operating system can pull up the virtual keyboard of the host operating system based on the indication information. After pulling up the virtual keyboard, the virtual keyboard can be displayed (for example, the virtual keyboard 230 shown in the aforementioned Figure 2C).

[0106] It should be noted that the virtual keyboard may be displayed immediately after being pulled up in step S503, or may be displayed when executing subsequent steps S504 to S508, or may be displayed after executing step S508. This embodiment of the present application does not limit this.

[0107] S504: The host operating system obtains height information of the virtual keyboard.

[0108] Specifically, after the host operating system receives the message 1 sent by the guest operating system, the height information of the virtual keyboard can be obtained.

[0109] Among them, the height information of the virtual keyboard can be described based on preset rules. Usually, the virtual keyboard is displayed in the lower half of the screen, so the virtual keyboard will block the input area starting from its upper boundary. For the height of the virtual keyboard, one possible description is that the upper boundary of the screen is used as the reference boundary, and the distance between the upper boundary of the screen and the upper boundary of the virtual keyboard (in pixels) is used to represent the height of the virtual keyboard; another possible description is that the lower boundary of the screen is used as the reference boundary, and the distance between the lower boundary of the screen and the upper boundary of the virtual keyboard (in pixels) is used to represent the height of the virtual keyboard.

[0110] In some examples, the height of the virtual keyboard can be calculated in real time. In this case, the host operating system calculates the height of the virtual keyboard, which means that it has obtained the height information of the virtual keyboard; in other examples, the height of the virtual keyboard can be preset. In this case, the host operating system can directly obtain the preset height of the virtual keyboard without calculation.

[0111] It should be noted that the embodiment of the present application does not limit the execution time sequence of the above-mentioned step S503 and step S504. The above-mentioned step S503 can be executed at the same time as the above-mentioned step S504, or can be executed before / after the above-mentioned step S504.

[0112] S505 . The host operating system determines whether the input focus is blocked by the virtual keyboard based on the height information of the virtual keyboard and the position information 1 of the input focus. If so, the host operating system executes the following step S506 .

[0113] Specifically, after receiving the input focus position information 1 sent by the guest operating system and obtaining the height information of the virtual keyboard, the host operating system can determine whether the input focus is blocked by the virtual keyboard based on the height information of the virtual keyboard and the input focus position information 1, which may include:

[0114] One possible implementation method is that the height of the virtual keyboard and the position of the input focus are both relative to the upper boundary of the screen (that is, the upper boundary of the screen is used as the reference boundary), and the input focus position information 1 may include the height information of the position where the input focus is located (that is, the distance between the upper boundary of the screen and the input focus). In this case, if the height of the virtual keyboard is less than the height of the position where the input focus is located, the host operating system can determine that the input focus is blocked by the virtual keyboard; if the height of the virtual keyboard is greater than or equal to the height of the position where the input focus is located, the host operating system can determine that the input focus is not blocked by the virtual keyboard.

[0115] Another possible implementation is that the height of the virtual keyboard and the position of the input focus are both relative to the lower border of the screen (i.e., the lower border of the screen is used as the reference border), and the input focus position information 1 may include the height information of the input focus position (i.e., the distance between the lower border of the screen and the input focus). In this case, if the height of the virtual keyboard is greater than the height of the input focus position, the host operating system can determine that the input focus is blocked by the virtual keyboard; if the height of the virtual keyboard is less than or equal to the height of the input focus position, the host operating system can determine that the input focus is not blocked by the virtual keyboard.

[0116] If the input focus is blocked by the virtual keyboard, the host operating system may execute the following step S506 ; if the input focus is not blocked by the virtual keyboard, the host operating system may not execute any operation.

[0117] It should be noted that there are many ways to "determine whether the input focus is blocked by the virtual keyboard". The above-mentioned method of determining whether the input focus is blocked by the virtual keyboard based on the height information of the virtual keyboard and the position information of the input focus is only one exemplary method and should not constitute a limitation on this application.

[0118] S506: The host operating system generates a simulated touch sliding sequence 1.

[0119] Specifically, after determining that the input focus is blocked by the virtual keyboard, the host operating system can generate a simulated touch sliding sequence, wherein the simulated touch sliding sequence can be used to simulate the user's touch sliding on the screen. In this way, the screen display content can be automatically slid without the user manually performing the touch sliding operation, and the input focus is not blocked by the virtual keyboard through automatic sliding.

[0120] The host operating system generates a simulated touch sliding sequence, which can be specifically as follows: the host operating system needs to determine the starting value (i.e., the height value of the touch starting position) and the end value (i.e., the height value of the touch ending position) of the simulated touch sliding sequence by combining the height information of the virtual keyboard and the position information of the input focus, wherein the starting value can be the height value of the position where the input focus is located, and the end value can be the height value of the virtual keyboard. In order to present a better sliding effect to the user, one or more values ​​can be inserted between the starting value and the end value of the simulated touch sliding sequence. In this way, the starting value, the inserted one or more values, and the end value constitute a simulated touch sliding sequence (or a point sequence of the simulated touch sliding process). The simulated touch sliding sequence can be an arithmetic sequence, and its tolerance can be set based on certain rules. The embodiments of the present application do not limit this.

[0121] For example, taking the generation of the simulated touch sliding sequence 1 as an example, assuming that the height of the virtual keyboard and the position of the input focus are both relative to the top edge of the screen, the input focus may be obscured by the virtual keyboard if the height of the virtual keyboard is less than the height of the input focus. Referring to the exemplary heights of the virtual keyboard and the input focus shown in FIG5B , assuming that the height of the virtual keyboard is 600 pixels and the height of the input focus is 800 pixels, the starting value of the simulated touch sliding sequence 1 is 800 and the ending value is 600. Assuming that the tolerance of the simulated touch sliding sequence is 10, the simulated touch sliding sequence 1 may be [800 790 780 770 ... 630 620 610 600].

[0122] In some examples, in order to ensure that the slide is accurately moved to the touch end position (or the target position, that is, the position where the input focus is not blocked by the virtual keyboard), more slide update events can be added at the touch end position. Specifically, adding more slide update events can be adding N (N is a positive integer) values ​​after the end value of the simulated touch slide sequence. These N values ​​can be the same as the end value. For example, if 5 values ​​are added to the above-mentioned simulated touch slide sequence 1, then the simulated touch slide sequence 1 can be [800 790 780 770 ... 630 620 610 600 600 600 600 600 600].

[0123] It can be seen that the above-mentioned touch end position is the position where the input focus is just not blocked by the virtual keyboard. In some examples, the above-mentioned touch end position may also be the position where the input focus is still some distance away from being blocked by the virtual keyboard. For example, the height value of the above-mentioned touch end position is set to 600, and the input focus is just not blocked by the virtual keyboard. Assuming that the height value of the above-mentioned touch end position is set to a value less than 600, it is necessary to slide upward for a distance to reach the touch end position corresponding to the value less than 600. At this touch end position, the input focus is still some distance away from being blocked by the virtual keyboard. The embodiment of the present application does not limit the specific height value of the above-mentioned touch end position, as long as it can ensure that the input focus is not blocked by the virtual keyboard.

[0124] S507 : The host operating system sends a message 2 to the guest operating system, where the message includes the simulated touch sliding sequence 1 .

[0125] Specifically, after generating the above-mentioned simulated touch sliding sequence 1, the host operating system can send a message 2 to the client operating system, which includes the simulated touch sliding sequence 1. The message can be used to instruct the client operating system to automatically slide the content displayed on the interface based on the simulated touch sliding sequence 1 so that the input focus is not blocked by the virtual keyboard.

[0126] S508 : The client operating system slides the content displayed in the application interface 1 based on the simulated touch sliding sequence 1 , so that the input focus slides to the target position 1 , where the target position 1 is a position where the input focus is not blocked by the virtual keyboard.

[0127] Exemplarily, the above-mentioned interface 1 can be the interface corresponding to the aforementioned document 1, and the client operating system slides the content displayed in the interface 1 of the application based on the simulated touch sliding sequence 1, and the client operating system can slide the user-edited content (for example, the content "1234567") and the cursor 222 in the document 1 shown in the aforementioned Figure 2B from the position shown in the aforementioned Figure 2B to the position shown in the aforementioned Figure 2D.

[0128] Among them, the above-mentioned target position 1 can be a position where the input focus is just not blocked by the virtual keyboard (for example, the position shown in the aforementioned Figure 2D), or it can be a position where the input focus is still a certain distance away from being blocked by the virtual keyboard (for example, the position corresponding to the position shown in the aforementioned Figure 2D moved up a certain distance). The embodiment of the present application does not limit this.

[0129] The above scenario 1 describes the specific process of determining whether the virtual keyboard obscures the input area when the application enters the input state and resolving the issue of the virtual keyboard obscuring the input area. However, it is not limited to this. During the user input process, it is also possible to determine whether the virtual keyboard obscures the input area and resolve the issue. The following is a detailed introduction based on the steps in the following scenario 2:

[0130] Scenario 2: Input Scenario (Steps S509-S517)

[0131] S509: The host operating system detects an input operation performed by the user through the virtual keyboard.

[0132] The input operation may be an operation (eg, a click operation) by the user on a certain virtual key on the virtual keyboard (eg, the virtual key "a" exemplified in FIG. 3A ).

[0133] S510: The host operating system obtains an input object generated by input operation 1.

[0134] Among them, the above-mentioned input object can be the text, picture, emoticon, etc. corresponding to a virtual key on the virtual keyboard after the user operates the virtual key. For example, if the virtual key operated by the user is the virtual key "a" shown in the aforementioned Figure 3A, then the above-mentioned input object can be the character "a".

[0135] In some examples, after obtaining the above input object, the host operating system can also match candidate objects associated with the above input object, for example, the candidate texts such as "and", "are" and so on associated with the character "a" as shown in the example of FIG. 3B .

[0136] S511 . The host operating system sends a message 3 to the guest operating system, where the message includes an input object.

[0137] S512: The client operating system inserts and displays the input object starting from the position where the input focus is located.

[0138] Exemplarily, the client operating system inserts and displays the input object starting from the position of the input focus. The client operating system may insert the character "a" starting from the position of the cursor shown in the aforementioned FIG. 3A and display the character "a" in the aforementioned FIG. 3C.

[0139] In some examples, since the electronic device 100 may display the options corresponding to the above-mentioned input object and the options corresponding to the candidate objects associated therewith on the virtual keyboard (for example, see the aforementioned FIG3B ), in this case, before executing the above-mentioned step S511, it also includes: the host operating system detects the user's operation (for example, a click operation) on the option corresponding to the above-mentioned input object, that is, in response to the operation, the host operating system sends the above-mentioned input object to the client operating system. It is easy to understand that if the host operating system detects the user's operation on the option corresponding to a candidate object associated with the above-mentioned input object, then in response to the operation, the host operating system can send the candidate object to the client operating system, and the client operating system can insert and display the candidate object with the position of the input focus as the starting point.

[0140] S513: The guest operating system sends a message 4 to the host operating system, where the message includes the position information 2 of the input focus.

[0141] Specifically, after the client operating system inserts and displays the above-mentioned input object with the target position 1 as the starting point, the position of the input focus will also change accordingly. In order to avoid the problem of the virtual keyboard blocking the input area again, the client operating system can send a message 4 to the host operating system. The message includes the position information 2 of the input focus. The position information 2 of the input focus is the information of the position of the input focus after the above-mentioned input object is input (for example, the position of the cursor shown in the example of Figure 3C above).

[0142] In an embodiment of the present application, during the entire user input process, the position of the input focus changes each time the client operating system inserts an input object. Therefore, the above-mentioned step S513 is executed once each time the position of the input focus changes. In this way, the client operating system can send the latest position information of the input focus to the host operating system in real time, so that the host operating system can determine in real time whether the virtual keyboard blocks the input focus (for example, step S514 below). If so, continue to generate a new simulated touch sliding sequence (for example, step S515 below), and send the simulated touch sliding sequence to the client operating system (for example, step S516 below), so that the client operating system can continue to slide the content displayed in the application's interface 1 based on the simulated touch sliding sequence to prevent the input focus from being blocked by the virtual keyboard (for example, step S517 below).

[0143] S514: The host operating system determines whether the input focus is blocked by the virtual keyboard based on the height information of the virtual keyboard and the position information 2 of the input focus. If so, execute the following step S515.

[0144] Among them, step S514 is similar to the aforementioned step S505. Its specific execution process can refer to the text description of the aforementioned step S505 and will not be repeated here.

[0145] In some examples, the host operating system may save the virtual keyboard height information obtained in the aforementioned step S504, so that step S514 may be executed directly. If not saved, the virtual keyboard height information needs to be obtained again before executing step S514.

[0146] S515: The host operating system generates a simulated touch sliding sequence 2.

[0147] Among them, step S515 is similar to the aforementioned step S506. Its specific execution process can refer to the text description of the aforementioned step S506 and will not be repeated here.

[0148] S516: The host operating system sends a message 5 to the guest operating system, where the message includes a simulated touch sliding sequence 2.

[0149] Among them, step S516 is similar to the aforementioned step S507. Its specific execution process can refer to the text description of the aforementioned step S507 and will not be repeated here.

[0150] S517 : The client operating system slides the content displayed in the application interface 1 based on the simulated touch sliding sequence 2 , so that the input focus slides to the target position 2 , where the target position 2 is a position where the input focus is not blocked by the virtual keyboard.

[0151] Exemplarily, the target position 2 may be a position where the input focus is just not blocked by the virtual keyboard (e.g., the position shown in aforementioned FIG. 4B / FIG. 4C), or a position where the input focus is still a certain distance away from being blocked by the virtual keyboard (e.g., a position corresponding to a distance upwards from the position shown in aforementioned FIG. 4B / FIG. 4C). This embodiment of the present application does not limit this.

[0152] Scenario 3: Exit Input State Scenario (Steps S518-S520)

[0153] S518: The guest operating system detects that the application program of the guest operating system exits the input state.

[0154] Among them, the above-mentioned exit input state may mean that the application is closed, or the application is not closed but no input focus is displayed (for example, the cursor 222 shown in the aforementioned Figure 2B is not displayed), or the application is not closed but an indicator for indicating the exit input state is displayed (for example, the arrow-style cursor 217 shown in the aforementioned Figure 2A is displayed).

[0155] S519: The guest operating system sends a message 6 to the host operating system, where the message includes instruction information for exiting the input state.

[0156] In some examples, the indication information for exiting the input state may include style information of a mouse cursor for indicating the exit input state (eg, arrow style information of the cursor 217 exemplarily shown in FIG. 2A ).

[0157] S520: The host operating system closes and cancels the display of the virtual keyboard based on the instruction information for exiting the input state.

[0158] Specifically, after receiving the instruction information for exiting the input state sent by the guest operating system, the host operating system may close the virtual keyboard based on the instruction information and cancel the display of the virtual keyboard.

[0159] By implementing the method provided by the embodiment shown in Figure 5A above, the electronic device 100 can determine whether the input focus is blocked by the virtual keyboard when pulling up the virtual keyboard. If so, the editing content and input focus in the interface can be automatically moved away from the virtual keyboard (for example, upward), so that the user's editing content and input focus are visible and not blocked by the virtual keyboard. Since the editing position (that is, the position where the input focus is located) will move with the user input (for example, downward) during the user's input operation using the virtual keyboard, the electronic device 100 can continue to determine whether the input focus is blocked by the virtual keyboard. If so, the edited content and input focus in the interface can be automatically moved away from the virtual keyboard (for example, upward), so that the user's editing content and input focus are visible. In this way, the problem of the virtual keyboard blocking the input area can be effectively solved, ensuring that the input focus is not blocked when the user uses the virtual keyboard to perform input operations, thereby improving the user experience.

[0160] It should be noted that the display method provided in the embodiment of the present application is not only applicable to the ecological fusion cross-system application scenario shown in the embodiment shown in FIG5A above, but also applicable to a single-system application scenario. It is easy to understand that the specific process of implementing the display method provided in the embodiment of the present application in a single-system application scenario is similar to the above-mentioned ecological fusion cross-system application scenario. The difference is that all steps are performed by a single system, and the interaction steps between the two systems are omitted. For example, in a single-system application scenario, among the various steps in the embodiment shown in FIG5A above, the cross-system interaction steps of step S502, step S507, step S511, step S513, step S516, and step S519 do not need to be executed, and the other steps are all performed by a single system.

[0161] The following describes a software structure of an electronic device 100 provided in an embodiment of the present application.

[0162] FIG6 exemplarily shows a software structure of an electronic device 100 provided in an embodiment of the present application.

[0163] As shown in Figure 6, the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of this application take the host operating system adopting a layered architecture as an example to illustrate the software structure of the electronic device 100, which should not constitute a limitation on the host operating system in this application.

[0164] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some examples, the host operating system can be divided into four layers: application layer, application framework layer, system services layer, and kernel layer, from top to bottom.

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

[0166] As shown in FIG6 , the application package may include applications such as camera, gallery, calendar, call, WLAN, Bluetooth, and agent.

[0167] The proxy application can be used to interact with the input method framework module to implement functions such as pulling up, closing, and input control of the virtual keyboard; it can also be used to receive messages sent by the client operating system (such as indication information of entering the input state, location information of the input focus, etc.); it can also be used to send user input information to the client operating system; it can also be used to obtain the height information of the virtual keyboard; it can also be used to determine whether the virtual keyboard blocks the input area; it can also be used to calculate a simulated touch sliding sequence and send the simulated touch sliding sequence to the client operating system; and so on.

[0168] The proxy application may include one or more modules, which may be used to implement the above-mentioned multiple functions of the proxy application. For example, the proxy application may include an interaction and input module and a calculation module, wherein:

[0169] The interaction and input module can be used to interact with the input method framework module, receive messages from the client operating system, and send user input to the client operating system. The interaction and input module can include an invisible input box / edit box (EditText) for receiving user input. User-entered text, images, emoticons, and other information can be stored in this input box and sent to the client operating system. For example, after receiving an indication from the client operating system that it has entered the input state, the proxy application can focus the input box to receive user input.

[0170] The calculation module can be used to obtain the height information of the virtual keyboard, and can also be used to obtain the position information of the input focus (for example, the position information of the input focus can be obtained from the above-mentioned interaction and input module), and can also be used to determine whether the virtual keyboard blocks the input area; it can also be used to calculate the simulated touch sliding sequence and send the simulated touch sliding sequence to the client operating system; and so on.

[0171] The software structure of the electronic device 100 may also include one or more input method applications (not shown in the figure), such as Input method, Input method, etc., which is not limited in this embodiment of the present application. The input method application can support multiple types of virtual keyboards, such as a nine-square type pinyin keyboard, a full keyboard type pinyin keyboard, an English keyboard, a numeric keyboard, an emoticon keyboard, etc., which is not limited in this embodiment of the present application.

[0172] As shown in FIG6 , the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an input method framework module, and the like.

[0173] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0174] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0175] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0176] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0177] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.

[0178] The input method framework module can be used to receive instruction information sent by the proxy application and pull up / close the virtual keyboard based on the instruction information; it can also be used to send user input information to the proxy application. The user input information can be the input object (such as text, picture, emoticon, etc.) generated by the input operation obtained by the input method framework module based on the user's input operation.

[0179] The system service layer can include multiple functional modules, such as the surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), and 2D graphics engine (such as SGL).

[0180] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0181] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

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

[0183] A 2D graphics engine is a drawing engine for 2D drawings.

[0184] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, Bluetooth driver, and sensor driver.

[0185] The following introduces the software structure of another electronic device 100 provided in an embodiment of the present application.

[0186] FIG7 exemplarily shows a software structure of another electronic device 100 provided in an embodiment of the present application.

[0187] As shown in Figure 7, the software structure of the electronic device 100 may be a client operating system structure. It is easy to understand that Figure 7 is only a schematic diagram of the client operating system structure in this application and should not constitute a limitation on the client operating system in this application.

[0188] The client operating system may include one or more application programs, such as office applications, chat applications, shopping applications, etc.

[0189] Among them, the office application is an application with the function of editing text, pictures, emoticons and other information, which can realize the most commonly used functions of office applications such as text, tables, presentations, PDF reading, etc.

[0190] In an embodiment of the present application, the office application can interact with the input method framework module to implement the input function and the function of automatically sliding the input content and input focus.

[0191] In the embodiment of the present application, the display method provided in the embodiment of the present application is described by taking an office application as an example, but is not limited thereto. The display method provided in the embodiment of the present application is also applicable to other applications, and the embodiment of the present application does not limit this.

[0192] The client operating system may also include one or more input method applications (not shown in the figure).

[0193] The display method provided in the embodiments of the present application can be executed when a guest operating system requires the use of a virtual keyboard on the host operating system side to implement input functions. Under certain conditions, the guest operating system requires the use of a virtual keyboard on the host operating system side to implement input functions. The above certain conditions may include, but are not limited to, the following two: one possibility is that the input method application of the guest operating system does not support the virtual keyboard; the other possibility is that the user independently sets the use of the virtual keyboard on the host operating system side to implement the input functions on the guest operating system side.

[0194] The client operating system may include a window manager (WindowManager), a resource manager, an input method framework module, a media library, a display framework (DisplayFramework) module, etc.

[0195] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0196] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0197] The input method framework module can be used to obtain whether an application (such as an office application) has entered the input state; it can also be used to obtain the position information of the input focus; it can also be used to interact with the host operating system, for example, sending indication information of whether the application has entered the input state, the position information of the input focus, etc. to the host operating system; for example, receiving messages sent by the host operating system (such as simulated touch sliding sequences, user input information, etc.); it can also be used to instruct the application that has entered the input state to automatically slide the input content and input focus based on the simulated touch sliding sequence so that the input focus is not blocked by the virtual keyboard; it can also be used to send the information input by the user to the application that has entered the input state to complete the information input; and so on.

[0198] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0199] The display framework module can be used to perform services related to display functions.

[0200] Based on the software structure of Figures 6 and 7 above, the following introduces a possible collaboration method between the various modules when the electronic device 100 shown in Figure 8 is implemented with a host operating system installed and a client operating system loaded on the host operating system to implement the display method provided in the embodiment of the present application.

[0201] A communication channel may be established between the host operating system and the guest operating system, and the communication channel may be used for information exchange between the host operating system and the guest operating system.

[0202] For example, an office application of a guest operating system uses the virtual keyboard of the host operating system for user input operations. Similar to FIG5A above, there are three scenarios:

[0203] Scenario 1: Entering the input state

[0204] The input method framework module of the client operating system can obtain whether the office application has entered the input state. If so, it can obtain the position information of the input focus and send the indication information of entering the input state and the position information of the input focus to the proxy application of the host operating system through the communication channel. The proxy application can instruct the input method framework module of the host operating system to pull up the virtual keyboard based on the indication information of entering the input state. Furthermore, it can also obtain the height information of the virtual keyboard and determine whether the virtual keyboard blocks the input area based on the height information of the virtual keyboard and the position information of the input focus. If so, the proxy application can generate a simulated touch sliding sequence and send a simulated touch sliding notification message to the input method framework module of the client operating system through the communication channel. The message includes the simulated touch sliding sequence. Based on the message, the input method framework module of the client operating system can instruct the office application to automatically slide the input content and input focus based on the simulated touch sliding sequence so that the input focus is not blocked by the virtual keyboard.

[0205] Scenario 2: Input Scenario

[0206] After the input method framework module of the host operating system pulls up the virtual keyboard, the virtual keyboard can be displayed on the screen of the electronic device 100, and the user can perform input operations through the virtual keyboard to generate user input information. The input method framework module of the host operating system can send the user input information to the proxy application, and the proxy application can send the user input information to the input method framework module of the client operating system through the communication channel. The input method framework module of the client operating system can then send the user input information to the office application to complete the information input. Since the position of the input focus changes with the user input during the user input process, the input method framework module of the client operating system can continuously obtain the latest position information of the input focus as the user inputs, and send it to the proxy application of the host operating system through the communication channel. The proxy application can continue to determine whether the virtual keyboard blocks the input area based on the latest position information of the input focus and the height information of the virtual keyboard. If so, a process similar to the aforementioned scenario one is performed to prevent the input focus from being blocked by the virtual keyboard.

[0207] Scenario 3: Exit input state scenario

[0208] The input method framework module of the client operating system can obtain whether the office application has exited the input state. If so, it can send an indication message of exiting the input state to the proxy application of the host operating system through the communication channel. The proxy application can instruct the input method framework module of the host operating system to close the virtual keyboard based on the indication message of exiting the input state. After closing the virtual keyboard, the virtual keyboard can be undisplayed on the screen of the electronic device 100.

[0209] The structure of an electronic device 100 provided in an embodiment of the present application is introduced below.

[0210] FIG9 exemplarily shows the structure of an electronic device 100 provided in an embodiment of the present application.

[0211] As shown in Figure 9, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0212] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0213] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0214] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0215] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0216] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0217] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0218] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0219] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0220] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0221] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0222] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0223] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 and to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other terminal devices, such as AR devices.

[0224] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0225] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.

[0226] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0227] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0228] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0229] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0230] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0231] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0232] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. 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).

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

[0234] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0235] In the embodiment of the present application, the display screen 194 can be used to display a virtual keyboard, the interface of an application opened by the user, information input by the user, a cursor, etc.

[0236] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0237] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and other factors. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0238] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0239] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0240] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0241] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0242] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0243] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0244] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0245] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0246] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0247] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0248] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0249] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0250] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0251] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it (for example, a user's click operation on a virtual key on a virtual keyboard, a touch operation when the user triggers the display cursor, etc.). The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0252] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0253] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0254] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0255] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0256] It should be understood that the electronic device 100 shown in FIG9 is merely an example, and the electronic device 100 may have more or fewer components than shown in FIG9, may combine two or more components, or may have a different component configuration. The various components shown in FIG9 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0257] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0258] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0259] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A display method, applied to an electronic device including a display screen, It is characterized in that The electronic device runs a first operating system and a second operating system, and the method includes: The electronic device displays an editing page of a first application, where the first application runs on the first operating system; The electronic device receives an input operation of a user on the editing page; The electronic device displays a virtual keyboard, where the virtual keyboard is provided by the second operating system; The electronic device slides the editing page until the input focus corresponding to the input operation is not blocked by the virtual keyboard.

2. The method according to claim 1, It is characterized in that The display area of ​​the virtual keyboard on the display screen is a first area, and before the sliding, the display position of the input focus on the display screen falls within the first area.

3. The method according to claim 1 or 2, It is characterized in that The conditions under which the sliding is performed include: The editing page is not in a state of being slid and browsed by the user, where slid and browsed means that the user slides the editing page to browse the content before or after the input focus.

4. The method according to any one of claims 1 to 3, It is characterized in that The electronic device displays a virtual keyboard, specifically comprising: The first operating system sends a first message to the second operating system based on the input operation; The second operating system displays the virtual keyboard based on the first message.

5. The method according to any one of claims 1 to 4, It is characterized in that The electronic device slides the editing page until the input focus corresponding to the input operation is not blocked by the virtual keyboard, specifically including: The second operating system receives information of a first position sent by the first operating system, where the first position is a display position of the input focus on the display screen before the sliding; The second operating system determines whether the first position falls within the display area of ​​the virtual keyboard on the display screen, and if so, the second operating system sends a second message to the first operating system; The first operating system slides the editing page based on the second message until an input focus corresponding to the input operation is not blocked by the virtual keyboard.

6. The method according to claim 5, It is characterized in that The second message includes a numerical sequence, and the numerical sequence is used by the electronic device to slide the editing page until the input focus corresponding to the input operation is not blocked by the virtual keyboard.

7. The method according to claim 6, It is characterized in that The numerical sequence includes at least a first numerical value and a second numerical value in sequence, wherein the first numerical value is the distance value between the input focus and the reference boundary of the display screen before the sliding, and the second numerical value is the distance value between the upper boundary of the virtual keyboard and the reference boundary of the display screen.

8. The method according to claim 7, It is characterized in that The numerical sequence further includes one or more numerical values ​​between the first numerical value and the second numerical value, and the numerical sequence is an arithmetic sequence; and / or, the reference boundary of the display screen is the upper boundary of the display screen; and / or, the numerical sequence further includes one or more numerical values ​​that are the same as the second numerical value after the second numerical value.

9. The method according to any one of claims 1 to 8, It is characterized in that The method further comprises: The second operating system detects a first operation of a user on the virtual keyboard; The second operating system obtains the input object generated by the first operation, and sends a third message to the first operating system, wherein the third message includes the input object; The first operating system displays the input object based on the third message.

10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: The first operating system detects a second operation of the user; In response to the second operation, the first operating system sends a fourth message to the second operating system; The second operating system cancels display of the virtual keyboard based on the fourth message.

11. An electronic device, It is characterized in that The electronic device includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-10.

12. A computer storage medium, It is characterized in that The computer storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Display method and electronic equipment

    CN118672473A

  • Information display method and device, equipment and storage medium

    CN112783415A

  • Input method and electronic equipment

    CN113741708A

  • Content editing control method and device, electronic equipment and storage medium

    CN114860149A

  • Virtual keyboard for writing programming codes in electronic device

    US20220236967A1

Cited By

  • Display device and interaction method

    CN121309887A