Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DProperty.java19 import static com.android.cts.netpolicy.hostside.NetworkPolicyTestUtils.isActiveNetworkMetered;
53 return isActiveNetworkMetered(true) || canChangeActiveNetworkMeteredness(); in isSupported()
59 return isActiveNetworkMetered(false) || canChangeActiveNetworkMeteredness(); in ~METERED_NETWORK.getValue()
DNetworkPolicyTestUtils.java174 public static boolean isActiveNetworkMetered(boolean metered) { in isActiveNetworkMetered() method in NetworkPolicyTestUtils
175 return getConnectivityManager().isActiveNetworkMetered() == metered; in isActiveNetworkMetered()
193 if (isActiveNetworkMetered(metered)) { in setupActiveNetworkMeteredness()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DConnectivityManagerCompatUtils.java29 public static boolean isActiveNetworkMetered(final ConnectivityManager manager) { in isActiveNetworkMetered() method in ConnectivityManagerCompatUtils
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java21 return connectivityManager.isActiveNetworkMetered(); in isNetworkMetered()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java166 if (mConnectivityManager.isActiveNetworkMetered()) { in findImages()
441 if (mConnectivityManager.isActiveNetworkMetered() || in getStream()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1524 assertTrue(mCM.isActiveNetworkMetered()); in testVpnMeterednessWithNoUnderlyingNetwork()
1559 assertEquals(isNetworkMetered(mNetwork), mCM.isActiveNetworkMetered()); in testVpnMeterednessWithNullUnderlyingNetwork()
1586 assertEquals(isNetworkMetered(mNetwork), mCM.isActiveNetworkMetered()); in testVpnMeterednessWithNonNullUnderlyingNetwork()
1622 assertTrue(mCM.isActiveNetworkMetered()); in testAlwaysMeteredVpnWithNullUnderlyingNetwork()
1647 assertTrue(mCM.isActiveNetworkMetered()); in testAlwaysMeteredVpnWithNonNullUnderlyingNetwork()
/packages/modules/Connectivity/framework/src/android/net/
DIConnectivityManager.aidl94 boolean isActiveNetworkMetered(); in isActiveNetworkMetered() method
DConnectivityManager.java3790 public boolean isActiveNetworkMetered() { in isActiveNetworkMetered() method in ConnectivityManager
3792 return mService.isActiveNetworkMetered(); in isActiveNetworkMetered()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java9580 assertTrue(mCm.isActiveNetworkMetered());
9586 assertFalse(mCm.isActiveNetworkMetered());
9592 assertTrue(mCm.isActiveNetworkMetered());
9598 assertTrue(mCm.isActiveNetworkMetered());
9604 assertTrue(mCm.isActiveNetworkMetered());
9609 assertTrue(mCm.isActiveNetworkMetered());
9619 assertTrue(mCm.isActiveNetworkMetered());
9630 assertFalse(mCm.isActiveNetworkMetered());
9636 assertFalse(mCm.isActiveNetworkMetered());
9643 assertTrue(mCm.isActiveNetworkMetered());
[all …]
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt205 Landroid/net/IConnectivityManager$Stub$Proxy;->isActiveNetworkMetered()Z
347 Landroid/net/IConnectivityManager;->isActiveNetworkMetered()Z
/packages/modules/Connectivity/framework/api/
Dcurrent.txt87 …rmission(android.Manifest.permission.ACCESS_NETWORK_STATE) public boolean isActiveNetworkMetered();
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java3207 public boolean isActiveNetworkMetered() {