Android config updates for one handed bouncer.
This is the changes in Settings (to store the current screen side) for the one-handed keyguard. This also checks in symbols.xml to expose the platform config to SysUI (the lines in symbols.xml are currently in config.xml; I'm assuming that a previous revert didn't remove them). Bug: 170858298 Test: included. Change-Id: I9d91a9360c821562634e83295f5e2e340f6de1d5
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