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

am: e9f42318f6

* commit 'e9f42318f61889133ad7fdcbe28bbd58f0c6739e':
  PowerManager: Adds Documentation to isSustainedPerformanceModeSupported()

Change-Id: I89f6847cba38d9e2f833892c7a849c49261e8814
This commit is contained in:
Ruchi Kandoi
2016-05-27 16:32:29 +00:00
committed by android-build-merger

View File

@@ -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(