Home
last modified time | relevance | path

Searched refs:mNetworkInfo (Results 1 – 14 of 14) sorted by relevance

/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java103 private NetworkInfo mNetworkInfo; field in EthernetNetworkFactory
109 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_ETHERNET, 0, NETWORK_TYPE, ""); in EthernetNetworkFactory()
155 mNetworkInfo.setIsAvailable(up); in updateInterfaceState()
158 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddr); in updateInterfaceState()
201 mNetworkInfo.setIsAvailable(true); in setInterfaceUp()
202 mNetworkInfo.setExtraInfo(mHwAddr); in setInterfaceUp()
233 mNetworkInfo.setExtraInfo(null); in stopTrackingInterface()
235 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddr); in stopTrackingInterface()
238 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_ETHERNET, 0, NETWORK_TYPE, ""); in stopTrackingInterface()
268 mNetworkInfo + ", " + in updateAgent()
[all …]
/frameworks/ex/common/java/com/android/common/
DNetworkConnectivityListener.java52 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/
DConnectionUtil.java67 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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java162 private NetworkInfo mNetworkInfo; field in DataConnection
407 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_MOBILE, in DataConnection()
409 mNetworkInfo.setRoaming(ss.getDataRoaming()); in DataConnection()
410 mNetworkInfo.setIsAvailable(true); in DataConnection()
530 mNetworkInfo.setDetailedState(mNetworkInfo.getDetailedState(), reason, in notifyAllWithEvent()
531 mNetworkInfo.getExtraInfo()); in notifyAllWithEvent()
1157 mNetworkInfo.setSubtype(networkType, in processMessage()
1162 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in processMessage()
1168 mNetworkInfo.setRoaming(true); in processMessage()
1172 mNetworkInfo.setRoaming(false); in processMessage()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java125 private NetworkInfo mNetworkInfo; field in AccessPoint
147 mNetworkInfo = savedState.getParcelable(KEY_NETWORKINFO); in AccessPoint()
157 update(mConfig, mInfo, mNetworkInfo); in AccessPoint()
293 return mNetworkInfo; in getNetworkInfo()
359 return mNetworkInfo != null ? mNetworkInfo.getDetailedState() : null; in getDetailedState()
434 if (mInfo != null && mNetworkInfo != null) { // This is the active connection in getSettingsSummary()
596 return mNetworkInfo != null && in isActive()
598 mNetworkInfo.getState() != State.DISCONNECTED); in isActive()
607 mNetworkInfo != null && mNetworkInfo.getState() != State.DISCONNECTED; in isEphemeral()
689 if (mNetworkInfo != null) { in saveWifiState()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java48 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/net/wifi/service/java/com/android/server/wifi/
DWifiTrafficPoller.java71 private NetworkInfo mNetworkInfo; field in WifiTrafficPoller
92 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiTrafficPoller()
171 if (mNetworkInfo == null) return; in evaluateTrafficStatsPolling()
172 if (mNetworkInfo.getDetailedState() == CONNECTED && mScreenOn.get()) { in evaluateTrafficStatsPolling()
DWifiNotificationController.java93 private NetworkInfo mNetworkInfo; field in WifiNotificationController
122 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiNotificationController()
125 mNetworkInfo.getDetailedState(); in WifiNotificationController()
140 checkAndSetNotification(mNetworkInfo, in WifiNotificationController()
DWifiController.java86 NetworkInfo mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, "WIFI", ""); field in WifiController
194 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiController()
364 if (mNetworkInfo.getDetailedState() == in processMessage()
DWifiStateMachine.java364 private NetworkInfo mNetworkInfo; field in WifiStateMachine
1014 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, NETWORKTYPE, ""); in WifiStateMachine()
1049 mNetworkInfo.setIsAvailable(false); in WifiStateMachine()
2285 pw.println("mNetworkInfo " + mNetworkInfo); in dump()
3333 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, new NetworkInfo(mNetworkInfo)); in sendNetworkStateChangeBroadcast()
3337 if (mNetworkInfo.getDetailedState() == DetailedState.VERIFYING_POOR_LINK || in sendNetworkStateChangeBroadcast()
3338 mNetworkInfo.getDetailedState() == DetailedState.CONNECTED) { in sendNetworkStateChangeBroadcast()
3411 + mNetworkInfo.getDetailedState() + " and new state=" + state in setNetworkDetailedState()
3414 if (mNetworkInfo.getExtraInfo() != null && mWifiInfo.getSSID() != null in setNetworkDetailedState()
3417 if (!mNetworkInfo.getExtraInfo().equals(mWifiInfo.getSSID())) { in setNetworkDetailedState()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java119 private NetworkInfo mNetworkInfo; field in Vpn
225 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_VPN, 0, NETWORKTYPE, ""); in Vpn()
246 mNetworkInfo.setDetailedState(detailedState, reason, null); in updateState()
248 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in updateState()
579 return mNetworkInfo; in getNetworkInfo()
650 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, null); in agentConnect()
658 mNetworkInfo, mNetworkCapabilities, lp, 0, networkMisc) { in agentConnect()
672 mNetworkInfo.setIsAvailable(true); in agentConnect()
694 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo); in agentDisconnect()
699 if (mNetworkInfo.isConnected()) { in agentDisconnect()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java224 private final NetworkInfo mNetworkInfo; field in ConnectivityServiceTest.MockNetworkAgent
241 mNetworkInfo = new NetworkInfo(type, 0, typeName, "Mock"); in MockNetworkAgent()
257 "Mock-" + typeName, mNetworkInfo, mNetworkCapabilities, in MockNetworkAgent()
312 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in connectWithoutInternet()
313 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in connectWithoutInternet()
321 assertEquals(mNetworkInfo.getDetailedState(), DetailedState.IDLE); in connect()
367 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); in disconnect()
368 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in disconnect()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java215 private NetworkInfo mNetworkInfo; field in WifiP2pServiceImpl
360 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, NETWORKTYPE, ""); in WifiP2pServiceImpl()
509 pw.println("mNetworkInfo " + mNetworkInfo); in dump()
1059 mNetworkInfo.setIsAvailable(true); in enter()
1298 mNetworkInfo.setIsAvailable(false); in exit()
1932 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in enter()
2166 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in exit()
2294 intent.putExtra(WifiP2pManager.EXTRA_NETWORK_INFO, new NetworkInfo(mNetworkInfo)); in sendP2pConnectionChangedBroadcast()
2298 new NetworkInfo(mNetworkInfo)); in sendP2pConnectionChangedBroadcast()
2844 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.FAILED, null, null); in handleGroupCreationFailure()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java104 private NetworkInfo mNetworkInfo; field in WifiDisplayController
217 pw.println("mNetworkInfo=" + mNetworkInfo); in dump()
817 mNetworkInfo = networkInfo; in handleConnectionChanged()