/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
D | ContextualWifiSlice.java | 121 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/ |
D | ConnectState.java | 246 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()
|
D | CaptivePortalWaitingState.java | 64 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/ |
D | WifiP2pSettingsTest.java | 171 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/ |
D | ConnectivityListener.java | 291 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/ |
D | JobPreconditions.java | 31 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/ |
D | UtilsTest.java | 229 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/ |
D | WifiScanWorker.java | 142 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in getState() local 143 if (networkInfo != null) { in getState() 144 return networkInfo.getState(); in getState()
|
D | WifiSlice.java | 368 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/ |
D | WifiDialogActivity.java | 143 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit() local 144 if (networkInfo == null || !networkInfo.isConnected()) { in onSubmit()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiDialogActivity.java | 151 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit() local 152 if (networkInfo == null || !networkInfo.isConnected()) { in onSubmit()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationHelper.java | 247 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected() local 248 return networkInfo != null && networkInfo.isConnectedOrConnecting(); in isConnected()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSuggestClient.java | 148 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/ |
D | WifiNetworkListFragmentTest.java | 141 … 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/ |
D | NetworkTypeLogger.java | 68 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/ |
D | WifiDetailsBasePreferenceController.java | 89 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument 103 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument
|
D | WifiDetailsFragment.java | 187 public void onWifiChanged(NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiChanged() argument 208 NetworkInfo networkInfo, WifiInfo wifiInfo) { in onWifiConfigurationChanged() argument
|
D | WifiInfoProvider.java | 66 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/ |
D | WifiSliceTest.java | 147 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/ |
D | WifiP2pSettings.java | 123 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/ |
D | WifiSettingsUiTest.java | 135 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/ |
D | ShadowWifiManager.java | 90 NetworkInfo networkInfo = in connect() local 100 connectivityManager.setActiveNetworkInfo(networkInfo); in connect()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 315 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in lookupAddress() local 317 if (networkInfo == null || !networkInfo.isConnected()) { in lookupAddress()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettings.java | 128 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/ |
D | Utils.java | 647 final NetworkInfo networkInfo = getActiveNetworkInfo(context); in isNetworkTypeConnected() local 648 if (networkInfo != null && networkInfo.isConnected()) { in isNetworkTypeConnected() 649 final int activeNetworkType = networkInfo.getType(); in isNetworkTypeConnected()
|