Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java178 final long cacheClearable = storageManager.getAllocatableBytes(target, in checkFitOnVolume() local
180 return params.sizeBytes <= availBytes + cacheClearable; in checkFitOnVolume()
305 final long cacheClearable = storage.getAllocatableBytes(target, in fitsOnInternal() local
308 return params.sizeBytes <= allocateableBytes + cacheClearable; in fitsOnInternal()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java252 final long cacheClearable = Math.max(0, cacheTotal - cacheReserved); in getFreeBytes() local
254 return path.getUsableSpace() + cacheClearable; in getFreeBytes()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java3974 long cacheClearable = 0; in getAllocatableBytes() local
3986 cacheClearable = Math.max(0, cacheTotal - cacheReserved); in getAllocatableBytes()
3990 return Math.max(0, (usable + cacheClearable) - fullReserved); in getAllocatableBytes()
3992 return Math.max(0, (usable + cacheClearable) - lowReserved); in getAllocatableBytes()
4010 final long cacheClearable = getAllocatableBytes(volumeUuid, in allocateBytes() local
4012 if (bytes > allocatableBytes + cacheClearable) { in allocateBytes()
4014 + " because only " + (allocatableBytes + cacheClearable) + " allocatable")); in allocateBytes()