From 224744cc72aa7799fb3e5c505123d09d64d4e0c4 Mon Sep 17 00:00:00 2001 From: Bai Tao Date: Tue, 31 Aug 2010 09:59:13 +0800 Subject: [PATCH] Store the current country in call log Change-Id: Ia68f8e0280b89d5993abb2701a3c425a147b51ba --- core/java/android/provider/CallLog.java | 11 +++++++++++ core/java/android/provider/ContactsContract.java | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index d52632b985420..bf051f58a2868 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -87,6 +87,17 @@ public class CallLog { */ public static final String NUMBER = "number"; + /** + * The ISO 3166-1 two letters country code of the country where the + * user received or made the call. + *

+ * Type: TEXT + *

+ * + * @hide + */ + public static final String COUNTRY_ISO = "countryiso"; + /** * The date the call occured, in milliseconds since the epoch *

Type: INTEGER (long)

diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index b87e0ec0116dc..9f9a4d462e2e8 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -3301,6 +3301,14 @@ public final class ContactsContract { *

Type: TEXT

*/ public static final String LABEL = "label"; + + /** + * The phone number's E164 representation. + *

Type: TEXT

+ * + * @hide + */ + public static final String NORMALIZED_NUMBER = "normalized_number"; } /** @@ -4152,6 +4160,14 @@ public final class ContactsContract { */ public static final String NUMBER = DATA; + /** + * The phone number's E164 representation. + *

Type: TEXT

+ * + * @hide + */ + public static final String NORMALIZED_NUMBER = DATA4; + /** * @deprecated use {@link #getTypeLabel(Resources, int, CharSequence)} instead. * @hide