Searched refs:LIMIT_DISABLED (Results 1 - 3 of 3) sorted by path

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java35 public static final long LIMIT_DISABLED = -1; field in class:NetworkPolicy
116 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes;
136 if (another == null || another.limitBytes == LIMIT_DISABLED) {
140 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) {
/frameworks/base/services/java/com/android/server/net/
H A DNetworkPolicyManagerService.java37 import static android.net.NetworkPolicy.LIMIT_DISABLED;
592 WARNING_DISABLED, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER,
922 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) {
1043 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
1044 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED;
1138 warningBytes, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, true, true);
1587 final long hardLimitBytes = policy.limitBytes != LIMIT_DISABLED ? policy.limitBytes
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java23 import static android.net.NetworkPolicy.LIMIT_DISABLED;
532 sTemplateWifi, 31, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, false);
547 sTemplateWifi, 31, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, false);
800 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED,

Completed in 76 milliseconds