The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006 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 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 19 | import android.content.ComponentName; |
| 20 | import android.content.ContentProviderNative; |
| 21 | import android.content.IContentProvider; |
Brad Fitzpatrick | cb9ceb1 | 2010-07-29 14:29:02 -0700 | [diff] [blame] | 22 | import android.content.IIntentReceiver; |
| 23 | import android.content.IIntentSender; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 24 | import android.content.Intent; |
| 25 | import android.content.IntentFilter; |
Dianne Hackborn | fa82f22 | 2009-09-17 15:14:12 -0700 | [diff] [blame] | 26 | import android.content.IntentSender; |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 27 | import android.content.pm.ApplicationInfo; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 28 | import android.content.pm.ConfigurationInfo; |
| 29 | import android.content.pm.IPackageDataObserver; |
| 30 | import android.content.pm.ProviderInfo; |
Amith Yamasani | 52f1d75 | 2012-03-28 18:19:29 -0700 | [diff] [blame] | 31 | import android.content.pm.UserInfo; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | import android.content.res.Configuration; |
| 33 | import android.graphics.Bitmap; |
| 34 | import android.net.Uri; |
Brad Fitzpatrick | cb9ceb1 | 2010-07-29 14:29:02 -0700 | [diff] [blame] | 35 | import android.os.Bundle; |
Dianne Hackborn | 3025ef3 | 2009-08-31 21:31:47 -0700 | [diff] [blame] | 36 | import android.os.Debug; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 37 | import android.os.IBinder; |
| 38 | import android.os.IInterface; |
| 39 | import android.os.Parcel; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 40 | import android.os.ParcelFileDescriptor; |
Brad Fitzpatrick | cb9ceb1 | 2010-07-29 14:29:02 -0700 | [diff] [blame] | 41 | import android.os.Parcelable; |
| 42 | import android.os.RemoteException; |
| 43 | import android.os.StrictMode; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | |
| 45 | import java.util.List; |
| 46 | |
| 47 | /** |
| 48 | * System private API for talking with the activity manager service. This |
| 49 | * provides calls from the application back to the activity manager. |
| 50 | * |
| 51 | * {@hide} |
| 52 | */ |
| 53 | public interface IActivityManager extends IInterface { |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 54 | public int startActivity(IApplicationThread caller, |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 55 | Intent intent, String resolvedType, IBinder resultTo, String resultWho, |
| 56 | int requestCode, int flags, String profileFile, |
| 57 | ParcelFileDescriptor profileFd, Bundle options) throws RemoteException; |
Amith Yamasani | 8264408 | 2012-08-03 13:09:11 -0700 | [diff] [blame] | 58 | public int startActivityAsUser(IApplicationThread caller, |
| 59 | Intent intent, String resolvedType, IBinder resultTo, String resultWho, |
| 60 | int requestCode, int flags, String profileFile, |
| 61 | ParcelFileDescriptor profileFd, Bundle options, int userId) throws RemoteException; |
Dianne Hackborn | 8f7f35e | 2010-02-25 18:48:12 -0800 | [diff] [blame] | 62 | public WaitResult startActivityAndWait(IApplicationThread caller, |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 63 | Intent intent, String resolvedType, IBinder resultTo, String resultWho, |
| 64 | int requestCode, int flags, String profileFile, |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 65 | ParcelFileDescriptor profileFd, Bundle options, int userId) throws RemoteException; |
Dianne Hackborn | 2ccda4d | 2010-03-22 21:49:15 -0700 | [diff] [blame] | 66 | public int startActivityWithConfig(IApplicationThread caller, |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 67 | Intent intent, String resolvedType, IBinder resultTo, String resultWho, |
| 68 | int requestCode, int startFlags, Configuration newConfig, |
Dianne Hackborn | 4120375 | 2012-08-31 14:05:51 -0700 | [diff] [blame] | 69 | Bundle options, int userId) throws RemoteException; |
Dianne Hackborn | fa82f22 | 2009-09-17 15:14:12 -0700 | [diff] [blame] | 70 | public int startActivityIntentSender(IApplicationThread caller, |
| 71 | IntentSender intent, Intent fillInIntent, String resolvedType, |
Dianne Hackborn | bcbcaa7 | 2009-09-10 10:54:46 -0700 | [diff] [blame] | 72 | IBinder resultTo, String resultWho, int requestCode, |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 73 | int flagsMask, int flagsValues, Bundle options) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 74 | public boolean startNextMatchingActivity(IBinder callingActivity, |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 75 | Intent intent, Bundle options) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 76 | public boolean finishActivity(IBinder token, int code, Intent data) |
| 77 | throws RemoteException; |
| 78 | public void finishSubActivity(IBinder token, String resultWho, int requestCode) throws RemoteException; |
Dianne Hackborn | ecc5a9c | 2012-04-26 18:56:09 -0700 | [diff] [blame] | 79 | public boolean finishActivityAffinity(IBinder token) throws RemoteException; |
Dianne Hackborn | 061d58a | 2010-03-12 15:07:06 -0800 | [diff] [blame] | 80 | public boolean willActivityBeVisible(IBinder token) throws RemoteException; |
Dianne Hackborn | 6c418d5 | 2011-06-29 14:05:33 -0700 | [diff] [blame] | 81 | public Intent registerReceiver(IApplicationThread caller, String callerPackage, |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 82 | IIntentReceiver receiver, IntentFilter filter, |
Dianne Hackborn | 20e8098 | 2012-08-31 19:00:44 -0700 | [diff] [blame] | 83 | String requiredPermission, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 84 | public void unregisterReceiver(IIntentReceiver receiver) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 85 | public int broadcastIntent(IApplicationThread caller, Intent intent, |
| 86 | String resolvedType, IIntentReceiver resultTo, int resultCode, |
| 87 | String resultData, Bundle map, String requiredPermission, |
Amith Yamasani | 742a671 | 2011-05-04 14:49:28 -0700 | [diff] [blame] | 88 | boolean serialized, boolean sticky, int userId) throws RemoteException; |
| 89 | public void unbroadcastIntent(IApplicationThread caller, Intent intent, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 90 | public void finishReceiver(IBinder who, int resultCode, String resultData, Bundle map, boolean abortBroadcast) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 91 | public void attachApplication(IApplicationThread app) throws RemoteException; |
Dianne Hackborn | ad9b3211 | 2012-09-17 15:35:01 -0700 | [diff] [blame] | 92 | public void activityResumed(IBinder token) throws RemoteException; |
Dianne Hackborn | 62f20ec | 2011-08-15 17:40:28 -0700 | [diff] [blame] | 93 | public void activityIdle(IBinder token, Configuration config, |
| 94 | boolean stopProfiling) throws RemoteException; |
Dianne Hackborn | 0aae2d4 | 2010-12-07 23:51:29 -0800 | [diff] [blame] | 95 | public void activityPaused(IBinder token) throws RemoteException; |
Dianne Hackborn | 0aae2d4 | 2010-12-07 23:51:29 -0800 | [diff] [blame] | 96 | public void activityStopped(IBinder token, Bundle state, |
| 97 | Bitmap thumbnail, CharSequence description) throws RemoteException; |
Dianne Hackborn | 4eba96b | 2011-01-21 13:34:36 -0800 | [diff] [blame] | 98 | public void activitySlept(IBinder token) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 99 | public void activityDestroyed(IBinder token) throws RemoteException; |
| 100 | public String getCallingPackage(IBinder token) throws RemoteException; |
| 101 | public ComponentName getCallingActivity(IBinder token) throws RemoteException; |
| 102 | public List getTasks(int maxNum, int flags, |
| 103 | IThumbnailReceiver receiver) throws RemoteException; |
| 104 | public List<ActivityManager.RecentTaskInfo> getRecentTasks(int maxNum, |
Amith Yamasani | 8264408 | 2012-08-03 13:09:11 -0700 | [diff] [blame] | 105 | int flags, int userId) throws RemoteException; |
Dianne Hackborn | f26fd99 | 2011-04-08 18:14:09 -0700 | [diff] [blame] | 106 | public ActivityManager.TaskThumbnails getTaskThumbnails(int taskId) throws RemoteException; |
Dianne Hackborn | 15491c6 | 2012-09-19 10:59:14 -0700 | [diff] [blame] | 107 | public Bitmap getTaskTopThumbnail(int taskId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 108 | public List getServices(int maxNum, int flags) throws RemoteException; |
| 109 | public List<ActivityManager.ProcessErrorStateInfo> getProcessesInErrorState() |
| 110 | throws RemoteException; |
Dianne Hackborn | 8078d8c | 2012-03-20 11:11:26 -0700 | [diff] [blame] | 111 | public void moveTaskToFront(int task, int flags, Bundle options) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 112 | public void moveTaskToBack(int task) throws RemoteException; |
| 113 | public boolean moveActivityTaskToBack(IBinder token, boolean nonRoot) throws RemoteException; |
| 114 | public void moveTaskBackwards(int task) throws RemoteException; |
| 115 | public int getTaskForActivity(IBinder token, boolean onlyRoot) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 116 | /* oneway */ |
| 117 | public void reportThumbnail(IBinder token, |
Dianne Hackborn | dd9b82c | 2009-09-03 00:18:47 -0700 | [diff] [blame] | 118 | Bitmap thumbnail, CharSequence description) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 119 | public ContentProviderHolder getContentProvider(IApplicationThread caller, |
Jeff Sharkey | 6d51571 | 2012-09-20 16:06:08 -0700 | [diff] [blame] | 120 | String name, int userId, boolean stable) throws RemoteException; |
| 121 | public ContentProviderHolder getContentProviderExternal(String name, int userId, IBinder token) |
Svetoslav Ganov | 25872aa | 2012-02-03 19:19:09 -0800 | [diff] [blame] | 122 | throws RemoteException; |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 123 | public void removeContentProvider(IBinder connection, boolean stable) throws RemoteException; |
Svetoslav Ganov | 25872aa | 2012-02-03 19:19:09 -0800 | [diff] [blame] | 124 | public void removeContentProviderExternal(String name, IBinder token) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 125 | public void publishContentProviders(IApplicationThread caller, |
Dianne Hackborn | dd9b82c | 2009-09-03 00:18:47 -0700 | [diff] [blame] | 126 | List<ContentProviderHolder> providers) throws RemoteException; |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 127 | public boolean refContentProvider(IBinder connection, int stableDelta, int unstableDelta) |
| 128 | throws RemoteException; |
| 129 | public void unstableProviderDied(IBinder connection) throws RemoteException; |
Dianne Hackborn | dd9b82c | 2009-09-03 00:18:47 -0700 | [diff] [blame] | 130 | public PendingIntent getRunningServiceControlPanel(ComponentName service) |
| 131 | throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 132 | public ComponentName startService(IApplicationThread caller, Intent service, |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 133 | String resolvedType, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 134 | public int stopService(IApplicationThread caller, Intent service, |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 135 | String resolvedType, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 136 | public boolean stopServiceToken(ComponentName className, IBinder token, |
| 137 | int startId) throws RemoteException; |
| 138 | public void setServiceForeground(ComponentName className, IBinder token, |
Dianne Hackborn | d8a43f6 | 2009-08-17 23:33:56 -0700 | [diff] [blame] | 139 | int id, Notification notification, boolean keepNotification) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 140 | public int bindService(IApplicationThread caller, IBinder token, |
| 141 | Intent service, String resolvedType, |
Amith Yamasani | 37ce3a8 | 2012-02-06 12:04:42 -0800 | [diff] [blame] | 142 | IServiceConnection connection, int flags, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 143 | public boolean unbindService(IServiceConnection connection) throws RemoteException; |
| 144 | public void publishService(IBinder token, |
| 145 | Intent intent, IBinder service) throws RemoteException; |
| 146 | public void unbindFinished(IBinder token, Intent service, |
| 147 | boolean doRebind) throws RemoteException; |
| 148 | /* oneway */ |
Dianne Hackborn | f6f9f2d | 2009-08-21 16:26:03 -0700 | [diff] [blame] | 149 | public void serviceDoneExecuting(IBinder token, int type, int startId, |
| 150 | int res) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 151 | public IBinder peekService(Intent service, String resolvedType) throws RemoteException; |
| 152 | |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 153 | public boolean bindBackupAgent(ApplicationInfo appInfo, int backupRestoreMode) |
| 154 | throws RemoteException; |
| 155 | public void backupAgentCreated(String packageName, IBinder agent) throws RemoteException; |
| 156 | public void unbindBackupAgent(ApplicationInfo appInfo) throws RemoteException; |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 157 | public void killApplicationProcess(String processName, int uid) throws RemoteException; |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 158 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 159 | public boolean startInstrumentation(ComponentName className, String profileFile, |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 160 | int flags, Bundle arguments, IInstrumentationWatcher watcher, int userId) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 161 | throws RemoteException; |
| 162 | public void finishInstrumentation(IApplicationThread target, |
| 163 | int resultCode, Bundle results) throws RemoteException; |
| 164 | |
| 165 | public Configuration getConfiguration() throws RemoteException; |
| 166 | public void updateConfiguration(Configuration values) throws RemoteException; |
| 167 | public void setRequestedOrientation(IBinder token, |
| 168 | int requestedOrientation) throws RemoteException; |
| 169 | public int getRequestedOrientation(IBinder token) throws RemoteException; |
| 170 | |
| 171 | public ComponentName getActivityClassForToken(IBinder token) throws RemoteException; |
| 172 | public String getPackageForToken(IBinder token) throws RemoteException; |
| 173 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 174 | public IIntentSender getIntentSender(int type, |
| 175 | String packageName, IBinder token, String resultWho, |
Dianne Hackborn | 621e17d | 2010-11-22 15:59:56 -0800 | [diff] [blame] | 176 | int requestCode, Intent[] intents, String[] resolvedTypes, |
Dianne Hackborn | 4120375 | 2012-08-31 14:05:51 -0700 | [diff] [blame] | 177 | int flags, Bundle options, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 178 | public void cancelIntentSender(IIntentSender sender) throws RemoteException; |
| 179 | public boolean clearApplicationUserData(final String packageName, |
Amith Yamasani | 742a671 | 2011-05-04 14:49:28 -0700 | [diff] [blame] | 180 | final IPackageDataObserver observer, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 181 | public String getPackageForIntentSender(IIntentSender sender) throws RemoteException; |
Christopher Tate | c4a07d1 | 2012-04-06 14:19:13 -0700 | [diff] [blame] | 182 | public int getUidForIntentSender(IIntentSender sender) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 183 | |
Dianne Hackborn | 4120375 | 2012-08-31 14:05:51 -0700 | [diff] [blame] | 184 | public int handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, |
| 185 | boolean requireFull, String name, String callerPackage) throws RemoteException; |
| 186 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 187 | public void setProcessLimit(int max) throws RemoteException; |
| 188 | public int getProcessLimit() throws RemoteException; |
| 189 | |
Dianne Hackborn | 621e17d | 2010-11-22 15:59:56 -0800 | [diff] [blame] | 190 | public void setProcessForeground(IBinder token, int pid, |
| 191 | boolean isForeground) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 192 | |
| 193 | public int checkPermission(String permission, int pid, int uid) |
| 194 | throws RemoteException; |
| 195 | |
| 196 | public int checkUriPermission(Uri uri, int pid, int uid, int mode) |
| 197 | throws RemoteException; |
| 198 | public void grantUriPermission(IApplicationThread caller, String targetPkg, |
| 199 | Uri uri, int mode) throws RemoteException; |
| 200 | public void revokeUriPermission(IApplicationThread caller, Uri uri, |
| 201 | int mode) throws RemoteException; |
| 202 | |
| 203 | public void showWaitingForDebugger(IApplicationThread who, boolean waiting) |
| 204 | throws RemoteException; |
| 205 | |
| 206 | public void getMemoryInfo(ActivityManager.MemoryInfo outInfo) throws RemoteException; |
| 207 | |
Dianne Hackborn | 1676c85 | 2012-09-10 14:52:30 -0700 | [diff] [blame] | 208 | public void killBackgroundProcesses(final String packageName, int userId) |
| 209 | throws RemoteException; |
Dianne Hackborn | e4d4fbc | 2011-11-08 11:53:28 -0800 | [diff] [blame] | 210 | public void killAllBackgroundProcesses() throws RemoteException; |
Dianne Hackborn | 1676c85 | 2012-09-10 14:52:30 -0700 | [diff] [blame] | 211 | public void forceStopPackage(final String packageName, int userId) throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 212 | |
| 213 | // Note: probably don't want to allow applications access to these. |
| 214 | public void goingToSleep() throws RemoteException; |
| 215 | public void wakingUp() throws RemoteException; |
Dianne Hackborn | ff5b158 | 2012-04-12 17:24:07 -0700 | [diff] [blame] | 216 | public void setLockScreenShown(boolean shown) throws RemoteException; |
| 217 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 218 | public void unhandledBack() throws RemoteException; |
| 219 | public ParcelFileDescriptor openContentUri(Uri uri) throws RemoteException; |
| 220 | public void setDebugApp( |
| 221 | String packageName, boolean waitForDebugger, boolean persistent) |
| 222 | throws RemoteException; |
| 223 | public void setAlwaysFinish(boolean enabled) throws RemoteException; |
Dianne Hackborn | b06ea70 | 2009-07-13 13:07:51 -0700 | [diff] [blame] | 224 | public void setActivityController(IActivityController watcher) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 225 | throws RemoteException; |
| 226 | |
| 227 | public void enterSafeMode() throws RemoteException; |
| 228 | |
| 229 | public void noteWakeupAlarm(IIntentSender sender) throws RemoteException; |
Jeff Sharkey | b9a0701 | 2012-03-22 17:00:04 -0700 | [diff] [blame] | 230 | |
Dianne Hackborn | 6482517 | 2011-03-02 21:32:58 -0800 | [diff] [blame] | 231 | public boolean killPids(int[] pids, String reason, boolean secure) throws RemoteException; |
Jeff Sharkey | b9a0701 | 2012-03-22 17:00:04 -0700 | [diff] [blame] | 232 | public boolean killProcessesBelowForeground(String reason) throws RemoteException; |
| 233 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 234 | // Special low-level communication with activity manager. |
| 235 | public void startRunning(String pkg, String cls, String action, |
| 236 | String data) throws RemoteException; |
Dan Egnor | 60d8762 | 2009-12-16 16:32:58 -0800 | [diff] [blame] | 237 | public void handleApplicationCrash(IBinder app, |
| 238 | ApplicationErrorReport.CrashInfo crashInfo) throws RemoteException; |
| 239 | public boolean handleApplicationWtf(IBinder app, String tag, |
Dan Egnor | b7f0367 | 2009-12-09 16:22:32 -0800 | [diff] [blame] | 240 | ApplicationErrorReport.CrashInfo crashInfo) throws RemoteException; |
Brad Fitzpatrick | 46d4238 | 2010-06-11 13:57:58 -0700 | [diff] [blame] | 241 | |
| 242 | // A StrictMode violation to be handled. The violationMask is a |
| 243 | // subset of the original StrictMode policy bitmask, with only the |
| 244 | // bit violated and penalty bits to be executed by the |
| 245 | // ActivityManagerService remaining set. |
| 246 | public void handleApplicationStrictModeViolation(IBinder app, int violationMask, |
Brad Fitzpatrick | cb9ceb1 | 2010-07-29 14:29:02 -0700 | [diff] [blame] | 247 | StrictMode.ViolationInfo crashInfo) throws RemoteException; |
Brad Fitzpatrick | 438d059 | 2010-06-10 12:19:19 -0700 | [diff] [blame] | 248 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 249 | /* |
| 250 | * This will deliver the specified signal to all the persistent processes. Currently only |
| 251 | * SIGUSR1 is delivered. All others are ignored. |
| 252 | */ |
| 253 | public void signalPersistentProcesses(int signal) throws RemoteException; |
Dianne Hackborn | 27ff913 | 2012-03-06 14:57:58 -0800 | [diff] [blame] | 254 | // Retrieve running application processes in the system |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 255 | public List<ActivityManager.RunningAppProcessInfo> getRunningAppProcesses() |
| 256 | throws RemoteException; |
Dianne Hackborn | 27ff913 | 2012-03-06 14:57:58 -0800 | [diff] [blame] | 257 | // Retrieve info of applications installed on external media that are currently |
| 258 | // running. |
Suchi Amalapurapu | f7f5dda | 2010-03-23 10:34:28 -0700 | [diff] [blame] | 259 | public List<ApplicationInfo> getRunningExternalApplications() |
| 260 | throws RemoteException; |
Dianne Hackborn | 27ff913 | 2012-03-06 14:57:58 -0800 | [diff] [blame] | 261 | // Get memory information about the calling process. |
| 262 | public void getMyMemoryState(ActivityManager.RunningAppProcessInfo outInfo) |
| 263 | throws RemoteException; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 264 | // Get device configuration |
| 265 | public ConfigurationInfo getDeviceConfigurationInfo() throws RemoteException; |
| 266 | |
The Android Open Source Project | f5b4b98 | 2009-03-05 20:00:43 -0800 | [diff] [blame] | 267 | // Turn on/off profiling in a particular process. |
Dianne Hackborn | 1676c85 | 2012-09-10 14:52:30 -0700 | [diff] [blame] | 268 | public boolean profileControl(String process, int userId, boolean start, |
Romain Guy | 7eabe55 | 2011-07-21 14:56:34 -0700 | [diff] [blame] | 269 | String path, ParcelFileDescriptor fd, int profileType) throws RemoteException; |
The Android Open Source Project | f5b4b98 | 2009-03-05 20:00:43 -0800 | [diff] [blame] | 270 | |
Dianne Hackborn | 55280a9 | 2009-05-07 15:53:46 -0700 | [diff] [blame] | 271 | public boolean shutdown(int timeout) throws RemoteException; |
| 272 | |
Dianne Hackborn | 95fc68f | 2009-05-19 18:37:45 -0700 | [diff] [blame] | 273 | public void stopAppSwitches() throws RemoteException; |
| 274 | public void resumeAppSwitches() throws RemoteException; |
| 275 | |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 276 | public void killApplicationWithAppId(String pkg, int appid) throws RemoteException; |
Dianne Hackborn | a6ddc8a | 2009-07-28 17:49:55 -0700 | [diff] [blame] | 277 | |
| 278 | public void closeSystemDialogs(String reason) throws RemoteException; |
| 279 | |
Dianne Hackborn | 4f21c4c | 2009-09-17 10:24:05 -0700 | [diff] [blame] | 280 | public Debug.MemoryInfo[] getProcessMemoryInfo(int[] pids) |
Dianne Hackborn | 3025ef3 | 2009-08-31 21:31:47 -0700 | [diff] [blame] | 281 | throws RemoteException; |
| 282 | |
Dianne Hackborn | 3b3e145 | 2009-09-24 19:22:12 -0700 | [diff] [blame] | 283 | public void overridePendingTransition(IBinder token, String packageName, |
| 284 | int enterAnim, int exitAnim) throws RemoteException; |
| 285 | |
Dianne Hackborn | 9327f4f | 2010-01-29 10:38:29 -0800 | [diff] [blame] | 286 | public boolean isUserAMonkey() throws RemoteException; |
| 287 | |
Dianne Hackborn | 860755f | 2010-06-03 18:47:52 -0700 | [diff] [blame] | 288 | public void finishHeavyWeightApp() throws RemoteException; |
Daniel Sandler | 69a4817 | 2010-06-23 16:29:36 -0400 | [diff] [blame] | 289 | |
| 290 | public void setImmersive(IBinder token, boolean immersive) throws RemoteException; |
| 291 | public boolean isImmersive(IBinder token) throws RemoteException; |
| 292 | public boolean isTopActivityImmersive() throws RemoteException; |
Dianne Hackborn | 860755f | 2010-06-03 18:47:52 -0700 | [diff] [blame] | 293 | |
Dianne Hackborn | 9d39d0c | 2010-06-24 15:57:42 -0700 | [diff] [blame] | 294 | public void crashApplication(int uid, int initialPid, String packageName, |
| 295 | String message) throws RemoteException; |
Dianne Hackborn | cca1f0e | 2010-09-26 18:34:53 -0700 | [diff] [blame] | 296 | |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 297 | public String getProviderMimeType(Uri uri, int userId) throws RemoteException; |
Dianne Hackborn | 9d39d0c | 2010-06-24 15:57:42 -0700 | [diff] [blame] | 298 | |
Dianne Hackborn | 7e26964 | 2010-08-25 19:50:20 -0700 | [diff] [blame] | 299 | public IBinder newUriPermissionOwner(String name) throws RemoteException; |
| 300 | public void grantUriPermissionFromOwner(IBinder owner, int fromUid, String targetPkg, |
| 301 | Uri uri, int mode) throws RemoteException; |
| 302 | public void revokeUriPermissionFromOwner(IBinder owner, Uri uri, |
| 303 | int mode) throws RemoteException; |
Andy McFadden | 824c510 | 2010-07-09 16:26:57 -0700 | [diff] [blame] | 304 | |
Dianne Hackborn | 90f4aaf | 2010-09-27 14:58:44 -0700 | [diff] [blame] | 305 | public int checkGrantUriPermission(int callingUid, String targetPkg, |
| 306 | Uri uri, int modeFlags) throws RemoteException; |
| 307 | |
Andy McFadden | 824c510 | 2010-07-09 16:26:57 -0700 | [diff] [blame] | 308 | // Cause the specified process to dump the specified heap. |
Dianne Hackborn | 1676c85 | 2012-09-10 14:52:30 -0700 | [diff] [blame] | 309 | public boolean dumpHeap(String process, int userId, boolean managed, String path, |
Andy McFadden | 824c510 | 2010-07-09 16:26:57 -0700 | [diff] [blame] | 310 | ParcelFileDescriptor fd) throws RemoteException; |
| 311 | |
Dianne Hackborn | 621e17d | 2010-11-22 15:59:56 -0800 | [diff] [blame] | 312 | public int startActivities(IApplicationThread caller, |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 313 | Intent[] intents, String[] resolvedTypes, IBinder resultTo, |
Amith Yamasani | ea7e915 | 2012-09-24 16:11:18 -0700 | [diff] [blame] | 314 | Bundle options, int userId) throws RemoteException; |
Dianne Hackborn | 621e17d | 2010-11-22 15:59:56 -0800 | [diff] [blame] | 315 | |
Dianne Hackborn | 0f1de9a | 2011-05-11 17:34:49 -0700 | [diff] [blame] | 316 | public int getFrontActivityScreenCompatMode() throws RemoteException; |
| 317 | public void setFrontActivityScreenCompatMode(int mode) throws RemoteException; |
| 318 | public int getPackageScreenCompatMode(String packageName) throws RemoteException; |
| 319 | public void setPackageScreenCompatMode(String packageName, int mode) |
Dianne Hackborn | e2515ee | 2011-04-27 18:52:56 -0400 | [diff] [blame] | 320 | throws RemoteException; |
Dianne Hackborn | 36cd41f | 2011-05-25 21:00:46 -0700 | [diff] [blame] | 321 | public boolean getPackageAskScreenCompat(String packageName) throws RemoteException; |
| 322 | public void setPackageAskScreenCompat(String packageName, boolean ask) |
| 323 | throws RemoteException; |
Amith Yamasani | 52f1d75 | 2012-03-28 18:19:29 -0700 | [diff] [blame] | 324 | |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 325 | // Multi-user APIs |
| 326 | public boolean switchUser(int userid) throws RemoteException; |
Dianne Hackborn | 80a4af2 | 2012-08-27 19:18:31 -0700 | [diff] [blame] | 327 | public int stopUser(int userid, IStopUserCallback callback) throws RemoteException; |
Amith Yamasani | 52f1d75 | 2012-03-28 18:19:29 -0700 | [diff] [blame] | 328 | public UserInfo getCurrentUser() throws RemoteException; |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 329 | public boolean isUserRunning(int userid) throws RemoteException; |
Dianne Hackborn | c72fc67 | 2012-09-20 13:12:03 -0700 | [diff] [blame] | 330 | public int[] getRunningUserIds() throws RemoteException; |
Amith Yamasani | 52f1d75 | 2012-03-28 18:19:29 -0700 | [diff] [blame] | 331 | |
Dianne Hackborn | 0c5001d | 2011-04-12 18:16:08 -0700 | [diff] [blame] | 332 | public boolean removeSubTask(int taskId, int subTaskIndex) throws RemoteException; |
| 333 | |
| 334 | public boolean removeTask(int taskId, int flags) throws RemoteException; |
Amith Yamasani | 4b2e934 | 2011-03-31 12:38:53 -0700 | [diff] [blame] | 335 | |
Jeff Sharkey | a462079 | 2011-05-20 15:29:23 -0700 | [diff] [blame] | 336 | public void registerProcessObserver(IProcessObserver observer) throws RemoteException; |
| 337 | public void unregisterProcessObserver(IProcessObserver observer) throws RemoteException; |
| 338 | |
Dianne Hackborn | 6c418d5 | 2011-06-29 14:05:33 -0700 | [diff] [blame] | 339 | public boolean isIntentSenderTargetedToPackage(IIntentSender sender) throws RemoteException; |
| 340 | |
Dianne Hackborn | 1927ae8 | 2012-06-22 15:21:36 -0700 | [diff] [blame] | 341 | public boolean isIntentSenderAnActivity(IIntentSender sender) throws RemoteException; |
| 342 | |
Dianne Hackborn | 31ca854 | 2011-07-19 14:58:28 -0700 | [diff] [blame] | 343 | public void updatePersistentConfiguration(Configuration values) throws RemoteException; |
Dianne Hackborn | b437e09 | 2011-08-05 17:50:29 -0700 | [diff] [blame] | 344 | |
| 345 | public long[] getProcessPss(int[] pids) throws RemoteException; |
| 346 | |
Dianne Hackborn | 661cd52 | 2011-08-22 00:26:20 -0700 | [diff] [blame] | 347 | public void showBootMessage(CharSequence msg, boolean always) throws RemoteException; |
| 348 | |
Dianne Hackborn | 90c52de | 2011-09-23 12:57:44 -0700 | [diff] [blame] | 349 | public void dismissKeyguardOnNextActivity() throws RemoteException; |
| 350 | |
Adam Powell | dd8fab2 | 2012-03-22 17:47:27 -0700 | [diff] [blame] | 351 | public boolean targetTaskAffinityMatchesActivity(IBinder token, String destAffinity) |
| 352 | throws RemoteException; |
| 353 | |
| 354 | public boolean navigateUpTo(IBinder token, Intent target, int resultCode, Intent resultData) |
| 355 | throws RemoteException; |
| 356 | |
Dianne Hackborn | 5320eb8 | 2012-05-18 12:05:04 -0700 | [diff] [blame] | 357 | // This is not public because you need to be very careful in how you |
| 358 | // manage your activity to make sure it is always the uid you expect. |
| 359 | public int getLaunchedFromUid(IBinder activityToken) throws RemoteException; |
| 360 | |
Dianne Hackborn | 5dc5a00 | 2012-09-15 19:33:48 -0700 | [diff] [blame] | 361 | public void registerUserSwitchObserver(IUserSwitchObserver observer) throws RemoteException; |
| 362 | public void unregisterUserSwitchObserver(IUserSwitchObserver observer) throws RemoteException; |
| 363 | |
Dianne Hackborn | d4ac8d7 | 2012-09-27 23:20:10 -0700 | [diff] [blame] | 364 | public void requestBugReport() throws RemoteException; |
| 365 | |
Dianne Hackborn | 5fe7e2a | 2012-10-04 11:58:16 -0700 | [diff] [blame^] | 366 | public long inputDispatchingTimedOut(int pid, boolean aboveSystem) throws RemoteException; |
| 367 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 368 | /* |
| 369 | * Private non-Binder interfaces |
| 370 | */ |
| 371 | /* package */ boolean testIsSystemReady(); |
| 372 | |
| 373 | /** Information you can retrieve about a particular application. */ |
| 374 | public static class ContentProviderHolder implements Parcelable { |
| 375 | public final ProviderInfo info; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 376 | public IContentProvider provider; |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 377 | public IBinder connection; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 378 | public boolean noReleaseNeeded; |
| 379 | |
| 380 | public ContentProviderHolder(ProviderInfo _info) { |
| 381 | info = _info; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 382 | } |
| 383 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 384 | public int describeContents() { |
| 385 | return 0; |
| 386 | } |
| 387 | |
| 388 | public void writeToParcel(Parcel dest, int flags) { |
| 389 | info.writeToParcel(dest, 0); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 390 | if (provider != null) { |
| 391 | dest.writeStrongBinder(provider.asBinder()); |
| 392 | } else { |
| 393 | dest.writeStrongBinder(null); |
| 394 | } |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 395 | dest.writeStrongBinder(connection); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 396 | dest.writeInt(noReleaseNeeded ? 1:0); |
| 397 | } |
| 398 | |
| 399 | public static final Parcelable.Creator<ContentProviderHolder> CREATOR |
| 400 | = new Parcelable.Creator<ContentProviderHolder>() { |
| 401 | public ContentProviderHolder createFromParcel(Parcel source) { |
| 402 | return new ContentProviderHolder(source); |
| 403 | } |
| 404 | |
| 405 | public ContentProviderHolder[] newArray(int size) { |
| 406 | return new ContentProviderHolder[size]; |
| 407 | } |
| 408 | }; |
| 409 | |
| 410 | private ContentProviderHolder(Parcel source) { |
| 411 | info = ProviderInfo.CREATOR.createFromParcel(source); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 412 | provider = ContentProviderNative.asInterface( |
| 413 | source.readStrongBinder()); |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 414 | connection = source.readStrongBinder(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 415 | noReleaseNeeded = source.readInt() != 0; |
| 416 | } |
Svetoslav Ganov | 25872aa | 2012-02-03 19:19:09 -0800 | [diff] [blame] | 417 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 418 | |
Dianne Hackborn | 8f7f35e | 2010-02-25 18:48:12 -0800 | [diff] [blame] | 419 | /** Information returned after waiting for an activity start. */ |
| 420 | public static class WaitResult implements Parcelable { |
| 421 | public int result; |
| 422 | public boolean timeout; |
| 423 | public ComponentName who; |
| 424 | public long thisTime; |
| 425 | public long totalTime; |
| 426 | |
| 427 | public WaitResult() { |
| 428 | } |
| 429 | |
| 430 | public int describeContents() { |
| 431 | return 0; |
| 432 | } |
| 433 | |
| 434 | public void writeToParcel(Parcel dest, int flags) { |
| 435 | dest.writeInt(result); |
| 436 | dest.writeInt(timeout ? 1 : 0); |
| 437 | ComponentName.writeToParcel(who, dest); |
| 438 | dest.writeLong(thisTime); |
| 439 | dest.writeLong(totalTime); |
| 440 | } |
| 441 | |
| 442 | public static final Parcelable.Creator<WaitResult> CREATOR |
| 443 | = new Parcelable.Creator<WaitResult>() { |
| 444 | public WaitResult createFromParcel(Parcel source) { |
| 445 | return new WaitResult(source); |
| 446 | } |
| 447 | |
| 448 | public WaitResult[] newArray(int size) { |
| 449 | return new WaitResult[size]; |
| 450 | } |
| 451 | }; |
| 452 | |
| 453 | private WaitResult(Parcel source) { |
| 454 | result = source.readInt(); |
| 455 | timeout = source.readInt() != 0; |
| 456 | who = ComponentName.readFromParcel(source); |
| 457 | thisTime = source.readLong(); |
| 458 | totalTime = source.readLong(); |
| 459 | } |
| 460 | }; |
| 461 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 462 | String descriptor = "android.app.IActivityManager"; |
| 463 | |
| 464 | // Please keep these transaction codes the same -- they are also |
| 465 | // sent by C++ code. |
| 466 | int START_RUNNING_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION; |
Dan Egnor | 60d8762 | 2009-12-16 16:32:58 -0800 | [diff] [blame] | 467 | int HANDLE_APPLICATION_CRASH_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+1; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 468 | int START_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+2; |
| 469 | int UNHANDLED_BACK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+3; |
| 470 | int OPEN_CONTENT_URI_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+4; |
| 471 | |
| 472 | // Remaining non-native transaction codes. |
| 473 | int FINISH_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+10; |
| 474 | int REGISTER_RECEIVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+11; |
| 475 | int UNREGISTER_RECEIVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+12; |
| 476 | int BROADCAST_INTENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+13; |
| 477 | int UNBROADCAST_INTENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+14; |
| 478 | int FINISH_RECEIVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+15; |
| 479 | int ATTACH_APPLICATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+16; |
| 480 | int ACTIVITY_IDLE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+17; |
| 481 | int ACTIVITY_PAUSED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+18; |
| 482 | int ACTIVITY_STOPPED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+19; |
| 483 | int GET_CALLING_PACKAGE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+20; |
| 484 | int GET_CALLING_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+21; |
| 485 | int GET_TASKS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+22; |
| 486 | int MOVE_TASK_TO_FRONT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+23; |
| 487 | int MOVE_TASK_TO_BACK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+24; |
| 488 | int MOVE_TASK_BACKWARDS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+25; |
| 489 | int GET_TASK_FOR_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+26; |
| 490 | int REPORT_THUMBNAIL_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+27; |
| 491 | int GET_CONTENT_PROVIDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+28; |
| 492 | int PUBLISH_CONTENT_PROVIDERS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+29; |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 493 | int REF_CONTENT_PROVIDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+30; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 494 | int FINISH_SUB_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+31; |
Dianne Hackborn | dd9b82c | 2009-09-03 00:18:47 -0700 | [diff] [blame] | 495 | int GET_RUNNING_SERVICE_CONTROL_PANEL_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+32; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 496 | int START_SERVICE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+33; |
| 497 | int STOP_SERVICE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+34; |
| 498 | int BIND_SERVICE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+35; |
| 499 | int UNBIND_SERVICE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+36; |
| 500 | int PUBLISH_SERVICE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+37; |
Dianne Hackborn | ad9b3211 | 2012-09-17 15:35:01 -0700 | [diff] [blame] | 501 | int ACTIVITY_RESUMED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+38; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 502 | int GOING_TO_SLEEP_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+39; |
| 503 | int WAKING_UP_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+40; |
| 504 | int SET_DEBUG_APP_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+41; |
| 505 | int SET_ALWAYS_FINISH_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+42; |
| 506 | int START_INSTRUMENTATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+43; |
| 507 | int FINISH_INSTRUMENTATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+44; |
| 508 | int GET_CONFIGURATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+45; |
| 509 | int UPDATE_CONFIGURATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+46; |
| 510 | int STOP_SERVICE_TOKEN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+47; |
| 511 | int GET_ACTIVITY_CLASS_FOR_TOKEN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+48; |
| 512 | int GET_PACKAGE_FOR_TOKEN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+49; |
| 513 | int SET_PROCESS_LIMIT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+50; |
| 514 | int GET_PROCESS_LIMIT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+51; |
| 515 | int CHECK_PERMISSION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+52; |
| 516 | int CHECK_URI_PERMISSION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+53; |
| 517 | int GRANT_URI_PERMISSION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+54; |
| 518 | int REVOKE_URI_PERMISSION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+55; |
Dianne Hackborn | b06ea70 | 2009-07-13 13:07:51 -0700 | [diff] [blame] | 519 | int SET_ACTIVITY_CONTROLLER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+56; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 520 | int SHOW_WAITING_FOR_DEBUGGER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+57; |
| 521 | int SIGNAL_PERSISTENT_PROCESSES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+58; |
| 522 | int GET_RECENT_TASKS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+59; |
| 523 | int SERVICE_DONE_EXECUTING_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+60; |
| 524 | int ACTIVITY_DESTROYED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+61; |
| 525 | int GET_INTENT_SENDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+62; |
| 526 | int CANCEL_INTENT_SENDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+63; |
| 527 | int GET_PACKAGE_FOR_INTENT_SENDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+64; |
| 528 | int ENTER_SAFE_MODE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+65; |
| 529 | int START_NEXT_MATCHING_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+66; |
| 530 | int NOTE_WAKEUP_ALARM_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+67; |
| 531 | int REMOVE_CONTENT_PROVIDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+68; |
| 532 | int SET_REQUESTED_ORIENTATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+69; |
| 533 | int GET_REQUESTED_ORIENTATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+70; |
| 534 | int UNBIND_FINISHED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+71; |
| 535 | int SET_PROCESS_FOREGROUND_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+72; |
| 536 | int SET_SERVICE_FOREGROUND_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+73; |
| 537 | int MOVE_ACTIVITY_TASK_TO_BACK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+74; |
| 538 | int GET_MEMORY_INFO_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+75; |
| 539 | int GET_PROCESSES_IN_ERROR_STATE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+76; |
| 540 | int CLEAR_APP_DATA_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+77; |
Dianne Hackborn | 03abb81 | 2010-01-04 18:43:19 -0800 | [diff] [blame] | 541 | int FORCE_STOP_PACKAGE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+78; |
Suchi Amalapurapu | e99bb5f | 2010-03-19 14:36:49 -0700 | [diff] [blame] | 542 | int KILL_PIDS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+79; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 543 | int GET_SERVICES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+80; |
Dianne Hackborn | f26fd99 | 2011-04-08 18:14:09 -0700 | [diff] [blame] | 544 | int GET_TASK_THUMBNAILS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+81; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 545 | int GET_RUNNING_APP_PROCESSES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+82; |
| 546 | int GET_DEVICE_CONFIGURATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+83; |
| 547 | int PEEK_SERVICE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+84; |
The Android Open Source Project | f5b4b98 | 2009-03-05 20:00:43 -0800 | [diff] [blame] | 548 | int PROFILE_CONTROL_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+85; |
Dianne Hackborn | 55280a9 | 2009-05-07 15:53:46 -0700 | [diff] [blame] | 549 | int SHUTDOWN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+86; |
Dianne Hackborn | 95fc68f | 2009-05-19 18:37:45 -0700 | [diff] [blame] | 550 | int STOP_APP_SWITCHES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+87; |
| 551 | int RESUME_APP_SWITCHES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+88; |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 552 | int START_BACKUP_AGENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+89; |
| 553 | int BACKUP_AGENT_CREATED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+90; |
| 554 | int UNBIND_BACKUP_AGENT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+91; |
Christopher Tate | c4a07d1 | 2012-04-06 14:19:13 -0700 | [diff] [blame] | 555 | int GET_UID_FOR_INTENT_SENDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+92; |
Dianne Hackborn | 4120375 | 2012-08-31 14:05:51 -0700 | [diff] [blame] | 556 | int HANDLE_INCOMING_USER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+93; |
Dianne Hackborn | 15491c6 | 2012-09-19 10:59:14 -0700 | [diff] [blame] | 557 | int GET_TASK_TOP_THUMBNAIL_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+94; |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 558 | int KILL_APPLICATION_WITH_APPID_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+95; |
Dianne Hackborn | a6ddc8a | 2009-07-28 17:49:55 -0700 | [diff] [blame] | 559 | int CLOSE_SYSTEM_DIALOGS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+96; |
Dianne Hackborn | 3025ef3 | 2009-08-31 21:31:47 -0700 | [diff] [blame] | 560 | int GET_PROCESS_MEMORY_INFO_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+97; |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 561 | int KILL_APPLICATION_PROCESS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+98; |
Dianne Hackborn | fa82f22 | 2009-09-17 15:14:12 -0700 | [diff] [blame] | 562 | int START_ACTIVITY_INTENT_SENDER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+99; |
Dianne Hackborn | 3b3e145 | 2009-09-24 19:22:12 -0700 | [diff] [blame] | 563 | int OVERRIDE_PENDING_TRANSITION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+100; |
Dan Egnor | 60d8762 | 2009-12-16 16:32:58 -0800 | [diff] [blame] | 564 | int HANDLE_APPLICATION_WTF_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+101; |
Dianne Hackborn | 03abb81 | 2010-01-04 18:43:19 -0800 | [diff] [blame] | 565 | int KILL_BACKGROUND_PROCESSES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+102; |
Dianne Hackborn | 9327f4f | 2010-01-29 10:38:29 -0800 | [diff] [blame] | 566 | int IS_USER_A_MONKEY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+103; |
Dianne Hackborn | 8f7f35e | 2010-02-25 18:48:12 -0800 | [diff] [blame] | 567 | int START_ACTIVITY_AND_WAIT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+104; |
Dianne Hackborn | 061d58a | 2010-03-12 15:07:06 -0800 | [diff] [blame] | 568 | int WILL_ACTIVITY_BE_VISIBLE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+105; |
Dianne Hackborn | 2ccda4d | 2010-03-22 21:49:15 -0700 | [diff] [blame] | 569 | int START_ACTIVITY_WITH_CONFIG_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+106; |
Suchi Amalapurapu | f7f5dda | 2010-03-23 10:34:28 -0700 | [diff] [blame] | 570 | int GET_RUNNING_EXTERNAL_APPLICATIONS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+107; |
Dianne Hackborn | 860755f | 2010-06-03 18:47:52 -0700 | [diff] [blame] | 571 | int FINISH_HEAVY_WEIGHT_APP_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+108; |
Brad Fitzpatrick | 438d059 | 2010-06-10 12:19:19 -0700 | [diff] [blame] | 572 | int HANDLE_APPLICATION_STRICT_MODE_VIOLATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+109; |
Daniel Sandler | 69a4817 | 2010-06-23 16:29:36 -0400 | [diff] [blame] | 573 | int IS_IMMERSIVE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+110; |
| 574 | int SET_IMMERSIVE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+111; |
| 575 | int IS_TOP_ACTIVITY_IMMERSIVE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+112; |
Dianne Hackborn | 9d39d0c | 2010-06-24 15:57:42 -0700 | [diff] [blame] | 576 | int CRASH_APPLICATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+113; |
Dianne Hackborn | cca1f0e | 2010-09-26 18:34:53 -0700 | [diff] [blame] | 577 | int GET_PROVIDER_MIME_TYPE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+114; |
| 578 | int NEW_URI_PERMISSION_OWNER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+115; |
| 579 | int GRANT_URI_PERMISSION_FROM_OWNER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+116; |
| 580 | int REVOKE_URI_PERMISSION_FROM_OWNER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+117; |
Dianne Hackborn | 90f4aaf | 2010-09-27 14:58:44 -0700 | [diff] [blame] | 581 | int CHECK_GRANT_URI_PERMISSION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+118; |
| 582 | int DUMP_HEAP_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+119; |
Dianne Hackborn | 621e17d | 2010-11-22 15:59:56 -0800 | [diff] [blame] | 583 | int START_ACTIVITIES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+120; |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 584 | int IS_USER_RUNNING_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+121; |
Dianne Hackborn | 4eba96b | 2011-01-21 13:34:36 -0800 | [diff] [blame] | 585 | int ACTIVITY_SLEPT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+122; |
Dianne Hackborn | 0f1de9a | 2011-05-11 17:34:49 -0700 | [diff] [blame] | 586 | int GET_FRONT_ACTIVITY_SCREEN_COMPAT_MODE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+123; |
| 587 | int SET_FRONT_ACTIVITY_SCREEN_COMPAT_MODE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+124; |
| 588 | int GET_PACKAGE_SCREEN_COMPAT_MODE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+125; |
| 589 | int SET_PACKAGE_SCREEN_COMPAT_MODE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+126; |
Dianne Hackborn | 36cd41f | 2011-05-25 21:00:46 -0700 | [diff] [blame] | 590 | int GET_PACKAGE_ASK_SCREEN_COMPAT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+127; |
| 591 | int SET_PACKAGE_ASK_SCREEN_COMPAT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+128; |
Dianne Hackborn | 36f80f3 | 2011-05-31 18:26:45 -0700 | [diff] [blame] | 592 | int SWITCH_USER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+129; |
| 593 | int REMOVE_SUB_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+130; |
| 594 | int REMOVE_TASK_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+131; |
| 595 | int REGISTER_PROCESS_OBSERVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+132; |
| 596 | int UNREGISTER_PROCESS_OBSERVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+133; |
Dianne Hackborn | 6c418d5 | 2011-06-29 14:05:33 -0700 | [diff] [blame] | 597 | int IS_INTENT_SENDER_TARGETED_TO_PACKAGE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+134; |
Dianne Hackborn | 31ca854 | 2011-07-19 14:58:28 -0700 | [diff] [blame] | 598 | int UPDATE_PERSISTENT_CONFIGURATION_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+135; |
Dianne Hackborn | b437e09 | 2011-08-05 17:50:29 -0700 | [diff] [blame] | 599 | int GET_PROCESS_PSS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+136; |
Dianne Hackborn | 661cd52 | 2011-08-22 00:26:20 -0700 | [diff] [blame] | 600 | int SHOW_BOOT_MESSAGE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+137; |
Dianne Hackborn | 90c52de | 2011-09-23 12:57:44 -0700 | [diff] [blame] | 601 | int DISMISS_KEYGUARD_ON_NEXT_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+138; |
Dianne Hackborn | e4d4fbc | 2011-11-08 11:53:28 -0800 | [diff] [blame] | 602 | int KILL_ALL_BACKGROUND_PROCESSES_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+139; |
Svetoslav Ganov | 25872aa | 2012-02-03 19:19:09 -0800 | [diff] [blame] | 603 | int GET_CONTENT_PROVIDER_EXTERNAL_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+140; |
| 604 | int REMOVE_CONTENT_PROVIDER_EXTERNAL_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+141; |
Dianne Hackborn | 27ff913 | 2012-03-06 14:57:58 -0800 | [diff] [blame] | 605 | int GET_MY_MEMORY_STATE_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+142; |
Jeff Sharkey | b9a0701 | 2012-03-22 17:00:04 -0700 | [diff] [blame] | 606 | int KILL_PROCESSES_BELOW_FOREGROUND_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+143; |
Amith Yamasani | 52f1d75 | 2012-03-28 18:19:29 -0700 | [diff] [blame] | 607 | int GET_CURRENT_USER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+144; |
Adam Powell | dd8fab2 | 2012-03-22 17:47:27 -0700 | [diff] [blame] | 608 | int TARGET_TASK_AFFINITY_MATCHES_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+145; |
| 609 | int NAVIGATE_UP_TO_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+146; |
Dianne Hackborn | ff5b158 | 2012-04-12 17:24:07 -0700 | [diff] [blame] | 610 | int SET_LOCK_SCREEN_SHOWN_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+147; |
Dianne Hackborn | ecc5a9c | 2012-04-26 18:56:09 -0700 | [diff] [blame] | 611 | int FINISH_ACTIVITY_AFFINITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+148; |
Dianne Hackborn | 5320eb8 | 2012-05-18 12:05:04 -0700 | [diff] [blame] | 612 | int GET_LAUNCHED_FROM_UID_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+149; |
Dianne Hackborn | 6ae8d18 | 2012-05-23 13:12:42 -0700 | [diff] [blame] | 613 | int UNSTABLE_PROVIDER_DIED_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+150; |
Dianne Hackborn | 1927ae8 | 2012-06-22 15:21:36 -0700 | [diff] [blame] | 614 | int IS_INTENT_SENDER_AN_ACTIVITY_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+151; |
Amith Yamasani | 8264408 | 2012-08-03 13:09:11 -0700 | [diff] [blame] | 615 | int START_ACTIVITY_AS_USER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+152; |
Dianne Hackborn | 80a4af2 | 2012-08-27 19:18:31 -0700 | [diff] [blame] | 616 | int STOP_USER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+153; |
Dianne Hackborn | 5dc5a00 | 2012-09-15 19:33:48 -0700 | [diff] [blame] | 617 | int REGISTER_USER_SWITCH_OBSERVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+154; |
| 618 | int UNREGISTER_USER_SWITCH_OBSERVER_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+155; |
Dianne Hackborn | c72fc67 | 2012-09-20 13:12:03 -0700 | [diff] [blame] | 619 | int GET_RUNNING_USER_IDS_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+156; |
Dianne Hackborn | d4ac8d7 | 2012-09-27 23:20:10 -0700 | [diff] [blame] | 620 | int REQUEST_BUG_REPORT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+157; |
Dianne Hackborn | 5fe7e2a | 2012-10-04 11:58:16 -0700 | [diff] [blame^] | 621 | int INPUT_DISPATCHING_TIMED_OUT_TRANSACTION = IBinder.FIRST_CALL_TRANSACTION+158; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 622 | } |