Searched refs:ninePatch (Results 1 – 6 of 6) sorted by relevance
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | ImageDecoder_Delegate.java | 52 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/ |
D | NinePatchDrawable.java | 610 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/ |
D | BitmapTest.java | 62 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/ |
D | ResourceHelper.java | 430 … 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/ |
D | BaseCanvas.java | 817 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
|
D | BaseRecordingCanvas.java | 712 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
|