From 2d538d44e2f88808e7d2212492086cc2c53852b6 Mon Sep 17 00:00:00 2001 From: Flavio Lerda Date: Tue, 16 Aug 2011 08:29:06 +0100 Subject: [PATCH] Add a few columns for caching to the call log. These columns store additional information about the contact associated with a call log entry and are needed by the new functionality present in the call log. The information is used only internally by the call log, so these column do not need to be part of the public API. Bug: 5101753 Change-Id: Ie2160a157497f10ba5fc95c5fcf3b4095a99753a --- core/java/android/provider/CallLog.java | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index c5a924b88a3a8..886edaf9f46b4 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -201,6 +201,42 @@ public class CallLog { */ public static final String GEOCODED_LOCATION = "geocoded_location"; + /** + * The cached URI to look up the contact associated with the phone number, if it exists. + * This value is not guaranteed to be current, if the contact information + * associated with this number has changed. + *

Type: TEXT

+ * @hide + */ + public static final String CACHED_LOOKUP_URI = "lookup_uri"; + + /** + * The cached phone number of the contact which matches this entry, if it exists. + * This value is not guaranteed to be current, if the contact information + * associated with this number has changed. + *

Type: TEXT

+ * @hide + */ + public static final String CACHED_MATCHED_NUMBER = "matched_number"; + + /** + * The cached normalized version of the phone number, if it exists. + * This value is not guaranteed to be current, if the contact information + * associated with this number has changed. + *

Type: TEXT

+ * @hide + */ + public static final String CACHED_NORMALIZED_NUMBER = "normalized_number"; + + /** + * The cached photo id of the picture associated with the phone number, if it exists. + * This value is not guaranteed to be current, if the contact information + * associated with this number has changed. + *

Type: INTEGER (long)

+ * @hide + */ + public static final String CACHED_PHOTO_ID = "photo_id"; + /** * Adds a call to the call log. *