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; |
| 51 | field public static final int FLAG_STORAGE_CE = 2; // 0x2 |
| 52 | field public static final int FLAG_STORAGE_DE = 1; // 0x1 |
Winson | c4481c5 | 2022-03-02 11:03:12 -0800 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | } |
| 56 | |
Jiakai Zhang | ef321cc | 2022-06-13 16:15:26 +0100 | [diff] [blame^] | 57 | package com.android.server.pm.snapshot { |
| 58 | |
| 59 | public interface PackageDataSnapshot { |
| 60 | } |
| 61 | |
| 62 | } |
| 63 | |
Hai Zhang | 0b4f171 | 2021-01-21 15:45:56 -0800 | [diff] [blame] | 64 | package com.android.server.role { |
| 65 | |
| 66 | public interface RoleServicePlatformHelper { |
| 67 | method @NonNull public String computePackageStateHash(int); |
| 68 | method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); |
| 69 | } |
| 70 | |
| 71 | } |
| 72 | |
Muhammad Qureshi | ba6e2cf | 2021-03-22 20:26:55 -0700 | [diff] [blame] | 73 | package com.android.server.stats { |
| 74 | |
| 75 | public final class StatsHelper { |
| 76 | method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); |
| 77 | } |
| 78 | |
| 79 | } |
| 80 | |
Alexander Dorokhine | 610afe5 | 2021-05-10 15:59:31 -0700 | [diff] [blame] | 81 | package com.android.server.usage { |
| 82 | |
| 83 | public interface StorageStatsManagerLocal { |
| 84 | method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); |
| 85 | } |
| 86 | |
| 87 | public static interface StorageStatsManagerLocal.StorageStatsAugmenter { |
| 88 | method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); |
| 89 | method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); |
| 90 | method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); |
| 91 | } |
| 92 | |
| 93 | } |
| 94 | |
Roshan Pius | ea33fb9 | 2020-02-20 12:49:45 -0800 | [diff] [blame] | 95 | package com.android.server.wifi { |
| 96 | |
| 97 | public class SupplicantManager { |
| 98 | method public static void start(); |
| 99 | method public static void stop(); |
| 100 | } |
| 101 | |
| 102 | } |
| 103 | |