diff --git a/core/api/current.txt b/core/api/current.txt index a7bca5a9e09cb..da2b4e9490874 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -12185,6 +12185,7 @@ package android.content.pm { field public static final String FEATURE_RAM_NORMAL = "android.hardware.ram.normal"; field public static final String FEATURE_SCREEN_LANDSCAPE = "android.hardware.screen.landscape"; field public static final String FEATURE_SCREEN_PORTRAIT = "android.hardware.screen.portrait"; + field public static final String FEATURE_SEAMLESS_REFRESH_RATE_SWITCHING = "android.software.seamless_refresh_rate_switching"; field public static final String FEATURE_SECURELY_REMOVES_USERS = "android.software.securely_removes_users"; field public static final String FEATURE_SECURE_LOCK_SCREEN = "android.software.secure_lock_screen"; field public static final String FEATURE_SECURITY_MODEL_COMPATIBLE = "android.hardware.security.model.compatible"; diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 8ae53100d4d50..f3ccfb0ac4f2c 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -2978,6 +2978,14 @@ public abstract class PackageManager { public static final String FEATURE_VIRTUALIZATION_FRAMEWORK = "android.software.virtualization_framework"; + /** + * Feature for {@link #getSystemAvailableFeatures()} and {@link #hasSystemFeature(String)}. + * This feature indicates whether device supports seamless refresh rate switching. + */ + @SdkConstant(SdkConstantType.FEATURE) + public static final String FEATURE_SEAMLESS_REFRESH_RATE_SWITCHING + = "android.software.seamless_refresh_rate_switching"; + /** * Feature for {@link #getSystemAvailableFeatures} and * {@link #hasSystemFeature(String, int)}: If this feature is supported, the Vulkan