1// Signature format: 2.0 2package com.android.server { 3 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 9 public abstract class SystemService { 10 ctor public SystemService(@NonNull android.content.Context); 11 method @NonNull public final android.content.Context getContext(); 12 method public boolean isUserSupported(@NonNull com.android.server.SystemService.TargetUser); 13 method public void onBootPhase(int); 14 method public abstract void onStart(); 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); 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 38package com.android.server.am { 39 40 public interface ActivityManagerLocal { 41 method public boolean canStartForegroundService(int, int, @NonNull String); 42 } 43 44} 45 46package com.android.server.role { 47 48 public interface RoleServicePlatformHelper { 49 method @NonNull public String computePackageStateHash(int); 50 method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); 51 } 52 53} 54 55package com.android.server.stats { 56 57 public final class StatsHelper { 58 method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); 59 } 60 61} 62 63package com.android.server.usage { 64 65 public interface StorageStatsManagerLocal { 66 method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); 67 } 68 69 public static interface StorageStatsManagerLocal.StorageStatsAugmenter { 70 method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); 71 method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); 72 method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); 73 } 74 75} 76 77package com.android.server.wifi { 78 79 public class SupplicantManager { 80 method public static void start(); 81 method public static void stop(); 82 } 83 84} 85 86