blob: 8c3ec931deca3a518a9975c0203ca230b3cf3dc5 [file] [log] [blame]
Bonian Chen93ca7282022-03-09 09:26:03 +08001syntax = "proto2";
2
3package com.android.settings.intelligence;
4option java_multiple_files = false;
5option java_package = "com.android.settings.network.telephony";
6option java_outer_classname = "NetworkModeChoicesProto";
7
8// EnabledNetworks is a list which tries to categorized the entries of popup menu
9// based on carrier network types available to the end user.
10
11// Next tag: 13
12enum EnabledNetworks {
13 // No EnabledNetworks specified.
14 ENABLED_NETWORKS_UNSPECIFIED = 0;
15
16 // For the case where either unsupported or unable to categorized properly.
17 ENABLED_NETWORKS_UNKNOWN = 1;
18
19 // For the case where CDMA is supported and LTE is not prioritized over
20 // CDMA.
21 ENABLED_NETWORKS_CDMA_CHOICES = 2;
22
23 // For the case where CDMA is supported and LTE is not available.
24 ENABLED_NETWORKS_CDMA_NO_LTE_CHOICES = 3;
25
26 // For the case where CDMA is supported and LTE is available.
27 ENABLED_NETWORKS_CDMA_ONLY_LTE_CHOICES = 4;
28
29 // For the case where TDSCDMA is primary network type.
30 ENABLED_NETWORKS_TDSCDMA_CHOICES = 5;
31
32 // For the case where GSM and LTE options are removed from the menu.
33 ENABLED_NETWORKS_EXCEPT_GSM_LTE_CHOICES = 6;
34
35 // For the case where GSM and 4G options are removed from the menu.
36 ENABLED_NETWORKS_EXCEPT_GSM_4G_CHOICES = 7;
37
38 // For the case where GSM is removed from the menu, and both 4G/LTE are not an
39 // option.
40 ENABLED_NETWORKS_EXCEPT_GSM_CHOICES = 8;
41
42 // For the case where LTE is disabled.
43 ENABLED_NETWORKS_EXCEPT_LTE_CHOICES = 9;
44
45 // For the case where GSM related carrier with 4G/LTE supported.
46 ENABLED_NETWORKS_4G_CHOICES = 10;
47
48 // For the case where GSM related carrier without 4G/LTE supported.
49 ENABLED_NETWORKS_CHOICES = 11;
50
51 // For the case where world mode is enabled.
52 PREFERRED_NETWORK_MODE_CHOICES_WORLD_MODE = 12;
53}
54
55// A request for popup menu.
56
57// Next tag: 4
58message UiOptions {
59 // Mapping to popup menu categories.
60 required EnabledNetworks type = 1;
61
62 // Resource which provides a list of network type values for this popup menu.
63 required int32 choices = 2;
64
65 // Presentation format of a continuous popop menu entries.
66 // Each format may contains any numbers of popop menu entries.
67
68 // Next tag: 12
69 enum PresentFormat {
70
71 // No PresentFormat specified.
72 PRESENT_FORMAT_UNSPECIFIED = 0;
73
74 // Append a CDMA 1x network option into popup menu.
75 add1xEntry = 1;
76
77 // Append a 2G network option into popup menu.
78 add2gEntry = 2;
79
80 // Append a 3G network option into popup menu.
81 add3gEntry = 3;
82
83 // Append a global mode option into popup menu.
84 addGlobalEntry = 4;
85
86 // Append a CDMA/LTE global mode option into popup menu.
87 addWorldModeCdmaEntry = 5;
88
89 // Append a GSM/LTE global mode option into popup menu.
90 addWorldModeGsmEntry = 6;
91
92 // Append a 4G network option into popup menu.
93 add4gEntry = 7;
94
95 // Append a LTE network option into popup menu.
96 addLteEntry = 8;
97
98 // Append a 5G network option into popup menu.
99 add5gEntry = 9;
100
101 // Append both 5G and 4G network options into popup menu.
102 add5gAnd4gEntry = 10;
103
104 // Append both 5G and LTE network options into popup menu.
105 add5gAndLteEntry = 11;
106 }
107
108 // Format of popup menu entries.
109 // The length of this entry need to be less than the network type values
110 // referenced from "choices" field.
111 repeated PresentFormat format = 3;
112}