Lines Matching refs:cache

798      * <p>Indicates that no drawing cache should ever be created for this view.<p>
810 * <p>Enables low quality mode for the drawing cache.</p>
815 * <p>Enables high quality mode for the drawing cache.</p>
820 * <p>Enables automatic quality mode for the drawing cache.</p>
829 * <p>Mask for use with setFlags indicating bits used for the cache
1848 * Solid color to use as a background when creating the drawing cache. Enables
1849 * the cache to use 16 bit bitmaps instead of 32 bit.
2245 ScrollabilityCache cache = mScrollCache;
2246 if (cache != null) {
2247 return cache.fadingEdgeLength;
2277 ScrollabilityCache cache = mScrollCache;
2278 if (cache != null) {
2279 return cache.fadingEdgeLength;
2292 ScrollabilityCache cache = mScrollCache;
2293 if (cache != null) {
2294 ScrollBarDrawable scrollBar = cache.scrollBar;
2298 size = cache.scrollBarSize;
2314 ScrollabilityCache cache = mScrollCache;
2315 if (cache != null) {
2316 ScrollBarDrawable scrollBar = cache.scrollBar;
2320 size = cache.scrollBarSize;
2403 * Initalizes the scrollability cache if necessary.
2898 * Returns the quality of the drawing cache.
2914 * Set the drawing cache quality of this view. This value is used only when the
2915 * drawing cache is enabled
3276 * When a View's drawing cache is enabled, drawing is redirected to an
3281 * @param willNotCacheDrawing true if this view does not cache its
3289 * Returns whether or not this View can cache its drawing or not.
3291 * @return true if this view does not cache its drawing, false otherwise
5889 final ScrollabilityCache cache = mScrollCache;
5890 if (cache != null) {
5892 int state = cache.state;
5902 if (cache.interpolatorValues == null) {
5903 cache.interpolatorValues = new float[1];
5906 float[] values = cache.interpolatorValues;
5909 if (cache.scrollBarInterpolator.timeToValues(values) ==
5911 cache.state = ScrollabilityCache.OFF;
5913 cache.scrollBar.setAlpha(Math.round(values[0]));
5923 cache.scrollBar.setAlpha(255);
5939 final ScrollBarDrawable scrollBar = cache.scrollBar;
5942 size = cache.scrollBarSize;
6355 * <p>Enables or disables the drawing cache. When the drawing cache is enabled, the next call
6357 * bitmap. Calling {@link #draw(android.graphics.Canvas)} will not draw from the cache when
6358 * the cache is enabled. To benefit from the cache, you must request the drawing cache by
6362 * @param enabled true to enable the drawing cache, false otherwise
6373 * <p>Indicates whether the drawing cache is enabled for this view.</p>
6375 * @return true if the drawing cache is enabled
6388 * @return A non-scaled bitmap representing this view or null if cache is disabled.
6398 * is null when caching is disabled. If caching is enabled and the cache is not ready,
6400 * draw from the cache when the cache is enabled. To benefit from the cache, you must
6401 * request the drawing cache by calling this method and draw it on screen if the
6416 * @return A bitmap representing this view or null if cache is disabled.
6435 * <p>Frees the resources used by the drawing cache. If you call
6438 * should cleanup the cache with this method afterwards.</p>
6458 * Setting a solid background color for the drawing cache's bitmaps will improve
6462 * @param color The background color to use for the drawing cache's bitmap
6478 * @return The background color to used for the drawing cache's bitmap
6494 * <p>Forces the drawing cache to be built if the drawing cache is invalid.</p>
6498 * should cleanup the cache by calling {@link #destroyDrawingCache()} afterwards.</p>
6586 // If there is not enough memory to create the bitmap cache, just
6608 // is also using a drawing cache. Without this, the children would
6682 // is also using a drawing cache. Without this, the children would
8140 "View " + this + " was invalidated but its drawing cache is valid.");