Searched refs:mCm (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DConnectivityServiceTest.java123 private ConnectivityManager mCm; field in class:ConnectivityServiceTest
146 if (name == Context.CONNECTIVITY_SERVICE) return mCm;
235 mCm.registerNetworkCallback(request, callback);
247 if (callback != null) mCm.unregisterNetworkCallback(callback);
254 NetworkCapabilities caps = mCm.getNetworkCapabilities(getNetwork());
466 mCm = new ConnectivityManager(getContext(), mService);
482 assertNotNull(mCm.getActiveNetworkInfo());
483 assertEquals(transportToLegacyType(transport), mCm.getActiveNetworkInfo().getType());
485 assertNotNull(mCm.getActiveNetwork());
488 assertEquals(mCm
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
H A DConnectivityManagerMobileTest.java53 mCm.setAirplaneMode(false);
71 mCm.setAirplaneMode(false);
92 NetworkInfo ni = mCm.getActiveNetworkInfo();
229 mCm.setAirplaneMode(true);
235 mCm.setAirplaneMode(false);
252 mCm.setAirplaneMode(true);
265 mCm.setAirplaneMode(false);
284 mCm.setAirplaneMode(true);
290 mCm.setAirplaneMode(false);
332 NetworkInfo extraNetInfo = mCm
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java74 protected ConnectivityManager mCm; field in class:ConnectivityManagerTestBase
128 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
162 NetworkInfo ni = mCm.getNetworkInfo(networkType);
224 String[] wifiRegexes = mCm.getTetherableWifiRegexs();
229 String[] active = mCm.getTetheredIfaces();
230 String[] error = mCm.getTetheringErroredIfaces();
251 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE);
256 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI);
423 NetworkInfo ni = mCm.getActiveNetworkInfo();
439 NetworkInfo ni = mCm
[all...]
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
H A DCaptivePortalLoginActivity.java68 private ConnectivityManager mCm; field in class:CaptivePortalLoginActivity
78 mCm = ConnectivityManager.from(this);
90 mCm.bindProcessToNetwork(mNetwork);
99 final NetworkCapabilities networkCapabilities = mCm.getNetworkCapabilities(mNetwork);
114 mCm.registerNetworkCallback(builder.build(), mNetworkCallback);
154 mCm.unregisterNetworkCallback(mNetworkCallback);
206 mCm.unregisterNetworkCallback(mNetworkCallback);
213 if (mNetwork.equals(mCm.getActiveNetwork())) break;
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
H A DWifiStressTest.java259 NetworkInfo ni = mCm.getActiveNetworkInfo();
266 mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState());
/frameworks/base/core/java/android/net/
H A DConnectivityManager.java2115 private final ConnectivityManager mCm; field in class:ConnectivityManager.CallbackHandler
2122 mCm = cm;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiStateMachine.java193 private ConnectivityManager mCm; field in class:WifiStateMachine
3503 if (mCm == null) {
3504 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
3514 String[] wifiRegexs = mCm.getTetherableWifiRegexs();
3536 if (mCm.tether(intf) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
3567 if (mCm.untether(mTetherInterfaceName) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
3576 String[] wifiRegexs = mCm.getTetherableWifiRegexs();
5375 if (mCm != null) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcTrackerBase.java580 ConnectivityManager mCm; field in class:DcTrackerBase
594 mCm = (ConnectivityManager) mPhone.getContext().getSystemService(

Completed in 217 milliseconds