blob: bd768202aa7aabcdce579565767a0df2a90a7fa9 [file] [log] [blame]
Joe Onoratofd52b182010-11-10 18:00:52 -08001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.systemui.statusbar.policy;
18
19import com.android.systemui.R;
Jason Monkda68f592015-01-07 10:55:58 -050020import com.android.systemui.statusbar.policy.MobileSignalController.MobileIconGroup;
Joe Onoratofd52b182010-11-10 18:00:52 -080021
22class TelephonyIcons {
Joe Onoratofd52b182010-11-10 18:00:52 -080023 //***** Data connection icons
Jorim Jaggic737b9b2014-09-08 23:57:20 +020024 static final int FLIGHT_MODE_ICON = R.drawable.stat_sys_airplane_mode;
Jason Monk48edc0c2017-04-10 15:01:27 -040025
Amin Shaikhd64e6262018-03-08 10:08:13 -050026 static final int ICON_LTE = R.drawable.ic_lte_mobiledata;
27 static final int ICON_LTE_PLUS = R.drawable.ic_lte_plus_mobiledata;
28 static final int ICON_G = R.drawable.ic_g_mobiledata;
29 static final int ICON_E = R.drawable.ic_e_mobiledata;
30 static final int ICON_H = R.drawable.ic_h_mobiledata;
Amin Shaikhd64e6262018-03-08 10:08:13 -050031 static final int ICON_H_PLUS = R.drawable.ic_h_plus_mobiledata;
32 static final int ICON_3G = R.drawable.ic_3g_mobiledata;
33 static final int ICON_4G = R.drawable.ic_4g_mobiledata;
34 static final int ICON_4G_PLUS = R.drawable.ic_4g_plus_mobiledata;
35 static final int ICON_1X = R.drawable.ic_1x_mobiledata;
Jorim Jaggic737b9b2014-09-08 23:57:20 +020036
Andrew Flynna478d702015-04-14 23:33:45 -040037 static final MobileIconGroup CARRIER_NETWORK_CHANGE = new MobileIconGroup(
38 "CARRIER_NETWORK_CHANGE",
Jason Monk48edc0c2017-04-10 15:01:27 -040039 null,
40 null,
Andrew Flynna478d702015-04-14 23:33:45 -040041 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
42 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -040043 0,
44 0,
Andrew Flynna478d702015-04-14 23:33:45 -040045 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -050046 R.string.carrier_network_change_mode,
Andrew Flynna478d702015-04-14 23:33:45 -040047 0,
Amin Shaikhd64e6262018-03-08 10:08:13 -050048 false);
Jason Monkd2263cd2014-11-10 14:22:56 -050049
50 static final MobileIconGroup THREE_G = new MobileIconGroup(
51 "3G",
Jason Monk48edc0c2017-04-10 15:01:27 -040052 null,
53 null,
Jason Monkd2263cd2014-11-10 14:22:56 -050054 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
55 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -040056 0,
57 0,
Jason Monkd2263cd2014-11-10 14:22:56 -050058 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -050059 R.string.data_connection_3g,
Jason Monkd2263cd2014-11-10 14:22:56 -050060 TelephonyIcons.ICON_3G,
Amin Shaikhd64e6262018-03-08 10:08:13 -050061 true);
Jason Monkd2263cd2014-11-10 14:22:56 -050062
Jason Monk7150d7f2015-07-09 10:14:12 -040063 static final MobileIconGroup WFC = new MobileIconGroup(
64 "WFC",
Jason Monk48edc0c2017-04-10 15:01:27 -040065 null,
66 null,
Jason Monk7150d7f2015-07-09 10:14:12 -040067 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
68 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -040069 0,
70 0,
Jason Monk7150d7f2015-07-09 10:14:12 -040071 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikhd64e6262018-03-08 10:08:13 -050072 0, 0, false);
Jason Monk7150d7f2015-07-09 10:14:12 -040073
Jason Monkd2263cd2014-11-10 14:22:56 -050074 static final MobileIconGroup UNKNOWN = new MobileIconGroup(
75 "Unknown",
Jason Monk48edc0c2017-04-10 15:01:27 -040076 null,
77 null,
Jason Monkd2263cd2014-11-10 14:22:56 -050078 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
79 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -040080 0,
81 0,
Jason Monkd2263cd2014-11-10 14:22:56 -050082 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikhd64e6262018-03-08 10:08:13 -050083 0, 0, false);
Jason Monkd2263cd2014-11-10 14:22:56 -050084
85 static final MobileIconGroup E = new MobileIconGroup(
86 "E",
Jason Monk48edc0c2017-04-10 15:01:27 -040087 null,
88 null,
Jason Monkd2263cd2014-11-10 14:22:56 -050089 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
90 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -040091 0,
92 0,
Jason Monkd2263cd2014-11-10 14:22:56 -050093 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -050094 R.string.data_connection_edge,
Jason Monkd2263cd2014-11-10 14:22:56 -050095 TelephonyIcons.ICON_E,
Amin Shaikhd64e6262018-03-08 10:08:13 -050096 false);
Jason Monkd2263cd2014-11-10 14:22:56 -050097
98 static final MobileIconGroup ONE_X = new MobileIconGroup(
99 "1X",
Jason Monk48edc0c2017-04-10 15:01:27 -0400100 null,
101 null,
Jason Monkd2263cd2014-11-10 14:22:56 -0500102 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
103 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400104 0,
105 0,
Jason Monkd2263cd2014-11-10 14:22:56 -0500106 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500107 R.string.data_connection_cdma,
Jason Monkd2263cd2014-11-10 14:22:56 -0500108 TelephonyIcons.ICON_1X,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500109 true);
Jason Monkd2263cd2014-11-10 14:22:56 -0500110
111 static final MobileIconGroup G = new MobileIconGroup(
112 "G",
Jason Monk48edc0c2017-04-10 15:01:27 -0400113 null,
114 null,
Jason Monkd2263cd2014-11-10 14:22:56 -0500115 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
116 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400117 0,
118 0,
Jason Monkd2263cd2014-11-10 14:22:56 -0500119 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500120 R.string.data_connection_gprs,
Jason Monkd2263cd2014-11-10 14:22:56 -0500121 TelephonyIcons.ICON_G,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500122 false);
Jason Monkd2263cd2014-11-10 14:22:56 -0500123
124 static final MobileIconGroup H = new MobileIconGroup(
125 "H",
Jason Monk48edc0c2017-04-10 15:01:27 -0400126 null,
127 null,
Jason Monkd2263cd2014-11-10 14:22:56 -0500128 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
129 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400130 0,
131 0,
Jason Monkd2263cd2014-11-10 14:22:56 -0500132 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500133 R.string.data_connection_3_5g,
Jason Monkd2263cd2014-11-10 14:22:56 -0500134 TelephonyIcons.ICON_H,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500135 false);
Jason Monkd2263cd2014-11-10 14:22:56 -0500136
Amin Shaikhf5830ca2018-03-09 14:06:50 -0500137 static final MobileIconGroup H_PLUS = new MobileIconGroup(
138 "H+",
139 null,
140 null,
141 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
142 0, 0,
143 0,
144 0,
145 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
146 R.string.data_connection_3_5g_plus,
147 TelephonyIcons.ICON_H_PLUS,
148 false);
149
Jason Monkd2263cd2014-11-10 14:22:56 -0500150 static final MobileIconGroup FOUR_G = new MobileIconGroup(
151 "4G",
Jason Monk48edc0c2017-04-10 15:01:27 -0400152 null,
153 null,
Jason Monkd2263cd2014-11-10 14:22:56 -0500154 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
155 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400156 0,
157 0,
Jason Monkd2263cd2014-11-10 14:22:56 -0500158 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500159 R.string.data_connection_4g,
Jason Monkd2263cd2014-11-10 14:22:56 -0500160 TelephonyIcons.ICON_4G,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500161 true);
Jason Monkd2263cd2014-11-10 14:22:56 -0500162
Ajay Nambi7965fa42015-05-14 18:48:33 -0700163 static final MobileIconGroup FOUR_G_PLUS = new MobileIconGroup(
164 "4G+",
Jason Monk48edc0c2017-04-10 15:01:27 -0400165 null,
166 null,
Ajay Nambi7965fa42015-05-14 18:48:33 -0700167 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
168 0,0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400169 0,
170 0,
Ajay Nambi7965fa42015-05-14 18:48:33 -0700171 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500172 R.string.data_connection_4g_plus,
Ajay Nambi7965fa42015-05-14 18:48:33 -0700173 TelephonyIcons.ICON_4G_PLUS,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500174 true);
Ajay Nambi7965fa42015-05-14 18:48:33 -0700175
Jason Monkd2263cd2014-11-10 14:22:56 -0500176 static final MobileIconGroup LTE = new MobileIconGroup(
177 "LTE",
Jason Monk48edc0c2017-04-10 15:01:27 -0400178 null,
179 null,
Jason Monkd2263cd2014-11-10 14:22:56 -0500180 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
181 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400182 0,
183 0,
Jason Monkd2263cd2014-11-10 14:22:56 -0500184 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500185 R.string.data_connection_lte,
Jason Monkd2263cd2014-11-10 14:22:56 -0500186 TelephonyIcons.ICON_LTE,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500187 true);
Jason Monkd2263cd2014-11-10 14:22:56 -0500188
Jason Monkaa730be2016-07-13 14:22:52 -0400189 static final MobileIconGroup LTE_PLUS = new MobileIconGroup(
190 "LTE+",
Jason Monk48edc0c2017-04-10 15:01:27 -0400191 null,
192 null,
Jason Monkaa730be2016-07-13 14:22:52 -0400193 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
194 0, 0,
Jason Monk48edc0c2017-04-10 15:01:27 -0400195 0,
196 0,
Jason Monkaa730be2016-07-13 14:22:52 -0400197 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Amin Shaikh43ad7fe2018-03-05 14:34:44 -0500198 R.string.data_connection_lte_plus,
Jason Monkaa730be2016-07-13 14:22:52 -0400199 TelephonyIcons.ICON_LTE_PLUS,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500200 true);
Jason Monk7e6c83c2017-04-26 14:35:24 -0400201
202 static final MobileIconGroup DATA_DISABLED = new MobileIconGroup(
203 "DataDisabled",
204 null,
205 null,
206 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH,
207 0, 0,
208 0,
209 0,
210 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0],
Rohan Shah7bc37442018-04-10 00:34:50 -0400211 R.string.cell_data_off_content_description,
Amin Shaikhaf4c1932018-03-08 10:29:56 -0500212 0,
Amin Shaikhd64e6262018-03-08 10:08:13 -0500213 false);
Joe Onoratofd52b182010-11-10 18:00:52 -0800214}
215