Home
last modified time | relevance | path

Searched refs:mCm (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java96 private WrappedConnectivityManager mCm; field in ConnectivityServiceTest
139 if (name == Context.CONNECTIVITY_SERVICE) return mCm; in getSystemService()
206 assertEquals(i, mCm.getNetworkCapabilities(n).getSignalStrength()); in testIdleableHandlerThread()
212 if (i != mCm.getNetworkCapabilities(n).getSignalStrength()) { in testIdleableHandlerThread()
340 mCm.registerNetworkCallback(request, callback); in connect()
352 if (callback != null) mCm.unregisterNetworkCallback(callback); in connect()
360 NetworkCapabilities caps = mCm.getNetworkCapabilities(getNetwork()); in connectWithCaptivePortal()
693 mCm = new WrappedConnectivityManager(getContext(), mService); in setUp()
694 mCm.bindProcessToNetwork(null); in setUp()
710 assertNotNull(mCm.getActiveNetworkInfo()); in verifyActiveNetwork()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java53 mCm.setAirplaneMode(false); in setUp()
71 mCm.setAirplaneMode(false); in tearDown()
92 NetworkInfo ni = mCm.getActiveNetworkInfo(); in test3GToWifiNotification()
229 mCm.setAirplaneMode(true); in testDataConnectionWith3GToAmTo3G()
235 mCm.setAirplaneMode(false); in testDataConnectionWith3GToAmTo3G()
252 mCm.setAirplaneMode(true); in testDataConnectionOverAMWithWifi()
265 mCm.setAirplaneMode(false); in testDataConnectionOverAMWithWifi()
284 mCm.setAirplaneMode(true); in testDataConnectionWithWifiToAMToWifi()
290 mCm.setAirplaneMode(false); in testDataConnectionWithWifiToAMToWifi()
332 NetworkInfo extraNetInfo = mCm.getActiveNetworkInfo(); in verifyCellularConnection()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java74 protected ConnectivityManager mCm; field in ConnectivityManagerTestBase
128 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()
162 NetworkInfo ni = mCm.getNetworkInfo(networkType); in waitForNetworkState()
224 String[] wifiRegexes = mCm.getTetherableWifiRegexs(); in waitForTetherStateChange()
229 String[] active = mCm.getTetheredIfaces(); in waitForTetherStateChange()
230 String[] error = mCm.getTetheringErroredIfaces(); in waitForTetherStateChange()
251 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile()
256 return (mCm.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_WIFI); in isConnectedToWifi()
423 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitForActiveNetworkConnection()
439 NetworkInfo ni = mCm.getActiveNetworkInfo(); in waitUntilNoActiveNetworkConnection()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java67 private ConnectivityManager mCm; field in CaptivePortalLoginActivity
74 mCm = ConnectivityManager.from(this); in onCreate()
76 if (url == null) url = mCm.getCaptivePortalServerUrl(); in onCreate()
88 mCm.bindProcessToNetwork(mNetwork); in onCreate()
97 final NetworkCapabilities networkCapabilities = mCm.getNetworkCapabilities(mNetwork); in onCreate()
112 mCm.registerNetworkCallback(builder.build(), mNetworkCallback); in onCreate()
152 mCm.unregisterNetworkCallback(mNetworkCallback); in done()
204 mCm.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
211 if (mNetwork.equals(mCm.getActiveNetwork())) break; in onDestroy()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDnsEventListenerService.java105 private final ConnectivityManager mCm; field in DnsEventListenerService
123 mCm = context.getSystemService(ConnectivityManager.class); in DnsEventListenerService()
124 mCm.registerNetworkCallback(request, mNetworkCallback); in DnsEventListenerService()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java259 NetworkInfo ni = mCm.getActiveNetworkInfo(); in testWifiReconnectionAfterSleep()
266 mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState()); in testWifiReconnectionAfterSleep()
/frameworks/base/core/java/android/net/
DConnectivityManager.java2613 private final ConnectivityManager mCm; field in ConnectivityManager.CallbackHandler
2621 mCm = cm; in CallbackHandler()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java192 private ConnectivityManager mCm; field in WifiStateMachine
2915 if (mCm == null) { in checkAndSetConnectivityInstance()
2916 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in checkAndSetConnectivityInstance()
3939 if (mCm != null) { in maybeRegisterNetworkFactory()
7661 mCm, mCountryCode.getCurrentCountryCode(), in enter()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTracker.java547 private final ConnectivityManager mCm; field in DcTracker
703 mCm = (ConnectivityManager) mPhone.getContext().getSystemService( in DcTracker()
761 mCm = null; in DcTracker()