Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DNetworkState.java35 public final NetworkInfo networkInfo; field in NetworkState
43 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, in NetworkState() argument
46 this.networkInfo = networkInfo; in NetworkState()
55 if (VALIDATE_ROAMING_STATE && networkInfo != null && networkCapabilities != null) { in NetworkState()
56 if (networkInfo.isRoaming() == networkCapabilities in NetworkState()
58 Slog.wtf("NetworkState", "Roaming state disagreement between " + networkInfo in NetworkState()
66 networkInfo = in.readParcelable(null); in NetworkState()
81 out.writeParcelable(networkInfo, flags); in writeToParcel()
DNetworkIdentity.java188 final int type = state.networkInfo.getType(); in buildNetworkIdentity()
199 if (state.networkInfo.getState() != NetworkInfo.State.DISCONNECTED && in buildNetworkIdentity()
200 state.networkInfo.getState() != NetworkInfo.State.UNKNOWN) { in buildNetworkIdentity()
202 + state.networkInfo); in buildNetworkIdentity()
DNetworkAgent.java733 public final void sendNetworkInfo(NetworkInfo networkInfo) { in sendNetworkInfo() argument
737 queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, new NetworkInfo(networkInfo)); in sendNetworkInfo()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java305 NetworkInfo networkInfo =
312 accessPoint.update(configuration, wifiInfo, networkInfo);
321 NetworkInfo networkInfo =
329 accessPoint.update(configuration, wifiInfo, networkInfo);
354 NetworkInfo networkInfo =
361 accessPoint.update(configuration, wifiInfo, networkInfo);
503 NetworkInfo networkInfo =
505 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
508 .setNetworkInfo(networkInfo)
568 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()
772 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldSynchronouslyFetchLatestInformation() local
774 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test"); in onStartShouldSynchronouslyFetchLatestInformation()
775 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); in onStartShouldSynchronouslyFetchLatestInformation()
798 NetworkInfo networkInfo = new NetworkInfo( in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java222 private WifiConfiguration createWifiConfigForProvider(PasspointNetworkCandidate networkInfo) { in createWifiConfigForProvider() argument
223 WifiConfiguration config = networkInfo.mProvider.getWifiConfig(); in createWifiConfigForProvider()
224 config.SSID = ScanResultUtil.createQuotedSSID(networkInfo.mScanDetail.getSSID()); in createWifiConfigForProvider()
225 if (networkInfo.mMatchStatus == PasspointMatch.HomeProvider) { in createWifiConfigForProvider()
251 networkInfo.mScanDetail.getScanResult(), 0); in createWifiConfigForProvider()
253 result.getNetworkId(), networkInfo.mScanDetail); in createWifiConfigForProvider()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java87 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
91 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "", "");
103 mNai.networkInfo = new NetworkInfo(null);
104 mNai.networkInfo.setType(ConnectivityManager.TYPE_WIFI);
116 + "nat64Prefix=%s addresses=%s", expected, nai.networkInfo.getType(),
117 nai.networkInfo.getDetailedState(),
125 + "nat64Prefix=%s addresses=%s", expected, nai.networkInfo.getType(),
126 nai.networkInfo.getDetailedState(),
149 mNai.networkInfo.setType(type);
151 mNai.networkInfo.setDetailedState(state, "reason", "extraInfo");
DNetworkNotificationManagerTest.java98 mWifiNai.networkInfo = mNetworkInfo; in setUp()
100 mCellNai.networkInfo = mNetworkInfo; in setUp()
102 mVpnNai.networkInfo = mNetworkInfo; in setUp()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DTestUtil.java40 NetworkInfo networkInfo = new NetworkInfo(0, 0, "", ""); in sendNetworkStateChanged() local
41 networkInfo.setDetailedState(detailedState, "", ""); in sendNetworkStateChanged()
42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in sendNetworkStateChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java301 public synchronized void sendNetworkInfo(NetworkInfo networkInfo, DataConnection dc) { in sendNetworkInfo() argument
304 final NetworkInfo.State state = networkInfo.getState(); in sendNetworkInfo()
305 if (mNetworkInfo.getExtraInfo() != networkInfo.getExtraInfo()) { in sendNetworkInfo()
306 setLegacyExtraInfo(networkInfo.getExtraInfo()); in sendNetworkInfo()
308 int subType = networkInfo.getSubtype(); in sendNetworkInfo()
316 mNetworkInfo = new NetworkInfo(networkInfo); in sendNetworkInfo()
/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/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java114 final NetworkInfo networkInfo = in handleBroadcast() local
116 connected = networkInfo != null && networkInfo.isConnected(); in handleBroadcast()
DWifiTracker.java772 private void updateNetworkInfo(NetworkInfo networkInfo) { in updateNetworkInfo() argument
779 if (networkInfo != null) { in updateNetworkInfo()
780 mLastNetworkInfo = networkInfo; in updateNetworkInfo()
785 if(networkInfo.isConnected() != mConnected.getAndSet(networkInfo.isConnected())) { in updateNetworkInfo()
DAccessPoint.java1469 @Nullable WifiConfiguration config, WifiInfo info, NetworkInfo networkInfo) { in update() argument
1483 } else if (mNetworkInfo != null && networkInfo != null in update()
1484 && mNetworkInfo.getDetailedState() != networkInfo.getDetailedState()) { in update()
1488 mNetworkInfo = networkInfo; in update()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkSuggestionEvaluator.java287 PerNetworkSuggestionMatchMetaInfo networkInfo = allMatchedNetworkInfos in findConnectableNetworksAndPickBest() local
291 if (networkInfo == null) { // should never happen. in findConnectableNetworksAndPickBest()
295 return networkInfo; in findConnectableNetworksAndPickBest()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java125 @NonNull public NetworkInfo networkInfo; field in NetworkAgentInfo
279 networkInfo = info; in NetworkAgentInfo()
536 return new NetworkState(new NetworkInfo(networkInfo), in getNetworkState()
663 + networkInfo.toShortString() + "} " in toString()
DNat464Xlat.java120 final boolean supported = ArrayUtils.contains(NETWORK_TYPES, nai.networkInfo.getType()); in requiresClat()
121 final boolean connected = ArrayUtils.contains(NETWORK_STATES, nai.networkInfo.getState()); in requiresClat()
DVpn.java1142 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo);
1143 networkInfo.setIsAvailable(false);
1144 networkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null);
1145 networkAgent.sendNetworkInfo(networkInfo);
2581 final NetworkInfo networkInfo = cm.getNetworkInfo(network);
2582 if (networkInfo != null) mOuterConnection.set(networkInfo.getType());
DNetworkNotificationManager.java152 final String extraInfo = nai.networkInfo.getExtraInfo(); in showNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java195 NetworkInfo networkInfo = mock(NetworkInfo.class); in setWifiState() local
196 when(networkInfo.isConnected()).thenReturn(connected); in setWifiState()
202 i.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in setWifiState()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java815 private void handleConnectionChanged(NetworkInfo networkInfo) { in handleConnectionChanged() argument
816 mNetworkInfo = networkInfo; in handleConnectionChanged()
817 if (mWfdEnabled && networkInfo.isConnected()) { in handleConnectionChanged()
1075 NetworkInfo networkInfo = (NetworkInfo)intent.getParcelableExtra(
1079 + networkInfo);
1082 handleConnectionChanged(networkInfo);
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java518 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile() local
519 return networkInfo.isConnected(); in isConnectedToMobile()
527 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in isConnectedToWifi() local
528 return networkInfo.isConnected(); in isConnectedToWifi()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java816 final DetailedState state = nai.networkInfo.getDetailedState(); in update()
1265 state.networkInfo.setType(networkType); in getFilteredNetworkState()
1389 if (state == null || state.networkInfo == null || state.linkProperties == null) return; in filterNetworkStateForUid()
1392 state.networkInfo.setDetailedState(DetailedState.BLOCKED, null, null); in filterNetworkStateForUid()
1396 mLockdownTracker.augmentNetworkInfo(state.networkInfo); in filterNetworkStateForUid()
1414 maybeLogBlockedNetworkInfo(state.networkInfo, uid); in getActiveNetworkInfo()
1415 return state.networkInfo; in getActiveNetworkInfo()
1463 return state.networkInfo; in getActiveNetworkInfoUnfiltered()
1471 return state.networkInfo; in getActiveNetworkInfoForUid()
1483 if (state.networkInfo != null && state.networkInfo.getType() == networkType) { in getNetworkInfo()
[all …]

12