summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormengsun <msun@codeaurora.org>2014-02-24 10:45:11 +0800
committerEthan Chen <intervigil@gmail.com>2014-08-25 19:25:08 -0700
commitd200e2c44883dd07a8e7f6a86d52767cfb197803 (patch)
tree7554d85f65af771c3cdf126859089edcdee0cbf9
parent71cfa1818c49be611880a8d1285049e830c0eae4 (diff)
downloadandroid_packages_apps_PhoneCommon-cm-11.0.tar.gz
android_packages_apps_PhoneCommon-cm-11.0.tar.bz2
android_packages_apps_PhoneCommon-cm-11.0.zip
Add the slot id in call log. Add the type of duration(Active time/Call out time) in call log. Change-Id: Ic0deee81f08ee59b1fe2c1975f3af831daf0b2d2
-rw-r--r--src/com/android/phone/common/CallLogAsync.java14
1 files 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