Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -11274,6 +11274,7 @@ package android.content.pm { field public static final java.lang.String FEATURE_CAMERA_FLASH = "android.hardware.camera.flash"; field public static final java.lang.String FEATURE_CAMERA_FRONT = "android.hardware.camera.front"; field public static final java.lang.String FEATURE_CAMERA_LEVEL_FULL = "android.hardware.camera.level.full"; field public static final java.lang.String FEATURE_CANT_SAVE_STATE = "android.software.cant_save_state"; field public static final java.lang.String FEATURE_COMPANION_DEVICE_SETUP = "android.software.companion_device_setup"; field public static final java.lang.String FEATURE_CONNECTION_SERVICE = "android.software.connectionservice"; field public static final java.lang.String FEATURE_CONSUMER_IR = "android.hardware.consumerir"; core/java/android/content/pm/PackageManager.java +7 −0 Original line number Diff line number Diff line Loading @@ -2281,6 +2281,13 @@ public abstract class PackageManager { */ @SdkConstant(SdkConstantType.FEATURE) public static final String FEATURE_APP_WIDGETS = "android.software.app_widgets"; /** * Feature for {@link #getSystemAvailableFeatures} and * {@link #hasSystemFeature}: The device supports the * {@link android.R.attr#cantSaveState} API. */ @SdkConstant(SdkConstantType.FEATURE) public static final String FEATURE_CANT_SAVE_STATE = "android.software.cant_save_state"; /** * @hide Loading services/core/java/com/android/server/am/ActivityManagerService.java +4 −0 Original line number Diff line number Diff line Loading @@ -1970,6 +1970,8 @@ public class ActivityManagerService extends IActivityManager.Stub final boolean mPermissionReviewRequired; boolean mHasHeavyWeightFeature; /** * Whether to force background check on all apps (for battery saver) or not. */ Loading Loading @@ -15081,6 +15083,8 @@ public class ActivityManagerService extends IActivityManager.Stub return; } mHasHeavyWeightFeature = mContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_CANT_SAVE_STATE); mLocalDeviceIdleController = LocalServices.getService(DeviceIdleController.LocalService.class); mAssistUtils = new AssistUtils(mContext); services/core/java/com/android/server/am/ActivityStackSupervisor.java +2 −1 Original line number Diff line number Diff line Loading @@ -1526,7 +1526,8 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D mService.getLifecycleManager().scheduleTransaction(clientTransaction); if ((app.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0) { if ((app.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0 && mService.mHasHeavyWeightFeature) { // This may be a heavy-weight process! Note that the package // manager will ensure that only activity can run in the main // process of the .apk, which is the only thing that will be Loading services/core/java/com/android/server/am/ActivityStarter.java +2 −1 Original line number Diff line number Diff line Loading @@ -1023,7 +1023,8 @@ class ActivityStarter { if (aInfo != null && (aInfo.applicationInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0) { & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0 && mService.mHasHeavyWeightFeature) { // This may be a heavy-weight process! Check to see if we already // have another, different heavy-weight process running. if (aInfo.processName.equals(aInfo.applicationInfo.packageName)) { Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -11274,6 +11274,7 @@ package android.content.pm { field public static final java.lang.String FEATURE_CAMERA_FLASH = "android.hardware.camera.flash"; field public static final java.lang.String FEATURE_CAMERA_FRONT = "android.hardware.camera.front"; field public static final java.lang.String FEATURE_CAMERA_LEVEL_FULL = "android.hardware.camera.level.full"; field public static final java.lang.String FEATURE_CANT_SAVE_STATE = "android.software.cant_save_state"; field public static final java.lang.String FEATURE_COMPANION_DEVICE_SETUP = "android.software.companion_device_setup"; field public static final java.lang.String FEATURE_CONNECTION_SERVICE = "android.software.connectionservice"; field public static final java.lang.String FEATURE_CONSUMER_IR = "android.hardware.consumerir";
core/java/android/content/pm/PackageManager.java +7 −0 Original line number Diff line number Diff line Loading @@ -2281,6 +2281,13 @@ public abstract class PackageManager { */ @SdkConstant(SdkConstantType.FEATURE) public static final String FEATURE_APP_WIDGETS = "android.software.app_widgets"; /** * Feature for {@link #getSystemAvailableFeatures} and * {@link #hasSystemFeature}: The device supports the * {@link android.R.attr#cantSaveState} API. */ @SdkConstant(SdkConstantType.FEATURE) public static final String FEATURE_CANT_SAVE_STATE = "android.software.cant_save_state"; /** * @hide Loading
services/core/java/com/android/server/am/ActivityManagerService.java +4 −0 Original line number Diff line number Diff line Loading @@ -1970,6 +1970,8 @@ public class ActivityManagerService extends IActivityManager.Stub final boolean mPermissionReviewRequired; boolean mHasHeavyWeightFeature; /** * Whether to force background check on all apps (for battery saver) or not. */ Loading Loading @@ -15081,6 +15083,8 @@ public class ActivityManagerService extends IActivityManager.Stub return; } mHasHeavyWeightFeature = mContext.getPackageManager().hasSystemFeature( PackageManager.FEATURE_CANT_SAVE_STATE); mLocalDeviceIdleController = LocalServices.getService(DeviceIdleController.LocalService.class); mAssistUtils = new AssistUtils(mContext);
services/core/java/com/android/server/am/ActivityStackSupervisor.java +2 −1 Original line number Diff line number Diff line Loading @@ -1526,7 +1526,8 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D mService.getLifecycleManager().scheduleTransaction(clientTransaction); if ((app.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0) { if ((app.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0 && mService.mHasHeavyWeightFeature) { // This may be a heavy-weight process! Note that the package // manager will ensure that only activity can run in the main // process of the .apk, which is the only thing that will be Loading
services/core/java/com/android/server/am/ActivityStarter.java +2 −1 Original line number Diff line number Diff line Loading @@ -1023,7 +1023,8 @@ class ActivityStarter { if (aInfo != null && (aInfo.applicationInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0) { & ApplicationInfo.PRIVATE_FLAG_CANT_SAVE_STATE) != 0 && mService.mHasHeavyWeightFeature) { // This may be a heavy-weight process! Check to see if we already // have another, different heavy-weight process running. if (aInfo.processName.equals(aInfo.applicationInfo.packageName)) { Loading