Home
last modified time | relevance | path

Searched refs:totalBytes (Results 1 – 24 of 24) 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/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/
DIorapWorkFlowTest.java318 int totalBytes = Integer.parseInt(m.group(5));
323 totalFilePath, totalFilePathGoodRate, totalEntries, totalEntriesGoodRate, totalBytes,
328 totalBytes > 0 &&
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsBackupAgentTest.java217 int totalBytes = 0; in generateBackupData() local
219 totalBytes += 2 * Integer.BYTES + key.getBytes().length in generateBackupData()
223 ByteBuffer buffer = ByteBuffer.allocate(totalBytes); in generateBackupData()
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp405 size_t totalBytes = 0; in writeDump() local
453 totalBytes += rc; in writeDump()
463 bytesWritten = totalBytes; in writeDump()
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.h228 void noteDataDropped(const ConfigKey& key, const size_t totalBytes);
639 void noteDataDropped(const ConfigKey& key, const size_t totalBytes, int32_t timeSec);
DStatsdStats.cpp257 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes) { in noteDataDropped() argument
258 noteDataDropped(key, totalBytes, getWallClockSec()); in noteDataDropped()
277 void StatsdStats::noteDataDropped(const ConfigKey& key, const size_t totalBytes, int32_t timeSec) { in noteDataDropped() argument
289 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/av/cmds/stagefright/
Dstagefright.cpp327 int64_t totalBytes = 0; in playSource() local
371 totalBytes += buffer->range_length(); in playSource()
416 printf("avg. %.2f KB/sec\n", totalBytes / 1024 * 1E6 / delay); in playSource()
418 printf("decoded a total of %" PRId64 " bytes\n", totalBytes); in playSource()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1177 final long totalBytes = getTotalBytes(policy.template, cycleStart, cycleEnd); local
1199 if (policy.isOverWarning(totalBytes) && !policy.isOverLimit(totalBytes)) {
1202 enqueueNotification(policy, TYPE_WARNING, totalBytes, null);
1209 if (policy.isOverLimit(totalBytes)) {
1212 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes, null);
1214 enqueueNotification(policy, TYPE_LIMIT, totalBytes, null);
1265 long totalBytes = 0; in findRapidBlame() local
1274 totalBytes += bytes; in findRapidBlame()
1283 if (maxBytes > 0 && maxBytes > totalBytes / 2) { in findRapidBlame()
1344 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/native/libs/input/
DInput.cpp57 size_t totalBytes = 0; in nextId() local
58 while (totalBytes < BUF_LEN) { in nextId()
65 totalBytes += bytes; in nextId()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp762 size_t totalBytes = metricsManager.byteSize(); in flushIfNecessaryLocked() local
765 if (totalBytes > StatsdStats::kMaxMetricsBytesPerConfig) { in flushIfNecessaryLocked()
768 StatsdStats::getInstance().noteDataDropped(key, totalBytes); in flushIfNecessaryLocked()
770 } else if ((totalBytes > StatsdStats::kBytesPerConfigTriggerGetData) || in flushIfNecessaryLocked()
/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.cpp167 size_t totalBytes = 0; in estimateBandwidth() local
172 totalBytes += it->mNumBytes; in estimateBandwidth()
176 (totalBytes * 8E6 / totalTimeUs) : *bandwidthBps; in estimateBandwidth()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerService.java520 final AtomicLong totalBytes = new AtomicLong(0); in getTotalUsageBytesLocked() local
523 totalBytes.getAndAdd(blobMetadata.getSize()); in getTotalUsageBytesLocked()
526 return totalBytes.get(); in getTotalUsageBytesLocked()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java462 res.totalBytes = stats[0]; in queryExternalStatsForUser()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1421 final int totalBytes = Streams.copy(is, zos); in addEntry() local
1422 if (DEBUG) Log.v(TAG, "size of '" + entryName + "' entry: " + totalBytes + " bytes"); in addEntry()