Home
last modified time | relevance | path

Searched refs:freeBytes (Results 1 – 25 of 25) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageVolumePreference.java80 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()
DTopLevelStoragePreferenceController.java59 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummary()
64 Formatter.formatFileSize(mContext, info.freeBytes))); in refreshSummary()
DPublicVolumeSettings.java169 final long freeBytes = file.getFreeSpace(); in update() local
170 final long usedBytes = totalBytes - freeBytes; in update()
DPrivateVolumeSettings.java253 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()
DStorageDashboardFragment.java143 long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
DStorageSettings.java156 final long privateUsedBytes = info.totalBytes - info.freeBytes; in refresh()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageVolumePreference.java80 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()
DTopLevelStoragePreferenceController.java52 double privateUsedBytes = info.totalBytes - info.freeBytes; in getSummary()
55 Formatter.formatFileSize(mContext, info.freeBytes)); in getSummary()
DPublicVolumeSettings.java169 final long freeBytes = file.getFreeSpace(); in update() local
170 final long usedBytes = totalBytes - freeBytes; in update()
DPrivateVolumeSettings.java253 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()
DStorageDashboardFragment.java143 long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
DStorageSettings.java156 final long privateUsedBytes = info.totalBytes - info.freeBytes; in refresh()
/packages/modules/ExtServices/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java123 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/
DCachedStorageValuesHelper.java72 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/
DCachedStorageValuesHelper.java72 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/
DLowStorageSlice.java63 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/
DLowStorageSlice.java63 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/
DManageCachePage.java371 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/
DVolumeSizesLoaderTest.java30 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
DCachedStorageValuesHelperTest.java102 assertThat(info.freeBytes).isEqualTo(1000L); in getCachedPrivateStorageInfo_cachedValuesAreLoaded()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DVolumeSizesLoaderTest.java58 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageSettingsManager.java98 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DStorageSlice.java101 final long usedBytes = info.totalBytes - info.freeBytes; in getStorageUsedText()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobService.java122 return info.freeBytes < lowStorageThreshold; in volumeNeedsManagement()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/deviceinfo/
DStorageSlice.java101 final long usedBytes = info.totalBytes - info.freeBytes; in getStorageUsedText()