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/logging/contact_source.proto";
10
11// Contains information needed to construct items (modules) in a bottom sheet.
12// Next ID: 17
13message HistoryItemActionModuleInfo {
14  // The dialer-normalized version of a phone number.
15  // See DialerPhoneNumber.normalized_number.
16  optional string normalized_number = 1;
17
18  // The ISO 3166-1 two letters country code of the number.
19  optional string country_iso = 2;
20
21  // The name associated with the number.
22  optional string name = 3;
23
24  // The type of the call.
25  // See android.provider.CallLog.Calls.TYPE.
26  optional int32 call_type = 4;
27
28  // Bit-mask describing features of the call.
29  // See android.provider.CallLog.Calls.FEATURES.
30  optional int32 features = 5;
31
32  // The Contacts Provider lookup URI for the contact associated with the
33  // number.
34  optional string lookup_uri = 6;
35
36  // The component name of the account used to place or receive the call.
37  // See android.provider.CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME.
38  optional string phone_account_component_name = 7;
39
40  // Whether the number can be reported as invalid through People API
41  optional bool can_report_as_invalid_number = 8;
42
43  // Whether assisted dialing is supported.
44  optional bool can_support_assisted_dialing = 9;
45
46  // Whether carrier video call is supported.
47  optional bool can_support_carrier_video_call = 10;
48
49  // Whether the number is blocked.
50  optional bool is_blocked = 11;
51
52  // Whether the number is spam.
53  optional bool is_spam = 12;
54
55  // Whether the call is to the voicemail inbox.
56  optional bool is_voicemail_call = 13;
57
58  // The source of the contact if there is one associated with the number.
59  optional com.android.dialer.logging.ContactSource.Type contact_source = 14;
60
61  // Places that can host items (modules) in a bottom sheet
62  enum Host {
63    UNKNOWN = 0;
64    CALL_LOG = 1;
65    VOICEMAIL = 2;
66  }
67  optional Host host = 15;
68
69  // Whether the number is an emergency number.
70  optional bool is_emergency_number = 16;
71}
72