Searched refs:WARNING_DISABLED (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 22 import static android.net.NetworkPolicy.WARNING_DISABLED; 72 policy.warningBytes = WARNING_DISABLED; in read() 146 return new NetworkPolicy(template, cycleRule, WARNING_DISABLED, in buildDefaultPolicy() 171 return (policy != null) ? policy.warningBytes : WARNING_DISABLED; in getPolicyWarningBytes()
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 49 public static final long WARNING_DISABLED = -1; field in NetworkPolicy 57 public long warningBytes = WARNING_DISABLED; 155 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; in isOverWarning()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 25 import static android.net.NetworkPolicy.WARNING_DISABLED; 189 if (policyWarning != WARNING_DISABLED || policyLimit != LIMIT_DISABLED) { in testGetMultipathPreference() 329 WARNING_DISABLED, in testGetMultipathPreference_SettingChanged() 354 WARNING_DISABLED, in testGetMultipathPreference_ResourceChanged()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 27 import static android.net.NetworkPolicy.WARNING_DISABLED; 302 final long policyBytes = (activeWarning == WARNING_DISABLED) in getUserPolicyOpportunisticQuotaBytes() 306 if (policyBytes != LIMIT_DISABLED && policyBytes != WARNING_DISABLED) { in getUserPolicyOpportunisticQuotaBytes() 414 : WARNING_DISABLED; in getActiveWarning()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 25 import static android.net.NetworkPolicy.WARNING_DISABLED; 1350 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, WARNING_DISABLED, LIMIT_DISABLED, 1431 assertWarningBytesAsExpected(config, DATA_CYCLE_THRESHOLD_DISABLED, WARNING_DISABLED); 1581 assertNetworkPolicyEquals(31, WARNING_DISABLED, LIMIT_DISABLED, true); 1597 assertNetworkPolicyEquals(31, WARNING_DISABLED, LIMIT_DISABLED, true); 1786 sTemplateMobileAll, CYCLE_DAY, TIMEZONE_UTC, WARNING_DISABLED, 10000L, in testStatsProviderLimitReached()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 55 import static android.net.NetworkPolicy.WARNING_DISABLED; 1608 return WARNING_DISABLED; in getWarningBytesFromCarrierConfig() 2092 if (dataWarningConfig == WARNING_DISABLED) { in getPlatformDefaultWarningBytes() 2093 return WARNING_DISABLED; in getPlatformDefaultWarningBytes() 2146 policy.warningBytes = NetworkPolicy.WARNING_DISABLED; in updateDefaultMobilePolicyAL()
|