summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/metrics
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2018-02-23 18:24:16 -0800
committerCopybara-Service <copybara-piper@google.com>2018-02-23 18:25:57 -0800
commit0d9701531f3e1d68b13e460e8cf6197ad8f6b619 (patch)
treecbdc437062f5d60fd191d57f23dfe32995887d1b /java/com/android/dialer/metrics
parent1c1e4c7caa0edd1f8f9aa951c6468c1d653ee281 (diff)
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
Diffstat (limited to 'java/com/android/dialer/metrics')
-rw-r--r--java/com/android/dialer/metrics/Metrics.java9
1 files changed, 9 insertions, 0 deletions
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";