Jiyong Park | 13c923d | 2019-12-20 16:29:45 +0900 | [diff] [blame] | 1 | // Signature format: 2.0 |
Makoto Onuki | bf03b1b | 2020-01-15 11:16:19 -0800 | [diff] [blame] | 2 | package com.android.server { |
| 3 | |
Hai Zhang | bd47187 | 2020-09-02 17:41:10 -0700 | [diff] [blame] | 4 | public final class LocalManagerRegistry { |
| 5 | method public static <T> void addManager(@NonNull Class<T>, @NonNull T); |
| 6 | method @Nullable public static <T> T getManager(@NonNull Class<T>); |
| 7 | } |
| 8 | |
Makoto Onuki | bf03b1b | 2020-01-15 11:16:19 -0800 | [diff] [blame] | 9 | public abstract class SystemService { |
| 10 | ctor public SystemService(@NonNull android.content.Context); |
| 11 | method @NonNull public final android.content.Context getContext(); |
Felipe Leme | 58e7458 | 2020-02-21 11:05:49 -0800 | [diff] [blame] | 12 | method public boolean isUserSupported(@NonNull com.android.server.SystemService.TargetUser); |
Makoto Onuki | bf03b1b | 2020-01-15 11:16:19 -0800 | [diff] [blame] | 13 | method public void onBootPhase(int); |
Makoto Onuki | bf03b1b | 2020-01-15 11:16:19 -0800 | [diff] [blame] | 14 | method public abstract void onStart(); |
Felipe Leme | 58e7458 | 2020-02-21 11:05:49 -0800 | [diff] [blame] | 15 | method public void onUserStarting(@NonNull com.android.server.SystemService.TargetUser); |
| 16 | method public void onUserStopped(@NonNull com.android.server.SystemService.TargetUser); |
| 17 | method public void onUserStopping(@NonNull com.android.server.SystemService.TargetUser); |
| 18 | method public void onUserSwitching(@Nullable com.android.server.SystemService.TargetUser, @NonNull com.android.server.SystemService.TargetUser); |
| 19 | method public void onUserUnlocked(@NonNull com.android.server.SystemService.TargetUser); |
| 20 | method public void onUserUnlocking(@NonNull com.android.server.SystemService.TargetUser); |
Makoto Onuki | bf03b1b | 2020-01-15 11:16:19 -0800 | [diff] [blame] | 21 | method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder); |
| 22 | method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder, boolean); |
| 23 | field public static final int PHASE_ACTIVITY_MANAGER_READY = 550; // 0x226 |
| 24 | field public static final int PHASE_BOOT_COMPLETED = 1000; // 0x3e8 |
| 25 | field public static final int PHASE_DEVICE_SPECIFIC_SERVICES_READY = 520; // 0x208 |
| 26 | field public static final int PHASE_LOCK_SETTINGS_READY = 480; // 0x1e0 |
| 27 | field public static final int PHASE_SYSTEM_SERVICES_READY = 500; // 0x1f4 |
| 28 | field public static final int PHASE_THIRD_PARTY_APPS_CAN_START = 600; // 0x258 |
| 29 | field public static final int PHASE_WAIT_FOR_DEFAULT_DISPLAY = 100; // 0x64 |
| 30 | } |
| 31 | |
| 32 | public static final class SystemService.TargetUser { |
| 33 | method @NonNull public android.os.UserHandle getUserHandle(); |
| 34 | } |
| 35 | |
| 36 | } |
| 37 | |
Sudheer Shanka | eba0108 | 2021-02-25 05:42:23 +0000 | [diff] [blame] | 38 | package com.android.server.am { |
| 39 | |
| 40 | public interface ActivityManagerLocal { |
Sanjana Sunil | d3eabb0 | 2022-02-16 10:54:03 +0000 | [diff] [blame] | 41 | method public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull String, @NonNull String, int) throws android.os.RemoteException; |
Sudheer Shanka | eba0108 | 2021-02-25 05:42:23 +0000 | [diff] [blame] | 42 | method public boolean canStartForegroundService(int, int, @NonNull String); |
| 43 | } |
| 44 | |
| 45 | } |
| 46 | |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 47 | package com.android.server.pm { |
| 48 | |
| 49 | public interface PackageManagerLocal { |
Samiul Islam | 080ba2d | 2022-02-24 16:22:40 +0000 | [diff] [blame] | 50 | 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; |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 51 | method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(); |
| 52 | method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(int, @NonNull android.os.UserHandle); |
| 53 | method @NonNull public com.android.server.pm.PackageManagerLocal.UnfilteredSnapshot withUnfilteredSnapshot(); |
Samiul Islam | 080ba2d | 2022-02-24 16:22:40 +0000 | [diff] [blame] | 54 | field public static final int FLAG_STORAGE_CE = 2; // 0x2 |
| 55 | field public static final int FLAG_STORAGE_DE = 1; // 0x1 |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 56 | } |
| 57 | |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 58 | public static interface PackageManagerLocal.FilteredSnapshot extends java.lang.AutoCloseable { |
| 59 | method public void close(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 60 | method @Nullable public com.android.server.pm.pkg.PackageState getPackageState(@NonNull String); |
Winson Chiu | b4740bc | 2022-10-12 20:47:45 +0000 | [diff] [blame] | 61 | method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | public static interface PackageManagerLocal.UnfilteredSnapshot extends java.lang.AutoCloseable { |
| 65 | method public void close(); |
| 66 | method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot filtered(int, @NonNull android.os.UserHandle); |
| 67 | method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); |
| 68 | } |
| 69 | |
| 70 | } |
| 71 | |
| 72 | package com.android.server.pm.pkg { |
| 73 | |
| 74 | public interface AndroidPackage { |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 75 | method @Nullable public String getAppComponentFactory(); |
| 76 | method @Nullable public String getApplicationClassName(); |
| 77 | method @Nullable public String getBackupAgentName(); |
| 78 | method @DrawableRes public int getBannerRes(); |
| 79 | method public int getBaseRevisionCode(); |
| 80 | method public int getCategory(); |
| 81 | method @Nullable public String getClassLoaderName(); |
| 82 | method @Dimension(unit=android.annotation.Dimension.DP) public int getCompatibleWidthLimitDp(); |
| 83 | method @XmlRes public int getDataExtractionRulesRes(); |
| 84 | method @StringRes public int getDescriptionRes(); |
| 85 | method @XmlRes public int getFullBackupContentRes(); |
| 86 | method public int getGwpAsanMode(); |
| 87 | method @DrawableRes public int getIconRes(); |
| 88 | method @StringRes public int getLabelRes(); |
| 89 | method @Dimension(unit=android.annotation.Dimension.DP) public int getLargestWidthLimitDp(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 90 | method @NonNull public java.util.List<java.lang.String> getLibraryNames(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 91 | method @XmlRes public int getLocaleConfigRes(); |
| 92 | method @DrawableRes public int getLogoRes(); |
| 93 | method public long getLongVersionCode(); |
| 94 | method public float getMaxAspectRatio(); |
| 95 | method public float getMinAspectRatio(); |
| 96 | method public int getNativeHeapZeroInitialized(); |
| 97 | method @XmlRes public int getNetworkSecurityConfigRes(); |
| 98 | method @Nullable public String getRequiredAccountType(); |
| 99 | method @Dimension(unit=android.annotation.Dimension.DP) public int getRequiresSmallestWidthDp(); |
| 100 | method @Nullable public String getRestrictedAccountType(); |
| 101 | method @DrawableRes public int getRoundIconRes(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 102 | method @Nullable public String getSdkLibraryName(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 103 | method @Nullable public String getSharedUserId(); |
| 104 | method @StringRes public int getSharedUserLabelRes(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 105 | method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getSplits(); |
| 106 | method @Nullable public String getStaticSharedLibraryName(); |
Winson Chiu | f1e50ac | 2022-10-20 22:22:08 +0000 | [diff] [blame] | 107 | method @NonNull public java.util.UUID getStorageUuid(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 108 | method public int getTargetSdkVersion(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 109 | method @StyleRes public int getThemeRes(); |
| 110 | method public int getUiOptions(); |
| 111 | method @Nullable public String getVersionName(); |
| 112 | method @Nullable public String getZygotePreloadName(); |
| 113 | method public boolean isAllowAudioPlaybackCapture(); |
| 114 | method public boolean isAllowBackup(); |
| 115 | method public boolean isAllowClearUserData(); |
| 116 | method public boolean isAllowClearUserDataOnFailedRestore(); |
| 117 | method public boolean isAllowNativeHeapPointerTagging(); |
| 118 | method public boolean isAllowTaskReparenting(); |
| 119 | method public boolean isAnyDensity(); |
| 120 | method public boolean isAttributionsUserVisible(); |
| 121 | method public boolean isBackupInForeground(); |
| 122 | method public boolean isCantSaveState(); |
| 123 | method public boolean isCoreApp(); |
| 124 | method public boolean isCrossProfile(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 125 | method public boolean isDebuggable(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 126 | method public boolean isDefaultToDeviceProtectedStorage(); |
| 127 | method public boolean isDirectBootAware(); |
| 128 | method public boolean isExtractNativeLibs(); |
| 129 | method public boolean isFactoryTest(); |
| 130 | method public boolean isForceQueryable(); |
| 131 | method public boolean isFullBackupOnly(); |
| 132 | method public boolean isHardwareAccelerated(); |
| 133 | method public boolean isHasCode(); |
| 134 | method public boolean isHasFragileUserData(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 135 | method public boolean isIsolatedSplitLoading(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 136 | method public boolean isKillAfterRestore(); |
| 137 | method public boolean isLargeHeap(); |
| 138 | method public boolean isLeavingSharedUser(); |
| 139 | method public boolean isMultiArch(); |
| 140 | method public boolean isNativeLibraryRootRequiresIsa(); |
| 141 | method public boolean isOnBackInvokedCallbackEnabled(); |
| 142 | method public boolean isPersistent(); |
| 143 | method public boolean isProfileable(); |
| 144 | method public boolean isProfileableByShell(); |
| 145 | method public boolean isRequestLegacyExternalStorage(); |
| 146 | method public boolean isRequiredForAllUsers(); |
| 147 | method public boolean isResetEnabledSettingsOnAppDataCleared(); |
| 148 | method public boolean isRestoreAnyVersion(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 149 | method public boolean isSignedWithPlatformKey(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 150 | method public boolean isSupportsExtraLargeScreens(); |
| 151 | method public boolean isSupportsLargeScreens(); |
| 152 | method public boolean isSupportsNormalScreens(); |
| 153 | method public boolean isSupportsRtl(); |
| 154 | method public boolean isSupportsSmallScreens(); |
| 155 | method public boolean isTestOnly(); |
| 156 | method public boolean isUse32BitAbi(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 157 | method public boolean isUseEmbeddedDex(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 158 | method public boolean isUsesCleartextTraffic(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 159 | method public boolean isUsesNonSdkApi(); |
| 160 | method public boolean isVmSafeMode(); |
| 161 | } |
| 162 | |
| 163 | public interface AndroidPackageSplit { |
| 164 | method @Nullable public String getClassLoaderName(); |
| 165 | method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getDependencies(); |
| 166 | method @Nullable public String getName(); |
| 167 | method @NonNull public String getPath(); |
| 168 | method public int getRevisionCode(); |
| 169 | method public boolean isHasCode(); |
| 170 | } |
| 171 | |
| 172 | public interface PackageState { |
| 173 | method @Nullable public com.android.server.pm.pkg.AndroidPackage getAndroidPackage(); |
| 174 | method public int getAppId(); |
Winson Chiu | 1114385 | 2022-10-26 17:16:56 +0000 | [diff] [blame] | 175 | method public int getHiddenApiEnforcementPolicy(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 176 | method @NonNull public String getPackageName(); |
| 177 | method @Nullable public String getPrimaryCpuAbi(); |
Winson Chiu | 6e67aa1 | 2022-10-19 17:11:55 +0000 | [diff] [blame] | 178 | method @Nullable public String getSeInfo(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 179 | method @Nullable public String getSecondaryCpuAbi(); |
| 180 | method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle); |
| 181 | method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getUsesLibraries(); |
| 182 | method public boolean isPrivileged(); |
| 183 | method public boolean isSystem(); |
| 184 | method public boolean isUpdatedSystemApp(); |
| 185 | } |
| 186 | |
| 187 | public interface PackageUserState { |
| 188 | method public boolean isInstalled(); |
| 189 | } |
| 190 | |
| 191 | public interface SharedLibrary { |
| 192 | method @NonNull public java.util.List<java.lang.String> getAllCodePaths(); |
| 193 | method @NonNull public android.content.pm.VersionedPackage getDeclaringPackage(); |
| 194 | method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getDependencies(); |
| 195 | method @NonNull public java.util.List<android.content.pm.VersionedPackage> getDependentPackages(); |
| 196 | method @Nullable public String getName(); |
| 197 | method @Nullable public String getPackageName(); |
| 198 | method @Nullable public String getPath(); |
| 199 | method public int getType(); |
| 200 | method public long getVersion(); |
| 201 | method public boolean isNative(); |
| 202 | } |
| 203 | |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 204 | } |
| 205 | |
Hai Zhang | 0b4f171 | 2021-01-21 15:45:56 -0800 | [diff] [blame] | 206 | package com.android.server.role { |
| 207 | |
| 208 | public interface RoleServicePlatformHelper { |
| 209 | method @NonNull public String computePackageStateHash(int); |
| 210 | method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); |
| 211 | } |
| 212 | |
| 213 | } |
| 214 | |
Muhammad Qureshi | ba6e2cf | 2021-03-22 20:26:55 -0700 | [diff] [blame] | 215 | package com.android.server.stats { |
| 216 | |
| 217 | public final class StatsHelper { |
| 218 | method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); |
| 219 | } |
| 220 | |
| 221 | } |
| 222 | |
Alexander Dorokhine | 610afe5 | 2021-05-10 15:59:31 -0700 | [diff] [blame] | 223 | package com.android.server.usage { |
| 224 | |
| 225 | public interface StorageStatsManagerLocal { |
| 226 | method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); |
| 227 | } |
| 228 | |
| 229 | public static interface StorageStatsManagerLocal.StorageStatsAugmenter { |
| 230 | method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); |
| 231 | method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); |
| 232 | method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); |
| 233 | } |
| 234 | |
| 235 | } |
| 236 | |
Roshan Pius | ea33fb9 | 2020-02-20 12:49:45 -0800 | [diff] [blame] | 237 | package com.android.server.wifi { |
| 238 | |
| 239 | public class SupplicantManager { |
| 240 | method public static void start(); |
| 241 | method public static void stop(); |
| 242 | } |
| 243 | |
| 244 | } |
| 245 | |
Mohammed Rashidy | 0fb4f28 | 2022-12-06 16:28:39 +0000 | [diff] [blame] | 246 | package com.android.server.wm { |
| 247 | |
| 248 | public interface ActivityInterceptorCallback { |
| 249 | method public default void onActivityLaunched(@NonNull android.app.TaskInfo, @NonNull android.content.pm.ActivityInfo, @NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); |
| 250 | method @Nullable public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptResult onInterceptActivityLaunch(@NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); |
| 251 | field public static final int MAINLINE_SDK_SANDBOX_ORDER_ID = 1001; // 0x3e9 |
| 252 | } |
| 253 | |
| 254 | public static final class ActivityInterceptorCallback.ActivityInterceptResult { |
| 255 | ctor public ActivityInterceptorCallback.ActivityInterceptResult(@NonNull android.content.Intent, @NonNull android.app.ActivityOptions, boolean); |
| 256 | method @NonNull public android.app.ActivityOptions getActivityOptions(); |
| 257 | method @NonNull public android.content.Intent getIntent(); |
| 258 | method public boolean isActivityResolved(); |
| 259 | } |
| 260 | |
| 261 | public static final class ActivityInterceptorCallback.ActivityInterceptorInfo { |
| 262 | method @NonNull public android.content.pm.ActivityInfo getActivityInfo(); |
| 263 | method @Nullable public String getCallingFeatureId(); |
| 264 | method @Nullable public String getCallingPackage(); |
| 265 | method public int getCallingPid(); |
| 266 | method public int getCallingUid(); |
| 267 | method @Nullable public android.app.ActivityOptions getCheckedOptions(); |
| 268 | method @Nullable public Runnable getClearOptionsAnimationRunnable(); |
| 269 | method @NonNull public android.content.Intent getIntent(); |
| 270 | method public int getRealCallingPid(); |
| 271 | method public int getRealCallingUid(); |
| 272 | method @NonNull public android.content.pm.ResolveInfo getResolveInfo(); |
| 273 | method @Nullable public String getResolvedType(); |
| 274 | method public int getUserId(); |
| 275 | } |
| 276 | |
| 277 | public static final class ActivityInterceptorCallback.ActivityInterceptorInfo.Builder { |
| 278 | ctor public ActivityInterceptorCallback.ActivityInterceptorInfo.Builder(int, int, int, int, int, @NonNull android.content.Intent, @NonNull android.content.pm.ResolveInfo, @NonNull android.content.pm.ActivityInfo); |
| 279 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo build(); |
| 280 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingFeatureId(@NonNull String); |
| 281 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingPackage(@NonNull String); |
| 282 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCheckedOptions(@NonNull android.app.ActivityOptions); |
| 283 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setClearOptionsAnimationRunnable(@NonNull Runnable); |
| 284 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setResolvedType(@NonNull String); |
| 285 | } |
| 286 | |
| 287 | public class ActivityInterceptorCallbackRegistry { |
| 288 | method @NonNull public static com.android.server.wm.ActivityInterceptorCallbackRegistry getInstance(); |
| 289 | method public void registerActivityInterceptorCallback(int, @NonNull com.android.server.wm.ActivityInterceptorCallback); |
| 290 | method public void unregisterActivityInterceptorCallback(int); |
| 291 | } |
| 292 | |
| 293 | } |
| 294 | |