Home
last modified time | relevance | path

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

/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DOffloadController.java119 private static class InterfaceQuota { class in OffloadController
123 public static InterfaceQuota MAX_VALUE = new InterfaceQuota(Long.MAX_VALUE, Long.MAX_VALUE);
125 InterfaceQuota(long warningBytes, long limitBytes) { in InterfaceQuota() method in OffloadController.InterfaceQuota
133 if (!(o instanceof InterfaceQuota)) return false; in equals()
134 InterfaceQuota that = (InterfaceQuota) o; in equals()
154 private HashMap<String, InterfaceQuota> mInterfaceQuotas = new HashMap<>();
380 final InterfaceQuota curIfaceQuota = mInterfaceQuotas.get(iface); in onSetWarningAndLimit()
381 final InterfaceQuota newIfaceQuota = new InterfaceQuota( in onSetWarningAndLimit()
390 if (null == curIfaceQuota && InterfaceQuota.MAX_VALUE.equals(newIfaceQuota)) { in onSetWarningAndLimit()
394 if (InterfaceQuota.MAX_VALUE.equals(newIfaceQuota)) { in onSetWarningAndLimit()
[all …]