Searched refs:mNetworkInfo (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/core/java/android/net/
H A DDummyDataStateTracker.java37 private NetworkInfo mNetworkInfo; field in class:DummyDataStateTracker
56 mNetworkInfo = new NetworkInfo(netType);
79 return mNetworkInfo;
138 + mNetworkInfo.getDetailedState() + " and new state=" + state);
139 mNetworkInfo.setDetailedState(state, reason, extraInfo);
140 Message msg = mTarget.obtainMessage(EVENT_STATE_CHANGED, mNetworkInfo);
H A DEthernetDataTracker.java50 private NetworkInfo mNetworkInfo; field in class:EthernetDataTracker
80 mTracker.mNetworkInfo.setIsAvailable(up);
109 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_ETHERNET, 0, NETWORKTYPE, "");
133 mNetworkInfo.setIsAvailable(true);
134 Message msg = mCsHandler.obtainMessage(EVENT_CONFIGURATION_CHANGED, mNetworkInfo);
143 mNetworkInfo.setIsAvailable(false);
144 mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, mHwAddr);
146 Message msg = mCsHandler.obtainMessage(EVENT_CONFIGURATION_CHANGED, mNetworkInfo);
149 msg = mCsHandler.obtainMessage(EVENT_STATE_CHANGED, mNetworkInfo);
181 mNetworkInfo
[all...]
H A DBaseNetworkStateTracker.java44 protected NetworkInfo mNetworkInfo; field in class:BaseNetworkStateTracker
53 mNetworkInfo = new NetworkInfo(
85 return new NetworkInfo(mNetworkInfo);
111 return mNetworkInfo.isAvailable();
H A DMobileDataStateTracker.java61 private NetworkInfo mNetworkInfo; field in class:MobileDataStateTracker
85 mNetworkInfo = new NetworkInfo(netType,
156 return mNetworkInfo;
188 int oldSubtype = mNetworkInfo.getSubtype();
191 mNetworkInfo.setSubtype(newSubType, subTypeName);
192 if (newSubType != oldSubtype && mNetworkInfo.isConnected()) {
194 oldSubtype, 0, mNetworkInfo);
202 mNetworkInfo.setRoaming(intent.getBooleanExtra(
208 mNetworkInfo.setIsAvailable(!intent.getBooleanExtra(
263 mNetworkInfo
[all...]
H A DCaptivePortalTracker.java69 private NetworkInfo mNetworkInfo; field in class:CaptivePortalTracker
163 mNetworkInfo = null;
177 mNetworkInfo = info;
201 && info.getType() == mNetworkInfo.getType()) {
204 } else if (info.getType() != mNetworkInfo.getType() &&
238 if (DBG) log("Captive network " + mNetworkInfo);
242 if (DBG) log("Not captive network " + mNetworkInfo);
334 switch (mNetworkInfo.getType()) {
338 mNetworkInfo.getExtraInfo());
351 mNetworkInfo
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiStateTracker.java52 private NetworkInfo mNetworkInfo; field in class:WifiStateTracker
62 mNetworkInfo = new NetworkInfo(netType, 0, networkName, "");
66 mNetworkInfo.setIsAvailable(false);
141 return mNetworkInfo.isAvailable();
172 return new NetworkInfo(mNetworkInfo);
219 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra(
233 NetworkInfo.State state = mNetworkInfo.getState();
235 mNetworkInfo.getDetailedState() != DetailedState.CAPTIVE_PORTAL_CHECK) {
241 new NetworkInfo(mNetworkInfo));
246 Message msg = mCsHandler.obtainMessage(EVENT_CONFIGURATION_CHANGED, mNetworkInfo);
[all...]
H A DWifiStateMachine.java201 private NetworkInfo mNetworkInfo; field in class:WifiStateMachine
576 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, NETWORKTYPE, "");
599 mNetworkInfo.setIsAvailable(false);
1173 sb.append("mNetworkInfo ").append(mNetworkInfo).append(LS);
1644 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, new NetworkInfo(mNetworkInfo));
1648 if (mNetworkInfo.getDetailedState() == DetailedState.VERIFYING_POOR_LINK ||
1649 mNetworkInfo.getDetailedState() == DetailedState.CONNECTED) {
1676 + mNetworkInfo.getDetailedState() + " and new state=" + state);
1679 if (state != mNetworkInfo
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothTetheringDataTracker.java64 private NetworkInfo mNetworkInfo; field in class:BluetoothTetheringDataTracker
75 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_BLUETOOTH, 0, NETWORKTYPE, "");
79 mNetworkInfo.setIsAvailable(false);
164 return mNetworkInfo.isAvailable();
229 return mNetworkInfo;
336 mNetworkInfo.setIsAvailable(true);
337 mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null);
341 Message msg = mCsHandler.obtainMessage(EVENT_CONFIGURATION_CHANGED, mNetworkInfo);
344 msg = mCsHandler.obtainMessage(EVENT_STATE_CHANGED, mNetworkInfo);
364 mNetworkInfo
[all...]
/frameworks/ex/common/java/com/android/common/
H A DNetworkConnectivityListener.java51 private NetworkInfo mNetworkInfo; field in class:NetworkConnectivityListener
82 mNetworkInfo = (NetworkInfo)
92 Log.d(TAG, "onReceive(): mNetworkInfo=" + mNetworkInfo + " mOtherNetworkInfo = "
154 mNetworkInfo = null;
190 return mNetworkInfo;
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiClientTest.java55 NetworkInfo mNetworkInfo; field in class:WifiClientTest
81 mNetworkInfo = (NetworkInfo)
252 mNetworkInfo = null;
260 assertTrue(mNetworkInfo.isConnected());
269 assertTrue(!mNetworkInfo.isConnected());
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java67 private NetworkInfo mNetworkInfo; field in class:ConnectionUtil
159 mNetworkInfo = connManager.getActiveNetworkInfo();
166 Log.v(LOG_TAG, "mNetworkInfo: " + mNetworkInfo.toString());
167 recordNetworkState(mNetworkInfo.getType(), mNetworkInfo.getState());
457 if (mNetworkInfo == null) {
459 mNetworkInfo = mCM.getActiveNetworkInfo();
463 if (mNetworkInfo == null) {
468 if ((mNetworkInfo
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestActivity.java81 public NetworkInfo mNetworkInfo; field in class:ConnectivityManagerTestActivity
134 mNetworkInfo = (NetworkInfo)
143 log("mNetworkInfo: " + mNetworkInfo.toString());
147 recordNetworkState(mNetworkInfo.getType(), mNetworkInfo.getState());
392 if ((mNetworkInfo.getType() != networkType) ||
393 (mNetworkInfo.getState() != expectedState)) {
394 log("network state for " + mNetworkInfo.getType() +
395 "is: " + mNetworkInfo
[all...]
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java140 mNetworkInfo.setDetailedState(detailedState, reason, null);
141 mCallback.onStateChanged(new NetworkInfo(mNetworkInfo));
602 info.state = LegacyVpnInfo.stateFromNetworkInfo(mNetworkInfo);
603 if (mNetworkInfo.isConnected()) {
862 if (!initFinished || mNetworkInfo.getDetailedState() == DetailedState.CONNECTING) {
873 if (!mNetworkInfo.isConnected()) {
/frameworks/base/services/java/com/android/server/display/
H A DWifiDisplayController.java102 private NetworkInfo mNetworkInfo; field in class:WifiDisplayController
194 pw.println("mNetworkInfo=" + mNetworkInfo);
648 mNetworkInfo = networkInfo;
/frameworks/base/services/java/com/android/server/
H A DWifiService.java171 NetworkInfo mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0, "WIFI", ""); field in class:WifiService
412 mNetworkInfo = (NetworkInfo) intent.getParcelableExtra(
415 switch(mNetworkInfo.getDetailedState()) {
1043 if (mNetworkInfo.getDetailedState() == DetailedState.CONNECTED) {
1639 if (mNetworkInfo.getDetailedState() == DetailedState.CONNECTED && !mScreenOff) {
1682 State state = mNetworkInfo.getState();
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pService.java197 private NetworkInfo mNetworkInfo; field in class:WifiP2pService
308 mNetworkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI_P2P, 0, NETWORKTYPE, "");
801 mNetworkInfo.setIsAvailable(true);
956 mNetworkInfo.setIsAvailable(false);
1474 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, null, null);
1699 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null);
1817 intent.putExtra(WifiP2pManager.EXTRA_NETWORK_INFO, new NetworkInfo(mNetworkInfo));
1820 new NetworkInfo(mNetworkInfo));
2325 mNetworkInfo.setDetailedState(NetworkInfo.DetailedState.FAILED, null, null);

Completed in 88 milliseconds