Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java317 NetworkInfo networkInfo =
324 accessPoint.update(configuration, wifiInfo, networkInfo);
333 NetworkInfo networkInfo =
341 accessPoint.update(configuration, wifiInfo, networkInfo);
366 NetworkInfo networkInfo =
373 accessPoint.update(configuration, wifiInfo, networkInfo);
540 NetworkInfo networkInfo =
542 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
546 .setNetworkInfo(networkInfo)
717 NetworkInfo networkInfo =
[all …]
DWifiTrackerTest.java421 NetworkInfo networkInfo = new NetworkInfo( in createTrackerWithScanResultsAndAccessPoint1Connected() local
423 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in createTrackerWithScanResultsAndAccessPoint1Connected()
426 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in createTrackerWithScanResultsAndAccessPoint1Connected()
442 NetworkInfo networkInfo = new NetworkInfo( in switchToNetwork2() local
444 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "connecting", "test"); in switchToNetwork2()
454 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in switchToNetwork2()
771 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldSynchronouslyFetchLatestInformation() local
773 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldSynchronouslyFetchLatestInformation()
774 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); in onStartShouldSynchronouslyFetchLatestInformation()
797 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/
DWifiDebuggingSecondaryUserActivity.java75 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( in onReceive() local
77 if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in onReceive()
78 if (!networkInfo.isConnected()) { in onReceive()
DWifiDebuggingActivity.java146 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( in onReceive() local
148 if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in onReceive()
149 if (!networkInfo.isConnected()) { in onReceive()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java292 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); in onReceive() local
298 if (WIFI.equals(sPref) && networkInfo != null in onReceive()
299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in onReceive()
308 } else if (ANY.equals(sPref) && networkInfo != null) { in onReceive()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DNetworkDetailsTracker.java143 NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); in handleNetworkStateChangedAction() local
144 if (primaryWifiInfo == null || networkInfo == null) { in handleNetworkStateChangedAction()
147 getWifiEntry().onPrimaryWifiInfoChanged(primaryWifiInfo, networkInfo); in handleNetworkStateChangedAction()
DSavedNetworkTracker.java297 NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); in handleNetworkStateChangedAction() local
298 if (primaryWifiInfo == null || networkInfo == null) { in handleNetworkStateChangedAction()
302 entry.onPrimaryWifiInfoChanged(primaryWifiInfo, networkInfo); in handleNetworkStateChangedAction()
DUtils.java338 static String getConnectingDescription(Context context, NetworkInfo networkInfo) { in getConnectingDescription() argument
339 if (context == null || networkInfo == null) { in getConnectingDescription()
342 DetailedState detailedState = networkInfo.getDetailedState(); in getConnectingDescription()
593 static String getNetworkDetailedState(Context context, NetworkInfo networkInfo) { in getNetworkDetailedState() argument
594 if (context == null || networkInfo == null) { in getNetworkDetailedState()
597 DetailedState detailedState = networkInfo.getDetailedState(); in getNetworkDetailedState()
DWifiEntry.java973 @Nullable WifiInfo primaryWifiInfo, @Nullable NetworkInfo networkInfo) { in onPrimaryWifiInfoChanged() argument
981 if (networkInfo != null) { in onPrimaryWifiInfoChanged()
982 mNetworkInfo = networkInfo; in onPrimaryWifiInfoChanged()
DWifiPickerTracker.java366 NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); in handleNetworkStateChangedAction() local
371 entry.onPrimaryWifiInfoChanged(primaryWifiInfo, networkInfo); in handleNetworkStateChangedAction()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java835 private void handleConnectionChanged(NetworkInfo networkInfo) { in handleConnectionChanged() argument
836 mNetworkInfo = networkInfo; in handleConnectionChanged()
837 if (mWfdEnabled && networkInfo.isConnected()) { in handleConnectionChanged()
892 } else if (!networkInfo.isConnectedOrConnecting()) { in handleConnectionChanged()
1098 NetworkInfo networkInfo = (NetworkInfo)intent.getParcelableExtra(
1102 + networkInfo);
1105 handleConnectionChanged(networkInfo);
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java521 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile() local
522 return networkInfo.isConnected(); in isConnectedToMobile()
530 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in isConnectedToWifi() local
531 return networkInfo.isConnected(); in isConnectedToWifi()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java233 final NetworkInfo networkInfo = in fetchInitialState() local
235 connected = networkInfo != null && networkInfo.isConnected(); in fetchInitialState()
DWifiTracker.java781 private void updateNetworkInfo(NetworkInfo networkInfo) { in updateNetworkInfo() argument
788 if (networkInfo != null) { in updateNetworkInfo()
789 mLastNetworkInfo = networkInfo; in updateNetworkInfo()
794 if(networkInfo.isConnected() != mConnected.getAndSet(networkInfo.isConnected())) { in updateNetworkInfo()
DAccessPoint.java1520 @Nullable WifiConfiguration config, WifiInfo info, NetworkInfo networkInfo) { in update() argument
1534 } else if (mNetworkInfo != null && networkInfo != null in update()
1535 && mNetworkInfo.getDetailedState() != networkInfo.getDetailedState()) { in update()
1539 mNetworkInfo = networkInfo; in update()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerWifiTest.java239 NetworkInfo networkInfo = mock(NetworkInfo.class); in testFetchInitialData_correctValues() local
240 when(networkInfo.isConnected()).thenReturn(true); in testFetchInitialData_correctValues()
241 when(mMockCm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)).thenReturn(networkInfo); in testFetchInitialData_correctValues()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java674 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra(
676 if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {
678 if (!networkInfo.isConnected()) {
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java392 NetworkInfo networkInfo = getConnectivityManager().getActiveNetworkInfo(); in readDataConnectionState() local
393 return (networkInfo != null) && networkInfo.isConnected(); in readDataConnectionState()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16944 field public static final deprecated java.lang.String EXTRA_NETWORK_INFO = "networkInfo";
18067 field public static final java.lang.String EXTRA_NETWORK_INFO = "networkInfo";
18232 field public static final java.lang.String EXTRA_NETWORK_INFO = "networkInfo";