Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c45908d1 authored by Ruchi Kandoi's avatar Ruchi Kandoi
Browse files

PowerManager: Adds Documentation to


isSustainedPerformanceModeSupported()

Bug: 28775592
Change-Id: Iea4f77d2508141ac0748165f68e6e1ca235ab804
Signed-off-by: default avatarRuchi Kandoi <kandoiruchi@google.com>
parent 3b25fd08
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -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(