blob: ea6226b3ea69c9e9e34307f7b37c8f559a310d38 [file] [log] [blame]
Winson Chunge2d72172018-01-25 17:46:20 +00001/*
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
17package android.view;
18
19import android.view.RemoteAnimationTarget;
20import android.view.IRecentsAnimationController;
21
22/**
23 * Interface that is used to callback from window manager to the process that runs a recents
24 * animation to start or cancel it.
25 *
26 * {@hide}
27 */
28oneway interface IRecentsAnimationRunner {
29
30 /**
Winson Chungbb5d97f2018-02-07 18:30:40 +000031 * Called when the system is ready for the handler to start animating all the visible tasks.
Winson Chunge2d72172018-01-25 17:46:20 +000032 */
33 void onAnimationStart(in IRecentsAnimationController controller,
Winson Chungbb5d97f2018-02-07 18:30:40 +000034 in RemoteAnimationTarget[] apps);
Winson Chunge2d72172018-01-25 17:46:20 +000035
36 /**
37 * Called when the system needs to cancel the current animation. This can be due to the
38 * wallpaper not drawing in time, or the handler not finishing the animation within a predefined
39 * amount of time.
40 */
Winson Chungbb5d97f2018-02-07 18:30:40 +000041 void onAnimationCanceled();
Winson Chunge2d72172018-01-25 17:46:20 +000042}