Searched refs:networkInfo (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/net/
H A DNetworkState.java33 public final NetworkInfo networkInfo; field in class:NetworkState
40 public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, argument
43 this.networkInfo = networkInfo;
52 if (SANITY_CHECK_ROAMING && networkInfo != null && networkCapabilities != null) {
53 if (networkInfo.isRoaming() == networkCapabilities
55 Slog.wtf("NetworkState", "Roaming state disagreement between " + networkInfo
62 networkInfo = in.readParcelable(null);
77 out.writeParcelable(networkInfo, flags);
H A DNetworkIdentity.java198 final int type = state.networkInfo.getType();
199 final int subType = state.networkInfo.getSubtype();
210 if (state.networkInfo.getState() != NetworkInfo.State.DISCONNECTED &&
211 state.networkInfo.getState() != NetworkInfo.State.UNKNOWN) {
213 + state.networkInfo);
H A DNetworkAgent.java354 public void sendNetworkInfo(NetworkInfo networkInfo) { argument
355 queueOrSendMessage(EVENT_NETWORK_INFO_CHANGED, new NetworkInfo(networkInfo));
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
H A DAccessPointTest.java277 NetworkInfo networkInfo =
284 accessPoint.update(configuration, wifiInfo, networkInfo);
293 NetworkInfo networkInfo =
301 accessPoint.update(configuration, wifiInfo, networkInfo);
326 NetworkInfo networkInfo =
333 accessPoint.update(configuration, wifiInfo, networkInfo);
475 NetworkInfo networkInfo =
477 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", "");
480 .setNetworkInfo(networkInfo)
669 NetworkInfo networkInfo
[all...]
H A DWifiTrackerTest.java331 NetworkInfo networkInfo = new NetworkInfo(
333 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test");
336 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
352 NetworkInfo networkInfo = new NetworkInfo(
354 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTING, "connecting", "test");
364 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
682 NetworkInfo networkInfo = new NetworkInfo(
684 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "connected", "test");
685 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo);
708 NetworkInfo networkInfo
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DPasspointNetworkEvaluator.java141 * @param networkInfo Contained information for the Passpoint network to connect to
144 private WifiConfiguration createWifiConfigForProvider(PasspointNetworkCandidate networkInfo) { argument
145 WifiConfiguration config = networkInfo.mProvider.getWifiConfig();
146 config.SSID = ScanResultUtil.createQuotedSSID(networkInfo.mScanDetail.getSSID());
147 if (networkInfo.mMatchStatus == PasspointMatch.HomeProvider) {
160 networkInfo.mScanDetail.getScanResult(), 0);
162 result.getNetworkId(), networkInfo.mScanDetail);
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkAgentInfo.java121 public NetworkInfo networkInfo; field in class:NetworkAgentInfo
254 networkInfo = info;
404 return networkInfo.getState() == NetworkInfo.State.SUSPENDED;
476 return new NetworkState(new NetworkInfo(networkInfo),
599 return "NetworkAgentInfo{ ni{" + networkInfo + "} " +
614 return "NetworkAgentInfo [" + networkInfo.getTypeName() + " (" +
615 networkInfo.getSubtypeName() + ") - " + Objects.toString(network) + "]";
H A DNat464Xlat.java91 final boolean supported = ArrayUtils.contains(NETWORK_TYPES, nai.networkInfo.getType());
92 final boolean connected = ArrayUtils.contains(NETWORK_STATES, nai.networkInfo.getState());
H A DVpn.java980 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo);
981 networkInfo.setIsAvailable(false);
982 networkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null);
983 networkAgent.sendNetworkInfo(networkInfo);
1907 final NetworkInfo networkInfo = cm.getNetworkInfo(network);
1908 if (networkInfo != null) mOuterConnection.set(networkInfo.getType());
H A DNetworkNotificationManager.java138 final String extraInfo = nai.networkInfo.getExtraInfo();
H A DKeepaliveTracker.java158 if (!mNai.networkInfo.isConnectedOrConnecting()) {
H A DTethering.java859 final NetworkInfo networkInfo =
861 if (networkInfo == null ||
862 networkInfo.getDetailedState() == NetworkInfo.DetailedState.FAILED) {
866 if (VDBG) Log.d(TAG, "Tethering got CONNECTIVITY_ACTION: " + networkInfo.toString());
H A DNetworkMonitor.java1266 switch (mNetworkAgentInfo.networkInfo.getType()) {
1323 mNetworkAgentInfo.networkInfo.getType());
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DTestUtil.java40 NetworkInfo networkInfo = new NetworkInfo(0, 0, "", "");
41 networkInfo.setDetailedState(detailedState, "", "");
42 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java292 NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
298 if (WIFI.equals(sPref) && networkInfo != null
299 && networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {
308 } else if (ANY.equals(sPref) && networkInfo != null) {
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DNat464XlatTest.java78 mNai.networkInfo = new NetworkInfo(null);
79 mNai.networkInfo.setType(ConnectivityManager.TYPE_WIFI);
103 mNai.networkInfo.setType(type);
105 mNai.networkInfo.setDetailedState(state, "reason", "extraInfo");
H A DNetworkNotificationManagerTest.java88 mWifiNai.networkInfo = mNetworkInfo;
90 mCellNai.networkInfo = mNetworkInfo;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DWifiStatusTracker.java109 final NetworkInfo networkInfo =
111 connected = networkInfo != null && networkInfo.isConnected();
H A DWifiTracker.java629 private void updateNetworkInfo(NetworkInfo networkInfo) { argument
637 if (networkInfo != null) {
638 mLastNetworkInfo = networkInfo;
643 if(networkInfo.isConnected() != mConnected.getAndSet(networkInfo.isConnected())) {
H A DAccessPoint.java1088 @Nullable WifiConfiguration config, WifiInfo info, NetworkInfo networkInfo) {
1103 } else if (mNetworkInfo != null && networkInfo != null
1104 && mNetworkInfo.getDetailedState() != networkInfo.getDetailedState()) {
1108 mNetworkInfo = networkInfo;
1087 update( @ullable WifiConfiguration config, WifiInfo info, NetworkInfo networkInfo) argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerWifiTest.java195 NetworkInfo networkInfo = mock(NetworkInfo.class);
196 when(networkInfo.isConnected()).thenReturn(connected);
202 i.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
/frameworks/base/services/core/java/com/android/server/
H A DConnectivityService.java676 final DetailedState state = nai.networkInfo.getDetailedState();
690 String state = (nai.networkInfo != null) ?
691 nai.networkInfo.getState() + "/" + nai.networkInfo.getDetailedState() :
1031 state.networkInfo.setType(networkType);
1149 if (state == null || state.networkInfo == null || state.linkProperties == null) return;
1152 state.networkInfo.setDetailedState(DetailedState.BLOCKED, null, null);
1156 mLockdownTracker.augmentNetworkInfo(state.networkInfo);
1174 maybeLogBlockedNetworkInfo(state.networkInfo, uid);
1175 return state.networkInfo;
4646 registerNetworkAgent(Messenger messenger, NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int currentScore, NetworkMisc networkMisc) argument
[all...]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java458 Log.v(LOG_TAG, "Do not have networkInfo! Force fetch of network info.");
464 Log.v(LOG_TAG, "Failed to force fetch networkInfo. " +
518 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
519 return networkInfo.isConnected();
527 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
528 return networkInfo.isConnected();
/frameworks/base/services/core/java/com/android/server/display/
H A DWifiDisplayController.java815 private void handleConnectionChanged(NetworkInfo networkInfo) { argument
816 mNetworkInfo = networkInfo;
817 if (mWfdEnabled && networkInfo.isConnected()) {
1075 NetworkInfo networkInfo = (NetworkInfo)intent.getParcelableExtra(
1078 Slog.d(TAG, "Received WIFI_P2P_CONNECTION_CHANGED_ACTION: networkInfo="
1079 + networkInfo);
1082 handleConnectionChanged(networkInfo);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
H A DWifiAwareDataPathStateManager.java506 NetworkInfo networkInfo = new NetworkInfo(ConnectivityManager.TYPE_NONE, 0,
533 networkInfo, networkCapabilities, linkProperties)) {
542 nnri.networkAgent.sendNetworkInfo(networkInfo);
1291 NetworkInfo networkInfo, NetworkCapabilities networkCapabilities,
1329 networkInfo.setIsAvailable(true);
1330 networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null);
1289 configureAgentProperties(AwareNetworkRequestInformation nnri, Set<WifiAwareNetworkSpecifier> networkSpecifiers, int ndpId, NetworkInfo networkInfo, NetworkCapabilities networkCapabilities, LinkProperties linkProperties) argument

Completed in 134 milliseconds

12