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