Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -29074,6 +29074,7 @@ package android.os { method public boolean isInteractive(); method public boolean isPowerSaveMode(); method public deprecated boolean isScreenOn(); method public boolean isSustainedPerformanceModeSupported(); method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String); api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -31307,6 +31307,7 @@ package android.os { method public boolean isPowerSaveMode(); method public boolean isScreenBrightnessBoosted(); method public deprecated boolean isScreenOn(); method public boolean isSustainedPerformanceModeSupported(); method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String); api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -29139,6 +29139,7 @@ package android.os { method public boolean isInteractive(); method public boolean isPowerSaveMode(); method public deprecated boolean isScreenOn(); method public boolean isSustainedPerformanceModeSupported(); method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String); core/java/android/os/PowerManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -1030,6 +1030,16 @@ public final class PowerManager { } } /** * Returns True if the device supports Sustained Performance Mode. * Applications Should check if the device supports this mode, before * using {@link #SUSTAINED_PERFORMANCE_WAKE_LOCK}. */ public boolean isSustainedPerformanceModeSupported() { return mContext.getResources().getBoolean( com.android.internal.R.bool.config_sustainedPerformanceModeSupported); } /** * Intent that is broadcast when the state of {@link #isPowerSaveMode()} changes. * This broadcast is only sent to registered receivers. Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -2504,4 +2504,7 @@ <!-- True if the device requires AppWidgetService even if it does not have the PackageManager.FEATURE_APP_WIDGETS feature --> <bool name="config_enableAppWidgetService">false</bool> <!-- True if the device supports Sustained Performance Mode--> <bool name="config_sustainedPerformanceModeSupported">false</bool> </resources> Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -29074,6 +29074,7 @@ package android.os { method public boolean isInteractive(); method public boolean isPowerSaveMode(); method public deprecated boolean isScreenOn(); method public boolean isSustainedPerformanceModeSupported(); method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String);
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -31307,6 +31307,7 @@ package android.os { method public boolean isPowerSaveMode(); method public boolean isScreenBrightnessBoosted(); method public deprecated boolean isScreenOn(); method public boolean isSustainedPerformanceModeSupported(); method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String);
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -29139,6 +29139,7 @@ package android.os { method public boolean isInteractive(); method public boolean isPowerSaveMode(); method public deprecated boolean isScreenOn(); method public boolean isSustainedPerformanceModeSupported(); method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String);
core/java/android/os/PowerManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -1030,6 +1030,16 @@ public final class PowerManager { } } /** * Returns True if the device supports Sustained Performance Mode. * Applications Should check if the device supports this mode, before * using {@link #SUSTAINED_PERFORMANCE_WAKE_LOCK}. */ public boolean isSustainedPerformanceModeSupported() { return mContext.getResources().getBoolean( com.android.internal.R.bool.config_sustainedPerformanceModeSupported); } /** * Intent that is broadcast when the state of {@link #isPowerSaveMode()} changes. * This broadcast is only sent to registered receivers. Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -2504,4 +2504,7 @@ <!-- True if the device requires AppWidgetService even if it does not have the PackageManager.FEATURE_APP_WIDGETS feature --> <bool name="config_enableAppWidgetService">false</bool> <!-- True if the device supports Sustained Performance Mode--> <bool name="config_sustainedPerformanceModeSupported">false</bool> </resources>