Searched refs:warningBytes (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 41 public long warningBytes; field in NetworkPolicy 52 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument 53 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy() 58 long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze, in NetworkPolicy() argument 63 this.warningBytes = warningBytes; in NetworkPolicy() 75 warningBytes = in.readLong(); in NetworkPolicy() 88 dest.writeLong(warningBytes); in writeToParcel() 105 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; in isOverWarning() 149 return Objects.hash(template, cycleDay, cycleTimezone, warningBytes, limitBytes, in hashCode() 157 return cycleDay == other.cycleDay && warningBytes == other.warningBytes in equals() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | MobileDataControllerImpl.java | 160 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1206 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED; 1241 if (hasWarning && policy.warningBytes < lowestRule) { 1242 lowestRule = policy.warningBytes; 1308 final long warningBytes = mContext.getResources().getInteger( in ensureActiveMobilePolicyLocked() local 1319 warningBytes, LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, true, true); in ensureActiveMobilePolicyLocked() 1366 final long warningBytes = readLongAttribute(in, ATTR_WARNING_BYTES); in readPolicyLocked() local 1406 cycleTimezone, warningBytes, limitBytes, lastWarningSnooze, in readPolicyLocked() 1493 writeLongAttribute(out, ATTR_WARNING_BYTES, policy.warningBytes); in writePolicyLocked() 1859 final long softLimitBytes = policy.warningBytes != WARNING_DISABLED ? policy.warningBytes in getNetworkQuotaInfoUnchecked()
|