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

Commit c682bdb7 authored by Bangbang Huang's avatar Bangbang Huang Committed by Joey Rizzoli
Browse files

[1/2] base: Add new feature of One-hand UI Mode



Bug: 33118157
Test: builds, and test feature in bug 33118157

Change-Id: Ic1b62a8d0821385cfe05818c72f9554588457a65
Signed-off-by: default avatarJoey Rizzoli <joey@lineageos.org>
parent 833d9132
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8465,6 +8465,11 @@ public final class Settings {
         */
        public static final String ALARM_MANAGER_CONSTANTS = "alarm_manager_constants";

        /**
         * @hide
         */
        public static final String SINGLE_HAND_MODE = "single_hand_mode";

        /**
         * Job scheduler specific settings.
         * This is encoded as a key=value list, separated by commas. Ex:
+8 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ public interface WindowManagerPolicy {

    public final static int FLAG_INTERACTIVE = 0x20000000;
    public final static int FLAG_PASS_TO_USER = 0x40000000;
    public final static int POLICY_FLAG_REMOVE_HANDYMODE = 0x80000000;

    // Flags for IActivityManager.keyguardGoingAway()
    public final static int KEYGUARD_GOING_AWAY_FLAG_TO_SHADE = 1 << 0;
@@ -1448,4 +1449,11 @@ public interface WindowManagerPolicy {
    public void onConfigurationChanged();

    public boolean shouldRotateSeamlessly(int oldRotation, int newRotation);

    /**
     * Lock the device orientation to the specified rotation,
     * Sensor input or hdmi will be ignored until
     * freezeOrThawRotation(-1) is called or reboot the devcie.
     */
    public void freezeOrThawRotation(int rotation);
}
+4.46 KiB
Loading image diff...
+4.15 KiB
Loading image diff...
+4.07 KiB
Loading image diff...
Loading