/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 (SANITY_CHECK_ROAMING && 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 | 732 public final void sendNetworkInfo(NetworkInfo networkInfo) { in sendNetworkInfo() argument 736 queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, new NetworkInfo(networkInfo)); in sendNetworkInfo()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 306 NetworkInfo networkInfo = 313 accessPoint.update(configuration, wifiInfo, networkInfo); 322 NetworkInfo networkInfo = 330 accessPoint.update(configuration, wifiInfo, networkInfo); 355 NetworkInfo networkInfo = 362 accessPoint.update(configuration, wifiInfo, networkInfo); 529 NetworkInfo networkInfo = 531 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 535 .setNetworkInfo(networkInfo) 696 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() 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/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 145 final NetworkInfo networkInfo = in fetchInitialState() local 147 connected = networkInfo != null && networkInfo.isConnected(); in fetchInitialState() 174 final NetworkInfo networkInfo = in handleBroadcast() local 176 connected = networkInfo != null && networkInfo.isConnected(); in handleBroadcast()
|
D | WifiTracker.java | 780 private void updateNetworkInfo(NetworkInfo networkInfo) { in updateNetworkInfo() argument 787 if (networkInfo != null) { in updateNetworkInfo() 788 mLastNetworkInfo = networkInfo; in updateNetworkInfo() 793 if(networkInfo.isConnected() != mConnected.getAndSet(networkInfo.isConnected())) { in updateNetworkInfo()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | WifiPickerTracker.java | 738 @Nullable NetworkInfo networkInfo) { in updateConnectionInfo() argument 740 entry.updateConnectionInfo(wifiInfo, networkInfo); in updateConnectionInfo() 743 entry.updateConnectionInfo(wifiInfo, networkInfo); in updateConnectionInfo() 746 entry.updateConnectionInfo(wifiInfo, networkInfo); in updateConnectionInfo() 749 entry.updateConnectionInfo(wifiInfo, networkInfo); in updateConnectionInfo() 752 mNetworkRequestEntry.updateConnectionInfo(wifiInfo, networkInfo); in updateConnectionInfo() 755 conditionallyCreateConnectedStandardWifiEntry(wifiInfo, networkInfo); in updateConnectionInfo() 756 conditionallyCreateConnectedSuggestedWifiEntry(wifiInfo, networkInfo); in updateConnectionInfo() 757 conditionallyCreateConnectedPasspointWifiEntry(wifiInfo, networkInfo); in updateConnectionInfo() 768 @Nullable NetworkInfo networkInfo) { in conditionallyCreateConnectedStandardWifiEntry() argument [all …]
|
D | WifiEntry.java | 589 @NonNull NetworkInfo networkInfo); in connectionInfoMatches() argument 597 void updateConnectionInfo(@Nullable WifiInfo wifiInfo, @Nullable NetworkInfo networkInfo) { in updateConnectionInfo() argument 598 if (wifiInfo != null && networkInfo != null in updateConnectionInfo() 599 && connectionInfoMatches(wifiInfo, networkInfo)) { in updateConnectionInfo() 603 mNetworkInfo = networkInfo; in updateConnectionInfo()
|
D | Utils.java | 568 static String getNetworkDetailedState(Context context, NetworkInfo networkInfo) { in getNetworkDetailedState() argument 569 if (context == null || networkInfo == null) { in getNetworkDetailedState() 572 DetailedState detailState = networkInfo.getDetailedState(); in getNetworkDetailedState()
|
/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/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/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerWifiTest.java | 188 NetworkInfo networkInfo = mock(NetworkInfo.class); in testFetchInitialData_correctValues() local 189 when(networkInfo.isConnected()).thenReturn(true); in testFetchInitialData_correctValues() 190 when(mMockCm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)).thenReturn(networkInfo); in testFetchInitialData_correctValues() 225 NetworkInfo networkInfo = mock(NetworkInfo.class); in setWifiState() local 226 when(networkInfo.isConnected()).thenReturn(connected); in setWifiState() 232 i.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo); in setWifiState()
|
/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 | 295 public synchronized void sendNetworkInfo(NetworkInfo networkInfo, DataConnection dc) { in sendNetworkInfo() argument 298 final NetworkInfo.State state = networkInfo.getState(); in sendNetworkInfo() 299 if (mNetworkInfo.getExtraInfo() != networkInfo.getExtraInfo()) { in sendNetworkInfo() 300 setLegacyExtraInfo(networkInfo.getExtraInfo()); in sendNetworkInfo() 302 int subType = networkInfo.getSubtype(); in sendNetworkInfo() 310 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/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | PasspointWifiEntryTest.java | 154 NetworkInfo networkInfo = in testGetSummary_connectedWifiNetwork_showsConnected() local 156 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testGetSummary_connectedWifiNetwork_showsConnected() 161 entry.updateConnectionInfo(wifiInfo, networkInfo); in testGetSummary_connectedWifiNetwork_showsConnected()
|
D | StandardWifiEntryTest.java | 594 final NetworkInfo networkInfo = in testGetSummary_connectedWifiNetwork_showsConnected() local 596 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); in testGetSummary_connectedWifiNetwork_showsConnected() 605 entry.updateConnectionInfo(wifiInfo, networkInfo); in testGetSummary_connectedWifiNetwork_showsConnected()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | WifiDisplayController.java | 831 private void handleConnectionChanged(NetworkInfo networkInfo) { in handleConnectionChanged() argument 832 mNetworkInfo = networkInfo; in handleConnectionChanged() 833 if (mWfdEnabled && networkInfo.isConnected()) { in handleConnectionChanged() 1092 NetworkInfo networkInfo = (NetworkInfo)intent.getParcelableExtra( 1096 + networkInfo); 1099 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 …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
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());
|