Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 1 | package com.android.systemui.statusbar.policy; |
| 2 | |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 3 | import static org.mockito.Matchers.anyInt; |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 4 | import static org.mockito.Mockito.doReturn; |
Jason Monk | 9c7844c | 2017-01-18 15:21:53 -0500 | [diff] [blame] | 5 | import static org.mockito.Mockito.mock; |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 6 | import static org.mockito.Mockito.when; |
Jason Monk | 9c7844c | 2017-01-18 15:21:53 -0500 | [diff] [blame] | 7 | |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 8 | import android.net.NetworkCapabilities; |
Jason Monk | 07b75fe | 2015-05-14 16:47:03 -0400 | [diff] [blame] | 9 | import android.os.Looper; |
Jack Yu | f9d06c7 | 2019-03-15 14:49:53 -0700 | [diff] [blame] | 10 | import android.telephony.NetworkRegistrationInfo; |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 11 | import android.telephony.ServiceState; |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 12 | import android.telephony.TelephonyManager; |
Jason Monk | e427cb8 | 2015-07-28 09:18:08 -0400 | [diff] [blame] | 13 | import android.test.suitebuilder.annotation.SmallTest; |
Jason Monk | 2515f47 | 2017-09-19 09:52:43 -0400 | [diff] [blame] | 14 | import android.testing.AndroidTestingRunner; |
| 15 | import android.testing.TestableLooper; |
| 16 | import android.testing.TestableLooper.RunWithLooper; |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 17 | |
Jason Monk | f668d7c | 2016-01-14 10:38:41 -0500 | [diff] [blame] | 18 | import com.android.settingslib.net.DataUsageController; |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 19 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 20 | import org.junit.Test; |
| 21 | import org.junit.runner.RunWith; |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 22 | import org.mockito.Mockito; |
Jason Monk | 33f8ae7 | 2015-05-08 10:45:15 -0400 | [diff] [blame] | 23 | |
Jason Monk | e427cb8 | 2015-07-28 09:18:08 -0400 | [diff] [blame] | 24 | @SmallTest |
Jason Monk | 2515f47 | 2017-09-19 09:52:43 -0400 | [diff] [blame] | 25 | @RunWith(AndroidTestingRunner.class) |
| 26 | @RunWithLooper |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 27 | public class NetworkControllerDataTest extends NetworkControllerBaseTest { |
| 28 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 29 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 30 | public void test3gDataIcon() { |
| 31 | setupDefaultSignal(); |
| 32 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 33 | verifyDataIndicators(TelephonyIcons.ICON_3G); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 34 | } |
| 35 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 36 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 37 | public void test2gDataIcon() { |
| 38 | setupDefaultSignal(); |
| 39 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 40 | TelephonyManager.NETWORK_TYPE_GSM); |
| 41 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 42 | verifyDataIndicators(TelephonyIcons.ICON_G); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 43 | } |
| 44 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 45 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 46 | public void testCdmaDataIcon() { |
| 47 | setupDefaultSignal(); |
| 48 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 49 | TelephonyManager.NETWORK_TYPE_CDMA); |
| 50 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 51 | verifyDataIndicators(TelephonyIcons.ICON_1X); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 52 | } |
| 53 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 54 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 55 | public void testEdgeDataIcon() { |
| 56 | setupDefaultSignal(); |
| 57 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 58 | TelephonyManager.NETWORK_TYPE_EDGE); |
| 59 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 60 | verifyDataIndicators(TelephonyIcons.ICON_E); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 61 | } |
| 62 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 63 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 64 | public void testLteDataIcon() { |
| 65 | setupDefaultSignal(); |
| 66 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 67 | TelephonyManager.NETWORK_TYPE_LTE); |
| 68 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 69 | verifyDataIndicators(TelephonyIcons.ICON_LTE); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 70 | } |
| 71 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 72 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 73 | public void testHspaDataIcon() { |
| 74 | setupDefaultSignal(); |
| 75 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 76 | TelephonyManager.NETWORK_TYPE_HSPA); |
| 77 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 78 | verifyDataIndicators(TelephonyIcons.ICON_H); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 79 | } |
| 80 | |
Amin Shaikh | f5830ca | 2018-03-09 14:06:50 -0500 | [diff] [blame] | 81 | |
| 82 | @Test |
| 83 | public void testHspaPlusDataIcon() { |
| 84 | setupDefaultSignal(); |
| 85 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 86 | TelephonyManager.NETWORK_TYPE_HSPAP); |
| 87 | |
| 88 | verifyDataIndicators(TelephonyIcons.ICON_H_PLUS); |
| 89 | } |
| 90 | |
| 91 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 92 | @Test |
Jason Monk | 7150d7f | 2015-07-09 10:14:12 -0400 | [diff] [blame] | 93 | public void testWfcNoDataIcon() { |
| 94 | setupDefaultSignal(); |
| 95 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 96 | TelephonyManager.NETWORK_TYPE_IWLAN); |
| 97 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 98 | verifyDataIndicators(0); |
Jason Monk | 7150d7f | 2015-07-09 10:14:12 -0400 | [diff] [blame] | 99 | } |
| 100 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 101 | @Test |
Jason Monk | 3aaabd7 | 2014-12-12 11:11:44 -0500 | [diff] [blame] | 102 | public void test4gDataIcon() { |
| 103 | // Switch to showing 4g icon and re-initialize the NetworkController. |
| 104 | mConfig.show4gForLte = true; |
Sundeep Ghuman | 9d10a3c | 2017-06-16 00:05:16 +0000 | [diff] [blame] | 105 | mNetworkController = new NetworkControllerImpl(mContext, mMockCm, mMockTm, mMockWm, mMockSm, |
Jason Monk | 07b75fe | 2015-05-14 16:47:03 -0400 | [diff] [blame] | 106 | mConfig, Looper.getMainLooper(), mCallbackHandler, |
Jason Monk | 9c7844c | 2017-01-18 15:21:53 -0500 | [diff] [blame] | 107 | mock(AccessPointControllerImpl.class), |
| 108 | mock(DataUsageController.class), mMockSubDefaults, |
| 109 | mock(DeviceProvisionedController.class)); |
Jason Monk | 3aaabd7 | 2014-12-12 11:11:44 -0500 | [diff] [blame] | 110 | setupNetworkController(); |
| 111 | |
| 112 | setupDefaultSignal(); |
| 113 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 114 | TelephonyManager.NETWORK_TYPE_LTE); |
| 115 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 116 | verifyDataIndicators(TelephonyIcons.ICON_4G); |
Jason Monk | 3aaabd7 | 2014-12-12 11:11:44 -0500 | [diff] [blame] | 117 | } |
| 118 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 119 | @Test |
Amin Shaikh | af4c193 | 2018-03-08 10:29:56 -0500 | [diff] [blame] | 120 | public void testNoInternetIcon() { |
| 121 | setupNetworkController(); |
| 122 | when(mMockTm.getDataEnabled(mSubId)).thenReturn(false); |
| 123 | setupDefaultSignal(); |
| 124 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, 0); |
Anarghya Mitra | 678722f | 2018-05-11 14:29:54 -0700 | [diff] [blame] | 125 | setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); |
Amin Shaikh | af4c193 | 2018-03-08 10:29:56 -0500 | [diff] [blame] | 126 | |
| 127 | // Verify that a SignalDrawable with a cut out is used to display data disabled. |
| 128 | verifyLastMobileDataIndicators(true, DEFAULT_SIGNAL_STRENGTH, 0, |
| 129 | true, DEFAULT_QS_SIGNAL_STRENGTH, 0, false, |
| 130 | false, true); |
| 131 | } |
| 132 | |
| 133 | @Test |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 134 | public void testDataDisabledIcon() { |
| 135 | setupNetworkController(); |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 136 | when(mMockTm.getDataEnabled(mSubId)).thenReturn(false); |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 137 | setupDefaultSignal(); |
| 138 | updateDataConnectionState(TelephonyManager.DATA_DISCONNECTED, 0); |
Anarghya Mitra | 678722f | 2018-05-11 14:29:54 -0700 | [diff] [blame] | 139 | setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 140 | |
Amin Shaikh | af4c193 | 2018-03-08 10:29:56 -0500 | [diff] [blame] | 141 | // Verify that a SignalDrawable with a cut out is used to display data disabled. |
| 142 | verifyLastMobileDataIndicators(true, DEFAULT_SIGNAL_STRENGTH, 0, |
| 143 | true, DEFAULT_QS_SIGNAL_STRENGTH, 0, false, |
| 144 | false, true); |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 145 | } |
| 146 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 147 | @Test |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 148 | public void testNr5GIcon_NrConnectedWithoutMMWave_show5GIcon() { |
| 149 | setupDefaultNr5GIconConfiguration(); |
| 150 | setupDefaultSignal(); |
| 151 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 152 | TelephonyManager.NETWORK_TYPE_LTE); |
| 153 | ServiceState ss = Mockito.mock(ServiceState.class); |
Jack Yu | f9d06c7 | 2019-03-15 14:49:53 -0700 | [diff] [blame] | 154 | doReturn(NetworkRegistrationInfo.NR_STATUS_CONNECTED).when(ss).getNrStatus(); |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 155 | doReturn(ServiceState.FREQUENCY_RANGE_HIGH).when(ss).getNrFrequencyRange(); |
| 156 | mPhoneStateListener.onServiceStateChanged(ss); |
| 157 | |
| 158 | verifyDataIndicators(TelephonyIcons.ICON_5G); |
| 159 | } |
| 160 | |
| 161 | @Test |
| 162 | public void testNr5GIcon_NrConnectedWithMMWave_show5GPlusIcon() { |
| 163 | setupDefaultNr5GIconConfiguration(); |
| 164 | setupDefaultSignal(); |
| 165 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 166 | TelephonyManager.NETWORK_TYPE_LTE); |
| 167 | ServiceState ss = Mockito.mock(ServiceState.class); |
Jack Yu | f9d06c7 | 2019-03-15 14:49:53 -0700 | [diff] [blame] | 168 | doReturn(NetworkRegistrationInfo.NR_STATUS_CONNECTED).when(ss).getNrStatus(); |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 169 | doReturn(ServiceState.FREQUENCY_RANGE_MMWAVE).when(ss).getNrFrequencyRange(); |
| 170 | mPhoneStateListener.onServiceStateChanged(ss); |
| 171 | |
| 172 | verifyDataIndicators(TelephonyIcons.ICON_5G_PLUS); |
| 173 | } |
| 174 | |
| 175 | @Test |
| 176 | public void testNr5GIcon_NrRestricted_showLteIcon() { |
| 177 | setupDefaultNr5GIconConfiguration(); |
| 178 | setupDefaultSignal(); |
| 179 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 180 | TelephonyManager.NETWORK_TYPE_LTE); |
| 181 | ServiceState ss = Mockito.mock(ServiceState.class); |
Jack Yu | f9d06c7 | 2019-03-15 14:49:53 -0700 | [diff] [blame] | 182 | doReturn(NetworkRegistrationInfo.NR_STATUS_RESTRICTED).when(ss).getNrStatus(); |
Pengquan Meng | f2c18a0 | 2018-12-06 17:38:38 -0800 | [diff] [blame] | 183 | mPhoneStateListener.onServiceStateChanged(mServiceState); |
| 184 | |
| 185 | verifyDataIndicators(TelephonyIcons.ICON_LTE); |
| 186 | } |
| 187 | |
| 188 | @Test |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 189 | public void testDataDisabledIcon_UserNotSetup() { |
| 190 | setupNetworkController(); |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 191 | when(mMockTm.getDataEnabled(mSubId)).thenReturn(false); |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 192 | setupDefaultSignal(); |
| 193 | updateDataConnectionState(TelephonyManager.DATA_DISCONNECTED, 0); |
Anarghya Mitra | 678722f | 2018-05-11 14:29:54 -0700 | [diff] [blame] | 194 | setConnectivityViaBroadcast(NetworkCapabilities.TRANSPORT_CELLULAR, false, false); |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 195 | when(mMockProvisionController.isUserSetup(anyInt())).thenReturn(false); |
| 196 | mUserCallback.onUserSetupChanged(); |
Jason Monk | 2515f47 | 2017-09-19 09:52:43 -0400 | [diff] [blame] | 197 | TestableLooper.get(this).processAllMessages(); |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 198 | |
| 199 | // Don't show the X until the device is setup. |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 200 | verifyDataIndicators(0); |
Jason Monk | fd57ea7 | 2016-04-29 13:37:58 -0400 | [diff] [blame] | 201 | } |
| 202 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 203 | @Test |
Wenting Xiong | 63364fe | 2017-02-07 19:12:27 +0800 | [diff] [blame] | 204 | public void testAlwaysShowDataRatIcon() { |
| 205 | setupDefaultSignal(); |
| 206 | when(mMockTm.getDataEnabled(mSubId)).thenReturn(false); |
| 207 | updateDataConnectionState(TelephonyManager.DATA_DISCONNECTED, |
| 208 | TelephonyManager.NETWORK_TYPE_GSM); |
| 209 | |
| 210 | // Switch to showing data RAT icon when data is disconnected |
| 211 | // and re-initialize the NetworkController. |
| 212 | mConfig.alwaysShowDataRatIcon = true; |
| 213 | mNetworkController.handleConfigurationChanged(); |
| 214 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 215 | verifyDataIndicators(TelephonyIcons.ICON_G); |
Wenting Xiong | 63364fe | 2017-02-07 19:12:27 +0800 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | @Test |
Jason Monk | 3aaabd7 | 2014-12-12 11:11:44 -0500 | [diff] [blame] | 219 | public void test4gDataIconConfigChange() { |
| 220 | setupDefaultSignal(); |
| 221 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 222 | TelephonyManager.NETWORK_TYPE_LTE); |
| 223 | |
| 224 | // Switch to showing 4g icon and re-initialize the NetworkController. |
| 225 | mConfig.show4gForLte = true; |
| 226 | // Can't send the broadcast as that would actually read the config from |
| 227 | // the context. Instead we'll just poke at a function that does all of |
| 228 | // the after work. |
| 229 | mNetworkController.handleConfigurationChanged(); |
| 230 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 231 | verifyDataIndicators(TelephonyIcons.ICON_4G); |
Jason Monk | 3aaabd7 | 2014-12-12 11:11:44 -0500 | [diff] [blame] | 232 | } |
| 233 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 234 | @Test |
Jason Monk | 67b2c16 | 2016-01-12 10:24:09 -0500 | [diff] [blame] | 235 | public void testDataChangeWithoutConnectionState() { |
| 236 | setupDefaultSignal(); |
| 237 | updateDataConnectionState(TelephonyManager.DATA_CONNECTED, |
| 238 | TelephonyManager.NETWORK_TYPE_LTE); |
| 239 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 240 | verifyDataIndicators(TelephonyIcons.ICON_LTE); |
Jason Monk | 67b2c16 | 2016-01-12 10:24:09 -0500 | [diff] [blame] | 241 | |
Jason Monk | 0288de0 | 2017-02-23 14:48:05 -0500 | [diff] [blame] | 242 | when(mServiceState.getDataNetworkType()) |
Jason Monk | 67b2c16 | 2016-01-12 10:24:09 -0500 | [diff] [blame] | 243 | .thenReturn(TelephonyManager.NETWORK_TYPE_HSPA); |
| 244 | updateServiceState(); |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 245 | verifyDataIndicators(TelephonyIcons.ICON_H); |
Jason Monk | 67b2c16 | 2016-01-12 10:24:09 -0500 | [diff] [blame] | 246 | } |
| 247 | |
Geoffrey Pitsch | 2c403db | 2016-08-26 09:09:39 -0400 | [diff] [blame] | 248 | @Test |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 249 | public void testDataActivity() { |
| 250 | setupDefaultSignal(); |
| 251 | |
| 252 | testDataActivity(TelephonyManager.DATA_ACTIVITY_NONE, false, false); |
| 253 | testDataActivity(TelephonyManager.DATA_ACTIVITY_IN, true, false); |
| 254 | testDataActivity(TelephonyManager.DATA_ACTIVITY_OUT, false, true); |
| 255 | testDataActivity(TelephonyManager.DATA_ACTIVITY_INOUT, true, true); |
| 256 | } |
| 257 | |
| 258 | private void testDataActivity(int direction, boolean in, boolean out) { |
| 259 | updateDataActivity(direction); |
| 260 | |
Jason Monk | 26ad85a | 2016-12-08 14:45:42 -0500 | [diff] [blame] | 261 | verifyLastMobileDataIndicators(true, DEFAULT_SIGNAL_STRENGTH, DEFAULT_ICON, true, |
Jason Monk | 7e6c83c | 2017-04-26 14:35:24 -0400 | [diff] [blame] | 262 | DEFAULT_QS_SIGNAL_STRENGTH, DEFAULT_QS_ICON, in, out); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 263 | } |
| 264 | |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 265 | private void verifyDataIndicators(int dataIcon) { |
Jason Monk | 26ad85a | 2016-12-08 14:45:42 -0500 | [diff] [blame] | 266 | verifyLastMobileDataIndicators(true, DEFAULT_SIGNAL_STRENGTH, dataIcon, |
Amin Shaikh | d64e626 | 2018-03-08 10:08:13 -0500 | [diff] [blame] | 267 | true, DEFAULT_QS_SIGNAL_STRENGTH, dataIcon, false, |
Jason Monk | b574627 | 2014-11-12 16:50:31 -0500 | [diff] [blame] | 268 | false); |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 269 | } |
Jason Monk | f13b4b3 | 2014-11-07 16:39:34 -0500 | [diff] [blame] | 270 | } |