Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
One embodiment of the present of invention proposes switching cartoon display method when multisystem switching, comprising:
It detects the trigger action for the switching of multisystem front and back, distinguishes when obtaining system switching with Foreground and Background system
Corresponding switching shows data;
Switching corresponding with Foreground and Background system shows that data generation system switches animation when based on system switching;
Play system switches animation, and Foreground and Background system executes handover operation;
Show the real-time display data of the system after switching in foreground.
Preferably, it realizes that play system switches animation by any one of following, and executes Foreground and Background system switching behaviour
Make:
At the end of play system switches animation, Foreground and Background system executes handover operation;
When detecting Foreground and Background system finishing switching, play system switches animation;
Switch animation by the third party system play system independently of Foreground and Background system and control Foreground and Background system and holds
Row handover operation.
Preferably, it is generated by switching animation application and play system switches animation;
Wherein, play system switches animation, and executes Foreground and Background system handover operation, specifically includes following scenario described:
Foreground system starting switching animation application before the handover, then play system switches animation first, terminates in broadcasting
When Foreground and Background system execute handover operation;
Background system starting switching animation application before the handover, then Foreground and Background system executes handover operation first, is cutting
Play system switches animation when changing completion;
Start switching animation application in third party system, then during Foreground and Background system executes handover operation, plays
System switches animation.
Preferably, play system switches animation, specifically includes:
Switch animation in the displaying interface top layer play system for the system for being currently at foreground.
Preferably, detect for multisystem front and back switching trigger action when, obtain system switching when and Foreground and Background
The corresponding switching of system shows data, comprising:
Detect that the trigger action for the switching of multisystem front and back executes the time greater than setting time threshold value, with scheduled
It intercepts switching corresponding with Foreground and Background system when the multiple intercepting system of frequency switches and shows data;
Switching corresponding with Foreground and Background system shows that data generation system switching is dynamic when wherein, based on system switching
It draws, specifically includes:
Show that data generate system based on switching corresponding with Foreground and Background system when repeatedly intercepting obtained system switching
System switching animation.
Preferably, when switching corresponding with Foreground and Background system shows that data include that system switching is preceding when system switches
The screenshotss of Foreground and Background system show data.
Another embodiment of the present invention proposes switching animation display device when multisystem switching, comprising:
Data acquisition module, for detecting the trigger action for being directed to the switching of multisystem front and back, when obtaining system switching
Switching corresponding with Foreground and Background system shows data;
Animation producing module, switching corresponding with Foreground and Background system shows that data are raw when for based on system switching
Switch animation at system;
Animation play module switches animation for play system;
System switching module executes handover operation for controlling Foreground and Background system;
Data display module, for show switching after in foreground system real-time display data.
Preferably, it realizes that play system switches animation by any one of following, and executes back-fore ground system handover operation:
At the end of animation play module play system switches animation, system switching module control back-fore ground system executes switching
Operation;
When detecting back-fore ground system finishing switching, animation play module play system switches animation;
The third party system of animation play module and system switching module by control independently of back-fore ground system plays system
System switching animation simultaneously controls back-fore ground system execution handover operation.
Preferably, animation producing module and animation play module pass through switching animation application generation respectively and play system is cut
Move picture;
Wherein, animation play module and system switching module are specifically used for following scenario described:
Foreground system starting switching animation application before the handover, then animation play module play system switching first is dynamic
It draws, system switching module control back-fore ground system executes handover operation at the end of broadcasting;
Background system starting switching animation application before the handover, then system switching module control back-fore ground system is held first
Row handover operation, when switching completion, animation play module play system switches animation;
Start switching animation application in third party system, then executes switching behaviour in system switching module control back-fore ground system
During work, animation play module play system switches animation.
Preferably, animation play module is specifically used for the displaying interface top layer play system in the system for being currently at foreground
Switch animation.
Preferably, when data acquisition module is specifically used for detecting that the trigger action for the switching of multisystem front and back executes
Between be greater than setting time threshold value, it is corresponding with Foreground and Background system when being switched with the multiple intercepting system of scheduled interception frequency
Switching display data;
Wherein, animation producing module be specifically used for based on repeatedly intercept obtain system switching when with Foreground and Background system divide
Not corresponding switching shows that data generation system switches animation.
Technical solution of the present invention provides the scheme of switching animation display problem when solving for multisystem switching.It is first
First, it detects the trigger action for the switching of multisystem front and back, obtains corresponding with Foreground and Background system difference when system switching
Switching display data;Then, play system switches animation, and Foreground and Background system executes handover operation, holds in Foreground and Background system
During row handover operation, control play system switching animation, will with gently presentation mode with coupled system handoff procedure
The display screen of front and back system carries out transition switching, it is ensured that the not noticeable screen into net system switching process of user is shown
Not real system show data.In the biggish situation of screen-picture contrast difference of Foreground and Background system, using this hair
Switching cartoon display method when the multisystem switching of bright offer may provide the user with the system switching vision effect of smooth transition
Fruit, so that improving user watches impression.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can carry out two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Multisystem in the embodiment of the present invention includes at least two systems.Wherein, multisystem may include various operation systems
System, such as the intelligent terminal operation systems such as Android, Windows and first heart.Multisystem in the embodiment of the present invention can be based on
A variety of virtual technologies are realized, hereafter carry out the detailed description of embodiment by taking the container technique under linux system as an example.Wherein, make
The multisystem realized with linux container technology, is packed into independent system in each container, mutually indepedent between multiple systems,
And multiple systems operate on same physical terminal device.
Linux container tool can provide the virtualization of lightweight, so as to isolated process and resource.Use the excellent of container
Point is exactly not need to install too many software package, and use process will not occupy too many resource.Container effectively will be by single
The resource of operating system management is divided into isolated group, has the resource of conflict to use preferably to balance between isolated group
Demand.Compared with virtual machine technique, container technique does not both need instruction level simulation, does not need Just-In-Time yet.Container can be
Core CPU local runtime instruction, without any special explanation facility.In addition, also avoiding quasi- virtualization and system tune
With the complexity in replacement.Container also saves expense by sharing these resources, it means that container while providing isolation
Expense than really virtualizing is much smaller.By way of providing a kind of creation and entering container, operating system allows application
Program can share the system and physical resource of bottom just as running on independent machine.
Multisystem in the embodiment of the present invention can be realized based on a variety of virtual technologies, hereafter under linux system
The detailed description of embodiment is carried out for container technique.Wherein, the multiple operating system realized using linux container technology, each
It is packed into independent system in container, it is mutually indepedent between multiple systems, and multiple systems operate in same physical terminal device
On.
The flow diagram of switching cartoon display method when Fig. 1 is the multisystem switching of one embodiment of the invention.
Description of content performed by each step is as follows: step S110: detecting the triggering for the switching of multisystem front and back
Operation, switching corresponding with Foreground and Background system shows data when obtaining system switching;Step S120: switched based on system
When corresponding with Foreground and Background system switching show that data generation system switches animation;Step S130: play system switching is dynamic
It draws, and Foreground and Background system executes handover operation;Step S140: the real-time display data of the system in foreground after switching are shown.
Specific implementation below for each step is described further:
Step S110: detect for multisystem front and back switching trigger action, obtain system switching when and Foreground and Background
The corresponding switching of system shows data.
Preferably, data, which include before system switches, to be shown to corresponding switching respectively with Foreground and Background system when system switches
When Foreground and Background system screenshotss show data.Optionally, it is aobvious to corresponding switching respectively with Foreground and Background system when system switches
Registration is according to that can also include predetermined display data corresponding with Foreground and Background system, such as system banner picture;For example, foreground
System A is Android system, then system banner picture corresponding with system A.
It should be noted that being shown respectively to corresponding switching when following embodiments are switched with system with Foreground and Background system
The detailed description for carrying out embodiment for the situation of the screenshotss display data of Foreground and Background system when data are before system switches.
Specifically, the trigger action of multisystem front and back switching includes, but are not limited to, the following ways:
(1) scheduled front and back switching physical button is pressed;For example, set key SWITCH as system switching key, when
Terminal device detects the handover operation that can trigger system front and back when user presses the operation of SWITCH.
(2) corresponding physical button is pressed with scheduled key mode;For example, it is predetermined press simultaneously volume increase reduction by
Key is more than 3 seconds handover operations that can trigger system front and back, is subtracted when terminal device detects user while pressing volume increase
It can trigger the handover operation of system front and back when small key is more than operation in 3 seconds.
(3) terminal device is operated with system scheduled mode of operation, for example, carrying out flip horizontal to terminal device
It can trigger the handover operation of system front and back.
Three of the above trigger action be detected by linux kernel and driver by hardware button or inductor, and
And the handover operation for needing to carry out system front and back is recognised that according to operation;Subsequent linux kernel notice multisystem executes
Front and back switches relevant operation.
(4) touch operation is carried out on the screen with scheduled gesture;For example, executing touch track on the screen is to draw five jiaos
The gesture of starriness is the handover operation that can trigger system front and back.
(5) when executing trigger action to the switching icon in foreground system, that is, it can trigger the switching behaviour of system front and back
Make, corresponding operating such as is carried out to node file corresponding with system switching.
Both the above trigger action is software triggering mode.For example, the setting switching figure on the status bar of foreground system
Mark, when foreground system detection to user clicks the switching icon, linux kernel is provided based on clicking operation and multisystem
Front and back switches corresponding file node and executes corresponding operating, such as carries out write operation to file node dev/switch, such as writes
Enter " 1 ", when linux kernel detects/dev/switch execute the operation of write-in " 1 " when multisystem can be notified to execute front and back
Handover operation.
It should be noted that multisystem is all based on identical physics kernel, and general not Direct Communication between multisystem,
It can realize that the data between system are transmitted by communicating between kernel carry out system, or by interprocess communication between it.
Before the screenshotss of Foreground and Background system show data when preferably, before the switching of the system of acquisition, before can detecte switching
When background system whether in a dormant state, if it is, needing to wake up background system.Specifically, if when before system switching
In a dormant state, then the corresponding screenshotss of background system show that data are empty or are into before dormant state to background system
It has expired screenshotss and shows data, it is therefore desirable to wake up background system to refresh in the corresponding display buffer region of the system and store
Screenshotss show data.In addition, starting scheduled application program while if presetting starting background system, it is also desirable to by calling out
Background system wake up to start scheduled application program.For example, foreground system is A system, background system is B system, presets starting
Start talk application program while background system B.System switching before, background system B in a dormant state, for energy conservation
The considerations of equal design factors, when default backstage B system enters dormant state, it is not necessary to which the application program of unlatching is all correspondingly closed
It closes, and the application program includes talk application program.Due to starting talk application program while default starting background system B,
Before the screenshotss of background system B show data when therefore before the switching of the system of acquisition, need by waking up background system B to start
Talk application program.In addition, what is stored in the corresponding display buffer region background system B cuts after starting talk application program
Screen display registration evidence is correspondingly updated.
When realizing system switching animation in foreground system, show data by leading between process the screenshotss of background system
Letter mode is sent to foreground system from background system by kernel transfer mode;It is dynamic when realizing that system switches in background system
When picture, the screenshotss of foreground system are shown that data are sent out by interprocess communication mode or by kernel transfer mode from foreground system
It send to background system.
For example, system A is foreground system, system B is background system, and starting switching is dynamic in foreground system A before the handover
Draw application;The screenshotss that switching animation application directly reads foreground system A show data;Foreground system A passes through interprocess communication side
Formula shows data by the screenshotss that kernel transfer mode obtains background system B;Switch animation application to read through foreground system A
The screenshotss of the background system B of acquisition show data.
In another example system A is background system, system B is foreground system, starts switching in background system A before the handover
Animation application;The screenshotss that switching animation application directly acquires background system A when switching preceding show data;Background system A by into
The communication mode or screenshotss of foreground system B show data when being obtained before switching by kernel transfer mode between journey, and by the screenshotss
The switching animation application started in background system A when display data are sent to before the handover.
Step S120: switching corresponding with Foreground and Background system shows that data generation system is cut when based on system switching
Move picture.
Preferably, animation is switched by switching animation application generation system.
For example, switching animation is applied in foreground system A, foreground system A and backstage are when obtained before system switches respectively
The screenshotss of system B show data, and are individually identified as FB_A_T0 and FB_B_T0.Switch animation application SwitchAnimation with
The screenshotss of foreground system A show picture when data FB_A_T0 starts as system switching animation, and cutting with background system B
Photograph creation system at the end of screen display registration switches animation as system according to FB_B_T0 switches animation.
Step S130: play system switches animation, and Foreground and Background system executes handover operation.
Preferably, it realizes that play system switches animation by any one of following, and executes Foreground and Background system switching behaviour
Make: at the end of play system switches animation, Foreground and Background system executes handover operation;Detect Foreground and Background system finishing switching
When, play system switches animation;Switch animation by the third party system play system independently of Foreground and Background system and controls
Foreground and Background system executes handover operation.
Preferably, animation is switched by switching animation application plays system.
Wherein, play system switches animation, and executes Foreground and Background system handover operation, specifically includes following scenario described:
(1) foreground system starting switching animation application before the handover, then play system switches animation first, ties playing
Foreground and Background system executes handover operation when beam.
For example, system A is foreground system, system B is background system, and starting switching is dynamic in foreground system A before the handover
Draw application;Firstly, the screenshotss of foreground system A and background system B show data when before obtaining system switching respectively, and identify respectively
For FB_A_T0 and FB_B_T0;Then, foreground system A starting switching animation application SwitchAnimation before the handover, cuts
The screenshotss that the picture application SwitchAnimation that moves gets foreground system A and background system B show data, and accordingly generate
System switches animation, and the screenshotss of foreground system A and background system B can be shown that data are combined with vertical by system switching animation
The form of cube rotation presents or shows that data show that data carried out to the screenshotss of background system B with the screenshotss of foreground system A
The form crossed is presented;Then, switching animation application SwitchAnimation play system switches animation, with cutting for foreground system A
Picture when screen display registration starts according to FB_A_T0 as system switching animation, although switching animation application at this time
SwitchAnimation is started, but the screenshotss that the content of its display is foreground system A show data FB_A_T0, and screenshotss are aobvious
Registration is consistent according to the content of FB_A_T0 with the content for switching preceding foreground system A actual displayed, so user can not discover
The start-up operation for switching animation application SwitchAnimation shows content by preceding during play system switches animation
The screenshotss of platform system A show that data FB_A_T0 shows data FB_B_T0 transition to the screenshotss of background system B, when display content is complete
When being transitioned into FB_B_T0 entirely, show data FB_B_T0 as the figure at the end of system switching animation using the screenshotss of background system B
Piece;Finally, foreground system A, background system B execute handover operation at the end of broadcasting, at this point, foreground system A release display is set
Standby, background system B obtains display equipment, after foreground system A and switching animation application SwitchAnimation are switched to
Platform.
(2) background system starting switching animation application before the handover, then Foreground and Background system executes handover operation first,
When switching completion, play system switches animation.
For example, system A is background system, system B is foreground system, and starting switching is dynamic in background system A before the handover
Draw application;Firstly, the screenshotss of background system A and foreground system B show data when before obtaining system switching respectively, and identify respectively
For FB_A_T0 and FB_B_T0;Then, background system A, foreground system B execute handover operation;Foreground system when then, before the handover
Starting switching animation application SwitchAnimation in system B, switching animation application SwitchAnimation get backstage system
The screenshotss of system A and foreground system B show data, and accordingly generate system switching animation;Switching behaviour has been executed in system A, system B
When making, the system B release after switching in backstage shows equipment, and the system A after switching in foreground obtains display equipment, is in
The switching animation application SwitchAnimation play system of foreground system A switches animation after switching, aobvious with the screenshotss of system B
Picture when registration starts according to FB_B_T0 as system switching animation, although system A, system B have executed handover operation at this time
, but showing content still is the screenshotss display data FB_B_T0 that the system B on backstage is in after switching, so user can not examine
Feel has executed the switching of Foreground and Background system, and during play system switches animation, display content is shown by the screenshotss of system B
Data FB_B_T0 shows data FB_A_T0 transition to the screenshotss of system A, when showing that content is transitioned into FB_A_T0 completely, with
The screenshotss of system A show data FB_A_T0 as the picture at the end of system switching animation.(3) it is cut in third party system starting
Move picture application, then during Foreground and Background system executes handover operation, play system switches animation.
For example, system A is foreground system, system B is background system, the starting switching animation application in third party system C;
Firstly, the screenshotss of foreground system A and background system B show data when before obtaining system switching respectively, and it is individually identified as FB_A_
T0 and FB_B_T0 starts switching animation application SwitchAnimation in third party system C;Then, foreground system A, third
Method, system C executes handover operation, foreground system A release display equipment, and third party system C obtains display equipment, and switching animation is answered
Picture when SwitchAnimation being used to show that data FB_A_T0 starts as system switching animation using the screenshotss of foreground system A
Play system switches animation, although display equipment is occupied by third party system C at this time, the content of display is foreground system A's
Screenshotss show data FB_A_T0, and screenshotss show the interior of the content of data FB_A_T0 and the preceding foreground system A actual displayed of switching
Hold unanimously, therefore user can not discover the start-up operation of switching animation application SwitchAnimation, it is dynamic in play system switching
During picture, display content shows that data FB_A_T0 shows data to the screenshotss of background system B from the screenshotss of foreground system A
FB_B_T0 transition shows that data FB_B_T0 makees when showing that content is transitioned into FB_B_T0 completely with the screenshotss of background system B
Picture at the end of switching animation for system;Finally, third party system C and system B executes handover operation at the end of broadcasting, the
Three method, system C release display equipment, system B switch to foreground and obtain display equipment, and system A and third party system C are switched
To backstage.
Preferably, the step of play system switching animation specifically includes: at the displaying interface for the system for being currently at foreground
Top layer play system switches animation.
Specifically, setting can be passed through in the displaying interface top layer play system switching animation for the system for being currently at foreground
The window Z order that play system switches animation is realized.Wherein, the window Z order that setting play system switches animation can make
System switching animation window is in top layer position in overlaid windows heap.Wherein, window heap is somebody's turn to do along preset axis alignment sequence
Preset axis is the virtual Z axis extended from screen to outside screen space.Therefore, the highest window of window Z order sequence covers institute
There are other window Z order to sort low window.In addition, setting window A is to pass through along the position of preset virtual Z axis alignment sequence
Window A is arranged in behind given window B, or window A is arranged in the top or bottom of all windows.
For example, Windows system includes three independent window Z order for managing different windows: for managing brother
(fraternal window is the child window for sharing the same parent window to younger brother's window;Wherein, a parent window is a forms, each father
Window is not the child window of other any one forms.Child window is the objects such as control or button on forms) window Z order,
Window Z order for managing top-level windows, the window Z order for managing top window.Wherein, top window covers
The window of all other non-top, the application program in Windows system are created most by setting WS_EX_TOPMOST attribute
Top-level windows.Under normal circumstances, the window Z order sequence highest of newest creation window is arranged in Windows system, and user can pass through
A window is activated to change window Z order, the window Z order sequence highest of active window is arranged in Windows system.In addition,
The window Z order of a window can be arranged in application program in Windows system by function BringWindowToTop,
The window Z order that can be arranged windows by function SetWindowPos and DeferWindowPos.
Step S140: the real-time display data of the system in foreground after switching are shown.
For example, system A is foreground system, system B is background system, and starting switching is dynamic in foreground system A before the handover
It draws and applies SwitchAnimation;Play system switches animation first, shows that data FB_A_T0 makees with the screenshotss of foreground system A
Switch picture when animation starts for system, during play system switches animation, display content is cut by foreground system A's
Screen display registration shows data FB_B_T0 transition to the screenshotss of background system B according to FB_A_T0, when display content is transitioned into FB_ completely
When B_T0, show data FB_B_T0 as the picture at the end of system switching animation using the screenshotss of background system B;It is tied playing
Foreground and Background system executes handover operation when beam, and the system A release display equipment after switching in backstage is in foreground after switching
System B obtain display equipment, the real-time display data FB_B_T1 of display system B.It is not interacted with user in background system B
In the case where, the content of FB_B_T0 and FB_B_T1 are essentially identical, so FB_B_T0 to the transition of the content of FB_B_T1 be flat
Slow.
In another example system A is background system, system B is foreground system, starts switching in background system A before the handover
Animation application SwitchAnimation;Foreground and Background system executes handover operation first;Switch animation application
SwitchAnimation play system when switching completion switches animation, is shown with switching the screenshotss of the preceding system B in foreground
Data FB_B_T0 as system switching animation start when picture, play system switch animation during, display content by
The screenshotss of system B show that data FB_B_T0 shows data FB_A_T0 transition to the screenshotss of the system A in backstage before switching, when
When display content is transitioned into FB_A_T0 completely, show that data FB_A_T0 terminates as system switching animation using the screenshotss of system A
When picture, at this point, Foreground and Background system has executed handover operation, the real-time display of the system A in foreground after display switching
Data FB_A_T1.In the case where system A is not interacted with user, the content of FB_A_T0 and FB_A_T1 are essentially identical, so
FB_A_T0 to the transition of the content of FB_A_T1 be gentle.
For another example system A is foreground system, system B is background system, and starting switching animation is answered in third party system C
Use SwitchAnimation;During foreground system A, background system B execute handover operation, the release display of system A first is set
It is standby, third party system C obtain display equipment, the switching animation application SwitchAnimation started in third party system with
The screenshotss of foreground system A show that picture playing system when data FB_A_T0 starts as system switching animation switches animation,
During play system switches animation, display content shows data FB_A_T0 to background system B from the screenshotss of foreground system A
Screenshotss show data FB_B_T0 transition, when show content be transitioned into FB_B_T0 completely when, shown with the screenshotss of background system B
Data FB_B_T0 is as the picture at the end of system switching animation;Finally, third party system C release display at the end of broadcasting
Equipment, the system B after switching in foreground obtain display equipment, the real-time display number of the system B in foreground after display switching
According to.
Foregoing invention embodiment is the situation shorter for the trigger action execution time of multisystem front and back switching: only being needed
The screenshotss of foreground system and background system before primary system switches are obtained respectively and show data, and generate system switching animation.?
It is executed in time longer situation for the trigger action of multisystem front and back switching, then it can be dynamic in switching animation application plays
The screenshotss that foreground system and background system are constantly obtained during picture show data, and generate system switching animation.Wherein,
The execution time correlation of length of time with the operation of user's switching system is executed for the trigger action of multisystem front and back switching,
For example, user is by gesture slide handover system, and gesture sliding process is longer, then the time of net system switching process also accordingly compared with
It is long.
Preferably, detect for multisystem front and back switching trigger action when, obtain system switching when and Foreground and Background
System includes: to detect that the trigger action for the switching of multisystem front and back executes the step of switching shows data accordingly respectively
Time, which is greater than, presets time threshold, distinguishes when being switched with the multiple intercepting system of scheduled interception frequency with Foreground and Background system
Corresponding switching display data;Corresponding switching shows that data generate respectively with Foreground and Background system when wherein, based on system switching
System switches animation, specifically includes: showing data based on switching when repeatedly intercepting obtained system switching with Foreground and Background system
Generation system switches animation.
For example, as shown in Fig. 2, detect for multisystem front and back switching trigger action execute the time be " 3s ", and
Greater than setting time threshold value " 2s ", then at first second, second second of trigger action implementation procedure of the switching of multisystem front and back and
The third second be divided into not Jie Qu cubic system switching before when Foreground and Background system screenshotss show data;Switch animation to apply based on upper
It states the screenshotss that screen interception operation obtains three times and shows data generation system switching animation, and being played in the form of three-dimensional rotation should
System switches animation.It should be noted that if Foreground and Background system is all playing video, when more with scheduled interception frequency
When the screenshotss of Foreground and Background system show data when before secondary intercepting system switching, user can observe the view of Foreground and Background system simultaneously
Frequency plays situation.
Technical solution of the present invention provides the scheme of switching animation display problem when solving for multisystem switching.It is first
First, it detects the trigger action for the switching of multisystem front and back, obtains corresponding with Foreground and Background system difference when system switching
Switching display data;Then, play system switches animation, and Foreground and Background system executes handover operation, holds in Foreground and Background system
During row handover operation, control play system switching animation, will with gently presentation mode with coupled system handoff procedure
The display screen of front and back system carries out transition switching, it is ensured that the not noticeable screen into net system switching process of user is shown
Not real system show data.In the biggish situation of screen-picture contrast difference of Foreground and Background system, using this hair
Switching cartoon display method when the multisystem switching of bright offer may provide the user with the system switching vision effect of smooth transition
Fruit, so that improving user watches impression.
The structural representation of switching animation display device when Fig. 3 is the multisystem switching of another preferred embodiment of the present invention
Figure, which includes: data acquisition module 310, animation producing module 320, animation play module 330, system switching module
340, data display module 350.Specific effect below for modules is described further:
Data acquisition module 310 detect for multisystem front and back switching trigger action, obtain system switching when with
Corresponding switching shows data to Foreground and Background system respectively.
Preferably, data, which include before system switches, to be shown to corresponding switching respectively with Foreground and Background system when system switches
When Foreground and Background system screenshotss show data.Optionally, it is aobvious to corresponding switching respectively with Foreground and Background system when system switches
Registration is according to that can also include predetermined display data corresponding with Foreground and Background system, such as system banner picture;For example, foreground
System A is Android system, then system banner picture corresponding with system A.
It should be noted that being shown respectively to corresponding switching when following embodiments are switched with system with Foreground and Background system
The detailed description for carrying out embodiment for the situation of the screenshotss display data of Foreground and Background system when data are before system switches.
Specifically, the trigger action of multisystem front and back switching includes, but are not limited to, the following ways:
(1) scheduled front and back switching physical button is pressed;For example, set key SWITCH as system switching key, when
Terminal device detects the handover operation that can trigger system front and back when user presses the operation of SWITCH.
(2) corresponding physical button is pressed with scheduled key mode;For example, it is predetermined press simultaneously volume increase reduction by
Key is more than 3 seconds handover operations that can trigger system front and back, is subtracted when terminal device detects user while pressing volume increase
It can trigger the handover operation of system front and back when small key is more than operation in 3 seconds.
(3) terminal device is operated with system scheduled mode of operation, for example, carrying out flip horizontal to terminal device
It can trigger the handover operation of system front and back.
Three of the above trigger action be detected by linux kernel and driver by hardware button or inductor, and
And the handover operation for needing to carry out system front and back is recognised that according to operation;Subsequent linux kernel notice multisystem executes
Front and back switches relevant operation.
(4) touch operation is carried out on the screen with scheduled gesture;For example, executing touch track on the screen is to draw five jiaos
The gesture of starriness is the handover operation that can trigger system front and back.
(5) when executing trigger action to the switching icon in foreground system, that is, it can trigger the switching behaviour of system front and back
Make, corresponding operating such as is carried out to node file corresponding with system switching.
Both the above trigger action is software triggering mode.For example, the setting switching figure on the status bar of foreground system
Mark, when foreground system detection to user clicks the switching icon, linux kernel is provided based on clicking operation and multisystem
Front and back switches corresponding file node and executes corresponding operating, such as carries out write operation to file node dev/switch, such as writes
Enter " 1 ", when linux kernel detects/dev/switch execute the operation of write-in " 1 " when multisystem can be notified to execute front and back
Handover operation.
It should be noted that multisystem is all based on identical physics kernel, and general not Direct Communication between multisystem,
It can realize that the data between system are transmitted by communicating between kernel carry out system, or by interprocess communication between it.
Preferably, data acquisition module 310 obtain system switching before when Foreground and Background system screenshotss show data it
Before, can detecte switching before when background system whether in a dormant state, if it is, needing to wake up background system.Specifically,
If background system is in a dormant state when before system switching, the corresponding screenshotss of background system show data be it is empty or for into
The screenshotss that have expired before entering dormant state show data, it is therefore desirable to which it is corresponding aobvious to refresh the system to wake up background system
Show that the screenshotss stored in buffer area show data.In addition, starting scheduled application while if presetting starting background system
Program, it is also desirable to by waking up background system to start scheduled application program.For example, foreground system is A system, background system
It is B system, starts talk application program while presetting starting background system B.Before system switching, background system B, which is in, to stop
Dormancy state, the considerations of for design factors such as energy conservations, when default backstage B system enters dormant state, it is not necessary to which unlatching is answered
It is all correspondingly closed with program, and the application program includes talk application program.While due to default starting background system B
Start talk application program, therefore is needed before the screenshotss display data of background system B by calling out when the switching of the system of acquisition is preceding
Background system B wake up to start talk application program.In addition, the corresponding display of background system B is slow after starting talk application program
It rushes the screenshotss stored in region and shows that data are correspondingly updated.
When realizing system switching animation in foreground system, show data by leading between process the screenshotss of background system
Letter mode is sent to foreground system from background system by kernel transfer mode;It is dynamic when realizing that system switches in background system
When picture, the screenshotss of foreground system are shown that data are sent out by interprocess communication mode or by kernel transfer mode from foreground system
It send to background system.
For example, system A is foreground system, system B is background system, and starting switching is dynamic in foreground system A before the handover
Draw application;The screenshotss that switching animation application directly reads foreground system A show data;Foreground system A passes through interprocess communication side
Formula shows data by the screenshotss that kernel transfer mode obtains background system B;Switch animation application to read through foreground system A
The screenshotss of the background system B of acquisition show data.
In another example system A is background system, system B is foreground system, starts switching in background system A before the handover
Animation application;The screenshotss that switching animation application directly acquires background system A when switching preceding show data;Background system A by into
The communication mode or screenshotss of foreground system B show data when being obtained before switching by kernel transfer mode between journey, and by the screenshotss
The switching animation application started in background system A when display data are sent to before the handover.
Animation producing module 320 is based on switching corresponding with Foreground and Background system when system switches and shows that data generate
System switches animation.
Preferably, animation is switched by switching animation application generation system.
For example, switching animation is applied in foreground system A, foreground system A and backstage are when obtained before system switches respectively
The screenshotss of system B show data, and are individually identified as FB_A_T0 and FB_B_T0.Switch animation application SwitchAnimation with
The screenshotss of foreground system A show picture when data FB_A_T0 starts as system switching animation, and cutting with background system B
Photograph creation system at the end of screen display registration switches animation as system according to FB_B_T0 switches animation.
330 play system of animation play module switches animation, and the control of system switching module 340 executes Foreground and Background system
Handover operation.
Preferably, it realizes that play system switches animation by any one of following, and executes back-fore ground system handover operation:
At the end of animation play module play system switches animation, system switching module 340 controls back-fore ground system and executes handover operation;
When detecting back-fore ground system finishing switching, 330 play system of animation play module switches animation;Animation play module and system
Switching module switches animation independently of the third party system play system of back-fore ground system by control and controls back-fore ground system
Execute handover operation.
Preferably, animation is switched by switching animation application plays system.
Wherein, animation play module 330 and system switching module 340 are specifically used for following scenario described:
(1) foreground system starting switching animation application before the handover, then 330 play system of animation play module first is cut
Move picture, and system switching module 340 controls back-fore ground system and executes handover operation at the end of broadcasting.
For example, system A is foreground system, system B is background system, and starting switching is dynamic in foreground system A before the handover
Draw application;Firstly, the screenshotss of foreground system A and background system B show data when before obtaining system switching respectively, and identify respectively
For FB_A_T0 and FB_B_T0;Then, foreground system A starting switching animation application SwitchAnimation before the handover, cuts
The screenshotss that the picture application SwitchAnimation that moves gets foreground system A and background system B show data, and accordingly generate
System switches animation, and the screenshotss of foreground system A and background system B can be shown that data are combined with vertical by system switching animation
The form of cube rotation presents or shows that data show that data carried out to the screenshotss of background system B with the screenshotss of foreground system A
The form crossed is presented;Then, switching animation application SwitchAnimation play system switches animation, with cutting for foreground system A
Picture when screen display registration starts according to FB_A_T0 as system switching animation, although switching animation application at this time
SwitchAnimation is started, but the screenshotss that the content of its display is foreground system A show data FB_A_T0, and screenshotss are aobvious
Registration is consistent according to the content of FB_A_T0 with the content for switching preceding foreground system A actual displayed, so user can not discover
The start-up operation for switching animation application SwitchAnimation shows content by preceding during play system switches animation
The screenshotss of platform system A show that data FB_A_T0 shows data FB_B_T0 transition to the screenshotss of background system B, when display content is complete
When being transitioned into FB_B_T0 entirely, show data FB_B_T0 as the figure at the end of system switching animation using the screenshotss of background system B
Piece;Finally, foreground system A, background system B execute handover operation at the end of broadcasting, at this point, foreground system A release display is set
Standby, background system B obtains display equipment, after foreground system A and switching animation application SwitchAnimation are switched to
Platform.
(2) background system starting switching animation application before the handover, then system switching module 340 controls front and back first
System executes handover operation, and when switching completion, 330 play system of animation play module switches animation.
For example, system A is background system, system B is foreground system, and starting switching is dynamic in background system A before the handover
Draw application;Firstly, the screenshotss of background system A and foreground system B show data when before obtaining system switching respectively, and identify respectively
For FB_A_T0 and FB_B_T0;Then, background system A, foreground system B execute handover operation;Foreground system when then, before the handover
Starting switching animation application SwitchAnimation in system B, switching animation application SwitchAnimation get backstage system
The screenshotss of system A and foreground system B show data, and accordingly generate system switching animation;Switching behaviour has been executed in system A, system B
When making, the system B release after switching in backstage shows equipment, and the system A after switching in foreground obtains display equipment, is in
The switching animation application SwitchAnimation play system of foreground system A switches animation after switching, aobvious with the screenshotss of system B
Picture when registration starts according to FB_B_T0 as system switching animation, although system A, system B have executed handover operation at this time
, but showing content still is the screenshotss display data FB_B_T0 that the system B on backstage is in after switching, so user can not examine
Feel has executed the switching of Foreground and Background system, and during play system switches animation, display content is shown by the screenshotss of system B
Data FB_B_T0 shows data FB_A_T0 transition to the screenshotss of system A, when showing that content is transitioned into FB_A_T0 completely, with
The screenshotss of system A show data FB_A_T0 as the picture at the end of system switching animation.
(3) start switching animation application in third party system, then control back-fore ground system in system switching module 340 and execute
During handover operation, 330 play system of animation play module switches animation.
For example, system A is foreground system, system B is background system, the starting switching animation application in third party system C;
Firstly, the screenshotss of foreground system A and background system B show data when before obtaining system switching respectively, and it is individually identified as FB_A_
T0 and FB_B_T0 starts switching animation application SwitchAnimation in third party system C;Then, foreground system A, third
Method, system C executes handover operation, foreground system A release display equipment, and third party system C obtains display equipment, and switching animation is answered
Picture when SwitchAnimation being used to show that data FB_A_T0 starts as system switching animation using the screenshotss of foreground system A
Play system switches animation, although display equipment is occupied by third party system C at this time, the content of display is foreground system A's
Screenshotss show data FB_A_T0, and screenshotss show the interior of the content of data FB_A_T0 and the preceding foreground system A actual displayed of switching
Hold unanimously, therefore user can not discover the start-up operation of switching animation application SwitchAnimation, it is dynamic in play system switching
During picture, display content shows that data FB_A_T0 shows data to the screenshotss of background system B from the screenshotss of foreground system A
FB_B_T0 transition shows that data FB_B_T0 makees when showing that content is transitioned into FB_B_T0 completely with the screenshotss of background system B
Picture at the end of switching animation for system;Finally, third party system C and system B executes handover operation at the end of broadcasting, the
Three method, system C release display equipment, system B switch to foreground and obtain display equipment, and system A and third party system C are switched
To backstage.
Preferably, animation play module 330 is specifically used for playing in the displaying interface top layer for the system for being currently at foreground
System switches animation.
Specifically, setting can be passed through in the displaying interface top layer play system switching animation for the system for being currently at foreground
The window Z order that play system switches animation is realized.Wherein, the window Z order that setting play system switches animation can make
System switching animation window is in top layer position in overlaid windows heap.Wherein, window heap is somebody's turn to do along preset axis alignment sequence
Preset axis is the virtual Z axis extended from screen to outside screen space.Therefore, the highest window of window Z order sequence covers institute
There are other window Z order to sort low window.In addition, setting window A is to pass through along the position of preset virtual Z axis alignment sequence
Window A is arranged in behind given window B, or window A is arranged in the top or bottom of all windows.
For example, Windows system includes three independent window Z order for managing different windows: for managing brother
(fraternal window is the child window for sharing the same parent window to younger brother's window;Wherein, a parent window is a forms, each father
Window is not the child window of other any one forms.Child window is the objects such as control or button on forms) window Z order,
Window Z order for managing top-level windows, the window Z order for managing top window.Wherein, top window covers
The window of all other non-top, the application program in Windows system are created most by setting WS_EX_TOPMOST attribute
Top-level windows.Under normal circumstances, the window Z order sequence highest of newest creation window is arranged in Windows system, and user can pass through
A window is activated to change window Z order, the window Z order sequence highest of active window is arranged in Windows system.In addition,
The window Z order of a window can be arranged in application program in Windows system by function BringWindowToTop,
The window Z order that can be arranged windows by function SetWindowPos and DeferWindowPos.
Data display module 350 shows the real-time display data of the system in foreground after switching.
For example, system A is foreground system, system B is background system, and starting switching is dynamic in foreground system A before the handover
It draws and applies SwitchAnimation;Play system switches animation first, shows that data FB_A_T0 makees with the screenshotss of foreground system A
Switch picture when animation starts for system, during play system switches animation, display content is cut by foreground system A's
Screen display registration shows data FB_B_T0 transition to the screenshotss of background system B according to FB_A_T0, when display content is transitioned into FB_ completely
When B_T0, show data FB_B_T0 as the picture at the end of system switching animation using the screenshotss of background system B;It is tied playing
Foreground and Background system executes handover operation when beam, and the system A release display equipment after switching in backstage is in foreground after switching
System B obtain display equipment, the real-time display data FB_B_T1 of display system B.It is not interacted with user in background system B
In the case where, the content of FB_B_T0 and FB_B_T1 are essentially identical, so FB_B_T0 to the transition of the content of FB_B_T1 be flat
Slow.
In another example system A is background system, system B is foreground system, starts switching in background system A before the handover
Animation application SwitchAnimation;Foreground and Background system executes handover operation first;Switch animation application
SwitchAnimation play system when switching completion switches animation, is shown with switching the screenshotss of the preceding system B in foreground
Data FB_B_T0 as system switching animation start when picture, play system switch animation during, display content by
The screenshotss of system B show that data FB_B_T0 shows data FB_A_T0 transition to the screenshotss of the system A in backstage before switching, when
When display content is transitioned into FB_A_T0 completely, show that data FB_A_T0 terminates as system switching animation using the screenshotss of system A
When picture, at this point, Foreground and Background system has executed handover operation, the real-time display of the system A in foreground after display switching
Data FB_A_T1.In the case where system A is not interacted with user, the content of FB_A_T0 and FB_A_T1 are essentially identical, so
FB_A_T0 to the transition of the content of FB_A_T1 be gentle.
For another example system A is foreground system, system B is background system, and starting switching animation is answered in third party system C
Use SwitchAnimation;During foreground system A, background system B execute handover operation, the release display of system A first is set
It is standby, third party system C obtain display equipment, the switching animation application SwitchAnimation started in third party system with
The screenshotss of foreground system A show that picture playing system when data FB_A_T0 starts as system switching animation switches animation,
During play system switches animation, display content shows data FB_A_T0 to background system B from the screenshotss of foreground system A
Screenshotss show data FB_B_T0 transition, when show content be transitioned into FB_B_T0 completely when, shown with the screenshotss of background system B
Data FB_B_T0 is as the picture at the end of system switching animation;Finally, third party system C release display at the end of broadcasting
Equipment, the system B after switching in foreground obtain display equipment, the real-time display number of the system B in foreground after display switching
According to.
Foregoing invention embodiment is the situation shorter for the trigger action execution time of multisystem front and back switching: only being needed
The screenshotss of foreground system and background system before primary system switches are obtained respectively and show data, and generate system switching animation.?
It is executed in time longer situation for the trigger action of multisystem front and back switching, then it can be dynamic in switching animation application plays
The screenshotss that foreground system and background system are constantly obtained during picture show data, and generate system switching animation.Wherein,
The execution time correlation of length of time with the operation of user's switching system is executed for the trigger action of multisystem front and back switching,
For example, user is by gesture slide handover system, and gesture sliding process is longer, then the time of net system switching process also accordingly compared with
It is long.
Preferably, data acquisition module 310 is specifically used for detecting that the trigger action for the switching of multisystem front and back is held
The row time, which is greater than, presets time threshold, divides when being switched with the multiple intercepting system of scheduled interception frequency with Foreground and Background system
The data of switching display not accordingly;Wherein, when animation producing module 320 is specifically used for based on obtained system switching is repeatedly intercepted
Corresponding switching shows that data generation system switches animation respectively with Foreground and Background system.
For example, as shown in Fig. 2, detect for multisystem front and back switching trigger action execute the time be " 3s ", and
Greater than setting time threshold value " 2s ", then at first second, second second of trigger action implementation procedure of the switching of multisystem front and back and
The third second be divided into not Jie Qu cubic system switching before when Foreground and Background system screenshotss show data;Switch animation to apply based on upper
It states the screenshotss that screen interception operation obtains three times and shows data generation system switching animation, and being played in the form of three-dimensional rotation should
System switches animation.It should be noted that if Foreground and Background system is all playing video, when more with scheduled interception frequency
When the screenshotss of Foreground and Background system show data when before secondary intercepting system switching, user can observe the view of Foreground and Background system simultaneously
Frequency plays situation.
Technical solution of the present invention provides the scheme of switching animation display problem when solving for multisystem switching.It is first
First, it detects the trigger action for the switching of multisystem front and back, obtains corresponding with Foreground and Background system difference when system switching
Switching display data;Then, play system switches animation, and Foreground and Background system executes handover operation, holds in Foreground and Background system
During row handover operation, control play system switching animation, will with gently presentation mode with coupled system handoff procedure
The display screen of front and back system carries out transition switching, it is ensured that the not noticeable screen into net system switching process of user is shown
Not real system show data.In the biggish situation of screen-picture contrast difference of Foreground and Background system, using this hair
Switching cartoon display method when the multisystem switching of bright offer may provide the user with the system switching vision effect of smooth transition
Fruit, so that improving user watches impression.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing one in the application in operation
Or multinomial equipment.These equipment can specially design and manufacture for required purpose, or also may include general-purpose computations
Known device in machine.These equipment have the computer program being stored in it, these computer programs selectively activate
Or reconstruct.Such computer program, which can be stored in equipment (for example, computer) readable medium or be stored in, to be suitable for
Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and computer-readable medium is including but not limited to any
The disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk) of type, ROM (Read-Only Memory, read-only storage
Device), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-
Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable
Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, readable
Medium includes by equipment (for example, computer) with any medium for the form storage or transmission information that can be read.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that those skilled in the art are come
It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as
Protection scope of the present invention.