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

Commit b7c6196c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Adds smart autorotate setting to the system." into sc-dev am: b5884dc6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13420209

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9f51b735e8fa07ec88bb784fb006bf926c4ea368
parents 86da36c8 b5884dc6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5930,6 +5930,13 @@ public final class Settings {
         */
        public static final String ADAPTIVE_SLEEP = "adaptive_sleep";
        /**
         * Setting key to indicate whether camera-based autorotate is enabled.
         *
         * @hide
         */
        public static final String CAMERA_AUTOROTATE = "camera_autorotate";
        /**
         * @deprecated Use {@link android.provider.Settings.Global#DEVELOPMENT_SETTINGS_ENABLED}
         * instead
+6 −1
Original line number Diff line number Diff line
@@ -518,6 +518,11 @@ message SecureSettingsProto {
    }
    optional Search search = 48;

    message CameraAutorotate {
        optional SettingProto enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
    }
    optional CameraAutorotate camera_autorotate = 88;

    message SpellChecker {
        option (android.msg_privacy).dest = DEST_EXPLICIT;

@@ -642,5 +647,5 @@ message SecureSettingsProto {

    // Please insert fields in alphabetical order and group them into messages
    // if possible (to avoid reaching the method limit).
    // Next tag = 88;
    // Next tag = 89;
}
+3 −0
Original line number Diff line number Diff line
@@ -517,6 +517,9 @@
    <!-- Flag indicating whether we should enable smart battery. -->
    <bool name="config_smart_battery_available">false</bool>

    <!-- Flag indicating whether we should enable camera-based autorotate -->
    <bool name="config_camera_autorotate">false</bool>

    <!-- Fast brightness animation ramp rate in brightness units per second-->
    <integer translatable="false" name="config_brightness_ramp_rate_fast">180</integer>

+1 −0
Original line number Diff line number Diff line
@@ -1881,6 +1881,7 @@
  <java-symbol type="bool" name="config_enableServerNotificationEffectsForAutomotive" />
  <java-symbol type="bool" name="config_useAttentionLight" />
  <java-symbol type="bool" name="config_adaptive_sleep_available" />
  <java-symbol type="bool" name="config_camera_autorotate"/>
  <java-symbol type="bool" name="config_animateScreenLights" />
  <java-symbol type="bool" name="config_automatic_brightness_available" />
  <java-symbol type="bool" name="config_smart_battery_available" />
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ public class SecureSettings {
        Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
        Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED,
        Settings.Secure.ADAPTIVE_SLEEP,
        Settings.Secure.CAMERA_AUTOROTATE,
        Settings.Secure.AUTOFILL_SERVICE,
        Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
        Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
Loading