/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreference.java | 80 long freeBytes = 0; in StorageVolumePreference() local 87 freeBytes = stats.getFreeBytes(volume.getFsUuid()); in StorageVolumePreference() 88 usedBytes = totalBytes - freeBytes; in StorageVolumePreference() 98 freeBytes = path.getFreeSpace(); in StorageVolumePreference() 99 usedBytes = totalBytes - freeBytes; in StorageVolumePreference() 109 if (freeBytes < mStorageManager.getStorageLowBytes(path)) { in StorageVolumePreference()
|
D | TopLevelStoragePreferenceController.java | 59 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummary() 64 Formatter.formatFileSize(mContext, info.freeBytes))); in refreshSummary()
|
D | PublicVolumeSettings.java | 169 final long freeBytes = file.getFreeSpace(); in update() local 170 final long usedBytes = totalBytes - freeBytes; in update()
|
D | PrivateVolumeSettings.java | 253 final long freeBytes = mVolume.getPath().getFreeSpace(); in update() local 254 final long usedBytes = mTotalSize - freeBytes; in update() 256 if (LOGV) Log.v(TAG, "update() freeBytes: " + freeBytes + " usedBytes: " + usedBytes); in update()
|
D | StorageDashboardFragment.java | 143 long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
|
D | StorageSettings.java | 156 final long privateUsedBytes = info.totalBytes - info.freeBytes; in refresh()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageVolumePreference.java | 80 long freeBytes = 0; in StorageVolumePreference() local 87 freeBytes = stats.getFreeBytes(volume.getFsUuid()); in StorageVolumePreference() 88 usedBytes = totalBytes - freeBytes; in StorageVolumePreference() 98 freeBytes = path.getFreeSpace(); in StorageVolumePreference() 99 usedBytes = totalBytes - freeBytes; in StorageVolumePreference() 109 if (freeBytes < mStorageManager.getStorageLowBytes(path)) { in StorageVolumePreference()
|
D | TopLevelStoragePreferenceController.java | 52 double privateUsedBytes = info.totalBytes - info.freeBytes; in getSummary() 55 Formatter.formatFileSize(mContext, info.freeBytes)); in getSummary()
|
D | PublicVolumeSettings.java | 169 final long freeBytes = file.getFreeSpace(); in update() local 170 final long usedBytes = totalBytes - freeBytes; in update()
|
D | PrivateVolumeSettings.java | 253 final long freeBytes = mVolume.getPath().getFreeSpace(); in update() local 254 final long usedBytes = mTotalSize - freeBytes; in update() 256 if (LOGV) Log.v(TAG, "update() freeBytes: " + freeBytes + " usedBytes: " + usedBytes); in update()
|
D | StorageDashboardFragment.java | 143 long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
|
D | StorageSettings.java | 156 final long privateUsedBytes = info.totalBytes - info.freeBytes; in refresh()
|
/packages/modules/ExtServices/src/android/ext/services/storage/ |
D | CacheQuotaServiceImpl.java | 123 long freeBytes = 0; in getReservedCacheSize() local 125 freeBytes = Environment.getDataDirectory().getUsableSpace(); in getReservedCacheSize() 128 freeBytes = vol.getPath().getUsableSpace(); in getReservedCacheSize() 130 return Math.round(freeBytes * CACHE_RESERVE_RATIO); in getReservedCacheSize()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/ |
D | CachedStorageValuesHelper.java | 72 final long freeBytes = mSharedPreferences.getLong(FREE_BYTES_KEY, -1); in getCachedPrivateStorageInfo() local 74 if (freeBytes < 0 || totalBytes < 0) { in getCachedPrivateStorageInfo() 78 return new PrivateStorageInfo(freeBytes, totalBytes); in getCachedPrivateStorageInfo() 138 .putLong(FREE_BYTES_KEY, storageInfo.freeBytes) in cacheResult()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | CachedStorageValuesHelper.java | 72 final long freeBytes = mSharedPreferences.getLong(FREE_BYTES_KEY, -1); in getCachedPrivateStorageInfo() local 74 if (freeBytes < 0 || totalBytes < 0) { in getCachedPrivateStorageInfo() 78 return new PrivateStorageInfo(freeBytes, totalBytes); in getCachedPrivateStorageInfo() 138 .putLong(FREE_BYTES_KEY, storageInfo.freeBytes) in cacheResult()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | LowStorageSlice.java | 63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice() 67 final String freeSizeString = Formatter.formatFileSize(mContext, info.freeBytes); in getSlice()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | LowStorageSlice.java | 63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice() 67 final String freeSizeString = Formatter.formatFileSize(mContext, info.freeBytes); in getSlice()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ManageCachePage.java | 371 long freeBytes = mCacheStorageInfo.getFreeBytes(); in refreshCacheStorageInfo() local 386 Formatter.formatFileSize(activity, freeBytes)); in refreshCacheStorageInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | VolumeSizesLoaderTest.java | 30 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
|
D | CachedStorageValuesHelperTest.java | 102 assertThat(info.freeBytes).isEqualTo(1000L); in getCachedPrivateStorageInfo_cachedValuesAreLoaded()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | VolumeSizesLoaderTest.java | 58 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageSettingsManager.java | 98 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/ |
D | StorageSlice.java | 101 final long usedBytes = info.totalBytes - info.freeBytes; in getStorageUsedText()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobService.java | 122 return info.freeBytes < lowStorageThreshold; in volumeNeedsManagement()
|
/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()
|