Searched refs:LIMIT_DISABLED (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 35 public static final long LIMIT_DISABLED = -1; field in NetworkPolicy 116 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit() 136 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo() 140 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 23 import static android.net.NetworkPolicy.LIMIT_DISABLED; 532 sTemplateWifi, 31, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, false); in testNextCycleSane() 547 sTemplateWifi, 31, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, false); in testLastCycleSane() 819 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, in testMeteredNetworkWithoutLimit()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 36 import static android.net.NetworkPolicy.LIMIT_DISABLED; 737 WARNING_DISABLED, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, 1080 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledLocked() 1206 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED; 1207 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED; 1319 warningBytes, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, true, true); in ensureActiveMobilePolicyLocked() 1861 final long hardLimitBytes = policy.limitBytes != LIMIT_DISABLED ? policy.limitBytes in getNetworkQuotaInfoUnchecked() 2593 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in factoryReset()
|