Home
last modified time | relevance | path

Searched refs:cacheClearable (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/core/java/com/android/internal/content/
H A DInstallLocationUtils.java184 final long cacheClearable = storageManager.getAllocatableBytes(target, in checkFitOnVolume() local
186 return params.sizeBytes <= availBytes + cacheClearable; in checkFitOnVolume()
319 final long cacheClearable = storage.getAllocatableBytes(target, in fitsOnInternal() local
322 return params.sizeBytes <= allocateableBytes + cacheClearable; in fitsOnInternal()
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DStorageStatsService.java310 final long cacheClearable = Math.max(0, cacheTotal - cacheReserved); in getFreeBytes() local
312 freeBytes = path.getUsableSpace() + cacheClearable; in getFreeBytes()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java4002 long cacheClearable = 0; in getAllocatableBytes() local
4014 cacheClearable = Math.max(0, cacheTotal - cacheReserved); in getAllocatableBytes()
4018 return Math.max(0, (usable + cacheClearable) - fullReserved); in getAllocatableBytes()
4020 return Math.max(0, (usable + cacheClearable) - lowReserved); in getAllocatableBytes()
4038 final long cacheClearable = getAllocatableBytes(volumeUuid, in allocateBytes() local
4040 if (bytes > allocatableBytes + cacheClearable) { in allocateBytes()
4042 + " because only " + (allocatableBytes + cacheClearable) + " allocatable")); in allocateBytes()