/frameworks/base/core/java/android/net/ |
D | NetworkState.java | 35 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()
|
D | NetworkIdentity.java | 188 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()
|
D | NetworkAgent.java | 733 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/ |
D | AccessPointTest.java | 305 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 …]
|
D | WifiTrackerTest.java | 421 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/ |
D | PasspointNetworkEvaluator.java | 222 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/ |
D | Nat464XlatTest.java | 87 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");
|
D | NetworkNotificationManagerTest.java | 98 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/ |
D | WifiDebuggingSecondaryUserActivity.java | 75 NetworkInfo networkInfo = (NetworkInfo) intent.getParcelableExtra( in onReceive() local 77 if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) { in onReceive() 78 if (!networkInfo.isConnected()) { in onReceive()
|
D | WifiDebuggingActivity.java | 146 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/ |
D | TestUtil.java | 40 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/ |
D | DcNetworkAgent.java | 301 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/ |
D | NetworkActivity.java | 292 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/ |
D | WifiStatusTracker.java | 114 final NetworkInfo networkInfo = in handleBroadcast() local 116 connected = networkInfo != null && networkInfo.isConnected(); in handleBroadcast()
|
D | WifiTracker.java | 772 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()
|
D | AccessPoint.java | 1469 @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/ |
D | NetworkSuggestionEvaluator.java | 287 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/ |
D | NetworkAgentInfo.java | 125 @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()
|
D | Nat464Xlat.java | 120 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()
|
D | Vpn.java | 1142 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());
|
D | NetworkNotificationManager.java | 152 final String extraInfo = nai.networkInfo.getExtraInfo(); in showNotification()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerWifiTest.java | 195 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/ |
D | WifiDisplayController.java | 815 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/ |
D | ConnectionUtil.java | 518 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/ |
D | ConnectivityService.java | 816 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 …]
|