1 /* 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 17 package com.android.systemui.statusbar.policy; 18 19 import com.android.systemui.R; 20 import com.android.systemui.statusbar.policy.MobileSignalController.MobileIconGroup; 21 22 class TelephonyIcons { 23 //***** Data connection icons 24 static final int FLIGHT_MODE_ICON = R.drawable.stat_sys_airplane_mode; 25 26 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; 31 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; 36 37 static final MobileIconGroup CARRIER_NETWORK_CHANGE = new MobileIconGroup( 38 "CARRIER_NETWORK_CHANGE", 39 null, 40 null, 41 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 42 0, 0, 43 0, 44 0, 45 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 46 R.string.carrier_network_change_mode, 47 0, 48 false); 49 50 static final MobileIconGroup THREE_G = new MobileIconGroup( 51 "3G", 52 null, 53 null, 54 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 55 0, 0, 56 0, 57 0, 58 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 59 R.string.data_connection_3g, 60 TelephonyIcons.ICON_3G, 61 true); 62 63 static final MobileIconGroup WFC = new MobileIconGroup( 64 "WFC", 65 null, 66 null, 67 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 68 0, 0, 69 0, 70 0, 71 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 72 0, 0, false); 73 74 static final MobileIconGroup UNKNOWN = new MobileIconGroup( 75 "Unknown", 76 null, 77 null, 78 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 79 0, 0, 80 0, 81 0, 82 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 83 0, 0, false); 84 85 static final MobileIconGroup E = new MobileIconGroup( 86 "E", 87 null, 88 null, 89 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 90 0, 0, 91 0, 92 0, 93 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 94 R.string.data_connection_edge, 95 TelephonyIcons.ICON_E, 96 false); 97 98 static final MobileIconGroup ONE_X = new MobileIconGroup( 99 "1X", 100 null, 101 null, 102 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 103 0, 0, 104 0, 105 0, 106 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 107 R.string.data_connection_cdma, 108 TelephonyIcons.ICON_1X, 109 true); 110 111 static final MobileIconGroup G = new MobileIconGroup( 112 "G", 113 null, 114 null, 115 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 116 0, 0, 117 0, 118 0, 119 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 120 R.string.data_connection_gprs, 121 TelephonyIcons.ICON_G, 122 false); 123 124 static final MobileIconGroup H = new MobileIconGroup( 125 "H", 126 null, 127 null, 128 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 129 0, 0, 130 0, 131 0, 132 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 133 R.string.data_connection_3_5g, 134 TelephonyIcons.ICON_H, 135 false); 136 137 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 150 static final MobileIconGroup FOUR_G = new MobileIconGroup( 151 "4G", 152 null, 153 null, 154 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 155 0, 0, 156 0, 157 0, 158 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 159 R.string.data_connection_4g, 160 TelephonyIcons.ICON_4G, 161 true); 162 163 static final MobileIconGroup FOUR_G_PLUS = new MobileIconGroup( 164 "4G+", 165 null, 166 null, 167 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 168 0,0, 169 0, 170 0, 171 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 172 R.string.data_connection_4g_plus, 173 TelephonyIcons.ICON_4G_PLUS, 174 true); 175 176 static final MobileIconGroup LTE = new MobileIconGroup( 177 "LTE", 178 null, 179 null, 180 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 181 0, 0, 182 0, 183 0, 184 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 185 R.string.data_connection_lte, 186 TelephonyIcons.ICON_LTE, 187 true); 188 189 static final MobileIconGroup LTE_PLUS = new MobileIconGroup( 190 "LTE+", 191 null, 192 null, 193 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH, 194 0, 0, 195 0, 196 0, 197 AccessibilityContentDescriptions.PHONE_SIGNAL_STRENGTH[0], 198 R.string.data_connection_lte_plus, 199 TelephonyIcons.ICON_LTE_PLUS, 200 true); 201 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], 211 R.string.cell_data_off_content_description, 212 0, 213 false); 214 } 215 216