Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java611 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding) { in NinePatchState() argument
612 this(ninePatch, padding, null, DEFAULT_DITHER, false); in NinePatchState()
615 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding, in NinePatchState() argument
617 this(ninePatch, padding, opticalInsets, DEFAULT_DITHER, false); in NinePatchState()
620 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding, in NinePatchState() argument
622 mNinePatch = ninePatch; in NinePatchState()
667 final NinePatch ninePatch = mNinePatchState.mNinePatch; in computeBitmapSize() local
668 if (ninePatch == null) { in computeBitmapSize()
673 final int sourceDensity = ninePatch.getDensity() == Bitmap.DENSITY_NONE ? in computeBitmapSize()
674 targetDensity : ninePatch.getDensity(); in computeBitmapSize()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java72 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream() local
76 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream()
78 NinePatchChunk chunk = ninePatch.getChunk(); in nativeDecodeStream()
DBaseCanvas_Delegate.java428 /*package*/ static void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
438 byte[] c = NinePatch_Delegate.getChunk(ninePatch); in nDrawNinePatch()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java457 NinePatch ninePatch = NinePatch.load(stream, true /*is9Patch*/, in getNinePatchDrawable() local
459 if (ninePatch != null) { in getNinePatchDrawable()
461 chunk = ninePatch.getChunk(); in getNinePatchDrawable()
468 bitmap = Bitmap_Delegate.createBitmap(ninePatch.getImage(), in getNinePatchDrawable()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java673 public static void setCached9Patch(String value, NinePatchChunk ninePatch, Object projectKey) { in setCached9Patch() argument
678 map.put(value, new SoftReference<>(ninePatch)); in setCached9Patch()
680 sFramework9PatchCache.put(value, new SoftReference<>(ninePatch)); in setCached9Patch()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java722 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
DBaseRecordingCanvas.java658 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument