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