From 6ecb91ad173ec8a3269f1b263e70d13079b088f5 Mon Sep 17 00:00:00 2001 From: Erica Chang Date: Wed, 29 Jun 2016 18:43:04 -0700 Subject: Contacts metrics: corrected parsed timestamp values ContentValues.getAsInt does not parse timestamp values (overflow and returns null) . Need to use ContentValues.getAsLong. CD-501 Change-Id: I9fdda6b18228cf1cc6ba27feae6743afa5f03052 --- src/com/android/contacts/incall/InCallMetricsHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/android/contacts/incall/InCallMetricsHelper.java b/src/com/android/contacts/incall/InCallMetricsHelper.java index 1dcff3871..b22214114 100644 --- a/src/com/android/contacts/incall/InCallMetricsHelper.java +++ b/src/com/android/contacts/incall/InCallMetricsHelper.java @@ -252,7 +252,7 @@ public class InCallMetricsHelper { map.put(Parameters.COUNT, cv.getAsInteger(Parameters.COUNT.toCol())); map.put(Parameters.NUDGE_ID, cv.getAsString(Parameters.NUDGE_ID.toCol())); map.put(Parameters.EVENT_ACCEPTANCE_TIME, - cv.getAsInteger(Parameters.EVENT_ACCEPTANCE_TIME.toCol())); + cv.getAsLong(Parameters.EVENT_ACCEPTANCE_TIME.toCol())); map.put(Parameters.EVENT_ACCEPTANCE, cv.getAsInteger(Parameters.EVENT_ACCEPTANCE.toCol()) == 0 ? Boolean.FALSE : Boolean.TRUE); @@ -276,6 +276,9 @@ public class InCallMetricsHelper { default: break; } + if (DEBUG) { + Log.d(TAG, event.value() + ": " + map.toString()); + } return map; } -- cgit v1.2.3