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 { |
| 75 | method @NonNull public java.util.List<java.lang.String> getLibraryNames(); |
| 76 | method @Nullable public String getSdkLibraryName(); |
| 77 | method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getSplits(); |
| 78 | method @Nullable public String getStaticSharedLibraryName(); |
Winson Chiu | f1e50ac | 2022-10-20 22:22:08 +0000 | [diff] [blame] | 79 | method @NonNull public java.util.UUID getStorageUuid(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 80 | method public int getTargetSdkVersion(); |
| 81 | method public boolean isDebuggable(); |
| 82 | method public boolean isIsolatedSplitLoading(); |
| 83 | method public boolean isSignedWithPlatformKey(); |
| 84 | method public boolean isUseEmbeddedDex(); |
| 85 | method public boolean isUsesNonSdkApi(); |
| 86 | method public boolean isVmSafeMode(); |
| 87 | } |
| 88 | |
| 89 | public interface AndroidPackageSplit { |
| 90 | method @Nullable public String getClassLoaderName(); |
| 91 | method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getDependencies(); |
| 92 | method @Nullable public String getName(); |
| 93 | method @NonNull public String getPath(); |
| 94 | method public int getRevisionCode(); |
| 95 | method public boolean isHasCode(); |
| 96 | } |
| 97 | |
| 98 | public interface PackageState { |
| 99 | method @Nullable public com.android.server.pm.pkg.AndroidPackage getAndroidPackage(); |
| 100 | method public int getAppId(); |
Winson Chiu | 1114385 | 2022-10-26 17:16:56 +0000 | [diff] [blame] | 101 | method public int getHiddenApiEnforcementPolicy(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 102 | method @NonNull public String getPackageName(); |
| 103 | method @Nullable public String getPrimaryCpuAbi(); |
Winson Chiu | 6e67aa1 | 2022-10-19 17:11:55 +0000 | [diff] [blame] | 104 | method @Nullable public String getSeInfo(); |
Winson Chiu | 5848677 | 2022-08-30 21:58:40 +0000 | [diff] [blame] | 105 | method @Nullable public String getSecondaryCpuAbi(); |
| 106 | method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle); |
| 107 | method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getUsesLibraries(); |
| 108 | method public boolean isPrivileged(); |
| 109 | method public boolean isSystem(); |
| 110 | method public boolean isUpdatedSystemApp(); |
| 111 | } |
| 112 | |
| 113 | public interface PackageUserState { |
| 114 | method public boolean isInstalled(); |
| 115 | } |
| 116 | |
| 117 | public interface SharedLibrary { |
| 118 | method @NonNull public java.util.List<java.lang.String> getAllCodePaths(); |
| 119 | method @NonNull public android.content.pm.VersionedPackage getDeclaringPackage(); |
| 120 | method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getDependencies(); |
| 121 | method @NonNull public java.util.List<android.content.pm.VersionedPackage> getDependentPackages(); |
| 122 | method @Nullable public String getName(); |
| 123 | method @Nullable public String getPackageName(); |
| 124 | method @Nullable public String getPath(); |
| 125 | method public int getType(); |
| 126 | method public long getVersion(); |
| 127 | method public boolean isNative(); |
| 128 | } |
| 129 | |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 130 | } |
| 131 | |
Hai Zhang | 0b4f171 | 2021-01-21 15:45:56 -0800 | [diff] [blame] | 132 | package com.android.server.role { |
| 133 | |
| 134 | public interface RoleServicePlatformHelper { |
| 135 | method @NonNull public String computePackageStateHash(int); |
| 136 | method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); |
| 137 | } |
| 138 | |
| 139 | } |
| 140 | |
Muhammad Qureshi | ba6e2cf | 2021-03-22 20:26:55 -0700 | [diff] [blame] | 141 | package com.android.server.stats { |
| 142 | |
| 143 | public final class StatsHelper { |
| 144 | method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); |
| 145 | } |
| 146 | |
| 147 | } |
| 148 | |
Alexander Dorokhine | 610afe5 | 2021-05-10 15:59:31 -0700 | [diff] [blame] | 149 | package com.android.server.usage { |
| 150 | |
| 151 | public interface StorageStatsManagerLocal { |
| 152 | method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); |
| 153 | } |
| 154 | |
| 155 | public static interface StorageStatsManagerLocal.StorageStatsAugmenter { |
| 156 | method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); |
| 157 | method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); |
| 158 | method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); |
| 159 | } |
| 160 | |
| 161 | } |
| 162 | |
Roshan Pius | ea33fb9 | 2020-02-20 12:49:45 -0800 | [diff] [blame] | 163 | package com.android.server.wifi { |
| 164 | |
| 165 | public class SupplicantManager { |
| 166 | method public static void start(); |
| 167 | method public static void stop(); |
| 168 | } |
| 169 | |
| 170 | } |
| 171 | |
Mohammed Rashidy | 0fb4f28 | 2022-12-06 16:28:39 +0000 | [diff] [blame^] | 172 | package com.android.server.wm { |
| 173 | |
| 174 | public interface ActivityInterceptorCallback { |
| 175 | method public default void onActivityLaunched(@NonNull android.app.TaskInfo, @NonNull android.content.pm.ActivityInfo, @NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); |
| 176 | method @Nullable public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptResult onInterceptActivityLaunch(@NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); |
| 177 | field public static final int MAINLINE_SDK_SANDBOX_ORDER_ID = 1001; // 0x3e9 |
| 178 | } |
| 179 | |
| 180 | public static final class ActivityInterceptorCallback.ActivityInterceptResult { |
| 181 | ctor public ActivityInterceptorCallback.ActivityInterceptResult(@NonNull android.content.Intent, @NonNull android.app.ActivityOptions, boolean); |
| 182 | method @NonNull public android.app.ActivityOptions getActivityOptions(); |
| 183 | method @NonNull public android.content.Intent getIntent(); |
| 184 | method public boolean isActivityResolved(); |
| 185 | } |
| 186 | |
| 187 | public static final class ActivityInterceptorCallback.ActivityInterceptorInfo { |
| 188 | method @NonNull public android.content.pm.ActivityInfo getActivityInfo(); |
| 189 | method @Nullable public String getCallingFeatureId(); |
| 190 | method @Nullable public String getCallingPackage(); |
| 191 | method public int getCallingPid(); |
| 192 | method public int getCallingUid(); |
| 193 | method @Nullable public android.app.ActivityOptions getCheckedOptions(); |
| 194 | method @Nullable public Runnable getClearOptionsAnimationRunnable(); |
| 195 | method @NonNull public android.content.Intent getIntent(); |
| 196 | method public int getRealCallingPid(); |
| 197 | method public int getRealCallingUid(); |
| 198 | method @NonNull public android.content.pm.ResolveInfo getResolveInfo(); |
| 199 | method @Nullable public String getResolvedType(); |
| 200 | method public int getUserId(); |
| 201 | } |
| 202 | |
| 203 | public static final class ActivityInterceptorCallback.ActivityInterceptorInfo.Builder { |
| 204 | ctor public ActivityInterceptorCallback.ActivityInterceptorInfo.Builder(int, int, int, int, int, @NonNull android.content.Intent, @NonNull android.content.pm.ResolveInfo, @NonNull android.content.pm.ActivityInfo); |
| 205 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo build(); |
| 206 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingFeatureId(@NonNull String); |
| 207 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingPackage(@NonNull String); |
| 208 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCheckedOptions(@NonNull android.app.ActivityOptions); |
| 209 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setClearOptionsAnimationRunnable(@NonNull Runnable); |
| 210 | method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setResolvedType(@NonNull String); |
| 211 | } |
| 212 | |
| 213 | public class ActivityInterceptorCallbackRegistry { |
| 214 | method @NonNull public static com.android.server.wm.ActivityInterceptorCallbackRegistry getInstance(); |
| 215 | method public void registerActivityInterceptorCallback(int, @NonNull com.android.server.wm.ActivityInterceptorCallback); |
| 216 | method public void unregisterActivityInterceptorCallback(int); |
| 217 | } |
| 218 | |
| 219 | } |
| 220 | |