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

  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 21 import com.android.ninepatch.NinePatchChunk;
69 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load(
73 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags,
75 NinePatchChunk chunk = ninePatch.getChunk();
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 26 import android.graphics.NinePatch;
50 * Canvas and Drawables</a> developer guide. For information about creating a NinePatch image
58 private NinePatch mNinePatch;
80 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
89 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
101 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), res);
107 * @deprecated Use {@link #NinePatchDrawable(Resources, NinePatch)}
111 public NinePatchDrawable(NinePatch patch) {
119 public NinePatchDrawable(Resources res, NinePatch patch) {
370 setNinePatchState(new NinePatchState(new NinePatch(bitmap, bitmap.getNinePatchChunk())
    [all...]
  /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...]
  /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/com/android/layoutlib/bridge/
Bridge.java 33 import com.android.ninepatch.NinePatchChunk;
622 * @param ninePatch the 9 patch object
625 public static void setCached9Patch(String value, NinePatchChunk ninePatch, Object projectKey) {
634 map.put(value, new SoftReference<NinePatchChunk>(ninePatch));
636 sFramework9PatchCache.put(value, new SoftReference<NinePatchChunk>(ninePatch));

Completed in 971 milliseconds