Add setting for Aware enable/disable

Bug: 122712565
Test: make
Change-Id: I65358e815c1e2cb30be0ad90b3c94f4af11f17d9
This commit is contained in:
Edgar Wang
2019-01-11 19:30:12 +08:00
parent ac1c15821c
commit 5ee8154aea
7 changed files with 35 additions and 1 deletions

View File

@@ -8435,6 +8435,13 @@ public final class Settings {
private static final Validator THEME_CUSTOMIZATION_OVERLAY_PACKAGES_VALIDATOR =
new SettingsValidators.PackageNameListValidator(",");
/**
* Controls whether aware is enabled.
* @hide
*/
public static final String AWARE_ENABLED = "aware_enabled";
private static final Validator AWARE_ENABLED_VALIDATOR = BOOLEAN_VALIDATOR;
/**
* This are the settings to be backed up.
*
@@ -8559,6 +8566,7 @@ public final class Settings {
SKIP_GESTURE,
SILENCE_GESTURE,
THEME_CUSTOMIZATION_OVERLAY_PACKAGES,
AWARE_ENABLED,
};
/**
@@ -8731,6 +8739,7 @@ public final class Settings {
VALIDATORS.put(SILENCE_GESTURE, SILENCE_GESTURE_VALIDATOR);
VALIDATORS.put(THEME_CUSTOMIZATION_OVERLAY_PACKAGES,
THEME_CUSTOMIZATION_OVERLAY_PACKAGES_VALIDATOR);
VALIDATORS.put(AWARE_ENABLED, AWARE_ENABLED_VALIDATOR);
}
/**