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