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.java1604 long warningBytes = in getWarningBytesFromCarrierConfig() local
1607 if (warningBytes == DATA_CYCLE_THRESHOLD_DISABLED) { in getWarningBytesFromCarrierConfig()
1609 } else if (warningBytes == DATA_CYCLE_USE_PLATFORM_DEFAULT) { in getWarningBytesFromCarrierConfig()
1611 } else if (warningBytes < 0) { in getWarningBytesFromCarrierConfig()
1614 + "non-negative value but got: " + warningBytes); in getWarningBytesFromCarrierConfig()
1618 return warningBytes; in getWarningBytesFromCarrierConfig()
1909 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
1949 if (hasWarning && policy.warningBytes < lowestRule) {
1950 lowestRule = policy.warningBytes;
2134 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.java433 mDefaultWarningBytes = defaultPolicy.warningBytes; in callSystemReady()
1932 private static NetworkPolicy buildFakeMobilePolicy(int cycleDay, long warningBytes, in buildFakeMobilePolicy() argument
1935 return new NetworkPolicy(template, cycleDay, TimeZone.getDefault().getID(), warningBytes, in buildFakeMobilePolicy()