From d200e2c44883dd07a8e7f6a86d52767cfb197803 Mon Sep 17 00:00:00 2001 From: mengsun Date: Mon, 24 Feb 2014 10:45:11 +0800 Subject: Phone: Add sub ID and actual duration time in call log. Add the slot id in call log. Add the type of duration(Active time/Call out time) in call log. Change-Id: Ic0deee81f08ee59b1fe2c1975f3af831daf0b2d2 --- src/com/android/phone/common/CallLogAsync.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/com/android/phone/common/CallLogAsync.java b/src/com/android/phone/common/CallLogAsync.java index e8ed6b6..9ded014 100644 --- a/src/com/android/phone/common/CallLogAsync.java +++ b/src/com/android/phone/common/CallLogAsync.java @@ -73,7 +73,9 @@ public class CallLogAsync { int presentation, int callType, long timestamp, - long durationInMillis) { + long durationInMillis, + int subscription, + int durationType) { // Note that the context is passed each time. We could // have stored it in a member but we've run into a bunch // of memory leaks in the past that resulted from storing @@ -98,6 +100,8 @@ public class CallLogAsync { this.callType = callType; this.timestamp = timestamp; this.durationInSec = (int)(durationInMillis / 1000); + this.durationType = durationType; + this.subscription = subscription; } // Since the members are accessed directly, we don't use the // mXxxx notation. @@ -108,6 +112,8 @@ public class CallLogAsync { public final int callType; public final long timestamp; public final int durationInSec; + public final int durationType; + public final int subscription; } /** @@ -160,9 +166,9 @@ public class CallLogAsync { try { // May block. - result[i] = Calls.addCall( - c.ci, c.context, c.number, c.presentation, - c.callType, c.timestamp, c.durationInSec); + result[i] = Calls.addCall(c.ci, c.context, c.number, c.presentation, + c.callType, c.timestamp, c.durationInSec, c.subscription, + c.durationType); } catch (Exception e) { // This must be very rare but may happen in legitimate cases. // e.g. If the phone is encrypted and thus write request fails, it may -- cgit v1.2.3