WO2022057563A1 - 一种双系统中用户界面的显示方法及电子设备 - Google Patents

一种双系统中用户界面的显示方法及电子设备 Download PDF

Info

Publication number
WO2022057563A1
WO2022057563A1 PCT/CN2021/113608 CN2021113608W WO2022057563A1 WO 2022057563 A1 WO2022057563 A1 WO 2022057563A1 CN 2021113608 W CN2021113608 W CN 2021113608W WO 2022057563 A1 WO2022057563 A1 WO 2022057563A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
operating system
electronic device
interface
displaying
Prior art date
Application number
PCT/CN2021/113608
Other languages
English (en)
French (fr)
Inventor
谭飏
黄励哲
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2022057563A1 publication Critical patent/WO2022057563A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of human-computer interaction, and in particular, to a method and electronic device for displaying a user interface in a dual system.
  • An operating system is a computer program that manages hardware and software resources of an intelligent terminal.
  • the operating system can handle basic tasks such as managing and configuring memory, prioritizing the supply and demand of system resources, controlling input and output devices, operating the network, and managing the file system.
  • basic tasks such as managing and configuring memory, prioritizing the supply and demand of system resources, controlling input and output devices, operating the network, and managing the file system.
  • development and operation of applications must depend on a specific operating system, for example, based on System-designed applications do not run properly in in the system.
  • two operating systems are installed on some smart terminals.
  • the user can choose to run one of the two operating systems. In this way, users can use applications in different operating systems on the same smart terminal.
  • the embodiments of the present application provide a method for displaying a user interface in a dual system and a related device, which can realize fast switching between two operating systems.
  • an embodiment of the present application provides a method for displaying a user interface in a dual system.
  • the method is applied to an electronic device, where a first operating system and a second operating system are installed on the electronic device, and the first operating system is installed.
  • the method includes: the electronic device detects a first operation; in response to the first operation, the electronic device displays a first interface, the first interface includes a first an application icon of an application and an application icon of a second application, the first application is an application installed in the first operating system, the second application is an application installed in the second operating system, the The first interface is a user interface in the first operating system.
  • the first operation includes: triggering the electronic device to switch from a screen-off state to displaying the first interface, triggering the electronic device to switch from displaying another interface Switching to one or more of the operations of displaying the first interface; wherein the other interfaces are the user interface of the first operating system and the user interface of the second operating system displayed by the electronic device User interfaces other than the first interface in .
  • the method further includes: the electronic device receives a second operation for the application icon of the second application; in response to the second operation, the The electronic device switches from displaying the first interface to displaying the user interface of the second application.
  • the user can conveniently and quickly switch the electronic device to run the second operating system by touching the application icon of the second application, thereby improving the switching efficiency between the two systems.
  • switching the electronic device from displaying the first interface to displaying the user interface of the second application includes: the electronic device switches from displaying the first interface to displaying the first interface. Switching to displaying a transition animation, where the transition animation includes the interface content of the first interface and/or the interface content of the application interface of the second application; the electronic device switches from displaying the transition animation to displaying the first interface 2.
  • the user interface of the application includes: the electronic device switches from displaying the first interface to displaying the first interface.
  • the user interface of the second application includes a switching control
  • the method further includes: the electronic device receives a third operation for the switching control; In response to the third operation, the electronic device switches from displaying the user interface of the second application to displaying the first interface.
  • displaying the first interface by the electronic device includes: acquiring, by the electronic device, a first application list, where the first application list includes an application on the first operating system.
  • the electronic device displays the first interface according to the first application list.
  • the method further includes: the electronic device detects an update event of the first application list; the electronic device acquires the first application list; wherein, The update event of the first application list includes: installing the third application on the electronic device, uninstalling the fourth application from the electronic device, updating the fifth application on the electronic device, and the current time reaches a preset value.
  • the refresh time of the first application list the electronic device switches from displaying the user interface in the second operating system to displaying one or more items of the user interface in the first operating system.
  • acquiring the first application list by the electronic device includes: acquiring, by the electronic device, a second application list through the first operating system, and the second application list
  • the list includes application information of applications installed on the first operating system; the electronic device sends an acquisition request to the second operating system through the first operating system, where the acquisition request is used to acquire a third application list , the third application list includes application information of applications installed on the second operating system; the electronic device receives the third application list sent by the second operating system through the first operating system; The electronic device determines the first application list according to the second application list and the third application list.
  • switching the electronic device from displaying the first interface to displaying the user interface of the second application includes: the electronic device uses the first operating system Intercept and cache the interface content of the first interface; the electronic device sends a first switching instruction to the second operating system through the first operating system, where the first switching instruction includes first data, and the The first data is used to indicate the interface content of the first interface, and the first switching instruction is used to instruct the second operating system to display the first interface; the second operating system displays the first user interface; the electronic device sends the application information of the second application to the second operating system through the first operating system; the electronic device according to the first operating system data and application information of the second application, and a transition animation is displayed through the second operating system, and the transition animation includes the interface content of the first interface and/or the interface content of the application interface of the second application; The electronic device runs the second application through the second operating system, and displays an application interface of the second application.
  • the method further includes: hibernating the electronic device The processor corresponding to the first operating system. In this way, the power consumption of the electronic device can be saved.
  • switching the electronic device from displaying the user interface of the second application to displaying the first interface includes: the electronic device uses the second operating system Intercepting and caching the interface content of the user interface of the second application; the electronic device sends a second switching instruction to the first operating system through the second operating system, where the second switching instruction includes second data , the second data is used to indicate the interface content of the user interface of the second application, and the second switching instruction is used to instruct the first operating system to display the user interface of the second application; the electronic device Display the user interface of the second application through the first operating system according to the second switching instruction; the electronic device sends the application information of the sixth application to the first operating system through the second operating system,
  • the switching control corresponds to the sixth application, and the first interface is included in the user interface of the sixth application; the electronic device according to the second data and the application information of the sixth application, through The first operating system displays a transition animation, and the transition animation includes the interface content of the user interface of the second application and/or the first
  • the method further includes: hibernating the electronic device The processor corresponding to the second operating system. In this way, the power consumption of the electronic device can be saved.
  • an embodiment of the present application provides an electronic device, the electronic device is installed with a first operating system and a second operating system, the first operating system is different from the second operating system, the electronic device Including two or more processors, memory; the memory is coupled with the two or more processors, the memory is used to store program codes, the two or more processors
  • the program code is invoked to cause the electronic device to perform the following operations: detecting a first operation; in response to the first operation, displaying a first interface, where the first interface includes an application icon of the first application and a second an application icon of an application, the first application is an application installed in the first operating system, the second application is an application installed in the second operating system, and the first interface is an application installed in the first operating system A user interface in an operating system.
  • the first operation includes: triggering the electronic device to switch from a screen-off state to displaying the first interface, triggering the electronic device to switch from displaying another interface Switching to one or more of the operations of displaying the first interface; wherein the other interfaces are the user interface of the first operating system and the user interface of the second operating system displayed by the electronic device User interfaces other than the first interface in .
  • the two or more processors call the program code to cause the electronic device to further perform the following operations: receiving a request for the second application a second operation of an application icon; in response to the second operation, switching from displaying the first interface to displaying a user interface of the second application.
  • the two or more processors call the program code to cause the electronic device to specifically perform the following operations: switching from displaying the first interface to Displaying a transition animation, the transition animation including the interface content of the first interface and/or the interface content of the application interface of the second application; switching from displaying the transition animation to displaying the user interface of the second application.
  • a switching control is included in the user interface of the second application, and the two or more processors call the program code to make the electronic device The following operations are also performed: receiving a third operation for the switching control; and switching from displaying the user interface of the second application to displaying the first interface in response to the third operation.
  • the two or more processors call the program code to cause the electronic device to specifically perform the following operations: acquire a first application list, the first application list An application list includes application information of applications installed on the first operating system and application information of applications installed on the second operating system, where the application information includes application icons of applications, names of applications, applications of applications One or more items in the package identification number ID; the first interface is displayed according to the first application list.
  • the two or more processors call the program code to cause the electronic device to further perform the following operation: detecting that the first application list an update event; obtain the first application list; wherein, the update event of the first application list includes: installing a third application on the electronic device, uninstalling a fourth application from the electronic device, and the electronic device The update of the fifth application above, the current time reaches the preset refresh time of the first application list, and the electronic device switches from displaying the user interface in the second operating system to displaying the user interface in the first operating system.
  • the two or more processors call the program code to cause the electronic device to further perform the following operation: detecting that the first application list an update event; obtain the first application list; wherein, the update event of the first application list includes: installing a third application on the electronic device, uninstalling a fourth application from the electronic device, and the electronic device The update of the fifth application above, the current time reaches the preset refresh time of the first application list, and the electronic device switches from displaying the user interface in the second operating system to displaying the
  • the two or more processors call the program code to cause the electronic device to specifically perform the following operations: obtain the first operating system through the first operating system 2.
  • An application list where the second application list includes application information of applications installed on the first operating system; an acquisition request is sent to the second operating system through the first operating system, and the acquisition request is used for Acquire a third application list, where the third application list includes application information of applications installed on the second operating system; receive the third application list sent by the second operating system through the first operating system ; Determine the first application list according to the second application list and the third application list.
  • the two or more processors call the program code to cause the electronic device to specifically perform the following operations: intercept and Cache the interface content of the first interface; send a first switching instruction to the second operating system through the first operating system, where the first switching instruction includes first data, and the first data is used to indicate The interface content of the first interface, the first switching instruction is used to instruct the second operating system to display the first interface; the second operating system displays the first interface according to the first switching instruction user interface; sending application information of the second application to the second operating system through the first operating system; sending application information of the second application through the second operating system according to the first data and the application information of the second application displaying a transition animation, where the transition animation includes the interface content of the first interface and/or the interface content of the application interface of the second application; running the second application through the second operating system, and displaying the The application interface of the second application.
  • the two or more processors call the program code to cause the electronic device to further perform the following operation: hibernate the first operating system corresponding to the processor.
  • the two or more processors call the program code to cause the electronic device to specifically perform the following operations: intercept and upload through the second operating system Cache the interface content of the user interface of the second application; send a second switching instruction to the first operating system through the second operating system, where the second switching instruction includes second data, and the second data is used to instruct the interface content of the user interface of the second application, and the second switching instruction is used to instruct the first operating system to display the user interface of the second application;
  • the first operating system displays the user interface of the second application; the second operating system sends application information of the sixth application to the first operating system, and the switching control corresponds to the sixth application, so
  • the first interface is included in the user interface of the sixth application; according to the second data and the application information of the sixth application, a transition animation is displayed through the first operating system, and the transition animation includes the sixth application.
  • the interface content of the user interface of the second application and/or the first interface; the sixth application is run through the second operating system, and the first interface is displayed.
  • the two or more processors call the program code to cause the electronic device to further perform the following operation: hibernate the corresponding second operating system processor.
  • the present application provides a computer program product, the computer program product includes computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the above-mentioned first aspect and the first aspect. Any possible implementation of the method described.
  • the present application provides a computer-readable storage medium, comprising instructions, when the above-mentioned instructions are executed on an electronic device, the above-mentioned electronic device is made to perform as described in the above-mentioned first aspect and any possible implementation manner of the first aspect Methods.
  • beneficial effects that can be achieved by the computer program product described in the third aspect and the computer-readable storage medium described in the fourth aspect can refer to the beneficial effects in the corresponding methods provided above, here No longer.
  • the first interface in the first operating system of the electronic device includes application icons of applications installed in the first operating system and application icons of applications installed in the second operating system.
  • the user can view the application icons of the applications installed on the two operating systems on the first interface.
  • the user can conveniently and quickly switch the electronic device from running the first operating system to running the second operating system by touching the application icon of the application in the second operating system, thereby improving the switching efficiency between the two operating systems.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • 1B is a software structural block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a desktop displayed on an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of a desktop display provided by an embodiment of the present application.
  • FIGS. 4A-4B are schematic diagrams of desktops displayed on some electronic devices provided by embodiments of the present application.
  • 5A-5D are schematic diagrams of user interfaces displayed on some electronic devices provided by embodiments of the present application.
  • FIG. 6 is a flowchart of a dual-system switching provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a transition animation provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a user interface displayed on another electronic device provided by an embodiment of the present application.
  • FIG. 9 is a flowchart of another dual-system switching provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a connection system between a set-top box and a TV provided by an embodiment of the present application;
  • FIG. 11 is a flowchart of a method for displaying a user interface in a dual system provided by an embodiment of the present application.
  • words such as “first” and “second” are only used for the purpose of distinguishing and describing, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order .
  • Features delimited with “first” and “second” may expressly or implicitly include one or more of that feature.
  • words such as “exemplary” or “for example” are used to mean serving as an example, illustration or illustration. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
  • UI user interface
  • the term user interface (UI) in the description, claims and drawings of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes the internal form of information and the user interface. Conversions between forms are acceptable.
  • the user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), the interface source code is parsed and rendered on the electronic device 300, and finally presented as a user-identifiable Content, such as images, text, buttons and other controls.
  • Controls are the basic elements of the user interface. Typical controls include buttons, widgets, toolbars, menu bars, text boxes, scroll bars ( scrollbar), pictures and text.
  • the attributes and content of controls in the interface are defined by tags or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or property in the interface, and the node is rendered as user-visible content after parsing and rendering.
  • applications such as hybrid applications, often contain web pages in their interface.
  • a web page also known as a page, can be understood as a special control embedded in an application program interface.
  • a web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading styles Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • the source code of the web page can be loaded and displayed as user-identifiable content by a browser or a web page display component similar in function to a browser.
  • the specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of web pages through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • GUI refers to a user interface related to computer operations that is displayed graphically. It can be an interface element such as a window, a control, etc. displayed in the display screen of the electronic device.
  • the electronic device 10 can execute the methods and steps involved in the embodiments of the present application.
  • FIG. 1A shows a schematic structural diagram of an electronic device 10 .
  • the electronic device 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera module 193, display screen 194 , and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180G, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 10 .
  • the electronic device 10 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a central processing unit (central processing unit, CPU), a graphics processing unit (graphics processing unit, GPU) , neural-network processing unit (NPU), modem processor, image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor) processor, DSP), baseband processor, etc.
  • application processor application processor
  • AP central processing unit
  • CPU central processing unit
  • graphics processing unit graphics processing unit
  • NPU neural-network processing unit
  • modem processor image signal processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • the electronic device 10 includes at least two processors, exemplarily including processors 110A and 110B.
  • the processors 110A and 110B may also be collectively referred to as processors in the present application 110.
  • the master processor and the slave processor are only concepts to distinguish two different processors that exist in the electronic device 10 at the same time in the embodiment of the present application.
  • the first processor is a master processor, and its computing power is relatively high, but its power consumption is relatively high; the second processor is a slave processor, and its computing power is lower than that of the main processor, but its power consumption is relatively low.
  • the first processor and the second processor may be processors of the same specification.
  • the first processor When running the first operating system, the first processor performs corresponding calculations, and at this time, the second processor is in a sleep or power-down state.
  • the second processor When running the second operating system, the second processor performs corresponding calculations, and at this time, the first processor is in a sleep or power-down state.
  • the first operating system running corresponding to the first processor is different from the second operating system running corresponding to the second processor, for example, the first operating system may be Android system, Huawei Hongmeng system, etc., the second operating system may be an embedded operating system suitable for a micro control unit (Micro controller Unit, MCU), such as liteOS (lightweight Internet of Things operating system).
  • MCU micro controller Unit
  • liteOS lightweight Internet of Things operating system
  • the processor 110 may include a controller, and the controller may be the nerve center and command center of the electronic device 10 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby increasing the efficiency of the electronic device 10 .
  • the electronic device 10 can implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute instructions to generate or change display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 10 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 10 may implement a camera function through a camera module 193, an ISP, a video codec, a GPU, a display screen 194, an application processor AP, a neural network processor NPU, and the like.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 10 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the electronic device 10 exemplarily shown in FIG. 1A may display various user interfaces described in various embodiments below through the display screen 194 .
  • the electronic device 10 can detect a touch operation in each user interface through the touch sensor 180K, for example, a click operation (such as a touch operation on an icon, a double-click operation) in each user interface, and, for example, an up or down operation in each user interface. A downward swipe operation, or an operation to draw a swipe track, etc.
  • the electronic device 10 may detect a motion gesture performed by the user holding the electronic device 10, such as shaking the electronic device, through the gyro sensor 180B, the acceleration sensor 180E, and the like.
  • the electronic device 10 can detect non-touch gesture operations through the camera module 193 (eg, a 3D camera, a depth camera).
  • FIG. 1A does not constitute a specific limitation on the electronic device 10 .
  • the electronic device 10 may include more or less components than those shown in FIG. 1A , or combine some components, or separate some components, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device 10 is loaded with at least two operating systems, wherein the software system of the electronic device 10 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, Microservice architecture, or cloud architecture.
  • the electronic device 10 includes two processors, wherein, when running the first operating system, the first processor executes corresponding operations; when running the second operating system, the second processor executes corresponding operations operation.
  • at least two operating systems loaded in the electronic device 10 may be the same or different. Take the first operating system as system, the second operating system is the liteOS system as an example, to illustrate the software architecture of the electronic device 10 by way of example.
  • FIG. 1B is a block diagram of a software structure of an electronic device 10 provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system ie the first operating system
  • the liteOS system ie the second operating system
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, and the hardware abstraction layer ( hardware abstraction layer, HAL) and kernel layer.
  • the application layer can include one or more applications.
  • 1B exemplarily shows a desktop launcher 1 (Launcher), a system user interface (SystemUI) 1, a setting (Setting), a camera, a gallery, a calendar, music and other applications.
  • the application layer may also include other applications, such as: phone calls, videos, short messages, game applications, instant messaging applications, shopping applications, and the like.
  • Launcher1 is one of the main program components in the Android system.
  • the electronic device 10 starts the application of the Android desktop through Launcher1.
  • an application icon of an application installed in the first operating system and an application icon of an application installed in the second operating system may be displayed on the desktop of the electronic device 10 .
  • Launcher1 can obtain the application list in the first operating system and the second operating system, and the application list records application information of multiple applications, for example, the application icon, application name, and application package ID of the application, and so on.
  • SystemUI1 is the system interface of the Android system. It may include a status bar above the user interface of the electronic device 10, a navigation bar below, a lock screen interface (Keyguard), a power interface (PowerUI), a recent task interface (Recent Task), and the like.
  • Settings is an application of the electronic device 10 .
  • the user can customize the selection of various functional options of the electronic device 10 by setting, for example, Bluetooth, GPS (Global Positioning System), Wi-Fi, and so on.
  • the user can also use the settings to customize various setting options of the electronic device, such as display brightness, volume size, display font size, and so on.
  • the user can customize the selection of the dual-system switching mode provided by the embodiments of the present application by setting, for example, can choose whether to enable the transition animation special effects in the dual-system switching process, or not. Select transition animation effects during dual system switching, and more.
  • the user may select whether to enable the dual-system switching function provided by the embodiments of the present application through settings.
  • the user may choose to set the first operating system or the second operating system as the main operating system by setting, and similarly, the user may choose to use the first processor or the second processor as the main processor.
  • the application framework layer provides an application programming interface (API) and a programming framework for the applications of the application layer.
  • the application framework layer includes some predefined functions. As shown in FIG. 1B , the application framework layer may include an application management module 1, a window management module (WindowManagerService), a switching module 1, a phone manager, a notification manager, and the like. in:
  • the application management module 1 can be used to manage various applications installed on the first operating system.
  • the application management module 1 maintains an application list, and the application list records application information of multiple applications installed on the first operating system, such as application icons, application names, and application package IDs of the applications, etc. Wait. According to the user's operation of adding and deleting applications, the application management module 1 updates the application list.
  • the application management module 1 may also obtain an application list of the second operating system through the switching module, where the application list records application information of multiple applications installed on the second operating system. That is, the application list maintained by the application management module 1 also includes application information of the applications in the second operating system.
  • a window manager which can be used to manage window programs. Can be used for window creation and destruction, window display and hide, window layout, input method management and wallpaper management, and so on.
  • the window manager can also get the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • the switching module 1 can manage the control rights of a touch panel (touch panel, TP)/liquid crystal display (liquid crystal display, LCD) (or other types of display panels, not limited to LCD).
  • the TP may refer to the touch sensor 180K shown in FIG. 1A
  • the LCD may refer to the display screen 194 shown in FIG. 1A .
  • the TP is used to receive user operations, and the LCD is used to display the user interface.
  • the switch module 1 can transfer the TP/LCD control right to the switch module 2 in the second operating system, and the switch module 1 can also take over the TP/LCD control right transferred by the switch module 2 in the second operating system.
  • the switching module 1 may also provide animation effects during the switching process of the application interface.
  • the switching module 1 can also obtain the application information of the installed applications in the second operating system through the switching module 2 in the second operating system.
  • the switching module 1 can send the application information of the installed applications in the second operating system to the Launcher 1, so that the Launcher 1 can display the application icons of the applications in the second operating system.
  • the phone manager can be used to provide the communication function of the electronic device 10 .
  • the management of call status including connecting, hanging up, etc.).
  • Notification Manager which enables applications to display notification information in the status bar, can be used to convey notification-type messages, and disappear automatically after a short stay without user interaction.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of a graph or scroll bar text, and can also display notifications on the screen in the form of a dialog window.
  • the Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • the hardware abstraction layer can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine 1 (eg: SGL), touch screen service, display service, dual-core communication service, etc.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, G.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library can be used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D Graphics Engine 1 is a drawing engine for 2D drawing.
  • the touch screen service 1 can be used to process the received touch screen operation.
  • the display service 1 can be used to process the user interface that needs to be displayed by the first operating system.
  • the dual-core communication service 1 can be used to process the interaction information between the first processor and the second processor.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes display driver 1, camera driver, audio driver, sensor driver, touch screen driver 1, dual-core communication driver 1, and so on.
  • the display driver 1 has a connection relationship with the display screen 194, and when the switching module 1 has the TP/LCD control right of the electronic device, the display driver 1 can drive the display screen 194 to display a user interface.
  • the touch screen driver 1 has a connection relationship with the touch sensor 180K. In the case that the switching module 1 has the TP/LCD control right of the electronic device, the touch screen driver 1 can convert the touch operation detected by the touch sensor 180K into a touch command. And upload the touch command to the touch screen service 1 for processing.
  • the dual-core communication driver 1 has a connection relationship with the dual-core communication driver 2 of the second processor, and is used for transmitting the interaction information between the first processor and the second processor.
  • the application layer can include one or more applications.
  • FIG. 1B exemplarily shows Application 1, Application 2, Application 3, and so on.
  • these applications may be desktop launcher 2 (not shown), system user interface 2 (not shown), fitness applications, and the like.
  • the desktop launcher 2 can be used to launch a desktop application of the liteOS system, and its specific function can refer to the desktop launcher 1 in this application.
  • the desktop of the electronic device 10 is displayed as a desktop in the second operating system, and the desktop includes application icons of applications installed in the second operating system.
  • the system user interface 2 is the system interface of the liteOS system. It can include the status bar above the user interface in the second operating system, the navigation bar below, the lock screen interface (Keyguard), the power interface (PowerUI), the recent task interface (Recent Task), etc. Wait.
  • the application framework layer provides an application programming interface (API) and a programming framework for the applications of the application layer.
  • the application framework layer includes some predefined functions. As shown in FIG. 1B , the application framework layer may include an application management module 2 , a switching module 2 and so on. in:
  • the application management module 2 can be used to manage various applications installed on the second operating system.
  • the application management module 2 maintains an application list, and the application list records application information of multiple applications installed on the second operating system, such as application icons, application names, and application package IDs of the applications, etc. Wait. According to the user's operations of adding and deleting applications, the application management module 2 updates the application list.
  • the switching module 2 can manage the control rights of TP/LCD (or other types of display panels, not limited to LCD, LCD is just an example).
  • the switch module 2 can transfer the TP/LCD control right to the switch module 1 in the first operating system, and the switch module 2 can also take over the TP/LCD control right transferred by the switch module 1 in the first operating system.
  • the switching module 2 may further provide animation effects during the switching process of the application interface.
  • the switching module 2 may also send the application information of the installed applications in the second operating system to the switching module 1 in the first operating system.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • the hardware abstraction layer can include multiple functional modules.
  • 2D graphics engine 2 eg: SGL
  • touch screen service e.g: touch screen service
  • display service e.g: touch screen service
  • dual-core communication service e.g.
  • 2D Graphics Engine 2 is a drawing engine for 2D drawing.
  • the touch screen service 2 can be used to process the received touch screen operation.
  • the display service 2 can be used to process the user interface that needs to be displayed by the first operating system.
  • the dual-core communication service 2 can be used to process the interaction information between the first processor and the second processor.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes display driver 2, touch screen driver 2, dual-core communication driver 2, and so on.
  • the display driver 2 has a connection relationship with the display screen 194, and when the switching module 2 has the TP/LCD control right of the electronic device, the display driver 2 can drive the display screen 194 to display a user interface.
  • the touch screen driver 2 has a connection relationship with the touch sensor 180K. In the case that the switching module 2 has the TP/LCD control right of the electronic device, the touch screen driver 2 can convert the touch operation detected by the touch sensor 180K into a touch command. And upload the touch command to the touch screen service 2 for processing.
  • the dual-core communication driver 2 has a connection relationship with the dual-core communication driver 1 of the first processor, and is used for transmitting the interaction information between the first processor and the second processor.
  • the software architecture of the electronic device shown in FIG. 1B is only an implementation manner of the embodiments of the present application. In practical applications, the electronic device may further include more or less software modules, which is not limited here.
  • the electronic device 10 may further include a display module based on the software structure shown in FIG. 1B , and the display module is configured to display a corresponding user interface according to the operation of each software module.
  • the display module For the user interface displayed by the display module, reference may be made to the user interface exemplarily shown in the following embodiments.
  • the electronic device 10 can implement the methods and steps in all the embodiments described in this application.
  • FIG. 2 is a schematic diagram of a desktop displayed on an electronic device provided by an embodiment of the present application.
  • the user interface 21 may include: a status bar 201, a calendar widget 213, a weather widget 215, and applications of multiple applications icon. in:
  • Status bar 201 may include: one or more signal strength indicators 203 for mobile communication signals (also known as cellular signals), one or more signal strength indicators 205 for wireless fidelity (Wi-Fi) signals , the battery status indicator 209.
  • signal strength indicators 203 for mobile communication signals also known as cellular signals
  • signal strength indicators 205 for wireless fidelity (Wi-Fi) signals the battery status indicator 209.
  • Calendar widget 213 may be used to indicate the current time, such as date, day of the week, hour and minute information, and the like.
  • the weather widget 215 may be used to indicate the weather type, such as cloudy to sunny, light rain, etc., and may also be used to indicate information such as temperature.
  • the application icons of multiple applications can be, for example, the icon 225 of the phone, the icon 229 of the contact, the icon 241 of the short message, the icon 235 of the mailbox, the icon 237 of the cloud sharing, the icon 245 of the gallery, the icon 247 of the settings, and the icon of the sports health. icon 249.
  • applications such as phone calls, contacts, short messages, mailboxes, gallery, and settings are installed on the first operating system, and applications such as cloud sharing and sports health are installed on the second operating system.
  • the electronic device 10 may display application icons of applications installed in the first operating system and application icons of applications installed in the second operating system on the desktop.
  • User interface 21 may also include a page indicator 251 .
  • App icons for other apps can be distributed on other pages.
  • the page indicator 251 can be used to indicate the number of pages and which page the user is currently browsing. For example, the page indicator 251 displays 3 dots, and the second dot is black, and the other two dots are White, indicating that the current mobile phone includes 3 pages, and the user is browsing the second page.
  • users can swipe left and right on the current page to browse application icons in other pages.
  • the application icons in other pages may be application icons of applications installed in the first operating system, or may be application icons of applications installed in the second operating system.
  • the electronic device 10 may also include a home screen key.
  • the home screen key can be a physical key or a virtual key.
  • the home screen key can be used to receive a user's instruction, and in response to the user's instruction, return the currently displayed UI to the desktop, so that it is convenient for the user to view the desktop at any time.
  • the above instruction may be an operation instruction for the user to press the home screen key once, or an operation instruction for the user to press the home screen key twice in a short period of time, or the user presses the home screen key for a predetermined period of time. operation instructions.
  • the home screen key may further integrate a fingerprint reader, so that when the home screen key is pressed, fingerprint collection and identification are subsequently performed.
  • FIG. 2 only exemplarily shows a display mode of a desktop on the electronic device 10.
  • the desktop may also include more or less interface elements, which should not constitute a reference to the present invention. Limitations of application examples.
  • FIG. 3 it is a flowchart of a desktop display provided by an embodiment of the present application.
  • the Launcher1 in the first operating system processes the booting event.
  • the power-on operation may include an operation of turning on the power-on button.
  • the power-on button (or referred to as the power button) may be a physical button on the electronic device 10 .
  • the electronic device 10 When the electronic device 10 is turned off, if the user presses the power-on button for more than a preset time, the electronic device 10 starts up and loads the desktop.
  • the electronic device 10 may be powered on in other ways, for example, the electronic device 10 is powered on by means of remote control, voice wake-up, and timed power on, which are not limited in the embodiments of the present application.
  • Launcher1 handles a boot event, it can be understood that Launcher1 loads the desktop of the electronic device 10 , where the desktop includes application icons of applications installed on the first operating system and application icons of applications installed on the second operating system.
  • the first processor is the main processor.
  • the main processor in the electronic device 10 runs the first operating system.
  • S101 may also correspond to other operations, for example, the user uninstalls any application program in the electronic device 10, or the user installs a new application program on the electronic device 10, or Updates of applications installed on the electronic device 10 .
  • S101 may also be an operation of periodically refreshing the display application set in the electronic device, for example, the electronic device 10 is set to update the application in the device at predetermined intervals, so that the electronic device can be timely. The display comes from all applications in both operating systems.
  • Launcher1 invokes the application management module 1 to obtain an application list.
  • the application list includes application list 1 of the first operating system and application list 2 of the second operating system.
  • the application list 1 of the first operating system records application information of multiple applications installed on the first operating system.
  • the application list 2 of the second operating system records application information of multiple applications installed on the second operating system.
  • the application information includes: an application icon, an application name, and an application package ID of the application, and the like.
  • the application management module 1 can directly obtain the application list 1 in the first operating system; the application management module 1 can also indirectly obtain the application list 1 in the second operating system through the switching module 1 in the first operating system. After obtaining the application list 1 and the application list 2, the application management module 1 can also merge the application list 1 and the application list 2 to obtain a new application list 3. Finally, the first operation Launcher1 in the system gets the application list 3 and displays it on the desktop.
  • the application list 3 may include application information of all applications loaded in the first operating system and the second operating system.
  • the application management module 1 acquires the application list 1 of the first operating system.
  • the application management module 1 maintains an application list, where application information of multiple applications installed on the first operating system is recorded in the application list. According to the user's operation of adding and deleting applications, the application management module 1 updates the application list.
  • the application management module 1 queries the application information of multiple applications currently installed in the first operating system through the application layer, and obtains the application list of the first operating system in real time.
  • the application list 1 of the first operating system may be as shown in Table 1.
  • Table 1 exemplarily lists a possible representation of the application list 1.
  • Table 1 shows some information, and application list 1 may also include other information.
  • the applications installed on the first operating system include phone calls, contacts, short messages, emails, settings, and gallery; in addition, other applications may also be installed on the first operating system, and the application list 1 includes the current first operating system App information for all apps installed in .
  • the application management module 1 invokes the switching module 1 to obtain the application list 2 of the second operating system.
  • the application management module 1 calling the switching module 1 to obtain the application list 2 of the second operating system includes: the application management module 1 initiates a request to the switching module 1 to obtain the application list 2 of the second operating system, The switching module 1 initiates a request for obtaining the application list 2 of the second operating system to the switching module 2 in the second operating system, and then the switching module 2 in the second operating system initiates the application management module 2 in the second operating system.
  • the request for obtaining the application list 2 of the second operating system so that the application management module 1 indirectly obtains the application list 2 of the second operating system.
  • S104 may be performed synchronously with S103, or may be performed before or after S103.
  • the switching module 1 requests the switching module 2 of the second operating system for the application list 2 of the second operating system.
  • the switching module 1 in the first operating system generates an instruction message through the dual-core communication service 1, and the instruction message is used to instruct the switching module 2 of the second operating system to send the second operating system to the switching module 1 of the first operating system.
  • Operating system application list 2 After receiving the instruction message sent by the dual-core communication service 1, the dual-core communication driver 1 in the kernel layer (kernel) sends the instruction message to the dual-core communication driver 2 in the second operating system.
  • the dual-core communication driver 2 in the second operating system reports the received instruction message to the dual-core communication service 2 .
  • the dual-core communication service 2 processes the indication message, and initiates a request to the switching module 2, where the request is used to obtain the application list 2 of the second operating system.
  • the switching module 2 of the second operating system acquires the application list 2 of the second operating system.
  • the switching module 2 of the second operating system obtains the application list 2 of the second operating system including:
  • the switching module 2 of the second operating system initiates a request for acquiring the application list 2 of the second operating system to the application management module 2 (not shown) in the second operating system.
  • the application management module 2 obtains the application list 2 of the second operating system according to the request.
  • the application management module 2 feeds back the application list 2 of the second operating system to the switching module 2 of the second operating system.
  • the application management module 2 of the second operating system maintains an application list, and the application list records application information of multiple applications installed on the second operating system. According to the user's operations of adding and deleting applications, the application management module 2 updates the application list.
  • the application management module 2 of the second operating system queries the application information of multiple applications currently installed in the second operating system through the application layer, and obtains the application list of the second operating system in real time.
  • the application list 2 of the second operating system may be as shown in Table 2.
  • Table 2 exemplarily lists a possible representation of the application list 2. Part of the information is shown in Table 2, and other information may also be included in the application list 2.
  • the applications installed on the second operating system include cloud sharing and sports health; in addition, other applications may also be installed on the second operating system, and the application list 2 contains application information of all applications currently installed in the second operating system .
  • the switching module 2 of the second operating system feeds back the application list 2 of the second operating system to the switching module 1 of the first operating system.
  • the switching module 2 of the second operating system generates a feedback message through the dual-core communication service 2, and the feedback message includes the application list 2 of the second operating system.
  • the dual-core communication driver 2 in the kernel layer sends the feedback message to the dual-core communication driver 1 in the first operating system.
  • the dual-core communication driver 1 in the first operating system reports the received feedback message to the dual-core communication service 1 .
  • the dual-core communication service 1 processes the feedback message, and sends the application list 2 of the second operating system to the switching module 1 .
  • the switching module 1 of the first operating system feeds back the application list 2 of the second operating system to the application management module 1 .
  • the application management module 1 feeds back the application lists of the first operating system and the second operating system to the Launcher 1 of the first operating system.
  • the application management module 1 may combine the application list 1 of the first operating system and the application list 2 of the second operating system into one application list. Taking the above Table 1 and Table 2 as examples, the combined application list (ie, the aforementioned application list 3) can be referred to as shown in Table 3.
  • Launcher1 maintains a cache list, where the cache list records application information of multiple applications, for example, application icons of applications, application names, application package IDs, and arrangement of applications, and so on.
  • the electronic device 10 may create a three-dimensional array to record the arrangement of applications.
  • the first dimension is the number of screens
  • the second dimension is the vertical arrangement
  • the third dimension is the horizontal arrangement.
  • An application corresponds to a three-dimensional coordinate. For example, setting the arrangement of applications to (1, 2, 3) indicates that the location of the device application is the second column and the third row in the first screen of the desktop.
  • the electronic device 10 may create multiple two-dimensional arrays to record the arrangement of applications.
  • the serial numbers of the plurality of two-dimensional arrays correspond to different numbers of screens on the desktop; the first dimension in a two-dimensional array is the vertical arrangement, and the second dimension is the horizontal arrangement.
  • An application corresponds to a two-dimensional coordinate.
  • the camera application is in the second two-dimensional array, and the corresponding arrangement is (1, 3), indicating that the location of the camera application is the first column in the second screen of the desktop, The third row.
  • the electronic device 10 when moving, adding, or deleting application icons on the desktop, the electronic device 10 needs to update the array to maintain the correctness of the array.
  • the electronic device 10 may determine where to add the new application icon according to the state of the array and a preset rule.
  • the preset rule may be: the added application is displayed on an interface with a preset number of screens (for example, the home screen, the second screen, the last screen, etc.), and the display position is the last row and the next column in the current interface. Location. If all positions in the last row are occupied, it will be displayed on the first column of the next row after the last row. If all positions in the current interface are occupied, it will be displayed on the next interface of the interface adjacent to the preset number of screens . After that, update the array.
  • Launcher1 displays the desktop according to the application list 3 and the cache list. Specifically, Launcher 1 compares the application list 3 and the cache list, taking the comparison of the application name (which may also be the application package ID) as an example. If the application name included in the application list 3 is the same as the application name included in the cache list, Launcher 1 displays the application icons of each application according to the arrangement of the applications recorded in the cache list. If the application names included in the application list 3 are less than or more than the application names included in the cache list, Launcher 1 updates the cache list, and displays the application icons of each application according to the arrangement of the applications in the updated cache list.
  • the application name which may also be the application package ID
  • the updated rules can be:
  • the application information of the application not included in the application list 3 is deleted from the cache list, and the arrangement of the applications is updated.
  • the application icon of the application located after the deleted application is moved forward by one position. That is to say, the number of columns of the application icon in the next digit is decremented by one; if the number of columns after the reduction by one is 0, the number of rows of the application icon in the latter digit is decremented by one, and the number of columns is attached to the maximum number of columns. .
  • the following application icons are treated similarly. In another example, if there are no other application icons on the desktop where the deleted application is located, the desktop is deleted.
  • the application names included in the application list 3 are more than the application names included in the cache list, add the application information of the additional applications in the application list 3 to the cache list, and update the arrangement of the applications.
  • the added application is displayed on the interface of the preset number of screens (for example, the main screen, the second screen, the last screen, etc.), and the additional application is displayed in the last digit of the interface of the preset number of screens. After applying the icon.
  • the number of rows of the additional application is the same as the number of rows of the last application icon, and the number of columns is equal to the number of columns of the last application icon plus one; if the number of columns after adding one is greater than the maximum number of columns value, the number of rows of the additional application is equal to the number of rows of the last application icon plus one, and the number of columns is equal to one. If all positions on the interface of the preset number of screens are occupied, the excess application is displayed on the next interface adjacent to the interface of the preset number of screens, and is located after the last application icon in the next interface.
  • the following exemplifies the manner in which Launcher1 displays the desktop according to the feedback application list 3 .
  • the cache list stored in Launcher1 can be referred to as shown in Table 4 (corresponding to the desktop display mode in FIG. 2 ).
  • the application list 3 received by Launcher1 is shown in Table 5.
  • Launcher1 compares the application list 3 and the cache list.
  • the application list 3 contains more application names than the cache list.
  • Launcher1 updates the cache list.
  • the extra application (note) is displayed on the preset second screen, and the number of lines of the coordinates of the application is the same as the number of lines of the last application icon on the previous second screen, that is, is 3; the number of columns is equal to the number of columns of the last application icon plus one, which is 3.
  • the updated cache list can be referred to as shown in Table 6.
  • Launcher1 displays the application icons of each application according to the arrangement of the applications in the updated cache list.
  • the display effect diagram of the desktop may refer to the user interface 41 shown in FIG. 4A . Compared with FIG. 2 , on the desktop shown in FIG. 4A , an application icon 251 of a note-taking application is added.
  • Launcher1 displays an indicator on the application icon of the application of the second operating system, where the indicator is used to indicate that the application corresponding to the application icon where the indicator is located is installed on the second operating system.
  • FIG. 4B it is a schematic diagram of another desktop provided by an embodiment of the present application.
  • an indicator 261 is displayed on the application icon 237 of the cloud sharing application
  • an indicator 262 is displayed on the application icon 249 of the sports health application
  • an indicator 263 is displayed on the application icon 251 of the note-taking application.
  • the electronic device 10 when the electronic device is running the first operating system, if the user clicks on the application icon of the application in the second operating system, in response to the click operation, the electronic device 10 will switch to run the second operation system, and run the application corresponding to the application icon clicked by the user. In addition, it is not limited to the manner of clicking the application icon, and there may also be other manners of starting the application in the second operating system.
  • the electronic device 10 receives an instruction sent by the user through the remote controller to select the application icon.
  • the electronic device 10 listens to a voice instruction, and the voice instruction is used to instruct the electronic device 10 to start an application in the second operating system.
  • the electronic device 10 detects a gesture operation through a camera or a sensor, and the gesture operation is used to instruct the electronic device 10 to start an application in the second operating system.
  • FIGS. 5A-5C are schematic diagrams of some user interfaces provided by embodiments of the present application.
  • the electronic device 10 receives a touch operation (an example is a click operation) by a user on an application icon 249 of a sports health application (wherein, the application icon 249 is an application loaded in the second operating system). ), in response to the user operation, the electronic device 10 displays a transition animation of switching from the current application (ie, the Launcher1 application in the first operating system) to the sports health application. After that, the electronic device 10 displays the application interface in the sports health application.
  • a touch operation an example is a click operation
  • the electronic device 10 displays a transition animation of switching from the current application (ie, the Launcher1 application in the first operating system) to the sports health application.
  • the electronic device 10 displays the application interface in the sports health application.
  • FIG. 5B it is a schematic diagram of a transition animation displayed on the electronic device 10 provided by the embodiment of the present application.
  • the application interface 52 includes a display area 301 for displaying the user interface 51 .
  • the display area 301 is gradually reduced from the full screen of the user interface 52 to the lower right corner.
  • FIG. 5C it is an interface of a sports health application displayed on the electronic device 10 provided by the embodiment of the present application.
  • a display area 405, an option icon 402, an option icon 403, and an option icon 404 are included.
  • the display area includes a pedometer icon 401 and a distance icon 406, the pedometer icon 401 is used to display the currently recorded step data, and the distance icon 406 is used to display the current walking distance information.
  • the option icon 402 , the option icon 403 and the option icon 404 can receive a user's touch operation (for example, a click operation), and in response to the touch operation, the electronic device 10 displays the interface content corresponding to the option icon.
  • the content displayed in the display area 405 of the user interface 53 is the interface content corresponding to the option icon 402 .
  • the electronic device 10 switches the display area 405 to display the stored records of exercise data of multiple dates.
  • the transition animation displayed by the electronic device 10 is not limited to the interface reduction method shown in FIG. 5B , and other methods may also exist.
  • FIG. 5D it is a schematic diagram of another transition animation displayed on the electronic device 10 provided by the embodiment of the present application.
  • the user interface includes a display area 501 and a display area 502, wherein the display area 501 is used to display the application interface of the Launcher1 application, and the display area 502 is used to display the application interface of the sports health application.
  • the display area 501 slides to the right from the full screen of the user interface 54 and gradually moves out of the display interface; the display area 502 moves in from the left side of the user interface and gradually occupies the full screen of the user interface 54 .
  • the electronic device 10 loads the application interface of the sports health application.
  • the transition animation displayed by the electronic device 10 may also be in other manners, such as gradually shrinking toward the center of the user interface 51, etc., which will not be repeated here.
  • FIG. 6 it is a flowchart of a dual-system switching provided by an embodiment of the present application.
  • the Launcher1 application in the first operating system sends a switching request to the switching module 1 in the first operating system, where the switching request includes application information of the sports health application corresponding to the application icon 249 .
  • the switching request includes application information such as the application package ID, application name, and application icon of the sports health application.
  • the switching module 1 in the first operating system intercepts and caches the first user interface of the Launcher1 application currently displayed on the display screen.
  • the first user interface may refer to the user interface 51 shown in FIG. 5A .
  • the switching module 1 in the first operating system sends a first switching instruction to the switching module 2 in the second operating system, where the first switching instruction includes the information of the first user interface.
  • the first switching instruction is used to instruct the switching module 2 in the second operating system to take over the TP/LCD control right of the electronic device 10 .
  • the first switching instruction is further used to instruct the switching module 2 in the second operating system to display the first user interface according to the information of the first user interface.
  • the switching module 1 in the first operating system generates the first switching instruction through the dual-core communication service 1 .
  • the dual-core communication driver 1 in the kernel layer of the first operating system sends the first switching instruction to the dual-core communication driver 2 in the second operating system.
  • the dual-core communication driver 2 in the second operating system reports the received first switching instruction to the dual-core communication service 2 in the second operating system.
  • the dual-core communication service 2 in the second operating system processes the first switching instruction, and sends a first switching instruction to the switching module 2, where the first switching instruction is used to instruct the switching module 2 to take over the TP/TP of the electronic device 10. LCD control.
  • the first switching instruction is further used to instruct the switching module 2 to display the first user interface according to the information of the first user interface.
  • the switching module 2 in the second operating system takes over the control right of the TP/LCD, and displays the first user interface.
  • the TP/LCD control right is transferred from the switching module 1 in the first operating system to the switching module 2 in the second operating system.
  • the user interface displayed on the display screen is the first user interface, and the user will not feel obvious interface freeze, which can improve the user's visual experience.
  • the switching module 1 in the first operating system sends the application information of the sports health application to the switching module 2 in the second operating system.
  • the application information of the sports health application may be included in the first switching instruction in step S203.
  • the switching module 1 in the first operating system sleeps the first processor.
  • the electronic device 10 can process the first processing the device to sleep. Because generally the power consumption of the first processor is relatively high, this method can greatly save the power consumption of the electronic device 10 .
  • the switching module 2 in the second operating system displays the transition animation according to the first user interface and the application interface of the sports health application.
  • an application interface of a sports health application may be cached in the switching module in the second operating system, and the application interface may be a startup interface.
  • the switching module 2 can call the display service 2 to display the transition animation.
  • the transition animation may refer to the user interface 52 shown in FIG. 5B and the user interface 54 shown in FIG. 5D .
  • the switching module 1 in the first operating system does not need to send the information of the first user interface to the switching module 2 in the second operating system, and the switching module 2 in the second operating system can apply and exercise according to Launcher1 App icons for health apps generate transition animations.
  • FIG. 7 it is a schematic diagram of another transition animation provided by an embodiment of the present application.
  • the user interface 55 includes an application icon 511 of the Launcher1 application, an application icon 247 of the sports health application, and prompt information 522 .
  • the prompt information 522 is used to prompt that application switching between systems is currently being performed.
  • the switching module 2 in the second operating system activates the sports health application.
  • the electronic device 10 when the electronic device is running the second operating system, if the user clicks on the application icon of the application in the first operating system in the current interface, in response to the click operation, the electronic device 10 will switch to The first operating system is run, and the application corresponding to the application icon clicked by the user is run. For this process, refer to the above-mentioned process of switching from running the first operating system to running the second operating system.
  • the display interface of the sports health application may also refer to the user interface 56 shown in FIG. 8 .
  • the display interface of the sports health application further includes a switch control 701, the switch control 701 is configured to receive a user operation, and in response to the user operation, the electronic device 10 switches from the second operating system back to the first operating system.
  • electronic device 10 switches from displaying user interface 56 to displaying user interface 51 .
  • the switching control 701 is displayed by the system application interface 2 application in the second operating system.
  • the application corresponding to the switching control 701 is Launcher1 in the first operating system. This switching process is further described below. Referring to FIG. 9 , it is a flowchart of another dual-system switching provided by an embodiment of the present application.
  • the system application interface 2 application in the second operating system sends a switching request to the switching module 2 in the second operating system, where the switching request includes the first operation corresponding to the switching control 701 Application information of the Launcher1 application in the system.
  • the switching request may include application information such as the application package ID, application name, application icon, etc. of the Launcher1 application.
  • the switching module 2 in the second operating system intercepts and caches the second user interface currently displayed on the display screen.
  • the second user interface may refer to the user interface 56 shown in FIG. 8 .
  • the switching module 2 in the second operating system sends a second switching instruction to the switching module 1 in the first operating system, where the second switching instruction includes the information of the second user interface.
  • the second switching instruction is used to instruct the switching module 1 in the first operating system to take over the TP/LCD control right of the electronic device 10 .
  • the second switching instruction is further used to instruct the switching module 1 in the first operating system to display the second user interface according to the information of the second user interface.
  • the switching module 2 in the first operating system generates the second switching instruction through the dual-core communication service 2 .
  • the dual-core communication driver 2 in the second operating system kernel layer (kernel) sends the second switching instruction to the dual-core communication driver 1 in the first operating system.
  • the dual-core communication driver 1 in the first operating system reports the received second switching instruction to the dual-core communication service 1 in the first operating system.
  • the dual-core communication service 1 in the first operating system processes the second switching instruction, and sends a second switching instruction to the switching module 1, where the second switching instruction is used to instruct the switching module 1 to take over the TP/TP of the electronic device 10. LCD control.
  • the second switching instruction is further used to instruct the switching module 1 to display the second user interface according to the information of the second user interface.
  • the switching module 1 in the first operating system takes over the control right of the TP/LCD, and displays the second user interface.
  • the TP/LCD control right is transferred from the switching module 2 in the second operating system to the switching module 1 in the first operating system.
  • the user interfaces displayed on the display screen are all second user interfaces, and the user will not feel obvious interface lag, which can improve the user's visual experience.
  • the switching module 2 in the second operating system sends the application information of the Launcher1 application to the switching module 1 in the first operating system.
  • the application information of the Launcher1 may be included in the second switching instruction in step S303.
  • the switching module 2 in the second operating system sleeps the second processor.
  • the electronic device 10 Since the TP/LCD control right is transferred from the switching module 2 in the second operating system to the switching module 1 in the first operating system, the electronic device 10 is about to run the application in the first operating system, and the electronic device 10 can process the second operating system. The device sleeps, saving the power consumption of the electronic device 10 .
  • the switching module 1 in the first operating system displays a transition animation according to the second user interface and the application interface of Launcher1.
  • the application interface of the Launcher1 application may be cached in the switching module in the first operating system.
  • the switching module 2 can call the display service 2 to display the transition animation.
  • the running process of the Launcher1 application reference may be made to the description of the corresponding embodiment in FIG. 3 above.
  • the display interface of the Launcher1 application reference may be made to the user interface 41 shown in FIG. 4A or the user interface 42 shown in FIG. 4B . That is to say, not only the power-on of the electronic device 10, but also the re-running of the first processor will cause the Launcher1 application to re-obtain the application list, which includes the application list 1 of the first operating system and the applications in the second operating system. Listing 2.
  • the application list 2 in the second operating system can be synchronized with the first operating system to ensure the correctness of the desktop displayed by the electronic device 10; The desktop in the operating system is not synchronized.
  • the electronic device 10 receives a preset operation, and in response to the preset operation, the electronic device switches from the second operating system back to the first operating system.
  • the preset operation may be an operation of pressing the power key twice in a row
  • the preset operation may also be an operation of sliding up from the bottom end of the user interface 53, and so on.
  • the electronic device 10 when the electronic device 10 is running the first operating system, if the user clicks on the application icon of the application installed on the second operating system on the current interface, in response to the click operation, the electronic device 10 Switch to the second operating system, run the application corresponding to the clicked application icon, and sleep the first processor where the first operating system is located. In this way, the electronic device 10 can quickly switch to the second operating system, which is convenient for the user to use the applications in the second operating system. In addition, the electronic device 10 sleeps the first processor, which can save power consumption of the electronic device 10 .
  • the electronic device 10 may be a wearable device, for example, a smart watch, smart glasses, and the like.
  • the wearable device generally can store less power.
  • applications that are frequently used by the user for example, sports health applications
  • the electronic device 10 sleeps the first processor, which can greatly reduce the power consumption of the electronic device 10 .
  • connection system 10 it is a schematic diagram of a connection system between a set-top box and a TV provided by an embodiment of the present application.
  • the connection system 10 includes a TV set 110 and a set-top box 140 . in:
  • the TV set 110 can play live TV programs transmitted by broadcast TV stations, and can also play video resources downloaded on demand from the Internet.
  • the transmission process of the live TV program can be as follows: radio and television stations send out image and sound signals, which are digitally compressed and modulated to form digital TV signals; After that, the set-top box 140 restores the original image and sound signals through digital demodulation and digital video and audio decoding processing, and sends them to the TV set 110 for playback.
  • On-demand video resources use the existing Internet network to transmit video data.
  • the set-top box 140 may be a digital TV set-top box or a network TV set-top box.
  • the digital TV set-top box may include a digital set-top box for receiving cable TV, a digital set-top box for receiving satellite TV, and a digital set-top box for receiving terrestrial broadcast TV.
  • the set-top box 140 can send the received live video data to the TV set 110 through an HDMI cable or an AV cable.
  • the link connection 104 between the TV set 110 and the set-top box 140 may be a high definition multimedia interface (HDMI) cable/audio and video (AV) cable connection.
  • HDMI high definition multimedia interface
  • AV audio and video
  • the display screen of the TV may display the application interface of the application installed in the TV, or the application interface of the application installed in the set-top box. Users need to manually switch between the two operating systems to use applications in different operating systems.
  • a switching module is included in the application framework layer of the first operating system of the TV set; the lower layer provides services for system switching, the hardware abstraction layer includes a dual-core communication service module, and the kernel layer Included in the dual-core communication driver.
  • a switching module is included in the application framework layer of the second operating system of the set-top box; the lower layer provides services for system switching, the hardware abstraction layer includes a dual-core communication service module, and the kernel layer includes a dual-core communication driver.
  • the desktop of the first operating system displayed by the TV includes application icons of applications installed in the TV and the set-top box.
  • the display process of the desktop reference may be made to the description of the embodiment corresponding to FIG. 3 .
  • the user may select the application to be used on the desktop of the first operating system displayed on the television. If the user selects an application installed in a second operating system (ie, a set-top box), the application in the selected second operating system is run. For this switching process, refer to the description of the corresponding embodiment in FIG. 6 .
  • the user can intuitively view the application icon of the application in the second operating system (ie the set-top box) in the interface of the first operating system (ie the TV set), and can conveniently perform two operations
  • Application switching between systems simplifies user operations.
  • FIG. 11 it is a flowchart of a method for displaying a user interface in a dual system provided by an embodiment of the present application.
  • the method is applied to an electronic device.
  • the electronic device is installed with a first operating system and a second operating system, so The first operating system is different from the second operating system, and the method includes the following steps.
  • the electronic device detects a first operation.
  • the first operation includes an operation of triggering the electronic device to switch from a screen-off state to displaying the first interface, and triggering the electronic device to switch from displaying another interface to displaying the first interface
  • the other interface is the user interface of the first operating system and the user interface of the second operating system displayed by the electronic device except for the first interface user interface.
  • the first operation may be a user's power-on operation of the electronic device 10 in the embodiment corresponding to FIG. 3 .
  • the first operation may also be an operation in which the user clicks on the switching control 701 in the embodiment corresponding to FIG. 9 .
  • the electronic device In response to the first operation, displays a first interface.
  • the first interface includes an application icon of a first application and an application icon of a second application
  • the first application is an application installed in the first operating system
  • the second application is an application installed in the An application in the second operating system
  • the first interface is a user interface in the first operating system.
  • the first interface may refer to the user interface 21 shown in FIG. 2
  • the first interface may also refer to the user interface 41 shown in FIG. 4A
  • the user interface 42 shown in FIG. 4B .
  • the method further includes: the electronic device receives a second operation for an application icon of the second application; in response to the second operation, the electronic device displays the first The interface switches to a user interface displaying the second application.
  • the second operation reference may be made to the operation of the user clicking the application icon 249 in the embodiment corresponding to FIG. 6 .
  • the application icon of the second application may refer to the application icon 249 in FIG. 5A .
  • the first interface may refer to the user interface 51 shown in FIG. 5A
  • the user interface of the second application may refer to the user interface 53 shown in FIG. 5C .
  • the user can conveniently and quickly switch the electronic device from running the first operating system to running the second operating system by touching the application icon of the application in the second operating system, thereby improving the switching between the two operating systems effectiveness.
  • switching the electronic device from displaying the first interface to displaying the user interface of the second application includes: switching the electronic device from displaying the first interface to displaying a transition animation, the The transition animation includes interface content of the first interface and/or interface content of the application interface of the second application; the electronic device switches from displaying the transition animation to displaying the user interface of the second application.
  • the first interface may refer to the user interface 51 shown in FIG. 5A
  • the user interface of the second application may refer to the user interface 53 shown in FIG. 5C
  • the transition animation may refer to the user interface 52 shown in FIG. 5B , the user interface 54 shown in FIG. 5D , or the user interface 55 shown in FIG. 7 .
  • a switch control is included in the user interface of the second application, and the method further includes: the electronic device receives a third operation for the switch control; in response to the third operation, The electronic device switches from displaying the user interface of the second application to displaying the first interface.
  • the switch control can refer to the switch control 701 in FIG. 8 .
  • the third operation reference may be made to the operation of the user clicking the switch control 701 in the embodiment corresponding to FIG. 9 .
  • displaying the first interface by the electronic device includes: acquiring, by the electronic device, a first application list, where the first application list includes application information of applications installed on the first operating system and all The application information of the application installed on the second operating system, the application information includes one or more of the application icon of the application, the name of the application, and the application package identification number ID of the application;
  • An application list displays the first interface.
  • the first application list reference may be made to the application list 3 in the embodiment corresponding to FIG. 3 .
  • the electronic device may refer to the user interface 41 shown in FIG. 4A or the user interface 42 shown in FIG. 4B according to the first interface displayed by the first application list.
  • the method further includes: the electronic device detects an update event of the first application list; and the electronic device acquires the first application list.
  • the update event of the first application list includes: installing the third application on the electronic device, uninstalling the fourth application from the electronic device, updating the fifth application on the electronic device, and the current time reaches the preset time.
  • the set refresh time of the first application list the electronic device switches from displaying the user interface in the second operating system to displaying one or more of the user interfaces in the first operating system.
  • acquiring the first application list by the electronic device includes: acquiring, by the electronic device, a second application list through the first operating system, where the second application list includes the first operation Application information of applications installed on the system; the electronic device sends an acquisition request to the second operating system through the first operating system, and the acquisition request is used to acquire a third application list, in which the third application list is including application information of applications installed on the second operating system; the electronic device receives the third application list sent by the second operating system through the first operating system; the electronic device according to the first operating system The second application list and the third application list determine the first application list.
  • first application list reference may be made to the description of the embodiment corresponding to FIG. 3 .
  • first application list reference may be made to the application list 3 in the embodiment corresponding to FIG. 3 .
  • second application list reference may be made to application list 1 in the embodiment corresponding to FIG. 3
  • third application list reference may be made to application list 2 in the embodiment corresponding to FIG. 3 .
  • acquisition request reference may be made to the request sent by the switching module 1 to the switching module 2 of the second operating system in step S105 of the embodiment corresponding to FIG. 3 .
  • switching the electronic device from displaying the first interface to displaying the user interface of the second application includes: the electronic device intercepts and caches the first interface through the first operating system interface content; the electronic device sends a first switching instruction to the second operating system through the first operating system, and the first switching instruction includes first data, and the first data is used to indicate the The interface content of the first interface, the first switching instruction is used to instruct the second operating system to display the first interface; the electronic device displays the first interface through the second operating system according to the first switching instruction a first user interface; the electronic device sends application information of the second application to the second operating system through the first operating system; the electronic device sends the application information of the second application according to the first data and the information of the second application Application information, a transition animation is displayed through the second operating system, and the transition animation includes the interface content of the first interface and/or the interface content of the application interface of the second application; The second operating system runs the second application and displays the application interface of the second application.
  • the first interface may refer to the first user interface in the embodiment corresponding to FIG. 6
  • the first user interface may refer to the user interface 51 shown in FIG. 5A .
  • For the first data reference may be made to the information of the first user interface in the embodiment corresponding to FIG. 6 .
  • For the first switching instruction reference may be made to the first switching instruction in the embodiment corresponding to FIG. 6 .
  • For the application information of the second application reference may be made to the application information of the sports health application in the embodiment corresponding to FIG. 6 .
  • the transition animation may refer to the user interface 52 shown in FIG. 5B , the user interface 54 shown in FIG. 5D , or the user interface 55 shown in FIG. 7 .
  • the application interface of the second application may refer to the user interface 53 shown in Fig. 5C.
  • the method further includes: hibernating the electronic device corresponding to the first operating system processor.
  • the processor corresponding to the first operating system reference may be made to the first processor in the embodiment corresponding to FIG. 6 .
  • switching the electronic device from displaying the user interface of the second application to displaying the first interface includes: the electronic device intercepts and caches the second application through the second operating system The interface content of the user interface; the electronic device sends a second switching instruction to the first operating system through the second operating system, and the second switching instruction includes second data, and the second data is used for Indicates the interface content of the user interface of the second application, and the second switching instruction is used to instruct the first operating system to display the user interface of the second application; the electronic device passes the user interface according to the second switching instruction The first operating system displays the user interface of the second application; the electronic device sends the application information of the sixth application to the first operating system through the second operating system, and the switching control is connected to the first operating system.
  • the first interface is included in the user interface of the sixth application; the electronic device displays the transition through the first operating system according to the second data and the application information of the sixth application animation, the transition animation includes the interface content of the user interface of the second application and/or the first interface; the electronic device runs the sixth application through the second operating system, and displays the first interface an interface.
  • the second user interface may refer to the user interface 56 shown in FIG. 8 .
  • the first data reference may be made to the information of the second user interface in the embodiment corresponding to FIG. 9 .
  • the second switching instruction reference may be made to the second switching instruction in the embodiment corresponding to FIG. 9 .
  • the application information of the sixth application reference may be made to the application information of the Launcher1 application in the embodiment corresponding to FIG. 9 .
  • the sixth application reference may be made to the Launcher1 application in the embodiment corresponding to FIG. 9 .
  • the first interface reference may be made to the user interface 41 shown in FIG. 4A or the user interface 42 shown in FIG. 4B .
  • the method further includes: hibernating the electronic device corresponding to the second operating system processor.
  • the processor corresponding to the second operating system reference may be made to the second processor in the embodiment corresponding to FIG. 9 .
  • the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a display function, such as a mobile phone, a tablet computer, a notebook computer, a wearable electronic device (such as a smart phone) with a wireless communication function watches, smart bracelets, smart wristbands), etc.
  • the portable electronic device described above may also be other portable electronic devices, such as a Laptop or the like with a touch-sensitive surface or touch panel.
  • the aforementioned electronic device may also be a desktop computer having a touch-sensitive surface or touch panel.
  • the above electronic device may also be a smart home device such as a set-top box and a TV.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program or instruction, when the computer program or instruction is run on an electronic device, the electronic device is made to perform the operations described in the foregoing embodiments. Display method of user interface in dual system.
  • the present application also provides a computer program product, the computer program product includes a computer program or instruction, when the computer program or instruction is run on the electronic device, the electronic device is made to execute the user interface in the dual system as described in the above embodiments display method.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions when loaded and executed on a computer, result in whole or in part of the processes or functions described herein.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), and the like.

Abstract

本申请实施例公开了一种双系统中用户界面的显示方法,该方法应用于电子设备,电子设备安装有第一操作系统和第二操作系统,第一操作系统与第二操作系统不同,该方法包括:电子设备检测到第一操作;响应于第一操作,电子设备显示第一界面,该第一界面中包括第一应用的应用图标以及第二应用的应用图标,第一应用为安装在该第一操作系统中的应用,第二应用为安装在该第二操作系统中的应用,第一界面为该第一操作系统中的用户界面。通过本申请实施例的方法,用户可以在第一界面上查看到两个操作系统上安装的应用的应用图标。另外,用户可以通过触控第二应用的应用图标,方便快捷地将电子设备切换至运行第二操作系统,提升双系统间的切换效率。

Description

一种双系统中用户界面的显示方法及电子设备
本申请要求于2020年09月19日提交中国专利局、申请号为202010999205.0、申请名称为“一种双系统中用户界面的显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人机交互领域,尤其涉及一种双系统中用户界面的显示方法及电子设备。
背景技术
操作系统(operating system,OS)是管理智能终端的硬件与软件资源的计算机程序。例如,操作系统可以处理管理与配置内存、决定系统资源供需的优先次序、控制输入设备与输出设备、操作网络与管理文件系统等基本事务。通常情况下,应用的开发和运行必须依赖于特定的操作系统,例如,基于
Figure PCTCN2021113608-appb-000001
系统设计的应用无法正常运行在
Figure PCTCN2021113608-appb-000002
系统中。
为了便于在同一台智能终端上使用不同操作系统中的不同应用,一些智能终端上安装有两个操作系统。在智能终端启动时,用户可以选择运行两个操作系统中的一个。通过这种方式,用户可以在同一台智能终端上使用不同操作系统中的应用。
在使用一个操作系统的过程中,若用户想要使用另一个操作系统中的应用,则需要用户重启设备,重新选择需要加载的操作系统。这种方式较为繁琐,且耗时较长。如何实现双系统间的快速切换是本领域技术人员亟待解决的问题。
发明内容
本申请实施例提供一种双系统中用户界面的显示方法及相关设备,可以实现两个操作系统之间的快速切换。
第一方面,本申请实施例提供了一种双系统中用户界面的显示方法,该方法应用于电子设备,所述电子设备安装有第一操作系统和第二操作系统,所述第一操作系统与所述第二操作系统不同,所述方法包括:所述电子设备检测到第一操作;响应于所述第一操作,所述电子设备显示第一界面,所述第一界面中包括第一应用的应用图标以及第二应用的应用图标,所述第一应用为安装在所述第一操作系统中的应用,所述第二应用为安装在所述第二操作系统中的应用,所述第一界面为所述第一操作系统中的用户界面。通过这种方法,用户可以在第一界面上查看到两个操作系统上安装的应用的应用图标。
结合第一方面,在一种可能的实现方式中,所述第一操作包括:触发所述电子设备从熄屏状态切换至显示所述第一界面的操作,触发所述电子设备从显示其他界面切换至显示所述第一界面的操作中的一项或多项;其中,所述其他界面为所述电子设备显示的所述第一操作系统的用户界面和所述第二操作系统的用户界面中除所述第一界面外的用户界面。
结合第一方面,在一种可能的实现方式中,所述方法还包括:所述电子设备接收到针对所述第二应用的应用图标的第二操作;响应于所述第二操作,所述电子设备从显示所述 第一界面切换至显示所述第二应用的用户界面。通过这种方法,用户可以通过触控第二应用的应用图标,方便快捷地将电子设备切换至运行第二操作系统,提升双系统间的切换效率。
结合第一方面,在一种可能的实现方式中,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面,包括:所述电子设备从显示所述第一界面切换至显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;所述电子设备从显示所述过渡动画切换至显示所述第二应用的用户界面。
结合第一方面,在一种可能的实现方式中,所述第二应用的用户界面中的包含切换控件,所述方法还包括:所述电子设备接收到针对所述切换控件的第三操作;响应于所述第三操作,所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面。
结合第一方面,在一种可能的实现方式中,所述电子设备显示第一界面,包括:所述电子设备获取第一应用列表,所述第一应用列表中包括所述第一操作系统上安装的应用的应用信息以及所述第二操作系统上安装的应用的应用信息,所述应用信息包括应用的应用图标、应用的名称、应用的应用包标识号ID中的一项或者多项;所述电子设备根据所述第一应用列表显示所述第一界面。
结合第一方面,在一种可能的实现方式中,所述方法还包括:所述电子设备检测到所述第一应用列表的更新事件;所述电子设备获取所述第一应用列表;其中,所述第一应用列表的更新事件包括:在所述电子设备上安装第三应用,从所述电子设备上卸载第四应用,所述电子设备上第五应用的更新,当前时间到达预设的所述第一应用列表的刷新时间,所述电子设备从显示所述第二操作系统中的用户界面切换至显示所述第一操作系统中的用户界面中的一项或者多项。
结合第一方面,在一种可能的实现方式中,所述电子设备获取所述第一应用列表,包括:所述电子设备通过所述第一操作系统获取第二应用列表,所述第二应用列表中包括所述第一操作系统上安装的应用的应用信息;所述电子设备通过所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求用于获取第三应用列表,所述第三应用列表中包括所述第二操作系统上安装的应用的应用信息;所述电子设备通过所述第一操作系统接收所述第二操作系统发送的所述第三应用列表;所述电子设备根据所述第二应用列表以及所述第三应用列表确定所述第一应用列表。
结合第一方面,在一种可能的实现方式中,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面,包括:所述电子设备通过所述第一操作系统截取并缓存所述第一界面的界面内容;所述电子设备通过所述第一操作系统向所述第二操作系统发送第一切换指令,所述第一切换指令中包括第一数据,所述第一数据用于指示所述第一界面的界面内容,所述第一切换指令用于指示所述第二操作系统显示所述第一界面;所述电子设备根据所述第一切换指令通过所述第二操作系统显示所述第一用户界面;所述电子设备通过所述第一操作系统向所述第二操作系统发送所述第二应用的应用信息;所述电子设备根据所述第一数据和所述第二应用的应用信息,通过所述第二操作系统显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;所述电子设备通过所述第二操作系统运行所述第二应用,并显示所述第二应用的应用界面。
结合第一方面,在一种可能的实现方式中,在所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面之后,所述方法还包括:所述电子设备休眠所述第一操作系统所对应的处理器。通过这种方式,可以节省电子设备的功耗。
结合第一方面,在一种可能的实现方式中,所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面,包括:所述电子设备通过所述第二操作系统截取并缓存所述第二应用的用户界面的界面内容;所述电子设备通过所述第二操作系统向所述第一操作系统发送第二切换指令,所述第二切换指令中包括第二数据,所述第二数据用于指示所述第二应用的用户界面的界面内容,所述第二切换指令用于指示所述第一操作系统显示所述第二应用的用户界面;所述电子设备根据所述第二切换指令通过所述第一操作系统显示所述第二应用的用户界面;所述电子设备通过所述第二操作系统向所述第一操作系统发送第六应用的应用信息,所述切换控件与所述第六应用相对应,所述第一界面包含于所述第六应用的用户界面;所述电子设备根据所述第二数据和所述第六应用的应用信息,通过所述第一操作系统显示过渡动画,所述过渡动画包含所述第二应用的用户界面的界面内容和/或所述第一界面;所述电子设备通过所述第二操作系统运行所述第六应用,并显示所述第一界面。
结合第一方面,在一种可能的实现方式中,在所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面之后,所述方法还包括:所述电子设备休眠所述第二操作系统所对应的处理器。通过这种方式,可以节省电子设备的功耗。
第二方面,本申请实施例提供了一种电子设备,所述电子设备安装有第一操作系统和第二操作系统,所述第一操作系统与所述第二操作系统不同,所述电子设备包括两个或两个以上的处理器、存储器;所述存储器与所述两个或两个以上的处理器耦合,所述存储器用于存储程序代码,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备执行以下操作:检测到第一操作;响应于所述第一操作,显示第一界面,所述第一界面中包括第一应用的应用图标以及第二应用的应用图标,所述第一应用为安装在所述第一操作系统中的应用,所述第二应用为安装在所述第二操作系统中的应用,所述第一界面为所述第一操作系统中的用户界面。
结合第二方面,在一种可能的实现方式中,所述第一操作包括:触发所述电子设备从熄屏状态切换至显示所述第一界面的操作,触发所述电子设备从显示其他界面切换至显示所述第一界面的操作中的一项或多项;其中,所述其他界面为所述电子设备显示的所述第一操作系统的用户界面和所述第二操作系统的用户界面中除所述第一界面外的用户界面。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:接收到针对所述第二应用的应用图标的第二操作;响应于所述第二操作,从显示所述第一界面切换至显示所述第二应用的用户界面。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:从显示所述第一界面切换至显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;从显示所述过渡动画切换至显示所述第二应用的用户界面。
结合第二方面,在一种可能的实现方式中,所述第二应用的用户界面中的包含切换控 件,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:接收到针对所述切换控件的第三操作;响应于所述第三操作,从显示所述第二应用的用户界面切换至显示所述第一界面。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:获取第一应用列表,所述第一应用列表中包括所述第一操作系统上安装的应用的应用信息以及所述第二操作系统上安装的应用的应用信息,所述应用信息包括应用的应用图标、应用的名称、应用的应用包标识号ID中的一项或者多项;根据所述第一应用列表显示所述第一界面。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:检测到所述第一应用列表的更新事件;获取所述第一应用列表;其中,所述第一应用列表的更新事件包括:在所述电子设备上安装第三应用,从所述电子设备上卸载第四应用,所述电子设备上第五应用的更新,当前时间到达预设的所述第一应用列表的刷新时间,所述电子设备从显示所述第二操作系统中的用户界面切换至显示所述第一操作系统中的用户界面中的一项或者多项。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:通过所述第一操作系统获取第二应用列表,所述第二应用列表中包括所述第一操作系统上安装的应用的应用信息;通过所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求用于获取第三应用列表,所述第三应用列表中包括所述第二操作系统上安装的应用的应用信息;通过所述第一操作系统接收所述第二操作系统发送的所述第三应用列表;根据所述第二应用列表以及所述第三应用列表确定所述第一应用列表。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:通过所述第一操作系统截取并缓存所述第一界面的界面内容;通过所述第一操作系统向所述第二操作系统发送第一切换指令,所述第一切换指令中包括第一数据,所述第一数据用于指示所述第一界面的界面内容,所述第一切换指令用于指示所述第二操作系统显示所述第一界面;根据所述第一切换指令通过所述第二操作系统显示所述第一用户界面;通过所述第一操作系统向所述第二操作系统发送所述第二应用的应用信息;根据所述第一数据和所述第二应用的应用信息,通过所述第二操作系统显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;通过所述第二操作系统运行所述第二应用,并显示所述第二应用的应用界面。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:休眠所述第一操作系统所对应的处理器。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:通过所述第二操作系统截取并缓存所述第二应用的用户界面的界面内容;通过所述第二操作系统向所述第一操作系统发送第二切换指令,所述第二切换指令中包括第二数据,所述第二数据用于指示所述第二应用的用户界面的界面内容,所述第二切换指令用于指示所述第一操作系统显示所述第二应用的用户界 面;根据所述第二切换指令通过所述第一操作系统显示所述第二应用的用户界面;通过所述第二操作系统向所述第一操作系统发送第六应用的应用信息,所述切换控件与所述第六应用相对应,所述第一界面包含于所述第六应用的用户界面;根据所述第二数据和所述第六应用的应用信息,通过所述第一操作系统显示过渡动画,所述过渡动画包含所述第二应用的用户界面的界面内容和/或所述第一界面;通过所述第二操作系统运行所述第六应用,并显示所述第一界面。
结合第二方面,在一种可能的实现方式中,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:休眠所述第二操作系统所对应的处理器。
第三方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如上述第一方面以及第一方面中任一可能的实现方式描述的方法。
第四方面,本申请提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如上述第一方面以及第一方面中任一可能的实现方式描述的方法。
可以理解地,第三方面所述的计算机程序产品以及第四方面所述的计算机可读存储介质,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
在本申请实施例中,在电子设备第一操作系统中的第一界面上,包含有安装在第一操作系统中应用的应用图标以及安装在第二操作系统中的应用的应用图标。用户可以在第一界面上查看到两个操作系统上安装的应用的应用图标。另外,用户可以通过触控第二操作系统中的应用的应用图标,方便快捷地将电子设备从运行第一操作系统切换至运行第二操作系统,提升两个操作系统之间的切换效率。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
图1A是本申请实施例提供的一种电子设备的结构示意图;
图1B是本申请实施例提供的一种电子设备的软件结构框图;
图2是本申请实施例提供的一种电子设备上显示的桌面的示意图;
图3是本申请实施例提供的一种显示桌面的流程图;
图4A-图4B是本申请实施例提供的一些电子设备上显示的桌面的示意图;
图5A-图5D是本申请实施例提供的一些电子设备上显示的用户界面的示意图;
图6是本申请实施例提供的一种双系统切换的流程图;
图7是本申请实施例提供的一种过渡动画的示意图;
图8是本申请实施例提供的又一种电子设备上显示的用户界面的示意图;
图9是本申请实施例提供的又一种双系统切换的流程图;
图10是本申请实施例提供的一种机顶盒和电视的连接系统的示意图;
图11是本申请实施例提供的一种双系统中用户界面的显示方法的流程图。
具体实施方式
下面将结合本申请中的附图对本申请实施例中的技术方案进行更详细地描述。
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。
需要说明的是,本申请实施例中“至少一个”是指一个或者多个,多个是指两个或两个以上的。除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明申请。应理解,本申请中除非另有说明,“/”表示或的意思。例如,A/B可以表示A或B。本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。
需要说明的是,本申请实施例中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请的说明书和权利要求书及附图中的术语用户界面(user interface,UI),是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备300设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control),是用户界面的基本元素,典型的控件有按钮(button)、小工具(widget)、工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个窗口、控件等界面元素。
首先介绍本申请以下实施例中提供的示例性电子设备10,电子设备10可以执行本申请实施例所涉及的方法和步骤。
图1A示出了电子设备10的结构示意图。
电子设备10可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像模组193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180G,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备10的具体限定。在本申请另一些实施例中,电子设备10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),中央处理器(central processing unit,CPU),图形处理器(graphics processing unit,GPU),神经网络处理器(neural-network processing unit,NPU),调制解调处理器,图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备10也可以包括一个或多个处理器110。
在本申请实施例中,电子设备10包括至少两个处理器,示例性的,包括处理器110A和110B,在本申请实施例中,处理器110A和110B也可以在本申请中统称为处理器110。在一种可能的实现方式中,第一处理器和第二处理器中存在一个主处理器和一个从处理器。其中主处理器和从处理器仅仅是在本申请实施例中对电子设备10中同时存在的两个不同的处理器加以区分的概念。
示例性的,第一处理器为主处理器,其运算能力较强,但是功耗较高;第二处理器为从处理器,其运算能力相对于主处理器较低,但是功耗较低。可选的,在本申请某些实施例中,第一处理器和第二处理器可以为规格一样的处理器。在运行第一操作系统时,第一处理器执行相应的计算,此时第二处理器处于休眠或者掉电状态。在运行第二操作系统时,第二处理器执行相应的计算,此时第一处理器处于休眠或者掉电的状态。其中,第一处理器对应运行的第一操作系统和第二处理器对应运行的第二操作系统的不同,例如,第一操作系统可以是安卓
Figure PCTCN2021113608-appb-000003
系统、华为鸿蒙系统等,第二操作系统可以是适用于微控制单元(Micro controller Unit,MCU)的嵌入式操作系统,如liteOS(轻量级物联网操作系统)。
其中,处理器110中可以包括控制器,控制器可以是电子设备10的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备10的效率。
电子设备10通过GPU,显示屏194,以及应用处理器等可以实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备10可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备10可以通过摄像模组193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备10的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
图1A示例性所示的电子设备10可以通过显示屏194显示以下各个实施例中所描述的各个用户界面。电子设备10可以通过触摸传感器180K在各个用户界面中检测触控操作,例如在各个用户界面中的点击操作(如在图标上的触摸操作、双击操作),又例如在各个用户界面中的向上或向下的滑动操作,或绘制滑动轨迹的操作,等等。在一些实施例中,电子设备10可以通过陀螺仪传感器180B、加速度传感器180E等检测用户手持电子设备10执行的运动手势,例如晃动电子设备。在一些实施例中,电子设备10可以通过摄像模组193(如3D摄像头、深度摄像头)检测非触控的手势操作。
可以理解的是,图1A示意的结构并不构成对电子设备10的具体限定。在本申请另一些实施例中,电子设备10可以包括比图1A所示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
基于部署有上述硬件结构的基础上,在本申请实施例中,电子设备10中装载有至少两个操作系统,其中电子设备10的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例中,电子设备10中包含两个处理器,其中,在运行第一操作系统时,第一处理器执行相应的运算;在运行第二操作系统时,第二处理器执行 相应的运算。可选的,在本申请实施例中,电子设备10中装载有至少两个操作系统可以相同,也可以不同。以第一操作系统为
Figure PCTCN2021113608-appb-000004
系统,第二操作系统为liteOS系统为例,示例性说明电子设备10的软件架构。
图1B是本申请实施例提供的一种电子设备10的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统(即第一操作系统)与liteOS系统(即第二操作系统)分为四层,从上至下分别为应用程序层,应用程序框架层,硬件抽象层(hardware abstraction layer,HAL)以及内核层。
首先对Android系统进行介绍:
应用程序层可以包括一个或多个应用。其中,图1B中示例性示出了桌面启动器1(Launcher),系统用户界面(SystemUI)1,设置(Setting),相机,图库,日历,音乐等应用程序。另外,应用程序层还可以包括其他的应用,例如:电话,视频,短信息,游戏类应用,即时通讯类应用,购物类等应用,等等。
Launcher1是安卓(Android)系统中的主要程序组件之一。电子设备10通过Launcher1启动安卓桌面的应用。在本申请实施例中,在电子设备10的桌面可以显示安装在第一操作系统中的应用的应用图标以及安装在第二操作系统中的应用的应用图标。Launcher1可以获取到第一操作系统和第二操作系统中的应用列表,应用列表中记录有多个应用的应用信息,例如,应用的应用图标、应用名称以及应用包ID,等等。
SystemUI1是安卓系统的系统界面。它可以包括电子设备10用户界面上方的状态栏(status bar),下方的导航栏(Navigation Bar),锁屏界面(Keyguard),电源界面(PowerUI),近期任务界面(Recent Task)等等。
设置是电子设备10的一个应用程序。用户可以通过设置对电子设备10的各项功能选项进行自定义的选择,例如,蓝牙、GPS(Global Positioning System)、Wi-Fi,等等。用户还可以用过设置对电子设备的各项设置选项进行自定义的修改,例如,显示屏亮度、音量大小、显示字体大小等等。可选的,在本申请的一些实施例中,用户可以通过设置对本申请实施例提供的双系统切换方式进行自定义的选择,例如,可以选择是否开启双系统切换过程中的过渡动画特效、可以选择双系统切换过程中的过渡动画特效,等等。可选的,在本申请的一些实施例中,用户可以通过设置选择是否开启本申请实施例提供的双系统切换功能。在另一些实施例中,用户可以通过设置来选择将第一操作系统或者第二操作系统设置作为主操作系统,类似的,用户可以选择将第一处理器或者第二处理器作为主处理器。
应用程序框架层为应用层的应用提供应用编程接口(application programming interface,API)和编程框架。应用框架层包括一些预先定义的函数。如图1B所示,应用框架层可以包括,应用管理模块1,窗口管理模块(WindowManagerService),切换模块1,电话管理器,通知管理器等。其中:
应用管理模块1,可以用于管理第一操作系统上安装的各个应用。在一些实施例中,应用管理模块1维护一个应用列表,该应用列表中记录有第一操作系统上安装的多个应用的应用信息,例如,应用的应用图标、应用名称以及应用包ID,等等。根据用户添加、删除应用的操作,应用管理模块1对应用列表进行更新。应用管理模块1还可以通过切换模 块获取第二操作系统的应用列表,该应用列表记录有第二操作系统上安装的多个应用的应用信息。也即,应用管理模块1维护的应用列表中也包括第二操作系统中的应用的应用信息。
窗口管理器,可以用于管理窗口程序。可以用于窗口的创建和销毁、窗口的显示与隐藏、窗口的布局、输入法管理和壁纸管理,等等。窗口管理器还可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
切换模块1,可以管理触控面板(touch panel,TP)/液晶显示器(liquid crystal display,LCD)(或者其他类型的显示面板,不限于LCD)的控制权。其中,TP可以参考图1A中所示的触摸传感器180K,LCD可以参考图1A中所示的显示屏194。TP用于接收用户操作,LCD用于显示用户界面。示例性的,切换模块1可以将TP/LCD控制权转让给第二操作系统中的切换模块2,该切换模块1也可以接管第二操作系统中的切换模块2转让的TP/LCD控制权。在一些实施例中,切换模块1还可以提供应用界面切换过程中的动画效果。切换模块1还可以通过第二操作系统中的切换模块2,获取第二操作系统中的安装的应用的应用信息。另外,切换模块1可以将第二操作系统中的安装的应用的应用信息发送给Launcher1,以便Launcher1可以显示第二操作系统中的应用的应用图标。
电话管理器,可以用于提供电子设备10的通信功能。例如通话状态的管理(包括接通,挂断等)。
通知管理器,可以使得应用可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。通知管理器还可以是以图表或者滚动条文本形式在系统顶部状态栏显示通知,还可以是以对话窗口形式在屏幕上显示通知。
安卓运行时(Android Runtime)包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用框架层运行在虚拟机中。虚拟机将应用层和应用框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
硬件抽象层可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎1(例如:SGL),触屏服务,显示服务,双核通信服务等。
表面管理器,可以用于对显示子系统进行管理,并且为多个应用提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,G.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库,可以用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎1是2D绘图的绘图引擎。
触屏服务1,可以用于对接收到的触屏操作进行处理。
显示服务1,可以用于对第一操作系统需要显示的用户界面进行处理。
双核通信服务1,可以用于对第一处理器和第二处理器之间的交互信息进行处理。
内核层是硬件和软件之间的层。内核层包含显示驱动1,摄像头驱动,音频驱动,传感器驱动,触屏驱动1,双核通信驱动1,等等。
其中,显示驱动1与显示屏194具有连接关系,在切换模块1具有电子设备的TP/LCD控制权的情况下,显示驱动1可以驱动显示屏194显示用户界面。触屏驱动1与触摸传感器180K具有连接关系,在切换模块1具有电子设备的TP/LCD控制权的情况下,触屏驱动1可以将触摸传感器180K所检测到的触摸操作转换为触控指令,并将触控指令上传给触屏服务1进行处理。双核通信驱动1与第二处理器的双核通信驱动2具有连接关系,用于传输第一处理器和第二处理器之间的交互信息。
接下来,对liteOS系统进行介绍:
应用程序层可以包括一个或多个应用。其中,图1B中示例性示出了应用1,应用2,应用3,等等。举例而言,这些应用可以为桌面启动器2(未示出)、系统用户界面2(未示出)、运动健康应用,等等。
其中,桌面启动器2可以用于启动liteOS系统的桌面应用,其具体作用可以参照本申请中的桌面启动器1。在本申请实施例中,在电子设备运行第二操作系统的情况下,电子设备10的桌面显示为第二操作系统中的桌面,该桌面包含安装在第二操作系统中的应用的应用图标。
系统用户界面2是liteOS系统的系统界面。它可以包括第二操作系统中的用户界面上方的状态栏(status bar),下方的导航栏(Navigation Bar),锁屏界面(Keyguard),电源界面(PowerUI),近期任务界面(Recent Task)等等。
应用程序框架层为应用层的应用提供应用编程接口(application programming interface,API)和编程框架。应用框架层包括一些预先定义的函数。如图1B所示,应用框架层可以包括,应用管理模块2、切换模块2等等。其中:
应用管理模块2,可以用于管理第二操作系统上安装的各个应用。在一些实施例中,应用管理模块2维护一个应用列表,该应用列表中记录有第二操作系统上安装的多个应用的应用信息,例如,应用的应用图标、应用名称以及应用包ID,等等。根据用户添加、删除应用的操作,应用管理模块2对应用列表进行更新。
切换模块2,可以管理TP/LCD(或者其他类型的显示面板,不限于LCD,LCD仅仅为一个示例)控制权。示例性的,切换模块2可以将TP/LCD控制权转让给第一操作系统中的切换模块1,该切换模块2也可以接管第一操作系统中的切换模块1转让的TP/LCD控制权。在一些实施例中,切换模块2还可以提供应用界面切换过程中的动画效果。切换模块2还可以向第一操作系统中的切换模块1,发送第二操作系统中的安装的应用的应用信息。
应用程序层和应用框架层运行在虚拟机中。虚拟机将应用层和应用框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
硬件抽象层可以包括多个功能模块。例如:2D图形引擎2(例如:SGL),触屏服务, 显示服务,双核通信服务等。
2D图形引擎2是2D绘图的绘图引擎。
触屏服务2,可以用于对接收到的触屏操作进行处理。
显示服务2,可以用于对第一操作系统需要显示的用户界面进行处理。
双核通信服务2,可以用于对第一处理器和第二处理器之间的交互信息进行处理。
内核层是硬件和软件之间的层。内核层包含显示驱动2,触屏驱动2,双核通信驱动2,等等。
其中,显示驱动2与显示屏194具有连接关系,在切换模块2具有电子设备的TP/LCD控制权的情况下,显示驱动2可以驱动显示屏194显示用户界面。触屏驱动2与触摸传感器180K具有连接关系,在切换模块2具有电子设备的TP/LCD控制权的情况下,触屏驱动2可以将触摸传感器180K所检测到的触摸操作转换为触控指令,并将触控指令上传给触屏服务2进行处理。双核通信驱动2与第一处理器的双核通信驱动1具有连接关系,用于传输第一处理器和第二处理器之间的交互信息。
需要说明的,图1B所示的电子设备的软件架构仅仅是本申请实施例的一种实现方式,实际应用中,电子设备还可以包括更多或更少的软件模块,这里不作限制。
在本申请实施例中,电子设备10在如图1B所示的软件结构的基础上,还可以包括显示模块,该显示模块用于根据各个软件模块的运行而显示对应的用户界面。该显示模块显示的用户界面可参照如下实施例中示例性所示的用户界面。
在电子设备10配置有前述所述的硬件结构和软件架构的基础上,电子设备10可以实现本申请所述全部实施例中的方法和步骤。
接下来,基于上述内容中介绍的电子设备10,结合其他附图对本申请实施例提供的一种双系统中用户界面的显示方法进行详细说明。
图2是本申请实施例提供的一种电子设备上显示的桌面的示意图,参见图2,用户界面21可包括:状态栏201,日历小工具213,天气小工具215,以及多个应用的应用图标。其中:
状态栏201可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符203、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符205,电池状态指示符209。
日历小工具213可用于指示当前时间,例如日期、星期几、时分信息等。
天气小工具215可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。
多个应用的应用图标可例如:电话的图标225、联系人的图标229、短信息的图标241、邮箱的图标235、云共享的图标237、图库的图标245、设置的图标247和运动健康的图标249。其中,电话、联系人、短信息、邮箱、图库、设置这些应用安装在第一操作系统,云共享、运动健康这些应用安装在第二操作系统。电子设备10可以在桌面上显示安装在第一操作系统中的应用的应用图标,以及安装在第二操作系统中的应用的应用图标。
用户界面21还可包括页面指示符251。其他应用的应用图标可分布在其他页面。页面 指示符251可用于指示页面数量,以及用户当前浏览的是哪一个页面,比如页面指示符251显示3个小圆点,并且第2个小圆点是黑色的,另外两个小圆点是白色的,表明当前手机包括3个页面,且用户正在浏览第2个页面。此外,用户可以在当前页面左右滑动,来浏览其他页面中的应用图标。需要说明的是,其他页面中的应用图标可以是安装在第一操作系统中的应用的应用图标,也可以是安装在第二操作系统中的应用的应用图标。
在其他一些实施例中,电子设备10还可以包括主屏幕键。该主屏幕键可以是实体按键,也可以是虚拟按键。该主屏幕键可用于接收用户的指令,响应于该用户的指令,将当前显示的UI返回到桌面,这样可以方便用户随时查看桌面。上述指令具体可以是用户单次按下主屏幕键的操作指令,也可以是用户在短时间内连续两次按下主屏幕键的操作指令,还可以是用户在预定时间内长按主屏幕键的操作指令。在本申请其他一些实施例中,主屏幕键还可以集成指纹识别器,以便用于在按下主屏幕键的时候,随之进行指纹采集和识别。
可以理解的是,图2仅仅示例性示出了电子设备10上的一种桌面的显示方式,在实际应用中,桌面中还可以包括更多或者更少的界面元素,此处不应构成对本申请实施例的限定。
接下来以图2所示的用户界面21为例,介绍电子设备10显示桌面的流程。参见图3,是本申请实施例提供的一种显示桌面的流程图。
S101、响应于用户对于电子设备10的开机操作,第一操作系统中的Launcher1处理开机事件。
可选的,在本申请实施例中,开机操作可以包括对于开机按键进行开机的操作。开机按键(或称为电源键)可以是电子设备10上的物理按键。在电子设备10处于关机的状态下,若用户按压开机按键超过预设时间,电子设备10启动,加载桌面。另外,电子设备10的开机操作还可以存在其他方式,例如,利用遥控器远程操作、语音唤醒、定时开机等方式进行电子设备10的开机,本申请实施例不做限制。Launcher1处理开机事件可以理解为,Launcher1加载电子设备10的桌面,其中,该桌面中包括有安装在第一操作系统上的应用的应用图标以及安装在第二操作系统上的应用的应用图标。
在一些实施例中,第一处理器为主处理器。在电子设备10开机的过程中,电子设备10中的主处理器运行第一操作系统。可选的,在本申请一些实施例中,S101还可以对应为其他操作,比如用户卸载了电子设备10中的任意一个应用程序,或者用户在电子设备10上安装了一个新的应用程序,或者电子设备10上安装的应用程序的更新。可选的,在本申请一些实施例中,S101还可以是电子设备中设置的定时刷新显示应用的操作,比如电子设备10中设定了间隔预定时间更新设备中应用,从而使得电子设备可以及时的显示来自于两个操作系统中的所有应用程序。
S102、Launcher1调用应用管理模块1获取应用列表。
其中,应用列表包括第一操作系统的应用列表1以及第二操作系统中的应用列表2。第一操作系统的应用列表1,记录有第一操作系统上安装的多个应用的应用信息。第二操作系统的应用列表2,记录有第二操作系统上安装的多个应用的应用信息。其中,应用信息包括:应用的应用图标、应用名称以及应用包ID,等等。
其中,在本申请实施例中,应用管理模块1可以直接获取第一操作系统中的应用列表1;应用管理模块1还可以通过第一操作系统中的切换模块1间接的获取第二操作系统中的应用列表2,在获得所述应用列表1和所述应用列表2后,应用管理模块1还可以将应用列表1和应用列表2进行合并,从而得到新的应用列表3,最后由第一操作系统中的Launcher1获得应用列表3,并将其显示在桌面上。其中应用列表3上可以包括第一操作系统和第二操作系统中所装载的所有应用的应用信息。
S103、应用管理模块1获取第一操作系统的应用列表1。
在一些实施例中,应用管理模块1维护一个应用列表,该应用列表中记录有第一操作系统上安装的多个应用的应用信息。根据用户添加、删除应用的操作,应用管理模块1对应用列表进行更新。
在一些实施例中,应用管理模块1通过应用层查询当前第一操作系统中安装的多个应用的应用信息,实时获取第一操作系统的应用列表。
以图2为例,第一操作系统的应用列表1可以如表1所示。
表1
Figure PCTCN2021113608-appb-000005
其中,表1中示例性列出了一种可能的应用列表1的表现形式。表1中示意出了部分信息,应用列表1中还可以包括其他的信息。例如,第一操作系统上安装的应用包括电话、联系人、短信息、邮箱、设置和图库;另外,第一操作系统上还可以安装有其他应用,应用列表1中包含有当前第一操作系统中安装的所有应用的应用信息。
S104、应用管理模块1调用切换模块1获取第二操作系统的应用列表2。
其中,应用管理模块1调用切换模块1获取第二操作系统的应用列表2包括:应用管理模块1向切换模块1发起获取第二操作系统的应用列表2的请求,再由第一操作系统中的切换模块1向第二操作系统中的切换模块2发起获取第二操作系统的应用列表2的请求,随后再由第二操作系统中的切换模块2向第二操作系统中的应用管理模块2发起获取第二 操作系统的应用列表2的请求,从而使得应用管理模块1间接的获取第二操作系统的应用列表2。
可选的,在本申请实施例中,S104可以和S103同步进行,也可以在S103之前或者S103之后。
S105、切换模块1向第二操作系统的切换模块2请求第二操作系统的应用列表2。
在一些实施例中,第一操作系统中的切换模块1通过双核通信服务1生成指示消息,该指示消息用于指示第二操作系统的切换模块2向第一操作系统的切换模块1发送第二操作系统的应用列表2。内核层(kernel)中的双核通信驱动1在接收到双核通信服务1下发的指示消息之后,将该指示消息发送给第二操作系统中的双核通信驱动2。
对应的,第二操作系统中的双核通信驱动2将接收到的指示消息上报给双核通信服务2。接下来,双核通信服务2对指示消息进行处理,并向切换模块2发起请求,该请求用于获取第二操作系统的应用列表2。
S106、第二操作系统的切换模块2获取第二操作系统的应用列表2。
其中,第二操作系统的切换模块2获取第二操作系统的应用列表2包括:
S1、第二操作系统的切换模块2向第二操作系统中的应用管理模块2(未示出)发起获取第二操作系统的应用列表2的请求。
S2、应用管理模块2根据该请求获取第二操作系统的应用列表2。
S3、应用管理模块2向第二操作系统的切换模块2反馈第二操作系统的应用列表2。
在一些实施例中,第二操作系统的应用管理模块2维护一个应用列表,该应用列表中记录有第二操作系统上安装的多个应用的应用信息。根据用户添加、删除应用的操作,应用管理模块2对应用列表进行更新。
在一些实施例中,第二操作系统的应用管理模块2通过应用层查询当前第二操作系统中安装的多个应用的应用信息,实时获取第二操作系统的应用列表。
以图2为例,第二操作系统的应用列表2可以如表2所示。
表2
Figure PCTCN2021113608-appb-000006
其中,表2中示例性列出了一种可能的应用列表2的表现形式。表2中示意出了部分信息,应用列表2中还可以包括其他的信息。例如,第二操作系统上安装的应用包括云共享和运动健康;另外,第二操作系统上还可以安装有其他应用,应用列表2中包含有当前第二操作系统中安装的所有应用的应用信息。
S107、第二操作系统的切换模块2向第一操作系统的切换模块1反馈第二操作系统的应用列表2。
在一些实施例中,第二操作系统的切换模块2通过双核通信服务2生成反馈消息,该 反馈消息中包含第二操作系统的应用列表2。内核层(kernel)中的双核通信驱动2在接收到双核通信服务2下发的反馈消息之后,将该反馈消息发送给第一操作系统中的双核通信驱动1。
对应的,第一操作系统中的双核通信驱动1将接收到的反馈消息上报给双核通信服务1。接下来,双核通信服务1对反馈消息进行处理,并向切换模块1发送该第二操作系统的应用列表2。
S108、第一操作系统的切换模块1向应用管理模块1反馈第二操作系统的应用列表2。
S109、应用管理模块1向第一操作系统的Launcher1反馈第一操作系统和第二操作系统的应用列表。
在一种可能的实现方式中,应用管理模块1可以将第一操作系统的应用列表1和第二操作系统的应用列表2合并为一个应用列表。以上述表1、表2为例,合并后的应用列表(即前述的应用列表3)可以参见表3所示。
表3
Figure PCTCN2021113608-appb-000007
S110、Launcher1根据反馈的应用列表3显示桌面。
在一些实施例中,Launcher1维护一个缓存列表,该缓存列表记录有多个应用的应用信息,例如,应用的应用图标、应用名称、应用包ID以及应用的排列情况,等等。示例性的,在一种可能的实现方式中,电子设备10可以创建一个三维数组来记录应用的排列情况。其中,第一维是屏数,第二维是纵向上的排列情况,第三维是横向的排列情况。一个应用对应一个三维坐标,例如,设置应用的排列情况为(1,2,3),表明设备应用所在的位置是 桌面的第一屏中的第二列、第三行。
在另一种可能的实现方式中,电子设备10可以创建多个二维数组来记录应用的排列情况。其中,多个二维数组的序号对应于桌面中的不同屏数;一个二维数组中的第一维是纵向上的排列情况,第二维是横向的排列情况。一个应用对应一个二维坐标,例如,相机应用在第2个二维数组中,对应的排列情况为(1,3),表明相机应用所在的位置是桌面的第二屏中的第一列、第三行。
需要说明的是,在移动、添加、删除桌面上的应用图标时,电子设备10都需要更新数组,保持数组的正确性。在安装新的应用的情况下,电子设备10可以根据数组的状态以及预设规则来确定将新的应用图标添加在哪个位置。例如,预设规则可以是:添加的应用显示在预设屏数的界面(例如,主屏、第二屏、最后一屏,等等)上,显示位置为当前界面中最后一排的下一列的位置。若最后一排所有位置已占用,则显示在最后一排的下一排的第一列,若当前界面中的所有位置已占用,则显示在临近该预设屏数的界面的下一个界面上。之后,更新该数组。
在一种可能的实现方式中,Launcher1根据应用列表3以及缓存列表显示桌面。具体的,Launcher1对比应用列表3以及缓存列表,以比较应用名称(还可以是应用包ID)为例。若应用列表3中包含的应用名称与缓存列表中包含的应用名称相同,那么Launcher1按照缓存列表中记录的应用的排列情况显示各个应用的应用图标。若应用列表3中包含的应用名称少于或者多于缓存列表中包含的应用名称,则Launcher1更新缓存列表,按照更新后的缓存列表中的应用的排列情况显示各个应用的应用图标。
具体的,更新的规则可以是:
(1)若应用列表3中包含的应用名称少于缓存列表中包含的应用名称,则在缓存列表中删除应用列表3中未包含的应用的应用信息,且更新应用的排列情况。示例性的,在删除的应用所在的桌面上,将位于该删除的应用之后的应用的应用图标向前移动一位。也即是说,将后一位的应用图标的列数减一;若减一后列数为0,则将后一位的应用图标的行数减一,列数附为列数的最大值。位于之后的应用图标作相似的处理。在另一示例中,若删除的应用所在的桌面上不存在其他的应用图标,则删除该桌面。(2)若应用列表3中包含的应用名称多于缓存列表中包含的应用名称,则在缓存列表中添加应用列表3中多出的应用的应用信息,且更新应用的排列情况。示例性的,添加的应用显示在预设屏数的界面(例如,主屏、第二屏、最后一屏,等等)上,该多出的应用显示在预设屏数的界面中最后一位应用图标之后。也即是说,该多出的应用的行数与最后一位应用图标的行数相同,列数等于最后一位应用图标的列数加一;若加一后的列数大于列数的最大值,则该多出的应用的行数等于最后一位应用图标的行数加一,列数等于一。若预设屏数的界面上的所有位置已占用,则多出的应用显示在临近该预设屏数的界面的下一个界面上,位于下一个界面中的最后一位应用图标之后。
需要说明的是,以上的更新规则仅为示例,Launcher1中可以存在其他方式的更新规则。
以下示例性说明Launcher1根据反馈的应用列表3显示桌面的方式。在该示例中,Launcher1中存储的缓存列表可以参照表4所示(可对应于图2的桌面显示方式)。Launcher1 接收的应用列表3参照表5所示。
表4
Figure PCTCN2021113608-appb-000008
表5
Figure PCTCN2021113608-appb-000009
Figure PCTCN2021113608-appb-000010
Launcher1对比应用列表3以及缓存列表,应用列表3中包含的应用名称多于缓存列表中包含的应用名称,Launcher1更新缓存列表。按照上述介绍的预设规则,多出的应用(笔记)显示在预设的第二屏上,该应用的坐标的行数与之前第二屏上的最后一位应用图标的行数相同,即为3;列数等于最后一位应用图标的列数加一,即为3。更新后的缓存列表可以参照表6所示。之后,Launcher1按照更新后的缓存列表中的应用的排列情况显示各个应用的应用图标。示例性的,该桌面的显示效果图可以参照图4A所示的用户界面41。相比于图2,在图4A所示的桌面上,添加了笔记应用的应用图标251。
表6
Figure PCTCN2021113608-appb-000011
在另一种可能的实现方式中,Launcher1在第二操作系统的应用的应用图标上显示指示标识,该指示标识用于指示该指示标识所在的应用图标对应的应用安装在第二操作系统上。示例性的,参见图4B,是本申请实施例提供的又一种桌面的示意图。在用户界面42中,云共享应用的应用图标237上显示有指示标识261,运动健康应用的应用图标249上显示有指示标识262,笔记应用的应用图标251上显示有指示标识263。
在一些实施例中,当电子设备在运行第一操作系统的过程中,若用户点击了第二操作系统中的应用的应用图标,响应于该点击操作,电子设备10将切换成运行第二操作系统,并运行用户点击的应用图标所对应的应用。另外,不限于点击应用图标的方式,还可以存在其他启动第二操作系统中的应用的方式。例如,电子设备10接收到用户通过遥控器发出的选中该应用图标的指令。又例如,电子设备10监听到语音指令,该语音指令用于指示电子设备10启动第二操作系统中的某个应用。又例如,电子设备10通过摄像头或者传感器检测到手势操作,该手势操作用于指示电子设备10启动第二操作系统中的某个应用。
参见图5A-图5C,是本申请实施例提供的一些用户界面的示意图。如图5A-图5C示例性所示,电子设备10接收到用户针对运动健康应用的应用图标249(其中,应用图标249是第二操作系统中装载的应用)的触控操作(示例为点击操作),响应于该用户操作,电子设备10显示从当前应用(即第一操作系统中的Launcher1应用)切换到运动健康应用的过渡动画。之后,电子设备10显示运动健康应用中的应用界面。
参见图5B,是本申请实施例提供的电子设备10上显示的一种过渡动画的示意图。在该应用界面52中包括显示区域301,该显示区域301用于显示用户界面51。该显示区域301将从用户界面的52的全屏逐步缩小到右下角。
参见图5C,是本申请实施例提供的电子设备10上显示的一种运动健康应用的界面。在用户界面53中,包括显示区域405、选项图标402、选项图标403和选项图标404。其中,显示区域中包含计步图标401和距离图标406,计步图标401用于显示当前记录的步数数据,距离图标406用于显示当前行走的距离信息。选项图标402、选项图标403和选项图标404,可以接收用户的触控操作(示例为点击操作),响应于该触控操作,电子设备10显示该选项图标对应的界面内容。示例性的,用户界面53的显示区域405中显示的内容为选项图标402对应的界面内容。在用户对选项图标404进行点击操作之后,电子设备10将显示区域405切换为显示存储的多个日期的运动数据的记录。
需要说明的是,电子设备10显示的过渡动画不限于图5B所示的界面缩小方式,还可以存在其他的方式。示例性的,参见图5D,是本申请实施例提供的电子设备10上显示的又一种过渡动画的示意图。用户界面中包括显示区域501和显示区域502,其中,显示区域501用于显示Launcher1应用的应用界面,显示区域502用于显示运动健康应用的应用界面。在切换过程中,显示区域501从用户界面54的全屏向右滑动,逐渐移出显示界面;显示区域502从用户界面的左侧移入,逐渐占据用户界面54的全屏。在切换的过程中,电子设备10加载运动健康应用的应用界面。另外,电子设备10显示的过渡动画还可以为其他方式,例如向用户界面51的中心逐渐缩小,等等,此处不再一一赘述。
接下来以图5A-图5C为例,介绍电子设备10上双系统的切换流程。参加图6,是本申请实施例提供的一种双系统切换的流程图。
S201、响应于用户点击应用图标249的操作,第一操作系统中的Launcher1应用向第一操作系统中的切换模块1发送切换请求,该切换请求中包含应用图标249对应的运动健康应用的应用信息。
示例性的,该切换请求中包含运动健康应用的应用包ID、应用名称、应用图标等等应用信息。
S202、响应于该切换请求,第一操作系统中的切换模块1截取并缓存当前显示屏上显示的Launcher1应用的第一用户界面。
参见上述图5A-图5C的示例,第一用户界面可以参照图5A所示的用户界面51。
S203、第一操作系统中的切换模块1向第二操作系统中的切换模块2发送第一切换指令,该第一切换指令中包含该第一用户界面的信息。
其中,该第一切换指令用于指示第二操作系统中的切换模块2接管电子设备10的TP/LCD控制权。可选的,该第一切换指令还用于指示第二操作系统中的切换模块2根据该第一用户界面的信息显示第一用户界面。
在一些实施例中,第一操作系统中的切换模块1通过双核通信服务1生成第一切换指令。第一操作系统内核层(kernel)中的双核通信驱动1在接收到双核通信服务1下发的第一切换指令之后,将该第一切换指令发送给第二操作系统中的双核通信驱动2。
对应的,第二操作系统中的双核通信驱动2将接收到的第一切换指令上报给第二操作系统中的双核通信服务2。接下来,第二操作系统中的双核通信服务2对第一切换指令进行处理,并向切换模块2发起第一切换指令,该第一切换指令用于指示切换模块2接管电子设备10的TP/LCD控制权。可选的,该第一切换指令还用于指示切换模块2根据该第一用户界面的信息显示第一用户界面。
S204、第二操作系统中的切换模块2接管TP/LCD控制权,显示该第一用户界面。
需要说明的是,在这个过程中,TP/LCD控制权由第一操作系统中的切换模块1转让给了第二操作系统中的切换模块2。但在显示屏中显示的用户界面均为第一用户界面,用户不会感觉到明显的界面卡顿,可以提升用户的视觉体验。
S205、第一操作系统中的切换模块1向第二操作系统中的切换模块2发送运动健康应用的应用信息。
在一些实施例中,该运动健康应用的应用信息可以包含在步骤S203中的第一切换指令中。
S206、第一操作系统中的切换模块1将第一处理器休眠。
由于TP/LCD控制权由第一操作系统中的切换模块1转让给了第二操作系统中的切换模块2,电子设备10即将运行第二操作系统中的应用,电子设备10可以对第一处理器进行休眠。因为一般而言第一处理器的功耗较高,这种方式可以大量节省电子设备10的功耗。
S207、第二操作系统中的切换模块2根据第一用户界面以及运动健康应用的应用界面显示过渡动画。
其中,该第二操作系统中的切换模块中可以缓存有运动健康应用的应用界面,该应用 界面可以为启动界面。具体的,切换模块2可以调用显示服务2来显示过渡动画。
示例性的,该过渡动画可以参照图5B所示的用户界面52、图5D所示的用户界面54。
在另一些实施例中,第一操作系统中的切换模块1无需向第二操作系统中的切换模块2发送第一用户界面的信息,第二操作系统中的切换模块2可以根据Launcher1应用和运动健康应用的应用图标生成过渡动画。
示例性的,参见图7,是本申请实施例提供的又一种过渡动画的示意图。用户界面55中包括Launcher1应用的应用图标511、运动健康应用的应用图标247和提示信息522。该提示信息522用于提示当前正在进行系统之间的应用切换。
S208、第二操作系统中的切换模块2激活运动健康应用。
S209、运动健康应用开始运行。
运动健康应用的显示界面可以参照图5C所示的用户界面53。
在另一些实施例中,当电子设备在运行第二操作系统的过程中,若用户点击了当前界面中第一操作系统中的应用的应用图标,响应于该点击操作,电子设备10将切换成运行第一操作系统,并运行用户点击的应用图标所对应的应用。这个过程可以参照上述从运行第一操作系统切换成运行第二操作系统的过程。
在一些实施例中,运动健康应用的显示界面还可以参照图8所示的用户界面56。运动健康应用的显示界面中还包括切换控件701,该切换控件701用于接收用户操作,响应于该用户操作,电子设备10从第二操作系统切换回第一操作系统。示例性的,电子设备10从显示用户界面56切换至显示用户界面51。
其中,该切换控件701是第二操作系统中的系统应用界面2应用显示的。示例性的,该切换控件701对应的应用为第一操作系统中的Launcher1。以下对这种切换过程进行进一步的介绍。参见图9,是本申请实施例提供的又一种双系统切换的流程图。
S301、响应于用户点击切换控件701的操作,第二操作系统中的系统应用界面2应用向第二操作系统中的切换模块2发送切换请求,该切换请求中包含切换控件701对应的第一操作系统中的Launcher1应用的应用信息。
示例性的,该切换请求中可以包含Launcher1应用的应用包ID、应用名称、应用图标等等应用信息。
S302、响应于该切换请求,第二操作系统中的切换模块2截取并缓存当前显示屏上显示的第二用户界面。
示例性的,第二用户界面可以参照图8所示的用户界面56。
S303、第二操作系统中的切换模块2向第一操作系统中的切换模块1发送第二切换指令,该第二切换指令中包含该第二用户界面的信息。
其中,该第二切换指令用于指示第一操作系统中的切换模块1接管电子设备10的TP/LCD控制权。可选的,该第二切换指令还用于指示第一操作系统中的切换模块1根据该第二用户界面的信息显示第二用户界面。
在一些实施例中,第一操作系统中的切换模块2通过双核通信服务2生成第二切换指令。第二操作系统内核层(kernel)中的双核通信驱动2在接收到双核通信服务2下发的第 二切换指令之后,将该第二切换指令发送给第一操作系统中的双核通信驱动1。
对应的,第一操作系统中的双核通信驱动1将接收到的第二切换指令上报给第一操作系统中的双核通信服务1。接下来,第一操作系统中的双核通信服务1对第二切换指令进行处理,并向切换模块1发起第二切换指令,该第二切换指令用于指示切换模块1接管电子设备10的TP/LCD控制权。可选的,该第二切换指令还用于指示切换模块1根据该第二用户界面的信息显示第二用户界面。
S304、第一操作系统中的切换模块1接管TP/LCD控制权,显示该第二用户界面。
需要说明的是,在这个过程中,TP/LCD控制权由第二操作系统中的切换模块2转让给了第一操作系统中的切换模块1。但在显示屏中显示的用户界面均为第二用户界面,用户不会感觉到明显的界面卡顿,可以提升用户的视觉体验。
S305、第二操作系统中的切换模块2向第一操作系统中的切换模块1发送Launcher1应用的应用信息。
在一些实施例中,该Launcher1的应用信息可以包含在步骤S303中的第二切换指令中。
S306、第二操作系统中的切换模块2将第二处理器休眠。
由于TP/LCD控制权由第二操作系统中的切换模块2转让给了第一操作系统中的切换模块1,电子设备10即将运行第一操作系统中的应用,电子设备10可以对第二处理器进行休眠,节省电子设备10的功耗。
S307、第一操作系统中的切换模块1根据第二用户界面以及Launcher1的应用界面显示过渡动画。
其中,该第一操作系统中的切换模块中可以缓存有Launcher1应用的应用界面。具体的,切换模块2可以调用显示服务2来显示过渡动画。
S308、第一操作系统中的切换模块1激活Launcher1应用。
S309、Launcher1应用开始运行。
在一种可能的实现方式中,Launcher1应用的运行过程可以参照上述图3对应实施例的介绍。Launcher1应用的显示界面可以参照图4A所示的用户界面41,或者图4B所示的用户界面42。也即是说,不仅电子设备10的开机,第一处理器的重新运行也会使得Launcher1应用重新获取应用列表,该应用列表中包括第一操作系统的应用列表1以及第二操作系统中的应用列表2。通过这种方式,可以同步第二操作系统中的应用列表2到第一操作系统中,确保电子设备10显示的桌面的正确性;避免第二操作系统中的应用删减或增加之后,第一操作系统中的桌面并未同步的问题。
在另一些实施例中,还可以存在其他切换回第一操作系统的方式。例如,电子设备10接收到预设操作,响应于该预设操作,电子设备从第二操作系统切换回第一操作系统。示例性的,该预设操作可以是连续两次按压电源键的操作,该预设操作还可以是从用户界面53的底端向上滑动的操作,等等。
在本申请实施例中,在电子设备10运行第一操作系统的过程中,若用户点击了当前界面上的安装在第二操作系统上的应用的应用图标,响应于该点击操作,电子设备10切换到第二操作系统,运行点击的应用图标对应的应用,并休眠第一操作系统所在的第一处理器。通过这种方式,电子设备10可以快速切换到第二操作系统,便于用户使用第二操作系统中 的应用。另外,电子设备10对第一处理器进行休眠,可以节省电子设备10的功耗。
在一些实施例中,电子设备10可以为可穿戴设备,示例性的,可以为智能手表、智能眼镜,等等。可穿戴设备一般可以存储的电量较少,为了降低电子设备10的功耗,可将用户高频使用的应用(例如,运动健康应用)安装在第二操作系统中。在用户使用第二操作系统的应用过程中,电子设备10对第一处理器进行休眠,可以大量降低电子设备10的功耗。
在一些实施例中,本申请实施例提供的方法还可以应用于机顶盒(set top box,STB)和电视的连接系统中。参见图10,是本申请实施例提供的一种机顶盒和电视的连接系统的示意图。该连接系统10中包括电视机110和机顶盒140。其中:
电视机110,可以播放广播电视台传输的直播电视节目,还可以播放从互联网中点播下载的视频资源。具体的,直播电视节目的传输过程可以是:广播电视台送出图像及声音信号,经数字压缩和数字调制后,形成数字电视信号;经过卫星、地面无线广播或有线电缆等方式传送,由机顶盒140接收;之后,机顶盒140通过数字解调和数字视音频解码处理还原出原来的图像及声音信号,发送给电视机110进行播放。点播视频资源则是利用现有的互联网网络来传送视频数据的。
机顶盒140可以是数字电视机顶盒或网络电视机顶盒。其中,数字电视机顶盒可以包括接收有线电视的数字机顶盒、接收卫星电视的数字机顶盒和接收地面广播电视的数字机顶盒。机顶盒140可以将接收到的直播视频数据通过HDMI线或AV线发送给电视机110。
电视机110与机顶盒140之间的链路连接104可以是高清晰多媒体接口(high definition multimedia interface,HDMI)线/音视频(audio and video,AV)线连接。
由于电视机安装的操作系统与机顶盒安装的操作系统不同,电视机的显示屏上可以显示电视机中安装的应用的应用界面,或者显示机顶盒中安装的应用的应用界面。用户需要在手动在两个操作系统中进行切换,才能使用不同操作系统中的应用。
鉴于此,结合本申请实施例提供的方法,在电视机的第一操作系统的应用程序框架层中包含有切换模块;下层为系统切换提供服务,硬件抽象层中包含双核通信服务模块,内核层中包含双核通信驱动。在机顶盒的第二操作系统的应用程序框架层中包含有切换模块;下层为系统切换提供服务,硬件抽象层中包含双核通信服务模块,内核层中包含双核通信驱动。
在一些实施例中,电视机显示的第一操作系统的桌面上包含安装在电视机以及机顶盒中的应用的应用图标,该桌面的显示流程可以参照图3对应的实施例的介绍。
在一些实施例中,用户可以在电视机显示的第一操作系统中的桌面上,对需要使用的应用进行选择。若用户选择的是安装在第二操作系统(即机顶盒)中的应用,则运行该被选择的第二操作系统中的应用,这个切换流程可以参照图6对应实施例的介绍。
通过本申请提供的方法,用户可以直观地在第一操作系统(即电视机)的界面中,查看到第二操作系统(即机顶盒)中的应用的应用图标,并且可以方便地进行两个操作系统之间的应用切换,简化了用户操作。
结合上述实施例的介绍,以下对本申请提供的一种双系统中用户界面的显示方法进行 介绍。参见图11,是本申请实施例提供的一种双系统中用户界面的显示方法的流程图,所述方法应用于电子设备,所述电子设备安装有第一操作系统和第二操作系统,所述第一操作系统与所述第二操作系统不同,所述方法包括以下步骤。
S401、电子设备检测到第一操作。
在一些实施例中,所述第一操作包括:触发所述电子设备从熄屏状态切换至显示所述第一界面的操作,触发所述电子设备从显示其他界面切换至显示所述第一界面的操作中的一项或多项;其中,所述其他界面为所述电子设备显示的所述第一操作系统的用户界面和所述第二操作系统的用户界面中除所述第一界面外的用户界面。示例性的,该第一操作可以为图3所对应的实施例中,用户对于电子设备10的开机操作。该第一操作还可以为图9所对应的实施例中,用户点击切换控件701的操作。
S402、响应于所述第一操作,所述电子设备显示第一界面。
其中,所述第一界面中包括第一应用的应用图标以及第二应用的应用图标,所述第一应用为安装在所述第一操作系统中的应用,所述第二应用为安装在所述第二操作系统中的应用,所述第一界面为所述第一操作系统中的用户界面。示例性的,该第一界面可以参照图2所示的用户界面21,该第一界面还可以参照图4A所示的用户界面41,以及图4B所示的用户界面42。
在一些实施例中,所述方法还包括:所述电子设备接收到针对所述第二应用的应用图标的第二操作;响应于所述第二操作,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面。示例性的,第二操作可以参照图6所对应的实施例中,用户点击应用图标249的操作。第二应用的应用图标可以参照图5A中的应用图标249。第一界面可以参照图5A所示的用户界面51,第二应用的用户界面可以参照图5C所示的用户界面53。通过这种方式,用户可以通过触控第二操作系统中的应用的应用图标,方便快捷地将电子设备从运行第一操作系统切换至运行第二操作系统,提升两个操作系统之间的切换效率。
在一些实施例中,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面,包括:所述电子设备从显示所述第一界面切换至显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;所述电子设备从显示所述过渡动画切换至显示所述第二应用的用户界面。示例性的,第一界面可以参照图5A所示的用户界面51,第二应用的用户界面可以参照图5C所示的用户界面53。示例性的,过渡动画可以参照图5B所示的用户界面52,图5D所示的用户界面54,或者图7所示的用户界面55。
在一些实施例中,所述第二应用的用户界面中的包含切换控件,所述方法还包括:所述电子设备接收到针对所述切换控件的第三操作;响应于所述第三操作,所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面。示例性的,所述切换控件可以参照图8中的切换控件701。第三操作可以参照图9所对应的实施例中的,用户点击切换控件701的操作。
在一些实施例中,所述电子设备显示第一界面,包括:所述电子设备获取第一应用列表,所述第一应用列表中包括所述第一操作系统上安装的应用的应用信息以及所述第二操作系统上安装的应用的应用信息,所述应用信息包括应用的应用图标、应用的名称、应用 的应用包标识号ID中的一项或者多项;所述电子设备根据所述第一应用列表显示所述第一界面。示例性的,第一应用列表可以参照图3对应的实施例中的应用列表3。所述电子设备根据所述第一应用列表显示的所述第一界面,可以参照图4A所示的用户界面41,或者图4B所示的用户界面42。
在一些实施例中,所述方法还包括:所述电子设备检测到所述第一应用列表的更新事件;所述电子设备获取所述第一应用列表。其中,所述第一应用列表的更新事件包括:在所述电子设备上安装第三应用,从所述电子设备上卸载第四应用,所述电子设备上第五应用的更新,当前时间到达预设的所述第一应用列表的刷新时间,所述电子设备从显示所述第二操作系统中的用户界面切换至显示所述第一操作系统中的用户界面中的一项或者多项。
在一些实施例中,所述电子设备获取所述第一应用列表,包括:所述电子设备通过所述第一操作系统获取第二应用列表,所述第二应用列表中包括所述第一操作系统上安装的应用的应用信息;所述电子设备通过所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求用于获取第三应用列表,所述第三应用列表中包括所述第二操作系统上安装的应用的应用信息;所述电子设备通过所述第一操作系统接收所述第二操作系统发送的所述第三应用列表;所述电子设备根据所述第二应用列表以及所述第三应用列表确定所述第一应用列表。
示例性的,这种获取第一应用列表的方式可以参照图3所对应的实施例的介绍。第一应用列表可以参照图3对应的实施例中的应用列表3。第二应用列表可以参照图3对应的实施例中的应用列表1,第三应用列表可以参照图3对应的实施例中的应用列表2。该获取请求可以参照图3对应的实施例的步骤S105中的,切换模块1向第二操作系统的切换模块2发送的请求。
在一些实施例中,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面,包括:所述电子设备通过所述第一操作系统截取并缓存所述第一界面的界面内容;所述电子设备通过所述第一操作系统向所述第二操作系统发送第一切换指令,所述第一切换指令中包括第一数据,所述第一数据用于指示所述第一界面的界面内容,所述第一切换指令用于指示所述第二操作系统显示所述第一界面;所述电子设备根据所述第一切换指令通过所述第二操作系统显示所述第一用户界面;所述电子设备通过所述第一操作系统向所述第二操作系统发送所述第二应用的应用信息;所述电子设备根据所述第一数据和所述第二应用的应用信息,通过所述第二操作系统显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;所述电子设备通过所述第二操作系统运行所述第二应用,并显示所述第二应用的应用界面。
示例性的,这种切换方式可以参照图6所对应的实施例的介绍。第一界面可以参照图6对应的实施例中的第一用户界面,第一用户界面可以参照图5A所示的用户界面51。第一数据可以参照图6对应的实施例中的第一用户界面的信息。第一切换指令可以参照图6对应的实施例中的第一切换指令。所述第二应用的应用信息可以参照图6对应的实施例中的运动健康应用的应用信息。过渡动画可以参照图5B所示的用户界面52、图5D所示的用户界面54,或者图7所示的用户界面55。第二应用的应用界面可以参照图5C所示的用户 界面53。
在一些实施例中,在所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面之后,所述方法还包括:所述电子设备休眠所述第一操作系统所对应的处理器。示例性的,第一操作系统所对应的处理器可以参照图6对应的实施例中的第一处理器。
在一些实施例中,所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面,包括:所述电子设备通过所述第二操作系统截取并缓存所述第二应用的用户界面的界面内容;所述电子设备通过所述第二操作系统向所述第一操作系统发送第二切换指令,所述第二切换指令中包括第二数据,所述第二数据用于指示所述第二应用的用户界面的界面内容,所述第二切换指令用于指示所述第一操作系统显示所述第二应用的用户界面;所述电子设备根据所述第二切换指令通过所述第一操作系统显示所述第二应用的用户界面;所述电子设备通过所述第二操作系统向所述第一操作系统发送第六应用的应用信息,所述切换控件与所述第六应用相对应,所述第一界面包含于所述第六应用的用户界面;所述电子设备根据所述第二数据和所述第六应用的应用信息,通过所述第一操作系统显示过渡动画,所述过渡动画包含所述第二应用的用户界面的界面内容和/或所述第一界面;所述电子设备通过所述第二操作系统运行所述第六应用,并显示所述第一界面。
示例性的,这种切换方式可以参照图9所对应的实施例的介绍。第二应用的用户界面可以参照图9对应的实施例中的第二用户界面,第二用户界面可以参照图8所示的用户界面56。第一数据可以参照图9对应的实施例中的第二用户界面的信息。第二切换指令可以参照图9对应的实施例中的第二切换指令。所述第六应用的应用信息可以参照图9对应的实施例中的Launcher1应用的应用信息。所述第六应用可以参照图9对应的实施例中Launcher1应用。第一界面可以参照图4A所示的用户界面41,或者图4B所示的用户界面42。
在一些实施例中,在所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面之后,所述方法还包括:所述电子设备休眠所述第二操作系统所对应的处理器。示例性的,第二操作系统所对应的处理器可以参照图9对应的实施例中的第二处理器。
以上介绍了电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或具有显示功能的便携式电子设备,诸如手机、平板电脑、笔记本电脑,具备无线通讯功能的可穿戴电子设备(如智能手表、智能手环、智能腕带)等。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面或触控面板的膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以是具有触敏表面或触控面板的台式计算机。在另一些实施例中,上述电子设备还可以是机顶盒、电视等智能家居设备。
本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序或指令,当所述计算机程序或指令在电子设备上运行时,使得电子设备执行如上述实施例介绍的双系统中用户界面的显示方法。
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当所述计算机程序或指令在电子设备上运行时,使得电子设备执行如上述实施例介绍的双系统中用户界面的显示方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。
总之,以上所述仅为本申请技术方案的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (26)

  1. 一种双系统中用户界面的显示方法,其特征在于,所述方法应用于电子设备,所述电子设备安装有第一操作系统和第二操作系统,所述第一操作系统与所述第二操作系统不同,所述方法包括:
    所述电子设备检测到第一操作;
    响应于所述第一操作,所述电子设备显示第一界面,所述第一界面中包括第一应用的应用图标以及第二应用的应用图标,所述第一应用为安装在所述第一操作系统中的应用,所述第二应用为安装在所述第二操作系统中的应用,所述第一界面为所述第一操作系统中的用户界面。
  2. 根据权利要求1所述的方法,其特征在于,所述第一操作包括:
    触发所述电子设备从熄屏状态切换至显示所述第一界面的操作,触发所述电子设备从显示其他界面切换至显示所述第一界面的操作中的一项或多项;其中,所述其他界面为所述电子设备显示的所述第一操作系统的用户界面和所述第二操作系统的用户界面中除所述第一界面外的用户界面。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    所述电子设备接收到针对所述第二应用的应用图标的第二操作;
    响应于所述第二操作,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面。
  4. 根据权利要求3所述的方法,其特征在于,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面,包括:
    所述电子设备从显示所述第一界面切换至显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;
    所述电子设备从显示所述过渡动画切换至显示所述第二应用的用户界面。
  5. 根据权利要求3或4所述的方法,其特征在于,所述第二应用的用户界面中的包含切换控件,所述方法还包括:
    所述电子设备接收到针对所述切换控件的第三操作;
    响应于所述第三操作,所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述电子设备显示第一界面,包括:
    所述电子设备获取第一应用列表,所述第一应用列表中包括所述第一操作系统上安装的应用的应用信息以及所述第二操作系统上安装的应用的应用信息,所述应用信息包括应 用的应用图标、应用的名称、应用的应用包标识号ID中的一项或者多项;
    所述电子设备根据所述第一应用列表显示所述第一界面。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    所述电子设备检测到所述第一应用列表的更新事件;
    所述电子设备获取所述第一应用列表;
    其中,所述第一应用列表的更新事件包括:在所述电子设备上安装第三应用,从所述电子设备上卸载第四应用,所述电子设备上第五应用的更新,当前时间到达预设的所述第一应用列表的刷新时间,所述电子设备从显示所述第二操作系统中的用户界面切换至显示所述第一操作系统中的用户界面中的一项或者多项。
  8. 根据权利要求6或7所述的方法,其特征在于,所述电子设备获取所述第一应用列表,包括:
    所述电子设备通过所述第一操作系统获取第二应用列表,所述第二应用列表中包括所述第一操作系统上安装的应用的应用信息;
    所述电子设备通过所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求用于获取第三应用列表,所述第三应用列表中包括所述第二操作系统上安装的应用的应用信息;
    所述电子设备通过所述第一操作系统接收所述第二操作系统发送的所述第三应用列表;
    所述电子设备根据所述第二应用列表以及所述第三应用列表确定所述第一应用列表。
  9. 根据权利要求3所述的方法,其特征在于,所述电子设备从显示所述第一界面切换至显示所述第二应用的用户界面,包括:
    所述电子设备通过所述第一操作系统截取并缓存所述第一界面的界面内容;
    所述电子设备通过所述第一操作系统向所述第二操作系统发送第一切换指令,所述第一切换指令中包括第一数据,所述第一数据用于指示所述第一界面的界面内容,所述第一切换指令用于指示所述第二操作系统显示所述第一界面;
    所述电子设备根据所述第一切换指令通过所述第二操作系统显示所述第一用户界面;
    所述电子设备通过所述第一操作系统向所述第二操作系统发送所述第二应用的应用信息;
    所述电子设备根据所述第一数据和所述第二应用的应用信息,通过所述第二操作系统显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;
    所述电子设备通过所述第二操作系统运行所述第二应用,并显示所述第二应用的应用界面。
  10. 根据权利要求3或4或9所述的方法,其特征在于,在所述电子设备从显示所述 第一界面切换至显示所述第二应用的用户界面之后,所述方法还包括:
    所述电子设备休眠所述第一操作系统所对应的处理器。
  11. 根据权利要求5所述的方法,其特征在于,所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面,包括:
    所述电子设备通过所述第二操作系统截取并缓存所述第二应用的用户界面的界面内容;
    所述电子设备通过所述第二操作系统向所述第一操作系统发送第二切换指令,所述第二切换指令中包括第二数据,所述第二数据用于指示所述第二应用的用户界面的界面内容,所述第二切换指令用于指示所述第一操作系统显示所述第二应用的用户界面;
    所述电子设备根据所述第二切换指令通过所述第一操作系统显示所述第二应用的用户界面;
    所述电子设备通过所述第二操作系统向所述第一操作系统发送第六应用的应用信息,所述切换控件与所述第六应用相对应,所述第一界面包含于所述第六应用的用户界面;
    所述电子设备根据所述第二数据和所述第六应用的应用信息,通过所述第一操作系统显示过渡动画,所述过渡动画包含所述第二应用的用户界面的界面内容和/或所述第一界面;
    所述电子设备通过所述第二操作系统运行所述第六应用,并显示所述第一界面。
  12. 根据权利要求5或11所述的方法,其特征在于,在所述电子设备从显示所述第二应用的用户界面切换至显示所述第一界面之后,所述方法还包括:
    所述电子设备休眠所述第二操作系统所对应的处理器。
  13. 一种电子设备,其特征在于,所述电子设备安装有第一操作系统和第二操作系统,所述第一操作系统与所述第二操作系统不同,所述电子设备包括两个或两个以上的处理器、存储器;所述存储器与所述两个或两个以上的处理器耦合,所述存储器用于存储程序代码,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备执行以下操作:
    检测到第一操作;
    响应于所述第一操作,显示第一界面,所述第一界面中包括第一应用的应用图标以及第二应用的应用图标,所述第一应用为安装在所述第一操作系统中的应用,所述第二应用为安装在所述第二操作系统中的应用,所述第一界面为所述第一操作系统中的用户界面。
  14. 根据权利要求13所述的电子设备,其特征在于,所述第一操作包括:
    触发所述电子设备从熄屏状态切换至显示所述第一界面的操作,触发所述电子设备从显示其他界面切换至显示所述第一界面的操作中的一项或多项;其中,所述其他界面为所述电子设备显示的所述第一操作系统的用户界面和所述第二操作系统的用户界面中除所述第一界面外的用户界面。
  15. 根据权利要求13或14所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:
    接收到针对所述第二应用的应用图标的第二操作;
    响应于所述第二操作,从显示所述第一界面切换至显示所述第二应用的用户界面。
  16. 根据权利要求15所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:
    从显示所述第一界面切换至显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;
    从显示所述过渡动画切换至显示所述第二应用的用户界面。
  17. 根据权利要求15或16所述的电子设备,其特征在于,所述第二应用的用户界面中的包含切换控件,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:
    接收到针对所述切换控件的第三操作;
    响应于所述第三操作,从显示所述第二应用的用户界面切换至显示所述第一界面。
  18. 根据权利要求13-17任一项所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:
    获取第一应用列表,所述第一应用列表中包括所述第一操作系统上安装的应用的应用信息以及所述第二操作系统上安装的应用的应用信息,所述应用信息包括应用的应用图标、应用的名称、应用的应用包标识号ID中的一项或者多项;
    根据所述第一应用列表显示所述第一界面。
  19. 根据权利要求18所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:
    检测到所述第一应用列表的更新事件;
    获取所述第一应用列表;
    其中,所述第一应用列表的更新事件包括:在所述电子设备上安装第三应用,从所述电子设备上卸载第四应用,所述电子设备上第五应用的更新,当前时间到达预设的所述第一应用列表的刷新时间,所述电子设备从显示所述第二操作系统中的用户界面切换至显示所述第一操作系统中的用户界面中的一项或者多项。
  20. 根据权利要求18或19所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:
    通过所述第一操作系统获取第二应用列表,所述第二应用列表中包括所述第一操作系统上安装的应用的应用信息;
    通过所述第一操作系统向所述第二操作系统发送获取请求,所述获取请求用于获取第 三应用列表,所述第三应用列表中包括所述第二操作系统上安装的应用的应用信息;
    通过所述第一操作系统接收所述第二操作系统发送的所述第三应用列表;
    根据所述第二应用列表以及所述第三应用列表确定所述第一应用列表。
  21. 根据权利要求15所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:
    通过所述第一操作系统截取并缓存所述第一界面的界面内容;
    通过所述第一操作系统向所述第二操作系统发送第一切换指令,所述第一切换指令中包括第一数据,所述第一数据用于指示所述第一界面的界面内容,所述第一切换指令用于指示所述第二操作系统显示所述第一界面;
    根据所述第一切换指令通过所述第二操作系统显示所述第一用户界面;
    通过所述第一操作系统向所述第二操作系统发送所述第二应用的应用信息;
    根据所述第一数据和所述第二应用的应用信息,通过所述第二操作系统显示过渡动画,所述过渡动画包含所述第一界面的界面内容和/或所述第二应用的应用界面的界面内容;
    通过所述第二操作系统运行所述第二应用,并显示所述第二应用的应用界面。
  22. 根据权利要求15或16或21所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:
    休眠所述第一操作系统所对应的处理器。
  23. 根据权利要求17所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备具体执行以下操作:
    通过所述第二操作系统截取并缓存所述第二应用的用户界面的界面内容;
    通过所述第二操作系统向所述第一操作系统发送第二切换指令,所述第二切换指令中包括第二数据,所述第二数据用于指示所述第二应用的用户界面的界面内容,所述第二切换指令用于指示所述第一操作系统显示所述第二应用的用户界面;
    根据所述第二切换指令通过所述第一操作系统显示所述第二应用的用户界面;
    通过所述第二操作系统向所述第一操作系统发送第六应用的应用信息,所述切换控件与所述第六应用相对应,所述第一界面包含于所述第六应用的用户界面;
    根据所述第二数据和所述第六应用的应用信息,通过所述第一操作系统显示过渡动画,所述过渡动画包含所述第二应用的用户界面的界面内容和/或所述第一界面;
    通过所述第二操作系统运行所述第六应用,并显示所述第一界面。
  24. 根据权利要求17或23所述的电子设备,其特征在于,所述两个或两个以上的处理器调用所述程序代码以使得所述电子设备还执行以下操作:
    休眠所述第二操作系统所对应的处理器。
  25. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,当所 述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12任一项所述的方法。
  26. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12中任一项所述的方法。
PCT/CN2021/113608 2020-09-19 2021-08-19 一种双系统中用户界面的显示方法及电子设备 WO2022057563A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010999205.0A CN114281440B (zh) 2020-09-19 2020-09-19 一种双系统中用户界面的显示方法及电子设备
CN202010999205.0 2020-09-19

Publications (1)

Publication Number Publication Date
WO2022057563A1 true WO2022057563A1 (zh) 2022-03-24

Family

ID=80776412

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113608 WO2022057563A1 (zh) 2020-09-19 2021-08-19 一种双系统中用户界面的显示方法及电子设备

Country Status (2)

Country Link
CN (1) CN114281440B (zh)
WO (1) WO2022057563A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227680A (zh) * 2008-02-01 2008-07-23 嘉兴闻泰通讯科技有限公司 一种界面动态切换的手机及手机界面动态切换的方法
US20150317185A1 (en) * 2014-05-05 2015-11-05 Pegatron Corporation Method for switching operating system and electronic device using the method
CN105511740A (zh) * 2015-12-30 2016-04-20 小米科技有限责任公司 应用界面切换方法及装置
CN105653336A (zh) * 2015-12-30 2016-06-08 惠州市德赛西威汽车电子股份有限公司 双操作系统下整合应用的方法
CN303841565S (zh) * 2016-01-11 2016-09-07
CN111625246A (zh) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 一种Linux-Android终端双系统的桌面管理方法
CN112286667A (zh) * 2020-11-18 2021-01-29 安徽鸿程光电有限公司 应用程序控制方法、装置、电子设备及介质
CN112925570A (zh) * 2021-02-24 2021-06-08 深圳市皓丽智能科技有限公司 基于双系统的应用操作方法、装置、电子设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544027B (zh) * 2012-07-13 2017-05-24 联想(北京)有限公司 控制应用更新的方法及电子设备
CN103699403A (zh) * 2013-12-03 2014-04-02 青岛海尔软件有限公司 Android平台的本机已安装应用的展示方法
CN104239142A (zh) * 2014-09-17 2014-12-24 宇龙计算机通信科技(深圳)有限公司 一种双系统的快捷切换方法、装置及终端
CN110471639B (zh) * 2019-07-23 2022-10-18 华为技术有限公司 显示方法及相关装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227680A (zh) * 2008-02-01 2008-07-23 嘉兴闻泰通讯科技有限公司 一种界面动态切换的手机及手机界面动态切换的方法
US20150317185A1 (en) * 2014-05-05 2015-11-05 Pegatron Corporation Method for switching operating system and electronic device using the method
CN105511740A (zh) * 2015-12-30 2016-04-20 小米科技有限责任公司 应用界面切换方法及装置
CN105653336A (zh) * 2015-12-30 2016-06-08 惠州市德赛西威汽车电子股份有限公司 双操作系统下整合应用的方法
CN303841565S (zh) * 2016-01-11 2016-09-07
CN111625246A (zh) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 一种Linux-Android终端双系统的桌面管理方法
CN112286667A (zh) * 2020-11-18 2021-01-29 安徽鸿程光电有限公司 应用程序控制方法、装置、电子设备及介质
CN112925570A (zh) * 2021-02-24 2021-06-08 深圳市皓丽智能科技有限公司 基于双系统的应用操作方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN114281440B (zh) 2023-04-14
CN114281440A (zh) 2022-04-05

Similar Documents

Publication Publication Date Title
WO2021057830A1 (zh) 一种信息处理方法及电子设备
US11221695B2 (en) Electronic device
US10230791B2 (en) Electronic device and method for controlling execution of application in electronic device
KR102269481B1 (ko) 디바이스 간에 화면 공유 방법 및 이를 이용하는 디바이스
CN105229590B (zh) 具有笔的用户终端装置和用户终端装置的控制方法
EP3586316B1 (en) Method and apparatus for providing augmented reality function in electronic device
WO2021129253A1 (zh) 显示多窗口的方法、电子设备和系统
WO2019206158A1 (zh) 一种界面显示方法、装置及设备
US20170011010A1 (en) Method for displaying web content and electronic device supporting the same
US10353988B2 (en) Electronic device and method for displaying webpage using the same
WO2021143929A1 (zh) 一种显示方法和电子设备
WO2023226455A1 (zh) 应用图标的显示方法、电子设备及可读存储介质
WO2023065916A1 (zh) 通知处理方法、芯片、电子设备及计算机可读存储介质
WO2021175272A1 (zh) 一种应用信息的显示方法及相关设备
US20150234577A1 (en) Webpage navigation method, mobile terminal using the same, and volatile storage medium recording the same
US20180181999A1 (en) Electronic device and method for displaying web page using the same
WO2023001163A1 (zh) 一种可提升动效性能的屏幕刷新方法及设备
WO2021052488A1 (zh) 一种信息处理方法及电子设备
WO2022057563A1 (zh) 一种双系统中用户界面的显示方法及电子设备
WO2022052677A1 (zh) 界面显示方法及电子设备
WO2023005751A1 (zh) 渲染方法及电子设备
WO2023280141A1 (zh) 刷新用户界面的方法和电子设备
WO2022088981A1 (zh) 一种广告显示方法及电子设备
WO2024001871A1 (zh) 一种操控方法和电子设备
CN115016714B (zh) 电子设备控制方法、系统、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21868391

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868391

Country of ref document: EP

Kind code of ref document: A1