Loading core/java/android/provider/Settings.java +9 −2 Original line number Original line Diff line number Diff line Loading @@ -7882,6 +7882,13 @@ public final class Settings { */ */ public static final String AWARE_TAP_PAUSE_TOUCH_COUNT = "aware_tap_pause_touch_count"; public static final String AWARE_TAP_PAUSE_TOUCH_COUNT = "aware_tap_pause_touch_count"; /** * For user preference if swipe bottom to expand notification gesture enabled. * @hide */ public static final String SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED = "swipe_bottom_to_notification_enabled"; /** /** * For user preference if One-Handed Mode enabled. * For user preference if One-Handed Mode enabled. * @hide * @hide Loading @@ -7889,13 +7896,13 @@ public final class Settings { public static final String ONE_HANDED_MODE_ENABLED = "one_handed_mode_enabled"; public static final String ONE_HANDED_MODE_ENABLED = "one_handed_mode_enabled"; /** /** * For user perference if One-Handed Mode timeout. * For user preference if One-Handed Mode timeout. * @hide * @hide */ */ public static final String ONE_HANDED_MODE_TIMEOUT = "one_handed_mode_timeout"; public static final String ONE_HANDED_MODE_TIMEOUT = "one_handed_mode_timeout"; /** /** * For user tapps app to exit One-Handed Mode. * For user taps app to exit One-Handed Mode. * @hide * @hide */ */ public static final String TAPS_APP_TO_EXIT = "taps_app_to_exit"; public static final String TAPS_APP_TO_EXIT = "taps_app_to_exit"; Loading core/proto/android/app/settings_enums.proto +6 −1 Original line number Original line Diff line number Diff line Loading @@ -1722,7 +1722,7 @@ enum PageId { // OPEN: Settings > System > Language & Region // OPEN: Settings > System > Language & Region SETTINGS_LANGUAGE_CATEGORY = 750; SETTINGS_LANGUAGE_CATEGORY = 750; // OPEN: Settings > System > Input & Gesture > Swipe to notification gesture // OPEN: Settings > System > Input & Gesture > Swipe fingerprint for notifications SETTINGS_GESTURE_SWIPE_TO_NOTIFICATION = 751; SETTINGS_GESTURE_SWIPE_TO_NOTIFICATION = 751; // OPEN: Settings > System > Input & Gesture > Double tap power button gesture // OPEN: Settings > System > Input & Gesture > Double tap power button gesture Loading Loading @@ -2688,4 +2688,9 @@ enum PageId { // CATEGORY: SETTINGS // CATEGORY: SETTINGS // OS: R // OS: R MEDIA_CONTROLS_SETTINGS = 1845; MEDIA_CONTROLS_SETTINGS = 1845; // OPEN: Settings > System > Gestures > Swipe for notification // CATEGORY: SETTINGS // OS: R QPR SETTINGS_SWIPE_BOTTOM_TO_NOTIFICATION = 1846; } } core/proto/android/providers/settings/secure.proto +11 −10 Original line number Original line Diff line number Diff line Loading @@ -381,6 +381,15 @@ message SecureSettingsProto { } } optional Notification notification = 41; optional Notification notification = 41; message OneHanded { option (android.msg_privacy).dest = DEST_EXPLICIT; optional SettingProto one_handed_mode_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto one_handed_mode_timeout = 2 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto taps_app_to_exit = 3 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional OneHanded onehanded = 80; message PackageVerifier { message PackageVerifier { option (android.msg_privacy).dest = DEST_EXPLICIT; option (android.msg_privacy).dest = DEST_EXPLICIT; Loading Loading @@ -502,6 +511,7 @@ message SecureSettingsProto { // parent profile. // parent profile. optional SettingProto sync_parent_sounds = 55 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto sync_parent_sounds = 55 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto system_navigation_keys_enabled = 56 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto system_navigation_keys_enabled = 56 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto swipe_bottom_to_notification_enabled = 82 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto theme_customization_overlay_packages = 75 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto theme_customization_overlay_packages = 75 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto trust_agents_initialized = 57 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto trust_agents_initialized = 57 [ (android.privacy).dest = DEST_AUTOMATIC ]; Loading Loading @@ -594,16 +604,7 @@ message SecureSettingsProto { } } optional Zen zen = 71; optional Zen zen = 71; message OneHanded { option (android.msg_privacy).dest = DEST_EXPLICIT; optional SettingProto one_handed_mode_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto one_handed_mode_timeout = 2 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto taps_app_to_exit = 3 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional OneHanded onehanded = 80; // Please insert fields in alphabetical order and group them into messages // Please insert fields in alphabetical order and group them into messages // if possible (to avoid reaching the method limit). // if possible (to avoid reaching the method limit). // Next tag = 82; // Next tag = 83; } } packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -172,5 +172,6 @@ public class SecureSettings { Settings.Secure.ONE_HANDED_MODE_ENABLED, Settings.Secure.ONE_HANDED_MODE_ENABLED, Settings.Secure.ONE_HANDED_MODE_TIMEOUT, Settings.Secure.ONE_HANDED_MODE_TIMEOUT, Settings.Secure.TAPS_APP_TO_EXIT, Settings.Secure.TAPS_APP_TO_EXIT, Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, }; }; } } packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -259,5 +259,6 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.ONE_HANDED_MODE_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.ONE_HANDED_MODE_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.ONE_HANDED_MODE_TIMEOUT, ANY_INTEGER_VALIDATOR); VALIDATORS.put(Secure.ONE_HANDED_MODE_TIMEOUT, ANY_INTEGER_VALIDATOR); VALIDATORS.put(Secure.TAPS_APP_TO_EXIT, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.TAPS_APP_TO_EXIT, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, BOOLEAN_VALIDATOR); } } } } Loading
core/java/android/provider/Settings.java +9 −2 Original line number Original line Diff line number Diff line Loading @@ -7882,6 +7882,13 @@ public final class Settings { */ */ public static final String AWARE_TAP_PAUSE_TOUCH_COUNT = "aware_tap_pause_touch_count"; public static final String AWARE_TAP_PAUSE_TOUCH_COUNT = "aware_tap_pause_touch_count"; /** * For user preference if swipe bottom to expand notification gesture enabled. * @hide */ public static final String SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED = "swipe_bottom_to_notification_enabled"; /** /** * For user preference if One-Handed Mode enabled. * For user preference if One-Handed Mode enabled. * @hide * @hide Loading @@ -7889,13 +7896,13 @@ public final class Settings { public static final String ONE_HANDED_MODE_ENABLED = "one_handed_mode_enabled"; public static final String ONE_HANDED_MODE_ENABLED = "one_handed_mode_enabled"; /** /** * For user perference if One-Handed Mode timeout. * For user preference if One-Handed Mode timeout. * @hide * @hide */ */ public static final String ONE_HANDED_MODE_TIMEOUT = "one_handed_mode_timeout"; public static final String ONE_HANDED_MODE_TIMEOUT = "one_handed_mode_timeout"; /** /** * For user tapps app to exit One-Handed Mode. * For user taps app to exit One-Handed Mode. * @hide * @hide */ */ public static final String TAPS_APP_TO_EXIT = "taps_app_to_exit"; public static final String TAPS_APP_TO_EXIT = "taps_app_to_exit"; Loading
core/proto/android/app/settings_enums.proto +6 −1 Original line number Original line Diff line number Diff line Loading @@ -1722,7 +1722,7 @@ enum PageId { // OPEN: Settings > System > Language & Region // OPEN: Settings > System > Language & Region SETTINGS_LANGUAGE_CATEGORY = 750; SETTINGS_LANGUAGE_CATEGORY = 750; // OPEN: Settings > System > Input & Gesture > Swipe to notification gesture // OPEN: Settings > System > Input & Gesture > Swipe fingerprint for notifications SETTINGS_GESTURE_SWIPE_TO_NOTIFICATION = 751; SETTINGS_GESTURE_SWIPE_TO_NOTIFICATION = 751; // OPEN: Settings > System > Input & Gesture > Double tap power button gesture // OPEN: Settings > System > Input & Gesture > Double tap power button gesture Loading Loading @@ -2688,4 +2688,9 @@ enum PageId { // CATEGORY: SETTINGS // CATEGORY: SETTINGS // OS: R // OS: R MEDIA_CONTROLS_SETTINGS = 1845; MEDIA_CONTROLS_SETTINGS = 1845; // OPEN: Settings > System > Gestures > Swipe for notification // CATEGORY: SETTINGS // OS: R QPR SETTINGS_SWIPE_BOTTOM_TO_NOTIFICATION = 1846; } }
core/proto/android/providers/settings/secure.proto +11 −10 Original line number Original line Diff line number Diff line Loading @@ -381,6 +381,15 @@ message SecureSettingsProto { } } optional Notification notification = 41; optional Notification notification = 41; message OneHanded { option (android.msg_privacy).dest = DEST_EXPLICIT; optional SettingProto one_handed_mode_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto one_handed_mode_timeout = 2 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto taps_app_to_exit = 3 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional OneHanded onehanded = 80; message PackageVerifier { message PackageVerifier { option (android.msg_privacy).dest = DEST_EXPLICIT; option (android.msg_privacy).dest = DEST_EXPLICIT; Loading Loading @@ -502,6 +511,7 @@ message SecureSettingsProto { // parent profile. // parent profile. optional SettingProto sync_parent_sounds = 55 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto sync_parent_sounds = 55 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto system_navigation_keys_enabled = 56 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto system_navigation_keys_enabled = 56 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto swipe_bottom_to_notification_enabled = 82 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto theme_customization_overlay_packages = 75 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto theme_customization_overlay_packages = 75 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto trust_agents_initialized = 57 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto trust_agents_initialized = 57 [ (android.privacy).dest = DEST_AUTOMATIC ]; Loading Loading @@ -594,16 +604,7 @@ message SecureSettingsProto { } } optional Zen zen = 71; optional Zen zen = 71; message OneHanded { option (android.msg_privacy).dest = DEST_EXPLICIT; optional SettingProto one_handed_mode_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto one_handed_mode_timeout = 2 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto taps_app_to_exit = 3 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional OneHanded onehanded = 80; // Please insert fields in alphabetical order and group them into messages // Please insert fields in alphabetical order and group them into messages // if possible (to avoid reaching the method limit). // if possible (to avoid reaching the method limit). // Next tag = 82; // Next tag = 83; } }
packages/SettingsProvider/src/android/provider/settings/backup/SecureSettings.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -172,5 +172,6 @@ public class SecureSettings { Settings.Secure.ONE_HANDED_MODE_ENABLED, Settings.Secure.ONE_HANDED_MODE_ENABLED, Settings.Secure.ONE_HANDED_MODE_TIMEOUT, Settings.Secure.ONE_HANDED_MODE_TIMEOUT, Settings.Secure.TAPS_APP_TO_EXIT, Settings.Secure.TAPS_APP_TO_EXIT, Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, }; }; } }
packages/SettingsProvider/src/android/provider/settings/validators/SecureSettingsValidators.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -259,5 +259,6 @@ public class SecureSettingsValidators { VALIDATORS.put(Secure.ONE_HANDED_MODE_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.ONE_HANDED_MODE_ENABLED, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.ONE_HANDED_MODE_TIMEOUT, ANY_INTEGER_VALIDATOR); VALIDATORS.put(Secure.ONE_HANDED_MODE_TIMEOUT, ANY_INTEGER_VALIDATOR); VALIDATORS.put(Secure.TAPS_APP_TO_EXIT, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.TAPS_APP_TO_EXIT, BOOLEAN_VALIDATOR); VALIDATORS.put(Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, BOOLEAN_VALIDATOR); } } } }