Home
last modified time | relevance | path

Searched refs:totalBytes (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java67 public long totalBytes; field in StorageStatsSource.ExternalStorageStats
76 long totalBytes, long audioBytes, long videoBytes, long imageBytes, long appBytes) { in ExternalStorageStats() argument
77 this.totalBytes = totalBytes; in ExternalStorageStats()
90 totalBytes = stats.getTotalBytes(); in ExternalStorageStats()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DPrivateStorageInfo.java34 public final long totalBytes; field in PrivateStorageInfo
36 public PrivateStorageInfo(long freeBytes, long totalBytes) { in PrivateStorageInfo() argument
38 this.totalBytes = totalBytes; in PrivateStorageInfo()
/frameworks/base/core/java/android/app/usage/
DExternalStorageStats.java31 /** {@hide} */ public long totalBytes; field in ExternalStorageStats
47 return totalBytes; in getTotalBytes()
111 this.totalBytes = in.readLong(); in ExternalStorageStats()
126 dest.writeLong(totalBytes); in writeToParcel()
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeAdvertiser.java118 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES in startAdvertising()
119 || totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { in startAdvertising()
353 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
357 if (totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
375 if (totalBytes(advertiseData, isConnectable) > maxData) {
379 if (totalBytes(scanResponse, false) > maxData) {
383 if (totalBytes(periodicData, false) > maxData) {
479 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) {
/frameworks/base/core/java/android/net/
DNetworkPolicy.java154 public boolean isOverWarning(long totalBytes) { in isOverWarning() argument
155 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; in isOverWarning()
163 public boolean isOverLimit(long totalBytes) { in isOverLimit() argument
166 totalBytes += 2 * DEFAULT_MTU; in isOverLimit()
167 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit()
DNetworkStatsHistory.java88 private long totalBytes; field in NetworkStatsHistory
128 totalBytes = 0; in NetworkStatsHistory()
147 totalBytes = in.readLong(); in NetworkStatsHistory()
160 out.writeLong(totalBytes); in writeToParcel()
175 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
190 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
253 return totalBytes; in getTotalBytes()
304 if (rxBytes != null) totalBytes -= rxBytes[i]; in setValues()
305 if (txBytes != null) totalBytes -= txBytes[i]; in setValues()
316 if (rxBytes != null) totalBytes += rxBytes[i]; in setValues()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java137 final long totalBytes = getUsageLevel(template, start, end); in getDataUsageInfo() local
138 if (totalBytes < 0L) { in getDataUsageInfo()
143 usage.usageLevel = totalBytes; in getDataUsageInfo()
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp376 size_t totalBytes = 0; in writeDump() local
424 totalBytes += rc; in writeDump()
434 bytesWritten = totalBytes; in writeDump()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.h218 void noteDataDropped(const ConfigKey& key, const size_t totalBytes);
593 void noteDataDropped(const ConfigKey& key, const size_t totalBytes, int32_t timeSec);
DStatsdStats.cpp256 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes) { in noteDataDropped() argument
257 noteDataDropped(key, totalBytes, getWallClockSec()); in noteDataDropped()
276 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes, int32_t timeSec) { in noteDataDropped() argument
288 it->second->data_drop_bytes.push_back(totalBytes); in noteDataDropped()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java279 final long totalBytes = getNetworkTotalBytes(start, end); in getRemainingDailyBudget() local
280 final long remainingBytes = totalBytes == -1 ? 0 : Math.max(0, limitBytes - totalBytes); in getRemainingDailyBudget()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp559 size_t totalBytes = metricsManager.byteSize(); in flushIfNecessaryLocked() local
562 if (totalBytes > in flushIfNecessaryLocked()
565 StatsdStats::getInstance().noteDataDropped(key, totalBytes); in flushIfNecessaryLocked()
567 } else if ((totalBytes > StatsdStats::kBytesPerConfigTriggerGetData) || in flushIfNecessaryLocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1164 final long totalBytes = getTotalBytes(policy.template, cycleStart, cycleEnd); local
1186 if (policy.isOverWarning(totalBytes) && !policy.isOverLimit(totalBytes)) {
1189 enqueueNotification(policy, TYPE_WARNING, totalBytes, null);
1196 if (policy.isOverLimit(totalBytes)) {
1199 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes, null);
1201 enqueueNotification(policy, TYPE_LIMIT, totalBytes, null);
1252 long totalBytes = 0; in findRapidBlame() local
1261 totalBytes += bytes; in findRapidBlame()
1270 if (maxBytes > 0 && maxBytes > totalBytes / 2) { in findRapidBlame()
1331 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes, in enqueueNotification() argument
[all …]
DNetworkStatsCollection.java657 private void noteRecordedHistory(long startMillis, long endMillis, long totalBytes) { in noteRecordedHistory() argument
660 mTotalBytes += totalBytes; in noteRecordedHistory()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp328 int64_t totalBytes = 0; in playSource() local
372 totalBytes += buffer->range_length(); in playSource()
417 printf("avg. %.2f KB/sec\n", totalBytes / 1024 * 1E6 / delay); in playSource()
419 printf("decoded a total of %" PRId64 " bytes\n", totalBytes); in playSource()
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java203 final long totalBytes = file.getTotalSpace(); in check() local
228 usableBytes, totalBytes); in check() local
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsLoggingServiceTest.java125 mStorageStats.totalBytes = 22L; in testPopulatedLogTask()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp166 size_t totalBytes = 0; in estimateBandwidth() local
171 totalBytes += it->mNumBytes; in estimateBandwidth()
175 (totalBytes * 8E6 / totalTimeUs) : *bandwidthBps; in estimateBandwidth()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java401 res.totalBytes = stats[0]; in queryExternalStatsForUser()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1221 final int totalBytes = Streams.copy(is, zos); in addEntry() local
1222 if (DEBUG) Log.v(TAG, "size of '" + entryName + "' entry: " + totalBytes + " bytes"); in addEntry()