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 { |
Martijn Coenen | 78c258c | 2022-12-12 11:11:27 +0100 | [diff] [blame] | 41 | 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; |
Hui Yu | 57c7aa9 | 2023-02-08 01:26:32 +0000 | [diff] [blame] | 42 | 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; |
Martijn Coenen | 78c258c | 2022-12-12 11:11:27 +0100 | [diff] [blame] | 43 | method @Deprecated 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] | 44 | method public boolean canStartForegroundService(int, int, @NonNull String); |
Sanjana Sunil | 46bb3e8 | 2022-12-06 14:53:48 +0000 | [diff] [blame] | 45 | method public void killSdkSandboxClientAppProcess(@NonNull android.os.IBinder); |
Sanjana Sunil | 5b04b1c | 2023-01-25 18:33:11 +0000 | [diff] [blame^] | 46 | method @Nullable public android.content.ComponentName startSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String) throws android.os.RemoteException; |
| 47 | method public boolean stopSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String); |
Sudheer Shanka | eba0108 | 2021-02-25 05:42:23 +0000 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | } |
| 51 | |
Manjeet Rulhania | ebdeed1 | 2023-01-20 15:50:43 -0800 | [diff] [blame] | 52 | package com.android.server.appop { |
| 53 | |
| 54 | public interface AppOpsManagerLocal { |
| 55 | method public boolean isUidInForeground(int); |
| 56 | } |
| 57 | |
| 58 | } |
| 59 | |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 60 | package com.android.server.pm { |
| 61 | |
| 62 | public interface PackageManagerLocal { |
Samiul Islam | 080ba2d | 2022-02-24 16:22:40 +0000 | [diff] [blame] | 63 | 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] | 64 | method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(); |
| 65 | method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(int, @NonNull android.os.UserHandle); |
| 66 | method @NonNull public com.android.server.pm.PackageManagerLocal.UnfilteredSnapshot withUnfilteredSnapshot(); |
Samiul Islam | 080ba2d | 2022-02-24 16:22:40 +0000 | [diff] [blame] | 67 | field public static final int FLAG_STORAGE_CE = 2; // 0x2 |
| 68 | field public static final int FLAG_STORAGE_DE = 1; // 0x1 |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 69 | } |
| 70 | |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 71 | public static interface PackageManagerLocal.FilteredSnapshot extends java.lang.AutoCloseable { |
| 72 | method public void close(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 73 | method @Nullable public com.android.server.pm.pkg.PackageState getPackageState(@NonNull String); |
Winson Chiu | b4740bc | 2022-10-12 20:47:45 +0000 | [diff] [blame] | 74 | 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] | 75 | } |
| 76 | |
| 77 | public static interface PackageManagerLocal.UnfilteredSnapshot extends java.lang.AutoCloseable { |
| 78 | method public void close(); |
| 79 | method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot filtered(int, @NonNull android.os.UserHandle); |
| 80 | method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); |
| 81 | } |
| 82 | |
| 83 | } |
| 84 | |
| 85 | package com.android.server.pm.pkg { |
| 86 | |
| 87 | public interface AndroidPackage { |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 88 | method @Nullable public String getAppComponentFactory(); |
| 89 | method @Nullable public String getApplicationClassName(); |
| 90 | method @Nullable public String getBackupAgentName(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 91 | method @DrawableRes public int getBannerResourceId(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 92 | method public int getBaseRevisionCode(); |
| 93 | method public int getCategory(); |
| 94 | method @Nullable public String getClassLoaderName(); |
| 95 | method @Dimension(unit=android.annotation.Dimension.DP) public int getCompatibleWidthLimitDp(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 96 | method @XmlRes public int getDataExtractionRulesResourceId(); |
| 97 | method @StringRes public int getDescriptionResourceId(); |
| 98 | method @XmlRes public int getFullBackupContentResourceId(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 99 | method public int getGwpAsanMode(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 100 | method @DrawableRes public int getIconResourceId(); |
| 101 | method @StringRes public int getLabelResourceId(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 102 | method @Dimension(unit=android.annotation.Dimension.DP) public int getLargestWidthLimitDp(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 103 | method @NonNull public java.util.List<java.lang.String> getLibraryNames(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 104 | method @XmlRes public int getLocaleConfigResourceId(); |
| 105 | method @DrawableRes public int getLogoResourceId(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 106 | method public long getLongVersionCode(); |
| 107 | method public float getMaxAspectRatio(); |
| 108 | method public float getMinAspectRatio(); |
| 109 | method public int getNativeHeapZeroInitialized(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 110 | method @XmlRes public int getNetworkSecurityConfigResourceId(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 111 | method @Nullable public String getRequiredAccountType(); |
| 112 | method @Dimension(unit=android.annotation.Dimension.DP) public int getRequiresSmallestWidthDp(); |
| 113 | method @Nullable public String getRestrictedAccountType(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 114 | method @DrawableRes public int getRoundIconResourceId(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 115 | method @Nullable public String getSdkLibraryName(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 116 | method @Nullable public String getSharedUserId(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 117 | method @StringRes public int getSharedUserLabelResourceId(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 118 | method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getSplits(); |
| 119 | method @Nullable public String getStaticSharedLibraryName(); |
Winson Chiu | f1e50ac | 2022-10-20 22:22:08 +0000 | [diff] [blame] | 120 | method @NonNull public java.util.UUID getStorageUuid(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 121 | method public int getTargetSdkVersion(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 122 | method @StyleRes public int getThemeResourceId(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 123 | method public int getUiOptions(); |
| 124 | method @Nullable public String getVersionName(); |
| 125 | method @Nullable public String getZygotePreloadName(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 126 | method public boolean is32BitAbiPreferred(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 127 | method public boolean isAllowAudioPlaybackCapture(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 128 | method public boolean isAllowNativeHeapPointerTagging(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 129 | method public boolean isAnyDensity(); |
| 130 | method public boolean isAttributionsUserVisible(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 131 | method public boolean isBackupAllowed(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 132 | method public boolean isBackupInForeground(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 133 | method public boolean isClearUserDataAllowed(); |
| 134 | method public boolean isClearUserDataOnFailedRestoreAllowed(); |
| 135 | method public boolean isCleartextTrafficAllowed(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 136 | method public boolean isCoreApp(); |
| 137 | method public boolean isCrossProfile(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 138 | method public boolean isDebuggable(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 139 | method public boolean isDeclaredHavingCode(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 140 | method public boolean isDefaultToDeviceProtectedStorage(); |
| 141 | method public boolean isDirectBootAware(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 142 | method public boolean isExtraLargeScreensSupported(); |
| 143 | method public boolean isExtractNativeLibrariesRequested(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 144 | method public boolean isFactoryTest(); |
| 145 | method public boolean isForceQueryable(); |
| 146 | method public boolean isFullBackupOnly(); |
| 147 | method public boolean isHardwareAccelerated(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 148 | method public boolean isIsolatedSplitLoading(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 149 | method public boolean isKillAfterRestoreAllowed(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 150 | method public boolean isLargeHeap(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 151 | method public boolean isLargeScreensSupported(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 152 | method public boolean isLeavingSharedUser(); |
| 153 | method public boolean isMultiArch(); |
| 154 | method public boolean isNativeLibraryRootRequiresIsa(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 155 | method public boolean isNonSdkApiRequested(); |
| 156 | method public boolean isNormalScreensSupported(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 157 | method public boolean isOnBackInvokedCallbackEnabled(); |
| 158 | method public boolean isPersistent(); |
| 159 | method public boolean isProfileable(); |
| 160 | method public boolean isProfileableByShell(); |
| 161 | method public boolean isRequestLegacyExternalStorage(); |
| 162 | method public boolean isRequiredForAllUsers(); |
| 163 | method public boolean isResetEnabledSettingsOnAppDataCleared(); |
Winson | bc592e9 | 2022-12-19 09:53:50 -0800 | [diff] [blame] | 164 | method public boolean isResourceOverlay(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 165 | method public boolean isRestoreAnyVersion(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 166 | method public boolean isRtlSupported(); |
| 167 | method public boolean isSaveStateDisallowed(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 168 | method public boolean isSignedWithPlatformKey(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 169 | method public boolean isSmallScreensSupported(); |
| 170 | method public boolean isTaskReparentingAllowed(); |
Winson | acd81de | 2022-12-16 13:12:46 -0800 | [diff] [blame] | 171 | method public boolean isTestOnly(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 172 | method public boolean isUseEmbeddedDex(); |
Winson | f67b956 | 2023-02-10 14:49:26 -0800 | [diff] [blame] | 173 | method public boolean isUserDataFragile(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 174 | method public boolean isVmSafeMode(); |
| 175 | } |
| 176 | |
| 177 | public interface AndroidPackageSplit { |
| 178 | method @Nullable public String getClassLoaderName(); |
| 179 | method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getDependencies(); |
| 180 | method @Nullable public String getName(); |
| 181 | method @NonNull public String getPath(); |
| 182 | method public int getRevisionCode(); |
| 183 | method public boolean isHasCode(); |
| 184 | } |
| 185 | |
| 186 | public interface PackageState { |
| 187 | method @Nullable public com.android.server.pm.pkg.AndroidPackage getAndroidPackage(); |
| 188 | method public int getAppId(); |
Winson Chiu | 1114385 | 2022-10-26 17:16:56 +0000 | [diff] [blame] | 189 | method public int getHiddenApiEnforcementPolicy(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 190 | method @NonNull public String getPackageName(); |
| 191 | method @Nullable public String getPrimaryCpuAbi(); |
Winson Chiu | 6e67aa1 | 2022-10-19 17:11:55 +0000 | [diff] [blame] | 192 | method @Nullable public String getSeInfo(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 193 | method @Nullable public String getSecondaryCpuAbi(); |
Winson Chiu | 0630831 | 2023-01-12 22:58:39 +0000 | [diff] [blame] | 194 | method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getSharedLibraryDependencies(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 195 | method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle); |
Winson | bc592e9 | 2022-12-19 09:53:50 -0800 | [diff] [blame] | 196 | method public boolean isApex(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 197 | method public boolean isPrivileged(); |
| 198 | method public boolean isSystem(); |
| 199 | method public boolean isUpdatedSystemApp(); |
| 200 | } |
| 201 | |
| 202 | public interface PackageUserState { |
Winson | bc592e9 | 2022-12-19 09:53:50 -0800 | [diff] [blame] | 203 | method public long getFirstInstallTimeMillis(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 204 | method public boolean isInstalled(); |
| 205 | } |
| 206 | |
| 207 | public interface SharedLibrary { |
| 208 | method @NonNull public java.util.List<java.lang.String> getAllCodePaths(); |
| 209 | method @NonNull public android.content.pm.VersionedPackage getDeclaringPackage(); |
| 210 | method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getDependencies(); |
| 211 | method @NonNull public java.util.List<android.content.pm.VersionedPackage> getDependentPackages(); |
| 212 | method @Nullable public String getName(); |
| 213 | method @Nullable public String getPackageName(); |
| 214 | method @Nullable public String getPath(); |
| 215 | method public int getType(); |
| 216 | method public long getVersion(); |
| 217 | method public boolean isNative(); |
| 218 | } |
| 219 | |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 220 | } |
| 221 | |
Hai Zhang | 0b4f171 | 2021-01-21 15:45:56 -0800 | [diff] [blame] | 222 | package com.android.server.role { |
| 223 | |
| 224 | public interface RoleServicePlatformHelper { |
| 225 | method @NonNull public String computePackageStateHash(int); |
| 226 | method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); |
| 227 | } |
| 228 | |
| 229 | } |
| 230 | |
Alex Buynytskyy | 4299a58 | 2023-01-26 16:42:40 -0800 | [diff] [blame] | 231 | package com.android.server.security { |
| 232 | |
Alex Buynytskyy | f9049cf | 2023-02-01 15:53:32 -0800 | [diff] [blame] | 233 | public final class FileIntegrity { |
| 234 | method public static void setUpFsVerity(@NonNull java.io.File) throws java.io.IOException; |
| 235 | method public static void setUpFsVerity(@NonNull android.os.ParcelFileDescriptor) throws java.io.IOException; |
Alex Buynytskyy | 4299a58 | 2023-01-26 16:42:40 -0800 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | } |
| 239 | |
Muhammad Qureshi | ba6e2cf | 2021-03-22 20:26:55 -0700 | [diff] [blame] | 240 | package com.android.server.stats { |
| 241 | |
| 242 | public final class StatsHelper { |
| 243 | method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); |
| 244 | } |
| 245 | |
| 246 | } |
| 247 | |
Alexander Dorokhine | 610afe5 | 2021-05-10 15:59:31 -0700 | [diff] [blame] | 248 | package com.android.server.usage { |
| 249 | |
| 250 | public interface StorageStatsManagerLocal { |
| 251 | method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); |
| 252 | } |
| 253 | |
| 254 | public static interface StorageStatsManagerLocal.StorageStatsAugmenter { |
| 255 | method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); |
| 256 | method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); |
| 257 | method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); |
| 258 | } |
| 259 | |
| 260 | } |
| 261 | |
Roshan Pius | ea33fb9 | 2020-02-20 12:49:45 -0800 | [diff] [blame] | 262 | package com.android.server.wifi { |
| 263 | |
| 264 | public class SupplicantManager { |
| 265 | method public static void start(); |
| 266 | method public static void stop(); |
| 267 | } |
| 268 | |
| 269 | } |
| 270 | |
Mohammed Rashidy | 0fb4f28 | 2022-12-06 16:28:39 +0000 | [diff] [blame] | 271 | package com.android.server.wm { |
| 272 | |
| 273 | public interface ActivityInterceptorCallback { |
| 274 | method public default void onActivityLaunched(@NonNull android.app.TaskInfo, @NonNull android.content.pm.ActivityInfo, @NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); |
| 275 | method @Nullable public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptResult onInterceptActivityLaunch(@NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); |
| 276 | field public static final int MAINLINE_SDK_SANDBOX_ORDER_ID = 1001; // 0x3e9 |
| 277 | } |
| 278 | |
| 279 | public static final class ActivityInterceptorCallback.ActivityInterceptResult { |
| 280 | ctor public ActivityInterceptorCallback.ActivityInterceptResult(@NonNull android.content.Intent, @NonNull android.app.ActivityOptions, boolean); |
| 281 | method @NonNull public android.app.ActivityOptions getActivityOptions(); |
| 282 | method @NonNull public android.content.Intent getIntent(); |
| 283 | method public boolean isActivityResolved(); |
| 284 | } |
| 285 | |
| 286 | public static final class ActivityInterceptorCallback.ActivityInterceptorInfo { |
| 287 | method @NonNull public android.content.pm.ActivityInfo getActivityInfo(); |
| 288 | method @Nullable public String getCallingFeatureId(); |
| 289 | method @Nullable public String getCallingPackage(); |
| 290 | method public int getCallingPid(); |
| 291 | method public int getCallingUid(); |
| 292 | method @Nullable public android.app.ActivityOptions getCheckedOptions(); |
| 293 | method @Nullable public Runnable getClearOptionsAnimationRunnable(); |
| 294 | method @NonNull public android.content.Intent getIntent(); |
| 295 | method public int getRealCallingPid(); |
| 296 | method public int getRealCallingUid(); |
| 297 | method @NonNull public android.content.pm.ResolveInfo getResolveInfo(); |
| 298 | method @Nullable public String getResolvedType(); |
| 299 | method public int getUserId(); |
| 300 | } |
| 301 | |
| 302 | public static final class ActivityInterceptorCallback.ActivityInterceptorInfo.Builder { |
| 303 | 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 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo build(); |
Mohammed Rashidy | 8465aed | 2023-02-13 13:57:22 +0000 | [diff] [blame] | 305 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingFeatureId(@Nullable String); |
| 306 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingPackage(@Nullable String); |
| 307 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCheckedOptions(@Nullable android.app.ActivityOptions); |
| 308 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setClearOptionsAnimationRunnable(@Nullable Runnable); |
| 309 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setResolvedType(@Nullable String); |
Mohammed Rashidy | 0fb4f28 | 2022-12-06 16:28:39 +0000 | [diff] [blame] | 310 | } |
| 311 | |
| 312 | public class ActivityInterceptorCallbackRegistry { |
| 313 | method @NonNull public static com.android.server.wm.ActivityInterceptorCallbackRegistry getInstance(); |
| 314 | method public void registerActivityInterceptorCallback(int, @NonNull com.android.server.wm.ActivityInterceptorCallback); |
| 315 | method public void unregisterActivityInterceptorCallback(int); |
| 316 | } |
| 317 | |
| 318 | } |
| 319 | |