diff options
author | zachh <zachh@google.com> | 2018-02-23 18:24:16 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-23 18:25:57 -0800 |
commit | 0d9701531f3e1d68b13e460e8cf6197ad8f6b619 (patch) | |
tree | cbdc437062f5d60fd191d57f23dfe32995887d1b /java/com/android/incallui | |
parent | 1c1e4c7caa0edd1f8f9aa951c6468c1d653ee281 (diff) | |
download | android_packages_apps_Dialer-0d9701531f3e1d68b13e460e8cf6197ad8f6b619.tar.gz android_packages_apps_Dialer-0d9701531f3e1d68b13e460e8cf6197ad8f6b619.tar.bz2 android_packages_apps_Dialer-0d9701531f3e1d68b13e460e8cf6197ad8f6b619.zip |
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/incallui')
-rw-r--r-- | java/com/android/incallui/PhoneLookupHistoryRecorder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/com/android/incallui/PhoneLookupHistoryRecorder.java b/java/com/android/incallui/PhoneLookupHistoryRecorder.java index 017e6f43c..802bf63cb 100644 --- a/java/com/android/incallui/PhoneLookupHistoryRecorder.java +++ b/java/com/android/incallui/PhoneLookupHistoryRecorder.java @@ -69,7 +69,9 @@ final class PhoneLookupHistoryRecorder { Futures.transformAsync( numberFuture, dialerPhoneNumber -> - PhoneLookupComponent.get(appContext).phoneLookup().lookup(dialerPhoneNumber), + PhoneLookupComponent.get(appContext) + .compositePhoneLookup() + .lookup(dialerPhoneNumber), MoreExecutors.directExecutor()); Futures.addCallback( |