Searched refs:totalBytes (Results 1 - 9 of 9) 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/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java173 final long totalBytes = entry.rxBytes + entry.txBytes;
176 usage.usageLevel = totalBytes;
/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/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java962 final long totalBytes = getTotalBytes(policy.template, start, end);
964 if (policy.isOverLimit(totalBytes)) {
966 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes);
968 enqueueNotification(policy, TYPE_LIMIT, totalBytes);
975 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
976 enqueueNotification(policy, TYPE_WARNING, totalBytes);
1044 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) { argument
1111 final long overBytes = totalBytes - policy.limitBytes;
1213 final long totalBytes = getTotalBytes(policy.template, start, end);
1216 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes)
[all...]
H A DNetworkStatsCollection.java520 private void noteRecordedHistory(long startMillis, long endMillis, long totalBytes) { argument
523 mTotalBytes += totalBytes;
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp167 size_t totalBytes = 0; local
172 totalBytes += it->mNumBytes;
176 (totalBytes * 8E6 / totalTimeUs) : *bandwidthBps;
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java1195 final int totalBytes = Streams.copy(is, zos);
1196 if (DEBUG) Log.v(TAG, "size of '" + entryName + "' entry: " + totalBytes + " bytes");

Completed in 582 milliseconds