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

Commit 33b539cb authored by Rick Yiu's avatar Rick Yiu Committed by Jimmy Shiu
Browse files

Add a new power mode

Add a new mode to indicate the display layout is changing due to
rotation or fold/unfold behavior.

Bug: 298150450
Test: build pass
Change-Id: I0a04437f7431ec0406cc6b3bf41d8dca77138897
parent af26d35c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -314,6 +314,13 @@ public abstract class PowerManagerInternal {
     */
    public static final int MODE_DISPLAY_INACTIVE = 9;

    /**
     * Mode: It indicates that display is changing layout due to rotation or fold
     * unfold behavior.
     * Defined in hardware/interfaces/power/aidl/android/hardware/power/Mode.aidl
     */
    public static final int MODE_DISPLAY_CHANGE = 17;

    /**
     * SetPowerMode() is called to enable/disable specific hint mode, which
     * may result in adjustment of power/performance parameters of the