1syntax = "proto2"; 2 3option java_package = "com.android.dialer.historyitemactions"; 4option java_multiple_files = true; 5option optimize_for = LITE_RUNTIME; 6 7 8package com.android.dialer.historyitemactions; 9 10import "java/com/android/dialer/glidephotomanager/photo_info.proto"; 11import "java/com/android/dialer/phonenumberproto/dialer_phone_number.proto"; 12 13// Contains information necessary to construct the header for a history item's 14// bottom sheet. 15// 16// A history item is one that is displayed in the call log or the voicemail 17// fragment. 18// 19// Next ID: 5 20message HistoryItemBottomSheetHeaderInfo { 21 // The phone number associated with the item. 22 optional com.android.dialer.DialerPhoneNumber number = 1; 23 24 // Information used to load the contact photo. 25 optional com.android.dialer.glidephotomanager.PhotoInfo photo_info = 2; 26 27 // Primary text of the header, which can be 28 // (1) a presentation name (e.g., "Restricted", "Unknown", etc.), 29 // (2) the contact name, or 30 // (3) the formatted number. 31 optional string primary_text = 3; 32 33 // Secondary test of the header, which describes the number. 34 // Some examples are: 35 // "Mobile • 555-1234", 36 // "Blocked • Mobile • 555-1234", and 37 // "Spam • Mobile • 555-1234". 38 optional string secondary_text = 4; 39} 40