xref: /aosp_15_r20/prebuilts/sdk/36/system-server/api/android-non-updatable.txt (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0
2*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server {
3*344a7f5eSAndroid Build Coastguard Worker
4*344a7f5eSAndroid Build Coastguard Worker  public final class LocalManagerRegistry {
5*344a7f5eSAndroid Build Coastguard Worker    method public static <T> void addManager(@NonNull Class<T>, @NonNull T);
6*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public static <T> T getManager(@NonNull Class<T>);
7*344a7f5eSAndroid Build Coastguard Worker  }
8*344a7f5eSAndroid Build Coastguard Worker
9*344a7f5eSAndroid Build Coastguard Worker  public abstract class SystemService {
10*344a7f5eSAndroid Build Coastguard Worker    ctor public SystemService(@NonNull android.content.Context);
11*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public final android.content.Context getContext();
12*344a7f5eSAndroid Build Coastguard Worker    method public boolean isUserSupported(@NonNull com.android.server.SystemService.TargetUser);
13*344a7f5eSAndroid Build Coastguard Worker    method public void onBootPhase(int);
14*344a7f5eSAndroid Build Coastguard Worker    method public abstract void onStart();
15*344a7f5eSAndroid Build Coastguard Worker    method public void onUserStarting(@NonNull com.android.server.SystemService.TargetUser);
16*344a7f5eSAndroid Build Coastguard Worker    method public void onUserStopped(@NonNull com.android.server.SystemService.TargetUser);
17*344a7f5eSAndroid Build Coastguard Worker    method public void onUserStopping(@NonNull com.android.server.SystemService.TargetUser);
18*344a7f5eSAndroid Build Coastguard Worker    method public void onUserSwitching(@Nullable com.android.server.SystemService.TargetUser, @NonNull com.android.server.SystemService.TargetUser);
19*344a7f5eSAndroid Build Coastguard Worker    method public void onUserUnlocked(@NonNull com.android.server.SystemService.TargetUser);
20*344a7f5eSAndroid Build Coastguard Worker    method public void onUserUnlocking(@NonNull com.android.server.SystemService.TargetUser);
21*344a7f5eSAndroid Build Coastguard Worker    method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder);
22*344a7f5eSAndroid Build Coastguard Worker    method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder, boolean);
23*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_ACTIVITY_MANAGER_READY = 550; // 0x226
24*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_BOOT_COMPLETED = 1000; // 0x3e8
25*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_DEVICE_SPECIFIC_SERVICES_READY = 520; // 0x208
26*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_LOCK_SETTINGS_READY = 480; // 0x1e0
27*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_SYSTEM_SERVICES_READY = 500; // 0x1f4
28*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_THIRD_PARTY_APPS_CAN_START = 600; // 0x258
29*344a7f5eSAndroid Build Coastguard Worker    field public static final int PHASE_WAIT_FOR_DEFAULT_DISPLAY = 100; // 0x64
30*344a7f5eSAndroid Build Coastguard Worker  }
31*344a7f5eSAndroid Build Coastguard Worker
32*344a7f5eSAndroid Build Coastguard Worker  public static final class SystemService.TargetUser {
33*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.os.UserHandle getUserHandle();
34*344a7f5eSAndroid Build Coastguard Worker  }
35*344a7f5eSAndroid Build Coastguard Worker
36*344a7f5eSAndroid Build Coastguard Worker}
37*344a7f5eSAndroid Build Coastguard Worker
38*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.am {
39*344a7f5eSAndroid Build Coastguard Worker
40*344a7f5eSAndroid Build Coastguard Worker  public interface ActivityManagerLocal {
41*344a7f5eSAndroid Build Coastguard Worker    method public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull android.os.IBinder, @NonNull String, @NonNull String, int) throws android.os.RemoteException;
42*344a7f5eSAndroid Build Coastguard Worker    method public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull android.os.IBinder, @NonNull String, @NonNull String, @NonNull android.content.Context.BindServiceFlags) throws android.os.RemoteException;
43*344a7f5eSAndroid Build Coastguard Worker    method @Deprecated public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull String, @NonNull String, int) throws android.os.RemoteException;
44*344a7f5eSAndroid Build Coastguard Worker    method public boolean canStartForegroundService(int, int, @NonNull String);
45*344a7f5eSAndroid Build Coastguard Worker    method public void killSdkSandboxClientAppProcess(@NonNull android.os.IBinder);
46*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.content.ComponentName startSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String) throws android.os.RemoteException;
47*344a7f5eSAndroid Build Coastguard Worker    method public boolean stopSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String);
48*344a7f5eSAndroid Build Coastguard Worker  }
49*344a7f5eSAndroid Build Coastguard Worker
50*344a7f5eSAndroid Build Coastguard Worker}
51*344a7f5eSAndroid Build Coastguard Worker
52*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.appop {
53*344a7f5eSAndroid Build Coastguard Worker
54*344a7f5eSAndroid Build Coastguard Worker  public interface AppOpsManagerLocal {
55*344a7f5eSAndroid Build Coastguard Worker    method public boolean isUidInForeground(int);
56*344a7f5eSAndroid Build Coastguard Worker  }
57*344a7f5eSAndroid Build Coastguard Worker
58*344a7f5eSAndroid Build Coastguard Worker}
59*344a7f5eSAndroid Build Coastguard Worker
60*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.pm {
61*344a7f5eSAndroid Build Coastguard Worker
62*344a7f5eSAndroid Build Coastguard Worker  public interface PackageManagerLocal {
63*344a7f5eSAndroid Build Coastguard Worker    method public void reconcileSdkData(@Nullable String, @NonNull String, @NonNull java.util.List<java.lang.String>, int, int, int, @NonNull String, int) throws java.io.IOException;
64*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot();
65*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(int, @NonNull android.os.UserHandle);
66*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.pm.PackageManagerLocal.UnfilteredSnapshot withUnfilteredSnapshot();
67*344a7f5eSAndroid Build Coastguard Worker    field public static final int FLAG_STORAGE_CE = 2; // 0x2
68*344a7f5eSAndroid Build Coastguard Worker    field public static final int FLAG_STORAGE_DE = 1; // 0x1
69*344a7f5eSAndroid Build Coastguard Worker  }
70*344a7f5eSAndroid Build Coastguard Worker
71*344a7f5eSAndroid Build Coastguard Worker  public static interface PackageManagerLocal.FilteredSnapshot extends java.lang.AutoCloseable {
72*344a7f5eSAndroid Build Coastguard Worker    method public void close();
73*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public com.android.server.pm.pkg.PackageState getPackageState(@NonNull String);
74*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates();
75*344a7f5eSAndroid Build Coastguard Worker  }
76*344a7f5eSAndroid Build Coastguard Worker
77*344a7f5eSAndroid Build Coastguard Worker  public static interface PackageManagerLocal.UnfilteredSnapshot extends java.lang.AutoCloseable {
78*344a7f5eSAndroid Build Coastguard Worker    method public void close();
79*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot filtered(int, @NonNull android.os.UserHandle);
80*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates();
81*344a7f5eSAndroid Build Coastguard Worker  }
82*344a7f5eSAndroid Build Coastguard Worker
83*344a7f5eSAndroid Build Coastguard Worker}
84*344a7f5eSAndroid Build Coastguard Worker
85*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.pm.pkg {
86*344a7f5eSAndroid Build Coastguard Worker
87*344a7f5eSAndroid Build Coastguard Worker  public interface AndroidPackage {
88*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getAppComponentFactory();
89*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getApplicationClassName();
90*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getBackupAgentName();
91*344a7f5eSAndroid Build Coastguard Worker    method @DrawableRes public int getBannerResourceId();
92*344a7f5eSAndroid Build Coastguard Worker    method public int getBaseRevisionCode();
93*344a7f5eSAndroid Build Coastguard Worker    method public int getCategory();
94*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getClassLoaderName();
95*344a7f5eSAndroid Build Coastguard Worker    method @Dimension(unit=android.annotation.Dimension.DP) public int getCompatibleWidthLimitDp();
96*344a7f5eSAndroid Build Coastguard Worker    method @XmlRes public int getDataExtractionRulesResourceId();
97*344a7f5eSAndroid Build Coastguard Worker    method @StringRes public int getDescriptionResourceId();
98*344a7f5eSAndroid Build Coastguard Worker    method @XmlRes public int getFullBackupContentResourceId();
99*344a7f5eSAndroid Build Coastguard Worker    method public int getGwpAsanMode();
100*344a7f5eSAndroid Build Coastguard Worker    method @DrawableRes public int getIconResourceId();
101*344a7f5eSAndroid Build Coastguard Worker    method @StringRes public int getLabelResourceId();
102*344a7f5eSAndroid Build Coastguard Worker    method @Dimension(unit=android.annotation.Dimension.DP) public int getLargestWidthLimitDp();
103*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.lang.String> getLibraryNames();
104*344a7f5eSAndroid Build Coastguard Worker    method @XmlRes public int getLocaleConfigResourceId();
105*344a7f5eSAndroid Build Coastguard Worker    method @DrawableRes public int getLogoResourceId();
106*344a7f5eSAndroid Build Coastguard Worker    method public long getLongVersionCode();
107*344a7f5eSAndroid Build Coastguard Worker    method public float getMaxAspectRatio();
108*344a7f5eSAndroid Build Coastguard Worker    method public float getMinAspectRatio();
109*344a7f5eSAndroid Build Coastguard Worker    method public int getNativeHeapZeroInitialized();
110*344a7f5eSAndroid Build Coastguard Worker    method @XmlRes public int getNetworkSecurityConfigResourceId();
111*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getRequiredAccountType();
112*344a7f5eSAndroid Build Coastguard Worker    method @Dimension(unit=android.annotation.Dimension.DP) public int getRequiresSmallestWidthDp();
113*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getRestrictedAccountType();
114*344a7f5eSAndroid Build Coastguard Worker    method @DrawableRes public int getRoundIconResourceId();
115*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSdkLibraryName();
116*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSharedUserId();
117*344a7f5eSAndroid Build Coastguard Worker    method @StringRes public int getSharedUserLabelResourceId();
118*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getSplits();
119*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getStaticSharedLibraryName();
120*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.UUID getStorageUuid();
121*344a7f5eSAndroid Build Coastguard Worker    method public int getTargetSdkVersion();
122*344a7f5eSAndroid Build Coastguard Worker    method @StyleRes public int getThemeResourceId();
123*344a7f5eSAndroid Build Coastguard Worker    method public int getUiOptions();
124*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getVersionName();
125*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getZygotePreloadName();
126*344a7f5eSAndroid Build Coastguard Worker    method public boolean is32BitAbiPreferred();
127*344a7f5eSAndroid Build Coastguard Worker    method public boolean isAllowAudioPlaybackCapture();
128*344a7f5eSAndroid Build Coastguard Worker    method public boolean isAllowNativeHeapPointerTagging();
129*344a7f5eSAndroid Build Coastguard Worker    method public boolean isAnyDensity();
130*344a7f5eSAndroid Build Coastguard Worker    method public boolean isAttributionsUserVisible();
131*344a7f5eSAndroid Build Coastguard Worker    method public boolean isBackupAllowed();
132*344a7f5eSAndroid Build Coastguard Worker    method public boolean isBackupInForeground();
133*344a7f5eSAndroid Build Coastguard Worker    method public boolean isClearUserDataAllowed();
134*344a7f5eSAndroid Build Coastguard Worker    method public boolean isClearUserDataOnFailedRestoreAllowed();
135*344a7f5eSAndroid Build Coastguard Worker    method public boolean isCleartextTrafficAllowed();
136*344a7f5eSAndroid Build Coastguard Worker    method public boolean isCoreApp();
137*344a7f5eSAndroid Build Coastguard Worker    method public boolean isCrossProfile();
138*344a7f5eSAndroid Build Coastguard Worker    method public boolean isDebuggable();
139*344a7f5eSAndroid Build Coastguard Worker    method public boolean isDeclaredHavingCode();
140*344a7f5eSAndroid Build Coastguard Worker    method public boolean isDefaultToDeviceProtectedStorage();
141*344a7f5eSAndroid Build Coastguard Worker    method public boolean isDirectBootAware();
142*344a7f5eSAndroid Build Coastguard Worker    method public boolean isExtraLargeScreensSupported();
143*344a7f5eSAndroid Build Coastguard Worker    method public boolean isExtractNativeLibrariesRequested();
144*344a7f5eSAndroid Build Coastguard Worker    method public boolean isFactoryTest();
145*344a7f5eSAndroid Build Coastguard Worker    method public boolean isForceQueryable();
146*344a7f5eSAndroid Build Coastguard Worker    method public boolean isFullBackupOnly();
147*344a7f5eSAndroid Build Coastguard Worker    method public boolean isHardwareAccelerated();
148*344a7f5eSAndroid Build Coastguard Worker    method public boolean isIsolatedSplitLoading();
149*344a7f5eSAndroid Build Coastguard Worker    method public boolean isKillAfterRestoreAllowed();
150*344a7f5eSAndroid Build Coastguard Worker    method public boolean isLargeHeap();
151*344a7f5eSAndroid Build Coastguard Worker    method public boolean isLargeScreensSupported();
152*344a7f5eSAndroid Build Coastguard Worker    method public boolean isLeavingSharedUser();
153*344a7f5eSAndroid Build Coastguard Worker    method public boolean isMultiArch();
154*344a7f5eSAndroid Build Coastguard Worker    method public boolean isNativeLibraryRootRequiresIsa();
155*344a7f5eSAndroid Build Coastguard Worker    method public boolean isNonSdkApiRequested();
156*344a7f5eSAndroid Build Coastguard Worker    method public boolean isNormalScreensSupported();
157*344a7f5eSAndroid Build Coastguard Worker    method public boolean isOnBackInvokedCallbackEnabled();
158*344a7f5eSAndroid Build Coastguard Worker    method public boolean isPersistent();
159*344a7f5eSAndroid Build Coastguard Worker    method public boolean isProfileable();
160*344a7f5eSAndroid Build Coastguard Worker    method public boolean isProfileableByShell();
161*344a7f5eSAndroid Build Coastguard Worker    method public boolean isRequestLegacyExternalStorage();
162*344a7f5eSAndroid Build Coastguard Worker    method public boolean isRequiredForAllUsers();
163*344a7f5eSAndroid Build Coastguard Worker    method public boolean isResetEnabledSettingsOnAppDataCleared();
164*344a7f5eSAndroid Build Coastguard Worker    method public boolean isResourceOverlay();
165*344a7f5eSAndroid Build Coastguard Worker    method public boolean isRestoreAnyVersion();
166*344a7f5eSAndroid Build Coastguard Worker    method public boolean isRtlSupported();
167*344a7f5eSAndroid Build Coastguard Worker    method public boolean isSaveStateDisallowed();
168*344a7f5eSAndroid Build Coastguard Worker    method public boolean isSignedWithPlatformKey();
169*344a7f5eSAndroid Build Coastguard Worker    method public boolean isSmallScreensSupported();
170*344a7f5eSAndroid Build Coastguard Worker    method public boolean isTaskReparentingAllowed();
171*344a7f5eSAndroid Build Coastguard Worker    method public boolean isTestOnly();
172*344a7f5eSAndroid Build Coastguard Worker    method public boolean isUseEmbeddedDex();
173*344a7f5eSAndroid Build Coastguard Worker    method public boolean isUserDataFragile();
174*344a7f5eSAndroid Build Coastguard Worker    method public boolean isVmSafeMode();
175*344a7f5eSAndroid Build Coastguard Worker  }
176*344a7f5eSAndroid Build Coastguard Worker
177*344a7f5eSAndroid Build Coastguard Worker  public interface AndroidPackageSplit {
178*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getClassLoaderName();
179*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getDependencies();
180*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getName();
181*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getPath();
182*344a7f5eSAndroid Build Coastguard Worker    method public int getRevisionCode();
183*344a7f5eSAndroid Build Coastguard Worker    method public boolean isHasCode();
184*344a7f5eSAndroid Build Coastguard Worker  }
185*344a7f5eSAndroid Build Coastguard Worker
186*344a7f5eSAndroid Build Coastguard Worker  public interface PackageState {
187*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public com.android.server.pm.pkg.AndroidPackage getAndroidPackage();
188*344a7f5eSAndroid Build Coastguard Worker    method public int getAppId();
189*344a7f5eSAndroid Build Coastguard Worker    method public int getHiddenApiEnforcementPolicy();
190*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String getPackageName();
191*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getPrimaryCpuAbi();
192*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSeInfo();
193*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getSecondaryCpuAbi();
194*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getSharedLibraryDependencies();
195*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle);
196*344a7f5eSAndroid Build Coastguard Worker    method public boolean isApex();
197*344a7f5eSAndroid Build Coastguard Worker    method public boolean isPrivileged();
198*344a7f5eSAndroid Build Coastguard Worker    method public boolean isSystem();
199*344a7f5eSAndroid Build Coastguard Worker    method public boolean isUpdatedSystemApp();
200*344a7f5eSAndroid Build Coastguard Worker  }
201*344a7f5eSAndroid Build Coastguard Worker
202*344a7f5eSAndroid Build Coastguard Worker  public interface PackageUserState {
203*344a7f5eSAndroid Build Coastguard Worker    method public long getFirstInstallTimeMillis();
204*344a7f5eSAndroid Build Coastguard Worker    method public boolean isInstalled();
205*344a7f5eSAndroid Build Coastguard Worker  }
206*344a7f5eSAndroid Build Coastguard Worker
207*344a7f5eSAndroid Build Coastguard Worker  public interface SharedLibrary {
208*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<java.lang.String> getAllCodePaths();
209*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.content.pm.VersionedPackage getDeclaringPackage();
210*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getDependencies();
211*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.List<android.content.pm.VersionedPackage> getDependentPackages();
212*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getName();
213*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getPackageName();
214*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getPath();
215*344a7f5eSAndroid Build Coastguard Worker    method public int getType();
216*344a7f5eSAndroid Build Coastguard Worker    method public long getVersion();
217*344a7f5eSAndroid Build Coastguard Worker    method public boolean isNative();
218*344a7f5eSAndroid Build Coastguard Worker  }
219*344a7f5eSAndroid Build Coastguard Worker
220*344a7f5eSAndroid Build Coastguard Worker}
221*344a7f5eSAndroid Build Coastguard Worker
222*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.role {
223*344a7f5eSAndroid Build Coastguard Worker
224*344a7f5eSAndroid Build Coastguard Worker  public interface RoleServicePlatformHelper {
225*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public String computePackageStateHash(int);
226*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int);
227*344a7f5eSAndroid Build Coastguard Worker  }
228*344a7f5eSAndroid Build Coastguard Worker
229*344a7f5eSAndroid Build Coastguard Worker}
230*344a7f5eSAndroid Build Coastguard Worker
231*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.security {
232*344a7f5eSAndroid Build Coastguard Worker
233*344a7f5eSAndroid Build Coastguard Worker  public final class FileIntegrity {
234*344a7f5eSAndroid Build Coastguard Worker    method public static void setUpFsVerity(@NonNull java.io.File) throws java.io.IOException;
235*344a7f5eSAndroid Build Coastguard Worker    method public static void setUpFsVerity(@NonNull android.os.ParcelFileDescriptor) throws java.io.IOException;
236*344a7f5eSAndroid Build Coastguard Worker  }
237*344a7f5eSAndroid Build Coastguard Worker
238*344a7f5eSAndroid Build Coastguard Worker}
239*344a7f5eSAndroid Build Coastguard Worker
240*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.stats {
241*344a7f5eSAndroid Build Coastguard Worker
242*344a7f5eSAndroid Build Coastguard Worker  public final class StatsHelper {
243*344a7f5eSAndroid Build Coastguard Worker    method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context);
244*344a7f5eSAndroid Build Coastguard Worker  }
245*344a7f5eSAndroid Build Coastguard Worker
246*344a7f5eSAndroid Build Coastguard Worker}
247*344a7f5eSAndroid Build Coastguard Worker
248*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.usage {
249*344a7f5eSAndroid Build Coastguard Worker
250*344a7f5eSAndroid Build Coastguard Worker  public interface StorageStatsManagerLocal {
251*344a7f5eSAndroid Build Coastguard Worker    method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String);
252*344a7f5eSAndroid Build Coastguard Worker  }
253*344a7f5eSAndroid Build Coastguard Worker
254*344a7f5eSAndroid Build Coastguard Worker  public static interface StorageStatsManagerLocal.StorageStatsAugmenter {
255*344a7f5eSAndroid Build Coastguard Worker    method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean);
256*344a7f5eSAndroid Build Coastguard Worker    method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean);
257*344a7f5eSAndroid Build Coastguard Worker    method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle);
258*344a7f5eSAndroid Build Coastguard Worker  }
259*344a7f5eSAndroid Build Coastguard Worker
260*344a7f5eSAndroid Build Coastguard Worker}
261*344a7f5eSAndroid Build Coastguard Worker
262*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.wifi {
263*344a7f5eSAndroid Build Coastguard Worker
264*344a7f5eSAndroid Build Coastguard Worker  public class SupplicantManager {
265*344a7f5eSAndroid Build Coastguard Worker    method public static void start();
266*344a7f5eSAndroid Build Coastguard Worker    method public static void stop();
267*344a7f5eSAndroid Build Coastguard Worker  }
268*344a7f5eSAndroid Build Coastguard Worker
269*344a7f5eSAndroid Build Coastguard Worker}
270*344a7f5eSAndroid Build Coastguard Worker
271*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.wm {
272*344a7f5eSAndroid Build Coastguard Worker
273*344a7f5eSAndroid Build Coastguard Worker  public interface ActivityInterceptorCallback {
274*344a7f5eSAndroid Build Coastguard Worker    method public default void onActivityLaunched(@NonNull android.app.TaskInfo, @NonNull android.content.pm.ActivityInfo, @NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo);
275*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptResult onInterceptActivityLaunch(@NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo);
276*344a7f5eSAndroid Build Coastguard Worker    field public static final int MAINLINE_SDK_SANDBOX_ORDER_ID = 1001; // 0x3e9
277*344a7f5eSAndroid Build Coastguard Worker  }
278*344a7f5eSAndroid Build Coastguard Worker
279*344a7f5eSAndroid Build Coastguard Worker  public static final class ActivityInterceptorCallback.ActivityInterceptResult {
280*344a7f5eSAndroid Build Coastguard Worker    ctor public ActivityInterceptorCallback.ActivityInterceptResult(@NonNull android.content.Intent, @NonNull android.app.ActivityOptions, boolean);
281*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.app.ActivityOptions getActivityOptions();
282*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.content.Intent getIntent();
283*344a7f5eSAndroid Build Coastguard Worker    method public boolean isActivityResolved();
284*344a7f5eSAndroid Build Coastguard Worker  }
285*344a7f5eSAndroid Build Coastguard Worker
286*344a7f5eSAndroid Build Coastguard Worker  public static final class ActivityInterceptorCallback.ActivityInterceptorInfo {
287*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.content.pm.ActivityInfo getActivityInfo();
288*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getCallingFeatureId();
289*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getCallingPackage();
290*344a7f5eSAndroid Build Coastguard Worker    method public int getCallingPid();
291*344a7f5eSAndroid Build Coastguard Worker    method public int getCallingUid();
292*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public android.app.ActivityOptions getCheckedOptions();
293*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public Runnable getClearOptionsAnimationRunnable();
294*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.content.Intent getIntent();
295*344a7f5eSAndroid Build Coastguard Worker    method public int getRealCallingPid();
296*344a7f5eSAndroid Build Coastguard Worker    method public int getRealCallingUid();
297*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public android.content.pm.ResolveInfo getResolveInfo();
298*344a7f5eSAndroid Build Coastguard Worker    method @Nullable public String getResolvedType();
299*344a7f5eSAndroid Build Coastguard Worker    method public int getUserId();
300*344a7f5eSAndroid Build Coastguard Worker  }
301*344a7f5eSAndroid Build Coastguard Worker
302*344a7f5eSAndroid Build Coastguard Worker  public static final class ActivityInterceptorCallback.ActivityInterceptorInfo.Builder {
303*344a7f5eSAndroid Build Coastguard Worker    ctor public ActivityInterceptorCallback.ActivityInterceptorInfo.Builder(int, int, int, int, int, @NonNull android.content.Intent, @NonNull android.content.pm.ResolveInfo, @NonNull android.content.pm.ActivityInfo);
304*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo build();
305*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingFeatureId(@Nullable String);
306*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingPackage(@Nullable String);
307*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCheckedOptions(@Nullable android.app.ActivityOptions);
308*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setClearOptionsAnimationRunnable(@Nullable Runnable);
309*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setResolvedType(@Nullable String);
310*344a7f5eSAndroid Build Coastguard Worker  }
311*344a7f5eSAndroid Build Coastguard Worker
312*344a7f5eSAndroid Build Coastguard Worker  public class ActivityInterceptorCallbackRegistry {
313*344a7f5eSAndroid Build Coastguard Worker    method @NonNull public static com.android.server.wm.ActivityInterceptorCallbackRegistry getInstance();
314*344a7f5eSAndroid Build Coastguard Worker    method public void registerActivityInterceptorCallback(int, @NonNull com.android.server.wm.ActivityInterceptorCallback);
315*344a7f5eSAndroid Build Coastguard Worker    method public void unregisterActivityInterceptorCallback(int);
316*344a7f5eSAndroid Build Coastguard Worker  }
317*344a7f5eSAndroid Build Coastguard Worker
318*344a7f5eSAndroid Build Coastguard Worker}
319*344a7f5eSAndroid Build Coastguard Worker
320