Android config updates for one handed bouncer. am: 072bedcef8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13688768 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib3c06c4833818739ea53c770b11749a43f8b631d
This commit is contained in:
@@ -14622,6 +14622,29 @@ public final class Settings {
|
||||
public static final String POWER_BUTTON_VERY_LONG_PRESS =
|
||||
"power_button_very_long_press";
|
||||
|
||||
|
||||
/**
|
||||
* Keyguard should be on the left hand side of the screen, for wide screen layouts.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static final int ONE_HANDED_KEYGUARD_SIDE_LEFT = 0;
|
||||
|
||||
/**
|
||||
* Keyguard should be on the right hand side of the screen, for wide screen layouts.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static final int ONE_HANDED_KEYGUARD_SIDE_RIGHT = 1;
|
||||
/**
|
||||
* In one handed mode, which side the keyguard should be on. Allowable values are one of
|
||||
* the ONE_HANDED_KEYGUARD_SIDE_* constants.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@Readable
|
||||
public static final String ONE_HANDED_KEYGUARD_SIDE = "one_handed_keyguard_side";
|
||||
|
||||
/**
|
||||
* Keys we no longer back up under the current schema, but want to continue to
|
||||
* process when restoring historical backup datasets.
|
||||
|
||||
@@ -4204,4 +4204,6 @@
|
||||
<java-symbol type="bool" name="config_telephony5gNonStandalone" />
|
||||
|
||||
<java-symbol type="bool" name="config_voice_data_sms_auto_fallback" />
|
||||
|
||||
<java-symbol type="bool" name="config_enableOneHandedKeyguard" />
|
||||
</resources>
|
||||
|
||||
@@ -147,5 +147,10 @@ public class GlobalSettingsValidators {
|
||||
VALIDATORS.put(Global.DEVELOPMENT_SETTINGS_ENABLED, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(Global.NOTIFICATION_FEEDBACK_ENABLED, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(Global.RESTRICTED_NETWORKING_MODE, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(
|
||||
Global.ONE_HANDED_KEYGUARD_SIDE,
|
||||
new InclusiveIntegerRangeValidator(
|
||||
/* first= */Global.ONE_HANDED_KEYGUARD_SIDE_LEFT,
|
||||
/* last= */Global.ONE_HANDED_KEYGUARD_SIDE_RIGHT));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,6 +283,7 @@ public class SettingsBackupTest {
|
||||
Settings.Global.EUICC_REMOVING_INVISIBLE_PROFILES_TIMEOUT_MILLIS,
|
||||
Settings.Global.EUICC_SWITCH_SLOT_TIMEOUT_MILLIS,
|
||||
Settings.Global.FANCY_IME_ANIMATIONS,
|
||||
Settings.Global.ONE_HANDED_KEYGUARD_SIDE,
|
||||
Settings.Global.FORCE_ALLOW_ON_EXTERNAL,
|
||||
Settings.Global.FORCED_APP_STANDBY_ENABLED,
|
||||
Settings.Global.FORCED_APP_STANDBY_FOR_SMALL_BATTERY_ENABLED,
|
||||
|
||||
Reference in New Issue
Block a user