From 36e6ee373e4cbe86cf349edb1b897f23ea8bc3f1 Mon Sep 17 00:00:00 2001 From: emancebo Date: Fri, 12 Sep 2014 18:27:31 -0700 Subject: Stats: track how frequently contact images are present incall For retail devices (and installer builds), introduce tags to be read by a separate, additional, package. This will not be read or collected in any community (nightly/M/etc) or self-built build. Change-Id: I7f52f18a53ade50e0274af633cb7c26566332ee7 --- src/com/android/incallui/ContactInfoCache.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/incallui/ContactInfoCache.java b/src/com/android/incallui/ContactInfoCache.java index 4bbf8fad..bccc7fc8 100644 --- a/src/com/android/incallui/ContactInfoCache.java +++ b/src/com/android/incallui/ContactInfoCache.java @@ -29,6 +29,7 @@ import android.telephony.PhoneNumberUtils; import android.text.TextUtils; import com.android.dialer.calllog.ContactInfo; +import com.android.dialer.cmstats.DialerStats; import com.android.dialer.lookup.ReverseLookupThread; import com.android.incallui.service.PhoneNumberService; import com.android.incalluibind.ServiceFactory; @@ -349,6 +350,10 @@ public class ContactInfoCache implements ContactsAsyncHelper.OnImageLoadComplete entry.photo = null; } + DialerStats.sendEvent(mContext, + DialerStats.Categories.INCALL_CONTACT_IMAGE, + entry.photo != null ? "incall_image_found" : "incall_image_not_found"); + sendImageNotifications(callId, entry); clearCallbacks(callId); } -- cgit v1.2.3