Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/usage/
DExternalStorageStats.java31 /** {@hide} */ public long totalBytes; field in ExternalStorageStats
46 return totalBytes; in getTotalBytes()
105 this.totalBytes = in.readLong(); in ExternalStorageStats()
119 dest.writeLong(totalBytes); in writeToParcel()
/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/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java66 public long totalBytes; field in StorageStatsSource.ExternalStorageStats
75 long totalBytes, long audioBytes, long videoBytes, long imageBytes, long appBytes) { in ExternalStorageStats() argument
76 this.totalBytes = totalBytes; in ExternalStorageStats()
89 totalBytes = stats.getTotalBytes(); in ExternalStorageStats()
/frameworks/base/core/java/android/net/
DNetworkPolicy.java114 public boolean isOverWarning(long totalBytes) { in isOverWarning() argument
115 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; in isOverWarning()
122 public boolean isOverLimit(long totalBytes) { in isOverLimit() argument
125 totalBytes += 2 * DEFAULT_MTU; in isOverLimit()
126 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit()
DNetworkStatsHistory.java84 private long totalBytes; field in NetworkStatsHistory
117 totalBytes = 0; in NetworkStatsHistory()
135 totalBytes = in.readLong(); in NetworkStatsHistory()
148 out.writeLong(totalBytes); in writeToParcel()
163 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
178 totalBytes = total(rxBytes) + total(txBytes); in NetworkStatsHistory()
238 return totalBytes; in getTotalBytes()
348 totalBytes += entry.rxBytes + entry.txBytes; in recordData()
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeAdvertiser.java120 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES || in startAdvertising()
121 totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { in startAdvertising()
356 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
360 if (totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
378 if (totalBytes(advertiseData, isConnectable) > maxData) {
382 if (totalBytes(scanResponse, false) > maxData) {
386 if (totalBytes(periodicData, false) > maxData) {
472 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java173 final long totalBytes = entry.rxBytes + entry.txBytes; in getDataUsageInfo() local
176 usage.usageLevel = totalBytes; in getDataUsageInfo()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp312 int64_t totalBytes = 0; in playSource() local
353 totalBytes += buffer->range_length(); in playSource()
398 printf("avg. %.2f KB/sec\n", totalBytes / 1024 * 1E6 / delay); in playSource()
400 printf("decoded a total of %" PRId64 " bytes\n", totalBytes); in playSource()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1075 final long totalBytes = getTotalBytes(policy.template, start, end); in updateNotificationsNL() local
1077 if (policy.isOverLimit(totalBytes)) { in updateNotificationsNL()
1079 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes); in updateNotificationsNL()
1081 enqueueNotification(policy, TYPE_LIMIT, totalBytes); in updateNotificationsNL()
1088 if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) { in updateNotificationsNL()
1089 enqueueNotification(policy, TYPE_WARNING, totalBytes); in updateNotificationsNL()
1149 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes) { in enqueueNotification() argument
1218 final long overBytes = totalBytes - policy.limitBytes; in enqueueNotification()
1533 final long totalBytes = getTotalBytes(policy.template, start, end); in updateNetworkEnabledNL() local
1536 final boolean overLimitWithoutSnooze = policy.isOverLimit(totalBytes) in updateNetworkEnabledNL()
[all …]
DNetworkStatsCollection.java527 private void noteRecordedHistory(long startMillis, long endMillis, long totalBytes) { in noteRecordedHistory() argument
530 mTotalBytes += totalBytes; in noteRecordedHistory()
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java214 final long totalBytes = file.getTotalSpace(); in check() local
239 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.cpp162 size_t totalBytes = 0; in estimateBandwidth() local
167 totalBytes += it->mNumBytes; in estimateBandwidth()
171 (totalBytes * 8E6 / totalTimeUs) : *bandwidthBps; in estimateBandwidth()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java390 res.totalBytes = stats[0]; in queryExternalStatsForUser()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1210 final int totalBytes = Streams.copy(is, zos); in addEntry() local
1211 if (DEBUG) Log.v(TAG, "size of '" + entryName + "' entry: " + totalBytes + " bytes"); in addEntry()