1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0 2*344a7f5eSAndroid Build Coastguard Workerpackage android.security.rkp.service { 3*344a7f5eSAndroid Build Coastguard Worker 4*344a7f5eSAndroid Build Coastguard Worker public class RegistrationProxy { 5*344a7f5eSAndroid Build Coastguard Worker method public static void createAsync(@NonNull android.content.Context, int, @NonNull String, @NonNull java.time.Duration, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<android.security.rkp.service.RegistrationProxy,java.lang.Exception>); 6*344a7f5eSAndroid Build Coastguard Worker method public void getKeyAsync(int, @NonNull android.os.CancellationSignal, @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<android.security.rkp.service.RemotelyProvisionedKey,java.lang.Exception>); 7*344a7f5eSAndroid Build Coastguard Worker method public void storeUpgradedKeyAsync(@NonNull byte[], @NonNull byte[], @NonNull java.util.concurrent.Executor, @NonNull android.os.OutcomeReceiver<java.lang.Void,java.lang.Exception>); 8*344a7f5eSAndroid Build Coastguard Worker } 9*344a7f5eSAndroid Build Coastguard Worker 10*344a7f5eSAndroid Build Coastguard Worker public class RemotelyProvisionedKey { 11*344a7f5eSAndroid Build Coastguard Worker method @NonNull public byte[] getEncodedCertChain(); 12*344a7f5eSAndroid Build Coastguard Worker method @NonNull public byte[] getKeyBlob(); 13*344a7f5eSAndroid Build Coastguard Worker } 14*344a7f5eSAndroid Build Coastguard Worker 15*344a7f5eSAndroid Build Coastguard Worker public final class RkpProxyException extends java.lang.Exception { 16*344a7f5eSAndroid Build Coastguard Worker ctor public RkpProxyException(int, @NonNull String); 17*344a7f5eSAndroid Build Coastguard Worker ctor public RkpProxyException(int, @NonNull String, @NonNull Throwable); 18*344a7f5eSAndroid Build Coastguard Worker method public int getError(); 19*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_PENDING_INTERNET_CONNECTIVITY = 2; // 0x2 20*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_PERMANENT = 3; // 0x3 21*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_REQUIRES_SECURITY_PATCH = 1; // 0x1 22*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_UNKNOWN = 0; // 0x0 23*344a7f5eSAndroid Build Coastguard Worker } 24*344a7f5eSAndroid Build Coastguard Worker 25*344a7f5eSAndroid Build Coastguard Worker} 26*344a7f5eSAndroid Build Coastguard Worker 27*344a7f5eSAndroid Build Coastguard Workerpackage com.android.permission.persistence { 28*344a7f5eSAndroid Build Coastguard Worker 29*344a7f5eSAndroid Build Coastguard Worker public interface RuntimePermissionsPersistence { 30*344a7f5eSAndroid Build Coastguard Worker method @NonNull public static com.android.permission.persistence.RuntimePermissionsPersistence createInstance(); 31*344a7f5eSAndroid Build Coastguard Worker method public void deleteForUser(@NonNull android.os.UserHandle); 32*344a7f5eSAndroid Build Coastguard Worker method @Nullable public com.android.permission.persistence.RuntimePermissionsState readForUser(@NonNull android.os.UserHandle); 33*344a7f5eSAndroid Build Coastguard Worker method public void writeForUser(@NonNull com.android.permission.persistence.RuntimePermissionsState, @NonNull android.os.UserHandle); 34*344a7f5eSAndroid Build Coastguard Worker } 35*344a7f5eSAndroid Build Coastguard Worker 36*344a7f5eSAndroid Build Coastguard Worker public final class RuntimePermissionsState { 37*344a7f5eSAndroid Build Coastguard Worker ctor public RuntimePermissionsState(int, @Nullable String, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>>, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>>); 38*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getFingerprint(); 39*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getPackagePermissions(); 40*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getSharedUserPermissions(); 41*344a7f5eSAndroid Build Coastguard Worker method public int getVersion(); 42*344a7f5eSAndroid Build Coastguard Worker field public static final int NO_VERSION = -1; // 0xffffffff 43*344a7f5eSAndroid Build Coastguard Worker } 44*344a7f5eSAndroid Build Coastguard Worker 45*344a7f5eSAndroid Build Coastguard Worker public static final class RuntimePermissionsState.PermissionState { 46*344a7f5eSAndroid Build Coastguard Worker ctor public RuntimePermissionsState.PermissionState(@NonNull String, boolean, int); 47*344a7f5eSAndroid Build Coastguard Worker method public int getFlags(); 48*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getName(); 49*344a7f5eSAndroid Build Coastguard Worker method public boolean isGranted(); 50*344a7f5eSAndroid Build Coastguard Worker } 51*344a7f5eSAndroid Build Coastguard Worker 52*344a7f5eSAndroid Build Coastguard Worker} 53*344a7f5eSAndroid Build Coastguard Worker 54*344a7f5eSAndroid Build Coastguard Workerpackage com.android.role { 55*344a7f5eSAndroid Build Coastguard Worker 56*344a7f5eSAndroid Build Coastguard Worker public interface RoleManagerLocal { 57*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRolesAndHolders(int); 58*344a7f5eSAndroid Build Coastguard Worker } 59*344a7f5eSAndroid Build Coastguard Worker 60*344a7f5eSAndroid Build Coastguard Worker} 61*344a7f5eSAndroid Build Coastguard Worker 62*344a7f5eSAndroid Build Coastguard Workerpackage com.android.role.persistence { 63*344a7f5eSAndroid Build Coastguard Worker 64*344a7f5eSAndroid Build Coastguard Worker public interface RolesPersistence { 65*344a7f5eSAndroid Build Coastguard Worker method @NonNull public static com.android.role.persistence.RolesPersistence createInstance(); 66*344a7f5eSAndroid Build Coastguard Worker method public void deleteForUser(@NonNull android.os.UserHandle); 67*344a7f5eSAndroid Build Coastguard Worker method @Nullable public com.android.role.persistence.RolesState readForUser(@NonNull android.os.UserHandle); 68*344a7f5eSAndroid Build Coastguard Worker method public void writeForUser(@NonNull com.android.role.persistence.RolesState, @NonNull android.os.UserHandle); 69*344a7f5eSAndroid Build Coastguard Worker } 70*344a7f5eSAndroid Build Coastguard Worker 71*344a7f5eSAndroid Build Coastguard Worker public final class RolesState { 72*344a7f5eSAndroid Build Coastguard Worker ctor public RolesState(int, @Nullable String, @NonNull java.util.Map<java.lang.String,java.util.Set<java.lang.String>>); 73*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getPackagesHash(); 74*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRoles(); 75*344a7f5eSAndroid Build Coastguard Worker method public int getVersion(); 76*344a7f5eSAndroid Build Coastguard Worker } 77*344a7f5eSAndroid Build Coastguard Worker 78*344a7f5eSAndroid Build Coastguard Worker} 79*344a7f5eSAndroid Build Coastguard Worker 80*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server { 81*344a7f5eSAndroid Build Coastguard Worker 82*344a7f5eSAndroid Build Coastguard Worker public final class LocalManagerRegistry { 83*344a7f5eSAndroid Build Coastguard Worker method public static <T> void addManager(@NonNull Class<T>, @NonNull T); 84*344a7f5eSAndroid Build Coastguard Worker method @Nullable public static <T> T getManager(@NonNull Class<T>); 85*344a7f5eSAndroid Build Coastguard Worker } 86*344a7f5eSAndroid Build Coastguard Worker 87*344a7f5eSAndroid Build Coastguard Worker public abstract class SystemService { 88*344a7f5eSAndroid Build Coastguard Worker ctor public SystemService(@NonNull android.content.Context); 89*344a7f5eSAndroid Build Coastguard Worker method @NonNull public final android.content.Context getContext(); 90*344a7f5eSAndroid Build Coastguard Worker method public boolean isUserSupported(@NonNull com.android.server.SystemService.TargetUser); 91*344a7f5eSAndroid Build Coastguard Worker method public void onBootPhase(int); 92*344a7f5eSAndroid Build Coastguard Worker method public abstract void onStart(); 93*344a7f5eSAndroid Build Coastguard Worker method public void onUserStarting(@NonNull com.android.server.SystemService.TargetUser); 94*344a7f5eSAndroid Build Coastguard Worker method public void onUserStopped(@NonNull com.android.server.SystemService.TargetUser); 95*344a7f5eSAndroid Build Coastguard Worker method public void onUserStopping(@NonNull com.android.server.SystemService.TargetUser); 96*344a7f5eSAndroid Build Coastguard Worker method public void onUserSwitching(@Nullable com.android.server.SystemService.TargetUser, @NonNull com.android.server.SystemService.TargetUser); 97*344a7f5eSAndroid Build Coastguard Worker method public void onUserUnlocked(@NonNull com.android.server.SystemService.TargetUser); 98*344a7f5eSAndroid Build Coastguard Worker method public void onUserUnlocking(@NonNull com.android.server.SystemService.TargetUser); 99*344a7f5eSAndroid Build Coastguard Worker method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder); 100*344a7f5eSAndroid Build Coastguard Worker method protected final void publishBinderService(@NonNull String, @NonNull android.os.IBinder, boolean); 101*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_ACTIVITY_MANAGER_READY = 550; // 0x226 102*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_BOOT_COMPLETED = 1000; // 0x3e8 103*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_DEVICE_SPECIFIC_SERVICES_READY = 520; // 0x208 104*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_LOCK_SETTINGS_READY = 480; // 0x1e0 105*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_SYSTEM_SERVICES_READY = 500; // 0x1f4 106*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_THIRD_PARTY_APPS_CAN_START = 600; // 0x258 107*344a7f5eSAndroid Build Coastguard Worker field public static final int PHASE_WAIT_FOR_DEFAULT_DISPLAY = 100; // 0x64 108*344a7f5eSAndroid Build Coastguard Worker } 109*344a7f5eSAndroid Build Coastguard Worker 110*344a7f5eSAndroid Build Coastguard Worker public static final class SystemService.TargetUser { 111*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.os.UserHandle getUserHandle(); 112*344a7f5eSAndroid Build Coastguard Worker } 113*344a7f5eSAndroid Build Coastguard Worker 114*344a7f5eSAndroid Build Coastguard Worker} 115*344a7f5eSAndroid Build Coastguard Worker 116*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.am { 117*344a7f5eSAndroid Build Coastguard Worker 118*344a7f5eSAndroid Build Coastguard Worker public interface ActivityManagerLocal { 119*344a7f5eSAndroid Build Coastguard Worker 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; 120*344a7f5eSAndroid Build Coastguard Worker 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; 121*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public boolean bindSdkSandboxService(@NonNull android.content.Intent, @NonNull android.content.ServiceConnection, int, @NonNull String, @NonNull String, int) throws android.os.RemoteException; 122*344a7f5eSAndroid Build Coastguard Worker method public boolean canStartForegroundService(int, int, @NonNull String); 123*344a7f5eSAndroid Build Coastguard Worker method public void killSdkSandboxClientAppProcess(@NonNull android.os.IBinder); 124*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.content.ComponentName startSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String) throws android.os.RemoteException; 125*344a7f5eSAndroid Build Coastguard Worker method public boolean stopSdkSandboxService(@NonNull android.content.Intent, int, @NonNull String, @NonNull String); 126*344a7f5eSAndroid Build Coastguard Worker } 127*344a7f5eSAndroid Build Coastguard Worker 128*344a7f5eSAndroid Build Coastguard Worker} 129*344a7f5eSAndroid Build Coastguard Worker 130*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.appop { 131*344a7f5eSAndroid Build Coastguard Worker 132*344a7f5eSAndroid Build Coastguard Worker public interface AppOpsManagerLocal { 133*344a7f5eSAndroid Build Coastguard Worker method public boolean isUidInForeground(int); 134*344a7f5eSAndroid Build Coastguard Worker } 135*344a7f5eSAndroid Build Coastguard Worker 136*344a7f5eSAndroid Build Coastguard Worker} 137*344a7f5eSAndroid Build Coastguard Worker 138*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.art { 139*344a7f5eSAndroid Build Coastguard Worker 140*344a7f5eSAndroid Build Coastguard Worker public final class ArtManagerLocal { 141*344a7f5eSAndroid Build Coastguard Worker ctor @Deprecated public ArtManagerLocal(); 142*344a7f5eSAndroid Build Coastguard Worker ctor public ArtManagerLocal(@NonNull android.content.Context); 143*344a7f5eSAndroid Build Coastguard Worker method public void addDexoptDoneCallback(boolean, @NonNull java.util.concurrent.Executor, @NonNull com.android.server.art.ArtManagerLocal.DexoptDoneCallback); 144*344a7f5eSAndroid Build Coastguard Worker method public void cancelBackgroundDexoptJob(); 145*344a7f5eSAndroid Build Coastguard Worker method @NonNull public void clearAppProfiles(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String); 146*344a7f5eSAndroid Build Coastguard Worker method public void clearBatchDexoptStartCallback(); 147*344a7f5eSAndroid Build Coastguard Worker method public void clearScheduleBackgroundDexoptJobCallback(); 148*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DeleteResult deleteDexoptArtifacts(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String); 149*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptResult dexoptPackage(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String, @NonNull com.android.server.art.model.DexoptParams); 150*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptResult dexoptPackage(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String, @NonNull com.android.server.art.model.DexoptParams, @NonNull android.os.CancellationSignal); 151*344a7f5eSAndroid Build Coastguard Worker method public void dump(@NonNull java.io.PrintWriter, @NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot); 152*344a7f5eSAndroid Build Coastguard Worker method public void dumpPackage(@NonNull java.io.PrintWriter, @NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String); 153*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptStatus getDexoptStatus(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String); 154*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptStatus getDexoptStatus(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String, int); 155*344a7f5eSAndroid Build Coastguard Worker method public int handleShellCommand(@NonNull android.os.Binder, @NonNull android.os.ParcelFileDescriptor, @NonNull android.os.ParcelFileDescriptor, @NonNull android.os.ParcelFileDescriptor, @NonNull String[]); 156*344a7f5eSAndroid Build Coastguard Worker method public void onBoot(@NonNull String, @Nullable java.util.concurrent.Executor, @Nullable java.util.function.Consumer<com.android.server.art.model.OperationProgress>); 157*344a7f5eSAndroid Build Coastguard Worker method public void printShellCommandHelp(@NonNull java.io.PrintWriter); 158*344a7f5eSAndroid Build Coastguard Worker method public void removeDexoptDoneCallback(@NonNull com.android.server.art.ArtManagerLocal.DexoptDoneCallback); 159*344a7f5eSAndroid Build Coastguard Worker method public int scheduleBackgroundDexoptJob(); 160*344a7f5eSAndroid Build Coastguard Worker method public void setBatchDexoptStartCallback(@NonNull java.util.concurrent.Executor, @NonNull com.android.server.art.ArtManagerLocal.BatchDexoptStartCallback); 161*344a7f5eSAndroid Build Coastguard Worker method public void setScheduleBackgroundDexoptJobCallback(@NonNull java.util.concurrent.Executor, @NonNull com.android.server.art.ArtManagerLocal.ScheduleBackgroundDexoptJobCallback); 162*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.os.ParcelFileDescriptor snapshotAppProfile(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String, @Nullable String) throws com.android.server.art.ArtManagerLocal.SnapshotProfileException; 163*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.os.ParcelFileDescriptor snapshotBootImageProfile(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot) throws com.android.server.art.ArtManagerLocal.SnapshotProfileException; 164*344a7f5eSAndroid Build Coastguard Worker method public void startBackgroundDexoptJob(); 165*344a7f5eSAndroid Build Coastguard Worker method public void unscheduleBackgroundDexoptJob(); 166*344a7f5eSAndroid Build Coastguard Worker } 167*344a7f5eSAndroid Build Coastguard Worker 168*344a7f5eSAndroid Build Coastguard Worker public static interface ArtManagerLocal.BatchDexoptStartCallback { 169*344a7f5eSAndroid Build Coastguard Worker method public void onBatchDexoptStart(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String, @NonNull java.util.List<java.lang.String>, @NonNull com.android.server.art.model.BatchDexoptParams.Builder, @NonNull android.os.CancellationSignal); 170*344a7f5eSAndroid Build Coastguard Worker } 171*344a7f5eSAndroid Build Coastguard Worker 172*344a7f5eSAndroid Build Coastguard Worker public static interface ArtManagerLocal.DexoptDoneCallback { 173*344a7f5eSAndroid Build Coastguard Worker method public void onDexoptDone(@NonNull com.android.server.art.model.DexoptResult); 174*344a7f5eSAndroid Build Coastguard Worker } 175*344a7f5eSAndroid Build Coastguard Worker 176*344a7f5eSAndroid Build Coastguard Worker public static interface ArtManagerLocal.ScheduleBackgroundDexoptJobCallback { 177*344a7f5eSAndroid Build Coastguard Worker method public void onOverrideJobInfo(@NonNull android.app.job.JobInfo.Builder); 178*344a7f5eSAndroid Build Coastguard Worker } 179*344a7f5eSAndroid Build Coastguard Worker 180*344a7f5eSAndroid Build Coastguard Worker public static class ArtManagerLocal.SnapshotProfileException extends java.lang.Exception { 181*344a7f5eSAndroid Build Coastguard Worker } 182*344a7f5eSAndroid Build Coastguard Worker 183*344a7f5eSAndroid Build Coastguard Worker public class ArtModuleServiceInitializer { 184*344a7f5eSAndroid Build Coastguard Worker method public static void setArtModuleServiceManager(@NonNull android.os.ArtModuleServiceManager); 185*344a7f5eSAndroid Build Coastguard Worker } 186*344a7f5eSAndroid Build Coastguard Worker 187*344a7f5eSAndroid Build Coastguard Worker public class DexUseManagerLocal { 188*344a7f5eSAndroid Build Coastguard Worker method @NonNull public static com.android.server.art.DexUseManagerLocal createInstance(@NonNull android.content.Context); 189*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<com.android.server.art.model.DexContainerFileUseInfo> getSecondaryDexContainerFileUseInfo(@NonNull String); 190*344a7f5eSAndroid Build Coastguard Worker method public void notifyDexContainersLoaded(@NonNull com.android.server.pm.PackageManagerLocal.FilteredSnapshot, @NonNull String, @NonNull java.util.Map<java.lang.String,java.lang.String>); 191*344a7f5eSAndroid Build Coastguard Worker method public void systemReady(); 192*344a7f5eSAndroid Build Coastguard Worker } 193*344a7f5eSAndroid Build Coastguard Worker 194*344a7f5eSAndroid Build Coastguard Worker public class ReasonMapping { 195*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_BG_DEXOPT = "bg-dexopt"; 196*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_BOOT_AFTER_MAINLINE_UPDATE = "boot-after-mainline-update"; 197*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_BOOT_AFTER_OTA = "boot-after-ota"; 198*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_CMDLINE = "cmdline"; 199*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_FIRST_BOOT = "first-boot"; 200*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INACTIVE = "inactive"; 201*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INSTALL = "install"; 202*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INSTALL_BULK = "install-bulk"; 203*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INSTALL_BULK_DOWNGRADED = "install-bulk-downgraded"; 204*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INSTALL_BULK_SECONDARY = "install-bulk-secondary"; 205*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INSTALL_BULK_SECONDARY_DOWNGRADED = "install-bulk-secondary-downgraded"; 206*344a7f5eSAndroid Build Coastguard Worker field public static final String REASON_INSTALL_FAST = "install-fast"; 207*344a7f5eSAndroid Build Coastguard Worker } 208*344a7f5eSAndroid Build Coastguard Worker 209*344a7f5eSAndroid Build Coastguard Worker} 210*344a7f5eSAndroid Build Coastguard Worker 211*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.art.model { 212*344a7f5eSAndroid Build Coastguard Worker 213*344a7f5eSAndroid Build Coastguard Worker public class ArtFlags { 214*344a7f5eSAndroid Build Coastguard Worker method public static int defaultGetStatusFlags(); 215*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_FORCE = 16; // 0x10 216*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_FOR_PRIMARY_DEX = 1; // 0x1 217*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_FOR_SECONDARY_DEX = 2; // 0x2 218*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_FOR_SINGLE_SPLIT = 32; // 0x20 219*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_SHOULD_DOWNGRADE = 8; // 0x8 220*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_SHOULD_INCLUDE_DEPENDENCIES = 4; // 0x4 221*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_SKIP_IF_STORAGE_LOW = 64; // 0x40 222*344a7f5eSAndroid Build Coastguard Worker field public static final int PRIORITY_BACKGROUND = 40; // 0x28 223*344a7f5eSAndroid Build Coastguard Worker field public static final int PRIORITY_BOOT = 100; // 0x64 224*344a7f5eSAndroid Build Coastguard Worker field public static final int PRIORITY_INTERACTIVE = 60; // 0x3c 225*344a7f5eSAndroid Build Coastguard Worker field public static final int PRIORITY_INTERACTIVE_FAST = 80; // 0x50 226*344a7f5eSAndroid Build Coastguard Worker field public static final int SCHEDULE_DISABLED_BY_SYSPROP = 2; // 0x2 227*344a7f5eSAndroid Build Coastguard Worker field public static final int SCHEDULE_JOB_SCHEDULER_FAILURE = 1; // 0x1 228*344a7f5eSAndroid Build Coastguard Worker field public static final int SCHEDULE_SUCCESS = 0; // 0x0 229*344a7f5eSAndroid Build Coastguard Worker } 230*344a7f5eSAndroid Build Coastguard Worker 231*344a7f5eSAndroid Build Coastguard Worker public abstract class BatchDexoptParams { 232*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract com.android.server.art.model.DexoptParams getDexoptParams(); 233*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract java.util.List<java.lang.String> getPackages(); 234*344a7f5eSAndroid Build Coastguard Worker } 235*344a7f5eSAndroid Build Coastguard Worker 236*344a7f5eSAndroid Build Coastguard Worker public static final class BatchDexoptParams.Builder { 237*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.BatchDexoptParams build(); 238*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.BatchDexoptParams.Builder setDexoptParams(@NonNull com.android.server.art.model.DexoptParams); 239*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.BatchDexoptParams.Builder setPackages(@NonNull java.util.List<java.lang.String>); 240*344a7f5eSAndroid Build Coastguard Worker } 241*344a7f5eSAndroid Build Coastguard Worker 242*344a7f5eSAndroid Build Coastguard Worker public abstract class DeleteResult { 243*344a7f5eSAndroid Build Coastguard Worker method public abstract long getFreedBytes(); 244*344a7f5eSAndroid Build Coastguard Worker } 245*344a7f5eSAndroid Build Coastguard Worker 246*344a7f5eSAndroid Build Coastguard Worker public abstract class DexContainerFileUseInfo { 247*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getDexContainerFile(); 248*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract java.util.Set<java.lang.String> getLoadingPackages(); 249*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract android.os.UserHandle getUserHandle(); 250*344a7f5eSAndroid Build Coastguard Worker } 251*344a7f5eSAndroid Build Coastguard Worker 252*344a7f5eSAndroid Build Coastguard Worker public class DexoptParams { 253*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getCompilerFilter(); 254*344a7f5eSAndroid Build Coastguard Worker method public int getFlags(); 255*344a7f5eSAndroid Build Coastguard Worker method public int getPriorityClass(); 256*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getReason(); 257*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getSplitName(); 258*344a7f5eSAndroid Build Coastguard Worker field public static final String COMPILER_FILTER_NOOP = "skip"; 259*344a7f5eSAndroid Build Coastguard Worker } 260*344a7f5eSAndroid Build Coastguard Worker 261*344a7f5eSAndroid Build Coastguard Worker public static final class DexoptParams.Builder { 262*344a7f5eSAndroid Build Coastguard Worker ctor public DexoptParams.Builder(@NonNull String); 263*344a7f5eSAndroid Build Coastguard Worker ctor public DexoptParams.Builder(@NonNull String, int); 264*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptParams build(); 265*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptParams.Builder setCompilerFilter(@NonNull String); 266*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptParams.Builder setFlags(int); 267*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptParams.Builder setFlags(int, int); 268*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptParams.Builder setPriorityClass(int); 269*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.art.model.DexoptParams.Builder setSplitName(@Nullable String); 270*344a7f5eSAndroid Build Coastguard Worker } 271*344a7f5eSAndroid Build Coastguard Worker 272*344a7f5eSAndroid Build Coastguard Worker public abstract class DexoptResult { 273*344a7f5eSAndroid Build Coastguard Worker method public int getFinalStatus(); 274*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract java.util.List<com.android.server.art.model.DexoptResult.PackageDexoptResult> getPackageDexoptResults(); 275*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getReason(); 276*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getRequestedCompilerFilter(); 277*344a7f5eSAndroid Build Coastguard Worker field public static final int DEXOPT_CANCELLED = 40; // 0x28 278*344a7f5eSAndroid Build Coastguard Worker field public static final int DEXOPT_FAILED = 30; // 0x1e 279*344a7f5eSAndroid Build Coastguard Worker field public static final int DEXOPT_PERFORMED = 20; // 0x14 280*344a7f5eSAndroid Build Coastguard Worker field public static final int DEXOPT_SKIPPED = 10; // 0xa 281*344a7f5eSAndroid Build Coastguard Worker } 282*344a7f5eSAndroid Build Coastguard Worker 283*344a7f5eSAndroid Build Coastguard Worker public abstract static class DexoptResult.DexContainerFileDexoptResult { 284*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getAbi(); 285*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getActualCompilerFilter(); 286*344a7f5eSAndroid Build Coastguard Worker method public abstract long getDex2oatCpuTimeMillis(); 287*344a7f5eSAndroid Build Coastguard Worker method public abstract long getDex2oatWallTimeMillis(); 288*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getDexContainerFile(); 289*344a7f5eSAndroid Build Coastguard Worker method public abstract long getSizeBeforeBytes(); 290*344a7f5eSAndroid Build Coastguard Worker method public abstract long getSizeBytes(); 291*344a7f5eSAndroid Build Coastguard Worker method public abstract int getStatus(); 292*344a7f5eSAndroid Build Coastguard Worker method public abstract boolean isPrimaryAbi(); 293*344a7f5eSAndroid Build Coastguard Worker } 294*344a7f5eSAndroid Build Coastguard Worker 295*344a7f5eSAndroid Build Coastguard Worker public abstract static class DexoptResult.PackageDexoptResult { 296*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract java.util.List<com.android.server.art.model.DexoptResult.DexContainerFileDexoptResult> getDexContainerFileDexoptResults(); 297*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getPackageName(); 298*344a7f5eSAndroid Build Coastguard Worker method public int getStatus(); 299*344a7f5eSAndroid Build Coastguard Worker method public boolean hasUpdatedArtifacts(); 300*344a7f5eSAndroid Build Coastguard Worker } 301*344a7f5eSAndroid Build Coastguard Worker 302*344a7f5eSAndroid Build Coastguard Worker public abstract class DexoptStatus { 303*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract java.util.List<com.android.server.art.model.DexoptStatus.DexContainerFileDexoptStatus> getDexContainerFileDexoptStatuses(); 304*344a7f5eSAndroid Build Coastguard Worker } 305*344a7f5eSAndroid Build Coastguard Worker 306*344a7f5eSAndroid Build Coastguard Worker public abstract static class DexoptStatus.DexContainerFileDexoptStatus { 307*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getAbi(); 308*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getCompilationReason(); 309*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getCompilerFilter(); 310*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getDexContainerFile(); 311*344a7f5eSAndroid Build Coastguard Worker method @NonNull public abstract String getLocationDebugString(); 312*344a7f5eSAndroid Build Coastguard Worker method public abstract boolean isPrimaryAbi(); 313*344a7f5eSAndroid Build Coastguard Worker method public abstract boolean isPrimaryDex(); 314*344a7f5eSAndroid Build Coastguard Worker } 315*344a7f5eSAndroid Build Coastguard Worker 316*344a7f5eSAndroid Build Coastguard Worker public abstract class OperationProgress { 317*344a7f5eSAndroid Build Coastguard Worker method public int getPercentage(); 318*344a7f5eSAndroid Build Coastguard Worker } 319*344a7f5eSAndroid Build Coastguard Worker 320*344a7f5eSAndroid Build Coastguard Worker} 321*344a7f5eSAndroid Build Coastguard Worker 322*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.deviceconfig { 323*344a7f5eSAndroid Build Coastguard Worker 324*344a7f5eSAndroid Build Coastguard Worker public class DeviceConfigInit { 325*344a7f5eSAndroid Build Coastguard Worker } 326*344a7f5eSAndroid Build Coastguard Worker 327*344a7f5eSAndroid Build Coastguard Worker public static class DeviceConfigInit.Lifecycle extends com.android.server.SystemService { 328*344a7f5eSAndroid Build Coastguard Worker ctor public DeviceConfigInit.Lifecycle(@NonNull android.content.Context); 329*344a7f5eSAndroid Build Coastguard Worker } 330*344a7f5eSAndroid Build Coastguard Worker 331*344a7f5eSAndroid Build Coastguard Worker} 332*344a7f5eSAndroid Build Coastguard Worker 333*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.pm { 334*344a7f5eSAndroid Build Coastguard Worker 335*344a7f5eSAndroid Build Coastguard Worker public interface PackageManagerLocal { 336*344a7f5eSAndroid Build Coastguard Worker 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; 337*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(); 338*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot withFilteredSnapshot(int, @NonNull android.os.UserHandle); 339*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.pm.PackageManagerLocal.UnfilteredSnapshot withUnfilteredSnapshot(); 340*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_STORAGE_CE = 2; // 0x2 341*344a7f5eSAndroid Build Coastguard Worker field public static final int FLAG_STORAGE_DE = 1; // 0x1 342*344a7f5eSAndroid Build Coastguard Worker } 343*344a7f5eSAndroid Build Coastguard Worker 344*344a7f5eSAndroid Build Coastguard Worker public static interface PackageManagerLocal.FilteredSnapshot extends java.lang.AutoCloseable { 345*344a7f5eSAndroid Build Coastguard Worker method public void close(); 346*344a7f5eSAndroid Build Coastguard Worker method @Nullable public com.android.server.pm.pkg.PackageState getPackageState(@NonNull String); 347*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); 348*344a7f5eSAndroid Build Coastguard Worker } 349*344a7f5eSAndroid Build Coastguard Worker 350*344a7f5eSAndroid Build Coastguard Worker public static interface PackageManagerLocal.UnfilteredSnapshot extends java.lang.AutoCloseable { 351*344a7f5eSAndroid Build Coastguard Worker method public void close(); 352*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.pm.PackageManagerLocal.FilteredSnapshot filtered(int, @NonNull android.os.UserHandle); 353*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,com.android.server.pm.pkg.PackageState> getPackageStates(); 354*344a7f5eSAndroid Build Coastguard Worker } 355*344a7f5eSAndroid Build Coastguard Worker 356*344a7f5eSAndroid Build Coastguard Worker} 357*344a7f5eSAndroid Build Coastguard Worker 358*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.pm.pkg { 359*344a7f5eSAndroid Build Coastguard Worker 360*344a7f5eSAndroid Build Coastguard Worker public interface AndroidPackage { 361*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getAppComponentFactory(); 362*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getApplicationClassName(); 363*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getBackupAgentName(); 364*344a7f5eSAndroid Build Coastguard Worker method @DrawableRes public int getBannerResourceId(); 365*344a7f5eSAndroid Build Coastguard Worker method public int getBaseRevisionCode(); 366*344a7f5eSAndroid Build Coastguard Worker method public int getCategory(); 367*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getClassLoaderName(); 368*344a7f5eSAndroid Build Coastguard Worker method @Dimension(unit=android.annotation.Dimension.DP) public int getCompatibleWidthLimitDp(); 369*344a7f5eSAndroid Build Coastguard Worker method @XmlRes public int getDataExtractionRulesResourceId(); 370*344a7f5eSAndroid Build Coastguard Worker method @StringRes public int getDescriptionResourceId(); 371*344a7f5eSAndroid Build Coastguard Worker method @XmlRes public int getFullBackupContentResourceId(); 372*344a7f5eSAndroid Build Coastguard Worker method public int getGwpAsanMode(); 373*344a7f5eSAndroid Build Coastguard Worker method @DrawableRes public int getIconResourceId(); 374*344a7f5eSAndroid Build Coastguard Worker method @StringRes public int getLabelResourceId(); 375*344a7f5eSAndroid Build Coastguard Worker method @Dimension(unit=android.annotation.Dimension.DP) public int getLargestWidthLimitDp(); 376*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getLibraryNames(); 377*344a7f5eSAndroid Build Coastguard Worker method @XmlRes public int getLocaleConfigResourceId(); 378*344a7f5eSAndroid Build Coastguard Worker method @DrawableRes public int getLogoResourceId(); 379*344a7f5eSAndroid Build Coastguard Worker method public long getLongVersionCode(); 380*344a7f5eSAndroid Build Coastguard Worker method public float getMaxAspectRatio(); 381*344a7f5eSAndroid Build Coastguard Worker method public float getMinAspectRatio(); 382*344a7f5eSAndroid Build Coastguard Worker method public int getNativeHeapZeroInitialized(); 383*344a7f5eSAndroid Build Coastguard Worker method @XmlRes public int getNetworkSecurityConfigResourceId(); 384*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getRequiredAccountType(); 385*344a7f5eSAndroid Build Coastguard Worker method @Dimension(unit=android.annotation.Dimension.DP) public int getRequiresSmallestWidthDp(); 386*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getRestrictedAccountType(); 387*344a7f5eSAndroid Build Coastguard Worker method @DrawableRes public int getRoundIconResourceId(); 388*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getSdkLibraryName(); 389*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getSharedUserId(); 390*344a7f5eSAndroid Build Coastguard Worker method @StringRes public int getSharedUserLabelResourceId(); 391*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getSplits(); 392*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getStaticSharedLibraryName(); 393*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.UUID getStorageUuid(); 394*344a7f5eSAndroid Build Coastguard Worker method public int getTargetSdkVersion(); 395*344a7f5eSAndroid Build Coastguard Worker method @StyleRes public int getThemeResourceId(); 396*344a7f5eSAndroid Build Coastguard Worker method public int getUiOptions(); 397*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getVersionName(); 398*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getZygotePreloadName(); 399*344a7f5eSAndroid Build Coastguard Worker method public boolean is32BitAbiPreferred(); 400*344a7f5eSAndroid Build Coastguard Worker method public boolean isAllowAudioPlaybackCapture(); 401*344a7f5eSAndroid Build Coastguard Worker method public boolean isAllowNativeHeapPointerTagging(); 402*344a7f5eSAndroid Build Coastguard Worker method public boolean isAnyDensity(); 403*344a7f5eSAndroid Build Coastguard Worker method public boolean isAttributionsUserVisible(); 404*344a7f5eSAndroid Build Coastguard Worker method public boolean isBackupAllowed(); 405*344a7f5eSAndroid Build Coastguard Worker method public boolean isBackupInForeground(); 406*344a7f5eSAndroid Build Coastguard Worker method public boolean isClearUserDataAllowed(); 407*344a7f5eSAndroid Build Coastguard Worker method public boolean isClearUserDataOnFailedRestoreAllowed(); 408*344a7f5eSAndroid Build Coastguard Worker method public boolean isCleartextTrafficAllowed(); 409*344a7f5eSAndroid Build Coastguard Worker method public boolean isCoreApp(); 410*344a7f5eSAndroid Build Coastguard Worker method public boolean isCrossProfile(); 411*344a7f5eSAndroid Build Coastguard Worker method public boolean isDebuggable(); 412*344a7f5eSAndroid Build Coastguard Worker method public boolean isDeclaredHavingCode(); 413*344a7f5eSAndroid Build Coastguard Worker method public boolean isDefaultToDeviceProtectedStorage(); 414*344a7f5eSAndroid Build Coastguard Worker method public boolean isDirectBootAware(); 415*344a7f5eSAndroid Build Coastguard Worker method public boolean isExtraLargeScreensSupported(); 416*344a7f5eSAndroid Build Coastguard Worker method public boolean isExtractNativeLibrariesRequested(); 417*344a7f5eSAndroid Build Coastguard Worker method public boolean isFactoryTest(); 418*344a7f5eSAndroid Build Coastguard Worker method public boolean isForceQueryable(); 419*344a7f5eSAndroid Build Coastguard Worker method public boolean isFullBackupOnly(); 420*344a7f5eSAndroid Build Coastguard Worker method public boolean isHardwareAccelerated(); 421*344a7f5eSAndroid Build Coastguard Worker method public boolean isIsolatedSplitLoading(); 422*344a7f5eSAndroid Build Coastguard Worker method public boolean isKillAfterRestoreAllowed(); 423*344a7f5eSAndroid Build Coastguard Worker method public boolean isLargeHeap(); 424*344a7f5eSAndroid Build Coastguard Worker method public boolean isLargeScreensSupported(); 425*344a7f5eSAndroid Build Coastguard Worker method public boolean isLeavingSharedUser(); 426*344a7f5eSAndroid Build Coastguard Worker method public boolean isMultiArch(); 427*344a7f5eSAndroid Build Coastguard Worker method public boolean isNativeLibraryRootRequiresIsa(); 428*344a7f5eSAndroid Build Coastguard Worker method public boolean isNonSdkApiRequested(); 429*344a7f5eSAndroid Build Coastguard Worker method public boolean isNormalScreensSupported(); 430*344a7f5eSAndroid Build Coastguard Worker method public boolean isOnBackInvokedCallbackEnabled(); 431*344a7f5eSAndroid Build Coastguard Worker method public boolean isPersistent(); 432*344a7f5eSAndroid Build Coastguard Worker method public boolean isProfileable(); 433*344a7f5eSAndroid Build Coastguard Worker method public boolean isProfileableByShell(); 434*344a7f5eSAndroid Build Coastguard Worker method public boolean isRequestLegacyExternalStorage(); 435*344a7f5eSAndroid Build Coastguard Worker method public boolean isRequiredForAllUsers(); 436*344a7f5eSAndroid Build Coastguard Worker method public boolean isResetEnabledSettingsOnAppDataCleared(); 437*344a7f5eSAndroid Build Coastguard Worker method public boolean isResourceOverlay(); 438*344a7f5eSAndroid Build Coastguard Worker method public boolean isRestoreAnyVersion(); 439*344a7f5eSAndroid Build Coastguard Worker method public boolean isRtlSupported(); 440*344a7f5eSAndroid Build Coastguard Worker method public boolean isSaveStateDisallowed(); 441*344a7f5eSAndroid Build Coastguard Worker method public boolean isSignedWithPlatformKey(); 442*344a7f5eSAndroid Build Coastguard Worker method public boolean isSmallScreensSupported(); 443*344a7f5eSAndroid Build Coastguard Worker method public boolean isTaskReparentingAllowed(); 444*344a7f5eSAndroid Build Coastguard Worker method public boolean isTestOnly(); 445*344a7f5eSAndroid Build Coastguard Worker method public boolean isUseEmbeddedDex(); 446*344a7f5eSAndroid Build Coastguard Worker method public boolean isUserDataFragile(); 447*344a7f5eSAndroid Build Coastguard Worker method public boolean isVmSafeMode(); 448*344a7f5eSAndroid Build Coastguard Worker } 449*344a7f5eSAndroid Build Coastguard Worker 450*344a7f5eSAndroid Build Coastguard Worker public interface AndroidPackageSplit { 451*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getClassLoaderName(); 452*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<com.android.server.pm.pkg.AndroidPackageSplit> getDependencies(); 453*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getName(); 454*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getPath(); 455*344a7f5eSAndroid Build Coastguard Worker method public int getRevisionCode(); 456*344a7f5eSAndroid Build Coastguard Worker method public boolean isHasCode(); 457*344a7f5eSAndroid Build Coastguard Worker } 458*344a7f5eSAndroid Build Coastguard Worker 459*344a7f5eSAndroid Build Coastguard Worker public interface PackageState { 460*344a7f5eSAndroid Build Coastguard Worker method @Nullable public com.android.server.pm.pkg.AndroidPackage getAndroidPackage(); 461*344a7f5eSAndroid Build Coastguard Worker method public int getAppId(); 462*344a7f5eSAndroid Build Coastguard Worker method public int getHiddenApiEnforcementPolicy(); 463*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getPackageName(); 464*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getPrimaryCpuAbi(); 465*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getSeInfo(); 466*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getSecondaryCpuAbi(); 467*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getSharedLibraryDependencies(); 468*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.pm.pkg.PackageUserState getStateForUser(@NonNull android.os.UserHandle); 469*344a7f5eSAndroid Build Coastguard Worker method public boolean isApex(); 470*344a7f5eSAndroid Build Coastguard Worker method public boolean isPrivileged(); 471*344a7f5eSAndroid Build Coastguard Worker method public boolean isSystem(); 472*344a7f5eSAndroid Build Coastguard Worker method public boolean isUpdatedSystemApp(); 473*344a7f5eSAndroid Build Coastguard Worker } 474*344a7f5eSAndroid Build Coastguard Worker 475*344a7f5eSAndroid Build Coastguard Worker public interface PackageUserState { 476*344a7f5eSAndroid Build Coastguard Worker method public long getFirstInstallTimeMillis(); 477*344a7f5eSAndroid Build Coastguard Worker method public boolean isInstalled(); 478*344a7f5eSAndroid Build Coastguard Worker } 479*344a7f5eSAndroid Build Coastguard Worker 480*344a7f5eSAndroid Build Coastguard Worker public interface SharedLibrary { 481*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<java.lang.String> getAllCodePaths(); 482*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.content.pm.VersionedPackage getDeclaringPackage(); 483*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<com.android.server.pm.pkg.SharedLibrary> getDependencies(); 484*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<android.content.pm.VersionedPackage> getDependentPackages(); 485*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getName(); 486*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getPackageName(); 487*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getPath(); 488*344a7f5eSAndroid Build Coastguard Worker method public int getType(); 489*344a7f5eSAndroid Build Coastguard Worker method public long getVersion(); 490*344a7f5eSAndroid Build Coastguard Worker method public boolean isNative(); 491*344a7f5eSAndroid Build Coastguard Worker } 492*344a7f5eSAndroid Build Coastguard Worker 493*344a7f5eSAndroid Build Coastguard Worker} 494*344a7f5eSAndroid Build Coastguard Worker 495*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.role { 496*344a7f5eSAndroid Build Coastguard Worker 497*344a7f5eSAndroid Build Coastguard Worker public interface RoleServicePlatformHelper { 498*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String computePackageStateHash(int); 499*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLegacyRoleState(int); 500*344a7f5eSAndroid Build Coastguard Worker } 501*344a7f5eSAndroid Build Coastguard Worker 502*344a7f5eSAndroid Build Coastguard Worker} 503*344a7f5eSAndroid Build Coastguard Worker 504*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.sdksandbox { 505*344a7f5eSAndroid Build Coastguard Worker 506*344a7f5eSAndroid Build Coastguard Worker public interface SdkSandboxManagerLocal { 507*344a7f5eSAndroid Build Coastguard Worker method public boolean canAccessContentProviderFromSdkSandbox(@NonNull android.content.pm.ProviderInfo); 508*344a7f5eSAndroid Build Coastguard Worker method public boolean canRegisterBroadcastReceiver(@NonNull android.content.IntentFilter, int, boolean); 509*344a7f5eSAndroid Build Coastguard Worker method public boolean canSendBroadcast(@NonNull android.content.Intent); 510*344a7f5eSAndroid Build Coastguard Worker method public void enforceAllowedToHostSandboxedActivity(@NonNull android.content.Intent, int, @NonNull String); 511*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void enforceAllowedToSendBroadcast(@NonNull android.content.Intent); 512*344a7f5eSAndroid Build Coastguard Worker method public void enforceAllowedToStartActivity(@NonNull android.content.Intent); 513*344a7f5eSAndroid Build Coastguard Worker method public void enforceAllowedToStartOrBindService(@NonNull android.content.Intent); 514*344a7f5eSAndroid Build Coastguard Worker method @NonNull public String getSdkSandboxProcessNameForInstrumentation(@NonNull android.content.pm.ApplicationInfo); 515*344a7f5eSAndroid Build Coastguard Worker method public void notifyInstrumentationFinished(@NonNull String, int); 516*344a7f5eSAndroid Build Coastguard Worker method public void notifyInstrumentationStarted(@NonNull String, int); 517*344a7f5eSAndroid Build Coastguard Worker field public static final String SERVICE_INTERFACE = "com.android.sdksandbox.SdkSandboxService"; 518*344a7f5eSAndroid Build Coastguard Worker field public static final String VERIFIER_RECEIVER = "com.android.server.sdksandbox.SdkSandboxVerifierReceiver"; 519*344a7f5eSAndroid Build Coastguard Worker } 520*344a7f5eSAndroid Build Coastguard Worker 521*344a7f5eSAndroid Build Coastguard Worker} 522*344a7f5eSAndroid Build Coastguard Worker 523*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.security { 524*344a7f5eSAndroid Build Coastguard Worker 525*344a7f5eSAndroid Build Coastguard Worker public final class FileIntegrity { 526*344a7f5eSAndroid Build Coastguard Worker method public static void setUpFsVerity(@NonNull java.io.File) throws java.io.IOException; 527*344a7f5eSAndroid Build Coastguard Worker method public static void setUpFsVerity(@NonNull android.os.ParcelFileDescriptor) throws java.io.IOException; 528*344a7f5eSAndroid Build Coastguard Worker } 529*344a7f5eSAndroid Build Coastguard Worker 530*344a7f5eSAndroid Build Coastguard Worker} 531*344a7f5eSAndroid Build Coastguard Worker 532*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.stats { 533*344a7f5eSAndroid Build Coastguard Worker 534*344a7f5eSAndroid Build Coastguard Worker public final class StatsHelper { 535*344a7f5eSAndroid Build Coastguard Worker method public static void sendStatsdReadyBroadcast(@NonNull android.content.Context); 536*344a7f5eSAndroid Build Coastguard Worker } 537*344a7f5eSAndroid Build Coastguard Worker 538*344a7f5eSAndroid Build Coastguard Worker} 539*344a7f5eSAndroid Build Coastguard Worker 540*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.usage { 541*344a7f5eSAndroid Build Coastguard Worker 542*344a7f5eSAndroid Build Coastguard Worker public interface StorageStatsManagerLocal { 543*344a7f5eSAndroid Build Coastguard Worker method public void registerStorageStatsAugmenter(@NonNull com.android.server.usage.StorageStatsManagerLocal.StorageStatsAugmenter, @NonNull String); 544*344a7f5eSAndroid Build Coastguard Worker } 545*344a7f5eSAndroid Build Coastguard Worker 546*344a7f5eSAndroid Build Coastguard Worker public static interface StorageStatsManagerLocal.StorageStatsAugmenter { 547*344a7f5eSAndroid Build Coastguard Worker method public void augmentStatsForPackageForUser(@NonNull android.content.pm.PackageStats, @NonNull String, @NonNull android.os.UserHandle, boolean); 548*344a7f5eSAndroid Build Coastguard Worker method public void augmentStatsForUid(@NonNull android.content.pm.PackageStats, int, boolean); 549*344a7f5eSAndroid Build Coastguard Worker method public void augmentStatsForUser(@NonNull android.content.pm.PackageStats, @NonNull android.os.UserHandle); 550*344a7f5eSAndroid Build Coastguard Worker } 551*344a7f5eSAndroid Build Coastguard Worker 552*344a7f5eSAndroid Build Coastguard Worker} 553*344a7f5eSAndroid Build Coastguard Worker 554*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.wifi { 555*344a7f5eSAndroid Build Coastguard Worker 556*344a7f5eSAndroid Build Coastguard Worker public class SupplicantManager { 557*344a7f5eSAndroid Build Coastguard Worker method public static void start(); 558*344a7f5eSAndroid Build Coastguard Worker method public static void stop(); 559*344a7f5eSAndroid Build Coastguard Worker } 560*344a7f5eSAndroid Build Coastguard Worker 561*344a7f5eSAndroid Build Coastguard Worker} 562*344a7f5eSAndroid Build Coastguard Worker 563*344a7f5eSAndroid Build Coastguard Workerpackage com.android.server.wm { 564*344a7f5eSAndroid Build Coastguard Worker 565*344a7f5eSAndroid Build Coastguard Worker public interface ActivityInterceptorCallback { 566*344a7f5eSAndroid Build Coastguard Worker method public default void onActivityLaunched(@NonNull android.app.TaskInfo, @NonNull android.content.pm.ActivityInfo, @NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); 567*344a7f5eSAndroid Build Coastguard Worker method @Nullable public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptResult onInterceptActivityLaunch(@NonNull com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo); 568*344a7f5eSAndroid Build Coastguard Worker field public static final int MAINLINE_SDK_SANDBOX_ORDER_ID = 1001; // 0x3e9 569*344a7f5eSAndroid Build Coastguard Worker } 570*344a7f5eSAndroid Build Coastguard Worker 571*344a7f5eSAndroid Build Coastguard Worker public static final class ActivityInterceptorCallback.ActivityInterceptResult { 572*344a7f5eSAndroid Build Coastguard Worker ctor public ActivityInterceptorCallback.ActivityInterceptResult(@NonNull android.content.Intent, @NonNull android.app.ActivityOptions, boolean); 573*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.app.ActivityOptions getActivityOptions(); 574*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.content.Intent getIntent(); 575*344a7f5eSAndroid Build Coastguard Worker method public boolean isActivityResolved(); 576*344a7f5eSAndroid Build Coastguard Worker } 577*344a7f5eSAndroid Build Coastguard Worker 578*344a7f5eSAndroid Build Coastguard Worker public static final class ActivityInterceptorCallback.ActivityInterceptorInfo { 579*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.content.pm.ActivityInfo getActivityInfo(); 580*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getCallingFeatureId(); 581*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getCallingPackage(); 582*344a7f5eSAndroid Build Coastguard Worker method public int getCallingPid(); 583*344a7f5eSAndroid Build Coastguard Worker method public int getCallingUid(); 584*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.app.ActivityOptions getCheckedOptions(); 585*344a7f5eSAndroid Build Coastguard Worker method @Nullable public Runnable getClearOptionsAnimationRunnable(); 586*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.content.Intent getIntent(); 587*344a7f5eSAndroid Build Coastguard Worker method public int getRealCallingPid(); 588*344a7f5eSAndroid Build Coastguard Worker method public int getRealCallingUid(); 589*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.content.pm.ResolveInfo getResolveInfo(); 590*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getResolvedType(); 591*344a7f5eSAndroid Build Coastguard Worker method public int getUserId(); 592*344a7f5eSAndroid Build Coastguard Worker } 593*344a7f5eSAndroid Build Coastguard Worker 594*344a7f5eSAndroid Build Coastguard Worker public static final class ActivityInterceptorCallback.ActivityInterceptorInfo.Builder { 595*344a7f5eSAndroid Build Coastguard Worker ctor public ActivityInterceptorCallback.ActivityInterceptorInfo.Builder(int, int, int, int, int, @NonNull android.content.Intent, @NonNull android.content.pm.ResolveInfo, @NonNull android.content.pm.ActivityInfo); 596*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo build(); 597*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingFeatureId(@Nullable String); 598*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCallingPackage(@Nullable String); 599*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setCheckedOptions(@Nullable android.app.ActivityOptions); 600*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setClearOptionsAnimationRunnable(@Nullable Runnable); 601*344a7f5eSAndroid Build Coastguard Worker method @NonNull public com.android.server.wm.ActivityInterceptorCallback.ActivityInterceptorInfo.Builder setResolvedType(@Nullable String); 602*344a7f5eSAndroid Build Coastguard Worker } 603*344a7f5eSAndroid Build Coastguard Worker 604*344a7f5eSAndroid Build Coastguard Worker public class ActivityInterceptorCallbackRegistry { 605*344a7f5eSAndroid Build Coastguard Worker method @NonNull public static com.android.server.wm.ActivityInterceptorCallbackRegistry getInstance(); 606*344a7f5eSAndroid Build Coastguard Worker method public void registerActivityInterceptorCallback(int, @NonNull com.android.server.wm.ActivityInterceptorCallback); 607*344a7f5eSAndroid Build Coastguard Worker method public void unregisterActivityInterceptorCallback(int); 608*344a7f5eSAndroid Build Coastguard Worker } 609*344a7f5eSAndroid Build Coastguard Worker 610*344a7f5eSAndroid Build Coastguard Worker} 611*344a7f5eSAndroid Build Coastguard Worker 612