• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 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.window;
18 
19 import android.os.IBinder;
20 import android.os.RemoteException;
21 import android.view.SurfaceControl;
22 
23 /**
24  * Utility base implementation of {@link IRemoteTransition} that users can extend to avoid stubbing.
25  *
26  * @hide
27  */
28 public abstract class RemoteTransitionStub extends IRemoteTransition.Stub {
29     @Override
mergeAnimation(IBinder transition, TransitionInfo info, SurfaceControl.Transaction t, IBinder mergeTarget, IRemoteTransitionFinishedCallback finishCallback)30     public void mergeAnimation(IBinder transition, TransitionInfo info,
31             SurfaceControl.Transaction t, IBinder mergeTarget,
32             IRemoteTransitionFinishedCallback finishCallback) throws RemoteException {}
33 
34 
35     @Override
takeOverAnimation(IBinder transition, TransitionInfo info, SurfaceControl.Transaction startTransaction, IRemoteTransitionFinishedCallback finishCallback, WindowAnimationState[] states)36     public void takeOverAnimation(IBinder transition, TransitionInfo info,
37             SurfaceControl.Transaction startTransaction,
38             IRemoteTransitionFinishedCallback finishCallback,
39             WindowAnimationState[] states) throws RemoteException {
40         throw new RemoteException("Takeovers are not supported by this IRemoteTransition");
41     }
42 
43 
44     @Override
onTransitionConsumed(IBinder transition, boolean aborted)45     public void onTransitionConsumed(IBinder transition, boolean aborted)
46             throws RemoteException {}
47 }
48