1/* 2 * Copyright (C) 2016 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.app; 18 19import android.app.ActivityManager.TaskSnapshot; 20import android.content.ComponentName; 21import android.os.RemoteException; 22 23/** 24 * Classes interested in observing only a subset of changes using ITaskStackListener can extend 25 * this class to avoid having to implement all the methods. 26 * @hide 27 */ 28public abstract class TaskStackListener extends ITaskStackListener.Stub { 29 @Override 30 public void onTaskStackChanged() throws RemoteException { 31 } 32 33 @Override 34 public void onActivityPinned(String packageName, int userId, int taskId, int stackId) 35 throws RemoteException { 36 } 37 38 @Override 39 public void onActivityUnpinned() throws RemoteException { 40 } 41 42 @Override 43 public void onPinnedActivityRestartAttempt(boolean clearedTask) throws RemoteException { 44 } 45 46 @Override 47 public void onPinnedStackAnimationStarted() throws RemoteException { 48 } 49 50 @Override 51 public void onPinnedStackAnimationEnded() throws RemoteException { 52 } 53 54 @Override 55 public void onActivityForcedResizable(String packageName, int taskId, int reason) 56 throws RemoteException { 57 } 58 59 @Override 60 public void onActivityDismissingDockedStack() throws RemoteException { 61 } 62 63 @Override 64 public void onActivityLaunchOnSecondaryDisplayFailed() throws RemoteException { 65 } 66 67 @Override 68 public void onTaskCreated(int taskId, ComponentName componentName) throws RemoteException { 69 } 70 71 @Override 72 public void onTaskRemoved(int taskId) throws RemoteException { 73 } 74 75 @Override 76 public void onTaskMovedToFront(int taskId) throws RemoteException { 77 } 78 79 @Override 80 public void onTaskRemovalStarted(int taskId) throws RemoteException { 81 } 82 83 @Override 84 public void onTaskDescriptionChanged(int taskId, ActivityManager.TaskDescription td) 85 throws RemoteException { 86 } 87 88 @Override 89 public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) 90 throws RemoteException { 91 } 92 93 @Override 94 public void onTaskProfileLocked(int taskId, int userId) throws RemoteException { 95 } 96 97 @Override 98 public void onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) throws RemoteException { 99 } 100} 101