1syntax = "proto2";
2
3option java_package = "com.android.dialer.calldetails";
4option java_multiple_files = true;
5
6
7import "java/com/android/dialer/phonenumberproto/dialer_phone_number.proto";
8import "java/com/android/dialer/glidephotomanager/photo_info.proto";
9
10package com.android.dialer.calldetails;
11
12// Contains information for the header in CallDetailsActivity
13// Next ID: 5
14message CallDetailsHeaderInfo {
15  // The number of all call detail entries.
16  optional com.android.dialer.DialerPhoneNumber dialer_phone_number = 1;
17
18  // Information used to load the contact photo.
19  optional com.android.dialer.glidephotomanager.PhotoInfo photo_info = 2;
20
21  // Primary text of the header, which can be
22  // (1) a presentation name (e.g., "Restricted", "Unknown", etc.),
23  // (2) the contact name, or
24  // (3) the formatted number.
25  optional string primary_text = 3;
26
27  // Secondary test of the header, which describes the number.
28  // Some examples are:
29  //   "Mobile • 555-1234",
30  //   "Blocked • Mobile • 555-1234", and
31  //   "Spam • Mobile • 555-1234".
32  optional string secondary_text = 4;
33}