Home
last modified time | relevance | path

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

/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/
DLowpanInterfaceTracker.java98 private NetworkInfo mNetworkInfo; field in LowpanInterfaceTracker
161 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_NONE, 0, NETWORK_TYPE, ""); in enter()
162 mNetworkInfo.setIsAvailable(true); in enter()
328 mNetworkInfo.setIsAvailable(true); in enter()
358 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, mHwAddr); in enter()
359 mNetworkInfo.setIsAvailable(true); in enter()
361 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in enter()
377 mNetworkInfo.setIsAvailable(true); in enter()
397 mNetworkInfo.setIsAvailable(false); in exit()
471 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddr); in enter()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java226 private final NetworkInfo mNetworkInfo; field in NetworkInterfaceState
264 mNetworkInfo = new NetworkInfo(TYPE_ETHERNET, 0, NETWORK_TYPE, ""); in NetworkInterfaceState()
265 mNetworkInfo.setExtraInfo(mHwAddress); in NetworkInterfaceState()
266 mNetworkInfo.setIsAvailable(true); in NetworkInterfaceState()
289 mNetworkInfo)); in start()
292 mNetworkInfo.setDetailedState(DetailedState.OBTAINING_IPADDR, null, mHwAddress); in start()
310 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, mHwAddress); in onIpLayerStarted()
311 mNetworkInfo.setIsAvailable(true); in onIpLayerStarted()
315 NETWORK_TYPE, mNetworkInfo, mCapabilities, mLinkProperties, in onIpLayerStarted()
366 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddress); in stop()
[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/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiTrafficPollerTest.java68 @Mock NetworkInfo mNetworkInfo; field in WifiTrafficPollerTest
109 when(mNetworkInfo.getDetailedState()).thenReturn(NetworkInfo.DetailedState.DISCONNECTED); in triggerForUpdatedInformationOfData()
114 when(mNetworkInfo.getDetailedState()).thenReturn(networkState); in triggerForUpdatedInformationOfData()
116 mIntent.putExtra(WifiManager.EXTRA_NETWORK_INFO, mNetworkInfo); in triggerForUpdatedInformationOfData()
158 verify(mNetworkInfo, atLeastOnce()).getDetailedState(); in testNotStartTrafficStatsPollingWithScreenOff()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java52 private NetworkInfo mNetworkInfo = null; field in TestAccessPointBuilder
80 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build()
110 mNetworkInfo = new NetworkInfo( in setActive()
116 mNetworkInfo = null; in setActive()
144 mNetworkInfo = info; in setNetworkInfo()
DAccessPoint.java195 private NetworkInfo mNetworkInfo; field in AccessPoint
243 mNetworkInfo = savedState.getParcelable(KEY_NETWORKINFO); in AccessPoint()
274 update(mConfig, mInfo, mNetworkInfo); in AccessPoint()
708 return mNetworkInfo; in getNetworkInfo()
776 if (mNetworkInfo != null) { in getDetailedState()
777 return mNetworkInfo.getDetailedState(); in getDetailedState()
924 return mNetworkInfo != null && in isActive()
926 mNetworkInfo.getState() != State.DISCONNECTED); in isActive()
935 mNetworkInfo != null && mNetworkInfo.getState() != State.DISCONNECTED; in isEphemeral()
1008 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.java73 private NetworkInfo mNetworkInfo; field in WifiTrafficPoller
96 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiTrafficPoller()
182 if (mNetworkInfo == null) return; in evaluateTrafficStatsPolling()
183 if (mNetworkInfo.getDetailedState() == CONNECTED && mScreenOn.get()) { in evaluateTrafficStatsPolling()
DWifiStateMachine.java312 private NetworkInfo mNetworkInfo; field in WifiStateMachine
786 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, NETWORKTYPE, ""); in WifiStateMachine()
812 mNetworkInfo.setIsAvailable(false); in WifiStateMachine()
1878 pw.println("mNetworkInfo " + mNetworkInfo); in dump()
2624 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo); in sendNetworkStateChangeBroadcast()
2676 + mNetworkInfo.getDetailedState() + " and new state=" + state in setNetworkDetailedState()
2683 if (state != mNetworkInfo.getDetailedState()) { in setNetworkDetailedState()
2684 mNetworkInfo.setDetailedState(state, null, null); in setNetworkDetailedState()
2686 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in setNetworkDetailedState()
2695 return mNetworkInfo.getDetailedState(); in getNetworkDetailedState()
[all …]
DWifiController.java60 NetworkInfo mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, "WIFI", ""); field in WifiController
166 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra( in WifiController()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java189 private NetworkInfo mNetworkInfo; field in DataConnection
482 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_MOBILE, in DataConnection()
484 mNetworkInfo.setRoaming(ss.getDataRoaming()); in DataConnection()
485 mNetworkInfo.setIsAvailable(true); in DataConnection()
588 mNetworkInfo.setDetailedState(mNetworkInfo.getDetailedState(), reason, in notifyAllWithEvent()
589 mNetworkInfo.getExtraInfo()); in notifyAllWithEvent()
1374 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in processMessage()
1384 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in processMessage()
1410 mNetworkInfo.setSubtype(subtype, TelephonyManager.getNetworkTypeName(subtype)); in updateNetworkInfo()
1411 mNetworkInfo.setRoaming(state.getDataRoaming()); in updateNetworkInfo()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java78 @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/
DVpn.java167 private NetworkInfo mNetworkInfo; field in Vpn
271 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_VPN, 0 /* subtype */, NETWORKTYPE, in Vpn()
296 mNetworkInfo.setDetailedState(detailedState, reason, null); in updateState()
298 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in updateState()
489 updateAlwaysOnNotification(mNetworkInfo.getDetailedState()); in setAlwaysOnPackageInternal()
806 return mNetworkInfo; in getNetworkInfo()
944 mNetworkInfo.setDetailedState(DetailedState.CONNECTING, null, null); in agentConnect()
955 mNetworkInfo, mNetworkCapabilities, lp, in agentConnect()
965 mNetworkInfo.setIsAvailable(true); in agentConnect()
980 NetworkInfo networkInfo = new NetworkInfo(mNetworkInfo); in agentDisconnect()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java866 private NetworkInfo mNetworkInfo; field in WifiAwareDataPathStateManager.WifiAwareNetworkAgent
874 mNetworkInfo = ni; in WifiAwareNetworkAgent()
897 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, ""); in reconfigureAgentAsDisconnected()
898 sendNetworkInfo(mNetworkInfo); in reconfigureAgentAsDisconnected()
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayController.java103 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/p2p/
DWifiP2pServiceImpl.java218 private NetworkInfo mNetworkInfo; field in WifiP2pServiceImpl
389 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, NETWORKTYPE, ""); in WifiP2pServiceImpl()
621 pw.println("mNetworkInfo " + mNetworkInfo); in dump()
1190 mNetworkInfo.setIsAvailable(true); in enter()
1448 mNetworkInfo.setIsAvailable(false); in exit()
2156 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null); in enter()
2408 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null); in exit()
2556 intent.putExtra(WifiP2pManager.EXTRA_NETWORK_INFO, new NetworkInfo(mNetworkInfo)); in sendP2pConnectionChangedBroadcast()
2561 new NetworkInfo(mNetworkInfo)); in sendP2pConnectionChangedBroadcast()
3106 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.FAILED, null, null); in handleGroupCreationFailure()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java366 private final NetworkInfo mNetworkInfo; field in ConnectivityServiceTest.MockNetworkAgent
388 mNetworkInfo = new NetworkInfo(type, 0, typeName, "Mock"); in MockNetworkAgent()
414 "Mock-" + typeName, mNetworkInfo, mNetworkCapabilities, in MockNetworkAgent()
493 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in connectWithoutInternet()
494 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in connectWithoutInternet()
512 mNetworkInfo.getDetailedState(), DetailedState.IDLE); in connect()
556 mNetworkInfo.setDetailedState(DetailedState.SUSPENDED, null, null); in suspend()
557 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in suspend()
561 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null); in resume()
562 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in resume()
[all …]