Searched refs:getConnectivityManager (Results 1 – 4 of 4) sorted by relevance
134 return getConnectivityManager().isActiveNetworkMetered() == metered; in isActiveNetworkMetered()138 final Network activeNetwork = getConnectivityManager().getActiveNetwork(); in canChangeActiveNetworkMeteredness()140 = getConnectivityManager().getNetworkCapabilities(activeNetwork); in canChangeActiveNetworkMeteredness()199 getConnectivityManager().registerDefaultNetworkCallback(networkCallback); in assertActiveNetworkMetered()203 + getConnectivityManager().getActiveNetwork()); in assertActiveNetworkMetered()205 getConnectivityManager().unregisterNetworkCallback(networkCallback); in assertActiveNetworkMetered()217 final int actualStatus = getConnectivityManager().getRestrictBackgroundStatus(); in isMyRestrictBackgroundStatus()258 final int actualStatus = getConnectivityManager().getRestrictBackgroundStatus(); in assertMyRestrictBackgroundStatus()263 public static ConnectivityManager getConnectivityManager() { in getConnectivityManager() method in NetworkPolicyTestUtils
25 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.getConnectivityManager;150 mCm = getConnectivityManager(); in setUp()
104 ConnectivityManager cm = getConnectivityManager(context); in getActiveNetworkInfo()117 public static ConnectivityManager getConnectivityManager(Context context) { in getConnectivityManager() method in TestUtils
98 ConnectivityManager connManager = TestUtils.getConnectivityManager(getContext()); in hasCellularData()