Method and device for displaying information, medium and program product
By setting adjustable display priority for each layer in the vehicle computer system interface, the problem of only one layer can be configured for each operating system in the prior art is solved, and the information of multiple target applications is displayed simultaneously in one screen, improving the user experience.
Patent Information
- Application Number
- CN202410139735.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-08-01
AI Technical Summary
The existing car computer system can only configure one layer for each operating system, which limits the types and number of applications that the car computer system can provide, resulting in users being unable to use multiple applications at the same time, and the user experience is poor.
Indicate multiple applications for selection and their layers in the interface, and set adjustable display priority for each layer. By establishing a correspondence between the application and the layer, the information of multiple target applications can be displayed separately in multiple layers, thereby achieving the flexibility of presenting the information of multiple target applications installed on different operating systems in one screen.
It realizes the information of multiple target applications simultaneously in one screen, provides a good display hierarchy and rich application services, and improves user experience.
Smart Images

Figure CN120407053A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, media, and program products for displaying information. Background Art
[0002] Currently, a vehicle-mounted system can be installed in a vehicle. With the help of a screen and other hardware devices and software components, the vehicle-mounted system can provide services for multiple application programs to users. For example, the vehicle-mounted system can provide a navigation application program to help users determine a reasonable driving route in real time during the process of driving a vehicle, and can also provide audio-visual application programs so that users can watch movies, enjoy songs, etc. and enjoy various audio-visual services during the process of driving a vehicle.
[0003] The application programs that the vehicle-mounted system can provide are affected by the operating system deployed in the vehicle-mounted system. Commonly used application programs are generally installed in common operating systems, and the types of application programs in uncommon operating systems are often relatively few. Existing vehicle-mounted systems have made many efforts for this. Summary of the Invention
[0004] Embodiments of the present disclosure provide a method, a device, a medium, and a program product for displaying information.
[0005] In a first aspect of the present disclosure, a method for displaying information is provided. The method includes displaying information of the plurality of target application programs in respective ones of a plurality of layers of an interface, where the interface indicates a plurality of selectable application programs and the layer in which each application program is located, the plurality of application programs include application programs installed on a first operating system and programs installed on a second operating system, each layer has an adjustable display priority, and the plurality of target application programs are at least a part of the plurality of application programs.
[0006] In a second aspect of the present disclosure, an electronic device for displaying information is provided. The electronic device includes a processor and a memory. The memory is coupled to the processor and stores instructions that, when executed by the processor, cause the device to perform the steps of the method according to the first aspect of the present disclosure.
[0007] In a third aspect of the present disclosure, a computer-readable storage medium is provided. Computer-executable instructions are stored on the computer-readable storage medium, and when the computer-executable instructions are executed, they cause a computer to perform the steps of the method according to the first aspect of the present disclosure.
[0008] According to a fourth aspect of the present disclosure, there is provided a computer program product. The computer program product is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions that, when executed, cause the machine to perform the steps of the method according to the first aspect of the present disclosure.
[0009] Note that the present invention content is provided to introduce some concepts in a simplified form, which will be further described in the following detailed implementation. The invention content section is not intended to identify the key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] By describing the exemplary embodiments of the present disclosure in more detail in conjunction with the accompanying drawings, the above and other objects, features, and advantages of the present disclosure will become more apparent. In the drawings:
[0011] Figure 1 is a schematic diagram of an exemplary application scenario of a method for displaying information according to an embodiment of the present application;
[0012] Figure 2 shows a flowchart of a method for displaying information according to an embodiment of the present disclosure;
[0013] Figure 3 is a flowchart of a method for respectively displaying information of multiple target applications in multiple layers of an interface according to an embodiment of the present disclosure;
[0014] Figure 4 is a schematic diagram of adjusting the layer size according to an embodiment of the present disclosure;
[0015] Figure 5 is a flowchart of a method for displaying the display content of each layer according to an embodiment of the present disclosure;
[0016] Figure 6 is a flowchart of a method for collaborating between two operating systems according to an embodiment of the present disclosure;
[0017] Figure 7 is a schematic diagram of combining a target display page according to an embodiment of the present disclosure;
[0018] Figure 8 shows a schematic block diagram of a device that can be used to implement the embodiments of the present disclosure.
[0019] In each of the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0020] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. Like reference numerals refer to like or similar parts throughout the figures, and thus their repetitive description will be omitted.
[0021] In addition, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of this application.
[0022] In the description of the embodiments of the present disclosure, the term "comprising" and its variations should be understood as an open inclusion, that is, "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "an embodiment" or "the embodiment" should be understood as "at least one embodiment". Although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Thus, the first component discussed below may be referred to as the second component without departing from the teachings of the concept of this application. As used herein, the term "and / or" and similar terms include any, multiple, and all combinations of the associated listed items.
[0023] The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0024] The flowcharts shown in the drawings are merely illustrative and not necessarily include all the content and operations / steps, nor are they necessarily executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.
[0025] In various in-vehicle infotainment (IVI) systems, in order to provide rich application services, two operating systems can be deployed. In the case where two operating systems are deployed, existing technical solutions can only configure one layer for each operating system, which greatly limits the types and quantities of applications that the IVI system can provide. Users cannot call multiple applications simultaneously. For example, when using an audio-visual application to play music, users cannot simultaneously use the weather report of a weather application and the navigation service of a navigation application, resulting in a poor user experience.
[0026] To this end, embodiments of the present disclosure propose a method and an electronic device for displaying information. The method and the electronic device indicate multiple selectable applications and the layer where each application is located in an interface. Since each layer is set with an adjustable display priority, by establishing a correspondence between the applications and the layers, information of the multiple target applications can be separately displayed in multiple layers. Compared with the technical solution where the layers are set with fixed display priorities, the present technical solution can achieve the purpose of flexibly presenting information of multiple target applications installed on different operating systems on one screen, which has a good hierarchical structure in terms of display.
[0027] The following refers to Figures 1 to 8 to illustrate the basic principle and several exemplary implementations of the present disclosure. It should be understood that these exemplary embodiments are only provided to enable those skilled in the art to better understand and then implement the embodiments of the present disclosure, rather than limiting the scope of the present disclosure in any way.
[0028] Figure 1 is a schematic diagram of an exemplary application scenario of the method for displaying information according to an embodiment of the present application. As Figure 1 shown, the exemplary environment 100 includes a vehicle 110, and an IVI system 120 is arranged on the vehicle 110. Figure 1 Only the screen component of the IVI system 120 is shown, and other components are not shown. In this embodiment, the method for displaying information is executed by the IVI system 120. Figure 1 The upper half of the dashed box shows a partial interior view of the vehicle 110, and the lower half is an exemplary external view of the vehicle 110. It should be understood that the method for displaying information of the present disclosure can also be applied to other application environments other than the IVI system.
[0029] In Figure 1 the shown embodiment, the IVI system 120 can present an interface 121 on the screen. Optionally, the user 130 can interact with the IVI system 120 through the interface 121, for example, input a selection for multiple target applications to the IVI system 120. In Figure 1In an embodiment, the vehicle computer 120 displays the information of the multiple target applications in multiple layers of the interface, wherein the interface indicates the multiple applications for selection and the layer in which each application is located. The multiple applications include applications installed on the first operating system and programs installed on the second operating system. Each layer has an adjustable display priority, and the multiple target applications are at least a part of the multiple applications. Layer is a concept in computer graphics. Each layer is composed of many pixels, and the layers are stacked up and down to form the entire image. In the present disclosure, the layers are used to render the information of the corresponding applications. Because the multiple layers are displayed on the same screen, the information of the multiple target applications can be displayed on the same screen. Because at least one of the first operating system and the second operating system corresponds to at least two layers, the information of the applications rendered on at least three layers can be displayed on the screen, providing rich application services. In this embodiment, the information of the multiple target applications is displayed on the screen for the user 130 to use.
[0030] In some embodiments, the second operating system runs in a virtualized manner together with the first operating system on the local side (i.e., in the vehicle computer 120). In other words, the two operating systems can be deployed in a set of hardware devices and share the resources of the hardware device, rather than in two sets of hardware devices.
[0031] It should be understood that the above examples are not intended to be limiting, but are merely exemplarily shown for the purpose of helping understanding, and the embodiments of the present disclosure are not limited to the above examples.
[0032] Combined with the above Figure 1 A schematic diagram of an example environment 100 is depicted in which methods and / or processes according to embodiments of the present disclosure may be implemented. Figure 2 1 and 2 to describe a flowchart of a method 200 for displaying information according to an embodiment of the present disclosure.
[0033] Figure 2 FIG. 1 is a flow chart illustrating a method 200 for displaying information according to an embodiment of the present disclosure. The method 200 may be performed in Figure 1 The vehicle computer 120 shown in FIG. Figure 2 As shown, the method for displaying information according to some embodiments of the present application may include blocks 210 - 230 .
[0034] At block 210, information of the multiple target applications is respectively displayed in multiple layers of the interface, where the interface indicates multiple applications for selection and the layer where each application is located. The multiple applications include applications installed on a first operating system and programs installed on a second operating system. Each layer has an adjustable display priority, and the multiple target applications are at least a part of the multiple applications.
[0035] An interface is an interface used to interact with users. It can provide a visual presentation for interaction or play the information in the interface through voice for interaction. In this embodiment, there may be a predetermined correspondence between the layers and the application programs, or the correspondence between the two may be determined in real time. For example, 4 layers can be set, namely Layers 1-4. Layer 1 can be predetermined to correspond to the "weather report" application program, Layer 2 can be predetermined to correspond to the "map navigation" application program, Layer 3 can be predetermined to correspond to the "movie playback" application program, etc. As an example, the correspondence between Layers 1-4 and each application program can be determined in real time as needed. For example, the user can set the correspondence between the layers and the application programs through the interface. In another example, 3 layers can be set, namely Layers 1-3. Layer 1 can be predetermined to correspond to the "weather report" application program, Layer 2 can be predetermined to correspond to the "map navigation" application program, and Layer 3 can be predetermined to correspond to the "movie playback" application program. In this example, the correspondence between Layers 1-3 and each application program can also be determined in real time as needed. The target application program refers to the application program selected by the user and desired to be presented. For example, during the process of driving a vehicle, the user may need to call the "map navigation" application program to assist in driving, call the "weather report" application program to query weather information, and may also call the "movie playback" application program to watch a movie. Then these three application programs are the target application programs, which correspond to three of the multiple layers of the vehicle head unit. And among them, the "map navigation" and "weather report" application programs can be in the layers corresponding to the first operating system, and the "movie playback" application program can be in the layers corresponding to the second operating system. In this embodiment, when the display content of the layer (which is embodied as "image data" in the computer) is presented, there may be display conflicts between different layers. The adjustable display priority refers to the adjustable priority degree of the display content of this layer relative to the display content of other layers. Because in the display stage, it is necessary to superimpose the display content of each layer to determine the final value of the pixel, so as to express the final display effect after the superimposition of each layer. Therefore, the adjustable display priority can be used to control how to superimpose the display content of each layer, that is, different superimposition schemes mean different coverage rules of the image data, which will result in different final values of the pixel. In some embodiments, a display priority parameter can be set for each layer, and the operating system can calculate the coverage rule and coverage result of the image data according to this parameter, so as to obtain the final value of the pixel. For example, the user can input the corresponding value in the interface to determine the adjustable display priority parameter of each layer.
[0036] The first operating system and the second operating system can be any operating systems. In some embodiments, the first operating system can be a Linux operating system, and the second operating system can be an Android operating system. Since the Linux operating system has high security and stability, and the Android operating system can install common applications and has high convenience, determining the first operating system as the Linux operating system and the second operating system as the Android operating system can ensure both security and stability and can install various common applications without coding for the applications unique to the Android operating system on the Linux operating system.
[0037] In a method for displaying information according to an embodiment of the present disclosure, the method indicates a plurality of selectable applications and the layer where each application is located in an interface. Since each layer is set with an adjustable display priority, by establishing a correspondence between the application and the layer, the information of the plurality of target applications can be respectively displayed in a plurality of layers. Compared with the technical solution where the layer is set with a fixed display priority, this technical solution can achieve the purpose of flexibly presenting the information of a plurality of target applications installed on different operating systems on one screen, which has a good hierarchical structure in terms of display.
[0038] In some embodiments, before respectively displaying the information of a plurality of target applications in a plurality of layers of the interface, it includes: obtaining, through the interface, the user's selection for the plurality of target applications; transmitting the selection from the first operating system to the second operating system through a preset pipeline; and determining the layer corresponding to each target application according to the selection. In this embodiment, the first operating system and the second operating system respectively determine the layer corresponding to each target application based on the selection. The pipeline is an inter-system communication mechanism and can be used to transmit the user's selection. The present disclosure also provides an implementation manner for reasonably displaying the information of each target application after determining the target application.
[0039] Figure 3 It is a flowchart of a method 300 for respectively displaying the information of a plurality of target applications in a plurality of layers of an interface according to an embodiment of the present disclosure. Figure 3 The illustrated embodiment includes blocks 310 - 330.
[0040] In block 310, the size of the layer corresponding to each target application is adjusted according to the size information of each target application. In this block, the size of the layer can be flexibly adjusted. When the layer is adjusted to be the same size as the corresponding target application, the display content of the corresponding target application can be directly rendered in the entire area of the layer. One advantage of doing this is that the display position of the target application corresponding to the layer can be adjusted by adjusting the position of the layer.
[0041] At block 320, the display content of the layer corresponding to each target application is determined according to the content information of each target application. The content information of the target application may include, for example, the interface of the target application itself and its content. After this content information is rendered onto the layer, it becomes the display content of the layer, and this display content can be directly projected onto the screen for display. As an example, the playback interface of the "movie playback" application and the movie content being played constitute the content information of this application, and after rendering, the display content of the corresponding layer is obtained. Since a movie is usually played continuously, continuous rendering of the corresponding layer may be required, and in this case, continuously played display content can be obtained.
[0042] At block 330, the information of the target application corresponding to each layer is respectively displayed according to the size and display content of each layer. After determining the size and display content of each layer, the display content can be fully rendered directly on the adjusted size of the layer, and then displayed to view the information of the target application corresponding to the layer.
[0043] If the size of the layer cannot be adjusted, then in the case where the display position of the target application needs to be changed, the rendering position on the layer corresponding to the target application needs to be recalculated and rendered, which will increase the computational complexity. In this embodiment, by adapting the layer size, the flexibility of the layer can be increased, which is beneficial for combining the display content of each layer to effectively display the information of multiple applications and for implementing the adjustment of the position of the target application. For example, according to Figure 3 The method of the embodiment can adjust the position of the corresponding target application by adjusting the positions of each layer, without re-rendering the display content of the corresponding target application on the layer.
[0044] Figure 4 FIG. is a schematic diagram of adjusting the layer size according to an embodiment of the present disclosure. In this embodiment, there are a total of 4 layers, namely layers 1-4 410, where layer 1 and layer 3 correspond to the first operating system, and layer 2 and layer 4 correspond to the second operating system. The sizes of layers 2-4 are reduced after being adjusted, the size of layer 1 remains unchanged, then the display positions of layers 2-4 are set, and finally, after each layer is respectively displayed, the display effect 420 is obtained.
[0045] In addition to adjusting the size of the layer, the display of the layer can also be reasonably planned by setting a display priority mechanism. In some embodiments, at least one of the first operating system and the second operating system corresponds to at least two layers, and the information of multiple target applications is respectively displayed in multiple layers of the interface, including first determining the display priority of each layer in the multiple layers by setting the display priority parameters of each layer in the multiple layers; then displaying the display content of the multiple layers in a stacked layer manner according to the display priority of each layer. At least one of the first operating system and the second operating system corresponds to at least two layers, which means that the layers corresponding to these two operating systems add up to at least three layers. For example, the first operating system corresponds to layer 1, and the second operating system corresponds to layers 2-3. This can ensure the simultaneous display of the information of multiple applications and provide rich services for users.
[0046] As described above, the adjustable display priority of the layer indicates the degree to which the display content of the layer is preferentially displayed in the face of a display conflict. As previously mentioned, each layer has an adjustable display priority. Therefore, when displaying the display content of multiple layers, the numerical value of the display priority parameter of each layer can be set at the software level first, and the operating system determines the display priority of each layer in the multiple layers according to the set numerical value, and then displays the indication of the multiple layers in a stacked layer manner. If the display content of multiple layers needs to be displayed simultaneously in an area of the screen, the display content of the layer with a higher display priority will cover or float above the display content of the layer with a lower display priority. In some embodiments, the numerical value of the display priority parameter of each layer can be set through the input of the user on the interface, so as to realize the adjustment of the display priority.
[0047] As an example, in the case of including layers 1-4, the user can set the adjustable display priority of layer 1 to 1, the adjustable display priority of layer 2 to 2, the adjustable display priority of layer 3 to 3, and the adjustable display priority of layer 4 to 4 on the interface. In the first operating system and the second operating system, the smaller the number of the display priority, the higher the priority. If layers 1-4 are all displayed and the display content of layer 1 conflicts with that of other layers, the display content of layer 1 will be preferentially displayed, and the display content of other layers in the area will be covered. The display content of layer 4 at the bottom layer. For example, if the target application corresponding to layer 1 is "weather report" and the target application corresponding to layer 4 is "map navigation", then on the screen, the weather information of "weather report" can be observed to cover or float above the map of "map navigation".
[0048] When determining the display priority, there can be multiple implementation manners. For example, when obtaining the user's selection for multiple target application programs in box 210, the user can set the display priority of the layer corresponding to each target application program at one time. Another example is that after obtaining the user's selection for multiple target application programs, the first operating system can automatically determine the display priority of each layer according to the types of the respective target application programs. By setting a display priority mechanism for each layer, the display conflict problem of each layer can be reasonably solved, which is beneficial to flexibly display multiple application programs.
[0049] Figure 5 It is a flowchart of a method 500 for displaying the display content of each layer according to an embodiment of the present disclosure. In this embodiment, each layer among multiple layers has a transparency identifier, and the transparency identifier indicates whether the layer is transparent. If it is transparent, rendering is not required. If it is opaque, rendering is required. Moreover, displaying the display content of multiple layers in a stacked layer manner according to the display priority of each layer includes boxes 510 - 550.
[0050] In box 510, based on the correspondence relationship between the layer and the application program, multiple target layers are determined according to multiple target application programs. As described above, the correspondence relationship between the layer and the application program can be either pre - determined or determined in real time (for example, the user manually sets this correspondence relationship). After determining the correspondence relationship between the two, multiple target layers corresponding to the multiple target application programs selected by the user can be determined. Optionally, one target application program corresponds to one target layer.
[0051] In box 520, the transparency identifier of each target layer among the multiple target layers is set to indicate that the target layer is opaque. Since the information of the target application program needs to be displayed, the transparency identifier of the corresponding target layer should be set to opaque.
[0052] In box 530, one target layer with the lowest display priority is determined from the multiple target layers as the first layer. The lowest display priority means the lowest degree of preferentially displaying the display content of this layer. For example, when the display priority of layer 1 is 1, the display priority of layer 2 is 2, and the smaller the number of the display priority, the higher the priority, for layers 1 - 2, the display priority of layer 2 is the lowest.
[0053] At block 540, for each layer in the layers whose display priority is greater than the display priority of the first layer, in response to the layer not belonging to multiple target layers, set the transparency flag of the layer to indicate that the layer is transparent. The layer not belonging to multiple target layers means that the corresponding application of the layer is not a target application and the application has not been selected by the user. When the display priority of a certain layer is greater than the display priority of the first layer and it does not belong to multiple target layers, if the layer is set to non-transparent, the information of the application corresponding to the layer will be rendered on the layer and displayed, which may obscure the information of a target application, and the display priority of the target layer corresponding to the target application is less than the display priority of the certain layer, and it will also waste computing resources. If the layer is set to transparent, the layer will not be rendered and it will not obscure the target application.
[0054] At block 550, in multiple layers, display the display content of each layer in a stacked layer manner according to the display priority of each layer. After determining the transparency flags of the target layer and the layers above it, each layer can be directly displayed, and at this time, the content information of each target application can be displayed. In Figure 4 the illustrated embodiment, the display priorities of layers 2-4 are all higher than the display priority of layer 1. When layers 1-4 are all non-transparent, the display effect 420 can be obtained.
[0055] In this embodiment, by setting the transparency flags, it can be ensured that when there is a corresponding relationship between the application and the layer, the display content of each layer can be directly displayed without further interference to display the information of the target application. For example, there is no need to reset the display priority of the target layer to make it higher than the display priority of the non-target image.
[0056] The above embodiments only introduce the embodiments of how to process the first layer and the transparency flags of the layers whose display priority is greater than the first layer. For the layers whose display priority is less than the display priority of the first layer, whether they are displayed or not does not affect the display of the information of multiple target applications. However, the processing of the transparency flags of these layers can bring benefits in other aspects.
[0057] In some embodiments, for each layer in the layers whose display priority is less than the display priority of the first layer, set the transparency flag of the layer to indicate that the layer is transparent. In this case, these layers will not be rendered, so a large amount of computing resources can be saved.
[0058] In some embodiments, for each layer whose display priority is lower than that of the first layer, the transparency identifier of the layer is set to indicate that the layer is non-transparent. In this case, when multiple target applications are displayed, these layers are still rendered according to the information of the application corresponding to each layer. Therefore, if it is desired to switch to a certain layer among these layers later, the display content of that layer can be quickly displayed with a small display latency, which can improve the user experience.
[0059] After determining the display content of each target layer, directly displaying it may be too abrupt and not very user-friendly in terms of visual perception. Based on the above method of display information, the present disclosure also provides embodiments for handling the switch between the prior display content and the subsequent display content.
[0060] In some embodiments, for frame 550, among multiple layers, the display content of each layer is displayed in a stacked layer manner according to the display priority of each layer, including: first, combining the display content of each target layer according to the display priority of each target layer to obtain a target display page; then hiding the current display page according to a first preset effect; and then presenting the target display page according to a second preset effect.
[0061] As described in the above embodiments, the size of the layer can be adjusted to adapt to the application, which means that layers of different sizes can be combined to form a static page. The target display page in this embodiment is the static page obtained by combining the display content of each target layer. For the content currently displayed on the screen, the static page obtained by combining the display content of each currently displayed layer is the current display page. After obtaining the target display page, the switch between the current display page and the target display page can be realized with the first and second preset effects, thereby providing a user experience.
[0062] In some embodiments, hiding the current display page according to the first preset effect includes gradually hiding the current display page in a horizontal translation manner or in a blurred display manner. In some embodiments, presenting the target display page according to the second preset effect includes gradually presenting the target display page in a flying-in manner. By using the first preset effect and the second preset effect to handle the current display page and the target display page respectively, the interest and softness during the switch can be increased, thereby improving the user experience.
[0063] Since the method of the present disclosure is applicable to a vehicle-mounted computer including two operating systems, and the first operating system renders each layer corresponding to the first operating system, and the second operating system renders each layer corresponding to the second operating system, and combining the display contents of each layer to obtain a target display page needs to be completed on one operating system, cooperation is required between the two operating systems. The present disclosure provides embodiments of cooperation between two operating systems.
[0064] In some embodiments, the second operating system runs jointly with the first operating system on the local side in a virtualized manner.
[0065] Additionally, Figure 6 is a flowchart of a method 600 for cooperation between two operating systems according to an embodiment of the present disclosure. As Figure 6 shown, combining the display contents of each target layer according to the display priority of each target layer includes blocks 610-650.
[0066] In block 610, the first operating system transmits a screenshot instruction to the second operating system through an inter-system communication mechanism. The inter-system communication mechanism can be, for example, a socket mechanism or a pipe mechanism, which can implement communication and data transmission between the first operating system and the second operating system. This screenshot instruction instructs the second operating system to take screenshots of the display contents of multiple target layers.
[0067] In block 620, the second operating system takes screenshots of the display contents of multiple target layers of the second operating system to obtain multiple second display data. After the multiple layers corresponding to the second operating system are rendered, multiple image data will be obtained, and the second operating system can intercept the multiple image data as multiple second display data.
[0068] In block 630, the second operating system transmits multiple second display data to the first operating system through the inter-system communication mechanism. If in block 610, the inter-system communication mechanism is a preset pipe, then this preset pipe can continue to be used in this block to transmit multiple second display data.
[0069] In block 640, the first operating system takes screenshots of the display contents of multiple target layers of the first operating system to obtain multiple first display data. Similar to block 620, after the multiple layers corresponding to the first operating system are rendered, multiple image data will be obtained, and the first operating system can intercept the multiple image data as multiple second display data.
[0070] At block 650, the first operating system combines a plurality of first display data and a plurality of second display data into a target display page according to the display priorities of the respective layers. The plurality of first display data and the plurality of second display data are all static display data, and the target display page can be obtained by combination according to the display priorities of the layers corresponding to the respective display data.
[0071] This embodiment provides a specific implementation to combine the layers corresponding to the two operating systems into a static page, which can lay a foundation for the dynamic processing of the page and can realize the preview of the information of the plurality of application programs, thereby improving the user experience.
[0072] Figure 7 It is a schematic diagram of combining a target display page according to an embodiment of the present disclosure. As Figure 7 shown, the second operating system 710 corresponds to layers 1 and 3, and the first operating system 720 corresponds to layers 2 and 4.
[0073] The first operating system 720 sends a screenshot instruction to the second operating system 710 through a preset pipeline 730. The second operating system 710 takes screenshots of the display contents of layers 1 and 3 to obtain two second display data, and transmits these two second display data to the first operating system 720 through the preset pipeline 730. The first operating system 720 takes screenshots of the display contents of layers 2 and 4 to obtain two first display data, and the first operating system 720 combines the two first display data and the two second display data to obtain a target display page 740.
[0074] Figure 8 It shows a schematic block diagram of a device 800 that can be used to implement the embodiments of the present disclosure. The device 800 can be the device or apparatus described in the embodiments of the present disclosure. As Figure 8 shown, the device 800 includes a central processing unit (CPU) 801, which can execute various appropriate actions and processes according to the computer program instructions stored in the read-only memory (ROM) 802 or the computer program instructions loaded from the storage unit 808 into the random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.
[0075] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as a keyboard, mouse, etc.; output unit 807, such as various types of displays, speakers, etc.; storage unit 808, such as a disk, optical disc, etc.; and communication unit 809, such as a network card, modem, wireless communication transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunications networks.
[0076] Each of the methods or processes described above may be executed by processing unit 801. For example, in some embodiments, the method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed onto device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by CPU 801, one or more steps or actions of the methods or processes described above may be performed.
[0077] In some embodiments, the methods and processes described above may be implemented as a computer program product. The computer program product may include a computer-readable storage medium having thereon computer-readable program instructions for performing various aspects of the present disclosure.
[0078] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punch card or raised structures in a groove having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not construed to be a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0079] The computer-readable program instructions described herein can be downloaded to various computing / processing devices from a computer-readable storage medium or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.
[0080] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state-setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages and conventional procedural programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present disclosure.
[0081] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is produced that implements the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which causes a computer, a programmable data processing device, and / or other devices to operate in a specific manner, so that the computer-readable medium storing the instructions includes a manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0082] Computer-readable program instructions may be loaded onto a computer, other programmable data processing apparatus, or other devices, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to generate a computer-implemented process, such that the instructions executed on the computer, other programmable data processing apparatus, or other devices implement the functions / acts specified in one or more blocks of the flowchart and / or block diagram.
[0083] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or acts, or by a combination of dedicated hardware and computer instructions.
[0084] The embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, the practical application, or the technical improvement of the technology in the market, or to enable other ordinary skilled persons in the art to understand the embodiments disclosed herein.
Claims
1. A method for displaying information, comprising: Displaying information of the multiple target applications in multiple layers of an interface, where the interface indicates multiple selectable applications and the layer where each application is located, the multiple applications include applications installed on a first operating system and programs installed on a second operating system, each layer has an adjustable display priority, and the multiple target applications are at least a part of the multiple applications.
2. The method according to claim 1, wherein the displaying information of the multiple target applications in multiple layers of the interface includes: Adjusting the size of the layer corresponding to each target application according to the size information of each target application; Determining the display content of the layer corresponding to each target application according to the content information of each target application; And Displaying information of the target application corresponding to each layer according to the size and display content of each layer.
3. The method according to claim 1, wherein at least one of the first operating system and the second operating system corresponds to at least two layers; And wherein the displaying information of the multiple target applications in multiple layers of the interface includes: Determining the display priority of each layer in the multiple layers by setting the display priority parameter of each layer in the multiple layers; Displaying the display content of the multiple layers in a stacked layer manner according to the display priority of each layer.
4. The method according to claim 3, wherein each layer in the multiple layers has a transparency identifier, And the displaying the display content of the multiple layers in a stacked layer manner according to the display priority of each layer includes: Based on the correspondence between the layer and the application, determining multiple target layers according to the multiple target applications; Setting the transparency identifier of each target layer in the multiple target layers to indicate that the target layer is non-transparent; Determining a target layer with the lowest display priority from the multiple target layers as the first layer; For each layer in the layers whose display priority is greater than the display priority of the first layer, in response to the layer not belonging to the multiple target layers, setting the transparency identifier of the layer to indicate that the layer is transparent; And Displaying the display content of each layer in a stacked layer manner according to the display priority of each layer in the multiple layers.
5. The method according to claim 4, further comprising: For each layer in the layers whose display priority is less than the display priority of the first layer, setting the transparency identifier of the layer to indicate that the layer is transparent.
6. The method according to claim 4, further comprising: For each layer in the layers whose display priority is less than the display priority of the first layer, setting the transparency identifier of the layer to indicate that the layer is non-transparent.
7. The method according to claim 4, wherein in the multiple layers, displaying the display content of each layer in a stacked layer manner according to the display priority of each layer includes: Combining the display content of each target layer according to the display priority of each target layer to obtain a target display page; Hiding the current display page according to a first preset effect; And Presenting the target display page according to a second preset effect.
8. The method according to claim 7, wherein hiding the current display page according to the first preset effect includes: Gradually hiding the current display page in a horizontal translation manner or in a blurred display manner.
9. The method according to claim 7, wherein presenting the target display page according to the second preset effect includes: Gradually presenting the target display page in a flying-in manner.
10. The method according to claim 7, wherein combining the display content of each target layer according to the display priority of each target layer includes: The first operating system transmits a screenshot instruction to the second operating system through an inter-system communication mechanism; The second operating system takes screenshots of the display content of multiple target layers of the second operating system to obtain multiple second display data; The second operating system transmits the multiple second display data to the first operating system through the inter-system communication mechanism; The first operating system takes screenshots of the display content of multiple target layers of the first operating system to obtain multiple first display data; And The first operating system combines the multiple first display data and the multiple second display data into the target display page according to the display priority of each layer.
11. The method according to claim 10, wherein the first operating system transmitting a screenshot instruction to the second operating system through an inter-system communication mechanism includes: The first operating system transmits a screenshot instruction to the second operating system through a preset pipeline; And the second operating system transmitting the multiple second display data to the first operating system through the inter-system communication mechanism includes: The second operating system transmits the multiple second display data to the first operating system through the preset pipeline.
12. The method according to claim 1, wherein the second operating system runs jointly with the first operating system in a virtualized manner on the local side.
13. The method according to claim 1, wherein before displaying the information of the multiple target applications in multiple layers of the interface, it includes: Obtaining the user's selection for multiple target applications through the interface; The first operating system transmits the selection to the second operating system through a preset pipeline; Determining the layer corresponding to each target application according to the selection.
14. An electronic device for displaying information, comprising: A processor, and A memory coupled to the processor and storing instructions that, when executed by the processor, cause the device to execute the method according to any one of claims 1 to 13.
15. A computer-readable storage medium having computer-executable instructions stored thereon, which, when executed, cause a computer to perform the method according to any one of claims 1 to 13.
16. A computer program product tangibly stored on a non-transitory computer-readable medium and comprising machine-executable instructions which, when executed, cause a machine to perform the method according to any one of claims 1 to 13.