CN114090172A - Cross-system widget multiplexing method and device - Google Patents

Cross-system widget multiplexing method and device Download PDF

Info

Publication number
CN114090172A
CN114090172A CN202111327605.8A CN202111327605A CN114090172A CN 114090172 A CN114090172 A CN 114090172A CN 202111327605 A CN202111327605 A CN 202111327605A CN 114090172 A CN114090172 A CN 114090172A
Authority
CN
China
Prior art keywords
target
window
widget
display
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111327605.8A
Other languages
Chinese (zh)
Other versions
CN114090172B (en
Inventor
杨国祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing Jingling Information System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingling Information System Technology Co Ltd filed Critical Beijing Jingling Information System Technology Co Ltd
Priority to CN202111327605.8A priority Critical patent/CN114090172B/en
Publication of CN114090172A publication Critical patent/CN114090172A/en
Application granted granted Critical
Publication of CN114090172B publication Critical patent/CN114090172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45537Provision of facilities of other operating environments, e.g. WINE
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a cross-system widget multiplexing method and device, and the method comprises the following steps: determining a target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window. The widget in the second system which cannot be directly loaded in the first system can be displayed in the first system, the interaction function of the user and the widget is realized, the development efficiency of the Linux operating system is greatly improved, the system function is enriched, and the user experience is improved.

Description

Cross-system widget multiplexing method and device
Technical Field
The present application relates to the field of system software development, and in particular, to a cross-system widget multiplexing method and apparatus.
Background
At present, the domestic operating system market mainly takes a foreign operating system as a main market, and has important potential safety hazards in the aspect of information network safety. With the increase of the national importance on information security, the development of domestic autonomous operating systems developed from open-source Linux operating systems is increasingly strong.
However, the Linux operating system is not ecologically perfect enough, and the available application resources are relatively deficient.
Disclosure of Invention
The application aims to provide a cross-system widget multiplexing method and device, which are used for using widgets in other operating systems on a Linux operating system so as to improve the development efficiency of the Linux operating system and enrich the system functions.
The application provides a cross-system widget multiplexing method, which comprises the following steps:
determining a target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
Optionally, after determining the target widget needing to be presented, the method further includes: sending a first message to the second system, controlling the second system to create the host window, and adding the target widget in the host window; the displaying the target content in the target window based on the host window generated by the second system comprises: receiving a second message sent by the second system; the second message includes the target content; displaying the target content in the target window in response to the second message.
Optionally, before determining the target widget required to be presented, the method further includes: acquiring and displaying a widget list containing at least one widget identification; the method for determining the target widget needing to be presented comprises the following steps: receiving a first input; the first input is for dragging the target widget identification from the widget list to a target display area; the target widget identification is an identification corresponding to a target widget in the at least one widget identification; the displaying of the target content in the target window includes: in response to the first input, displaying the target window in the target display area.
Optionally, after the target content is displayed in the target window based on the host window generated by the second system, the method further includes: receiving a second input; the second input is used for adjusting the display area of the target window; and responding to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in the expansion mark of the target window.
Optionally, in response to the second input, after the display area adjusted based on the second input is updated to display the target window and the display information of the target window is recorded in the extension identifier of the target window, the method further includes: and when the target window is reloaded, displaying the target window according to the display information recorded by the extension identification.
Optionally, the target display area is: a display area in an application window of a target application for displaying the target window; the display information includes: position information of the target display area in the application window; the target window and the application window have the same life cycle; when the target window is reloaded, displaying the target window according to the display information recorded by the extension identifier, including: and when the application window is reloaded, the target window is superposed and displayed on the application window according to the display information recorded by the extension identification.
Optionally, after the target content is displayed in the target window, the method further includes: receiving a target operation for the target widget; updating, in the second system, the display content contained in the host window based on the target operation; updating the display content of the target window in the first system based on the updated host window.
The present application further provides a widget multiplexing device across systems, including:
the determining module is used for determining the target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; the display module is used for displaying target content in the target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
Optionally, the apparatus further comprises: a transmitting module and a receiving module; the sending module is used for sending a first message to the second system, controlling the second system to create the host window and adding the target widget into the host window; the receiving module is used for receiving a second message sent by the second system; the second message includes the target content; the display module is specifically configured to display the target content in the target window in response to the second message.
Optionally, the apparatus further comprises: the system comprises an acquisition module and a user input module; the acquisition module is used for acquiring and displaying a widget list containing at least one widget identifier; the user input module is used for receiving a first input; the first input is for dragging the target widget identification from the widget list to a target display area; the target widget identification is an identification corresponding to a target widget in the at least one widget identification; the display module is specifically configured to display the target window in the target display area in response to the first input.
Optionally, the user input module is further configured to receive a second input; the second input is used for adjusting the display area of the target window; and the display module is further used for responding to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in the expansion mark of the target window.
Optionally, the display module is specifically configured to display the target window according to the display information recorded by the extension identifier when the target window is reloaded.
Optionally, the target display area is: a display area in an application window of a target application for displaying the target window; the display information includes: position information of the target display area in the application window; the target window and the application window have the same life cycle; the display module is specifically configured to, when the application window is reloaded, superimpose and display the target window on the application window according to the display information recorded by the extension identifier.
Optionally, the apparatus further comprises: a content update module; the user input module is further used for receiving a target operation aiming at the target widget; the content updating module is used for updating the display content contained in the host window based on the target operation in the second system; the display module is further configured to update the display content of the target window in the first system based on the updated host window.
The present application also provides a computer program product comprising computer program/instructions which, when executed by a processor, implement the steps of the cross-system widget reuse method as described in any of the above.
The application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the cross-system widget multiplexing method.
The present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the cross-system widget multiplexing method as described in any of the above.
According to the cross-system widget multiplexing method and device, after the target widget in the second system needing to be displayed is determined, the display content contained in the host window is displayed in the target window of the first system based on the host window which is generated by the second system and bears the target widget. The first system can use the small parts in the second system, so that the software development efficiency of the first system is improved, and the system functions are enriched.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a system architecture to which the cross-system widget multiplexing method provided herein is applied;
FIG. 2 is a flow chart diagram of a cross-system widget multiplexing method provided by the present application;
FIG. 3 is a schematic diagram illustrating an application of the cross-system widget multiplexing method provided in the present application;
FIG. 4 is a schematic structural diagram of a cross-system widget multiplexing device provided herein;
fig. 5 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
At present, the domestic operating system market mainly takes foreign operating systems as main materials, and has important potential safety hazards in the aspect of information network safety. The Linux operating system is a mature and open-source operating system, and can quickly solve the situation of shortage of domestic operating systems. With the increase of the national importance on information security, the development of domestic autonomous operating systems developed from open-source Linux operating systems is increasingly strong. However, the domestic os based on the Linux os is slowly developed due to the market share and the number of developers of the Linux os.
Because the number of developers of the Linux operating system is small, development tools developed for the Linux operating system are few, and the development tools include development frameworks, available resource libraries, components, widgets and the like. The Android widget is an extended function of an Android program and can be embedded in other applications besides the application. Time widgets such as clocks can be embedded into the desktop or lock screen to extend the way the system time is presented in a unique way. The Android widget enables a user to enrich and expand system windows such as an Android desktop and a lock screen after the user installs the application with the widget. At present, various Linux-compatible Android window schemes exist, but no method for applying Android widgets in Linux windows exists. The characteristics of the Android small parts cannot be applied to the Linux system window, so that the characteristics of the Linux window are enriched, and the Android application characteristics are perfectly displayed.
Based on the above, the application thinks that the widget multiplexing method of the cross-system provided by the embodiment of the application can be used for adding and using the widget of the Android operating system in the Linux operating system.
It should be noted that, in the embodiment of the present application, the first system and the second system have different respective underlying environments, and the second system operates in the first system. The underlying environment, as referred to herein, refers to the first system and the second system having respective application frameworks Framewok and driver environments. This does not limit the first system and the second system to different types of operating systems.
For example, the first system and the second operation are both Android operating systems, or are both GNU/Linux operating systems. The first system may be implemented to run in the second system in a number of ways, such as by way of a virtual machine, by way of an LXC, container. In some embodiments, the second system runs in the first system and shares a Linux Kernel. For example, the first system is a GNU/Linux operating system, such as Ubuntu, Debian, RedHat, and the like. The first system is not limited to running on a physical machine, but may be an operating system hosted on another operating system, such as WSL in a Windows system. For example, the second system is an Android operating system, which covers Android OS issued by Google and AOSP and various derivative systems based on AOSP, such as MIUI, EMUI, One UI, and the like. The second system may be, among other things, a Tizen, Meego, hong meng, etc. operating system.
For convenience of description, in the following embodiments, the first system is a Linux operating system, and the second system is an Android operating system.
Since the functions in the Android operating system are used in the Linux operating system, an Android kernel needs to be added in the Linux operating system, as shown in fig. 1, the method is an operating system architecture diagram applied to the cross-system widget multiplexing method provided by the embodiment of the present application. The Linux operating system in the embodiment of the application may include a Linux kernel and an Android kernel.
The cross-system widget multiplexing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 2, an embodiment of the present application provides a cross-system widget multiplexing method, which may include the following steps 201 and 202:
step 201, determining a target widget to be displayed.
Wherein the target widget is a widget applied to a second system; the second system is a different operating system than the first system.
Illustratively, the widget in the second system cannot be directly loaded in the first system, so the embodiment of the application provides the widget function which can be added to the interface of the application program in the first system or exposed in an independent window.
Illustratively, based on the widget functions provided by the embodiment of the present application, a developer may add a widget on an interface of an application program, and a user may also add a widget directly on a desktop.
Illustratively, when the first system determines the target widget to be exposed based on the operation of adding the widget by the user or based on the widget added in the interface by the developer during the loading process of the application interface.
For example, the first system and the second system may be different operating system kernels.
And 202, displaying target content in the target window based on the host window generated by the second system.
Wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
Illustratively, the host window is a window generated in the second system for carrying the target widget. According to the embodiment of the application, the host window in the second system can be displayed in the first system through the scheme that the Linux operating system is compatible with the Android window in the related technology. To implement the function of displaying the target widget carried by the host window in the second system.
Specifically, the technical scheme that the Linux operating system is compatible with the Android window may be a mode of transmitting display content included in the host window to the first system for display in an image frame mode, or a mode of sharing display content, or other modes to realize that the Linux operating system is compatible with the Android window.
Illustratively, the target window may be an independent window, or may be a window superimposed on a window interface of an application program of the first system. That is, in the embodiment of the present application, the target widget may exist independently or may be embedded in an application.
It will be appreciated that since a widget is a miniature application view that can be embedded in other applications (e.g., a desktop) and receive periodic updates, it is difficult to directly access and control its UI resources. Based on this, the technical scheme that the Linux operating system is compatible with the Android window provided in the related art cannot directly obtain a window handle (handle) or a window ID of the widget window, and thus it is difficult to directly display the display content of the widget window in the Linux operating system.
Based on the defects of the related technologies, the embodiment of the application considers that the widget is added to the created host window in a manner that the host window bears the widget, and then the display content contained in the host window is displayed in the Linux operating system through the technical scheme that the Linux operating system is compatible with the Android window in the related technologies, so that the cross-system widget multiplexing is realized.
In this way, after the target widget in the second system to be presented is determined, based on the host window bearing the target widget generated by the second system, the display content contained in the host window is displayed in the target window of the first system. The first system can use the small parts in the second system, so that the software development efficiency of the first system is improved, and the system functions are enriched.
Optionally, in this embodiment of the present application, after determining the target widget that needs to be presented, the first system may instruct the second system to create the host window, add the target widget to the host window, and then display the display content included in the host window in the first system.
After the step 201, the method for multiplexing widgets across systems according to the embodiment of the present application may further include the following step 201a 1:
step 201a1, sending a first message to the second system, controlling the second system to create the host window, and adding the target widget in the host window.
Illustratively, after the host window is created in the second system, and the target widget determined in the step 201 is added to the host window, the display content included in the host window may be displayed through the following steps.
Illustratively, the step 202 may include the following steps 202a1 and 202a 2:
step 202a1, receiving a second message sent by the second system.
Wherein the second message includes the target content.
Step 202a2, in response to the second message, displaying the target content in the target window.
Illustratively, after creating the host window and adding the target widget in the host window, the second system sends the display content contained in the host window to the first system. And the first system displays the display content contained in the host window in a target window of the first system after receiving the display content.
Therefore, the first system can acquire the resources of the target widget in the second system by creating the host window in the second system and adding the target widget in the host window, and then the widget is displayed in the target window of the first system.
Optionally, in this embodiment of the present application, the first system may provide a widget list for the user and the application developer to select a widget that needs to be created.
Before the step 201, the method for multiplexing a widget across systems according to the embodiment of the present application may further include the following step 203:
step 203, acquiring and displaying a widget list containing at least one widget identification.
Illustratively, the widget list contains a list of widgets that the first system supports, or that allow, developers to add in the application.
For example, the user may cause the user-selected target widget to be displayed at a specified location by selecting and dragging the target widget from the widget list to the location. The developer can drag the target widget to a specified position of the interface in the application development interface, so that the target widget can be displayed at the specified position when the application interface is loaded.
Illustratively, the first system may determine the target widget to be presented, i.e. the step 201 described above, by the following steps:
step 201b, receiving a first input.
Wherein the first input is for dragging the target widget identification from the widget list to a target display area; the target widget identification is an identification corresponding to a target widget in the at least one widget identification.
Illustratively, after receiving the first input, the first system may specifically display a target window including a target widget through the following steps.
Illustratively, the step 202 may include the following steps 202 b:
step 202b, responding to the first input, and displaying the target window in the target display area.
For example, the user may cause the first system to display the target widget in the target display area by dragging the target widget identifier corresponding to the target widget to the target display area.
Illustratively, the target display area may be an area on a desktop window of the first system, or may be an area on an application window of the application program.
In this manner, the user may select and drag the target widget directly from the widget list to a specified location, such that the first system displays the user-selected target widget directly at the specified location.
Further optionally, in this embodiment of the application, after the first system displays the target window, the user may further adjust the size and the position of the target window, and when the first system reloads the target window, it may be known that the target window is displayed at the adjusted position based on the adjusted size.
After the step 202, the method for multiplexing a widget across systems according to the embodiment of the present application may further include the following steps 204 and 205:
and step 204, receiving a second input.
Wherein the second input is used to adjust a display area of the target window.
Step 205, in response to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording display information of the target window in an extended identifier of the target window.
For example, the attribute of the target window may include an extension mark, and the first system may record the display information of the target window in the extension mark, and then, when the first system reloads the target window, the target window may be displayed according to the window size and the window display position of the target window recorded by the extension mark of the target window.
After the step 205, the method for multiplexing a widget across systems according to the embodiment of the present application may further include the following step 206:
and step 206, when the target window is reloaded, displaying the target window according to the display information recorded by the extended identifier.
Illustratively, based on the display manner of the target window, the embodiment of the present application may include the following two examples.
Example 1:
in example 1, the target window is presented in the form of a separate window, for example, the target window is displayed separately on a desktop window of the first system.
For example, in an application scenario where a target window is presented in the form of a separate window, a user may adjust the display position and size of the target window in a desktop window. When the first system is restarted, the desktop window of the first system is reloaded, and at the moment, the target window is displayed according to the display position and size of the target window in the desktop window, which are recorded by the extension mark.
Example 2:
in example 2, the target window is a window embedded in an application interface of the target application.
Illustratively, the target display area is: a display area in an application window of a target application for displaying the target window; the display information includes: position information of the target display area in the application window; the target window and the application window have the same lifecycle.
Illustratively, the step 206 may include the following steps 206 a:
step 206a, when the application window is reloaded, the target window is displayed on the application window in an overlapping manner according to the display information recorded by the extension identifier.
For example, as shown in fig. 3, a schematic diagram of an application manner of the cross-system widget multiplexing method provided in the embodiment of the present application is shown. Taking the case of overlaying and displaying a small part on an application interface of the Linux application, the Linux window reserves a position for the Android small part. Android creates a host window for a widget displayed in Linux. Window manager, overlapping widget window and Linux window to realize widget, and application of widget on Linux end
Specifically, a service is provided for Linux at the Android end, and all the widgets of the Android end and the detailed information (name, size and preview) of the widgets are acquired. And creating a display window for each widget applied at the Linux end, adding a HostView in the display window to display the widget, and transmitting the identification of the widget to the Linux window manager as a window extension identification.
And at the Linux end, all windows needing to display Android widgets and the window protocol are expanded. The Android widget with the usable type is obtained, the user drags the widget to the Linux window, the Linux window automatically adjusts the layout after the widget is placed according to the size and the dragging position of the widget, the position information of the widget is recorded, the identification of the widget is recorded, and the widget is transmitted to the window manager. And the window manager finds the widget window of the Android end corresponding to the widget according to the identification of the widget and draws the window to the specified Linux window position in the extension protocol in Linux after the window is drawn and if the extension protocol of the window has the information of the Android widget.
Optionally, in this embodiment of the present application, after the first system displays the target widget, the first system further allows the user to interact with the target widget.
After step 202, the method for multiplexing a widget across systems according to the embodiment of the present application may further include the following steps 207 to 209:
and step 207, receiving a target operation aiming at the target widget.
And step 208, updating the display content contained in the host window based on the target operation in the second system.
And step 209, updating the display content of the target window in the first system based on the updated host window.
Illustratively, after a user executes a target operation on a target widget displayed in the target window, the first system sends the target operation to the second system, and the second system updates the target widget in the host window based on the target operation after receiving the target operation. And then, the second system transmits the display content contained in the updated host window to the first system, and the first system updates the display content of the target window after receiving the display content contained in the updated host window.
In this manner, interactive behavior with the target widget may be implemented on the first system.
According to the cross-system widget multiplexing method provided by the embodiment of the application, when the first system needs to display the target widget in the target window, the target widget can be displayed on the first system through the mode of creating the host window in the second system and adding the target widget in the host window based on the method for compatibly displaying the Android window in the Linux operating system, so that the widget in the second system which cannot be directly loaded in the first system can be displayed in the first system, the interaction function of a user and the widget is realized, the development efficiency of the Linux operating system is greatly improved, the system function is enriched, and the user experience is improved.
It should be noted that, in the cross-system widget multiplexing method provided in the embodiment of the present application, the execution main body may be a cross-system widget multiplexing device, or a control module in the cross-system widget multiplexing device for executing the cross-system widget multiplexing method. In the embodiment of the present application, a method for executing cross-system widget multiplexing by a cross-system widget multiplexing device is taken as an example, and the cross-system widget multiplexing device provided in the embodiment of the present application is described.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The method for multiplexing the widgets across the system is exemplarily described by combining one drawing in the embodiment of the application. In specific implementation, the cross-system widget multiplexing method shown in the above method drawings may also be implemented in combination with any other combinable drawing shown in the above embodiments, and details are not described here again.
The cross-system widget multiplexing device provided by the present application is described below, and the cross-system widget multiplexing method described below and described above may be referred to in correspondence with each other.
Fig. 4 is a schematic structural diagram of a cross-system widget multiplexing apparatus according to an embodiment of the present application, as shown in fig. 4, specifically including:
a determining module 401, configured to determine a target widget to be presented; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; a display module 402, configured to display target content in a target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
Optionally, the apparatus further comprises: a transmitting module 403 and a receiving module 404; the sending module 403 is configured to send a first message to the second system, control the second system to create the host window, and add the target widget to the host window; the receiving module 404 is configured to receive a second message sent by the second system; the second message includes the target content; the display module 402 is specifically configured to display the target content in the target window in response to the second message.
Optionally, the apparatus further comprises: an acquisition module 405 and a user input module 406; the acquiring module 405 is configured to acquire and display a widget list including at least one widget identifier; the user input module 406 is further configured to receive a first input; the first input is for dragging the target widget identification from the widget list to a target display area; the target widget identification is an identification corresponding to a target widget in the at least one widget identification; the display module 402 is specifically configured to display the target window in the target display area in response to the first input.
Optionally, the user input module 406 is further configured to receive a second input; the second input is used for adjusting the display area of the target window; the display module 402 is further configured to update and display the target window based on the display area adjusted by the second input in response to the second input, and record display information of the target window in an extended identifier of the target window.
Optionally, the display module 402 is specifically configured to display the target window according to the display information recorded by the extension identifier when the target window is reloaded.
Optionally, the target display area is: a display area in an application window of a target application for displaying the target window; the display information includes: position information of the target display area in the application window; the target window and the application window have the same life cycle; the display module 402 is specifically configured to, when the application window is reloaded, superimpose and display the target window on the application window according to the display information recorded by the extension identifier.
Optionally, the apparatus further comprises: a content update module 407; the user input module 406 is further configured to receive a target operation for the target widget; the content updating module 407 is configured to update, in the second system, the display content included in the host window based on the target operation; the display module 402 is further configured to update the display content of the target window in the first system based on the updated host window.
The application provides a widget multiplexing device across systems, when a first system needs to display a target widget in a target window, a host window can be created in a second system, and the target widget is added in the host window.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may call logic instructions in memory 530 to perform a cross-system widget multiplexing method comprising: determining a target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a cross-system widget multiplexing method provided by the above methods, the method comprising: determining a target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program that when executed by a processor is implemented to perform the cross-system widget multiplexing method provided above, the method comprising: determining a target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system; displaying target content in a target window based on the host window generated by the second system; wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A cross-system widget multiplexing method is applied to a first system and is characterized by comprising the following steps:
determining a target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system;
displaying target content in a target window based on the host window generated by the second system;
wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
2. The method of claim 1, wherein after determining the target widget that needs to be exposed, the method further comprises:
sending a first message to the second system, controlling the second system to create the host window, and adding the target widget in the host window;
the displaying the target content in the target window based on the host window generated by the second system comprises:
receiving a second message sent by the second system; the second message includes the target content;
displaying the target content in the target window in response to the second message.
3. The method of claim 1, wherein prior to determining the target widget that needs to be presented, the method further comprises:
acquiring and displaying a widget list containing at least one widget identification;
the method for determining the target widget needing to be presented comprises the following steps:
receiving a first input; the first input is for dragging the target widget identification from the widget list to a target display area; the target widget identification is an identification corresponding to a target widget in the at least one widget identification;
the displaying of the target content in the target window includes:
in response to the first input, displaying the target window in the target display area.
4. The method of claim 3, wherein after displaying the target content in the target window based on the host window generated by the second system, the method further comprises:
receiving a second input; the second input is used for adjusting the display area of the target window;
and responding to the second input, updating and displaying the target window based on the display area adjusted by the second input, and recording the display information of the target window in the expansion mark of the target window.
5. The method of claim 4, wherein in response to the second input, after updating the display of the target window based on the second input adjusted display area and recording the display information of the target window in the extended identifier of the target window, the method further comprises:
and when the target window is reloaded, displaying the target window according to the display information recorded by the extension identification.
6. The method of claim 5, wherein the target display area is: a display area in an application window of a target application for displaying the target window; the display information includes: position information of the target display area in the application window; the target window and the application window have the same life cycle;
when the target window is reloaded, displaying the target window according to the display information recorded by the extension identifier, including:
and when the application window is reloaded, the target window is superposed and displayed on the application window according to the display information recorded by the extension identification.
7. The method of claim 1, wherein after displaying the target content in the target window, the method further comprises:
receiving a target operation for the target widget;
updating, in the second system, the display content contained in the host window based on the target operation;
updating the display content of the target window in the first system based on the updated host window.
8. An apparatus for cross-system widget multiplexing, the apparatus comprising:
the determining module is used for determining the target widget to be displayed; the target widget is a widget applied to a second system; the second system is a different operating system than the first system;
the display module is used for displaying target content in the target window based on the host window generated by the second system;
wherein the host window is used for carrying the target widget; the target content is display content contained in the host window.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the cross-system widget multiplexing method according to any of claims 1 to 7.
10. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the cross-system widget reuse method according to any of claims 1 to 7.
CN202111327605.8A 2021-11-10 2021-11-10 Cross-system widget multiplexing method and device Active CN114090172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111327605.8A CN114090172B (en) 2021-11-10 2021-11-10 Cross-system widget multiplexing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111327605.8A CN114090172B (en) 2021-11-10 2021-11-10 Cross-system widget multiplexing method and device

Publications (2)

Publication Number Publication Date
CN114090172A true CN114090172A (en) 2022-02-25
CN114090172B CN114090172B (en) 2024-06-18

Family

ID=80299604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111327605.8A Active CN114090172B (en) 2021-11-10 2021-11-10 Cross-system widget multiplexing method and device

Country Status (1)

Country Link
CN (1) CN114090172B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087958A1 (en) * 2022-10-25 2024-05-02 华为技术有限公司 Method for opening functional interface of application, apparatus, and terminal device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5874960A (en) * 1995-07-05 1999-02-23 Microsoft Corporation Method and system for sharing applications between computer systems
JPH11119967A (en) * 1997-10-16 1999-04-30 Toshiba Corp Network type computer system and window component display control method
CN1615507A (en) * 2003-05-09 2005-05-11 微软公司 System for hosting graphical layout/presentation objects
US20070130521A1 (en) * 2005-11-14 2007-06-07 Gonzalez Carlos J System and method for displaying advertisement using flash memory storage devices
KR20130024048A (en) * 2011-08-30 2013-03-08 한국과학기술원 Memo management method using widget, recording medium for the same
CN106844066A (en) * 2017-01-22 2017-06-13 腾讯科技(深圳)有限公司 One kind application operation method, apparatus and system
CN110321192A (en) * 2019-04-29 2019-10-11 上海连尚网络科技有限公司 A kind of method and apparatus that boarding program is presented
US20200150859A1 (en) * 2018-11-09 2020-05-14 Aver Information Inc. Method of operating widget on an electronic device
KR20200069703A (en) * 2018-12-07 2020-06-17 주식회사 코드펀치 An input system changing the input window dynamically and a method thereof
CN112181571A (en) * 2020-09-28 2021-01-05 北京字节跳动网络技术有限公司 Floating window display method, device, terminal and storage medium
CN112925570A (en) * 2021-02-24 2021-06-08 深圳市皓丽智能科技有限公司 Application operation method and device based on dual systems, electronic equipment and storage medium
CN113407293A (en) * 2021-08-19 2021-09-17 北京鲸鲮信息系统技术有限公司 Window management method, device, equipment and storage medium
CN113407086A (en) * 2021-08-20 2021-09-17 北京鲸鲮信息系统技术有限公司 Object dragging method, device and storage medium
CN113542503A (en) * 2020-03-31 2021-10-22 华为技术有限公司 Method, electronic device and system for creating application shortcut

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5874960A (en) * 1995-07-05 1999-02-23 Microsoft Corporation Method and system for sharing applications between computer systems
JPH11119967A (en) * 1997-10-16 1999-04-30 Toshiba Corp Network type computer system and window component display control method
CN1615507A (en) * 2003-05-09 2005-05-11 微软公司 System for hosting graphical layout/presentation objects
US20070130521A1 (en) * 2005-11-14 2007-06-07 Gonzalez Carlos J System and method for displaying advertisement using flash memory storage devices
KR20130024048A (en) * 2011-08-30 2013-03-08 한국과학기술원 Memo management method using widget, recording medium for the same
CN106844066A (en) * 2017-01-22 2017-06-13 腾讯科技(深圳)有限公司 One kind application operation method, apparatus and system
US20200150859A1 (en) * 2018-11-09 2020-05-14 Aver Information Inc. Method of operating widget on an electronic device
KR20200069703A (en) * 2018-12-07 2020-06-17 주식회사 코드펀치 An input system changing the input window dynamically and a method thereof
CN110321192A (en) * 2019-04-29 2019-10-11 上海连尚网络科技有限公司 A kind of method and apparatus that boarding program is presented
CN113542503A (en) * 2020-03-31 2021-10-22 华为技术有限公司 Method, electronic device and system for creating application shortcut
CN112181571A (en) * 2020-09-28 2021-01-05 北京字节跳动网络技术有限公司 Floating window display method, device, terminal and storage medium
CN112925570A (en) * 2021-02-24 2021-06-08 深圳市皓丽智能科技有限公司 Application operation method and device based on dual systems, electronic equipment and storage medium
CN113407293A (en) * 2021-08-19 2021-09-17 北京鲸鲮信息系统技术有限公司 Window management method, device, equipment and storage medium
CN113407086A (en) * 2021-08-20 2021-09-17 北京鲸鲮信息系统技术有限公司 Object dragging method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087958A1 (en) * 2022-10-25 2024-05-02 华为技术有限公司 Method for opening functional interface of application, apparatus, and terminal device

Also Published As

Publication number Publication date
CN114090172B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
US12056519B2 (en) Virtual machine migration method and apparatus
CN107203419B (en) Method, device and system for calling among modules in application program
EP1906302A1 (en) Usage of virtualization software for shipment of software products
CN109168328B (en) Virtual machine migration method and device and virtualization system
CN107168780B (en) Virtual reality scene loading method and equipment and virtual reality equipment
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
CN107329792B (en) Docker container starting method and device
CN108958873B (en) Configuration method, device, medium and computer equipment for status bar immersive effect
CN114090172B (en) Cross-system widget multiplexing method and device
CN115051846A (en) Deployment method of K8S cluster based on super fusion platform and electronic equipment
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN104133706A (en) Firmware modifying method and device
CN112685040B (en) Method, device, equipment and storage medium for generating interface file in android system
CN112328297B (en) Method and device for upgrading Android system running compatibly on Linux
US20240078072A1 (en) Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium
CN114115958A (en) Program starting method and terminal equipment
CN115599451A (en) Boot method and device for multiple operating systems
CN116225617A (en) Management migration method and device for container instance, electronic equipment and storage medium
US20200195712A1 (en) Methods, apparatuses and systems for cloud-based disaster recovery
CN109062670A (en) A kind of virtual machine migration method and device
CN115480910A (en) Multi-cluster resource management method and device and electronic equipment
CN115129339A (en) Small program dynamic updating method, device and medium based on Flutter
CN113282328A (en) Application program updating method, computer device and computer storage medium
US10768911B2 (en) Managing software components for software application development
US11836478B2 (en) Virtual network function and physical network function software upgrade

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220421

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082

Applicant before: Beijing jingling Information System Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant