diff options
author | Milo Sredkov <miloslav@google.com> | 2018-12-07 14:13:47 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-12-07 14:13:47 +0000 |
commit | 0b243df366688e8733b950810eefe1e24c8ed1a9 (patch) | |
tree | 4b9043128a2a8b041718d8d976aa5099508e623d | |
parent | b1910c47a83cfc993df8048c996a3d0534225633 (diff) | |
parent | d8cacd5bec95e5fe735520bc2ef3c90303153ac9 (diff) |
Merge "Create SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS"
4 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 64aa088e26bd..79e0708355aa 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -13671,6 +13671,22 @@ public final class Settings { "smart_replies_in_notifications_flags"; /** + * Configuration flags for the automatic generation of smart replies and smart actions in + * notifications. This is encoded as a key=value list, separated by commas. Ex: + * "generate_replies=false,generate_actions=true". + * + * The following keys are supported: + * + * <pre> + * generate_replies (boolean) + * generate_actions (boolean) + * </pre> + * @hide + */ + public static final String SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS = + "smart_suggestions_in_notifications_flags"; + + /** * If nonzero, crashes in foreground processes will bring up a dialog. * Otherwise, the process will be silently killed. * @hide diff --git a/core/proto/android/providers/settings/global.proto b/core/proto/android/providers/settings/global.proto index 9620e4b276d7..ca8da55e14c2 100644 --- a/core/proto/android/providers/settings/global.proto +++ b/core/proto/android/providers/settings/global.proto @@ -635,6 +635,9 @@ message GlobalSettingsProto { // separated by commas. optional SettingProto snooze_options = 3 [ (android.privacy).dest = DEST_AUTOMATIC ]; optional SettingProto smart_replies_in_notifications_flags = 4 [ (android.privacy).dest = DEST_AUTOMATIC ]; + // Configuration options for smart replies and smart actions in notifications. This is + // encoded as a key=value list separated by commas. + optional SettingProto smart_suggestions_in_notifications_flags = 5 [ (android.privacy).dest = DEST_AUTOMATIC ]; } optional Notification notification = 82; diff --git a/core/tests/coretests/src/android/provider/SettingsBackupTest.java b/core/tests/coretests/src/android/provider/SettingsBackupTest.java index f1ed1c2952e9..1d72a0361690 100644 --- a/core/tests/coretests/src/android/provider/SettingsBackupTest.java +++ b/core/tests/coretests/src/android/provider/SettingsBackupTest.java @@ -248,6 +248,7 @@ public class SettingsBackupTest { Settings.Global.DYNAMIC_POWER_SAVINGS_ENABLED, Settings.Global.DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD, Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS, + Settings.Global.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS, Settings.Global.ENHANCED_4G_MODE_ENABLED, Settings.Global.EPHEMERAL_COOKIE_MAX_SIZE_BYTES, Settings.Global.ERROR_LOGCAT_PREFIX, diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java index ad884320ba0b..5e7fb850cfe4 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProtoDumpUtil.java @@ -1004,6 +1004,9 @@ class SettingsProtoDumpUtil { dumpSetting(s, p, Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS, GlobalSettingsProto.Notification.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS); + dumpSetting(s, p, + Settings.Global.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS, + GlobalSettingsProto.Notification.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS); p.end(notificationToken); dumpSetting(s, p, |