HomeSort by relevance Sort by last modified time
    Searched refs:NinePatch (Results 1 - 22 of 22) sorted by null

  /external/webkit/Source/WebKit/android/
RenderSkinNinePatch.h 30 struct NinePatch {
33 NinePatch() {
36 ~NinePatch() {
44 static bool decodeAsset(android::AssetManager*, const char* fileName, NinePatch*);
45 static void DrawNinePatch(SkCanvas*, const SkRect&, const NinePatch&);
RenderSkinNinePatch.cpp 41 bool RenderSkinNinePatch::decodeAsset(AssetManager* am, const char* filename, NinePatch* ninepatch) {
69 if (!decoder->decode(&stream, &ninepatch->m_bitmap, prefConfig, mode, true)) {
80 void** data = &ninepatch->m_serializedPatchData;
87 const NinePatch& patch) {
90 // if the NinePatch is bigger than the destination on a given axis the default
  /sdk/ninepatch/tests/src/com/android/ninepatch/
NinePatchTest.java 17 package com.android.ninepatch;
25 private NinePatch mPatch;
31 mPatch = NinePatch.load(stream, true /* is9Patch*/, false /* convert */);
  /cts/tests/tests/graphics/src/android/graphics/cts/
NinePatchTest.java 27 import android.graphics.NinePatch;
37 private NinePatch mNinePatch;
56 mNinePatch = new NinePatch(mBitmap, mChunk, NAME);
62 mNinePatch = new NinePatch(mBitmap, new byte[2], NAME);
66 mNinePatch = new NinePatch(mBitmap, mChunk, NAME);
70 assertTrue(NinePatch.isNinePatchChunk(mChunk));
72 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk()));
73 assertFalse(NinePatch.isNinePatchChunk(null));
141 NinePatch ninePatch = new NinePatch(bitmap, chunk, NAME)
    [all...]
  /sdk/ninepatch/src/com/android/ninepatch/
NinePatch.java 17 package com.android.ninepatch;
31 * This is a full representation of a NinePatch with both a {@link BufferedImage} and a
39 public class NinePatch {
62 * @return a {@link NinePatch} or <code>null</code>.
65 public static NinePatch load(URL fileUrl, boolean convert) throws IOException {
89 * @return a {@link NinePatch} or <code>null</code>.
92 public static NinePatch load(InputStream stream, boolean is9Patch, boolean convert)
115 * @return a {@link NinePatch} or <code>null</code>.
118 public static NinePatch load(BufferedImage image, boolean is9Patch, boolean convert) {
129 return new NinePatch(image)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
NinePatch.java 21 * The NinePatch class permits drawing a bitmap in nine sections.
27 * bounds of the graphic. For a thorough explanation of a NinePatch image,
33 * tool offers an extremely handy way to create your NinePatch images,
37 public class NinePatch {
52 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) {
62 public NinePatch(NinePatch patch) {
BitmapFactory.java 560 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np);
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 26 import android.graphics.NinePatch;
49 * Canvas and Drawables</a> developer guide. For information about creating a NinePatch image
57 private NinePatch mNinePatch;
79 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
88 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
100 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, layoutInsets), res);
106 * @deprecated Use {@link #NinePatchDrawable(Resources, NinePatch)}
110 public NinePatchDrawable(NinePatch patch) {
118 public NinePatchDrawable(Resources res, NinePatch patch) {
325 new NinePatch(bitmap, bitmap.getNinePatchChunk(), "XML 9-patch")
    [all...]
Drawable.java 29 import android.graphics.NinePatch;
765 the pad rect, but if the bitmap does not had a ninepatch chunk,
784 if (np == null || !NinePatch.isNinePatchChunk(np)) {
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 21 import com.android.ninepatch.NinePatchChunk;
64 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np);
111 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load(
115 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), true /*isMutable*/,
117 NinePatchChunk chunk = ninePatch.getChunk();
  /prebuilt/common/ninepatch/
ninepatch-prebuilt.jar 
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
NinePatchDrawableTest.java 33 import android.graphics.NinePatch;
73 new NinePatchDrawable(new NinePatch(bmp, chunk, name));
335 // jump through hoops to avoid scaling the tiny ninepatch, which would skew the results
338 NinePatch np = new NinePatch(bitmap, bitmap.getNinePatchChunk(), null);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
ResourceHelper.java 26 import com.android.ninepatch.NinePatch;
27 import com.android.ninepatch.NinePatchChunk;
182 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) {
273 NinePatch ninePatch = NinePatch.load(inputStream, true /*is9Patch*/,
275 if (ninePatch != null) {
277 chunk = ninePatch.getChunk();
284 bitmap = Bitmap_Delegate.createBitmap(ninePatch.getImage()
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeResources.java 28 import com.android.ninepatch.NinePatch;
618 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) {
650 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) {
  /frameworks/base/core/jni/
Android.mk 103 android/graphics/NinePatch.cpp \
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/15/
android.jar 
  /prebuilts/sdk/4/
android.jar 
  /prebuilts/sdk/6/
android.jar 
  /prebuilts/sdk/current/
android.jar 

Completed in 1267 milliseconds