Searched refs:freeBytes (Results 1 – 11 of 11) sorted by relevance
126 long freeBytes = 0; in getReservedCacheSize() local128 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()
66 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummaryThread()71 Formatter.formatFileSize(mContext, info.freeBytes))); in refreshSummaryThread()
162 final long freeBytes = file.getFreeSpace(); in update() local163 final long usedBytes = totalBytes - freeBytes; in update()
197 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
368 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice()67 final String freeSizeString = Formatter.formatFileSize(mContext, info.freeBytes); in getSlice()
46 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
371 long freeBytes = mCacheStorageInfo.getFreeBytes(); in refreshCacheStorageInfo() local386 Formatter.formatFileSize(activity, freeBytes)); in refreshCacheStorageInfo()
58 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
122 return info.freeBytes < lowStorageThreshold; in volumeNeedsManagement()