Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageVolumePreference.java81 long usedBytes = 0; in StorageVolumePreference() local
88 usedBytes = totalBytes - freeBytes; in StorageVolumePreference()
99 usedBytes = totalBytes - freeBytes; in StorageVolumePreference()
102 final String used = Formatter.formatFileSize(context, usedBytes); in StorageVolumePreference()
106 mUsedPercent = (int) ((usedBytes * 100) / totalBytes); in StorageVolumePreference()
DStorageSummaryPreference.java41 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument
42 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes), in setPercent()
43 (usedBytes > 0) ? 1 : 0, 100); in setPercent()
DPublicVolumeSettings.java170 final long usedBytes = totalBytes - freeBytes; in update() local
172 final BytesResult result = Formatter.formatBytes(getResources(), usedBytes, 0); in update()
177 mSummary.setPercent(usedBytes, totalBytes); in update()
DPrivateVolumeSettings.java254 final long usedBytes = mTotalSize - freeBytes; in update() local
256 if (LOGV) Log.v(TAG, "update() freeBytes: " + freeBytes + " usedBytes: " + usedBytes); in update()
258 final BytesResult result = Formatter.formatBytes(getResources(), usedBytes, 0); in update()
263 mSummary.setPercent(usedBytes, mTotalSize); in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageVolumePreference.java81 long usedBytes = 0; in StorageVolumePreference() local
88 usedBytes = totalBytes - freeBytes; in StorageVolumePreference()
99 usedBytes = totalBytes - freeBytes; in StorageVolumePreference()
102 final String used = Formatter.formatFileSize(context, usedBytes); in StorageVolumePreference()
106 mUsedPercent = (int) ((usedBytes * 100) / totalBytes); in StorageVolumePreference()
DStorageSummaryPreference.java41 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument
42 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes), in setPercent()
43 (usedBytes > 0) ? 1 : 0, 100); in setPercent()
DPublicVolumeSettings.java170 final long usedBytes = totalBytes - freeBytes; in update() local
172 final BytesResult result = Formatter.formatBytes(getResources(), usedBytes, 0); in update()
177 mSummary.setPercent(usedBytes, totalBytes); in update()
DPrivateVolumeSettings.java254 final long usedBytes = mTotalSize - freeBytes; in update() local
256 if (LOGV) Log.v(TAG, "update() freeBytes: " + freeBytes + " usedBytes: " + usedBytes); in update()
258 final BytesResult result = Formatter.formatBytes(getResources(), usedBytes, 0); in update()
263 mSummary.setPercent(usedBytes, mTotalSize); in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java52 public static CharSequence convertUsedBytesToFormattedText(Context context, long usedBytes) { in convertUsedBytesToFormattedText() argument
54 usedBytes, 0); in convertUsedBytesToFormattedText()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes() local
119 updateBytes(usedBytes, totalSize); in updateSizes()
DStorageSummaryDonutPreference.java55 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument
60 mPercent = usedBytes / (double) totalBytes; in setPercent()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java52 public static CharSequence convertUsedBytesToFormattedText(Context context, long usedBytes) { in convertUsedBytesToFormattedText() argument
54 usedBytes, 0); in convertUsedBytesToFormattedText()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes() local
119 updateBytes(usedBytes, totalSize); in updateSizes()
DStorageSummaryDonutPreference.java55 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument
60 mPercent = usedBytes / (double) totalBytes; in setPercent()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DStorageSlice.java101 final long usedBytes = info.totalBytes - info.freeBytes; in getStorageUsedText() local
103 usedBytes); in getStorageUsedText()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/deviceinfo/
DStorageSlice.java101 final long usedBytes = info.totalBytes - info.freeBytes; in getStorageUsedText() local
103 usedBytes); in getStorageUsedText()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java369 long usedBytes = mCacheStorageInfo.getUsedBytes(); in refreshCacheStorageInfo() local
382 progressBar.setProgress((int) (usedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo()