Searched refs:LIMIT_DISABLED (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 20 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/ |
D | NetworkPolicy.java | 50 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/ |
D | MultipathPolicyTrackerTest.java | 23 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/ |
D | NetworkPolicyEditorTest.java | 56 mNetworkPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, NetworkPolicy.LIMIT_DISABLED); in setPolicyWarningBytes_withoutLimit_shouldNotCapWarningBytes()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 26 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/ |
D | NetworkPolicyManagerServiceTest.java | 23 import static android.net.NetworkPolicy.LIMIT_DISABLED; 1272 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, 1377 assertLimitBytesAsExpected(config, DATA_CYCLE_THRESHOLD_DISABLED, LIMIT_DISABLED); 1504 assertNetworkPolicyEquals(31, WARNING_DISABLED, LIMIT_DISABLED, true); 1520 assertNetworkPolicyEquals(31, WARNING_DISABLED, LIMIT_DISABLED, true);
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 53 import static android.net.NetworkPolicy.LIMIT_DISABLED; 1218 if (notifyRapid && policy.limitBytes != LIMIT_DISABLED) { 1635 return LIMIT_DISABLED; in getLimitBytesFromCarrierConfig() 1718 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledNL() 1902 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED; 1903 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED; 2093 return LIMIT_DISABLED; in getPlatformDefaultLimitBytes() 2140 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in updateDefaultMobilePolicyAL() 2149 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in updateDefaultMobilePolicyAL() 5087 policy.limitBytes = NetworkPolicy.LIMIT_DISABLED; in factoryReset()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 44505 Landroid/net/NetworkPolicy;->LIMIT_DISABLED:J
|