Summary of the invention
For overcoming above-mentioned technical problem or solving above-mentioned technical problem at least in part, below special proposition
Technical scheme:
One embodiment of the present of invention proposes switching cartoon display method during multisystem switching, bag
Include:
The trigger action for the switching of multisystem AM/BAM detected, obtain when system switches with forward and backward
The switching video data that platform system is the most corresponding;
Switching video data the most corresponding with Foreground and Background system when switching based on system generates system and cuts
Move picture;
Play System switching animation, and Foreground and Background system execution handover operation;
The displaying data in real-time of the system on foreground it is in after showing switching.
Preferably, realize Play System switching animation by following any one, and perform Foreground and Background
System handover operation:
At the end of Play System switching animation, Foreground and Background system performs handover operation;
When Foreground and Background system finishing switching being detected, Play System switching animation;
By independent of Foreground and Background system Third party system Play System switch animation and control before,
Background system performs handover operation.
Preferably, generated by switching animation application and Play System switches animation;
Wherein, Play System switching animation, and perform Foreground and Background system handover operation, specifically include
Scenario described below:
Foreground system before the handover starts switching animation application, first Play System switching animation,
At the end of playing, Foreground and Background system performs handover operation;
Background system before the handover starts switching animation application, first Foreground and Background system and performs to cut
Change operation, the Play System switching animation when switching completes;
Start switching animation application at Third party system, then perform handover operation in Foreground and Background system
During, Play System switching animation.
Preferably, Play System switching animation, specifically include:
Displaying interface top layer Play System switching animation in the system being currently at foreground.
Preferably, when the trigger action for the switching of multisystem AM/BAM being detected, obtain system switching
Time the switching video data respectively the most corresponding with Foreground and Background system, including:
Detect that the trigger action for the switching of multisystem AM/BAM performs the time more than setting time threshold
Value, cut the most corresponding with Foreground and Background system when switching with predetermined intercepting frequency repeatedly intercepting system
Change video data;
Wherein, switching video data the most corresponding with Foreground and Background system when switching based on system generates
System switching animation, specifically includes:
Show based on switching the most corresponding with Foreground and Background system when repeatedly intercepting the system switching obtained
Data generation system switching animation.
Preferably, the most corresponding with Foreground and Background system during system switching switching video data includes
The screenshotss video data of Foreground and Background system time before system switching.
Another embodiment of the present invention proposes switching animation display device during multisystem switching, bag
Include:
Data acquisition module, for the trigger action for the switching of multisystem AM/BAM being detected, obtains
Switching video data the most corresponding with Foreground and Background system during system switching;
Animation producing module, switching the most corresponding with Foreground and Background system in time switching based on system
Video data generates system switching animation;
Animation playing module, switches animation for Play System;
System handover module, is used for controlling Foreground and Background system and performs handover operation;
Data display module, is in the displaying data in real-time of the system on foreground after showing switching.
Preferably, realize Play System switching animation by following any one, and perform AM/BAM system
System handover operation:
At the end of animation playing module Play System switching animation, system handover module controls AM/BAM system
System performs handover operation;
When back-fore ground system finishing switching being detected, animation playing module Play System switching animation;
Animation playing module and system handover module are by controlling the third party independent of back-fore ground system
System plays system switching animation also controls back-fore ground system execution handover operation.
Preferably, animation producing module and animation playing module respectively by switching animation application generate and
Play System switching animation;
Wherein, animation playing module and system handover module are specifically for scenario described below:
Foreground system before the handover starts switching animation application, and first animation playing module plays system
System switching animation, at the end of playing, system handover module controls back-fore ground system execution handover operation;
Background system before the handover starts switching animation application, before first system handover module controls
Background system performs handover operation, the animation playing module Play System switching animation when switching completes;
Start switching animation application at Third party system, then control back-fore ground system at system handover module
During performing handover operation, animation playing module Play System switching animation.
Preferably, animation playing module is specifically for the top, displaying interface in the system being currently at foreground
Layer Play System switching animation.
Preferably, data acquisition module is specifically for the triggering for the switching of multisystem AM/BAM being detected
The operation execution time is more than setting time threshold, when switching with predetermined intercepting frequency repeatedly intercepting system
The switching video data the most corresponding with Foreground and Background system;
Wherein, animation producing module specifically for based on repeatedly intercept obtain system switching time with front,
The switching video data that background system is the most corresponding generates system switching animation.
Technical scheme provides the switching animation display problem solved when switching for multisystem
Scheme.First, the trigger action for the switching of multisystem AM/BAM detected, obtain system switching
Time the most corresponding with Foreground and Background system switch video data;Subsequently, Play System switching animation,
And Foreground and Background system performs handover operation, during Foreground and Background system performs handover operation,
Control Play System switching animation, with coupled system handoff procedure, with gently presentation mode will be front and back
The display screen of system carries out transition switching, it is ensured that user is difficult to perceive in net system switching process
The not real system video data that screen shows.Screen-picture poor contrast in Foreground and Background system
Different relatively big in the case of, the switching cartoon display method during multisystem switching that the application present invention provides,
May provide the user with the system switching visual effect seamlessly transitted, thus improve user and watch impression.
Aspect and advantage that the present invention adds will part be given in the following description, and these will be from following
Description in become obvious, or recognized by the practice of the present invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, its
In the most same or similar label represent same or similar element or have same or like
The element of function.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining this
Invention, and be not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein
" one ", " one ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that
The wording used in the description of the present invention " includes " referring to there is described feature, integer, step, behaviour
Make, element and/or assembly, but it is not excluded that existence or add other features one or more, whole
Number, step, operation, element, assembly and/or their group.It should be understood that when we claim element
Being " connected " or during " coupled " to another element, it can be directly connected or coupled to other elements, or
Intermediary element can also be there is in person.Additionally, " connection " used herein or " coupling " can include wireless
Connect or wireless couple.Wording "and/or" used herein includes that what one or more was associated lists
Whole or any cell of item and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein
(including technical term and scientific terminology), have and the those of ordinary skill in art of the present invention
Be commonly understood by identical meaning.Should also be understood that those arts defined in such as general dictionary
Language, it should be understood that there is the meaning consistent with the meaning in the context of prior art, and remove
Non-as here by specific definitions, otherwise will not with idealization or the most formal implication explain.
Those skilled in the art of the present technique be both appreciated that " terminal " used herein above, " terminal unit "
Including the equipment of wireless signal receiver, it only possesses the setting of wireless signal receiver of non-emissive ability
Standby, include again the equipment receiving and launching hardware, it has and can carry out on bidirectional communication link
The reception of two-way communication and the equipment of transmitting hardware.This equipment may include that honeycomb or other communication
Equipment, its have single line display or multi-line display or the honeycomb not having multi-line display or
Other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System),
It can process with combine voice, data, fax and/or its communication ability;PDA(Personal
Digital Assistant, personal digital assistant), it can include radio frequency receiver, pager, mutually
The access of networking/Intranet, web browser, notepad, calendar and/or GPS (Global Positioning
System, global positioning system) receptor;Conventional laptop and/or palmtop computer or other set
Standby, its have and/or include the conventional laptop of radio frequency receiver and/or palmtop computer or other
Equipment." terminal " used herein above, " terminal unit " can be portable, can transport, be arranged on
In the vehicles (aviation, sea-freight and/or land), or it is suitable for and/or is configured in this locality
Run, and/or with distribution form, any other position operating in the earth and/or space is run.This
In " terminal ", " terminal unit " that used can also is that communication terminal, access terminals, music/video
Playback terminal, such as, can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or there is the mobile phone of music/video playing function, it is also possible to it is intelligent television, machine
The equipment such as top box.
Multisystem in embodiments of the invention at least includes two systems.Wherein, multisystem can include
Various operating systems, such as Android, Windows and unit's intelligent terminal operation system such as the heart.This
Multisystem in inventive embodiment can realize based on multiple virtual technology, hereafter with linux system
Under container technique as a example by carry out the detailed description of embodiment.Wherein, linux container technology is used to realize
Multisystem, each container loads independent system, separate between multiple systems and many
Individual system operates on same physical terminal device.
Linux container instrument, it is provided that the virtualization of lightweight, in order to isolated process and resource.
The advantage using container is exactly to need not install too many software kit, and use process also will not take too much
Resource.The resource managed by single operating is divided in isolated group by container effectively, with
Preferably between isolated group, balance has the resource of conflict to use demand.Compared with virtual machine technique,
Container technique both need not instruction level simulation, it is not required that Just-In-Time.Container can be in core CPU
Local runtime instructs, without any special explanation facility.Additionally, it also avoid quasi-virtualization
The complexity in replacement is called with system.Container is while providing isolation, also by sharing these money
Expense is saved in source, it means that container is more much smaller than real virtualized expense.By providing one
Planting the mode creating and entering container, operating system allows application program just as running on independent machine
Equally, but system and the physical resource of bottom can be shared.
Multisystem in embodiments of the invention can realize based on multiple virtual technology, hereafter with
The detailed description of embodiment is carried out as a example by container technique under linux system.Wherein, Linux is used to hold
The multiple operating system that device technology realizes, loads independent system, between multiple systems in each container
Separate, and multiple system operates on same physical terminal device.
Fig. 1 is the stream of the switching cartoon display method during multisystem switching of one embodiment of the invention
Journey schematic diagram.
Description of content performed by each step is as follows: step S110: before and after detecting for multisystem
The trigger action of platform switching, switching the most corresponding with Foreground and Background system when obtaining system switching shows
Data;Step S120: switching the most corresponding with Foreground and Background system when switching based on system shows
Data generation system switching animation;Step S130: Play System switching animation, and Foreground and Background system
System performs handover operation;Step S140: show switching after be in foreground system show number in real time
According to.It is described further below for implementing of each step:
Step S110: the trigger action for the switching of multisystem AM/BAM being detected, acquisition system is cut
Switching video data the most corresponding with Foreground and Background system when changing.
Preferably, respectively corresponding switching video data is included with Foreground and Background system during system switching
The screenshotss video data of Foreground and Background system time before system switching.Alternatively, system switching time with front,
Corresponding switching video data can also be included the most corresponding with Foreground and Background system by background system respectively
Predetermined video data, such as system banner picture;Such as, foreground system A is Android system, then with
The system banner picture that system A is corresponding.
It should be noted that to Foreground and Background system respectively to corresponding when following embodiment switches with system
Switching video data be system switching before time Foreground and Background system screenshotss video data situation as a example by
Carry out the detailed description of embodiment.
Specifically, the trigger action of multisystem AM/BAM switching includes but not limited in the following manner:
(1) press predetermined before and after platform switching physical button;Such as, set button SWITCH as
System switching key, can trigger when user presses the operation of SWITCH when terminal unit detects
The handover operation of system AM/BAM.
(2) corresponding physical button is pressed with predetermined key mode;Such as, make a reservation for press simultaneously
Volume increases the handover operation reducing button more than triggering system AM/BAM for 3 seconds, works as terminal unit
Detect that user presses when volume increases the operation reducing button more than 3 seconds simultaneously and can trigger system
The handover operation of AM/BAM.
(3) with the mode of operation that system is predetermined, terminal unit is operated, such as, terminal is set
The handover operation of system AM/BAM can be triggered for carrying out flip horizontal.
Three of the above trigger action is or to be sensed by hardware button by linux kernel and driver
Device detects, and recognises that, according to operation, the handover operation needing to carry out system AM/BAM;With
Rear linux kernel notice multisystem performs the operation that AM/BAM switching is relevant.
(4) on screen, touch operation is carried out with predetermined gesture;Such as, screen performs to touch
Touch the gesture that track is stroke five-pointed star shape and can trigger the handover operation of system AM/BAM.
(5) when the switching icon in foreground system is performed trigger action, can be before triggering system
The handover operation on backstage, as carried out corresponding operating to the system corresponding node file of switching.
Both the above trigger action is software trigger mode.Such as, on the status bar of foreground system
Switching icon is set, when foreground system detects that user clicks on this switching icon, based on clicking operation
The file node corresponding with the switching of multisystem AM/BAM providing linux kernel performs corresponding operating,
As file node dev/switch is carried out write operation, as write " 1 ", when linux kernel detects
/ dev/switch performs to notify during the operation of write " 1 " that multisystem performs AM/BAM handover operation.
It should be noted that multisystem is all based on identical physics kernel, and general between multisystem
Not Direct Communication, can carry out communication between system by kernel between it, or pass through interprocess communication
Realize the data transmission between system.
Preferably, time before the switching of the system of acquisition before the screenshotss video data of Foreground and Background system, can
With background system time before detection switching the most in a dormant state, if it is, need to wake up backstage system up
System.Specifically, if background system is in a dormant state when system switching is front, then background system correspondence
Screenshotss video data be empty or for entering the screenshotss video data out of date before resting state,
It is thus desirable to wake up the screenshotss of storage in the display buffer region that background system is corresponding to refresh this system up
Video data.If it addition, starting predetermined application program, also while presetting startup background system
Need by waking up background system up to start predetermined application program.Such as, foreground system is A system,
Background system is B system, presets and starts talk application program while starting background system B.?
System switching before, background system B in a dormant state, for energy-conservation wait design factor consideration,
When presetting backstage B system entrance resting state, it is not necessary to the application program of unlatching is the most correspondingly closed
Close, and this application program includes talk application program.Owing to opening while default startup background system B
Dynamic talk application program, time therefore before the switching of the system of acquisition the screenshotss video data of background system B it
Before, need by waking up background system B up to start talk application program.It addition, should starting call
After program, in display buffer region corresponding for background system B, the screenshotss video data of storage is correspondingly
It is updated.
When realizing system switching animation in foreground system, the screenshotss video data of background system is led to
Cross interprocess communication mode or sent to foreground system from background system by kernel transfer mode;When
When background system realizes system switching animation, by the screenshotss video data of foreground system by between process
Communication mode or by kernel transfer mode from foreground system send to background system.
Such as, system A is foreground system, and system B is background system, foreground system before the handover
System A starts switching animation application;Switching animation application directly reads the screenshotss of foreground system A and shows
Registration evidence;Foreground system A obtains backstage system by interprocess communication mode or by kernel transfer mode
The screenshotss video data of system B;The backstage obtained by foreground system A is read in switching animation application
The screenshotss video data of system B.
The most such as, system A is background system, and system B is foreground system, backstage before the handover
System A starts switching animation application;Switching animation application directly obtains background system A time before switching
Screenshotss video data;Background system A obtains by interprocess communication mode or by kernel transfer mode
Take the screenshotss video data of foreground system B time before switching, and this screenshotss video data is sent to cutting
The switching animation application started in background system A when changing front.
Step S120: switching display number the most corresponding with Foreground and Background system when switching based on system
According to the system of generation switching animation.
Preferably, by switching animation application generation system switching animation.
Such as, switching animation is applied when foreground system A, and time before obtaining system switching respectively, foreground is
The screenshotss video data of system A and background system B, and it is individually identified as FB_A_T0 and FB_B_T0.
Switching animation application SwitchAnimation is with the screenshotss video data FB_A_T0 of foreground system A
Picture when starting as system switching animation, and with the screenshotss video data of background system B
FB_B_T0 is as the photograph creation system switching animation at the end of system switching animation.
Step S130: Play System switching animation, and Foreground and Background system execution handover operation.
Preferably, realize Play System switching animation by following any one, and perform Foreground and Background
System handover operation: at the end of Play System switching animation, Foreground and Background system performs handover operation;
When Foreground and Background system finishing switching being detected, Play System switching animation;By independent of forward and backward
The Third party system Play System of platform system switches animation and controls Foreground and Background system execution switching behaviour
Make.
Preferably, by switching animation application plays system switching animation.
Wherein, Play System switching animation, and perform Foreground and Background system handover operation, specifically include
Scenario described below:
(1) foreground system before the handover starts switching animation application, first Play System switching
Animation, at the end of playing, Foreground and Background system performs handover operation.
Such as, system A is foreground system, and system B is background system, foreground system before the handover
System A starts switching animation application;First, respectively obtain system switching before time foreground system A and
The screenshotss video data of background system B, and it is individually identified as FB_A_T0 and FB_B_T0;Subsequently,
Foreground system A before the handover starts switching animation application SwitchAnimation, and switching animation should
The screenshotss video data of foreground system A and background system B is got with SwitchAnimation, and
Accordingly generating system switching animation, this system switching animation can be by foreground system A and background system B
The screenshotss video data form rotated with cube that combines present or with the screenshotss of foreground system A
The form that video data carries out transition to the screenshotss video data of background system B presents;Then, switching
Animation application SwitchAnimation Play System switching animation, shows with the screenshotss of foreground system A
Picture when data FB_A_T0 start as system switching animation, although now switching animation application
SwitchAnimation starts, but the screenshotss video data that content is foreground system A of its display
FB_A_T0, and the content of screenshotss video data FB_A_T0 foreground system A front with switching is actual aobvious
The content shown is consistent, so user can not discover switching animation application SwitchAnimation
Startup operation, Play System switching animation during, display content by foreground system A cut
The screen video data FB_A_T0 screenshotss video data FB_B_T0 transition to background system B, when aobvious
Show when content is transitioned into FB_B_T0 completely, with the screenshotss video data FB_B_T0 of background system B
As the picture at the end of system switching animation;Finally, foreground system A, backstage at the end of playing
System B performs handover operation, and now, foreground system A discharges display device, and background system B obtains
Display device, foreground system A and switching after animation application SwitchAnimation is all switched to
Platform.
(2) background system before the handover starts switching animation application, first Foreground and Background system
Perform handover operation, the Play System switching animation when switching completes.
Such as, system A is background system, and system B is foreground system, backstage system before the handover
System A starts switching animation application;First, respectively obtain system switching before time background system A and
The screenshotss video data of foreground system B, and it is individually identified as FB_A_T0 and FB_B_T0;Subsequently,
Background system A, foreground system B perform handover operation;Then foreground system B time, before the handover
Middle the switching animation application SwitchAnimation that starts, switching animation application SwitchAnimation obtain
Get the screenshotss video data of background system A and foreground system B, and it is dynamic to accordingly generate system switching
Draw;When system A, system B have performed handover operation, system B being in backstage after switching is released
Putting display device, system A being in foreground after switching obtains display device, is in foreground system after switching
The switching animation application SwitchAnimation Play System switching animation of system A, cutting with system B
Screen video data FB_B_T0 as system switching animation start time picture, although now system A,
System B has performed handover operation, but display content is still for being in system B on backstage after switching
Screenshotss video data FB_B_T0, so user can not discover the switching of executed Foreground and Background system,
During Play System switching animation, display content is by the screenshotss video data of system B
FB_B_T0 is to the screenshotss video data FB_A_T0 transition of system A, when the display complete transition of content
During to FB_A_T0, switch animation using the screenshotss video data FB_A_T0 of system A as system
At the end of picture.(3) switching animation application is started at Third party system, then in Foreground and Background system
During system performs handover operation, Play System switching animation.
Such as, system A is foreground system, and system B is background system, in Third party system C
Start switching animation application;First, foreground system A and background system time before system switches is obtained respectively
The screenshotss video data of B, and it is individually identified as FB_A_T0 and FB_B_T0, at Third party system
C starts switching animation application SwitchAnimation;Subsequently, foreground system A, Third party system C
Performing handover operation, foreground system A discharges display device, and Third party system C obtains display device,
Switching animation application SwitchAnimation is with the screenshotss video data FB_A_T0 of foreground system A
As system switching animation start time picture playing system switching animation, although now display device by
Third party system C takies, but the screenshotss video data that content is foreground system A of display
FB_A_T0, and the content of screenshotss video data FB_A_T0 foreground system A front with switching is actual aobvious
The content shown is consistent, therefore user can not discover the startup of switching animation application SwitchAnimation
Operation, during Play System switching animation, display content is shown by the screenshotss of foreground system A
Data FB_A_T0 are to the screenshotss video data FB_B_T0 transition of background system B, when display content
When being transitioned into FB_B_T0 completely, using the screenshotss video data FB_B_T0 of background system B as being
Picture at the end of system switching animation;Finally, Third party system C and system B at the end of playing
Performing handover operation, Third party system C discharges display device, and system B switches to foreground and obtains aobvious
Show that equipment, system A and Third party system C are all switched to backstage.
Preferably, the step of Play System switching animation specifically includes: be currently at the system on foreground
Displaying interface top layer Play System switching animation.
Specifically, the displaying interface top layer Play System switching animation in the system being currently at foreground can
With the window Z order realization by arranging Play System switching animation.Wherein, arrange Play System to cut
The window Z order of picture of moving can make system switching animation window be in top layer in overlaid windows heap
Position.Wherein, window heap is along default axle alignment sequence, and this axle preset is to screen from screen
The virtual Z axis extended outside curtain space.Therefore, the highest window of window Z order sequence cover all its
The window that its window Z order sequence is low.It addition, arrange window A along default virtual Z axis row
The position of order is by being arranged on this window A after given window B, or by window A
It is arranged on top or the bottom of all windows.
Such as, Windows system includes that three independent window Z order are for managing different windows
Mouthful: (brother's window is the subwindow sharing same parent window to be used for managing brother's window;Wherein,
One parent window is forms, and each parent window is not the subwindow of other any one forms.Son
Window is the objects such as the control on forms or button) window Z order, for managing top-level windows
Window Z order, for managing the window Z order of top window.Wherein, top window covers
The window of other non-tops all, the application program in Windows system is by arranging
WS_EX_TOPMOST attribute creates top window.Generally, Windows system sets
The window Z order sequence putting up-to-date establishment window is the highest, and user can change by activating a window
Window Z order, the window Z order sequence that Windows system arranges active window is the highest.It addition,
Application program in Windows system can arrange a window by function BringWindowToTop
The window Z order of mouth, it is also possible to come by function SetWindowPos and DeferWindowPos
The window Z order arranged windows.
Step S140: be in the displaying data in real-time of the system on foreground after showing switching.
Such as, system A is foreground system, and system B is background system, foreground system before the handover
System A starts switching animation application SwitchAnimation;First Play System switching animation, with
Picture when the screenshotss video data FB_A_T0 of foreground system A starts as system switching animation,
During Play System switching animation, display content is by the screenshotss video data of foreground system A
FB_A_T0 is to the screenshotss video data FB_B_T0 transition of background system B, when display content is complete
When being transitioned into FB_B_T0, cut using the screenshotss video data FB_B_T0 of background system B as system
Move the picture at the end of picture;At the end of playing, Foreground and Background system performs handover operation, after switching
Being in the system A release display device on backstage, the system B acquisition display being in foreground after switching sets
Standby, the displaying data in real-time FB_B_T1 of Network B.Do not hand over user at background system B
In the case of Hu, the content of FB_B_T0 and FB_B_T1 is essentially identical, thus FB_B_T0 to
The transition of the content of FB_B_T1 is mild.
The most such as, system A is background system, and system B is foreground system, backstage before the handover
System A starts switching animation application SwitchAnimation;First Foreground and Background system performs to cut
Change operation;Switching animation application SwitchAnimation is Play System switching animation when switching completes,
The screenshotss video data FB_B_T0 of system B being in foreground before switching switches animation as system
Picture during beginning, during Play System switching animation, display content is by the screenshotss of system B
Video data FB_B_T0 is in the screenshotss video data FB_A_T0 of system A on backstage before switching
Transition, when showing that content is transitioned into FB_A_T0 completely, with the screenshotss video data of system A
FB_A_T0 is as the picture at the end of system switching animation, now, Foreground and Background system executed
Complete handover operation, is in the displaying data in real-time FB_A_T1 of system A on foreground after display switching.
In the case of system A is not mutual with user, the content of FB_A_T0 and FB_A_T1 is basic
It is identical, so FB_A_T0 is mild to the transition of the content of FB_A_T1.
The most such as, system A is foreground system, and system B is background system, at Third party system C
Middle startup switches animation application SwitchAnimation;Foreground system A, background system B perform to cut
Changing in operating process, first system A release display device, Third party system C obtains display device,
The switching animation application SwitchAnimation started in Third party system cutting with foreground system A
Picture playing system switching when screen video data FB_A_T0 starts as system switching animation is dynamic
Drawing, during Play System switching animation, display content is shown number by the screenshotss of foreground system A
According to FB_A_T0 to the screenshotss video data FB_B_T0 transition of background system B, when display content is complete
When being entirely transitioned into FB_B_T0, using the screenshotss video data FB_B_T0 of background system B as system
Picture at the end of switching animation;Finally, at the end of playing, Third party system C discharges display device,
System B being in foreground after switching obtains display device, is in system B on foreground after display switching
Displaying data in real-time.
Foregoing invention embodiment is that the trigger action execution time for the switching of multisystem AM/BAM is shorter
Situation: only need to obtain foreground system and the screenshotss display number of background system before primary system switching respectively
According to, and generate system switching animation.The time is performed at the trigger action switched for multisystem AM/BAM
In the case of longer, then can constantly obtain foreground during switching animation application plays animation
The screenshotss video data of system and background system, and generate system switching animation.Wherein, for polyphyly
When the trigger action of system AM/BAM switching performs time length with the execution of the operation of user's switched system
Between relevant, such as, user passes through gesture slide handover system, and gesture sliding process is longer, then be
The time of system handoff procedure is also the longest.
Preferably, when the trigger action for the switching of multisystem AM/BAM being detected, obtain system switching
Time the step that switch video data the most corresponding with Foreground and Background system include: detect for polyphyly
The trigger action of system AM/BAM switching performs the time more than presetting time threshold, with predetermined intercepting
Frequency repeatedly intercepting system is the most corresponding with Foreground and Background system when switching switches video data;Wherein,
When switching based on system, switching video data generation system switching the most corresponding with Foreground and Background system is dynamic
Draw, specifically include: be aobvious with the switching of Foreground and Background system based on repeatedly intercepting when the system obtained switches
Show that data generation system switches animation.
Such as, as in figure 2 it is shown, detect when the trigger action for the switching of multisystem AM/BAM performs
Between be " 3s ", and more than set time threshold " 2s ", then multisystem AM/BAM switching trigger action
First second of execution process, second second and the 3rd second be divided into not Jie Qu cubic system switching before time forward and backward
The screenshotss video data of platform system;Switching animation application obtains based on above-mentioned three screen interceptions operation
Screenshotss video data generates system switching animation, and it is dynamic to play the switching of this system with the form of three-dimensional rotation
Draw.If it should be noted that Foreground and Background system is all playing video, then when with predetermined intercepting
Time before the switching of frequency repeatedly intercepting system during the screenshotss video data of Foreground and Background system, user can be with
Time observe Foreground and Background system video playback situation.
Technical scheme provides the switching animation display problem solved when switching for multisystem
Scheme.First, the trigger action for the switching of multisystem AM/BAM detected, obtain system switching
Time the most corresponding with Foreground and Background system switch video data;Subsequently, Play System switching animation,
And Foreground and Background system performs handover operation, during Foreground and Background system performs handover operation,
Control Play System switching animation, with coupled system handoff procedure, with gently presentation mode will be front and back
The display screen of system carries out transition switching, it is ensured that user is difficult to perceive in net system switching process
The not real system video data that screen shows.Screen-picture poor contrast in Foreground and Background system
Different relatively big in the case of, the switching cartoon display method during multisystem switching that the application present invention provides,
May provide the user with the system switching visual effect seamlessly transitted, thus improve user and watch impression.
Fig. 3 is the switching animation display device during multisystem switching of another preferred embodiment of the present invention
Structural representation, this device includes: data acquisition module 310, animation producing module 320, dynamic
Draw playing module 330, system handover module 340, data display module 350.Below for each
The concrete effect of module is described further:
Data acquisition module 310 detects the trigger action for the switching of multisystem AM/BAM, obtains system
System is the most corresponding with Foreground and Background system when switching switches video data.
Preferably, respectively corresponding switching video data is included with Foreground and Background system during system switching
The screenshotss video data of Foreground and Background system time before system switching.Alternatively, system switching time with front,
Corresponding switching video data can also be included the most corresponding with Foreground and Background system by background system respectively
Predetermined video data, such as system banner picture;Such as, foreground system A is Android system, then with
The system banner picture that system A is corresponding.
It should be noted that to Foreground and Background system respectively to corresponding when following embodiment switches with system
Switching video data be system switching before time Foreground and Background system screenshotss video data situation as a example by
Carry out the detailed description of embodiment.
Specifically, the trigger action of multisystem AM/BAM switching includes but not limited in the following manner:
(1) press predetermined before and after platform switching physical button;Such as, set button SWITCH as
System switching key, can trigger when user presses the operation of SWITCH when terminal unit detects
The handover operation of system AM/BAM.
(2) corresponding physical button is pressed with predetermined key mode;Such as, make a reservation for press simultaneously
Volume increases the handover operation reducing button more than triggering system AM/BAM for 3 seconds, works as terminal unit
Detect that user presses when volume increases the operation reducing button more than 3 seconds simultaneously and can trigger system
The handover operation of AM/BAM.
(3) with the mode of operation that system is predetermined, terminal unit is operated, such as, terminal is set
The handover operation of system AM/BAM can be triggered for carrying out flip horizontal.
Three of the above trigger action is or to be sensed by hardware button by linux kernel and driver
Device detects, and recognises that, according to operation, the handover operation needing to carry out system AM/BAM;With
Rear linux kernel notice multisystem performs the operation that AM/BAM switching is relevant.
(4) on screen, touch operation is carried out with predetermined gesture;Such as, screen performs to touch
Touch the gesture that track is stroke five-pointed star shape and can trigger the handover operation of system AM/BAM.
(5) when the switching icon in foreground system is performed trigger action, can be before triggering system
The handover operation on backstage, as carried out corresponding operating to the system corresponding node file of switching.
Both the above trigger action is software trigger mode.Such as, on the status bar of foreground system
Switching icon is set, when foreground system detects that user clicks on this switching icon, based on clicking operation
The file node corresponding with the switching of multisystem AM/BAM providing linux kernel performs corresponding operating,
As file node dev/switch is carried out write operation, as write " 1 ", when linux kernel detects
/ dev/switch performs to notify during the operation of write " 1 " that multisystem performs AM/BAM handover operation.
It should be noted that multisystem is all based on identical physics kernel, and general between multisystem
Not Direct Communication, can carry out communication between system by kernel between it, or pass through interprocess communication
Realize the data transmission between system.
Preferably, the screenshotss of Foreground and Background system when data acquisition module 310 obtains before system switching
Before video data, can detect switching before time background system the most in a dormant state, if it is,
Then need to wake up background system up.Specifically, if background system is in a dormant state when system switching is front,
The screenshotss video data that then background system is corresponding is empty or out of date for enter before resting state
Screenshotss video data, it is therefore desirable to wake up the display buffer that background system is corresponding to refresh this system up
The screenshotss video data of storage in territory.If it addition, starting predetermined while presetting startup background system
Application program, it is also desirable to by waking up background system up to start predetermined application program.Such as, front
Platform system is A system, and background system is B system, presets and starts while starting background system B
Talk application program.Before system switches, background system B in a dormant state, for energy-conservation etc.
The consideration of design factor, when presetting backstage B system entrance resting state, it is not necessary to the application journey of unlatching
Sequence is the most correspondingly closed, and this application program includes talk application program.Due to default startup backstage
Talk application program, background system B time therefore before the switching of the system of acquisition is started while system B
Screenshotss video data before, need by waking up background system B up to start talk application program.Separately
Outward, after starting talk application program, in display buffer region corresponding for background system B, storage cuts
Screen video data is correspondingly updated.
When realizing system switching animation in foreground system, the screenshotss video data of background system is led to
Cross interprocess communication mode or sent to foreground system from background system by kernel transfer mode;When
When background system realizes system switching animation, by the screenshotss video data of foreground system by between process
Communication mode or by kernel transfer mode from foreground system send to background system.
Such as, system A is foreground system, and system B is background system, foreground system before the handover
System A starts switching animation application;Switching animation application directly reads the screenshotss of foreground system A and shows
Registration evidence;Foreground system A obtains backstage system by interprocess communication mode or by kernel transfer mode
The screenshotss video data of system B;The backstage obtained by foreground system A is read in switching animation application
The screenshotss video data of system B.
The most such as, system A is background system, and system B is foreground system, backstage before the handover
System A starts switching animation application;Switching animation application directly obtains background system A time before switching
Screenshotss video data;Background system A obtains by interprocess communication mode or by kernel transfer mode
Take the screenshotss video data of foreground system B time before switching, and this screenshotss video data is sent to cutting
The switching animation application started in background system A when changing front.
Switching the most corresponding with Foreground and Background system when animation producing module 320 switches based on system shows
Show that data generation system switches animation.
Preferably, by switching animation application generation system switching animation.
Such as, switching animation is applied when foreground system A, and time before obtaining system switching respectively, foreground is
The screenshotss video data of system A and background system B, and it is individually identified as FB_A_T0 and FB_B_T0.
Switching animation application SwitchAnimation is with the screenshotss video data FB_A_T0 of foreground system A
Picture when starting as system switching animation, and with the screenshotss video data of background system B
FB_B_T0 is as the photograph creation system switching animation at the end of system switching animation.
Animation playing module 330 Play System switching animation, and system handover module 340 control execution
Foreground and Background system handover operation.
Preferably, realize Play System switching animation by following any one, and perform AM/BAM system
System handover operation: at the end of animation playing module Play System switching animation, system handover module 340
Control back-fore ground system and perform handover operation;When back-fore ground system finishing switching being detected, animation is play
Module 330 Play System switching animation;Animation playing module and system handover module are independent by controlling
In back-fore ground system Third party system Play System switch animation and control back-fore ground system perform cut
Change operation.
Preferably, by switching animation application plays system switching animation.
Wherein, animation playing module 330 and system handover module 340 are specifically for scenario described below:
(1) foreground system before the handover starts switching animation application, first animation playing module
330 Play System switching animations, at the end of playing, system handover module 340 controls back-fore ground system
Perform handover operation.
Such as, system A is foreground system, and system B is background system, foreground system before the handover
System A starts switching animation application;First, respectively obtain system switching before time foreground system A and
The screenshotss video data of background system B, and it is individually identified as FB_A_T0 and FB_B_T0;Subsequently,
Foreground system A before the handover starts switching animation application SwitchAnimation, and switching animation should
The screenshotss video data of foreground system A and background system B is got with SwitchAnimation, and
Accordingly generating system switching animation, this system switching animation can be by foreground system A and background system B
The screenshotss video data form rotated with cube that combines present or with the screenshotss of foreground system A
The form that video data carries out transition to the screenshotss video data of background system B presents;Then, switching
Animation application SwitchAnimation Play System switching animation, shows with the screenshotss of foreground system A
Picture when data FB_A_T0 start as system switching animation, although now switching animation application
SwitchAnimation starts, but the screenshotss video data that content is foreground system A of its display
FB_A_T0, and the content of screenshotss video data FB_A_T0 foreground system A front with switching is actual aobvious
The content shown is consistent, so user can not discover switching animation application SwitchAnimation
Startup operation, Play System switching animation during, display content by foreground system A cut
The screen video data FB_A_T0 screenshotss video data FB_B_T0 transition to background system B, when aobvious
Show when content is transitioned into FB_B_T0 completely, with the screenshotss video data FB_B_T0 of background system B
As the picture at the end of system switching animation;Finally, foreground system A, backstage at the end of playing
System B performs handover operation, and now, foreground system A discharges display device, and background system B obtains
Display device, foreground system A and switching after animation application SwitchAnimation is all switched to
Platform.
(2) background system before the handover starts switching animation application, first system handover module
340 control back-fore ground system performs handover operation, and when switching completes, animation playing module 330 is play
System switching animation.
Such as, system A is background system, and system B is foreground system, backstage system before the handover
System A starts switching animation application;First, respectively obtain system switching before time background system A and
The screenshotss video data of foreground system B, and it is individually identified as FB_A_T0 and FB_B_T0;Subsequently,
Background system A, foreground system B perform handover operation;Then foreground system B time, before the handover
Middle the switching animation application SwitchAnimation that starts, switching animation application SwitchAnimation obtain
Get the screenshotss video data of background system A and foreground system B, and it is dynamic to accordingly generate system switching
Draw;When system A, system B have performed handover operation, system B being in backstage after switching is released
Putting display device, system A being in foreground after switching obtains display device, is in foreground system after switching
The switching animation application SwitchAnimation Play System switching animation of system A, cutting with system B
Screen video data FB_B_T0 as system switching animation start time picture, although now system A,
System B has performed handover operation, but display content is still for being in system B on backstage after switching
Screenshotss video data FB_B_T0, so user can not discover the switching of executed Foreground and Background system,
During Play System switching animation, display content is by the screenshotss video data of system B
FB_B_T0 is to the screenshotss video data FB_A_T0 transition of system A, when the display complete transition of content
During to FB_A_T0, switch animation using the screenshotss video data FB_A_T0 of system A as system
At the end of picture.
(3) start switching animation application at Third party system, then control at system handover module 340
During back-fore ground system performs handover operation, the switching of animation playing module 330 Play System is dynamic
Draw.
Such as, system A is foreground system, and system B is background system, in Third party system C
Start switching animation application;First, foreground system A and background system time before system switches is obtained respectively
The screenshotss video data of B, and it is individually identified as FB_A_T0 and FB_B_T0, at Third party system
C starts switching animation application SwitchAnimation;Subsequently, foreground system A, Third party system C
Performing handover operation, foreground system A discharges display device, and Third party system C obtains display device,
Switching animation application SwitchAnimation is with the screenshotss video data FB_A_T0 of foreground system A
As system switching animation start time picture playing system switching animation, although now display device by
Third party system C takies, but the screenshotss video data that content is foreground system A of display
FB_A_T0, and the content of screenshotss video data FB_A_T0 foreground system A front with switching is actual aobvious
The content shown is consistent, therefore user can not discover the startup of switching animation application SwitchAnimation
Operation, during Play System switching animation, display content is shown by the screenshotss of foreground system A
Data FB_A_T0 are to the screenshotss video data FB_B_T0 transition of background system B, when display content
When being transitioned into FB_B_T0 completely, using the screenshotss video data FB_B_T0 of background system B as being
Picture at the end of system switching animation;Finally, Third party system C and system B at the end of playing
Performing handover operation, Third party system C discharges display device, and system B switches to foreground and obtains aobvious
Show that equipment, system A and Third party system C are all switched to backstage.
Preferably, animation playing module 330 is specifically for displaying circle in the system being currently at foreground
Face top layer Play System switching animation.
Specifically, the displaying interface top layer Play System switching animation in the system being currently at foreground can
With the window Z order realization by arranging Play System switching animation.Wherein, arrange Play System to cut
The window Z order of picture of moving can make system switching animation window be in top layer in overlaid windows heap
Position.Wherein, window heap is along default axle alignment sequence, and this axle preset is to screen from screen
The virtual Z axis extended outside curtain space.Therefore, the highest window of window Z order sequence cover all its
The window that its window Z order sequence is low.It addition, arrange window A along default virtual Z axis row
The position of order is by being arranged on this window A after given window B, or by window A
It is arranged on top or the bottom of all windows.
Such as, Windows system includes that three independent window Z order are for managing different windows
Mouthful: (brother's window is the subwindow sharing same parent window to be used for managing brother's window;Wherein,
One parent window is forms, and each parent window is not the subwindow of other any one forms.Son
Window is the objects such as the control on forms or button) window Z order, for managing top-level windows
Window Z order, for managing the window Z order of top window.Wherein, top window covers
The window of other non-tops all, the application program in Windows system is by arranging
WS_EX_TOPMOST attribute creates top window.Generally, Windows system sets
The window Z order sequence putting up-to-date establishment window is the highest, and user can change by activating a window
Window Z order, the window Z order sequence that Windows system arranges active window is the highest.It addition,
Application program in Windows system can arrange a window by function BringWindowToTop
The window Z order of mouth, it is also possible to come by function SetWindowPos and DeferWindowPos
The window Z order arranged windows.
Data display module 350 is in the displaying data in real-time of the system on foreground after showing switching.
Such as, system A is foreground system, and system B is background system, foreground system before the handover
System A starts switching animation application SwitchAnimation;First Play System switching animation, with
Picture when the screenshotss video data FB_A_T0 of foreground system A starts as system switching animation,
During Play System switching animation, display content is by the screenshotss video data of foreground system A
FB_A_T0 is to the screenshotss video data FB_B_T0 transition of background system B, when display content is complete
When being transitioned into FB_B_T0, cut using the screenshotss video data FB_B_T0 of background system B as system
Move the picture at the end of picture;At the end of playing, Foreground and Background system performs handover operation, after switching
Being in the system A release display device on backstage, the system B acquisition display being in foreground after switching sets
Standby, the displaying data in real-time FB_B_T1 of Network B.Do not hand over user at background system B
In the case of Hu, the content of FB_B_T0 and FB_B_T1 is essentially identical, thus FB_B_T0 to
The transition of the content of FB_B_T1 is mild.
The most such as, system A is background system, and system B is foreground system, backstage before the handover
System A starts switching animation application SwitchAnimation;First Foreground and Background system performs to cut
Change operation;Switching animation application SwitchAnimation is Play System switching animation when switching completes,
The screenshotss video data FB_B_T0 of system B being in foreground before switching switches animation as system
Picture during beginning, during Play System switching animation, display content is by the screenshotss of system B
Video data FB_B_T0 is in the screenshotss video data FB_A_T0 of system A on backstage before switching
Transition, when showing that content is transitioned into FB_A_T0 completely, with the screenshotss video data of system A
FB_A_T0 is as the picture at the end of system switching animation, now, Foreground and Background system executed
Complete handover operation, is in the displaying data in real-time FB_A_T1 of system A on foreground after display switching.
In the case of system A is not mutual with user, the content of FB_A_T0 and FB_A_T1 is basic
It is identical, so FB_A_T0 is mild to the transition of the content of FB_A_T1.
The most such as, system A is foreground system, and system B is background system, at Third party system C
Middle startup switches animation application SwitchAnimation;Foreground system A, background system B perform to cut
Changing in operating process, first system A release display device, Third party system C obtains display device,
The switching animation application SwitchAnimation started in Third party system cutting with foreground system A
Picture playing system switching when screen video data FB_A_T0 starts as system switching animation is dynamic
Drawing, during Play System switching animation, display content is shown number by the screenshotss of foreground system A
According to FB_A_T0 to the screenshotss video data FB_B_T0 transition of background system B, when display content is complete
When being entirely transitioned into FB_B_T0, using the screenshotss video data FB_B_T0 of background system B as system
Picture at the end of switching animation;Finally, at the end of playing, Third party system C discharges display device,
System B being in foreground after switching obtains display device, is in system B on foreground after display switching
Displaying data in real-time.
Foregoing invention embodiment is that the trigger action execution time for the switching of multisystem AM/BAM is shorter
Situation: only need to obtain foreground system and the screenshotss display number of background system before primary system switching respectively
According to, and generate system switching animation.The time is performed at the trigger action switched for multisystem AM/BAM
In the case of longer, then can constantly obtain foreground during switching animation application plays animation
The screenshotss video data of system and background system, and generate system switching animation.Wherein, for polyphyly
When the trigger action of system AM/BAM switching performs time length with the execution of the operation of user's switched system
Between relevant, such as, user passes through gesture slide handover system, and gesture sliding process is longer, then be
The time of system handoff procedure is also the longest.
Preferably, data acquisition module 310 is specifically for detecting for the switching of multisystem AM/BAM
Trigger action performs the time more than presetting time threshold, repeatedly intercepts system with predetermined intercepting frequency
System is the most corresponding with Foreground and Background system when switching switches video data;Wherein, animation producing module
320 specifically for the most corresponding with Foreground and Background system based on repeatedly intercepting when the system obtained switches
Switching video data generates system switching animation.
Such as, as in figure 2 it is shown, detect when the trigger action for the switching of multisystem AM/BAM performs
Between be " 3s ", and more than set time threshold " 2s ", then multisystem AM/BAM switching trigger action
First second of execution process, second second and the 3rd second be divided into not Jie Qu cubic system switching before time forward and backward
The screenshotss video data of platform system;Switching animation application obtains based on above-mentioned three screen interceptions operation
Screenshotss video data generates system switching animation, and it is dynamic to play the switching of this system with the form of three-dimensional rotation
Draw.If it should be noted that Foreground and Background system is all playing video, then when with predetermined intercepting
Time before the switching of frequency repeatedly intercepting system during the screenshotss video data of Foreground and Background system, user can be with
Time observe Foreground and Background system video playback situation.
Technical scheme provides the switching animation display problem solved when switching for multisystem
Scheme.First, the trigger action for the switching of multisystem AM/BAM detected, obtain system switching
Time the most corresponding with Foreground and Background system switch video data;Subsequently, Play System switching animation,
And Foreground and Background system performs handover operation, during Foreground and Background system performs handover operation,
Control Play System switching animation, with coupled system handoff procedure, with gently presentation mode will be front and back
The display screen of system carries out transition switching, it is ensured that user is difficult to perceive in net system switching process
The not real system video data that screen shows.Screen-picture poor contrast in Foreground and Background system
Different relatively big in the case of, the switching cartoon display method during multisystem switching that the application present invention provides,
May provide the user with the system switching visual effect seamlessly transitted, thus improve user and watch impression.
Those skilled in the art of the present technique are appreciated that the present invention includes relating to perform to grasp in the application
One or more equipment in work.These equipment can be required purpose and specialized designs and system
Make, or the known device in general purpose computer can also be included.These equipment have storage within it
Computer program, these computer programs optionally activate or reconstruct.Such computer program
Can be stored in equipment (such as, computer) computer-readable recording medium or be stored in and be suitable to store electronics
Instructing and be coupled to respectively in any kind of medium of bus, computer-readable medium includes but does not limits
In any kind of dish (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM
(Read-Only Memory, read only memory), RAM (Random Access Memory,
Memorizer immediately), (Erasable Programmable Read-Only Memory, can for EPROM
Erasable programmable read only memory), EEPROM (Electrically Erasable Programmable
Read-Only Memory, EEPROM), flash memory, magnetic card or light
Card.It is, computer-readable recording medium includes being deposited with the form that can read by equipment (such as, computer)
Storage or any medium of transmission information.
Those skilled in the art of the present technique are appreciated that and can realize these knots with computer program instructions
Each frame in composition and/or block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph
In the combination of frame.Those skilled in the art of the present technique are appreciated that and can be referred to by these computer programs
Order is supplied to the processor of general purpose computer, special purpose computer or other programmable data processing methods and comes
Realize, thus perform the present invention by the processor of computer or other programmable data processing methods
The scheme specified in disclosed structure chart and/or block diagram and/or the frame of flow graph or multiple frame.
Those skilled in the art of the present technique are appreciated that various operations, the side discussed in the present invention
Step in method, flow process, measure, scheme can be replaced, changed, combined or deleted.Further
Ground, have the present invention had discussed various operations, method, other steps in flow process, arrange
Execute, scheme can also be replaced, changed, reset, decomposed, combined or deleted.Further, existing
Have in technology have with the step in the various operations disclosed in the present invention, method, flow process, measure,
Scheme can also be replaced, changed, reset, decomposed, combined or deleted.
Below it is only the some embodiments of the present invention, it is noted that common for the art
For technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvement and profit
Decorations, these improvements and modifications also should be regarded as protection scope of the present invention.