Display method and electronic equipment
Through the interaction between the guest operating system and the host operating system, a simulated touch sliding sequence sliding editing page is generated, which solves the problem of the virtual keyboard blocking the input area and improves the user experience and input efficiency.
Patent Information
- Application Number
- CN202310305204.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-09-20
AI Technical Summary
In electronic devices, the problem of virtual keyboard blocking the input area leads to low user input efficiency and poor user experience. Especially in ecological integration cross-system application scenarios, there is a lack of effective solutions.
Through interaction between the guest operating system and the host operating system, the guest operating system sends the position information of entering the input state and input focus to the host operating system. The host operating system determines whether it is blocked by the virtual keyboard and generates a simulated touch sliding sequence. The operating system uses this to slide the editing page to avoid occlusion.
It effectively solves the problem of the virtual keyboard blocking the input area, improves the user experience, ensures that the input focus is not blocked, and simplifies user operations.
Smart Images

Figure CN118672473A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a display method and an electronic device. Background Art
[0002] 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. At present, many electronic devices use touch screens as a medium for human-computer interaction. In this case, people usually use virtual keyboards (also called soft keyboards) to input information on electronic devices.
[0003] 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 when performing input operations, which reduces input efficiency, brings inconvenience to the user, and poor user experience. Summary of the invention
[0004] 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.
[0005] 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 comprising: 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.
[0006] 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 manner of simulating touch sliding 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.
[0007] In a possible implementation, a display area of the virtual keyboard on the display screen is a first area, and before the sliding, a display position of the input focus on the display screen falls within the first area.
[0008] 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 sliding editing page operation until the input focus is not blocked by the virtual keyboard.
[0009] 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.
[0010] In this way, when the user actively slides to browse the content in the editing page, the aforementioned sliding operation may not be performed to avoid conflict with the user's intention.
[0011] In a possible implementation, 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; and the second operating system displays the virtual keyboard based on the first message.
[0012] In this way, after a certain application of the first operating system enters the input state, the first operating system can send a first message to the second operating system to instruct the second operating system to pull up and display the virtual keyboard.
[0013] 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 information of the first position 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.
[0014] In this way, when an application of the first operating system just enters the input state or during the entire input process of the user, 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 not blocked by the virtual keyboard.
[0015] 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.
[0016] 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.
[0017] In a possible implementation, the numerical sequence includes at least a first numerical value and a second numerical value in sequence, the first numerical value being the distance value between the input focus and a reference boundary of the display screen before the sliding, and the second numerical value being the distance value between the upper boundary of the virtual keyboard and the reference boundary of the display screen.
[0018] The first numerical value may be a starting value of the sliding, and the second numerical 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 numerical value and the second numerical value.
[0019] In a 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.
[0020] 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.
[0021] Among them, adding one or more values that are the same as the second value after the above-mentioned second value can ensure that the electronic device can accurately slide the input focus to the position where the sliding end point is located.
[0022] In a possible implementation, the method also includes: the second operating system detects a first operation of a user on the virtual keyboard; the second operating system obtains an 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.
[0023] In this way, cross-system input operations can be implemented. For example, a user can perform input operations in an application running on a client operating system through a virtual keyboard provided by the host operating system.
[0024] In a possible implementation, the method further includes: 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; and the second operating system cancels display of the virtual keyboard based on the fourth message.
[0025] 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.
[0026] 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 (such as an office application) running in the client operating system, the editing page may be a page provided by the first application for implementing the editing function, and the input operation may be an operation triggered by a user to enter the input state (such as a click operation on the editing page by a mouse or a finger), or may be Figure 5A In step S509, the user performs input operation through the virtual keyboard. The first message may include indication information of entering the input state, and the second message may be Figure 5A In the message 2 or message 5, the numerical sequence may be a simulated touch sliding sequence, the first numerical value may be a starting value of the simulated touch sliding sequence, the second numerical value may be an end value of the simulated touch sliding sequence, the first operation may be an input operation of the user on the virtual keyboard, and the third message may be Figure 5A The second operation may be an operation triggered by the user to exit the input state, and the fourth message may be Figure 5A Message 6 in.
[0027] In a second aspect, an embodiment of the present application provides an electronic device, which 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 described in any possible implementation method of the first aspect above.
[0028] In a third aspect, an embodiment of the present application provides a computer storage medium, which 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 described in any possible implementation of the first aspect above.
[0029] 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
[0030] Figure 1 is a schematic diagram of an electronic device 100 displaying application icons provided by an embodiment of the present application;
[0031] Figure 2A-2D is a group of user interface schematic diagrams involved in the display method provided in the embodiment of the present application;
[0032] Figure 3A-3C is another group of user interface schematic diagrams involved in the display method provided in the embodiment of the present application;
[0033] Figure 4A-4D is another group of user interface schematic diagrams involved in the display method provided in the embodiment of the present application;
[0034] Figure 5A It is a flow chart of a display method provided in an embodiment of the present application;
[0035] Figure 5B is a schematic diagram describing the height of a virtual keyboard and the height of a position where an input focus is located, provided in an embodiment of the present application;
[0036] Figure 6 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;
[0037] Figure 7 is a schematic diagram of the software structure of another electronic device 100 provided in an embodiment of the present application;
[0038] Figure 8It is a schematic diagram of a possible cooperation 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 client operating system is loaded on the host operating system;
[0039] Fig. 9 It is a structural diagram of an electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the 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 the 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.
[0041] It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0042] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0043] The term "user interface (UI)" in the following embodiments of the present 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 can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation 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.
[0044] 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, and in many aspects, it is difficult to achieve simple and effective ecological integration. 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.
[0045] 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 use virtualization technology to achieve it.
[0046] In the above case, 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). At this time, the guest operating system can run on the host machine. The host machine virtualizes a set of virtual hardware environments (including processors, memory, I / O devices, etc.) independent of the actual hardware, so that 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 ecology of PCs and mobile terminal devices can be integrated.
[0047] Generally speaking, PC applications (also called desktop applications) are more capable of meeting users' office needs in terms of feature richness, keyboard and mouse adaptation, etc., compared to mobile applications. With the further integration of PC 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 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 everywhere, 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 mobile terminal devices can maximize the capabilities of desktop-level applications on mobile terminal devices.
[0048] When users use mobile terminal devices, such as tablet computers, they will inevitably encounter scenarios where the tablet computer is not connected to a physical keyboard. In this case, the user needs to call out the tablet computer's virtual keyboard to perform input operations. However, the 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 block the input area, causing the user to be unable to see the content they have entered.
[0049] In order to ensure that users can perform input operations smoothly without an external physical keyboard, especially in ecological integration and cross-system application scenarios, it is necessary to open up cross-system virtual keyboard input capabilities, so as to improve user input scenarios and allow users to perform input operations more flexibly.
[0050] At present, some operating systems will solve the problem of the virtual keyboard blocking the input area by translating the window upwards, adjusting the interface layout, etc., but these methods also have some problems. For example, for the method of translating the window upwards, if the virtual keyboard blocks the current input box, the interface above the current input box will be directly translated upward as a whole, so that 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, and 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.
[0051] 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.
[0052] In order to solve the problem of the virtual keyboard blocking the input area that may occur when the virtual keyboard is used 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 client operating system can be loaded on the host operating system. The client operating system can use the virtual keyboard of the host operating system for users to perform input operations. When an application of the client operating system enters the input state, the client operating system can send indication information of entering the input state and position information of the input focus to the host operating system. The host operating system can pull up and display the virtual keyboard based on the indication information of entering the input state, and can determine whether the above-mentioned 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 host operating system can generate a simulated touch sliding sequence and send the simulated touch sliding sequence to the client operating system. The client 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 of the user is not blocked when using the virtual keyboard for input operations, and improving the user experience.
[0053] The electronic device 100 in the embodiment of the present application may be referred to as a host machine. The electronic device 100 may 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 may be installed with a host operating system, and a client operating system may be loaded on top of the host operating system. The host operating system may 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 the present application do not impose any limitation on the types of the host operating system and the client operating system.
[0054] 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 virtualization technology.
[0055] Let's first combine Figure 1 , Figure 2A-2D , Figure 3A-3C , Figure 4A-4D A series of exemplary user interfaces involved in the embodiments of the present application are introduced.
[0056] In the embodiment of the present application, the electronic device 100 is a tablet computer for example. The electronic device 100 may be installed with a host operating system, a client operating system may be loaded on the host operating system, the application of the client operating system runs on the host operating system, and the client operating system may use the virtual keyboard of the host operating system for the user to perform input operations (that is, the client operating system may use the input method of the host operating system as an input source).
[0057] See also Figure 1 The user interface 110 may be a user interface (also referred to as a desktop) of a host operating system installed on the electronic device 100. The user interface may include one or more application icons (e.g., icon 111, icon 112, icon 113, icon 114, etc.), and the one or more application icons may include icons of application programs of the host operating system (e.g., icon 111, icon 112, icon 113) and icons of application programs of the client operating system (e.g., icon 114).
[0058] Optionally, the icon of the client operating system's application may be displayed with a relevant identifier (e.g., 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 application of the host operating system or an application of the client operating system.
[0059] Continue reading Figure 1 The icon 114 may be an icon of an office application, which is an application of the client operating system and may implement various functions such as document editing.
[0060] 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.
[0061] See also Figure 2A , Figure 2AThe exemplary user interface 210 may be a user interface of document 1, wherein document 1 is a document generated by an office application of a client operating system. A user may perform input operations in document 1 by using a virtual keyboard of a host operating system.
[0062] Continue reading Figure 2A , the user interface 210 may include multiple display areas (such as area 211, area 212, area 213, etc.), where area 211 can be used to display document 1 information, quick access toolbar, options corresponding to functions such as minimizing and closing document 1; area 212 can be used to display multiple function tabs; area 213 can be used to display content edited by the user (such as content "1234567"), which is the editing area of the document (also called the editing page), in which the user can enter text, pictures, etc. The user interface 210 may also include option 214, slider 215, and option 216, where option 214 can be used to slide down the content edited in the document, slider 215 can be used to slide down / up the content edited in the document, and option 216 can be used to slide up the content edited in the document. The user can slide down / up the edited content in the document (also called sliding down / up editing page) by operating option 214 / option 216 (such as clicking operation), or slide down / up the edited content in the document by operating the slider 215 (such as dragging operation).
[0063] Continue reading Figure 2A , Figure 2A A cursor 217 may also be displayed in the document 1, and the cursor 217 may be used to display the position of the mouse pointer connected to the electronic device 100. If the user wants to edit the content in the document 1, the electronic device 100 may detect the user's click operation on the mouse, and in response to the operation, the electronic device 100 may display Figure 2B The cursor 222 shown as an example can be used to indicate that the document 1 is in the input state (i.e., the office application enters the input state). The cursor 222 can be a cursor that flashes according to certain rules. The position of the cursor 222 is the starting point of the user input content. The electronic device 100 can also Figure 2A The style of the cursor 217 (eg, arrow style) is switched to Figure 2B The style of the cursor 221 is shown as an example (eg, an “I” shaped style).
[0064] It can be seen that in Figure 2A In the input state, 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 operations (such as mouse click operations), document 1 is switched to Figure 2B In the exemplary input state shown, the user can edit the content in Document 1.
[0065] In some examples, after the user opens document 1, document 1 can also directly enter Figure 2B The input state shown as an example does not require manual operation by the user to enter the input state.
[0066] In the embodiment of the present application, “the office application enters the input state” may refer to a document generated by the office application showing Figure 2B The cursor 222 shown as an example may also be displayed if the electronic device 100 is connected to a mouse. Figure 2B The cursor 221 is shown as an example. “The office application program has not entered the input state” may mean that no cursor is displayed in the document generated by the office application program. Figure 2B The cursor 222 shown as an example may be displayed as follows when the electronic device 100 is connected to a mouse. Figure 2A Cursor 217 is shown as an example.
[0067] Continue reading Figure 2B After the client operating system detects that the office application has entered the input state, it 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. Figure 2C , Figure 2C The virtual keyboard 230 shown in the example is a virtual keyboard called out by the host operating system. In the embodiment of the present application, the type of the virtual keyboard is not limited, and it can be a nine-grid 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.
[0068] Continue reading Figure 2C It can be seen that the virtual keyboard 230 blocks part of the displayed content in the document 1, for example Figure 2B The exemplary content "4567" and cursor 222 are shown. Thus, when the user is performing input operations, the user cannot see the input content, resulting in a poor experience.
[0069] In the above situation, the problem of the virtual keyboard blocking the input area can be solved by manual operation of the user (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 operation more cumbersome and the experience poor during the input process.
[0070] By implementing the method provided in the embodiment of the present application, when the application enters the input state, the electronic device 100 can determine whether the virtual keyboard blocks the input area. If so, the content displayed in the interface can be automatically slid in a simulated touch sliding manner so that the cursor is not blocked by the virtual keyboard, without the need for manual operation by the user, thus simplifying the user operation and improving the user experience. The specific implementation process of the method provided in the embodiment of the present application will be described in detail in the subsequent embodiments, which will not be expanded here.
[0071] For example, the application enters Figure 2B In the input state shown in the example, the electronic device 100 may first display Figure 2C The user interface shown in the example is determined to be blocked by the virtual keyboard 230. Figure 2B After the cursor 222 is shown in the exemplary embodiment, the content displayed in the interface (such as the content "1234567" and the cursor 222) is automatically slid in a simulated touch sliding manner so that the cursor 222 is not blocked by the virtual keyboard 230 (for example, the cursor 222 is moved from Figure 2B The position shown in the example automatically slides to Figure 2D 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, before sliding, the cursor 222 is at position 1 of the editing page, and after sliding, the cursor 222 is still at position 1 of the editing page.
[0072] In an embodiment of the present application, "the virtual keyboard blocks 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 blocked, resulting in the input area being partially / completely unable to be displayed on the screen. "The virtual keyboard does not block 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 blocked, and the input area can be fully displayed on the screen.
[0073] 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 edited content (not necessarily including exact text, pictures, emoticons, etc., but also blank content such as blank content generated by multiple line break operations) and the cursor displayed in the interface, rather than by moving the entire interface or other areas in the interface (such as Figure 2A The example areas 211 and 212 shown in the figure) or the interface layout can be adjusted to solve the problem of the virtual keyboard blocking the input area, so as to provide a better experience for users. It is easy to understand that the above “sliding the edit content and cursor displayed in the interface to solve the problem of the virtual keyboard blocking the input area” can refer to sliding the edit page (for example, sliding Figure 2A The area 213 shown as an example) is opened until the cursor is no longer blocked by the virtual keyboard.
[0074] It is easy to understand that in actual applications, when the user actively slides to browse the content on the editing page (that is, the user views the content before / after the position where the input focus is located 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).
[0075] Above Figure 2A-2D It is a set of user interfaces involved in the process of the client operating system's application entering the 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 blocked by the virtual keyboard. After completing the above process of the cursor not being blocked by the virtual keyboard, the client operating system's application can use the host operating system's virtual keyboard to perform input operations (or editing operations). The user interfaces involved in the specific process can refer to the following Figure 3A-3C A set of user interfaces are shown as examples.
[0076] 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.
[0077] See also Figure 3A , the user can complete the information input in the document 1 by operating (for example, clicking) the virtual keys on the virtual keyboard. For example, the electronic device 100 can detect that the user has pressed a certain virtual key on the virtual keyboard (for example, Figure 3AIn response to the operation of the virtual key "a" shown in the example, the electronic device 100 may display Figure 3B The input object (e.g., the character "a" corresponding to the virtual key "a") and the candidate objects (e.g., candidate texts such as "and" and "are") shown in the exemplary embodiment are provided for the user to select. Further, the electronic device 100 can detect the user's operation (e.g., a click operation) on the above input object or candidate object. In response to the operation, the electronic device 100 can Figure 3A The position of the cursor shown in the example is used as the starting point to insert and display the input object or candidate object selected by the user. For example, if the user selects the character "a", then the electronic device 100 will Figure 3A The cursor position shown in the example is used as the starting point to insert the character "a", and Figure 3C The character "a" is displayed in the text box, and the cursor position will also change (for example, move to Figure 3C The character "a" shown in the example is followed), and thus the information input is completed.
[0078] In some examples, after the user clicks a virtual key on the virtual keyboard, the electronic device 100 may not display the virtual key. Figure 3B Instead of using the user interface shown in the example, the character corresponding to the key is directly inserted and displayed. For example, when the user clicks Figure 3A After pressing the virtual key "a" as shown in the example, the electronic device 100 can directly display Figure 3C The user interface shown is Figure 3A The cursor position shown in the example is used as the starting point to insert the character "a", and Figure 3C The character "a" is displayed in the middle, thus completing the information input.
[0079] In the 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 also continuously determine whether the virtual keyboard blocks the input area during the input process. Because the position of the cursor will change with the user's input, 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.
[0080] Figure 4A-4DA possible situation in which a virtual keyboard blocks an input area during user input provided in an embodiment of the present application and a set of user interfaces involved in solving the problem of a virtual keyboard blocking an input area by the electronic device 100.
[0081] 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.
[0082] See also Figure 4A , the user can continue to input in document 1, and the cursor will continue to move until it moves to Figure 4A The position shown, assuming Figure 4A The position of the cursor shown in FIG. 1 is the end of the line. If the user continues to input, the electronic device 100 will change to another line to display the information newly input by the user. Figure 4A As can be seen from the figure, 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 is in Figure 4A If the input operation continues, the electronic device 100 will determine that the virtual keyboard blocks the input area. Further, 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, Figure 4B Position shown.
[0083] Above Figure 4A The example shown is just one possible situation where the virtual keyboard blocks the input area during user input. There are usually many possible situations. For example, see Figure 4C , the user may also press the line feed key before entering the end of a line, causing the cursor to move to the beginning of the next line; for example, see Figure 4D , users may also Figure 2D The cursor is moved to the beginning of the next line by pressing the line feed key directly at the position where the cursor is located; etc. It is easy to understand that in either case, the electronic device 100 will determine whether the virtual keyboard blocks the input area based on the latest position of the cursor. If so, the content displayed in the interface can be automatically slid in a simulated touch sliding manner so that the cursor is not blocked by the virtual keyboard.
[0084] The following describes a specific process of a display method provided in an embodiment of the present application.
[0085] Figure 5A The specific process of a display method provided in an embodiment of the present application is exemplified.
[0086] See also Figure 5A , the method can be applied to the electronic device 100. The electronic device 100 can be installed with a host operating system, a client operating system can be loaded on the host operating system, and the application of the client operating system can use the virtual keyboard of the host operating system for the user to perform input operations. The specific steps of the method are described in detail below:
[0087] Scenario 1: Entering the input state scenario (step S501-step S508)
[0088] S501: The client operating system detects that an application program of the client operating system enters an input state.
[0089] Specifically, the client operating system can detect whether one or more application programs of the client 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.
[0090] Among them, the above-mentioned application can be an application that can have the function of editing text, pictures, emoticons and other information (such as office applications, social applications, shopping applications, etc.).
[0091] In the embodiment of the present application, the above-mentioned application takes an office application as an example.
[0092] “The application enters the input state” may mean that an indicator indicating that the application has entered the input state is displayed on the interface of the application (for example, the Figure 2B Cursor 222, cursor 221 are shown as examples).
[0093] Exemplarily, detecting that the application of the client operating system enters the input state may refer to detecting that the user opens the editing page of the application and the editing page displays the aforementioned Figure 2B The cursor 222 and cursor 221 are shown as examples; it may also refer to detecting that the user has opened the editing page of the application and then performed an operation (such as clicking the editing page with a mouse or finger) to trigger the display of the aforementioned Figure 2B Cursor 222 and cursor 221 are shown as examples.
[0094] S502: The client 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.
[0095] Specifically, after the client operating system detects 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, wherein the input focus can be displayed as a blinking cursor (for example, the aforementioned Figure 2B The cursor 222 is exemplarily shown in FIG. 1 ), the position information of the input focus may refer to the position information of the cursor (ie, the information of the display position of the cursor on the display screen).
[0096] Furthermore, after obtaining the position information of the current input focus, the client operating system may send a message 1 to the host operating system, wherein the message includes the indication information of entering the input state and the 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 aforementioned Figure 2B 222 as exemplarily shown in FIG.
[0097] 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 the embodiment of the present application, the position information of the input focus is used by the host operating system in subsequent steps to determine whether the input focus is blocked by the virtual keyboard. Moreover, usually, 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 the 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.
[0098] It can be understood that in an embodiment 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.
[0099] In some examples, the above-mentioned indication information of entering the input state may include style information of the mouse cursor used to indicate entering the input state (for example, the above-mentioned Figure 2B The “I”-shaped style information of the cursor 221 is shown as an example).
[0100] 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, and the embodiment of the present application is not limited to this.
[0101] It is understandable that a communication connection needs to be established between the host operating system and the client operating system, based on which the host operating system and the client operating system can communicate with each other (for example, the client operating system sends message 1 to the host operating system). The essence of the communication connection is that the communicating parties use a commonly recognized mechanism to transmit data. The embodiment of the present application does not impose any limitation on the way in which the host operating system and the client operating system establish a connection.
[0102] S503: The host operating system pulls up and displays a virtual keyboard of the host operating system based on the indication information of entering the input state.
[0103] Specifically, after receiving the indication information of entering the input state sent by the client operating system, the host operating system can pull up the virtual keyboard of the host operating system based on the indication information, and after pulling up the virtual keyboard, the virtual keyboard (such as the aforementioned Figure 2C exemplarily shown is a virtual keyboard 230).
[0104] It should be noted that the virtual keyboard may be displayed immediately after being pulled up in step S503, or may be displayed when subsequent steps S504 to S508 are executed, or may be displayed after step S508 is executed, and this embodiment of the present application does not limit this.
[0105] S504: The host operating system obtains height information of the virtual keyboard.
[0106] Specifically, after the host operating system receives the message 1 sent by the client operating system, the height information of the virtual keyboard can be obtained.
[0107] 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 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 a 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 a 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.
[0108] 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.
[0109] 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.
[0110] 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, execute the following step S506.
[0111] Specifically, after receiving the input focus position information 1 sent by the client 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 specifically include:
[0112] 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 (i.e., 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 (i.e., 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.
[0113] 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 position where the input focus is located (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 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 less 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.
[0114] 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.
[0115] It should be noted that there may be multiple 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 the present application.
[0116] S506: The host operating system generates a simulated touch sliding sequence 1.
[0117] 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, so that the automatic sliding of the screen display content can be achieved without the user manually performing the touch sliding operation, and the input focus is not blocked by the virtual keyboard through automatic sliding.
[0118] The host operating system generates a simulated touch sliding sequence, which can be specifically: the host operating system needs to determine the starting value (i.e., the height value of the touch start position) and the end value (i.e., the height value of the touch end 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, so that 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), and the simulated touch sliding sequence can be an arithmetic sequence, and its tolerance can be set based on certain rules, which is not limited in the embodiments of the present application.
[0119] For example, taking the generation of the above-mentioned 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 upper boundary of the screen, then the input focus may be blocked by the virtual keyboard when the height of the virtual keyboard is less than the height of the position where the input focus is located. Figure 5B Assume that the height of the virtual keyboard and the height of the input focus are 600 pixels and 800 pixels, respectively. Then, the starting value of the simulated touch sliding sequence 1 is 800 and the ending value is 600. Assume that the tolerance of the simulated touch sliding sequence is 10, then the simulated touch sliding sequence 1 can be [800 790 780 770 ... 630 620610 600].
[0120] In some examples, in order to ensure accurate sliding to the touch end position (or target position, i.e., the position where the input focus is not blocked by the virtual keyboard), more sliding update events may be added at the touch end position. Specifically, adding more sliding update events may be adding N (N is a positive integer) values after the end value of the simulated touch sliding sequence. The N values may be the same as the end value. For example, 5 values are added to the above-mentioned simulated touch sliding sequence 1, and then the simulated touch sliding sequence 1 may be [800 790 780 770…630 620 610 600 600 600 600 600600].
[0121] 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.
[0122] S507 : The host operating system sends a message 2 to the guest operating system, where the message includes a simulated touch sliding sequence 1 .
[0123] 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.
[0124] S508: The client operating system slides the content displayed in the interface 1 of the application 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.
[0125] For example, the interface 1 may be an interface corresponding to the 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, which may be the client operating system sliding the content displayed in the interface 1 of the application. Figure 2B The content edited by the user in the document 1 shown (for example, the content "1234567") and the cursor 222 are shown by the aforementioned Figure 2BSlide the entire unit to the position shown above Figure 2D Position shown.
[0126] The target position 1 may be a position where the input focus is not blocked by the virtual keyboard (for example, Figure 2D The position shown in the figure) can also be the position where the input focus is still a distance away from being blocked by the virtual keyboard (for example, in the above Figure 2D The position shown is moved upward by a certain distance), which is not limited in the embodiments of the present application.
[0127] The above scenario 1 introduces the specific process of determining whether the virtual keyboard blocks the input area when the application enters the input state, and solving the problem of the virtual keyboard blocking the input area. It is not limited to this. During the user input process, it is also possible to determine whether the virtual keyboard blocks the input area and solve the problem of the virtual keyboard blocking the input area. The following is a detailed introduction combined with the steps in the following scenario 2:
[0128] Scenario 2: Input scenario (step S509-step S517)
[0129] S509: The host operating system detects an input operation performed by the user through the virtual keyboard.
[0130] The input operation can be a user pressing a virtual key on the virtual keyboard (such as the aforementioned Figure 3A An operation of the virtual key “a”) is shown as an example (eg, a click operation).
[0131] S510: The host operating system obtains an input object generated by input operation 1.
[0132] The input object may be text, images, emoticons, etc. corresponding to a virtual key on the virtual keyboard after the user operates the virtual key. Figure 3A Taking the virtual key “a” as an example, the input object may be the character “a”.
[0133] In some examples, after obtaining the input object, the host operating system may also match candidate objects associated with the input object. Figure 3B The candidate texts such as “and”, “are”, etc. associated with the character “a” are shown as examples.
[0134] S511. The host operating system sends a message 3 to the client operating system, where the message includes an input object.
[0135] S512: The client operating system inserts and displays the input object starting from the position where the input focus is located.
[0136] Exemplarily, the client operating system inserts and displays the input object starting from the position where the input focus is located. Figure 3A The cursor position shown in the example is the starting point to insert the character "a", and in the above Figure 3C The character "a" is displayed in
[0137] In some examples, the electronic device 100 may display the options corresponding to the input object and the options corresponding to the candidate objects associated with the input object on the virtual keyboard (for example, see the aforementioned Figure 3B ), in this case, before executing the above step S511, it also includes: the host operating system detects the user's operation (such as a click operation) on the option corresponding to the above input object, that is, in response to the operation, the host operating system sends the above 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 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 starting from the position where the input focus is located.
[0138] S513: The client operating system sends a message 4 to the host operating system, where the message includes position information 2 of the input focus.
[0139] Specifically, after the client operating system inserts and displays the above input object with the target position 1 as the starting point, the position of the input focus will also change. 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, which includes the position information 2 of the input focus. The position information 2 of the input focus is the position of the input focus after the above input object is input (for example, the aforementioned Figure 3C The information of the cursor position shown in the example.
[0140] In an embodiment of the present application, during the entire input process of the user, the position of the input focus changes each time the client operating system inserts an input object. Therefore, the above step S513 is executed 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 described below). If so, continue to generate a new simulated touch sliding sequence (for example, step S515 described below), and send the simulated touch sliding sequence to the client operating system (for example, step S516 described below), so that the client operating system can continue to slide the content displayed in interface 1 of the application based on the simulated touch sliding sequence to prevent the input focus from being blocked by the virtual keyboard (for example, step S517 described below).
[0141] 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.
[0142] Among them, step S514 is similar to the aforementioned step S505, and its specific execution process can refer to the text description of the aforementioned step S505, which will not be repeated here.
[0143] 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 directly executed. If not saved, the virtual keyboard height information needs to be obtained again before executing step S514.
[0144] S515: The host operating system generates a simulated touch sliding sequence 2.
[0145] Among them, step S515 is similar to the aforementioned step S506, and its specific execution process can refer to the text description of the aforementioned step S506, which will not be repeated here.
[0146] S516: The host operating system sends a message 5 to the guest operating system, where the message includes a simulated touch sliding sequence 2.
[0147] Among them, step S516 is similar to the aforementioned step S507, and its specific execution process can refer to the text description of the aforementioned step S507, which will not be repeated here.
[0148] S517: The client operating system slides the content displayed in the interface 1 of the application 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.
[0149] For example, the target position 2 may be a position where the input focus is not blocked by the virtual keyboard (for example, Figure 4B / Figure 4C The position shown in the figure) can also be the position where the input focus is still a distance away from being blocked by the virtual keyboard (for example, in the above Figure 4B / Figure 4C The position shown is moved upward by a certain distance), which is not limited in the embodiments of the present application.
[0150] Scenario 3: Exit input state scenario (step S518-step S520)
[0151] S518: The client operating system detects that the application program of the client operating system exits the input state.
[0152] The exit input state may mean that the application is closed, or the application is not closed but no input focus is displayed (for example, no input focus is displayed). Figure 2B The cursor 222 is shown in the exemplary embodiment), or the application is not closed but displays an indicator for indicating the exit input state (for example, the aforementioned Figure 2A An arrow-style cursor 217 is shown as an example).
[0153] S519: The client operating system sends a message 6 to the host operating system, where the message includes instruction information for exiting the input state.
[0154] In some examples, the indication information of exiting the input state may include style information of a mouse cursor used to indicate the exiting input state (for example, the aforementioned Figure 2A exemplarily shown is the arrow style information of the cursor 217).
[0155] S520: The host operating system closes and cancels display of the virtual keyboard based on the instruction information for exiting the input state.
[0156] 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.
[0157] By implementing the above Figure 5AAccording to the method provided by the illustrated embodiment, when the virtual keyboard is pulled up, the electronic device 100 can determine whether the input focus is blocked by 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 continue to 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 user's input focus is not blocked during the user's input operation using the virtual keyboard, thereby improving the user experience.
[0158] It should be noted that the display method provided in the embodiment of the present application is not only applicable to the above Figure 5A The ecological integration cross-system application scenario shown in the illustrated embodiment can also be applied 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 integration 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, the above Figure 5A Among the steps in the illustrated embodiment, 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 executed by a single system.
[0159] The following introduces a software structure of an electronic device 100 provided in an embodiment of the present application.
[0160] Figure 6 The software structure of an electronic device 100 provided in an embodiment of the present application is exemplified.
[0161] like Figure 6 As shown, the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes 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 the present application.
[0162] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some examples, the host operating system can be divided into four layers, from top to bottom: application layer, application framework layer, system service layer, and kernel layer.
[0163] The application layer can include a series of application packages.
[0164] like Figure 6 As shown, the application package may include applications such as camera, gallery, calendar, call, WLAN, Bluetooth, agent, etc.
[0165] 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 for 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.
[0166] 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:
[0167] The interaction and input module can be used to interact with the input method framework module, receive messages sent by the client operating system, send user input information to the client operating system, etc. An invisible input box / edit box (EditText) can be set in the interaction and input module to receive user input. The text, pictures, emoticons and other information input by the user can be stored in the input box, and the information can be sent to the client operating system. For example, after receiving the indication information sent by the client operating system to enter the input state, the proxy application can focus the above input box to receive user input.
[0168] 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 a simulated touch sliding sequence and send the simulated touch sliding sequence to the client operating system; and so on.
[0169] 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 the present embodiment. The input method application can support multiple types of virtual keyboards, such as a nine-grid type pinyin keyboard, a full keyboard type pinyin keyboard, an English keyboard, a numeric keyboard, an emoticon keyboard, etc., which is not limited in the present embodiment.
[0170] like Figure 6 As shown, 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.
[0171] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0172] 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.
[0173] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0174] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0175] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0176] 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.
[0177] The system service layer may include multiple functional modules, such as: Surface Manager, Media Libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0178] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0179] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0180] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0181] A 2D graphics engine is a drawing engine for 2D drawings.
[0182] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, Bluetooth driver, and sensor driver.
[0183] The following introduces the software structure of another electronic device 100 provided in an embodiment of the present application.
[0184] Figure 7 The software structure of another electronic device 100 provided in an embodiment of the present application is exemplified.
[0185] like Figure 7 As shown, the software structure of the electronic device 100 may be the structure of a client operating system. Figure 7 It is merely 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.
[0186] The client operating system may include one or more application programs, such as office applications, chat applications, shopping applications, etc.
[0187] Among them, the office application is an application with the function of editing text, pictures, emoticons and other information, and can realize the most commonly used functions of office applications such as text, tables, presentations, PDF reading and so on.
[0188] 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.
[0189] In the embodiments of the present application, the display method provided in the embodiments 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 embodiments of the present application is also applicable to other applications, and the embodiments of the present application do not limit this.
[0190] The client operating system may also include one or more input method applications (not shown in the figure).
[0191] The display method provided in the embodiment of the present application can be executed when the client operating system needs to use the virtual keyboard on the host operating system side to implement the input function. Under certain conditions, the client operating system needs to use the virtual keyboard on the host operating system side to implement the input function. The above certain conditions may include but are not limited to the following two: one possibility is that the input method application of the client operating system cannot support the virtual keyboard; the other possibility is that the user independently sets the virtual keyboard on the host operating system side to implement the input function on the client operating system side.
[0192] 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.
[0193] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0194] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0195] 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 on 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.
[0196] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0197] The display framework module can be used to perform services related to the display function.
[0198] Based on the above Figure 6 and Figure 7 The software structure is introduced below. Figure 8 The electronic device 100 shown as an example is a possible collaboration mode between various modules when implementing the display method provided in the embodiment of the present application when a host operating system is installed and a client operating system is loaded on the host operating system.
[0199] 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.
[0200] Take the example of an office application of a client operating system using a virtual keyboard of a host operating system for a user to perform input operations. Figure 5A Similarly, it is divided into the following three scenarios:
[0201] Scenario 1: Entering the input state
[0202] The input method framework module of the client operating system can obtain whether the office application has entered the input state. If so, it obtains the position information of the input focus and sends 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.
[0203] Scenario 2: Input Scenario
[0204] 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 will change 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.
[0205] Scenario 3: Exit input state scenario
[0206] 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.
[0207] The structure of an electronic device 100 provided in an embodiment of the present application is introduced below.
[0208] Fig. 9 The structure of an electronic device 100 provided in an embodiment of the present application is exemplarily shown.
[0209] like Fig. 9As shown, 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.
[0210] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0211] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0212] 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.
[0213] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0214] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0215] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0216] 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 achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0217] 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 to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0218] The UART interface is a universal serial data bus for asynchronous communication. The 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 generally 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 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0219] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0220] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the 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.
[0221] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.
[0222] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.
[0223] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.
[0224] 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 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 number, battery health status (leakage, impedance), etc. 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.
[0225] 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.
[0226] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0227] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., 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.
[0228] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a 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.
[0229] 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 integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0230] 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 the network and other devices through wireless communication technology. The wireless communication technology 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).
[0231] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0232] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0233] 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 a user, information input by a user, a cursor, etc.
[0234] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0235] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, etc. of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0236] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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.
[0237] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0238] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0239] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0240] 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 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0241] 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 may 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 may 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.
[0242] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0243] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0244] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0245] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0246] Microphone 170C, also called "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 microphone 170C to input the sound signal into 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 sound source, realize directional recording function, etc.
[0247] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0248] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0249] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and 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 a 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.
[0250] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0251] 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.
[0252] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0253] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out 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.
[0254] It should be understood that Fig. 9 The electronic device 100 shown is only an example, and the electronic device 100 may have more Fig. 9 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Fig. 9 The various components shown in the EMBODIMENTS 2000 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.
[0255] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can 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. The available medium can 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 disk (SSD)), etc.
[0256] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0257] 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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
Cited By
Display method and electronic device
EP4664261A1
Display method and electronic device
WO2024193402A1
