From 0d9701531f3e1d68b13e460e8cf6197ad8f6b619 Mon Sep 17 00:00:00 2001 From: zachh Date: Fri, 23 Feb 2018 18:24:16 -0800 Subject: Track initial call log building metrics separately from incremental building metrics. This required creating "CallLogState" which is currently just a boolean value which can only be turned on once (when the annotated call log flow finishes for the first time). This CL also changes CompositePhoneLookup to no longer implement PhoneLookup. This was done to support a now reverted implementation of CallLogState but it's easier for me to keep the change and it shouldn't be harmful. Bug: 70989667 Test: unit PiperOrigin-RevId: 186852257 Change-Id: I3f342737aaf909f8230b8a69d9c21e6e5c19b84e --- java/com/android/dialer/metrics/Metrics.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'java/com/android/dialer/metrics/Metrics.java') diff --git a/java/com/android/dialer/metrics/Metrics.java b/java/com/android/dialer/metrics/Metrics.java index 8c18ac942..383b3a3f3 100644 --- a/java/com/android/dialer/metrics/Metrics.java +++ b/java/com/android/dialer/metrics/Metrics.java @@ -34,12 +34,21 @@ public interface Metrics { String NEW_CALL_LOG_JANK_EVENT_NAME = "NewCallLog.Jank"; // Events related to refreshing the annotated call log. + String INITIAL_FILL_EVENT_NAME = "RefreshAnnotatedCallLog.Initial.Fill"; + String INITIAL_ON_SUCCESSFUL_FILL_EVENT_NAME = "RefreshAnnotatedCallLog.Initial.OnSuccessfulFill"; + String INITIAL_APPLY_MUTATIONS_EVENT_NAME = "RefreshAnnotatedCallLog.Initial.ApplyMutations"; + String IS_DIRTY_EVENT_NAME = "RefreshAnnotatedCallLog.IsDirty"; String FILL_EVENT_NAME = "RefreshAnnotatedCallLog.Fill"; String ON_SUCCESSFUL_FILL_EVENT_NAME = "RefreshAnnotatedCallLog.OnSuccessfulFill"; String APPLY_MUTATIONS_EVENT_NAME = "RefreshAnnotatedCallLog.ApplyMutations"; // These templates are prefixed with a CallLogDataSource or PhoneLookup simple class name. + String INITIAL_FILL_TEMPLATE = "%s.Initial.Fill"; + String INITIAL_GET_MOST_RECENT_INFO_TEMPLATE = "%s.Initial.GetMostRecentInfo"; + String INITIAL_ON_SUCCESSFUL_FILL_TEMPLATE = "%s.Initial.OnSuccessfulFill"; + String INITIAL_ON_SUCCESSFUL_BULK_UPDATE_TEMPLATE = "%s.Initial.OnSuccessfulBulkUpdate"; + String IS_DIRTY_TEMPLATE = "%s.IsDirty"; String FILL_TEMPLATE = "%s.Fill"; String GET_MOST_RECENT_INFO_TEMPLATE = "%s.GetMostRecentInfo"; -- cgit v1.2.3