summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGovinda Wasserman <gwasserman@google.com>2020-09-21 19:39:19 -0400
committerGovinda Wasserman <gwasserman@google.com>2020-09-23 02:18:28 +0000
commit6c6e754f63e49995339bc15d93e32a9dbea135d4 (patch)
treec0598d388ca2b376be3b34af31c4198fc720a1fc /core
parent697711df74da7b3c9b24cd4b2a3e3945a45c0eb0 (diff)
Adds Assistant Handles learning state to backed up settings
This solves the issue where the device would forget the learned state when restoring from a backup. Test: Tested locally BUG: 159807978 FIX: 159807978 Change-Id: Ia1d5926621c4b45402036aaf06cbab19c12869bd Merged-In: Ia1d5926621c4b45402036aaf06cbab19c12869bd
Diffstat (limited to 'core')
-rwxr-xr-xcore/java/android/provider/Settings.java16
-rw-r--r--core/proto/android/providers/settings/secure.proto10
2 files changed, 25 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 8b45ba994d7e..b07dabd4bb39 100755
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -8980,6 +8980,22 @@ public final class Settings {
};
/**
+ * How long Assistant handles have enabled in milliseconds.
+ *
+ * @hide
+ */
+ public static final String ASSIST_HANDLES_LEARNING_TIME_ELAPSED_MILLIS =
+ "reminder_exp_learning_time_elapsed";
+
+ /**
+ * How many times the Assistant has been triggered using the touch gesture.
+ *
+ * @hide
+ */
+ public static final String ASSIST_HANDLES_LEARNING_EVENT_COUNT =
+ "reminder_exp_learning_event_count";
+
+ /**
* These entries are considered common between the personal and the managed profile,
* since the managed profile doesn't get to change them.
*/
diff --git a/core/proto/android/providers/settings/secure.proto b/core/proto/android/providers/settings/secure.proto
index acf8cc4944d9..cfd428cbacc3 100644
--- a/core/proto/android/providers/settings/secure.proto
+++ b/core/proto/android/providers/settings/secure.proto
@@ -119,6 +119,14 @@ message SecureSettingsProto {
}
optional Assist assist = 7;
+ message AssistHandles {
+ option (android.msg_privacy).dest = DEST_EXPLICIT;
+
+ optional SettingProto learning_time_elapsed_millis = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
+ optional SettingProto learning_event_count = 2 [ (android.privacy).dest = DEST_AUTOMATIC ];
+ }
+ optional AssistHandles assist_handles = 86;
+
message Autofill {
option (android.msg_privacy).dest = DEST_EXPLICIT;
@@ -596,5 +604,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 = 87;
}