blob: 4cdf664415146dca43dd2862cf77a3cc476ee97e [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
Winson Chung584d6522018-02-07 23:57:38 +000019import android.graphics.Rect;
Winson Chunge2d72172018-01-25 17:46:20 +000020import android.view.RemoteAnimationTarget;
21import android.view.IRecentsAnimationController;
22
23/**
24 * Interface that is used to callback from window manager to the process that runs a recents
25 * animation to start or cancel it.
26 *
27 * {@hide}
28 */
29oneway interface IRecentsAnimationRunner {
30
31 /**
Winson Chunge2d72172018-01-25 17:46:20 +000032 * Called when the system needs to cancel the current animation. This can be due to the
33 * wallpaper not drawing in time, or the handler not finishing the animation within a predefined
34 * amount of time.
35 */
Winson Chung584d6522018-02-07 23:57:38 +000036 void onAnimationCanceled() = 1;
37
38 /**
39 * Called when the system is ready for the handler to start animating all the visible tasks.
40 *
41 * @param homeContentInsets The current home app content insets
42 * @param minimizedHomeBounds Specifies the bounds of the minimized home app, will be
43 * {@code null} if the device is not currently in split screen
44 */
Winson Chung6802e2a2018-04-19 16:45:21 -070045 void onAnimationStart(in IRecentsAnimationController controller,
Winson Chung584d6522018-02-07 23:57:38 +000046 in RemoteAnimationTarget[] apps, in Rect homeContentInsets,
47 in Rect minimizedHomeBounds) = 2;
Winson Chunge2d72172018-01-25 17:46:20 +000048}