blob: 9c2b9b46365c074ba912aaaec2ba9bc07f4168a0 [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
SongFerngWangf7685dd2023-02-08 06:12:54 +080011// Next tag: 15
12// TODO(b/268145152): rename the ENABLED_NETWORKS for good readability.
Bonian Chen93ca7282022-03-09 09:26:03 +080013enum EnabledNetworks {
14 // No EnabledNetworks specified.
15 ENABLED_NETWORKS_UNSPECIFIED = 0;
16
17 // For the case where either unsupported or unable to categorized properly.
18 ENABLED_NETWORKS_UNKNOWN = 1;
19
20 // For the case where CDMA is supported and LTE is not prioritized over
SongFerngWangf7685dd2023-02-08 06:12:54 +080021 // CDMA (LTE, 3G, 1x, global).
Bonian Chen93ca7282022-03-09 09:26:03 +080022 ENABLED_NETWORKS_CDMA_CHOICES = 2;
23
24 // For the case where CDMA is supported and LTE is not available.
SongFerngWangf7685dd2023-02-08 06:12:54 +080025 // CDMA (3G, 1x)
Bonian Chen93ca7282022-03-09 09:26:03 +080026 ENABLED_NETWORKS_CDMA_NO_LTE_CHOICES = 3;
27
28 // For the case where CDMA is supported and LTE is available.
SongFerngWangf7685dd2023-02-08 06:12:54 +080029 // CDMA (LTE, Global)
Bonian Chen93ca7282022-03-09 09:26:03 +080030 ENABLED_NETWORKS_CDMA_ONLY_LTE_CHOICES = 4;
31
32 // For the case where TDSCDMA is primary network type.
SongFerngWangf7685dd2023-02-08 06:12:54 +080033 // TDSCDMA (LTE, 3G, 2G)
Bonian Chen93ca7282022-03-09 09:26:03 +080034 ENABLED_NETWORKS_TDSCDMA_CHOICES = 5;
35
36 // For the case where GSM and LTE options are removed from the menu.
SongFerngWangf7685dd2023-02-08 06:12:54 +080037 // (3G)
Bonian Chen93ca7282022-03-09 09:26:03 +080038 ENABLED_NETWORKS_EXCEPT_GSM_LTE_CHOICES = 6;
39
SongFerngWangf7685dd2023-02-08 06:12:54 +080040 // For the case where GSM option are removed from the menu. The wording of LTE is '4G'.
41 // (4G, 3G)
Bonian Chen93ca7282022-03-09 09:26:03 +080042 ENABLED_NETWORKS_EXCEPT_GSM_4G_CHOICES = 7;
43
SongFerngWangf7685dd2023-02-08 06:12:54 +080044 // For the case where GSM option are removed from the menu. The wording of LTE is 'LTE'.
45 // (LTE, 3G)
Bonian Chen93ca7282022-03-09 09:26:03 +080046 ENABLED_NETWORKS_EXCEPT_GSM_CHOICES = 8;
47
48 // For the case where LTE is disabled.
SongFerngWangf7685dd2023-02-08 06:12:54 +080049 // (3G, 3G)
Bonian Chen93ca7282022-03-09 09:26:03 +080050 ENABLED_NETWORKS_EXCEPT_LTE_CHOICES = 9;
51
SongFerngWangf7685dd2023-02-08 06:12:54 +080052 // For the case where GSM related carrier with 4G/LTE supported. The wording of LTE is '4G'.
53 // (2G, 3G, 4G)
Bonian Chen93ca7282022-03-09 09:26:03 +080054 ENABLED_NETWORKS_4G_CHOICES = 10;
55
SongFerngWangf7685dd2023-02-08 06:12:54 +080056 // For the case where GSM related carrier with 4G/LTE supported. The wording of LTE is 'LTE'.
57 // (2G, 3G, LTE)
Bonian Chen93ca7282022-03-09 09:26:03 +080058 ENABLED_NETWORKS_CHOICES = 11;
59
60 // For the case where world mode is enabled.
SongFerngWangf7685dd2023-02-08 06:12:54 +080061 // ("Global", "LTE / CDMA", "LTE / GSM / UMTS")
Bonian Chen93ca7282022-03-09 09:26:03 +080062 PREFERRED_NETWORK_MODE_CHOICES_WORLD_MODE = 12;
SongFerngWangf7685dd2023-02-08 06:12:54 +080063
64 // For the case where GSM, 3G options are removed from the menu. The wording of LTE is '4G'.
65 // (4G)
66 ENABLED_NETWORKS_4G_CHOICES_EXCEPT_GSM_3G = 13;
67
68 // For the case where GSM and 3G are removed from the menu. The wording of LTE is 'LTE'.
69 // (LTE)
70 ENABLED_NETWORKS_CHOICES_EXCEPT_GSM_3G = 14;
Bonian Chen93ca7282022-03-09 09:26:03 +080071}
72
73// A request for popup menu.
74
75// Next tag: 4
76message UiOptions {
77 // Mapping to popup menu categories.
78 required EnabledNetworks type = 1;
79
80 // Resource which provides a list of network type values for this popup menu.
81 required int32 choices = 2;
82
83 // Presentation format of a continuous popop menu entries.
84 // Each format may contains any numbers of popop menu entries.
85
86 // Next tag: 12
87 enum PresentFormat {
88
89 // No PresentFormat specified.
90 PRESENT_FORMAT_UNSPECIFIED = 0;
91
92 // Append a CDMA 1x network option into popup menu.
93 add1xEntry = 1;
94
95 // Append a 2G network option into popup menu.
96 add2gEntry = 2;
97
98 // Append a 3G network option into popup menu.
99 add3gEntry = 3;
100
101 // Append a global mode option into popup menu.
102 addGlobalEntry = 4;
103
104 // Append a CDMA/LTE global mode option into popup menu.
105 addWorldModeCdmaEntry = 5;
106
107 // Append a GSM/LTE global mode option into popup menu.
108 addWorldModeGsmEntry = 6;
109
110 // Append a 4G network option into popup menu.
111 add4gEntry = 7;
112
113 // Append a LTE network option into popup menu.
114 addLteEntry = 8;
115
116 // Append a 5G network option into popup menu.
117 add5gEntry = 9;
118
119 // Append both 5G and 4G network options into popup menu.
120 add5gAnd4gEntry = 10;
121
122 // Append both 5G and LTE network options into popup menu.
123 add5gAndLteEntry = 11;
124 }
125
126 // Format of popup menu entries.
127 // The length of this entry need to be less than the network type values
128 // referenced from "choices" field.
129 repeated PresentFormat format = 3;
130}