Adds entries for Swipe Up Enable in Settings.Secure

Bug: 77549883
Test: None
Change-Id: Ie346c4f527fa014eadbfaa1d81d7f8a5f37f653f
This commit is contained in:
Mehdi Alizadeh
2018-04-03 18:38:34 -07:00
parent 0f96324f5a
commit 1264d880e2
4 changed files with 33 additions and 1 deletions

View File

@@ -7375,6 +7375,17 @@ public final class Settings {
private static final Validator CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED_VALIDATOR =
BOOLEAN_VALIDATOR;
/**
* Whether the swipe up gesture to switch apps should be enabled.
*
* @hide
*/
public static final String SWIPE_UP_TO_SWITCH_APPS_ENABLED =
"swipe_up_to_switch_apps_enabled";
private static final Validator SWIPE_UP_TO_SWITCH_APPS_ENABLED_VALIDATOR =
BOOLEAN_VALIDATOR;
/**
* Whether or not the smart camera lift trigger that launches the camera when the user moves
* the phone into a position for taking photos should be enabled.
@@ -7886,6 +7897,7 @@ public final class Settings {
NIGHT_DISPLAY_AUTO_MODE,
SYNC_PARENT_SOUNDS,
CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
SWIPE_UP_TO_SWITCH_APPS_ENABLED,
CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
SYSTEM_NAVIGATION_KEYS_ENABLED,
QS_TILES,
@@ -8019,6 +8031,8 @@ public final class Settings {
VALIDATORS.put(SYNC_PARENT_SOUNDS, SYNC_PARENT_SOUNDS_VALIDATOR);
VALIDATORS.put(CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED_VALIDATOR);
VALIDATORS.put(SWIPE_UP_TO_SWITCH_APPS_ENABLED,
SWIPE_UP_TO_SWITCH_APPS_ENABLED_VALIDATOR);
VALIDATORS.put(CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED_VALIDATOR);
VALIDATORS.put(SYSTEM_NAVIGATION_KEYS_ENABLED,

View File

@@ -213,6 +213,13 @@ message SecureSettingsProto {
optional SettingProto keyguard_slice_uri = 29;
optional SettingProto last_setup_shown = 30 [ (android.privacy).dest = DEST_AUTOMATIC ];
message Launcher {
option (android.msg_privacy).dest = DEST_EXPLICIT;
optional SettingProto swipe_up_to_switch_apps_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
}
optional Launcher launcher = 70;
message Location {
option (android.msg_privacy).dest = DEST_EXPLICIT;
@@ -479,5 +486,5 @@ message SecureSettingsProto {
// Please insert fields in alphabetical order and group them into messages
// if possible (to avoid reaching the method limit).
// Next tag = 70;
// Next tag = 71;
}

View File

@@ -2231,6 +2231,12 @@ class SettingsProtoDumpUtil {
Settings.Secure.WAKE_GESTURE_ENABLED,
SecureSettingsProto.WAKE_GESTURE_ENABLED);
final long launcherToken = p.start(SecureSettingsProto.LAUNCHER);
dumpSetting(s, p,
Settings.Secure.SWIPE_UP_TO_SWITCH_APPS_ENABLED,
SecureSettingsProto.Launcher.SWIPE_UP_TO_SWITCH_APPS_ENABLED);
p.end(launcherToken);
// Please insert new settings using the same order as in SecureSettingsProto.
p.end(token);

View File

@@ -5578,6 +5578,11 @@ message MetricsEvent {
// OS: P
WIFI_SCANNING_NEEDED_DIALOG = 1373;
// OPEN: Settings > System > Gestures > Swipe up gesture
// CATEGORY: SETTINGS
// OS: P
SETTINGS_GESTURE_SWIPE_UP = 1374;
// ---- End P Constants, all P constants go above this line ----
// Add new aosp constants above this line.
// END OF AOSP CONSTANTS