Lines Matching refs:bounds
34 * size matches the most closely the drawing bounds. Providing several pre-scaled version of the
41 * the bounds' height. This selection ensures that the best available mipmap level is scaled down to
45 * If the bounds' height is larger than the largest mipmap, the largest mipmap will be scaled up.
79 * bounds' height is lower or equal than 8 pixels. The second drawable will then be used up to a
94 * this MipmapDrawable is drawn is determined from its bounds.
121 protected void onBoundsChange(Rect bounds) {
122 final int index = mMipmapContainerState.indexForBounds(bounds);
127 super.onBoundsChange(bounds);
206 * Returns the index of the child mipmap drawable that will best fit the provided bounds.
207 * This index is determined by comparing bounds' height and children intrinsic heights.
209 * the bounds' height. If the bounds' height is larger than the largest mipmap, the largest
212 * @param bounds The bounds of the MipMapDrawable.
213 * @return The index of the child Drawable that will best fit these bounds, or -1 if there
216 public int indexForBounds(Rect bounds) {
217 final int boundsHeight = bounds.height();
225 // No mipmap larger than bounds found. Use largest one which will be scaled up.