summaryrefslogtreecommitdiff
path: root/proto/src
diff options
context:
space:
mode:
author Valentin Iftime <valiiftime@google.com> 2023-07-19 11:34:31 +0200
committer Valentin Iftime <valiiftime@google.com> 2023-10-11 11:29:16 +0200
commitb551eb6a35ea07ceb1895dc15dcfb2020ac4a8c9 (patch)
tree5da7c511e21b547ecabcbfd854237ef55d8719fd /proto/src
parentf178449bbca13b430d9b4a4c0b3864773c310fac (diff)
Polite notifications
Add polite notifications implementation to NotificationAttentionHelper: - 2 cooldown strategies: to be reduced to a single strategy after dogfood. Test: atest BuzzBeepBlinkTest Test: atest NotificationAttentionHelperTest Bug: 270456865 Change-Id: I185a0a4b13d6602061c664d1babe6beff7630cd1
Diffstat (limited to 'proto/src')
-rw-r--r--proto/src/metrics_constants/metrics_constants.proto8
1 files changed, 7 insertions, 1 deletions
diff --git a/proto/src/metrics_constants/metrics_constants.proto b/proto/src/metrics_constants/metrics_constants.proto
index ced97cc0b39e..7ac7859f3c83 100644
--- a/proto/src/metrics_constants/metrics_constants.proto
+++ b/proto/src/metrics_constants/metrics_constants.proto
@@ -90,8 +90,14 @@ message MetricsEvent {
// Make sound through the speaker.
ALERT_BEEP = 2;
- // Flash a notificaiton light.
+ // Flash a notification light.
ALERT_BLINK = 4;
+
+ // Alert was attenuated by polite notif. feature.
+ ALERT_POLITE = 8;
+
+ // Alert was muted by polite notif. feature.
+ ALERT_MUTED = 16;
}
// Reasons that a notification might be dismissed.