• 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
9
10
11message ContactSource {
12  // Applies only to reports made from call history. If we have contact
13  // information for the phone number, this field indicates its source.
14  // Note that it represents the contact's status on the user's device at the
15  // time they made the spam report, which could be different from the
16  // number's status at the time they made or received the call.
17  // Type definitions are from the CachedContactInfo interface in
18  // CachedNumberLookupService.java
19  // When adding new sources here, consider updating the isPeopleApiSource() and
20  // isBusiness() methods in LookupSourceUtils.java if needed.
21  enum Type {
22    UNKNOWN_SOURCE_TYPE = 0;
23
24    // Personal contact
25    SOURCE_TYPE_DIRECTORY = 1;
26
27    // Contact from a custom extended directory
28    SOURCE_TYPE_EXTENDED = 2;
29
30    // Business number found via the People API
31    SOURCE_TYPE_PLACES = 3;
32
33    // Non-business number found via the People API
34    SOURCE_TYPE_PROFILE = 4;
35
36    // Number has Caller Name Presentation (CNAP) information. Calls in this
37    // category would have had ContactLookupResultType NOT_FOUND originally.
38    SOURCE_TYPE_CNAP = 5;
39
40    SOURCE_TYPE_CEQUINT_CALLER_ID = 6;
41
42    // A remote source not listed below
43    SOURCE_TYPE_REMOTE_OTHER = 7;
44
45    // Manually-entered caller ID data
46    SOURCE_TYPE_REMOTE_MANUAL = 8;
47
48    // Google Voice short code data
49    SOURCE_TYPE_REMOTE_GOOGLE_VOICE = 9;
50
51    // Customer Service Applications data
52    SOURCE_TYPE_REMOTE_CSA = 10;
53
54    // Knowledge Graph data
55    SOURCE_TYPE_REMOTE_KNOWLEDGE_GRAPH = 11;
56  }
57}
58