• 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 ContactSource {
10  // Applies only to reports made from call history. If we have contact
11  // information for the phone number, this field indicates its source.
12  // Note that it represents the contact's status on the user's device at the
13  // time they made the spam report, which could be different from the
14  // number's status at the time they made or received the call.
15  // Type definitions are from the CachedContactInfo interface in
16  // google3/java/com/android/dialer/phonenumbercache/CachedNumberLookupService.java
17  enum Type {
18    UNKNOWN_SOURCE_TYPE = 0;
19
20    // Personal contact
21    SOURCE_TYPE_DIRECTORY = 1;
22
23    // Contact from a custom extended directory
24    SOURCE_TYPE_EXTENDED = 2;
25
26    // Business number found via the People API
27    SOURCE_TYPE_PLACES = 3;
28
29    // Non-business number found via the People API
30    SOURCE_TYPE_PROFILE = 4;
31
32    // Number has Caller Name Presentation (CNAP) information. Calls in this
33    // category would have had ContactLookupResultType NOT_FOUND originally.
34    SOURCE_TYPE_CNAP = 5;
35
36    SOURCE_TYPE_CEQUINT_CALLER_ID = 6;
37  }
38}
39