Searched refs:isActiveNetworkMetered (Results 1 – 4 of 4) sorted by relevance
19 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.isActiveNetworkMetered;53 return isActiveNetworkMetered(true) || canChangeActiveNetworkMeteredness(); in isSupported()59 return isActiveNetworkMetered(false) || canChangeActiveNetworkMeteredness(); in ~METERED_NETWORK.getValue()
133 public static boolean isActiveNetworkMetered(boolean metered) { in isActiveNetworkMetered() method in NetworkPolicyTestUtils134 return getConnectivityManager().isActiveNetworkMetered() == metered; in isActiveNetworkMetered()145 if (isActiveNetworkMetered(metered)) { in setupMeteredNetwork()
906 assertTrue(mCM.isActiveNetworkMetered()); in testVpnMeterednessWithNoUnderlyingNetwork()932 assertEquals(isNetworkMetered(mNetwork), mCM.isActiveNetworkMetered()); in testVpnMeterednessWithNullUnderlyingNetwork()959 assertEquals(isNetworkMetered(mNetwork), mCM.isActiveNetworkMetered()); in testVpnMeterednessWithNonNullUnderlyingNetwork()983 assertTrue(mCM.isActiveNetworkMetered()); in testAlwaysMeteredVpnWithNullUnderlyingNetwork()1008 assertTrue(mCM.isActiveNetworkMetered()); in testAlwaysMeteredVpnWithNonNullUnderlyingNetwork()
157 } else if (mCm.isActiveNetworkMetered()) { in setMeteredNetwork()213 actualMeteredStatus = mCm.isActiveNetworkMetered(); in assertActiveNetworkMetered()