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