Home | History | Annotate | Download | only in images

Lines Matching refs:percent

37      * Creates a new ImageCache object with a given cache size percent.
39 * @param memCacheSizePercent The cache size as a percent of available app memory.
67 * @param memCacheSizePercent The cache size as a percent of available app memory. Should be in
167 * setting percent to 0.2 would set the memory cache to one fifth of the available memory.
168 * Throws {@link IllegalArgumentException} if percent is < 0.05 or > .8. memCacheSize is stored
174 * @param percent Percent of available app memory to use to size memory cache.
176 public static int calculateMemCacheSize(float percent) {
177 if (percent < MIN_CACHE_SIZE_PERCENT || percent > MAX_CACHE_SIZE_PERCENT) {
179 "setMemCacheSizePercent - percent must be "
184 Math.round(percent * Runtime.getRuntime().maxMemory() / 1024));