Home
last modified time | relevance | path

Searched refs:QUOTA_UNLIMITED (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java26 import static android.net.netstats.provider.NetworkStatsProvider.QUOTA_UNLIMITED;
158 private long mRemainingAlertQuota = QUOTA_UNLIMITED;
360 onSetWarningAndLimit(iface, QUOTA_UNLIMITED, quotaBytes); in onSetLimit()
371 warningBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : warningBytes, in onSetWarningAndLimit()
372 limitBytes == QUOTA_UNLIMITED ? Long.MAX_VALUE : limitBytes); in onSetWarningAndLimit()
483 if (newQuota < QUOTA_UNLIMITED) { in updateAlertQuota()
DBpfCoordinator.java26 import static android.net.netstats.provider.NetworkStatsProvider.QUOTA_UNLIMITED;
202 private long mRemainingAlertQuota = QUOTA_UNLIMITED;
1821 if (quotaBytes < QUOTA_UNLIMITED) { in onSetLimit()
1828 if (null == curIfaceQuota && QUOTA_UNLIMITED == quotaBytes) return; in onSetLimit()
1830 if (quotaBytes == QUOTA_UNLIMITED) { in onSetLimit()
2060 final long quotaBytes = (limit != null) ? limit : QUOTA_UNLIMITED; in getQuotaBytes()
2211 if (newQuota < QUOTA_UNLIMITED) { in updateAlertQuota()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java563 NetworkStatsProvider.QUOTA_UNLIMITED, NetworkStatsProvider.QUOTA_UNLIMITED); in checkSetDataWarningAndLimit()
565 mTetherStatsProvider.onSetLimit(ethernetIface, NetworkStatsProvider.QUOTA_UNLIMITED); in checkSetDataWarningAndLimit()
573 NetworkStatsProvider.QUOTA_UNLIMITED, ethernetLimit); in checkSetDataWarningAndLimit()
617 NetworkStatsProvider.QUOTA_UNLIMITED, NetworkStatsProvider.QUOTA_UNLIMITED); in checkSetDataWarningAndLimit()
619 mTetherStatsProvider.onSetLimit(mobileIface, NetworkStatsProvider.QUOTA_UNLIMITED); in checkSetDataWarningAndLimit()
905 mTetherStatsProvider.onSetAlert(NetworkStatsProvider.QUOTA_UNLIMITED); in testOnSetAlert()
DBpfCoordinatorTest.java30 import static android.net.netstats.provider.NetworkStatsProvider.QUOTA_UNLIMITED;
1025 verifyTetherOffloadSetInterfaceQuota(inOrder, mobileIfIndex, QUOTA_UNLIMITED, in checkTetherOffloadRuleAddAndRemove()
1190 mTetherStatsProvider.onSetAlert(QUOTA_UNLIMITED); in testOnSetAlert()
1363 verifyTetherOffloadSetInterfaceQuota(inOrder, mobileIfIndex, QUOTA_UNLIMITED, in testSetDataLimit()
1370 for (final long quota : new long[] {0, 1048576000, Long.MAX_VALUE, QUOTA_UNLIMITED}) { in testSetDataLimit()
1475 verifyTetherOffloadSetInterfaceQuota(inOrder, ethIfIndex, QUOTA_UNLIMITED, in testTetherOffloadRuleUpdateAndClear()
1503 verifyTetherOffloadSetInterfaceQuota(inOrder, mobileIfIndex, QUOTA_UNLIMITED, in testTetherOffloadRuleUpdateAndClear()
/packages/modules/Connectivity/framework-t/src/android/net/netstats/provider/
DNetworkStatsProvider.java35 public static final int QUOTA_UNLIMITED = -1; field in NetworkStatsProvider
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java19 import static android.net.netstats.provider.NetworkStatsProvider.QUOTA_UNLIMITED;
285 if (newLimit < rxBytes + txBytes) newLimit = QUOTA_UNLIMITED; in tetherOffloadSetInterfaceQuota()
/packages/modules/Connectivity/framework-t/api/
Dsystem-current.txt379 field public static final int QUOTA_UNLIMITED = -1; // 0xffffffff