Home
last modified time | relevance | path

Searched refs:networkInfo (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/wifi/slice/
DContextualWifiSlice.java121 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in isNetworkConnected() local
122 if (networkInfo == null) { in isNetworkConnected()
126 return networkInfo.getState() == State.CONNECTED; in isNetworkConnected()
140 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in getSubtitle() local
141 if (networkInfo == null) { in getSubtitle()
145 final State state = networkInfo.getState(); in getSubtitle()
152 detailedState = networkInfo.getDetailedState(); in getSubtitle()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java246 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getActiveWifiNetworkCapabilities() local
247 if (networkInfo.isConnected() in getActiveWifiNetworkCapabilities()
248 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in getActiveWifiNetworkCapabilities()
259 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getActiveWifiNetworkInfo() local
260 if (networkInfo.isConnected() in getActiveWifiNetworkInfo()
261 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in getActiveWifiNetworkInfo()
262 return networkInfo; in getActiveWifiNetworkInfo()
DCaptivePortalWaitingState.java64 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in openCaptivePortalPage() local
65 if (networkInfo.isConnected() in openCaptivePortalPage()
66 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in openCaptivePortalPage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2pSettingsTest.java171 final NetworkInfo networkInfo = mock(NetworkInfo.class); in lastGroupForm_whenGroupFormInWifiP2pInfoIsFalse_beSetAsFalse() local
172 doReturn(true).when(networkInfo).isConnected(); in lastGroupForm_whenGroupFormInWifiP2pInfoIsFalse_beSetAsFalse()
177 bundle.putParcelable(WifiP2pManager.EXTRA_NETWORK_INFO, networkInfo); in lastGroupForm_whenGroupFormInWifiP2pInfoIsFalse_beSetAsFalse()
188 final NetworkInfo networkInfo = mock(NetworkInfo.class); in lastGroupForm_whenGroupFormInWifiP2pInfoIsTrue_beSetAsTrue() local
189 doReturn(true).when(networkInfo).isConnected(); in lastGroupForm_whenGroupFormInWifiP2pInfoIsTrue_beSetAsTrue()
194 bundle.putParcelable(WifiP2pManager.EXTRA_NETWORK_INFO, networkInfo); in lastGroupForm_whenGroupFormInWifiP2pInfoIsTrue_beSetAsTrue()
259 final NetworkInfo networkInfo = mock(NetworkInfo.class); in noLastGroupForm_whenP2pDisconnected_shouldStartSearch() local
260 doReturn(false).when(networkInfo).isConnected(); in noLastGroupForm_whenP2pDisconnected_shouldStartSearch()
264 bundle.putParcelable(WifiP2pManager.EXTRA_NETWORK_INFO, networkInfo); in noLastGroupForm_whenP2pDisconnected_shouldStartSearch()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java291 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getFirstEthernet() local
292 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet()
369 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in updateConnectivityStatus() local
370 if (networkInfo == null) { in updateConnectivityStatus()
373 switch (networkInfo.getType()) { in updateConnectivityStatus()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java31 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in isWifiConnected() local
32 if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI in isWifiConnected()
33 && networkInfo.isConnected()) { in isWifiConnected()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java229 final NetworkInfo networkInfo = in testGetActiveNetworkInfo() local
231 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in testGetActiveNetworkInfo()
233 assertEquals(mUtils.getActiveNetworkInfo(mockContext), networkInfo); in testGetActiveNetworkInfo() local
445 NetworkInfo networkInfo = new NetworkInfo(type, 0, null, null); in setCurrentNetworkMock() local
446 networkInfo.setDetailedState( in setCurrentNetworkMock()
450 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in setCurrentNetworkMock()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiScanWorker.java142 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in getState() local
143 if (networkInfo != null) { in getState()
144 return networkInfo.getState(); in getState()
DWifiSlice.java368 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in getSummary() local
369 if (networkInfo == null) { in getSummary()
373 final State state = networkInfo.getState(); in getSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialogActivity.java143 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit() local
144 if (networkInfo == null || !networkInfo.isConnected()) { in onSubmit()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java151 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit() local
152 if (networkInfo == null || !networkInfo.isConnected()) { in onSubmit()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java247 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected() local
248 return networkInfo != null && networkInfo.isConnectedOrConnecting(); in isConnected()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java148 NetworkInfo networkInfo = getActiveNetworkInfo(); in isNetworkConnected() local
149 return networkInfo != null && networkInfo.isConnected(); in isNetworkConnected()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragmentTest.java141 … final NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, null, null); in setupConnectedAccessPoint() local
142 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in setupConnectedAccessPoint()
144 accessPoint.update(config, wifiInfo, networkInfo); in setupConnectedAccessPoint()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DNetworkTypeLogger.java68 final NetworkInfo networkInfo = mUtils.getActiveNetworkInfo(mContext); in log() local
70 final int networkType = networkInfo.getType(); in log()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsBasePreferenceController.java89 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument
103 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument
DWifiDetailsFragment.java187 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument
208 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument
DWifiInfoProvider.java66 void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo); in onWifiChanged() argument
82 NetworkInfo networkInfo, WifiInfo wifiInfo); in onWifiConfigurationChanged() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java147 final NetworkInfo networkInfo = mock(NetworkInfo.class); in createAccessPoint() local
148 doReturn(networkInfo).when(accessPoint).getNetworkInfo(); in createAccessPoint()
149 doReturn(NetworkInfo.State.CONNECTED).when(networkInfo).getState(); in createAccessPoint()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pSettings.java123 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra(
127 if (networkInfo.isConnected()) {
351 mWifiP2pManager.requestNetworkInfo(mChannel, networkInfo -> { in onResume()
354 if (networkInfo.isConnected()) { in onResume()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java135 NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, null, null); in setupConnectedAccessPoint() local
136 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in setupConnectedAccessPoint()
138 accessPoint.update(config, wifiInfo, networkInfo); in setupConnectedAccessPoint()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowWifiManager.java90 NetworkInfo networkInfo = in connect() local
100 connectivityManager.setActiveNetworkInfo(networkInfo); in connect()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java315 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in lookupAddress() local
317 if (networkInfo == null || !networkInfo.isConnected()) { in lookupAddress()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java128 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra(
132 if (networkInfo.isConnected()) {
355 mWifiP2pManager.requestNetworkInfo(mChannel, networkInfo -> { in onResume()
358 if (networkInfo.isConnected()) { in onResume()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java647 final NetworkInfo networkInfo = getActiveNetworkInfo(context); in isNetworkTypeConnected() local
648 if (networkInfo != null && networkInfo.isConnected()) { in isNetworkTypeConnected()
649 final int activeNetworkType = networkInfo.getType(); in isNetworkTypeConnected()

12