diff options
author | linyuh <linyuh@google.com> | 2018-03-15 10:13:54 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-15 10:29:13 -0700 |
commit | 6b576be4554a219088b3d24f91c6e79819a4ac1b (patch) | |
tree | a32028c87e2535b542358a8a33e35e3b3e76c5f1 /java/com/android/dialer/calldetails/proto | |
parent | 94067bd7f3a568fdabfaeb7a4980e9a85cd9b5c3 (diff) |
Introduce GlidePhotoManager to CallDetailsActivity
Bug: 74202944
Test: ModulesTest, CallDetailsActivityTest
PiperOrigin-RevId: 189204143
Change-Id: I917bac76009522c6a99fdb63299556ec2a454dfa
Diffstat (limited to 'java/com/android/dialer/calldetails/proto')
-rw-r--r-- | java/com/android/dialer/calldetails/proto/call_details_header_info.proto | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/java/com/android/dialer/calldetails/proto/call_details_header_info.proto b/java/com/android/dialer/calldetails/proto/call_details_header_info.proto new file mode 100644 index 000000000..ea7ba1e72 --- /dev/null +++ b/java/com/android/dialer/calldetails/proto/call_details_header_info.proto @@ -0,0 +1,36 @@ +syntax = "proto2"; + +option java_package = "com.android.dialer.calldetails"; +option java_multiple_files = true; +option optimize_for = LITE_RUNTIME; + + +import "java/com/android/dialer/phonenumberproto/dialer_phone_number.proto"; +import "java/com/android/dialer/glidephotomanager/photo_info.proto"; + +package com.android.dialer.calldetails; + +// Contains information for the header in CallDetailsActivity +// Next ID: 5 +message CallDetailsHeaderInfo { + // The number of all call detail entries. + optional com.android.dialer.DialerPhoneNumber dialer_phone_number = 1; + + // Information used to load the contact photo. + optional com.android.dialer.glidephotomanager.PhotoInfo photo_info = 2; + + // Primary text of the header, which can be + // (1) a presentation name (e.g., "Restricted", "Unknown", etc.), + // (2) the contact name, or + // (3) the formatted number. + optional string primary_text = 3; + + // Secondary test of the header, which describes the number. + // Some examples are: + // "Mobile • 555-1234", + // "Blocked • Mobile • 555-1234", and + // "Spam • Mobile • 555-1234". + optional string secondary_text = 4; + + // TODO(a bug): Add SIM info. +}
\ No newline at end of file |