Searched refs:opticalInsets (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 114 Rect padding, Rect opticalInsets, String srcName) { in NinePatchDrawable() argument 115 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), in NinePatchDrawable() 428 final Rect opticalInsets = new Rect(); in updateStateFromTypedArray() local 450 bitmap.getOpticalInsets(opticalInsets); in updateStateFromTypedArray() 454 state.mOpticalInsets = Insets.of(opticalInsets); in updateStateFromTypedArray() 616 @Nullable Rect opticalInsets) { in NinePatchState() argument 617 this(ninePatch, padding, opticalInsets, DEFAULT_DITHER, false); in NinePatchState() 621 @Nullable Rect opticalInsets, boolean dither, boolean autoMirror) { in NinePatchState() argument 624 mOpticalInsets = Insets.of(opticalInsets); in NinePatchState()
|
D | Drawable.java | 996 final Rect opticalInsets = new Rect(); in createFromResourceStream() local 997 bm.getOpticalInsets(opticalInsets); in createFromResourceStream() 998 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); in createFromResourceStream()
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 4732 Insets opticalInsets = isLayoutModeOptical(mParent) ? getOpticalInsets() : Insets.NONE; in getBoxHeight() local 4736 return getMeasuredHeight() - padding + opticalInsets.top + opticalInsets.bottom; in getBoxHeight()
|