Searched refs:limitBytes (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 42 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/ |
D | MobileDataControllerImpl.java | 159 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 946 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 …]
|