Searched refs:projections (Results 1 – 2 of 2) sorted by relevance
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | NinePatchedImageTest.java | 774 Projection[][] projections = null; in testProjection() local 775 projections = image.getProjections(width, height, projections); in testProjection() 777 assertEquals(chunks.length, projections.length); in testProjection() 779 assertEquals(chunks[i].length, projections[i].length); in testProjection() 782 for (int y = 0; y < projections.length; y++) { in testProjection() 783 for (int x = 0; x < projections[y].length; x++) { in testProjection() 784 assertEquals(projections[y][x].src, chunks[y][x].rect); in testProjection() 788 if (projections[y][x].chunk.type == Chunk.TYPE_FIXED) { in testProjection() 789 assertEquals(projections[y][x].dest.width, chunks[y][x].rect.width); in testProjection() 790 assertEquals(projections[y][x].dest.height, chunks[y][x].rect.height); in testProjection() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | NinePatchedImage.java | 174 private static final void recycleProjections(Projection[][] projections, List<Projection> bin) { in recycleProjections() argument 175 int yLen = projections.length; in recycleProjections() 178 xLen = projections[0].length; in recycleProjections() 184 bin.add(projections[y][x]); in recycleProjections() 186 projections[y][x] = null; in recycleProjections() 717 public Projection[][] getProjections(int width, int height, Projection[][] projections) { in getProjections() argument 730 if (projections == null) { in getProjections() 731 projections = new Projection[lenY][lenX]; in getProjections() 733 int y = projections.length; in getProjections() 734 int x = projections[0].length; in getProjections() [all …]
|