diff options
| author | 2020-09-10 03:09:06 +0000 | |
|---|---|---|
| committer | 2020-09-10 03:09:06 +0000 | |
| commit | 4e8a7a8bcf3e24ba52a7e6e809f33e2a2f32bb38 (patch) | |
| tree | 5ae87e0abf3702e859293c61fdbd580840edd85d | |
| parent | 9e751fd4e7345718e48e225b3e76f342c9781b71 (diff) | |
| parent | c712fc35d14d1974290a104442c4f2e32e833b62 (diff) | |
Merge "Add Bold Text to Settings.Secure"
3 files changed, 13 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 739e169e44c7..18337b661844 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -6801,6 +6801,13 @@ public final class Settings { public static final String KEYGUARD_SLICE_URI = "keyguard_slice_uri"; /** + * Whether to draw text in bold. + * + * @hide + */ + public static final String FORCE_BOLD_TEXT = "force_bold_text"; + + /** * Whether to speak passwords while in accessibility mode. * * @deprecated The speaking of passwords is controlled by individual accessibility services. diff --git a/core/proto/android/providers/settings/secure.proto b/core/proto/android/providers/settings/secure.proto index 3d12d072eb80..7f743ef037a2 100644 --- a/core/proto/android/providers/settings/secure.proto +++ b/core/proto/android/providers/settings/secure.proto @@ -219,6 +219,8 @@ message SecureSettingsProto { optional SettingProto enhanced_voice_privacy_enabled = 23 [ (android.privacy).dest = DEST_AUTOMATIC ]; + optional SettingProto force_bold_text = 85 [ (android.privacy).dest = DEST_AUTOMATIC ]; + message Gesture { optional SettingProto aware_enabled = 1 [ (android.privacy).dest = DEST_AUTOMATIC ]; @@ -615,5 +617,5 @@ message SecureSettingsProto { // Please insert fields in alphabetical order and group them into messages // if possible (to avoid reaching the method limit). - // Next tag = 85; + // Next tag = 86; } diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java index fbd88763fff4..dd2aa3bbbdf5 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java @@ -1777,6 +1777,9 @@ class SettingsProtoDumpUtil { Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, SecureSettingsProto.Accessibility.HIGH_TEXT_CONTRAST_ENABLED); dumpSetting(s, p, + Settings.Secure.FORCE_BOLD_TEXT, + SecureSettingsProto.FORCE_BOLD_TEXT); + dumpSetting(s, p, Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, SecureSettingsProto.Accessibility.LARGE_POINTER_ICON); dumpSetting(s, p, |