Searched refs:mCM (Results 1 – 2 of 2) sorted by relevance
47 private ConnectivityManager mCM; field in MultinetworkApiTest51 mCM = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); in setUp()56 for (Network network : mCM.getAllNetworks()) { in getTestableNetworks()57 final NetworkCapabilities nc = mCM.getNetworkCapabilities(network); in getTestableNetworks()77 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo()84 assertNull(mCM.getProcessDefaultNetwork()); in testSetprocnetwork()88 mCM.setProcessDefaultNetwork(null); in testSetprocnetwork()89 assertNull(mCM.getProcessDefaultNetwork()); in testSetprocnetwork()94 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork()96 Network processDefault = mCM.getProcessDefaultNetwork(); in testSetprocnetwork()[all …]
86 private ConnectivityManager mCM; field in VpnTest109 mCM = (ConnectivityManager) mActivity.getSystemService(mActivity.CONNECTIVITY_SERVICE); in setUp()116 mCM.unregisterNetworkCallback(mCallback); in tearDown()196 mCM.registerNetworkCallback(request, mCallback); // Unregistered in tearDown. in startVpn()240 mCM.registerNetworkCallback(request, mCallback); // Unregistered in tearDown. in stopVpn()