/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 248 private final NetworkInfo mNetworkInfo; field in NetworkInterfaceState 373 mNetworkInfo = new NetworkInfo(legacyType, 0, NETWORK_TYPE, ""); in NetworkInterfaceState() 374 mNetworkInfo.setExtraInfo(mHwAddress); in NetworkInterfaceState() 375 mNetworkInfo.setIsAvailable(true); in NetworkInterfaceState() 438 mNetworkInfo)); in start() 441 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddress); in start() 459 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddress); in onIpLayerStarted() 460 mNetworkInfo.setIsAvailable(true); in onIpLayerStarted() 464 NETWORK_TYPE, mNetworkInfo, mCapabilities, mLinkProperties, in onIpLayerStarted() 521 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddress); in stop() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | NetworkConnectivityListener.java | 52 private NetworkInfo mNetworkInfo; field in NetworkConnectivityListener 83 mNetworkInfo = (NetworkInfo) in onReceive() 93 Log.d(TAG, "onReceive(): mNetworkInfo=" + mNetworkInfo + " mOtherNetworkInfo = " in onReceive() 155 mNetworkInfo = null; in stopListening() 191 return mNetworkInfo; in getNetworkInfo()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 67 private NetworkInfo mNetworkInfo; field in ConnectionUtil 159 mNetworkInfo = connManager.getActiveNetworkInfo(); in onReceive() 166 Log.v(LOG_TAG, "mNetworkInfo: " + mNetworkInfo.toString()); in onReceive() 167 recordNetworkState(mNetworkInfo.getType(), mNetworkInfo.getState()); in onReceive() 457 if (mNetworkInfo == null) { in waitForNetworkState() 459 mNetworkInfo = mCM.getActiveNetworkInfo(); in waitForNetworkState() 463 if (mNetworkInfo == null) { in waitForNetworkState() 468 if ((mNetworkInfo.getType() != networkType) || in waitForNetworkState() 469 (mNetworkInfo.getState() != expectedState)) { in waitForNetworkState() 470 Log.v(LOG_TAG, "network state for " + mNetworkInfo.getType() + in waitForNetworkState() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | TestAccessPointBuilder.java | 53 private NetworkInfo mNetworkInfo = null; field in TestAccessPointBuilder 85 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build() 115 mNetworkInfo = new NetworkInfo( in setActive() 121 mNetworkInfo = null; in setActive() 149 mNetworkInfo = info; in setNetworkInfo()
|
D | AccessPoint.java | 238 private NetworkInfo mNetworkInfo; field in AccessPoint 294 mNetworkInfo = savedState.getParcelable(KEY_NETWORKINFO); in AccessPoint() 325 update(mConfig, mInfo, mNetworkInfo); in AccessPoint() 848 return mNetworkInfo; in getNetworkInfo() 951 if (mNetworkInfo != null) { in getDetailedState() 952 return mNetworkInfo.getDetailedState(); in getDetailedState() 1133 return mNetworkInfo != null && in isActive() 1135 mNetworkInfo.getState() != State.DISCONNECTED); in isActive() 1144 mNetworkInfo != null && mNetworkInfo.getState() != State.DISCONNECTED; in isEphemeral() 1255 if (mNetworkInfo != null) { in saveWifiState() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 48 NetworkInfo mNetworkInfo; field in WifiClientTest 74 mNetworkInfo = (NetworkInfo) in onReceive() 245 mNetworkInfo = null; in testWifiBroadcasts() 253 assertTrue(mNetworkInfo.isConnected()); in testWifiBroadcasts() 262 assertTrue(!mNetworkInfo.isConnected()); in testWifiBroadcasts()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 262 private NetworkInfo mNetworkInfo; field in DataConnection 582 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_MOBILE, in DataConnection() 584 mNetworkInfo.setRoaming(ss.getDataRoaming()); in DataConnection() 585 mNetworkInfo.setIsAvailable(true); in DataConnection() 742 mNetworkInfo.setDetailedState(mNetworkInfo.getDetailedState(), reason, in notifyAllWithEvent() 743 mNetworkInfo.getExtraInfo()); in notifyAllWithEvent() 1574 mNetworkAgent.sendNetworkInfo(mNetworkInfo, DataConnection.this); in processMessage() 1585 mNetworkAgent.sendNetworkInfo(mNetworkInfo, DataConnection.this); in processMessage() 1610 mNetworkInfo.setSubtype(subtype, TelephonyManager.getNetworkTypeName(subtype)); in updateNetworkInfo() 1611 mNetworkInfo.setRoaming(state.getDataRoaming()); in updateNetworkInfo() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 78 @Mock NetworkInfo mNetworkInfo; field in NetworkNotificationManagerTest 88 mWifiNai.networkInfo = mNetworkInfo; in setUp() 90 mCellNai.networkInfo = mNetworkInfo; in setUp() 94 when(mNetworkInfo.getExtraInfo()).thenReturn("extra"); in setUp()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 166 private final NetworkInfo mNetworkInfo; field in Vpn 239 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_VPN, 0 /* subtype */, NETWORKTYPE, in Vpn() 264 mNetworkInfo.setDetailedState(detailedState, reason, null); in updateState() 266 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in updateState() 519 updateAlwaysOnNotification(mNetworkInfo.getDetailedState()); in setAlwaysOnPackageInternal() 840 return mNetworkInfo; in getNetworkInfo() 972 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, null); in agentConnect() 983 mNetworkInfo, mNetworkCapabilities, lp, in agentConnect() 994 mNetworkInfo.setIsAvailable(true); in agentConnect() 1009 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo); in agentDisconnect() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 326 private NetworkInfo mNetworkInfo; field in ClientModeImpl 791 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, NETWORKTYPE, ""); in ClientModeImpl() 819 mNetworkInfo.setIsAvailable(false); in ClientModeImpl() 2027 pw.println("mNetworkInfo " + mNetworkInfo); in dump() 2815 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo); in sendNetworkStateChangeBroadcast() 2867 + mNetworkInfo.getDetailedState() + " and new state=" + state in setNetworkDetailedState() 2874 if (state != mNetworkInfo.getDetailedState()) { in setNetworkDetailedState() 2875 mNetworkInfo.setDetailedState(state, null, null); in setNetworkDetailedState() 2877 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in setNetworkDetailedState() 2886 return mNetworkInfo.getDetailedState(); in getNetworkDetailedState() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 241 private NetworkInfo mNetworkInfo; field in WifiP2pServiceImpl 450 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, NETWORKTYPE, ""); in WifiP2pServiceImpl() 708 pw.println("mNetworkInfo " + mNetworkInfo); in dump() 1081 mNetworkInfo); in processMessage() 1419 mNetworkInfo.setIsAvailable(true); in enter() 1735 mNetworkInfo.setIsAvailable(false); in exit() 2559 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in enter() 2840 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in exit() 3000 intent.putExtra(WifiP2pManager.EXTRA_NETWORK_INFO, new NetworkInfo(mNetworkInfo)); in sendP2pConnectionChangedBroadcast() 3006 new NetworkInfo(mNetworkInfo)); in sendP2pConnectionChangedBroadcast() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | WifiDisplayController.java | 103 private NetworkInfo mNetworkInfo; field in WifiDisplayController 216 pw.println("mNetworkInfo=" + mNetworkInfo); in dump() 816 mNetworkInfo = networkInfo; in handleConnectionChanged()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 1026 private NetworkInfo mNetworkInfo; field in WifiAwareDataPathStateManager.WifiAwareNetworkAgent 1034 mNetworkInfo = ni; in WifiAwareNetworkAgent() 1057 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, ""); in reconfigureAgentAsDisconnected() 1058 sendNetworkInfo(mNetworkInfo); in reconfigureAgentAsDisconnected()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 478 private final NetworkInfo mNetworkInfo; field in ConnectivityServiceTest.MockNetworkAgent 530 mNetworkInfo = new NetworkInfo(type, 0, typeName, "Mock"); in MockNetworkAgent() 578 "Mock-" + typeName, mNetworkInfo, mNetworkCapabilities, in MockNetworkAgent() 701 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in connectWithoutInternet() 702 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in connectWithoutInternet() 720 mNetworkInfo.getDetailedState(), DetailedState.IDLE); in connect() 768 mNetworkInfo.setDetailedState(DetailedState.SUSPENDED, null, null); in suspend() 769 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in suspend() 773 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in resume() 774 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in resume() [all …]
|