/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreference.java | 81 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()
|
D | StorageSummaryPreference.java | 41 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()
|
D | PublicVolumeSettings.java | 170 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()
|
D | PrivateVolumeSettings.java | 254 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/ |
D | StorageVolumePreference.java | 81 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()
|
D | StorageSummaryPreference.java | 41 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()
|
D | PublicVolumeSettings.java | 170 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()
|
D | PrivateVolumeSettings.java | 254 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/ |
D | StorageSummaryDonutPreferenceController.java | 52 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()
|
D | StorageSummaryDonutPreference.java | 55 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/ |
D | StorageSummaryDonutPreferenceController.java | 52 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()
|
D | StorageSummaryDonutPreference.java | 55 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/ |
D | StorageSlice.java | 101 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/ |
D | StorageSlice.java | 101 final long usedBytes = info.totalBytes - info.freeBytes; in getStorageUsedText() local 103 usedBytes); in getStorageUsedText()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ManageCachePage.java | 369 long usedBytes = mCacheStorageInfo.getUsedBytes(); in refreshCacheStorageInfo() local 382 progressBar.setProgress((int) (usedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo()
|