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.java602 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding) { in NinePatchState() argument
603 this(ninePatch, padding, null, DEFAULT_DITHER, false); in NinePatchState()
606 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding, in NinePatchState() argument
608 this(ninePatch, padding, opticalInsets, DEFAULT_DITHER, false); in NinePatchState()
611 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding, in NinePatchState() argument
613 mNinePatch = ninePatch; in NinePatchState()
658 final NinePatch ninePatch = mNinePatchState.mNinePatch; in computeBitmapSize() local
659 if (ninePatch == null) { in computeBitmapSize()
663 final int sourceDensity = ninePatch.getDensity(); in computeBitmapSize()
699 ninePatch.getHeight(), sourceDensity, targetDensity, true); in computeBitmapSize()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java71 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream() local
75 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream()
77 NinePatchChunk chunk = ninePatch.getChunk(); in nativeDecodeStream()
DBaseCanvas_Delegate.java375 /*package*/ static void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
385 byte[] c = NinePatch_Delegate.getChunk(ninePatch); in nDrawNinePatch()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java465 NinePatch ninePatch = NinePatch.load(inputStream, true /*is9Patch*/, in getNinePatchDrawable() local
467 if (ninePatch != null) { in getNinePatchDrawable()
469 chunk = ninePatch.getChunk(); in getNinePatchDrawable()
476 bitmap = Bitmap_Delegate.createBitmap(ninePatch.getImage(), in getNinePatchDrawable()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java723 public static void setCached9Patch(String value, NinePatchChunk ninePatch, Object projectKey) { in setCached9Patch() argument
732 map.put(value, new SoftReference<NinePatchChunk>(ninePatch)); in setCached9Patch()
734 sFramework9PatchCache.put(value, new SoftReference<NinePatchChunk>(ninePatch)); in setCached9Patch()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java601 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
/frameworks/base/core/java/android/view/
DRecordingCanvas.java597 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument