diff options
author | mengsun <msun@codeaurora.org> | 2014-02-24 10:45:11 +0800 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2014-08-25 19:25:08 -0700 |
commit | d200e2c44883dd07a8e7f6a86d52767cfb197803 (patch) | |
tree | 7554d85f65af771c3cdf126859089edcdee0cbf9 | |
parent | 71cfa1818c49be611880a8d1285049e830c0eae4 (diff) | |
download | packages_apps_PhoneCommon-d200e2c44883dd07a8e7f6a86d52767cfb197803.tar.gz packages_apps_PhoneCommon-d200e2c44883dd07a8e7f6a86d52767cfb197803.tar.bz2 packages_apps_PhoneCommon-d200e2c44883dd07a8e7f6a86d52767cfb197803.zip |
Phone: Add sub ID and actual duration time in call log.cm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56stable/cm-11.0-XNG3Cstable/cm-11.0-XNG2Sstable/cm-11.0-XNF9Xstable/cm-11.0-XNF8Ystable/cm-11.0shipping/cm-11.0cm-11.0
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.java | 14 |
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 |