diff options
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationRecord.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationRecord.java b/services/core/java/com/android/server/notification/NotificationRecord.java index 48818f5649af..46ce4bf59a50 100644 --- a/services/core/java/com/android/server/notification/NotificationRecord.java +++ b/services/core/java/com/android/server/notification/NotificationRecord.java @@ -637,25 +637,17 @@ public final class NotificationRecord { final ArrayList<String> people = adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); setPeopleOverride(people); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_PEOPLE, people.size())); } if (signals.containsKey(Adjustment.KEY_SNOOZE_CRITERIA)) { final ArrayList<SnoozeCriterion> snoozeCriterionList = adjustment.getSignals().getParcelableArrayList( Adjustment.KEY_SNOOZE_CRITERIA); setSnoozeCriteria(snoozeCriterionList); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_SNOOZE_CRITERIA, - snoozeCriterionList.size())); } if (signals.containsKey(Adjustment.KEY_GROUP_KEY)) { final String groupOverrideKey = adjustment.getSignals().getString(Adjustment.KEY_GROUP_KEY); setOverrideGroupKey(groupOverrideKey); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_GROUP_KEY, - groupOverrideKey)); } if (signals.containsKey(Adjustment.KEY_USER_SENTIMENT)) { // Only allow user sentiment update from assistant if user hasn't already @@ -664,32 +656,20 @@ public final class NotificationRecord { && (getChannel().getUserLockedFields() & USER_LOCKED_IMPORTANCE) == 0) { setUserSentiment(adjustment.getSignals().getInt( Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEUTRAL)); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_USER_SENTIMENT, - getUserSentiment())); } } if (signals.containsKey(Adjustment.KEY_CONTEXTUAL_ACTIONS)) { setSystemGeneratedSmartActions( signals.getParcelableArrayList(Adjustment.KEY_CONTEXTUAL_ACTIONS)); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_SMART_ACTIONS, - getSystemGeneratedSmartActions().size())); } if (signals.containsKey(Adjustment.KEY_TEXT_REPLIES)) { setSmartReplies(signals.getCharSequenceArrayList(Adjustment.KEY_TEXT_REPLIES)); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_SMART_REPLIES, - getSmartReplies().size())); } if (signals.containsKey(Adjustment.KEY_IMPORTANCE)) { int importance = signals.getInt(Adjustment.KEY_IMPORTANCE); importance = Math.max(IMPORTANCE_UNSPECIFIED, importance); importance = Math.min(IMPORTANCE_HIGH, importance); setAssistantImportance(importance); - MetricsLogger.action(getAdjustmentLogMaker() - .addTaggedData(MetricsEvent.ADJUSTMENT_KEY_IMPORTANCE, - importance)); } } // We have now gotten all the information out of the adjustments and can forget them. @@ -1280,12 +1260,6 @@ public final class NotificationRecord { return getLogMaker().setCategory(MetricsEvent.NOTIFICATION_ITEM); } - public LogMaker getAdjustmentLogMaker() { - return getLogMaker() - .setCategory(MetricsEvent.NOTIFICATION_ITEM) - .setType(MetricsEvent.TYPE_NOTIFICATION_ASSISTANT_ADJUSTMENT); - } - @VisibleForTesting static final class Light { public final int color; |