summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/PhoneCallDetails.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/dialer/PhoneCallDetails.java')
-rwxr-xr-x[-rw-r--r--]src/com/android/dialer/PhoneCallDetails.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/com/android/dialer/PhoneCallDetails.java b/src/com/android/dialer/PhoneCallDetails.java
index ba049a2d7..2de5f5f32 100644..100755
--- a/src/com/android/dialer/PhoneCallDetails.java
+++ b/src/com/android/dialer/PhoneCallDetails.java
@@ -86,6 +86,10 @@ public class PhoneCallDetails {
* Voicemail transcription
*/
public final String transcription;
+ /**
+ * Duration type for this call.
+ */
+ public final int durationType;
/**
* Create the details for a call, with empty defaults specified for extra fields that are
@@ -116,6 +120,19 @@ public class PhoneCallDetails {
int numberType, CharSequence numberLabel, Uri contactUri,
Uri photoUri, int sourceType, String accountLabel, Drawable accountIcon, int features,
Long dataUsage, String transcription) {
+ this(number, numberPresentation, formattedNumber, countryIso, geocode,
+ callTypes, date, duration, name, numberType, numberLabel, contactUri,
+ photoUri, sourceType, accountLabel, accountIcon, features, dataUsage,
+ transcription, Calls.DURATION_TYPE_ACTIVE);
+ }
+
+ /** Create the details for a call with a number associated with a contact. */
+ public PhoneCallDetails(CharSequence number, int numberPresentation,
+ CharSequence formattedNumber, String countryIso, String geocode,
+ int[] callTypes, long date, long duration, CharSequence name,
+ int numberType, CharSequence numberLabel, Uri contactUri,
+ Uri photoUri, int sourceType, String accountLabel, Drawable accountIcon, int features,
+ Long dataUsage, String transcription, int durationType) {
this.number = number;
this.numberPresentation = numberPresentation;
this.formattedNumber = formattedNumber;
@@ -135,5 +152,6 @@ public class PhoneCallDetails {
this.features = features;
this.dataUsage = dataUsage;
this.transcription = transcription;
+ this.durationType = durationType;
}
}