Lines Matching refs:totalBytes
643 final long totalBytes = getTotalBytes(policy.template, start, end);
645 if (policy.isOverLimit(totalBytes)) {
647 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes);
649 enqueueNotification(policy, TYPE_LIMIT, totalBytes);
656 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
657 enqueueNotification(policy, TYPE_WARNING, totalBytes);
726 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) {
787 final long overBytes = totalBytes - policy.limitBytes;
924 final long totalBytes = getTotalBytes(policy.template, start, end);
927 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes)
1024 final long totalBytes;
1027 totalBytes = getTotalBytes(policy.template, start, currentTime);
1030 totalBytes = 0;
1054 quotaBytes = Math.max(1, policy.limitBytes - totalBytes);
1577 final long totalBytes = getTotalBytes(policy.template, start, end);
1585 return new NetworkQuotaInfo(totalBytes, softLimitBytes, hardLimitBytes);