• 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;
6option optimize_for = LITE_RUNTIME;
7
8
9message ContactLookupResult {
10  // The different results of a contact lookup done using a phone number.
11  enum Type {
12    UNKNOWN_LOOKUP_RESULT_TYPE = 0;
13
14    // Contact was not found in any of the sources.
15    NOT_FOUND = 1;
16
17    // Contact was found in the local database.
18    LOCAL_CONTACT = 2;
19
20    // DEPRECATED: see subcategories below
21    LOCAL_CACHE = 3;
22
23    // DEPRECATED: see subcategories below
24    REMOTE = 4;
25
26    // Phone number was an emergency phone number
27    EMERGENCY = 5;
28
29    // Phone number was the SIM card's voicemail number
30    VOICEMAIL = 6;
31
32    // Phone number was identified via the places part of the People API.
33    REMOTE_PLACES = 7;
34
35    // Phone number was identified via the profile part of the People API.
36    REMOTE_PROFILE = 8;
37
38    // Number was found in Dialer's local cache but we don't know how it was
39    // originally identified.
40    LOCAL_CACHE_UNKNOWN = 9;
41
42    // Number was found in Dialer's local cache and was originally identified
43    // as a personal contact.
44    LOCAL_CACHE_DIRECTORY = 10;
45
46    // Number was found in Dialer's local cache and was originally identified
47    // via a custom extended directory.
48    LOCAL_CACHE_EXTENDED = 11;
49
50    // Number was found in Dialer's local cache and was originally identified
51    // via the places part of the People API.
52    LOCAL_CACHE_PLACES = 12;
53
54    // Number was found in Dialer's local cache and was originally identified
55    // via the profile part of the People API.
56    LOCAL_CACHE_PROFILE = 13;
57
58    // Number was found in Dialer's local cache and was originally identified
59    // via Caller Name Presentation (CNAP) information. Calls in this
60    // category would have had ContactLookupResultType NOT_FOUND originally.
61    LOCAL_CACHE_CNAP = 14;
62
63    // Number was found in Dialer's local cache and was originally identified
64    // via Cequint caller ID.
65    LOCAL_CACHE_CEQUINT = 15;
66  }
67}
68