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 transition The old transition type. Must be one of WindowManager.TRANSIT_OLD_* values. 34 * @param apps The list of apps to animate. 35 * @param wallpapers The list of wallpapers to animate. 36 * @param nonApps The list of non-app windows such as Bubbles to animate. 37 * @param finishedCallback The callback to invoke when the animation is finished. 38 */ 39 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) onAnimationStart(int transit, in RemoteAnimationTarget[] apps, in RemoteAnimationTarget[] wallpapers, in RemoteAnimationTarget[] nonApps, in IRemoteAnimationFinishedCallback finishedCallback)40 void onAnimationStart(int transit, in RemoteAnimationTarget[] apps, 41 in RemoteAnimationTarget[] wallpapers, in RemoteAnimationTarget[] nonApps, 42 in IRemoteAnimationFinishedCallback finishedCallback); 43 44 /** 45 * Called when the animation was cancelled. From this point on, any updates onto the leashes 46 * won't have any effect anymore. 47 */ 48 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) onAnimationCancelled()49 void onAnimationCancelled(); 50 } 51