Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java118 private static class InterfaceQuota { class in OffloadController
122 public static InterfaceQuota MAX_VALUE = new InterfaceQuota(Long.MAX_VALUE, Long.MAX_VALUE);
124 InterfaceQuota(long warningBytes, long limitBytes) { in InterfaceQuota() method in OffloadController.InterfaceQuota
132 if (!(o instanceof InterfaceQuota)) return false; in equals()
133 InterfaceQuota that = (InterfaceQuota) o; in equals()
153 private HashMap<String, InterfaceQuota> mInterfaceQuotas = new HashMap<>();
369 final InterfaceQuota curIfaceQuota = mInterfaceQuotas.get(iface); in onSetWarningAndLimit()
370 final InterfaceQuota newIfaceQuota = new InterfaceQuota( in onSetWarningAndLimit()
379 if (null == curIfaceQuota && InterfaceQuota.MAX_VALUE.equals(newIfaceQuota)) { in onSetWarningAndLimit()
383 if (InterfaceQuota.MAX_VALUE.equals(newIfaceQuota)) { in onSetWarningAndLimit()
[all …]