diff options
author | Eric Erfanian <erfanian@google.com> | 2017-05-03 23:10:39 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-03 23:10:39 +0000 |
commit | d67f1627521b174f12e0c247f154c7c93c5e408e (patch) | |
tree | 1a45d60921e293c6088efeaf4d9c408456f3e0e2 /java/com/android/dialer/logging/contact_source.proto | |
parent | 010981b798fbc6b8e6a00c3ea507f00c3e77c371 (diff) | |
parent | 8369df095a73a77b3715f8ae7ba06089cebca4ce (diff) |
This change reflects the Dialer V10 RC00 branch.
am: 8369df095a
Change-Id: I6820870feb74cba010ac3039e4da41325b3005f9
Diffstat (limited to 'java/com/android/dialer/logging/contact_source.proto')
-rw-r--r-- | java/com/android/dialer/logging/contact_source.proto | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/java/com/android/dialer/logging/contact_source.proto b/java/com/android/dialer/logging/contact_source.proto new file mode 100644 index 000000000..ffd32de0e --- /dev/null +++ b/java/com/android/dialer/logging/contact_source.proto @@ -0,0 +1,38 @@ +syntax = "proto2"; + +package com.android.dialer.logging; +option java_package = "com.android.dialer.logging"; +option java_multiple_files = true; +option optimize_for = LITE_RUNTIME; + + +message ContactSource { + // Applies only to reports made from call history. If we have contact + // information for the phone number, this field indicates its source. + // Note that it represents the contact's status on the user's device at the + // time they made the spam report, which could be different from the + // number's status at the time they made or received the call. + // Type definitions are from the CachedContactInfo interface in + // google3/java/com/android/dialer/phonenumbercache/CachedNumberLookupService.java + enum Type { + UNKNOWN_SOURCE_TYPE = 0; + + // Personal contact + SOURCE_TYPE_DIRECTORY = 1; + + // Contact from a custom extended directory + SOURCE_TYPE_EXTENDED = 2; + + // Business number found via the People API + SOURCE_TYPE_PLACES = 3; + + // Non-business number found via the People API + SOURCE_TYPE_PROFILE = 4; + + // Number has Caller Name Presentation (CNAP) information. Calls in this + // category would have had ContactLookupResultType NOT_FOUND originally. + SOURCE_TYPE_CNAP = 5; + + SOURCE_TYPE_CEQUINT_CALLER_ID = 6; + } +} |