Home
last modified time | relevance | path

Searched refs:mInternetUpdater (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetUpdaterTest.java72 private InternetUpdater mInternetUpdater; field in InternetUpdaterTest
82 mInternetUpdater = new InternetUpdater(mContext, lifecycle, null); in setUp()
83 mInternetUpdater.mAirplaneModeEnabler = mAirplaneModeEnabler; in setUp()
88 mInternetUpdater.onResume(); in onResume_shouldRegisterCallback()
95 mInternetUpdater.onPause(); in onResume_shouldRegisterCallback()
101 mInternetUpdater.onResume(); in onPause_shouldUnregisterCallback()
103 mInternetUpdater.onPause(); in onPause_shouldUnregisterCallback()
113 mInternetUpdater.onDestroy(); in onDestroy_shouldCloseCallback()
125 mInternetUpdater.updateInternetAvailable(networkCapabilities); in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable()
127 assertThat(mInternetUpdater.mInternetAvailable).isEqualTo(false); in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/panel/
DInternetConnectivityPanelTest.java85 InternetUpdater mInternetUpdater; field in InternetConnectivityPanelTest
124 mPanel.mInternetUpdater = mInternetUpdater; in setUp()
131 doReturn(false).when(mInternetUpdater).isAirplaneModeOn(); in getTitle_apmOff_shouldBeInternet()
138 doReturn(true).when(mInternetUpdater).isAirplaneModeOn(); in getTitle_apmOn_shouldBeApm()
145 doReturn(true).when(mInternetUpdater).isAirplaneModeOn(); in getSubTitle_apmOnWifiOff_shouldBeNull()
146 doReturn(false).when(mInternetUpdater).isWifiEnabled(); in getSubTitle_apmOnWifiOff_shouldBeNull()
153 doReturn(true).when(mInternetUpdater).isAirplaneModeOn(); in getSubTitle_apmOnWifiOn_shouldBeNull()
154 doReturn(true).when(mInternetUpdater).isWifiEnabled(); in getSubTitle_apmOnWifiOn_shouldBeNull()
161 doReturn(false).when(mInternetUpdater).isAirplaneModeOn(); in getSubTitle_apmOffWifiOff_wifiIsOn()
162 doReturn(false).when(mInternetUpdater).isWifiEnabled(); in getSubTitle_apmOffWifiOff_wifiIsOn()
[all …]
/packages/apps/Settings/src/com/android/settings/panel/
DInternetConnectivityPanel.java102 InternetUpdater mInternetUpdater; field in InternetConnectivityPanel
149 mInternetUpdater = new InternetUpdater(context, null /* Lifecycle */, this); in InternetConnectivityPanel()
175 mInternetUpdater.onResume(); in onResume()
191 mInternetUpdater.onPause(); in onPause()
206 return mContext.getText(mInternetUpdater.isAirplaneModeOn() in getTitle()
319 if (!mInternetUpdater.isWifiEnabled()) { in updateSubtitleText()
320 if (!mInternetUpdater.isAirplaneModeOn()) { in updateSubtitleText()
329 if (mInternetUpdater.isAirplaneModeOn()) { in updateSubtitleText()
378 if (mWifiManager == null || !mInternetUpdater.isWifiEnabled()) { in updateProgressBar()
/packages/apps/Settings/src/com/android/settings/network/
DConnectedEthernetNetworkController.java41 private InternetUpdater mInternetUpdater; field in ConnectedEthernetNetworkController
46 mInternetUpdater = new InternetUpdater(context, lifecycle, this); in ConnectedEthernetNetworkController()
47 mInternetType = mInternetUpdater.getInternetType(); in ConnectedEthernetNetworkController()
DInternetPreferenceController.java62 private InternetUpdater mInternetUpdater; field in InternetPreferenceController
90 mInternetUpdater = new InternetUpdater(context, lifecycle, this); in InternetPreferenceController()
91 mInternetType = mInternetUpdater.getInternetType(); in InternetPreferenceController()
DNetworkProviderSettings.java209 InternetUpdater mInternetUpdater; field in NetworkProviderSettings
348 mInternetUpdater = new InternetUpdater(getContext(), getSettingsLifecycle(), this); in onActivityCreated()
899 if (mInternetUpdater.getInternetType() == InternetUpdater.INTERNET_WIFI) { in getConnectedWifiPreferenceCategory()
912 if (mInternetUpdater.getInternetType() == InternetUpdater.INTERNET_WIFI) { in createConnectedWifiEntryPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java118 InternetUpdater mInternetUpdater; field in NetworkProviderSettingsTest
146 mNetworkProviderSettings.mInternetUpdater = mInternetUpdater; in setUp()
470 doReturn(InternetUpdater.INTERNET_WIFI).when(mInternetUpdater).getInternetType(); in getConnectedWifiPreferenceCategory_internetWiFi_getConnectedAccessPoints()
479 doReturn(InternetUpdater.INTERNET_CELLULAR).when(mInternetUpdater).getInternetType(); in getConnectedWifiPreferenceCategory_internetCellular_getFirstAccessPoints()
489 doReturn(InternetUpdater.INTERNET_WIFI).when(mInternetUpdater).getInternetType(); in createConnectedWifiEntryPreference_internetWiFi_createConnectedPreference()
499 doReturn(InternetUpdater.INTERNET_CELLULAR).when(mInternetUpdater).getInternetType(); in createConnectedWifiEntryPreference_internetCellular_createFirstWifiPreference()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DNetworkProviderWorker.java87 private InternetUpdater mInternetUpdater; field in NetworkProviderWorker
108 mInternetUpdater = new InternetUpdater(mContext, getLifecycle(), this); in NetworkProviderWorker()
109 mInternetType = mInternetUpdater.getInternetType(); in NetworkProviderWorker()