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