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