Home
last modified time | relevance | path

Searched refs:Chunk (Results 1 – 3 of 3) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImageTest.java28 import com.android.ide.eclipse.adt.internal.editors.draw9patch.graphics.NinePatchedImage.Chunk;
217 Chunk[][] chunks = null; in test9Patch1()
228 Chunk c = null; in test9Patch1()
234 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
242 assertEquals(Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
250 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
259 assertEquals(Chunk.TYPE_HORIZONTAL, c.type); in test9Patch1()
267 assertEquals(Chunk.TYPE_FIXED, c.type); in test9Patch1()
275 assertEquals(Chunk.TYPE_HORIZONTAL, c.type); in test9Patch1()
284 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java81 private final List<Chunk> mChunkBin = new ArrayList<Chunk>(CHUNK_BIN_SIZE);
89 private Chunk[][] mPatchChunks = null;
143 private Chunk getChunk() { in getChunk()
145 Chunk chunk = mChunkBin.remove(0); in getChunk()
149 return new Chunk(); in getChunk()
152 private static final void recycleChunks(Chunk[][] patchChunks, List<Chunk> bin) { in recycleChunks()
580 public Chunk[][] getChunks(Chunk[][] chunks) { in getChunks()
589 chunks = new Chunk[lenY][lenX]; in getChunks()
595 chunks = new Chunk[lenY][lenX]; in getChunks()
611 Chunk t = getChunk(); in getChunks()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DImageViewer.java21 import com.android.ide.eclipse.adt.internal.editors.draw9patch.graphics.NinePatchedImage.Chunk;
94 private Chunk[][] mChunks = null;
95 private Chunk[][] mBadChunks = null;
651 Chunk c = mChunks[yPos][xPos];
653 if (c.type == Chunk.TYPE_FIXED) {
655 } else if (c.type == Chunk.TYPE_HORIZONTAL) {
657 } else if (c.type == Chunk.TYPE_VERTICAL) {
659 } else if (c.type == Chunk.TYPE_HORIZONTAL + Chunk.TYPE_VERTICAL) {
685 Chunk c = mBadChunks[yPos][xPos];
686 if ((c.type & Chunk.TYPE_CORRUPT) != 0) {