Add a setting to enable the triple press gesture to toggle accessibility in wear.

Bug: 187390020
Change-Id: I0e6268304c447ab32d69f2bffba44d79f186a346
(cherry picked from commit 1b16bb9f03d7120ad398e5dc771a1814480a7cab)
This commit is contained in:
Himanshi
2021-05-13 19:43:27 +01:00
committed by Josh Yang
parent f347374338
commit c766aeb6d2
2 changed files with 13 additions and 1 deletions

View File

@@ -3999,6 +3999,16 @@ public final class Settings {
*/
public static final int ADVANCED_SETTINGS_DEFAULT = 0;
/**
* If the triple press gesture for toggling accessibility is enabled.
* Set to 1 for true and 0 for false.
*
* This setting is used only internally.
* @hide
*/
public static final String WEAR_ACCESSIBILITY_GESTURE_ENABLED
= "wear_accessibility_gesture_enabled";
/**
* @deprecated Use {@link android.provider.Settings.Global#AIRPLANE_MODE_ON} instead
*/
@@ -5261,6 +5271,7 @@ public final class Settings {
PRIVATE_SETTINGS.add(WIFI_USE_STATIC_IP);
PRIVATE_SETTINGS.add(END_BUTTON_BEHAVIOR);
PRIVATE_SETTINGS.add(ADVANCED_SETTINGS);
PRIVATE_SETTINGS.add(WEAR_ACCESSIBILITY_GESTURE_ENABLED);
PRIVATE_SETTINGS.add(SCREEN_AUTO_BRIGHTNESS_ADJ);
PRIVATE_SETTINGS.add(VIBRATE_INPUT_DEVICES);
PRIVATE_SETTINGS.add(VOLUME_MASTER);

View File

@@ -102,7 +102,8 @@ public class SettingsBackupTest {
Settings.System.PEAK_REFRESH_RATE, // depends on hardware capabilities
Settings.System.SCREEN_BRIGHTNESS_FLOAT,
Settings.System.SCREEN_BRIGHTNESS_FOR_VR_FLOAT,
Settings.System.MULTI_AUDIO_FOCUS_ENABLED // form-factor/OEM specific
Settings.System.MULTI_AUDIO_FOCUS_ENABLED, // form-factor/OEM specific
Settings.System.WEAR_ACCESSIBILITY_GESTURE_ENABLED
);
private static final Set<String> BACKUP_DENY_LIST_GLOBAL_SETTINGS =