Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkPolicy.java51 public long warningBytes; field in NetworkPolicy
62 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument
63 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy()
68 long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze, in NetworkPolicy() argument
73 this.warningBytes = warningBytes; in NetworkPolicy()
85 warningBytes = in.readLong(); in NetworkPolicy()
98 dest.writeLong(warningBytes); in writeToParcel()
115 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; in isOverWarning()
159 return Objects.hash(template, cycleDay, cycleTimezone, warningBytes, limitBytes, in hashCode()
167 return cycleDay == other.cycleDay && warningBytes == other.warningBytes in equals()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java68 if (policy.warningBytes < -1) { in read()
69 policy.warningBytes = WARNING_DISABLED; in read()
167 return (policy != null) ? policy.warningBytes : WARNING_DISABLED; in getPolicyWarningBytes()
170 public void setPolicyWarningBytes(NetworkTemplate template, long warningBytes) { in setPolicyWarningBytes() argument
172 policy.warningBytes = warningBytes; in setPolicyWarningBytes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java170 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1281 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
1315 if (hasWarning && policy.warningBytes < lowestRule) {
1316 lowestRule = policy.warningBytes;
1385 final long warningBytes = mContext.getResources().getInteger( in ensureActiveMobilePolicyLocked() local
1396 warningBytes, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, true, true); in ensureActiveMobilePolicyLocked()
1451 final long warningBytes = readLongAttribute(in, ATTR_WARNING_BYTES); in readPolicyLocked() local
1492 cycleTimezone, warningBytes, limitBytes, lastWarningSnooze, in readPolicyLocked()
1595 writeLongAttribute(out, ATTR_WARNING_BYTES, policy.warningBytes); in writePolicyLocked()
2211 final long softLimitBytes = policy.warningBytes != WARNING_DISABLED ? policy.warningBytes in getNetworkQuotaInfoUnchecked()