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