Home
last modified time | relevance | path

Searched refs:limitBytes (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicy.java42 public long limitBytes; 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
64 this.limitBytes = limitBytes; in NetworkPolicy()
76 limitBytes = in.readLong(); in NetworkPolicy()
89 dest.writeLong(limitBytes); in writeToParcel()
116 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit()
136 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo()
140 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileDataControllerImpl.java159 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java946 final long overBytes = totalBytes - policy.limitBytes; in enqueueNotification()
1080 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledLocked()
1207 final boolean hasLimit = policy.limitBytes != LIMIT_DISABLED;
1222 quotaBytes = Math.max(1, policy.limitBytes - totalBytes);
1244 if (hasLimit && policy.limitBytes < lowestRule) {
1245 lowestRule = policy.limitBytes;
1367 final long limitBytes = readLongAttribute(in, ATTR_LIMIT_BYTES); in readPolicyLocked() local
1406 cycleTimezone, warningBytes, limitBytes, lastWarningSnooze, in readPolicyLocked()
1494 writeLongAttribute(out, ATTR_LIMIT_BYTES, policy.limitBytes); in writePolicyLocked()
1861 final long hardLimitBytes = policy.limitBytes != LIMIT_DISABLED ? policy.limitBytes in getNetworkQuotaInfoUnchecked()
[all …]