Home
last modified time | relevance | path

Searched refs:ninePatch (Results 1 – 6 of 6) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder_Delegate.java52 NinePatch ninePatch = NinePatch.load(stream, true /*is9Patch*/, false /* convert */); in decodeBitmapImpl() local
53 BufferedImage image = ninePatch.getImage(); in decodeBitmapImpl()
65 bm.setNinePatchChunk(ninePatch.getChunk().getSerializedChunk()); in decodeBitmapImpl()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java610 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding) { in NinePatchState() argument
611 this(ninePatch, padding, null, DEFAULT_DITHER, false); in NinePatchState()
614 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding, in NinePatchState() argument
616 this(ninePatch, padding, opticalInsets, DEFAULT_DITHER, false); in NinePatchState()
619 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding, in NinePatchState() argument
621 mNinePatch = ninePatch; in NinePatchState()
666 final NinePatch ninePatch = mNinePatchState.mNinePatch; in computeBitmapSize() local
667 if (ninePatch == null) { in computeBitmapSize()
672 final int sourceDensity = ninePatch.getDensity() == Bitmap.DENSITY_NONE ? in computeBitmapSize()
673 targetDensity : ninePatch.getDensity(); in computeBitmapSize()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBitmapTest.java62 NinePatch ninePatch = NinePatch.load(nonCompiled, true, false); in testNinePatchChunk() local
64 …Assert.assertArrayEquals(compiledBitmap.getNinePatchChunk(), ninePatch.getChunk().getSerializedChu… in testNinePatchChunk()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java430 … NinePatch ninePatch = NinePatch.load(stream, true /*is9Patch*/, false /* convert */); in getDrawable() local
431 BufferedImage image = ninePatch.getImage(); in getDrawable()
444 bitmap.setNinePatchChunk(ninePatch.getChunk().getSerializedChunk()); in getDrawable()
445 int[] padArray = ninePatch.getChunk().getPadding(); in getDrawable()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java817 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
DBaseRecordingCanvas.java712 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument