Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java20 import static android.net.NetworkPolicy.LIMIT_DISABLED;
68 policy.limitBytes = LIMIT_DISABLED; in read()
101 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy()
147 LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, metered, true); in buildDefaultPolicy()
186 (limitBytes == LIMIT_DISABLED) ? warningBytes : Math.min(warningBytes, limitBytes); in setPolicyWarningBytes()
193 return (policy != null) ? policy.limitBytes : LIMIT_DISABLED; in getPolicyLimitBytes()
200 if (warningBytes > limitBytes && limitBytes != LIMIT_DISABLED) { in setPolicyLimitBytes()
/frameworks/base/core/java/android/net/
DNetworkPolicy.java50 public static final long LIMIT_DISABLED = -1; field in NetworkPolicy
59 public long limitBytes = LIMIT_DISABLED;
167 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit()
190 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo()
194 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java23 import static android.net.NetworkPolicy.LIMIT_DISABLED;
189 if (policyWarning != WARNING_DISABLED || policyLimit != LIMIT_DISABLED) { in testGetMultipathPreference()
264 LIMIT_DISABLED, in testGetMultipathPreference_SubscriptionQuota()
280 LIMIT_DISABLED, in testGetMultipathPreference_UserWarningQuota()
330 LIMIT_DISABLED, in testGetMultipathPreference_SettingChanged()
355 LIMIT_DISABLED, in testGetMultipathPreference_ResourceChanged()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DNetworkPolicyEditorTest.java56 mNetworkPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, NetworkPolicy.LIMIT_DISABLED); in setPolicyWarningBytes_withoutLimit_shouldNotCapWarningBytes()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java26 import static android.net.NetworkPolicy.LIMIT_DISABLED;
306 if (policyBytes != LIMIT_DISABLED && policyBytes != WARNING_DISABLED) { in getUserPolicyOpportunisticQuotaBytes()
420 : LIMIT_DISABLED; in getActiveLimit()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java23 import static android.net.NetworkPolicy.LIMIT_DISABLED;
1350 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED,
1456 assertLimitBytesAsExpected(config, DATA_CYCLE_THRESHOLD_DISABLED, LIMIT_DISABLED);
1581 assertNetworkPolicyEquals(31, WARNING_DISABLED, LIMIT_DISABLED, true);
1597 assertNetworkPolicyEquals(31, WARNING_DISABLED, LIMIT_DISABLED, true);
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java53 import static android.net.NetworkPolicy.LIMIT_DISABLED;
1224 if (notifyRapid && policy.limitBytes != LIMIT_DISABLED) {
1641 return LIMIT_DISABLED; in getLimitBytesFromCarrierConfig()
1724 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledNL()
1909 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
1910 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED;
2100 return LIMIT_DISABLED; in getPlatformDefaultLimitBytes()
2147 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in updateDefaultMobilePolicyAL()
2156 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in updateDefaultMobilePolicyAL()
5137 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in factoryReset()