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 21 class TelephonyIcons { 22 //***** Signal strength icons 23 24 //GSM/UMTS 25 static final int[][] TELEPHONY_SIGNAL_STRENGTH = { 26 { R.drawable.stat_sys_signal_0_fully, 27 R.drawable.stat_sys_signal_1_fully, 28 R.drawable.stat_sys_signal_2_fully, 29 R.drawable.stat_sys_signal_3_fully, 30 R.drawable.stat_sys_signal_4_fully }, 31 { R.drawable.stat_sys_signal_0_fully, 32 R.drawable.stat_sys_signal_1_fully, 33 R.drawable.stat_sys_signal_2_fully, 34 R.drawable.stat_sys_signal_3_fully, 35 R.drawable.stat_sys_signal_4_fully } 36 }; 37 38 static final int[][] QS_TELEPHONY_SIGNAL_STRENGTH = { 39 { R.drawable.ic_qs_signal_0, 40 R.drawable.ic_qs_signal_1, 41 R.drawable.ic_qs_signal_2, 42 R.drawable.ic_qs_signal_3, 43 R.drawable.ic_qs_signal_4 }, 44 { R.drawable.ic_qs_signal_full_0, 45 R.drawable.ic_qs_signal_full_1, 46 R.drawable.ic_qs_signal_full_2, 47 R.drawable.ic_qs_signal_full_3, 48 R.drawable.ic_qs_signal_full_4 } 49 }; 50 51 static final int[][] TELEPHONY_SIGNAL_STRENGTH_ROAMING = { 52 { R.drawable.stat_sys_signal_0_fully, 53 R.drawable.stat_sys_signal_1_fully, 54 R.drawable.stat_sys_signal_2_fully, 55 R.drawable.stat_sys_signal_3_fully, 56 R.drawable.stat_sys_signal_4_fully }, 57 { R.drawable.stat_sys_signal_0_fully, 58 R.drawable.stat_sys_signal_1_fully, 59 R.drawable.stat_sys_signal_2_fully, 60 R.drawable.stat_sys_signal_3_fully, 61 R.drawable.stat_sys_signal_4_fully } 62 }; 63 64 static final int[] QS_DATA_R = { 65 R.drawable.ic_qs_signal_r, 66 R.drawable.ic_qs_signal_full_r 67 }; 68 69 static final int[][] DATA_SIGNAL_STRENGTH = TELEPHONY_SIGNAL_STRENGTH; 70 71 //***** Data connection icons 72 73 //GSM/UMTS 74 static final int[][] DATA_G = { 75 { R.drawable.stat_sys_data_fully_connected_g, 76 R.drawable.stat_sys_data_fully_connected_g, 77 R.drawable.stat_sys_data_fully_connected_g, 78 R.drawable.stat_sys_data_fully_connected_g }, 79 { R.drawable.stat_sys_data_fully_connected_g, 80 R.drawable.stat_sys_data_fully_connected_g, 81 R.drawable.stat_sys_data_fully_connected_g, 82 R.drawable.stat_sys_data_fully_connected_g } 83 }; 84 85 static final int[] QS_DATA_G = { 86 R.drawable.ic_qs_signal_g, 87 R.drawable.ic_qs_signal_full_g 88 }; 89 90 static final int[][] DATA_3G = { 91 { R.drawable.stat_sys_data_fully_connected_3g, 92 R.drawable.stat_sys_data_fully_connected_3g, 93 R.drawable.stat_sys_data_fully_connected_3g, 94 R.drawable.stat_sys_data_fully_connected_3g }, 95 { R.drawable.stat_sys_data_fully_connected_3g, 96 R.drawable.stat_sys_data_fully_connected_3g, 97 R.drawable.stat_sys_data_fully_connected_3g, 98 R.drawable.stat_sys_data_fully_connected_3g } 99 }; 100 101 static final int[] QS_DATA_3G = { 102 R.drawable.ic_qs_signal_3g, 103 R.drawable.ic_qs_signal_full_3g 104 }; 105 106 static final int[][] DATA_E = { 107 { R.drawable.stat_sys_data_fully_connected_e, 108 R.drawable.stat_sys_data_fully_connected_e, 109 R.drawable.stat_sys_data_fully_connected_e, 110 R.drawable.stat_sys_data_fully_connected_e }, 111 { R.drawable.stat_sys_data_fully_connected_e, 112 R.drawable.stat_sys_data_fully_connected_e, 113 R.drawable.stat_sys_data_fully_connected_e, 114 R.drawable.stat_sys_data_fully_connected_e } 115 }; 116 117 static final int[] QS_DATA_E = { 118 R.drawable.ic_qs_signal_e, 119 R.drawable.ic_qs_signal_full_e 120 }; 121 122 //3.5G 123 static final int[][] DATA_H = { 124 { R.drawable.stat_sys_data_fully_connected_h, 125 R.drawable.stat_sys_data_fully_connected_h, 126 R.drawable.stat_sys_data_fully_connected_h, 127 R.drawable.stat_sys_data_fully_connected_h }, 128 { R.drawable.stat_sys_data_fully_connected_h, 129 R.drawable.stat_sys_data_fully_connected_h, 130 R.drawable.stat_sys_data_fully_connected_h, 131 R.drawable.stat_sys_data_fully_connected_h } 132 }; 133 134 static final int[] QS_DATA_H = { 135 R.drawable.ic_qs_signal_h, 136 R.drawable.ic_qs_signal_full_h 137 }; 138 139 //CDMA 140 // Use 3G icons for EVDO data and 1x icons for 1XRTT data 141 static final int[][] DATA_1X = { 142 { R.drawable.stat_sys_data_fully_connected_1x, 143 R.drawable.stat_sys_data_fully_connected_1x, 144 R.drawable.stat_sys_data_fully_connected_1x, 145 R.drawable.stat_sys_data_fully_connected_1x }, 146 { R.drawable.stat_sys_data_fully_connected_1x, 147 R.drawable.stat_sys_data_fully_connected_1x, 148 R.drawable.stat_sys_data_fully_connected_1x, 149 R.drawable.stat_sys_data_fully_connected_1x } 150 }; 151 152 static final int[] QS_DATA_1X = { 153 R.drawable.ic_qs_signal_1x, 154 R.drawable.ic_qs_signal_full_1x 155 }; 156 157 // LTE and eHRPD 158 static final int[][] DATA_4G = { 159 { R.drawable.stat_sys_data_fully_connected_4g, 160 R.drawable.stat_sys_data_fully_connected_4g, 161 R.drawable.stat_sys_data_fully_connected_4g, 162 R.drawable.stat_sys_data_fully_connected_4g }, 163 { R.drawable.stat_sys_data_fully_connected_4g, 164 R.drawable.stat_sys_data_fully_connected_4g, 165 R.drawable.stat_sys_data_fully_connected_4g, 166 R.drawable.stat_sys_data_fully_connected_4g } 167 }; 168 169 static final int[] QS_DATA_4G = { 170 R.drawable.ic_qs_signal_4g, 171 R.drawable.ic_qs_signal_full_4g 172 }; 173 174 // LTE branded "LTE" 175 static final int[][] DATA_LTE = { 176 { R.drawable.stat_sys_data_fully_connected_lte, 177 R.drawable.stat_sys_data_fully_connected_lte, 178 R.drawable.stat_sys_data_fully_connected_lte, 179 R.drawable.stat_sys_data_fully_connected_lte }, 180 { R.drawable.stat_sys_data_fully_connected_lte, 181 R.drawable.stat_sys_data_fully_connected_lte, 182 R.drawable.stat_sys_data_fully_connected_lte, 183 R.drawable.stat_sys_data_fully_connected_lte } 184 }; 185 186 static final int[] QS_DATA_LTE = { 187 R.drawable.ic_qs_signal_lte, 188 R.drawable.ic_qs_signal_full_lte 189 }; 190 191 } 192 193