Searched refs:totalBytes (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java104 public boolean isOverWarning(long totalBytes) { argument
105 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes;
112 public boolean isOverLimit(long totalBytes) { argument
115 totalBytes += 2 * DEFAULT_MTU;
116 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes;
H A DNetworkStatsHistory.java79 private long totalBytes; field in class:NetworkStatsHistory
112 totalBytes = 0;
130 totalBytes = in.readLong();
143 out.writeLong(totalBytes);
158 totalBytes = total(rxBytes) + total(txBytes);
173 totalBytes = total(rxBytes) + total(txBytes);
233 return totalBytes;
343 totalBytes += entry.rxBytes + entry.txBytes;
463 // TODO: subtract removed values from totalBytes
/frameworks/base/services/java/com/android/server/net/
H A DNetworkPolicyManagerService.java648 final long totalBytes = getTotalBytes(policy.template, start, end);
650 if (policy.isOverLimit(totalBytes)) {
652 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes);
654 enqueueNotification(policy, TYPE_LIMIT, totalBytes);
661 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
662 enqueueNotification(policy, TYPE_WARNING, totalBytes);
731 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) { argument
792 final long overBytes = totalBytes - policy.limitBytes;
929 final long totalBytes = getTotalBytes(policy.template, start, end);
932 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes)
[all...]
H A DNetworkStatsCollection.java455 private void noteRecordedHistory(long startMillis, long endMillis, long totalBytes) { argument
458 mTotalBytes += totalBytes;
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp306 int64_t totalBytes = 0; local
347 totalBytes += buffer->range_length();
390 printf("avg. %.2f KB/sec\n", totalBytes / 1024 * 1E6 / delay);
392 printf("decoded a total of %lld bytes\n", totalBytes);

Completed in 36 milliseconds