/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | GraphicsUtilities.java | 34 ImageData result = new ImageData(image.width + 2, image.height + 2, image.depth, in convertToNinePatch() 40 for (int y = 0; y < image.height; y++) { in convertToNinePatch() 62 int height = imageData.height; in clearImageData() local 63 for (int y = 0; y < height; y++) { in clearImageData() 79 ImageData result = new ImageData(image.width, image.height, image.depth, in copy() 85 for (int y = 0; y < image.height; y++) { in copy() 103 public static int getVerticalPixels(ImageData data, int x, int y, int height, int[] out) { in getVerticalPixels() argument 110 if (height > out.length) { in getVerticalPixels() 113 if (data.height < (y + height)) { in getVerticalPixels() 122 if (y >= data.height) { in getVerticalPixels() [all …]
|
D | NinePatchedImage.java | 100 return mBaseImageData.height; in getHeight() 253 int height = mBaseImageData.height; in ensure9Patch() local 265 if (!ensureHorizontalPixel(x, height - 1, mHorizontalContentPixels)) { in ensure9Patch() 270 for (int y = 0; y < height; y++) { in ensure9Patch() 288 mVerticalPatchPixels = initArray(new int[mBaseImageData.height]); in createPatchArray() 293 mVerticalContentPixels = initArray(new int[mBaseImageData.height]); in createContentArray() 316 ^ (x == mBaseImageData.width - 1) ^ (y == mBaseImageData.height - 1); in isValid() 330 } else if (y == mBaseImageData.height - 1) { in setPatch() 351 } else if (y == mBaseImageData.height - 1) { in erase() 426 rect.height = mBaseImageData.height - 1; in getContentArea() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
D | TexImageTransform.java | 67 GLEnum type, int xOffset, int yOffset, int width, int height) { in TexImageTransform() argument 76 mHeight = height; in TexImageTransform() 135 private String createTexture(File textureDataFile, int width, int height) throws IOException { in createTexture() argument 138 BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); in createTexture() 142 img.getRaster().setDataElements(0, 0, width, height, in createTexture() 143 formatSourceData(initialData, width, height)); in createTexture() 162 int xOffset, int yOffset, int width, int height) throws IOException { in updateTextureData() argument 175 image.getRaster().setDataElements(xOffset, yOffset, width, height, in updateTextureData() 176 formatSourceData(subImageData, width, height)); in updateTextureData() 182 private byte[] formatSourceData(byte[] subImageData, int width, int height) { in formatSourceData() argument [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | NinePatchedImageTest.java | 44 int height = data.height; in testReadNoPatchedImage() local 47 assertEquals(50, height); in testReadNoPatchedImage() 60 int height = data.height; in testReadNoPatchedInteraceImage() local 63 assertEquals(50, height); in testReadNoPatchedInteraceImage() 76 int height = data.height; in testConvert9PatchedImage() local 79 assertEquals(50, height); in testConvert9PatchedImage() 87 height = data.height; in testConvert9PatchedImage() 91 assertEquals(50 + 2, height); in testConvert9PatchedImage() 110 assertEquals(new Rectangle(1, 1, width - 2, height - 2), contentsArea); in testConvert9PatchedImage() 238 assertEquals(1, rect.height); in test9Patch1() [all …]
|
D | GraphicsUtilitiesTest.java | 46 assertEquals(baseData.height + 2, result.height); in testConvertToNinePatch() 55 assertEquals(0x0, result.getPixel(x, result.height - 1) & MASK_ALPHA); in testConvertToNinePatch() 59 for (int y = 0; y < result.height; y++) { in testConvertToNinePatch() 84 for (int y = 0; y < baseData.height; y++) { in testClearImageData() 107 assertEquals(baseData.height, copiedData.height); in testCopy() 119 for (int y = 0; y < baseData.height; y++) { in testCopy() 184 GraphicsUtilities.getVerticalPixels(baseData, baseData.width, 0, baseData.height, temp); in testGetVerticalPixelsIllegalArgument() 192 .getVerticalPixels(baseData, 0, baseData.height, baseData.height, temp); in testGetVerticalPixelsIllegalArgument() 199 GraphicsUtilities.getVerticalPixels(baseData, 0, 1, baseData.height, temp); in testGetVerticalPixelsIllegalArgument() 214 GraphicsUtilities.getVerticalPixels(baseData, 0, 0, baseData.height, temp); in testGetVerticalPixels() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | BinPacker.java | 87 Rect occupy(int width, int height) { in occupy() argument 88 int index = findBest(width, height); in occupy() 93 return split(index, width, height); in occupy() 100 private int findBest(int width, int height) { in findBest() argument 112 if (rect.w >= width && rect.h >= height) { in findBest() 141 if (rect.w >= width && rect.h >= height) { in findBest() 142 if (width < height) { in findBest() 146 (rect.h - height) < bestLongDistance) { in findBest() 148 bestLongDistance = rect.h - height; in findBest() 155 (rect.h - height) < bestLongDistance) { in findBest() [all …]
|
D | SwtUtils.java | 137 int height = awtImage.getHeight(); in convertToSwt() local 142 new ImageData(width, height, 32, getAwtPaletteData(awtImage.getType())); in convertToSwt() 159 byte[] alphaData = new byte[height * width]; in convertToSwt() 160 for (int y = 0; y < height; y++) { in convertToSwt() 195 new BufferedImage(swtData.width, swtData.height, BufferedImage.TYPE_INT_ARGB); in convertToAwt() 202 for (int y = 0; y < swtData.height; y++) { in convertToAwt() 214 for (int y = 0; y < swtData.height; y++) { in convertToAwt() 267 int destHeight = (int) (scale * boundingBox.height); in drawRectangles() 277 int dy2 = dy1 + bounds.height; in drawRectangles() 287 int sy2 = sy1 + bounds.height; in drawRectangles() [all …]
|
D | ImageUtils.java | 63 for (int y = 0, height = image.getHeight(); y < height; y++) { in containsDarkPixels() 320 int height = y2 - y1; in crop() local 329 BufferedImage cropped = new BufferedImage(width, height, imageType); in crop() 331 g.drawImage(image, 0, 0, width, height, x1, y1, x2, y2, null); in crop() 465 int height = source.getHeight(); in createRectangularDropShadow() local 466 BufferedImage image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, type); in createRectangularDropShadow() 468 g.drawImage(source, 0, 0, width, height, null); in createRectangularDropShadow() 469 ImageUtils.drawRectangleShadow(image, 0, 0, width, height); in createRectangularDropShadow() 488 int x, int y, int width, int height) { in drawRectangleShadow() argument 491 drawRectangleShadow(gc, x, y, width, height); in drawRectangleShadow() [all …]
|
D | IncludeOverlay.java | 75 whole = new Rectangle(whole.x, whole.y, whole.width + 1, whole.height + 1); in paint() 81 mask.y + mask.height).toControl(); in paint() 123 tempResult.add(new Rectangle(r.x, h.y, h.x - r.x, h.height)); in subtractRectangles() 127 int hy2 = h.y + h.height; in subtractRectangles() 129 int ry2 = r.y + r.height; in subtractRectangles() 138 tempResult.add(new Rectangle(hx2, h.y, rx2 - hx2, h.height)); in subtractRectangles()
|
D | RenderPreview.java | 707 int height = getHeight(); in createErrorThumbnail() local 708 BufferedImage image = new BufferedImage(width + shadowSize, height + shadowSize, in createErrorThumbnail() 713 g.fillRect(0, 0, width, height); in createErrorThumbnail() 735 private static double getScale(int width, int height) { in getScale() argument 738 if (width > 0 && height > 0 in getScale() 739 && (width > maxWidth || height > maxHeight)) { in getScale() 740 if (width >= height) { // landscape in getScale() 743 return maxHeight / (double) height; in getScale() 853 int height = getHeight(); in paint() local 861 gc.drawRectangle(x - 1, y - 1, width + 2, height + 2); in paint() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/widgets/ |
D | ImageCanvas.java | 121 imageHeight = mImage.getBounds().height; in updateScrollBars() 124 imageHeight = client.height; in updateScrollBars() 130 mVerticalScrollBar.setThumb(Math.min(imageHeight, client.height)); in updateScrollBars() 133 int vPage = imageHeight - client.height; in updateScrollBars() 155 mVerticalScrollBar.setPageIncrement(clientArea.height); in setScrollBarPageIncrements() 172 scroll(destX, 0, 0, 0, imageBounds.width, imageBounds.height, false); in scrollHorizontally() 184 scroll(0, destY, 0, 0, imageBounds.width, imageBounds.height, false); in scrollVertically() 197 if (mFitToCanvas && rect.width > 0 && rect.height > 0) { in paintCanvas() 199 double sy = (double) client.height / (double) rect.height; in paintCanvas() 205 0, 0, rect.width, rect.height, in paintCanvas() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
D | ProtoBufUtils.java | 31 int height = glMsg.getFb().getHeight(); in getImageData() local 33 if (width * height == 0) { in getImageData() 38 byte[] uncompressed = new byte[width * height * 4]; in getImageData() 42 assert size == width * height * 4 : "Unexpected image size after decompression."; in getImageData() 50 height, in getImageData() 55 byte[] alpha = new byte[width*height]; in getImageData() 56 for (int i = 0; i < width * height; i++) { in getImageData() 61 imageData = imageData.scaledTo(imageData.width, -imageData.height); in getImageData()
|
/sdk/emulator/skins/dynamic/ |
D | layout | 10 height 480 20 height 88 55 height 91 63 height 58 93 height 58 101 height 21 109 height 21 117 height 55
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/ |
D | StretchesViewer.java | 92 return (image1.width == image2.width && image1.height == image2.height); in equalSize() 106 base.height, in updatePreview() 129 int yLen = rect.y + rect.height; in buildContentAreaPreview() 184 private synchronized void calcPaddings(int width, int height) { in calcPaddings() argument 188 mPadding.y = (canvasSize.y - height) / 2; in calcPaddings() 191 mPadding.height = height; in calcPaddings() 210 int height = Math.round(mSize.y * ratio); in paintControl() local 212 calcPaddings(width, height); in paintControl() 219 int backgroundLayerHeight = mBackgroundLayer.getImageData().height; in paintControl() 250 dest.height = (int) Math.ceil(p.dest.height * ratio); in paintControl() [all …]
|
D | ImageViewer.java | 330 int height = mNinePatchedImage.getHeight(); in mouseMove() local 341 if (posY >= height) { in mouseMove() 342 posY = height - 1; in mouseMove() 384 private synchronized void calcPaddings(int width, int height) { in calcPaddings() argument 388 mPadding.height = getZoomedPixelSize(height); in calcPaddings() 398 if (mPadding.height < canvasSize.y) { in calcPaddings() 399 mPadding.y = (canvasSize.y - mPadding.height) / 2; in calcPaddings() 476 mBufferImage = new Image(AdtPlugin.getDisplay(), pe.width, pe.height); 479 int height = mBufferImage.getBounds().height; 480 if (width != pe.width || height != pe.height) { [all …]
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/laf/ |
D | UnifiedContentBorder.java | 28 public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { in paintBorder() argument 32 g.drawLine(x, y + height - 2, x + width, y + height - 2); in paintBorder() 34 g.drawLine(x, y + height - 1, x + width, y + height - 1); in paintBorder()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/ |
D | ErrorImageComposite.java | 51 mSize = new Point(baseImage.getBounds().width, baseImage.getBounds().height); in ErrorImageComposite() 55 protected void drawCompositeImage(int width, int height) { in drawCompositeImage() argument 60 if (overlayData.width == baseData.width && overlayData.height == baseData.height) { in drawCompositeImage() 62 drawImage(overlayData, -3, mSize.y - overlayData.height + 3); in drawCompositeImage() 64 drawImage(overlayData, 0, mSize.y - overlayData.height); in drawCompositeImage()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
D | CaptureRenderer.java | 40 d.height += node.marginTop + node.marginBottom; in getPreferredSize() 55 int height = icon.getIconHeight(); in paintComponent() local 58 int y = (getHeight() - height) / 2; in paintComponent() 70 height - node.paddingBottom - node.paddingTop); in paintComponent() 81 node.marginTop + height + node.marginBottom); in paintComponent()
|
D | LayoutRenderer.java | 84 int y = (getHeight() - insets.top - insets.bottom - root.height) / 2; in paintComponent() 88 g.drawRect(root.left, root.top, root.width - 1, root.height - 1); in paintComponent() 89 g.clipRect(root.left - 1, root.top - 1, root.width + 1, root.height + 1); in paintComponent() 105 s.drawRect(node.left, node.top, node.width - 1, node.height - 1); in paintComponent() 116 g.drawRect(node.left, node.top, node.width - 1, node.height - 1); in drawChildren() 147 int yoffset = (getHeight() - insets.top - insets.bottom - root.height) / 2 + insets.top + 1; in selectChild() 163 node.top <= y && y < node.top + node.height) { in findChild() 164 if (node.width <= hit.width && node.height <= hit.height) { in findChild()
|
D | ScreenViewer.java | 250 private int height; field in ScreenViewer.LoupeViewer 296 int height = getHeight(); in paintComponent() local 299 if (width != this.width || height != this.height) { in paintComponent() 301 this.height = height; in paintComponent() 303 grid = new BufferedImage(width + zoom + 1, height + zoom + 1, in paintComponent() 319 height += zoom; in paintComponent() 322 g2.drawLine(x, 0, x, height); in paintComponent() 325 for (int y = 0; y <= height; y += zoom) { in paintComponent() 350 top = y * zoom - height / 2 + zoom / 2; in moveToPoint() 463 d.height = 30; in getPreferredSize() [all …]
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/ |
D | PsdFile.java | 45 public PsdFile(int width, int height) { in PsdFile() argument 46 mHeader = new Header(width, height); in PsdFile() 52 mMergedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); in PsdFile() 101 int height = image.getHeight(); in writeImage() local 103 final int length = width * height; in writeImage() 106 image.getData().getDataElements(0, 0, width, height, pixels); in writeImage() 152 Header(int width, int height) { in Header() argument 154 mHeight = height; in Header() 317 final int height = image.getHeight(); in Layer() local 319 final int length = width * height; in Layer() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SwtUtilsTest.java | 59 assertEquals(inImage.getHeight(), outData.height); in testImageConvertNoAlpha() 66 for (int y = 0; y < outData.height; y++) { in testImageConvertNoAlpha() 87 for (int y = 0; y < outData.height; y++) { in testImageConvertNoAlpha() 114 assertEquals(inImage.getHeight(), outData.height); in testImageConvertGlobalAlpha() 122 for (int y = 0; y < outData.height; y++) { in testImageConvertGlobalAlpha() 147 assertEquals(inImage.getHeight(), outData.height); in testImageConvertAlpha() 153 for (int y = 0; y < outData.height; y++) { in testImageConvertAlpha() 184 assertEquals(inImage.getHeight(), outData.height); in testImageConvertAlphaMultiplied() 190 for (int y = 0; y < outData.height; y++) { in testImageConvertAlphaMultiplied() 245 assertEquals(20, outData.height); in testCrop1() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/ |
D | DurationMinimap.java | 215 if (clientArea.width == 0 || clientArea.height == 0) { in initializeBackBuffer() 223 clientArea.height); in initializeBackBuffer() 270 int height = getClientArea().height; in draw() local 272 0, 0, width, height, in draw() 273 0, 0, width, height); in draw() 389 mPositionHelper.updateCallDensity(mEndCallIndex - mStartCallIndex, getClientArea().height); in setCallRangeForCurrentFrame() 534 if (y > (displayBounds.y + displayBounds.height)) { in isWithinBounds()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
D | BooleanXmlPropertyEditor.java | 50 public void paint(Property property, GC gc, int x, int y, int width, int height) in paint() argument 69 DrawUtils.drawImageCV(gc, image, x, y, height); in paint() 78 DrawUtils.drawStringCV(gc, text, x, y, width, height); in paint()
|
/sdk/templates/docs/ |
D | default.css | 77 line-height: 16px; 121 height: 24px; 137 line-height: 48px; 145 line-height: 24px; 154 line-height: 24px; 163 line-height: 24px;
|