summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/logging
diff options
context:
space:
mode:
authorAndroid Dialer <noreply@google.com>2017-11-17 13:56:31 -0800
committerzachh <zachh@google.com>2017-11-18 07:35:58 +0000
commit6b96d28ddf93d87ad1253e633771946ea770dfb3 (patch)
tree093ebdf0077897937980addca17c5bb28f98b942 /java/com/android/dialer/logging
parenta430bba3873f556ba895b172a32048030fa7f4d0 (diff)
Add contact source options.
Bug: 66900825 Test: manual PiperOrigin-RevId: 176155772 Change-Id: Ibe722477b90671b55ff7bf5405de9fb66569d43e
Diffstat (limited to 'java/com/android/dialer/logging')
-rw-r--r--java/com/android/dialer/logging/contact_lookup_result.proto35
-rw-r--r--java/com/android/dialer/logging/contact_source.proto17
2 files changed, 52 insertions, 0 deletions
diff --git a/java/com/android/dialer/logging/contact_lookup_result.proto b/java/com/android/dialer/logging/contact_lookup_result.proto
index 6c83908b9..673ade760 100644
--- a/java/com/android/dialer/logging/contact_lookup_result.proto
+++ b/java/com/android/dialer/logging/contact_lookup_result.proto
@@ -65,5 +65,40 @@ message ContactLookupResult {
// Number was found in Dialer's local cache and was originally identified
// via Cequint caller ID.
LOCAL_CACHE_CEQUINT = 15;
+
+ // Number was identified by a remote data source not listed below
+ REMOTE_OTHER = 16;
+
+ // Number was found in Dialer's local cache and was originally identified
+ // as REMOTE_OTHER
+ LOCAL_CACHE_REMOTE_OTHER = 17;
+
+ // Number was identified by manually-entered caller ID data
+ REMOTE_MANUAL = 18;
+
+ // Number was found in Dialer's local cache and was originally identified
+ // as REMOTE_MANUAL
+ LOCAL_CACHE_REMOTE_MANUAL = 19;
+
+ // Number was identified by Google Voice data
+ REMOTE_GOOGLE_VOICE = 20;
+
+ // Number was found in Dialer's local cache and was originally identified
+ // as REMOTE_GOOGLE_VOICE
+ LOCAL_CACHE_REMOTE_GOOGLE_VOICE = 21;
+
+ // Number was identified by Customer Service Apps data
+ REMOTE_CSA = 22;
+
+ // Number was found in Dialer's local cache and was originally identified
+ // as REMOTE_CSA
+ LOCAL_CACHE_REMOTE_CSA = 23;
+
+ // Number was identified by Knowledge Graph data
+ REMOTE_KNOWLEDGE_GRAPH = 24;
+
+ // Number was found in Dialer's local cache and was originally identified
+ // as REMOTE_KNOWLEDGE_GRAPH
+ LOCAL_CACHE_REMOTE_KNOWLEDGE_GRAPH = 25;
}
}
diff --git a/java/com/android/dialer/logging/contact_source.proto b/java/com/android/dialer/logging/contact_source.proto
index 96ef9e18e..7b90730ab 100644
--- a/java/com/android/dialer/logging/contact_source.proto
+++ b/java/com/android/dialer/logging/contact_source.proto
@@ -16,6 +16,8 @@ message ContactSource {
// number's status at the time they made or received the call.
// Type definitions are from the CachedContactInfo interface in
// CachedNumberLookupService.java
+ // When adding new sources here, consider updating the isPeopleApiSource() and
+ // isBusiness() methods in LookupSourceUtils.java if needed.
enum Type {
UNKNOWN_SOURCE_TYPE = 0;
@@ -36,5 +38,20 @@ message ContactSource {
SOURCE_TYPE_CNAP = 5;
SOURCE_TYPE_CEQUINT_CALLER_ID = 6;
+
+ // A remote source not listed below
+ SOURCE_TYPE_REMOTE_OTHER = 7;
+
+ // Manually-entered caller ID data
+ SOURCE_TYPE_REMOTE_MANUAL = 8;
+
+ // Google Voice short code data
+ SOURCE_TYPE_REMOTE_GOOGLE_VOICE = 9;
+
+ // Customer Service Applications data
+ SOURCE_TYPE_REMOTE_CSA = 10;
+
+ // Knowledge Graph data
+ SOURCE_TYPE_REMOTE_KNOWLEDGE_GRAPH = 11;
}
}