Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.app; |
| 18 | |
| 19 | import android.app.IInstrumentationWatcher; |
| 20 | import android.app.IUiAutomationConnection; |
| 21 | import android.app.ProfilerInfo; |
| 22 | import android.app.ResultInfo; |
Andrii Kulian | 446e824 | 2017-10-26 15:17:29 -0700 | [diff] [blame] | 23 | import android.app.servertransaction.ClientTransaction; |
Felipe Leme | a4f39cd | 2019-02-19 15:08:59 -0800 | [diff] [blame] | 24 | import android.content.AutofillOptions; |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 25 | import android.content.ComponentName; |
Felipe Leme | 326f15a | 2019-02-19 09:42:24 -0800 | [diff] [blame] | 26 | import android.content.ContentCaptureOptions; |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 27 | import android.content.IIntentReceiver; |
| 28 | import android.content.Intent; |
| 29 | import android.content.pm.ActivityInfo; |
| 30 | import android.content.pm.ApplicationInfo; |
Dianne Hackborn | 3f7c9f2 | 2017-04-04 15:36:33 -0700 | [diff] [blame] | 31 | import android.content.pm.ParceledListSlice; |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 32 | import android.content.pm.ProviderInfo; |
| 33 | import android.content.pm.ServiceInfo; |
| 34 | import android.content.res.CompatibilityInfo; |
| 35 | import android.content.res.Configuration; |
| 36 | import android.net.Uri; |
| 37 | import android.os.Bundle; |
| 38 | import android.os.Debug; |
| 39 | import android.os.IBinder; |
| 40 | import android.os.IInterface; |
| 41 | import android.os.ParcelFileDescriptor; |
| 42 | import android.os.PersistableBundle; |
Makoto Onuki | 2c6657f | 2018-06-06 15:24:02 -0700 | [diff] [blame] | 43 | import android.os.RemoteCallback; |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 44 | |
| 45 | import com.android.internal.app.IVoiceInteractor; |
| 46 | import com.android.internal.content.ReferrerIntent; |
| 47 | |
| 48 | import java.util.List; |
| 49 | import java.util.Map; |
| 50 | |
| 51 | /** |
| 52 | * System private API for communicating with the application. This is given to |
| 53 | * the activity manager by an application when it starts up, for the activity |
| 54 | * manager to tell the application about things it needs to do. |
| 55 | * |
| 56 | * {@hide} |
| 57 | */ |
| 58 | oneway interface IApplicationThread { |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 59 | void scheduleReceiver(in Intent intent, in ActivityInfo info, |
| 60 | in CompatibilityInfo compatInfo, |
| 61 | int resultCode, in String data, in Bundle extras, boolean sync, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 62 | int sendingUser, int processState); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 63 | void scheduleCreateService(IBinder token, in ServiceInfo info, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 64 | in CompatibilityInfo compatInfo, int processState); |
| 65 | void scheduleStopService(IBinder token); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 66 | void bindApplication(in String packageName, in ApplicationInfo info, |
| 67 | in List<ProviderInfo> providers, in ComponentName testName, |
| 68 | in ProfilerInfo profilerInfo, in Bundle testArguments, |
| 69 | IInstrumentationWatcher testWatcher, IUiAutomationConnection uiAutomationConnection, |
| 70 | int debugMode, boolean enableBinderTracking, boolean trackAllocation, |
| 71 | boolean restrictedBackupMode, boolean persistent, in Configuration config, |
| 72 | in CompatibilityInfo compatInfo, in Map services, |
Felipe Leme | a4f39cd | 2019-02-19 15:08:59 -0800 | [diff] [blame] | 73 | in Bundle coreSettings, in String buildSerial, in AutofillOptions autofillOptions, |
Felipe Leme | 326f15a | 2019-02-19 09:42:24 -0800 | [diff] [blame] | 74 | in ContentCaptureOptions contentCaptureOptions); |
Torne (Richard Coles) | 466cbe4 | 2017-05-31 14:09:14 -0400 | [diff] [blame] | 75 | void runIsolatedEntryPoint(in String entryPoint, in String[] entryPointArgs); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 76 | void scheduleExit(); |
Dianne Hackborn | 3f7c9f2 | 2017-04-04 15:36:33 -0700 | [diff] [blame] | 77 | void scheduleServiceArgs(IBinder token, in ParceledListSlice args); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 78 | void updateTimeZone(); |
| 79 | void processInBackground(); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 80 | void scheduleBindService(IBinder token, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 81 | in Intent intent, boolean rebind, int processState); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 82 | void scheduleUnbindService(IBinder token, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 83 | in Intent intent); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 84 | void dumpService(in ParcelFileDescriptor fd, IBinder servicetoken, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 85 | in String[] args); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 86 | void scheduleRegisteredReceiver(IIntentReceiver receiver, in Intent intent, |
| 87 | int resultCode, in String data, in Bundle extras, boolean ordered, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 88 | boolean sticky, int sendingUser, int processState); |
| 89 | void scheduleLowMemory(); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 90 | void scheduleSleeping(IBinder token, boolean sleeping); |
| 91 | void profilerControl(boolean start, in ProfilerInfo profilerInfo, int profileType); |
| 92 | void setSchedulingGroup(int group); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 93 | void scheduleCreateBackupAgent(in ApplicationInfo app, in CompatibilityInfo compatInfo, |
Ruslan Tkhakokhov | 063180f | 2019-01-28 20:29:46 +0000 | [diff] [blame] | 94 | int backupMode, int userId); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 95 | void scheduleDestroyBackupAgent(in ApplicationInfo app, |
Annie Meng | d582787 | 2019-01-30 20:28:57 +0000 | [diff] [blame] | 96 | in CompatibilityInfo compatInfo, int userId); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 97 | void scheduleOnNewActivityOptions(IBinder token, in Bundle options); |
| 98 | void scheduleSuicide(); |
| 99 | void dispatchPackageBroadcast(int cmd, in String[] packages); |
| 100 | void scheduleCrash(in String msg); |
Christopher Ferris | 8d652f8 | 2017-04-11 16:29:18 -0700 | [diff] [blame] | 101 | void dumpHeap(boolean managed, boolean mallocInfo, boolean runGc, in String path, |
Makoto Onuki | 2c6657f | 2018-06-06 15:24:02 -0700 | [diff] [blame] | 102 | in ParcelFileDescriptor fd, in RemoteCallback finishCallback); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 103 | void dumpActivity(in ParcelFileDescriptor fd, IBinder servicetoken, in String prefix, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 104 | in String[] args); |
| 105 | void clearDnsCache(); |
Irina Dumitrescu | 18622d3 | 2018-12-05 16:19:47 +0000 | [diff] [blame] | 106 | void updateHttpProxy(); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 107 | void setCoreSettings(in Bundle coreSettings); |
| 108 | void updatePackageCompatibilityInfo(in String pkg, in CompatibilityInfo info); |
| 109 | void scheduleTrimMemory(int level); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 110 | void dumpMemInfo(in ParcelFileDescriptor fd, in Debug.MemoryInfo mem, boolean checkin, |
| 111 | boolean dumpInfo, boolean dumpDalvik, boolean dumpSummaryOnly, boolean dumpUnreachable, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 112 | in String[] args); |
Kweku Adams | 983829f | 2017-12-06 14:53:50 -0800 | [diff] [blame] | 113 | void dumpMemInfoProto(in ParcelFileDescriptor fd, in Debug.MemoryInfo mem, |
| 114 | boolean dumpInfo, boolean dumpDalvik, boolean dumpSummaryOnly, boolean dumpUnreachable, |
| 115 | in String[] args); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 116 | void dumpGfxInfo(in ParcelFileDescriptor fd, in String[] args); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 117 | void dumpProvider(in ParcelFileDescriptor fd, IBinder servicetoken, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 118 | in String[] args); |
| 119 | void dumpDbInfo(in ParcelFileDescriptor fd, in String[] args); |
| 120 | void unstableProviderDied(IBinder provider); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 121 | void requestAssistContextExtras(IBinder activityToken, IBinder requestToken, |
Svet Ganov | fd31f85 | 2017-04-26 15:54:27 -0700 | [diff] [blame] | 122 | int requestType, int sessionId, int flags); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 123 | void scheduleTranslucentConversionComplete(IBinder token, boolean timeout); |
| 124 | void setProcessState(int state); |
| 125 | void scheduleInstallProvider(in ProviderInfo provider); |
Neil Fuller | b7146fe | 2016-11-15 16:52:15 +0000 | [diff] [blame] | 126 | void updateTimePrefs(int timeFormatPreference); |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 127 | void scheduleEnterAnimationComplete(IBinder token); |
| 128 | void notifyCleartextNetwork(in byte[] firstPacket); |
| 129 | void startBinderTracking(); |
| 130 | void stopBinderTrackingAndDump(in ParcelFileDescriptor fd); |
Sudheer Shanka | cc6418f | 2016-10-13 12:03:44 -0700 | [diff] [blame] | 131 | void scheduleLocalVoiceInteractionStarted(IBinder token, |
Sudheer Shanka | 3052f85 | 2016-11-14 18:42:20 -0800 | [diff] [blame] | 132 | IVoiceInteractor voiceInteractor); |
| 133 | void handleTrustStorageUpdate(); |
| 134 | void attachAgent(String path); |
MÃ¥rten Kongstad | 49a4a1d | 2017-01-12 08:36:37 +0100 | [diff] [blame] | 135 | void scheduleApplicationInfoChanged(in ApplicationInfo ai); |
Sudheer Shanka | 84a4895 | 2017-03-08 18:19:01 -0800 | [diff] [blame] | 136 | void setNetworkBlockSeq(long procStateSeq); |
Andrii Kulian | 446e824 | 2017-10-26 15:17:29 -0700 | [diff] [blame] | 137 | void scheduleTransaction(in ClientTransaction transaction); |
Neil Fuller | b7146fe | 2016-11-15 16:52:15 +0000 | [diff] [blame] | 138 | } |