Searched defs:totalBytes (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java114 public boolean isOverWarning(long totalBytes) { argument
115 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes;
122 public boolean isOverLimit(long totalBytes) { argument
125 totalBytes += 2 * DEFAULT_MTU;
126 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes;
H A DNetworkStatsHistory.java81 private long totalBytes; field in class:NetworkStatsHistory
114 totalBytes = 0;
132 totalBytes = in.readLong();
145 out.writeLong(totalBytes);
160 totalBytes = total(rxBytes) + total(txBytes);
175 totalBytes = total(rxBytes) + total(txBytes);
235 return totalBytes;
345 totalBytes += entry.rxBytes + entry.txBytes;
465 // TODO: subtract removed values from totalBytes
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeAdvertiser.java121 if (totalBytes(advertiseData, isConnectable) > MAX_ADVERTISING_DATA_BYTES ||
122 totalBytes(scanResponse, false) > MAX_ADVERTISING_DATA_BYTES) {
174 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) { method in class:BluetoothLeAdvertiser
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsCollection.java520 private void noteRecordedHistory(long startMillis, long endMillis, long totalBytes) { argument
523 mTotalBytes += totalBytes;
H A DNetworkPolicyManagerService.java927 final long totalBytes = getTotalBytes(policy.template, start, end);
929 if (policy.isOverLimit(totalBytes)) {
931 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes);
933 enqueueNotification(policy, TYPE_LIMIT, totalBytes);
940 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
941 enqueueNotification(policy, TYPE_WARNING, totalBytes);
1009 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) { argument
1074 final long overBytes = totalBytes - policy.limitBytes;
1176 final long totalBytes = getTotalBytes(policy.template, start, end);
1179 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes)
[all...]
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp309 int64_t totalBytes = 0; local
350 totalBytes += buffer->range_length();
395 printf("avg. %.2f KB/sec\n", totalBytes / 1024 * 1E6 / delay);
397 printf("decoded a total of %" PRId64 " bytes\n", totalBytes);
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp167 size_t totalBytes = 0; local
172 totalBytes += it->mNumBytes;
176 (totalBytes * 8E6 / totalTimeUs) : *bandwidthBps;

Completed in 155 milliseconds