From 6b96d28ddf93d87ad1253e633771946ea770dfb3 Mon Sep 17 00:00:00 2001 From: Android Dialer Date: Fri, 17 Nov 2017 13:56:31 -0800 Subject: Add contact source options. Bug: 66900825 Test: manual PiperOrigin-RevId: 176155772 Change-Id: Ibe722477b90671b55ff7bf5405de9fb66569d43e --- .../dialer/logging/contact_lookup_result.proto | 35 ++++++++++++++++++++++ .../android/dialer/logging/contact_source.proto | 17 +++++++++++ 2 files changed, 52 insertions(+) (limited to 'java/com/android/dialer/logging') 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; } } -- cgit v1.2.3