Window management method and device, electronic equipment and readable storage medium

Through the window management service (WMS), multiple application windows with the same type are obtained and determined, which solves the problem of cumbersome and inefficient steps in the prior art to display multiple application windows, and realizes more efficient window management.

CN120216087APending Publication Date: 2025-06-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510376020.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

When displaying multiple application windows in an electronic device in a prior art, the steps are cumbersome and inefficient, and the user is required to repeatedly trigger the display of the application window.

Method used

The type of the current window is obtained through the window management service (WMS), and at least one second window is determined, with the same type as the first window, and a plurality of windows of the same type are directly displayed without repeated triggering by the user.

Benefits of technology

The process of displaying multiple application windows by electronic devices is simplified, efficiency is improved, and complexity of user operations is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216087A_ABST
    Figure CN120216087A_ABST
Patent Text Reader

Abstract

The invention discloses a window management method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. The method comprises the steps that under the condition that a first window is displayed and a window management instruction is received through a window management service WMS, the type of the first window is obtained through the WMS; at least one second window is determined through the WMS, and the type of the second window is the same as that of the first window; and displaying the first window and the at least one second window through the WMS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic technology, and particularly relates to a window management method, apparatus, electronic device, and readable storage medium. Background Art

[0002] With the development of electronic device technology, electronic devices such as smart phones have been integrated into users' lives. When users use applications (Applications, APPs) for work or entertainment, they often need to display multiple application windows simultaneously to manage the corresponding application information through multiple application windows. For example, multiple application windows are displayed in the form of small windows or split screens.

[0003] In the related art, when an electronic device displays an application window, if the user wants the electronic device to display multiple application windows simultaneously, the user needs to trigger the electronic device to open each application window in sequence. Thus, since the user needs to perform repetitive operations repeatedly, the process of the electronic device displaying multiple application windows is cumbersome and inefficient. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a window management method, apparatus, electronic device, and readable storage medium, which can improve the efficiency of an electronic device in displaying multiple application windows.

[0005] In a first aspect, the embodiments of this application provide a window management method, which includes: when a first window is displayed and a window management instruction is received through a window management service WMS, obtaining the type of the first window through the WMS; determining, through the WMS, at least one second window, where the type of the second window is the same as the type of the first window; and displaying, through the WMS, the first window and the at least one second window.

[0006] In a second aspect, the embodiments of this application provide a window management apparatus, which includes: an obtaining module, a determining module, and a displaying module; the obtaining module is configured to obtain the type of the first window through the WMS when a first window is displayed and a window management instruction is received through the window management service WMS; the determining module is configured to determine, through the WMS, at least one second window, where the type of the second window is the same as the type of the first window; and the displaying module is configured to display, through the WMS, the first window and the at least one second window.

[0007] In a third aspect, the embodiments of this application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, when the electronic device is displaying a first window and receiving a window management instruction through a window management service (WMS), the type of the first window is obtained through the above-mentioned WMS; through the above-mentioned WMS, at least one second window is determined, and the type of the second window is the same as that of the first window; through the above-mentioned WMS, the first window and the at least one second window are displayed. Through this method, when the electronic device receives a window management instruction, it can directly determine one or more second windows with the same type as the currently displayed first window through the WMS, so that multiple windows of the same type can be directly displayed, without the user repeatedly performing the display trigger operation of the application window, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a schematic diagram of the architecture of a possible operating system provided by an embodiment of the present application;

[0013] Figure 2 It is a flowchart of the window management method provided by an embodiment of the present application;

[0014] Figure 3 It is an interface diagram of the window management method provided by some embodiments of the present application;

[0015] Figure 4 It is a flowchart of the window management method provided by some embodiments of the present application;

[0016] Figure 5 It is an interface diagram of the window management method provided by some embodiments of the present application;

[0017] Figure 6 It is an interface diagram of the window management method provided by some embodiments of the present application;

[0018] Figure 7 Flow schematic diagram of the window management method provided for some embodiments of the present application;

[0019] Figure 8 Flow schematic diagram of the window management method provided for some embodiments of the present application;

[0020] Figure 9 Interface schematic diagram of the window management method provided for some embodiments of the present application;

[0021] Figure 10 Interface schematic diagram of the window management method provided for some embodiments of the present application;

[0022] Figure 11 Structural schematic diagram of the window management device provided for some embodiments of the present application;

[0023] Figure 12 Structural schematic diagram of the electronic device provided for some embodiments of the present application;

[0024] Figure 13 Hardware structural schematic diagram of the electronic device provided for some embodiments of the present application. Detailed implementation manners

[0025] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means an "or" relationship between the associated objects before and after.

[0027] The terms "at least one (item)", "at least one of", etc. in the description and claims of this application refer to any one, any two or more combinations of the objects it contains. For example, at least one (item) of a, b, and c can represent: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" means two or more, and its meaning is similar to that of "at least one (item)".

[0028] Next, in combination with the accompanying drawings, through specific embodiments and their application scenarios, the window management method, device, electronic device, and readable storage medium provided by the embodiments of this application will be described in detail.

[0029] The window management method provided by the embodiments of this application can be applied to scenarios where multiple application windows need to be displayed.

[0030] In a specific application scenario, the window management method provided by the embodiments of this application can be applied to the scenario where a user searches for the same item through multiple shopping APPs for price comparison.

[0031] Exemplarily, when the user is browsing the shopping page of product A in the "Shopping 1" APP on the mobile phone, if the user wants to compare the prices of product A in the "Shopping 2" APP and the "Shopping 3" APP, the user needs to click the split-screen control to trigger the mobile phone to perform a split-screen operation, so as to display at least two split-screens, and a shopping page window of product A in the "Shopping 1" APP is displayed in one of the split-screens. Then, the user can trigger the electronic device in other split-screens to display the shopping page windows of product A in other "Shopping 2" APPs respectively. In this way, since the user needs to perform repetitive operations repeatedly, the process of the electronic device displaying multiple application windows is cumbersome and inefficient.

[0032] In the window management method, device, electronic device, and readable storage medium provided by the embodiments of this application, when the electronic device receives a window management instruction, it can directly determine one or more second windows of the same type as the type of the first window currently displayed through the Window Manager Service (WMS) process, so that multiple windows of the same type can be directly displayed, without the user repeatedly performing the display trigger operation of the application window, thereby simplifying the process steps of the electronic device displaying multiple application windows and improving the efficiency of the electronic device displaying multiple application windows.

[0033] Next, taking the operating system as an example, an exemplary description will be given of the software environment to which the window management method provided by the embodiments of this application is applied.

[0034] Such as Figure 1As shown, it is a schematic diagram of the architecture of a possible operating system provided by an embodiment of the present application. In Figure 1 it, the architecture of the operating system includes at least five layers, namely: the application layer, the framework layer, the Surface rendering layer, the kernel layer, and the hardware layer.

[0035] Among them, the application layer includes various application programs (including system application programs and third-party application programs) in the operating system and the application windows corresponding to these application programs. For example, Figure 1 Application Window 1 to Application Window 5 in it; the framework layer includes WMS, Package Manager Service (PMS), Activity Manager Service (AMS), Input Manager Service (IMS), and at least one group of window groups. Each window group includes multiple windows of the same type. It should be noted that Figure 1 only one group of window groups is shown in it.

[0036] The functions of components and processes in each layer are described below.

[0037] Hardware layer: It contains physical hardware devices such as CPU, memory, display screen, touch screen, etc., provides computing, storage, and input / output capabilities, and is the basis for the operation of the entire system.

[0038] Kernel layer: The operating system kernel is responsible for the management and allocation of hardware resources, including process scheduling, memory management, file system, etc.

[0039] Surface rendering layer: Responsible for the rendering processing of the graphical interface, converting the drawing commands of the application layer and the framework layer into specific pixel data and outputting it to the display screen for display.

[0040] Framework layer: It contains system core services and management components, and is responsible for overall coordination and management of the operation of the application layer and window management, etc. Specifically, it includes the following key processes:

[0041] 1. WMS, responsible for managing the life cycle, layout, display, and hiding of all application windows, etc. It can group and manage windows according to the type of window, support quick search and display of windows of the same type, and handle the distribution of window focus events.

[0042] 2. PMS, responsible for managing the installation, uninstallation of application programs, and the reading and parsing of relevant information. When the system starts or an application is installed, PMS scans the configuration files of the application, extracts metadata and caches it in the system, and supports static and dynamic configuration of window information.

[0043] 3. AMS is responsible for managing the activity lifecycle and task scheduling of applications. When an application needs to be started or switched, AMS is responsible for launching the corresponding application process to ensure the normal operation of the foreground application.

[0044] 4. IMS is responsible for identifying and distributing user input events, such as touch operations, keyboard inputs, etc. IMS collaborates with WMS to distribute input events to the corresponding window groups and application processes to ensure that user operations are correctly responded to.

[0045] Application layer: It includes various application programs and their windows that directly interact with users, such as shopping applications, social applications, etc. Each application has its own application window for displaying content and receiving user input.

[0046] Through the above architecture, the operating system can manage the display and operation of multiple application windows.

[0047] The execution subject of the window management method provided in the embodiments of this application can be a window management device, which can be an electronic device, or a functional module or functional entity in the electronic device. Hereinafter, taking an electronic device executing the window management method as an example, the technical solutions provided in the embodiments of this application will be described.

[0048] Figure 2 For the flowchart of the window management method provided in the embodiments of this application, as Figure 2 shown, the window management method provided in the embodiments of this application may include the following steps 201 to step 203:

[0049] Step 201: When the electronic device is displaying a first window and receiving a window management instruction through the window management service WMS, obtain the type of the first window through WMS.

[0050] In some embodiments of this application, the above first window is a foreground window. That is, the first window is the window corresponding to the application process currently running on the electronic device and the window that the user is currently interacting with.

[0051] It can be understood that the above display may include the window being displayed on the visual interface facing the user in the form of full-screen display, split-screen display, or small-window display.

[0052] In some embodiments of this application, the above first window may be the application window of any application program in the electronic device. For example, the product details page window in the "Shopping" APP.

[0053] In some embodiments of this application, the above WMS is used to manage multiple windows.

[0054] In some embodiments of this application, the above window management instruction is used to instruct the electronic device to display at least one application window.

[0055] In some embodiments of the present application, when the electronic device detects that the first window in the application layer receives a window management instruction, the window management instruction is transmitted to the WMS in the framework layer. After receiving the window management instruction, the WMS will obtain the type of the first window.

[0056] In some embodiments of the present application, after the electronic device receives the first input from the user, in response to the first input, a window management instruction is generated to instruct the electronic device to display one or more windows.

[0057] Exemplarily, the above first input is used to trigger the electronic device to display one or more application windows.

[0058] Exemplarily, the above first input may include any one of the following: the user's click input, swipe input, press input, voice input, gesture input, or other feasible inputs, which are not limited in the embodiments of the present application.

[0059] Exemplarily, the above gesture input may include but is not limited to at least one of the following: click gesture, swipe gesture, drag gesture, pressure recognition gesture, air gesture input, long press gesture, area change gesture, double press gesture, double click gesture, specific gesture input, or other possible gesture inputs. The specific form of the gesture input may be determined according to actual needs and is not limited in some embodiments.

[0060] Exemplarily, the above click operation may be a click operation of any number of times. The above swipe operation may be a swipe operation in any direction, such as swiping up, swiping down, swiping left, or swiping right, etc., which are not limited in some embodiments.

[0061] For example, the above first input may be a click operation of the user clicking the "split screen display" button, or the above first input may be a two-finger pinch input of the user in the application interface, and the two-finger pinch input is used to trigger the electronic device to display the application window in the form of a "small window".

[0062] In some embodiments of the present application, the type of the above first window is used to represent the application type or function type to which the window belongs.

[0063] In some embodiments of the present application, the type of the above first window includes but is not limited to: social, navigation, shopping, gaming, office, etc.

[0064] For example, taking the shopping interface window in the "Shopping 1" APP as the first window as an example. As Figure 3As shown, in the desktop interface 31 of the electronic device, a shopping interface window 32 in the "Shopping 1" APP is displayed. If the user wants to compare the prices of the same products with other shopping applications, the user can trigger the electronic device to generate a window management instruction by clicking the "Split Screen Display" button on the screen or through a specific gesture operation (such as swiping up from the bottom of the screen).

[0065] Step 202: The electronic device determines at least one second window through the WMS.

[0066] Among them, the type of the second window is the same as the type of the first window.

[0067] In some embodiments of the present application, the type of each second window among the at least one second window is the same as the type of the first window.

[0068] In some embodiments of the present application, the second window may include at least one of the following: a background display window, an application window that is not currently running in the system cache.

[0069] Exemplarily, assuming that the first window is an application window of a shopping APP, then the second window is also an application window of a shopping APP, or an application window with shopping attributes in other applications.

[0070] Step 203: The electronic device displays the first window and at least one second window through the WMS.

[0071] In some embodiments of the present application, the electronic device can display the first window and at least one second window in a split screen form in the foreground through the WMS, or can also superimpose and display at least one second window on the first window in a small window form in the foreground, or can also display the first window and at least one second window through a new interface, in which the first window and at least one second window are displayed.

[0072] Exemplarily, as Figure 5 shown Figure 5 includes the window 51 of Application 1 (i.e., the first window) and the window 52 of Application 2 (i.e., at least one second window). The electronic device can display the window 51 and the window 52 through the WMS, where the type of the window 52 is the same as the type of the window 51.

[0073] Exemplarily, when a user browses products using shopping application A, the browsing interface window of application A (i.e., the first window) is in a display state. At this time, the user triggers a window management instruction (e.g., through a specific finger-swipe gesture) and wants to open another shopping application B for price comparison. After receiving this instruction, WMS obtains the type of the first window as "shopping". Then, WMS determines the application window of shopping application B as the second window, and then displays the application windows of application A and application B, such as in a split-screen display or a small-window display form, as Figure 6 shown Figure 6 in (A) of, where window 1 and window 2 are arranged in a small-window display form, Figure 6 and in (B) of, window 1 and window 2 are arranged in a split-screen display form.

[0074] In this way, when the electronic device receives a window management instruction, it can directly determine, through WMS, one or more second windows of the same type as the currently displayed first window, so that it can directly display multiple windows of the same type without the user repeatedly triggering the display operation of the application window, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows.

[0075] In some embodiments of the present application, the above step 202 may include the following steps 202a and 202b:

[0076] Step 202a: The electronic device determines, through WMS, a target window group containing the first window from at least one window group.

[0077] Wherein, the windows in each window group have the same type.

[0078] In some embodiments of the present application, all the windows in each window group among the above at least one window group have the same type. That is, each window group corresponds to a type of window.

[0079] In some embodiments of the present application, the above window group can be considered as a set of windows of the same type that allows WMS to perform unified group management.

[0080] It can be understood that the operating system of the electronic device can perform unified window management on windows of the same type. Generally, WMS in the system framework layer performs unified group management (i.e., window group) on windows of the same type.

[0081] In some embodiments of the present application, the above window group may include windows of the same type that are running in the background.

[0082] In some embodiments of the present application, the above window group may be a set of windows of the same type divided by type, stored in the form of a list, and containing information such as the visibility, size, position, layer, and focus of the windows.

[0083] In some embodiments of the present application, the above target window group is the window group among the above at least one window group that contains the first window.

[0084] Step 202b: The electronic device determines at least one second window through the WMS based on the target window group.

[0085] In some embodiments of the present application, the above at least one second window includes at least one of the following: one or more windows in the target window group, and one or more windows in the system cache.

[0086] For example, as Figure 7 shown, taking window group 1 and window group 2 as examples, the WMS can manage window group 1 and window group 2. Among them, window group 1 contains windows 1, 2, and 3 of the same type, and window group 2 contains windows 4, 5, and 6 of the same type.

[0087] In this way, when the electronic device receives a window management instruction, it can directly determine one or more second windows of the same type as the first window currently displayed through the WMS, so that there is no need for the user to repeatedly perform the display trigger operation of the application window, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows.

[0088] In some embodiments of the present application, the above step 202b can be implemented through the following step 202b1 or step 202b2.

[0089] Step 202b1: When the target window group only contains the first window, the electronic device determines at least one second window of the same type as the first window from all the windows in the system cache through the WMS.

[0090] Step 202b2: When the target window group contains at least two windows, the electronic device determines at least one window in the target window group as the second window through the WMS.

[0091] In some embodiments of the present application, the above system cache may include an area for temporarily storing window data, and is used to save the window information of all windows whose cache resources have not been released yet.

[0092] In some embodiments of the present application, when the target window group only contains the first window, it indicates that no other windows of the same type as the first window are cached in the window group of the WMS. At this time, the WMS can traverse the data of all application programs cached in the system to determine at least one application window of the same type as the first window, that is, the above-mentioned second window.

[0093] In some embodiments of the present application, when the target window group contains at least two windows and contains other windows except the first window, it indicates that the target window group in the WMS caches the window that the user wants to display, that is, the window of the same type as the first window. At this time, the WMS can directly determine at least one second window from the target window group.

[0094] Exemplarily, assume that window 1 (belonging to a certain type of window) is displayed. If the user needs to open window 2 of the same type (not referring to a specific window, but generally referring to other windows of the same type as window 1). If window 2 has been opened by the user before, it indicates that window 2 belongs to the background process window, and then it is cached and maintained in the window management group of the WMS. At this time, the window management instruction can be triggered by the user input, so that after the WMS receives the window management instruction, it preferentially determines window 2 of the same type as window 1 (that is, the second window) from this window group. Or, if window 2 has not been opened by the user before, it indicates that window 2 is not cached and maintained in the window management group of the WMS. At this time, the window management instruction can be triggered by the user input, so that after the WMS receives the window management instruction, it can traverse the system cache to find window 2 of the same type as window 1 (that is, the second window).

[0095] In this way, the electronic device can directly determine one or more second windows of the same type as the currently displayed first window from the system cache or the target window group through the WMS, so that multiple windows of the same type can be directly displayed, without the user repeatedly triggering the display operation of the application window, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows.

[0096] In some embodiments of the present application, before the above step 201, the window management method provided by the embodiments of the present application may further include the following steps 204 and 206:

[0097] Step 204: The electronic device reads the type identifier of the first window from the first metadata in the first configuration file of the first application program through the PMS.

[0098] Wherein, the above first metadata is used to describe the first window.

[0099] Step 205: The electronic device sends the type identifier of the first window to the WMS through the PMS.

[0100] Step 206: The electronic device obtains the type of the first window based on the type identifier through the WMS.

[0101] In some embodiments of the present application, the above-mentioned PMS is responsible for managing the installation, uninstallation of application programs, and the reading and parsing of relevant information.

[0102] In some embodiments of the present application, the above-mentioned first application program may include any application program installed on the electronic device, such as a shopping application, a social application, etc.

[0103] Exemplarily, after the electronic device installs an application program, the PMS will parse the configuration file of the application, extract relevant information and cache it in the system.

[0104] In some embodiments of the present application, the above-mentioned first configuration file is an information description file of the first application program.

[0105] In some embodiments of the present application, the above-mentioned first configuration file includes basic information of the application program, component declarations, metadata, and other contents.

[0106] In some embodiments of the present application, the above-mentioned first metadata can be used to define additional information of the application program or component.

[0107] Exemplarily, the type identifier of the window can be carried by adding custom metadata to the meta-data (i.e., the first metadata) in the AndroidManifest.xml file.

[0108] Exemplarily, taking the first configuration file as the AndroidManifest.xml file as an example, the type identifier of the window can be carried by adding a new field in the AndroidManifest.xml file and using the metadata contained in the new field.

[0109] Exemplarily, when the system starts up, the PMS traverses the applications installed on the electronic device, parses the metadata in the configuration files of these applications, and caches it. When the type identifier of the first window needs to be read, the PMS extracts the first metadata from the first configuration file of the first application, reads the type of the first window from the type field included in the first metadata, and sends it to the WMS. It should be noted that the type identifier of the window can be stored in the first configuration file in the form of static configuration, or can be dynamically written through the API interface provided by the WMS. Generally, the type identifier of the first window can be statically configured when the system starts up or when the application is installed, or the type identifier of the first window can be dynamically written into the window process through the API interface when the window starts up.

[0110] In some embodiments of the present application, the type of the window can be determined based on the application corresponding to the window and the metadata of the application corresponding to the window.

[0111] Exemplarily, if the application of the first window has a social function and its metadata contains the "social" identifier, it indicates that the type of this window is a social window.

[0112] Exemplarily, if the application of the first window has a game function and its metadata contains the "game" identifier, it indicates that the type of this window is a game window.

[0113] Exemplarily, if the application of the first window has an office function and its metadata contains the "office" identifier, it indicates that the type of this window is an office window.

[0114] Exemplarily, if the application of the first window has a shopping function and its metadata contains the "shopping" identifier, it indicates that the type of this window is a shopping window.

[0115] In some embodiments of the present application, in order to improve the convenience of the user to operate the application windows of the same type of application, by adding the type of the window (such as adding a type field) in the WMS of the system framework layer, the above content attribute is related to the characteristics of the application. The type identifier of the window can be written into this field by the developer of the application. If the application developer does not write it, the system can directly analyze it according to the characteristics of the application. Specifically, since the window content attribute is associated with the application content attribute, the application characteristics are such as social, navigation, game, note, etc. Therefore, the electronic device can determine the window content attribute of the window by identifying the application content attribute of the application corresponding to the window, and further determine the type of this window.

[0116] For example, for a social application, the system can identify its social characteristics and set the type field of the application window corresponding to the social application to "social". The system can determine the content attributes corresponding to its window by analyzing the metadata of the social application, the user interaction pattern, the functional modules of the application, etc. It can also maintain an application content library through the system itself, such as the type tags marked for the application in the application store, and assign the corresponding type to the window of the application after analysis. After that, the system can conveniently manage and operate windows of the same type, such as Figure 4 As shown, the WMS assigns the corresponding types to Window 1, Window 2, and Window 3.

[0117] In this way, the electronic device can obtain the type of the first window through the PMS and send it to the WMS, so that the WMS can directly determine one or more second windows of the same type as the currently displayed first window, and directly display multiple windows of the same type without the user repeatedly triggering the display operation of the application window, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows.

[0118] In some embodiments of the present application, after step 203, the window management method provided by the embodiments of the present application may further include the following steps 207 to 210:

[0119] Step 207: The electronic device receives an input event from the user for a displayed window.

[0120] Step 208: The electronic device sends the input event to the WMS through the IMS.

[0121] Step 209: The electronic device distributes the input event to the application processes corresponding to all or part of the displayed windows except the first window through the WMS.

[0122] Step 210: The electronic device executes the operation corresponding to the input event through the application processes corresponding to the first window and each of all or part of the windows.

[0123] In some embodiments of the present application, the above IMS can be used to identify and distribute user input events and pass these events to the corresponding services or processes.

[0124] In some embodiments of the present application, after the electronic device receives the above input event through the WMS, it will obtain the event information of the input event. In this way, the process of the electronic device distributing the input event to the application processes corresponding to all or part of the other displayed windows through the WMS will actually distribute the event information of the input event to the application processes corresponding to all or part of the other displayed windows.

[0125] In some embodiments of the present application, the event information of the above input event includes at least one of the following: input position, input duration, input trajectory, input type.

[0126] In some embodiments of the present application, the above input event may be an input event of a user on a displayed window.

[0127] Exemplarily, the input of the user on a displayed window may include any one of the following: the user's click input, swipe input, press input, voice input, gesture input, or other feasible inputs, which are not limited in the embodiments of the present application.

[0128] For example, the input of the user on a displayed window may be: the user's click input on a control in a displayed window.

[0129] For example, the input of the user on a displayed window may be: the input of the user entering information in an input box in a displayed window. For example, entering the name of a commodity in the search box of a shopping APP.

[0130] Illustratively, in combination with Figure 5 , the user can enter the name of a commodity in the search box of the shopping interface window 51 of the "Shopping 1" APP. After the input event of entering the name of the commodity is recognized by the IMS and sent to the WMS, the WMS can distribute this event to the application process corresponding to the shopping interface window 52 of the "Shopping 2" APP. After receiving this input event, the application process will call the business logic process to perform a commodity search. After the business logic process completes the search, it updates the data and refreshes the interface through the user interface process to display the search results. At the same time, after the application process corresponding to the shopping interface window 51 of the "Shopping 1" APP receives this input event, it will call the business logic process to perform a commodity search. After the business logic process completes the search, it updates the data and refreshes the interface through the user interface process to display the search results.

[0131] It should be noted that if there are multiple second windows and the input event triggers the same operation for each second window, the same or similar controls in the application processes corresponding to the multiple second windows will all respond to the same operation.

[0132] The following will, in combination with Figure 8 , give an exemplary illustration of the event distribution process provided by the embodiments of the present application.

[0133] Exemplarily, as Figure 8As shown, Window 1, Window 2, and Window 3 have the same type, such as the shopping type. When the user needs to input the same product information for search and comparison, for windows of the same type, IMS and WMS can work together to manage content operations. If the user clicks a button (such as the search button) in Window 1, the system captures the user's click ACTION_DOWN event (i.e., Figure 8 the input event for Window 1 in), and then distributes this event to Window 2 and Window 3, and then distributes it to the controls on the APP View under the window hierarchy through the focus distribution process itself. As Figure 8 shown, the current user has opened two other application windows of the same type as Window 1 (i.e., Figure 8 Window 2 and Window 3 in), and the user does not need to input information in Window 2 and Window 3 at this time. The system can optimize management from the perspective of focus event distribution. Event distribution includes two parts: the focus of the user's finger touch and the focus of the input information of the input method. When the event is distributed to Window 2, WMS traverses other windows of the same type within the target window group, and then determines whether other types of windows are also in the foreground, that is, whether they also have window focus. If so, the event distribution condition is met, and the event is then distributed to other opened windows, such as Window 3, through WMS. In this way, the controls within windows of the same type will respond to the same operations, and the input information events can also be distributed according to the same principle, and will ultimately be distributed to the corresponding input box controls.

[0134] For example, as Figure 9 shown, Figure 9 in (A) of, it includes Interface 91. In Interface 91, there are three windows, 92, 93, and 94, which are Window 1 - Window 3 respectively. These three windows respectively include three search boxes, 95, 96, and 97. The user can input the information to be searched, such as "product", in the search box 95 of the displayed Window 1. And the types of the displayed Window 2 and Window 3 on the electronic device are the same as that of Window 1. At this time, the user does not need to input the same information in Window 2 and Window 3. This input event will be distributed to Window 2 and Window 3. As Figure 9 shown in (B) of, the same search information "product" appears in the search box 96 of Window 2 and the search box 97 of Window 3.

[0135] In this way, the electronic device can obtain the input event of a displayed window through IMS and send it to WMS. Through WMS, the input event is distributed to the application processes corresponding to each displayed window, so that the input event can be distributed to windows of the same type, without the user having to perform manual operations repeatedly, thereby simplifying the operation steps when the electronic device processes the input events of multiple application windows and improving the efficiency of the electronic device in managing multiple application windows.

[0136] In some embodiments of the present application, step 209 may include the following steps 209a to 209c:

[0137] Step 209a: The electronic device receives an input event through the WMS and obtains the event information of the input event.

[0138] Step 209b: The electronic device determines a window distribution sequence through the WMS based on the event information of the input event and the content attributes of the content of each displayed window.

[0139] Step 209c: The electronic device distributes the input event to the application processes corresponding to all or part of the windows in sequence according to the window distribution sequence through the WMS.

[0140] Among them, there is an association relationship between the content attributes of the content in the adjacent distribution windows in the above window distribution sequence.

[0141] In some embodiments of the present application, the above window distribution sequence includes at least one window.

[0142] In some embodiments of the present application, there is an association relationship between the content attributes of the content in the adjacent distribution windows in the above window distribution sequence.

[0143] In some embodiments of the present application, the above association relationship may include a system preset or user-defined mapping relationship.

[0144] In some embodiments of the present application, the content attributes of the content in the above window include at least one of the following: the type of the content in the window, the function type of the function corresponding to the content in the window, and the application type of the application to which the window belongs.

[0145] For example, as Figure 10 shown, Figure 10 (A) in includes interface 10a, in which there are three windows 10b, 10c, and 10d, namely window 1, window 2, and window 3. Among them, window 1 is a note application window, and the content attribute of its content is "note", window 2 is a calculator application window, and the content attribute of its content is "calculator", window 3 is a social application window, and the content attribute of its content is "sharing". The user can enter note content in the text box 10e in window 1. After the user enters note content in window 1, the electronic device receives the input event of the user entering the note through the WMS and obtains the event information of the input event (for example, obtaining that the event type is text input). Then, the electronic device, through the WMS, based on the event information and the system preset "note" - "calculator" - "sharing" event distribution order of each displayed window, distributes the input event to other displayed windows according to the distribution order, such as Figure 10As shown in (B) of , the electronic device distributes events to Window 2 in the distribution order. A calculator interface 10f appears in Window 2 for calculating data (such as a bill) that appears in the note. Then, the event is distributed to Window 3, and a sharing button 10g appears in Window 3 for sharing the content of the note. In this way, the system can automatically distribute the focus using the preset association relationship without the user manually switching. Finally, after each relevant application process receives the input event, it will perform the corresponding operation.

[0146] In this way, the electronic device can distribute the input event to other foreground windows with an association relationship according to the distribution order, so that the foreground windows can execute the input event in the distribution order without the user manually inputting to multiple foreground windows in sequence, thereby simplifying the operation steps when the electronic device processes the input events of multiple application windows and improving the efficiency of the electronic device in managing multiple application windows.

[0147] In some embodiments of the present application, step 203 may include the following steps 211:

[0148] Step 211: The electronic device displays the first window and at least one second window through the WMS according to the display parameters of the first window.

[0149] Among them, the above display parameters include at least one of the following: window background image, window size.

[0150] In some embodiments of the present application, the above window background image may include a solid-color background, a gradient background, or a background image customized by the application for the window.

[0151] Exemplarily, the above window background image may be a blue gradient background.

[0152] In some embodiments of the present application, the above window size may include parameters such as width, height, and the display size ratio of the window on the screen.

[0153] Exemplarily, when in split-screen display, the sizes of the two windows may each occupy half of the screen height, that is, the height of each window is 50% of the total screen height, and the width is the same as the screen width; when in small-window display, the size of the window may be 30% of the screen width and 40% of the screen height, and the position coordinates can be adjusted according to the user's dragging operation.

[0154] In this way, the electronic device can display the first window and at least one second window according to the display parameters of the first window, so that the display styles of the first window and at least one second window can be uniformly set, including the window background image and window size, etc., making the display styles of multiple windows consistent, and thus improving the display effect when the electronic device displays multiple windows.

[0155] The following will describe in detail the window management method provided by the embodiments of the present application in conjunction with the system architecture. Figure 1

[0156] Exemplarily, referring to Figure 1 the system architecture shown, when the electronic device detects that the window of Application 1 in the application layer receives a window management instruction, the instruction is transmitted to the WMS in the framework layer. The WMS immediately obtains the type of the window of Application 1 and searches for other windows with the same type in the window group in the framework layer. At the same time, the WMS can request the PMS to read metadata from the configuration file of the target application to obtain its type identifier. If the process of the target window is not running in the foreground, the AMS is responsible for starting the process of that application. The IMS is responsible for identifying the input events in the window of Application 1 and distributing these events to the WMS, and the WMS then distributes the events to the application process corresponding to the target window according to the division of the window group. After the WMS determines the window to be displayed and its layout, it sends a rendering command to the Surface rendering layer to be converted into pixel data. The kernel layer is responsible for managing the allocation and scheduling of hardware resources to ensure that each process and rendering task can be executed smoothly. Finally, the rendered pixel data is displayed on the display screen of the hardware layer to complete the simultaneous display of multiple application windows.

[0157] For example, in conjunction with Figure 5 , when the electronic device detects that the window 51 of the "Shopping 1" APP in the application layer receives a window management instruction, the instruction is transmitted to the WMS in the framework layer. The WMS immediately obtains that the type of the window 51 of the "Shopping 1" APP is "shopping" and searches for other windows with the same type in the window group in the framework layer. At the same time, the WMS can request the PMS to read metadata from the configuration file of the "Shopping 2" APP to obtain its type identifier. If the process of the window of the "Shopping 2" APP is not running in the foreground, the AMS is responsible for starting the process of the window 52 of the "Shopping 2" APP. The IMS is responsible for identifying the input events in the window 51 of the "Shopping 1" APP and distributing these events to the WMS, and the WMS then distributes the events to the process corresponding to the window 52 of the "Shopping 2" APP according to the division of the window group. After the WMS determines the window to be displayed and its layout, it sends a rendering command to the Surface rendering layer to be converted into pixel data. The kernel layer is responsible for managing the allocation and scheduling of hardware resources to ensure that each process and rendering task can be executed smoothly. Finally, the rendered pixel data is displayed on the display screen of the hardware layer to complete the simultaneous display of the window 51 of the "Shopping 1" APP and the window 52 of the "Shopping 2" APP.

[0158] ​Each of the above method embodiments, or various possible implementation manners in each method embodiment, can be executed independently, or, on the premise of no contradiction, can also be executed in combination with each other, which can be specifically determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0159] For the window management method provided by the embodiments of the present application, the execution subject can be a window management device. In the embodiments of the present application, taking the window management device executing the window management method as an example, the window management device provided by the embodiments of the present application is described.

[0160] Figure 11 It is a schematic structural diagram of the window management device provided by the embodiments of the present application, as Figure 11 shown, the window management device 1100 may include an acquisition module 1101, a determination module 1102, and a display module 1103, where: the acquisition module, the determination module, and the display module; the above acquisition module is configured to, when a first window is displayed and a window management instruction is received through the window management service WMS, acquire the type of the first window through the WMS; the determination module is configured to determine, through the WMS, at least one second window, and the type of the second window is the same as the type of the first window; the display module is configured to display, through the WMS, the first window and the at least one second window.

[0161] In some embodiments of the present application, the determination module is specifically configured to: determine, through the WMS, a target window group containing the first window from at least one window group, and the types of windows in each window group are the same; determine, through the WMS, the at least one second window based on the target window group.

[0162] In some embodiments of the present application, the determination module is specifically configured to: when only the first window is included in the target window group, determine, through the WMS, at least one second window having the same type as the first window from all the windows cached in the system; or, when at least two windows are included in the target window group, determine, through the WMS, at least one window in the target window group as the second window.

[0163] In some embodiments of the present application, the above-mentioned device further includes: a sending module; the above-mentioned obtaining module is further configured to, before obtaining the type of the first window through the above-mentioned WMS, read the type identifier of the first window from the first metadata in the first configuration file corresponding to the first application through the Package Management Service (PMS), where the first metadata is used to describe the first window; the sending module is configured to send the type identifier of the first window to the above-mentioned WMS through the above-mentioned PMS; the obtaining module is specifically configured to obtain the type of the first window through the above-mentioned WMS based on the type identifier.

[0164] In some embodiments of the present application, the above-mentioned device further includes: a receiving module and a processing module; the receiving module is configured to, after the display module displays the first window and the at least one second window through the above-mentioned WMS, receive an input event of a user for one of the displayed windows; the sending module is further configured to send the input event to the above-mentioned WMS through the Input Management Service (IMS); the sending module distributes the input event to the application processes corresponding to all or part of the displayed windows except the first window through the above-mentioned WMS; the processing module is configured to execute the operations corresponding to the input event through the application processes corresponding to each of the first window and all or part of the windows.

[0165] In some embodiments of the present application, the above-mentioned receiving module is further configured to receive the input event through the above-mentioned WMS; the obtaining module is further configured to obtain the event information of the input event received by the receiving module; the determining module is further configured to determine a window distribution sequence through the above-mentioned WMS based on the event information of the input event and the content attributes of the content of each of the displayed windows; the sending module is specifically configured to distribute the input event to the application processes corresponding to all or part of the windows in sequence according to the window distribution sequence determined by the determining module through the above-mentioned WMS; wherein, there is an association relationship between the content attributes of the content in the adjacent distributed windows in the window distribution sequence.

[0166] In some embodiments of the present application, the above-mentioned display module is specifically configured to display the first window and the at least one second window through the above-mentioned WMS according to the display parameters of the first window; wherein, the display parameters include at least one of the following: window background image, window size.

[0167] The window management device provided in the embodiments of the present application, when displaying a first window and receiving a window management instruction through a window management service (WMS), obtains the type of the first window through the above WMS; determines at least one second window through the above WMS, where the type of the second window is the same as the type of the first window; and displays the first window and the at least one second window through the above WMS. Through this method, when the electronic device receives a window management instruction, it can directly determine, through the WMS, one or more second windows of the same type as the currently displayed first window, so that multiple windows of the same type can be directly displayed, without the user repeatedly performing the operation of triggering the display of application windows, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows.

[0168] The window management device in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than terminals. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0169] The window management device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0170] The window management device provided in the embodiments of the present application can implement each process implemented by the above window management method embodiment. To avoid repetition, it will not be elaborated here.

[0171] Optionally, as Figure 12As shown in the figure, an embodiment of the present application further provides an electronic device 1200, which includes a processor 1201 and a memory 1202. A program or instruction that can run on the processor 1201 is stored on the memory 1202. When the program or instruction is executed by the processor 1201, each step of the above window management method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

[0172] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0173] Figure 13 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

[0174] The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110 and other components.

[0175] Those skilled in the art can understand that the electronic device 100 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 110 through a power management system, so as to manage functions such as charging, discharging, and power consumption management through the power management system. Figure 13 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be elaborated here.

[0176] Among them, the above-mentioned processor 110 is used to obtain the type of the first window through the above-mentioned WMS when the first window is displayed and a window management instruction is received through the window management service WMS; the above-mentioned processor 110 is used to determine at least one second window through the above-mentioned WMS, and the type of the second window is the same as the type of the first window; the above-mentioned display unit 106 is used to display the first window and the at least one second window through the above-mentioned WMS.

[0177] In some embodiments of the present application, the above-mentioned processor 110 is specifically used to: determine a target window group containing the first window from at least one window group through the above-mentioned WMS, and the types of windows in each window group are the same; determine the at least one second window based on the target window group through the above-mentioned WMS.

[0178] In some embodiments of the present application, the above-mentioned processor 110 is specifically configured to: when only the above-mentioned first window is included in the above-mentioned target window group, determine, through the above-mentioned WMS, at least one second window of the same type as the above-mentioned first window from all the windows cached in the system; or, when at least two windows are included in the above-mentioned target window group, determine, through the above-mentioned WMS, at least one window in the above-mentioned target window group as the above-mentioned second window.

[0179] In some embodiments of the present application, the above-mentioned processor 110 is further configured to, before obtaining the type of the above-mentioned first window through the above-mentioned WMS, read, through the package management service PMS, the type identifier of the above-mentioned first window from the first metadata in the first configuration file corresponding to the above-mentioned first application, where the first metadata is used to describe the above-mentioned first window; the above-mentioned processor 110 is configured to send the type identifier of the above-mentioned first window to the above-mentioned WMS through the above-mentioned PMS; the above-mentioned processor 110 is specifically configured to obtain the type of the above-mentioned first window through the above-mentioned WMS based on the type identifier.

[0180] In some embodiments of the present application, the above-mentioned device further includes: a radio frequency 101; the above-mentioned radio frequency 101 is configured to receive an input event of a user for a displayed window after the above-mentioned display unit 106 displays the above-mentioned first window and the above-mentioned at least one second window through the above-mentioned WMS; the above-mentioned processor 110 is further configured to send the above-mentioned input event to the above-mentioned WMS through the input management service IMS; the above-mentioned processor 110 distributes the above-mentioned input event to the application processes corresponding to all or part of the displayed windows except the above-mentioned first window through the above-mentioned WMS; the above-mentioned processor 110 is configured to execute the operations corresponding to the above-mentioned input event through the above-mentioned first window and the application processes corresponding to each of the above-mentioned all or part of the windows.

[0181] In some embodiments of the present application, the above-mentioned radio frequency 101 is further configured to receive the above-mentioned input event through the above-mentioned WMS; the above-mentioned processor 110 is further configured to obtain the event information of the above-mentioned input event received by the above-mentioned radio frequency 101; the above-mentioned processor 110 is further configured to determine a window distribution sequence through the above-mentioned WMS based on the event information of the above-mentioned input event and the content attributes of the content of each of the above-mentioned displayed windows; the above-mentioned processor 110 is specifically configured to distribute the above-mentioned input event to the application processes corresponding to the above-mentioned all or part of the windows in sequence according to the window distribution sequence determined by the above-mentioned processor 110 through the above-mentioned WMS; where the content attributes of the content in the adjacent distributed windows in the above-mentioned window distribution sequence have an association relationship.

[0182] In some embodiments of the present application, the above display unit 106 is specifically configured to display the above first window and the above at least one second window through the above WMS according to the display parameters of the above first window; wherein, the above display parameters include at least one of the following: window background image, window size.

[0183] The window management device provided by the embodiments of the present application, when the window management device displays the first window and receives a window management instruction through the window management service WMS, obtains the type of the above first window through the above WMS; determines at least one second window through the above WMS, and the type of the above second window is the same as the type of the above first window; and displays the above first window and the above at least one second window through the above WMS. Through this method, when the electronic device receives a window management instruction, it can directly determine one or more second windows with the same type as the currently displayed first window through the WMS, so that multiple windows of the same type can be directly displayed, without the user repeatedly performing the display trigger operation of the application window, thereby simplifying the process steps of the electronic device for displaying multiple application windows and improving the efficiency of the electronic device for displaying multiple application windows.

[0184] It should be understood that in the embodiments of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0185] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 can include volatile memory or non-volatile memory, or the memory 109 can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 109 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

[0186] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 110 either.

[0187] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above embodiment of the window management method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0188] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0189] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above embodiment of the window management method and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0190] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0191] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above embodiment of the window management method and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0192] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0193] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0194] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A window management method, characterized in that: The method comprises: When the first window is displayed and a window management instruction is received through a window management service WMS, the type of the first window is acquired through the WMS; Determining, by the WMS, at least one second window, where the type of the second window is the same as the type of the first window; The first window and the at least one second window are displayed through the WMS.

2. The method according to claim 1, characterized in that The determining, by the WMS, at least one second window comprises: Determining, by the WMS, a target window group including the first window from at least one window group, wherein the windows in each window group are of the same type; The at least one second window is determined by the WMS based on the target window group.

3. The method according to claim 2, characterized in that The determining, by the WMS, the at least one second window based on the target window group includes: In a case where the target window group includes only the first window, determining, by the WMS, at least one second window of the same type as the first window from all windows cached in the system; or In a case where the target window group includes at least two windows, at least one window in the target window group is determined as the second window through the WMS.

4. The method according to claim 1, characterized in that: Before obtaining the type of the first window through the WMS, the method further includes: reading, through a package management service PMS, a type identifier of the first window from first metadata in a first configuration file of the first application, where the first metadata is used to describe the first window; Sending, by the PMS, a type identifier of the first window to the WMS; The acquiring the type of the first window through the WMS includes: The type of the first window is acquired based on the type identifier through the WMS.

5. The method according to claim 1, characterized in that After displaying the first window and the at least one second window by the WMS, the method further includes: Receive user input events for a displayed window; Sending the input event to the WMS via an input management service IMS; Distributing the input event to application processes corresponding to all or part of the displayed windows except the first window through the WMS; The operation corresponding to the input event is performed through the application process corresponding to the first window and each window of the whole or part of the windows.

6. The method according to claim 5, characterized in that Before distributing the input event to application processes corresponding to all or part of the displayed windows other than the first window through the WMS, the method further includes: Receiving the input event and acquiring event information of the input event through the WMS; Determining, by the WMS, a window distribution sequence based on the event information of the input event and the content attribute of the content of each displayed window; The step of distributing the input event to application processes corresponding to all or part of other displayed windows through the WMS includes: Distributing the input events to application processes corresponding to all or part of the windows in sequence according to the window distribution sequence through the WMS; The content attributes of the contents in adjacent distribution windows in the window distribution sequence are associated with each other.

7. The method according to any one of claims 1 to 6, characterized in that The displaying, by means of the WMS, the first window and the at least one second window comprises: displaying the first window and the at least one second window according to the display parameters of the first window by the WMS; The display parameters include at least one of the following: window background image and window size.

8. A window management device, characterized in that: The device comprises: an acquisition module, a determination module and a display module; The acquisition module is used to acquire the type of the first window through the window management service WMS when the first window is displayed and a window management instruction is received through the WMS; The determining module is used to determine at least one second window through the WMS, where the type of the second window is the same as the type of the first window; The display module is used to display the first window and the at least one second window through the WMS.

9. The window management device according to claim 8, characterized in that: The determination module is specifically used for: Determining, by the WMS, a target window group including the first window from at least one window group, wherein the windows in each window group are of the same type; The at least one second window is determined by the WMS based on the target window group.

10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the window management method according to any one of claims 1 to 7 are implemented.

11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the window management method according to any one of claims 1 to 7 are implemented.