Home | History | Annotate | Download | only in logging
      1 syntax = "proto2";
      2 
      3 package com.android.dialer.logging;
      4 option java_package = "com.android.dialer.logging";
      5 option java_multiple_files = true;
      6 option optimize_for = LITE_RUNTIME;
      7 
      8 
      9 
     10 
     11 message ContactLookupResult {
     12   // The different results of a contact lookup done using a phone number.
     13   enum Type {
     14     UNKNOWN_LOOKUP_RESULT_TYPE = 0;
     15 
     16     // Contact was not found in any of the sources.
     17     NOT_FOUND = 1;
     18 
     19     // Contact was found in the local database.
     20     LOCAL_CONTACT = 2;
     21 
     22     // DEPRECATED: see subcategories below
     23     LOCAL_CACHE = 3;
     24 
     25     // DEPRECATED: see subcategories below
     26     REMOTE = 4;
     27 
     28     // Phone number was an emergency phone number
     29     EMERGENCY = 5;
     30 
     31     // Phone number was the SIM card's voicemail number
     32     VOICEMAIL = 6;
     33 
     34     // Phone number was identified via the places part of the People API.
     35     REMOTE_PLACES = 7;
     36 
     37     // Phone number was identified via the profile part of the People API.
     38     REMOTE_PROFILE = 8;
     39 
     40     // Number was found in Dialer's local cache but we don't know how it was
     41     // originally identified.
     42     LOCAL_CACHE_UNKNOWN = 9;
     43 
     44     // Number was found in Dialer's local cache and was originally identified
     45     // as a personal contact.
     46     LOCAL_CACHE_DIRECTORY = 10;
     47 
     48     // Number was found in Dialer's local cache and was originally identified
     49     // via a custom extended directory.
     50     LOCAL_CACHE_EXTENDED = 11;
     51 
     52     // Number was found in Dialer's local cache and was originally identified
     53     // via the places part of the People API.
     54     LOCAL_CACHE_PLACES = 12;
     55 
     56     // Number was found in Dialer's local cache and was originally identified
     57     // via the profile part of the People API.
     58     LOCAL_CACHE_PROFILE = 13;
     59 
     60     // Number was found in Dialer's local cache and was originally identified
     61     // via Caller Name Presentation (CNAP) information. Calls in this
     62     // category would have had ContactLookupResultType NOT_FOUND originally.
     63     LOCAL_CACHE_CNAP = 14;
     64 
     65     // Number was found in Dialer's local cache and was originally identified
     66     // via Cequint caller ID.
     67     LOCAL_CACHE_CEQUINT = 15;
     68 
     69     // Number was identified by a remote data source not listed below
     70     REMOTE_OTHER = 16;
     71 
     72     // Number was found in Dialer's local cache and was originally identified
     73     // as REMOTE_OTHER
     74     LOCAL_CACHE_REMOTE_OTHER = 17;
     75 
     76     // Number was identified by manually-entered caller ID data
     77     REMOTE_MANUAL = 18;
     78 
     79     // Number was found in Dialer's local cache and was originally identified
     80     // as REMOTE_MANUAL
     81     LOCAL_CACHE_REMOTE_MANUAL = 19;
     82 
     83     // Number was identified by Google Voice data
     84     REMOTE_GOOGLE_VOICE = 20;
     85 
     86     // Number was found in Dialer's local cache and was originally identified
     87     // as REMOTE_GOOGLE_VOICE
     88     LOCAL_CACHE_REMOTE_GOOGLE_VOICE = 21;
     89 
     90     // Number was identified by Customer Service Apps data
     91     REMOTE_CSA = 22;
     92 
     93     // Number was found in Dialer's local cache and was originally identified
     94     // as REMOTE_CSA
     95     LOCAL_CACHE_REMOTE_CSA = 23;
     96 
     97     // Number was identified by Knowledge Graph data
     98     REMOTE_KNOWLEDGE_GRAPH = 24;
     99 
    100     // Number was found in Dialer's local cache and was originally identified
    101     // as REMOTE_KNOWLEDGE_GRAPH
    102     LOCAL_CACHE_REMOTE_KNOWLEDGE_GRAPH = 25;
    103   }
    104 }
    105