1 /*
2  * Copyright (C) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.view;
18 
19 import android.view.RemoteAnimationTarget;
20 import android.view.IRemoteAnimationFinishedCallback;
21 
22 /**
23  * Interface that is used to callback from window manager to the process that runs a remote
24  * animation to start or cancel it.
25  *
26  * {@hide}
27  */
28 oneway interface IRemoteAnimationRunner {
29 
30     /**
31      * Called when the process needs to start the remote animation.
32      *
33      * @param apps The list of apps to animate.
34      * @param finishedCallback The callback to invoke when the animation is finished.
35      */
36     @UnsupportedAppUsage
onAnimationStart(in RemoteAnimationTarget[] apps, in RemoteAnimationTarget[] wallpapers, in IRemoteAnimationFinishedCallback finishedCallback)37     void onAnimationStart(in RemoteAnimationTarget[] apps, in RemoteAnimationTarget[] wallpapers,
38             in IRemoteAnimationFinishedCallback finishedCallback);
39 
40     /**
41      * Called when the animation was cancelled. From this point on, any updates onto the leashes
42      * won't have any effect anymore.
43      */
44     @UnsupportedAppUsage
onAnimationCancelled()45     void onAnimationCancelled();
46 }
47