Home
last modified time | relevance | path

Searched refs:warningBytes (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicy.java57 public long warningBytes = WARNING_DISABLED; field in NetworkPolicy
80 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument
81 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy()
88 long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze, in NetworkPolicy() argument
90 this(template, buildRule(cycleDay, ZoneId.of(cycleTimezone)), warningBytes, in NetworkPolicy()
95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument
98 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze, in NetworkPolicy()
102 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument
107 this.warningBytes = warningBytes; in NetworkPolicy()
119 warningBytes = source.readLong(); in NetworkPolicy()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java71 if (policy.warningBytes < -1) { in read()
72 policy.warningBytes = WARNING_DISABLED; in read()
171 return (policy != null) ? policy.warningBytes : WARNING_DISABLED; in getPolicyWarningBytes()
174 private void setPolicyWarningBytesInner(NetworkTemplate template, long warningBytes) { in setPolicyWarningBytesInner() argument
176 policy.warningBytes = warningBytes; in setPolicyWarningBytesInner()
182 public void setPolicyWarningBytes(NetworkTemplate template, long warningBytes) { in setPolicyWarningBytes() argument
185 warningBytes = in setPolicyWarningBytes()
186 (limitBytes == LIMIT_DISABLED) ? warningBytes : Math.min(warningBytes, limitBytes); in setPolicyWarningBytes()
188 setPolicyWarningBytesInner(template, warningBytes); in setPolicyWarningBytes()
198 long warningBytes = getPolicyWarningBytes(template); in setPolicyLimitBytes() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java150 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1586 long warningBytes = in getWarningBytesFromCarrierConfig() local
1589 if (warningBytes == DATA_CYCLE_THRESHOLD_DISABLED) { in getWarningBytesFromCarrierConfig()
1591 } else if (warningBytes == DATA_CYCLE_USE_PLATFORM_DEFAULT) { in getWarningBytesFromCarrierConfig()
1593 } else if (warningBytes < 0) { in getWarningBytesFromCarrierConfig()
1596 + "non-negative value but got: " + warningBytes); in getWarningBytesFromCarrierConfig()
1600 return warningBytes; in getWarningBytesFromCarrierConfig()
1883 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
1923 if (hasWarning && policy.warningBytes < lowestRule) {
1924 lowestRule = policy.warningBytes;
2108 policy.warningBytes, policy.limitBytes, policy.lastWarningSnooze, in updateDefaultMobilePolicyAL()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java413 ? policy.warningBytes in getActiveWarning()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java426 mDefaultWarningBytes = defaultPolicy.warningBytes; in callSystemReady()
1796 private static NetworkPolicy buildFakeMobilePolicy(int cycleDay, long warningBytes, in buildFakeMobilePolicy() argument
1799 return new NetworkPolicy(template, cycleDay, new Time().timezone, warningBytes, in buildFakeMobilePolicy()