Searched refs:LIMIT_DISABLED (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 20 import static android.net.NetworkPolicy.LIMIT_DISABLED; 65 policy.limitBytes = LIMIT_DISABLED; in read() 98 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy() 148 LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, metered, true); in buildDefaultPolicy() 180 return (policy != null) ? policy.limitBytes : LIMIT_DISABLED; in getPolicyLimitBytes()
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 45 public static final long LIMIT_DISABLED = -1; field in NetworkPolicy 126 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit() 146 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo() 150 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 | 39 import static android.net.NetworkPolicy.LIMIT_DISABLED; 883 WARNING_DISABLED, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, in newWifiPolicy() 1169 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledLocked() 1281 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED; 1282 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED; 1396 warningBytes, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, true, true); in ensureActiveMobilePolicyLocked() 2213 final long hardLimitBytes = policy.limitBytes != LIMIT_DISABLED ? policy.limitBytes in getNetworkQuotaInfoUnchecked() 3464 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in factoryReset()
|