• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2014, 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.app;
18 
19 /** @hide */
20 oneway interface ITaskStackListener {
21     /** Called whenever there are changes to the state of tasks in a stack. */
onTaskStackChanged()22     void onTaskStackChanged();
23 
24     /** Called whenever an Activity is moved to the pinned stack from another stack. */
onActivityPinned()25     void onActivityPinned();
26 
27     /**
28      * Called whenever IActivityManager.startActivity is called on an activity that is already
29      * running in the pinned stack and the activity is not actually started, but the task is either
30      * brought to the front or a new Intent is delivered to it.
31      */
onPinnedActivityRestartAttempt()32     void onPinnedActivityRestartAttempt();
33 
34     /**
35      * Called whenever the pinned stack is done animating a resize.
36      */
onPinnedStackAnimationEnded()37     void onPinnedStackAnimationEnded();
38 
39     /**
40      * Called when we launched an activity that we forced to be resizable.
41      */
onActivityForcedResizable(String packageName, int taskId)42     void onActivityForcedResizable(String packageName, int taskId);
43 
44     /**
45      * Callen when we launched an activity that is dismissed the docked stack.
46      */
onActivityDismissingDockedStack()47     void onActivityDismissingDockedStack();
48 }
49