Add contact source options.

Bug: 66900825
Test: manual
PiperOrigin-RevId: 176155772
Change-Id: Ibe722477b90671b55ff7bf5405de9fb66569d43e
diff --git a/java/com/android/dialer/logging/contact_lookup_result.proto b/java/com/android/dialer/logging/contact_lookup_result.proto
index 6c83908..673ade7 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 @@
     // 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 96ef9e1..7b90730 100644
--- a/java/com/android/dialer/logging/contact_source.proto
+++ b/java/com/android/dialer/logging/contact_source.proto
@@ -16,6 +16,8 @@
   // 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 @@
     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;
   }
 }