Home
last modified time | relevance | path

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

/packages/modules/ExtServices/java/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java126 long freeBytes = 0; in getReservedCacheSize() local
128 freeBytes = Environment.getDataDirectory().getUsableSpace(); in getReservedCacheSize()
137 freeBytes = (directory != null) ? directory.getUsableSpace() : 0; in getReservedCacheSize()
142 return Math.round(freeBytes * CACHE_RESERVE_RATIO); in getReservedCacheSize()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DTopLevelStoragePreferenceController.java66 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummaryThread()
71 Formatter.formatFileSize(mContext, info.freeBytes))); in refreshSummaryThread()
DPublicVolumeSettings.java162 final long freeBytes = file.getFreeSpace(); in update() local
163 final long usedBytes = totalBytes - freeBytes; in update()
DStorageCategoryFragment.java197 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
DStorageDashboardFragment.java368 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
/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/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DVolumeSizesLoaderTest.java46 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
/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/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.java97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobService.java122 return info.freeBytes < lowStorageThreshold; in volumeNeedsManagement()