Home
last modified time | relevance | path

Searched refs:isActiveNetworkMetered (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DProperty.java19 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()
DNetworkPolicyTestUtils.java133 public static boolean isActiveNetworkMetered(boolean metered) { in isActiveNetworkMetered() method in NetworkPolicyTestUtils
134 return getConnectivityManager().isActiveNetworkMetered() == metered; in isActiveNetworkMetered()
145 if (isActiveNetworkMetered(metered)) { in setupMeteredNetwork()
DVpnTest.java906 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()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java157 } else if (mCm.isActiveNetworkMetered()) { in setMeteredNetwork()
213 actualMeteredStatus = mCm.isActiveNetworkMetered(); in assertActiveNetworkMetered()