HomeSort by relevance Sort by last modified time
    Searched refs:NinePatch (Results 1 - 21 of 21) 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&);
RenderSkinButton.h 50 NinePatch m_buttons[4];
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 31 import android.graphics.NinePatch;
38 @TestTargetClass(NinePatch.class)
42 private NinePatch mNinePatch;
61 mNinePatch = new NinePatch(mBitmap, mChunk, NAME);
66 method = "NinePatch",
72 mNinePatch = new NinePatch(mBitmap, new byte[2], NAME);
76 mNinePatch = new NinePatch(mBitmap, mChunk, NAME);
85 assertTrue(NinePatch.isNinePatchChunk(mChunk));
87 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk()));
88 assertFalse(NinePatch.isNinePatchChunk(null))
    [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 519 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np);
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 40 * Canvas and Drawables</a> developer guide. For information about creating a NinePatch image
48 private NinePatch mNinePatch;
69 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
78 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
84 * @deprecated Use {@link #NinePatchDrawable(Resources, NinePatch)}
88 public NinePatchDrawable(NinePatch patch) {
96 public NinePatchDrawable(Resources res, NinePatch patch) {
272 new NinePatch(bitmap, bitmap.getNinePatchChunk(), "XML 9-patch"),
345 final NinePatch mNinePatch;
351 NinePatchState(NinePatch ninePatch, Rect padding)
    [all...]
Drawable.java 28 import android.graphics.NinePatch;
757 the pad rect, but if the bitmap does not had a ninepatch chunk,
776 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);
108 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load(
112 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), true /*isMutable*/,
114 NinePatchChunk chunk = ninePatch.getChunk();
  /prebuilt/common/ninepatch/
ninepatch-prebuilt.jar 
  /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...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
NinePatchDrawableTest.java 38 import android.graphics.NinePatch;
76 args = {android.graphics.NinePatch.class}
91 new NinePatchDrawable(new NinePatch(bmp, chunk, name));
439 // jump through hoops to avoid scaling the tiny ninepatch, which would skew the results
442 NinePatch np = new NinePatch(bitmap, bitmap.getNinePatchChunk(), null);
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
BridgeResources.java 28 import com.android.ninepatch.NinePatch;
620 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) {
652 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) {
  /frameworks/base/core/jni/
Android.mk 103 android/graphics/NinePatch.cpp \
  /prebuilt/sdk/10/
android.jar 
  /prebuilt/sdk/12/
android.jar 
  /prebuilt/sdk/14/
android.jar 
  /prebuilt/sdk/4/
android.jar 
  /prebuilt/sdk/6/
android.jar 

Completed in 581 milliseconds