diff options
| author | Dianne Hackborn <hackbod@google.com> | 2010-11-22 15:59:56 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2010-11-22 18:35:55 -0800 |
| commit | 621e17de87f18003aba2dedb719a2941020a7902 (patch) | |
| tree | 978b402ced5bd03d3b4f6eaa9fbaaf186427823c /core/java/android/app/IActivityManager.java | |
| parent | 703c5f39c58168829e8d8f7ed7b5aea3f4fb600b (diff) | |
Implement issue #3221502: New APIs to support new back stack / task navigation
What this adds:
- A new Intent activity flag to completely replace an existing task.
- A new Intent activity flag to bring the current home task up behind
a new task being started/brought to the foreground.
- New versions of startActivity() that take an array of Intents to be
started, allowing applications to start a task in a specific state.
- A public moveTaskToFront() method on ActivityManager, with a new flag
that allows the caller to have the task moved to the front with the
current home task immediately behind it.
Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
Diffstat (limited to 'core/java/android/app/IActivityManager.java')
| -rw-r--r-- | core/java/android/app/IActivityManager.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/core/java/android/app/IActivityManager.java b/core/java/android/app/IActivityManager.java index c9d5448767c5..dc180832e114 100644 --- a/core/java/android/app/IActivityManager.java +++ b/core/java/android/app/IActivityManager.java @@ -134,7 +134,7 @@ public interface IActivityManager extends IInterface { public List getServices(int maxNum, int flags) throws RemoteException; public List<ActivityManager.ProcessErrorStateInfo> getProcessesInErrorState() throws RemoteException; - public void moveTaskToFront(int task) throws RemoteException; + public void moveTaskToFront(int task, int flags) throws RemoteException; public void moveTaskToBack(int task) throws RemoteException; public boolean moveActivityTaskToBack(IBinder token, boolean nonRoot) throws RemoteException; public void moveTaskBackwards(int task) throws RemoteException; @@ -199,7 +199,8 @@ public interface IActivityManager extends IInterface { public static final int INTENT_SENDER_SERVICE = 4; public IIntentSender getIntentSender(int type, String packageName, IBinder token, String resultWho, - int requestCode, Intent intent, String resolvedType, int flags) throws RemoteException; + int requestCode, Intent[] intents, String[] resolvedTypes, + int flags) throws RemoteException; public void cancelIntentSender(IIntentSender sender) throws RemoteException; public boolean clearApplicationUserData(final String packageName, final IPackageDataObserver observer) throws RemoteException; @@ -208,7 +209,8 @@ public interface IActivityManager extends IInterface { public void setProcessLimit(int max) throws RemoteException; public int getProcessLimit() throws RemoteException; - public void setProcessForeground(IBinder token, int pid, boolean isForeground) throws RemoteException; + public void setProcessForeground(IBinder token, int pid, + boolean isForeground) throws RemoteException; public int checkPermission(String permission, int pid, int uid) throws RemoteException; @@ -332,6 +334,11 @@ public interface IActivityManager extends IInterface { public boolean dumpHeap(String process, boolean managed, String path, ParcelFileDescriptor fd) throws RemoteException; + public int startActivities(IApplicationThread caller, + Intent[] intents, String[] resolvedTypes, IBinder resultTo) throws RemoteException; + public int startActivitiesInPackage(int uid, + Intent[] intents, String[] resolvedTypes, IBinder resultTo) throws RemoteException; + /* * Private non-Binder interfaces */ @@ -544,4 +551,6 @@ public interface IActivityManager extends IInterface { int REVOKE_URI_PERMISSION_FROM_OWNER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+117; int CHECK_GRANT_URI_PERMISSION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+118; int DUMP_HEAP_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+119; + int START_ACTIVITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+120; + int START_ACTIVITIES_IN_PACKAGE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+121; } |
