Skip to content
Snippets Groups Projects
Commit 7730e57d authored by Ruchi Kandoi's avatar Ruchi Kandoi Committed by Android (Google) Code Review
Browse files

Merge "PowerManager: Adds Documentation to isSustainedPerformanceModeSupported()" into nyc-dev

parents 83e50327 c45908d1
No related branches found
No related tags found
No related merge requests found
......@@ -1021,9 +1021,19 @@ 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 android.view.Window#setSustainedPerformanceMode}.
* This function checks if the device has implemented Sustained Performance
* Mode. This needs to be checked only once and is constant for a particular
* device/release.
*
* Sustained Performance Mode is intended to provide a consistent level of
* performance for prolonged amount of time.
*
* Applications should check if the device supports this mode, before using
* {@link android.view.Window#setSustainedPerformanceMode}.
*
* @return Returns True if the device supports it, false otherwise.
*
* @see android.view.Window#setSustainedPerformanceMode
*/
public boolean isSustainedPerformanceModeSupported() {
return mContext.getResources().getBoolean(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment