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