/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | ConnectivityServiceTest.java | 96 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/ |
D | ConnectivityManagerMobileTest.java | 53 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/ |
D | ConnectivityManagerTestBase.java | 74 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/ |
D | CaptivePortalLoginActivity.java | 67 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/ |
D | DnsEventListenerService.java | 105 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/ |
D | WifiStressTest.java | 259 NetworkInfo ni = mCm.getActiveNetworkInfo(); in testWifiReconnectionAfterSleep() 266 mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState()); in testWifiReconnectionAfterSleep()
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 2613 private final ConnectivityManager mCm; field in ConnectivityManager.CallbackHandler 2621 mCm = cm; in CallbackHandler()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiStateMachine.java | 192 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/ |
D | DcTracker.java | 547 private final ConnectivityManager mCm; field in DcTracker 703 mCm = (ConnectivityManager) mPhone.getContext().getSystemService( in DcTracker() 761 mCm = null; in DcTracker()
|