Logging for ranker bundling.

Bug: 28210646
Change-Id: I90d1adaf23d318e07b1a9941ac45b5d6ae0624e8
This commit is contained in:
Julia Reynolds
2016-04-15 15:12:36 -04:00
parent 4d920ff6eb
commit b1ebc3b7a0
2 changed files with 12 additions and 2 deletions

View File

@@ -80,6 +80,10 @@ option java_package com.android.server
27531 notification_visibility (key|3),(visibile|1),(lifespan|1),(freshness|1),(exposure|1),(rank|1)
# a notification emited noise, vibration, or light
27532 notification_alert (key|3),(buzz|1),(beep|1),(blink|1)
# a notification was added to a autogroup
27533 notification_autogrouped (key|3)
# notification was removed from an autogroup
275534 notification_unautogrouped (key|3)
# ---------------------------
# Watchdog.java

View File

@@ -2179,8 +2179,14 @@ public class NotificationManagerService extends SystemService {
}
if (adjustment.getSignals() != null) {
Bundle.setDefusable(adjustment.getSignals(), true);
n.sbn.setOverrideGroupKey(adjustment.getSignals().getString(
Adjustment.GROUP_KEY_OVERRIDE_KEY, null));
final String autoGroupKey = adjustment.getSignals().getString(
Adjustment.GROUP_KEY_OVERRIDE_KEY, null);
if (autoGroupKey == null) {
EventLogTags.writeNotificationUnautogrouped(adjustment.getKey());
} else {
EventLogTags.writeNotificationAutogrouped(adjustment.getKey());
}
n.sbn.setOverrideGroupKey(autoGroupKey);
}
}