/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | ImageUtilsTest.java | 26 import java.awt.image.BufferedImage; 36 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); in testCropBlank() local 37 Graphics g = image.getGraphics(); in testCropBlank() 39 g.fillRect(0, 0, image.getWidth(), image.getHeight()); in testCropBlank() 42 BufferedImage crop = ImageUtils.cropBlank(image, null); in testCropBlank() 47 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); in testCropBlankPre() local 48 Graphics g = image.getGraphics(); in testCropBlankPre() 50 g.fillRect(0, 0, image.getWidth(), image.getHeight()); in testCropBlankPre() 53 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(5, 5, 80, 80)); in testCropBlankPre() 58 BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB_PRE); in testCropNonblank() local [all …]
|
D | SwtUtilsTest.java | 32 import java.awt.image.BufferedImage; 224 Image image = createSampleImage(256, 256); in testCropEmpty() local 225 Image result = SwtUtils.drawRectangles(image, Collections.<Rectangle> emptyList(), null, in testCropEmpty() 231 Image image = createSampleImage(256, 256); in testCrop1() local 239 SwtUtils.drawRectangles(image, items, ImageUtils.getBoundingRectangle(items), in testCrop1() 269 Image image = createSampleImage(256, 256); in testCrop2() local 278 SwtUtils.drawRectangles(image, items, ImageUtils.getBoundingRectangle(items), in testCrop2() 340 Image image = new Image(display, data); in createSampleImage() local 341 return image; in createSampleImage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | GraphicsUtilities.java | 30 public static ImageData convertToNinePatch(ImageData image) { in convertToNinePatch() argument 31 if (image == null) { in convertToNinePatch() 34 ImageData result = new ImageData(image.width + 2, image.height + 2, image.depth, in convertToNinePatch() 35 image.palette); in convertToNinePatch() 37 final int[] colors = new int[image.width]; in convertToNinePatch() 38 final byte[] alpha = new byte[image.width]; in convertToNinePatch() 40 for (int y = 0; y < image.height; y++) { in convertToNinePatch() 43 image.getPixels(0, y, image.width, colors, 0); in convertToNinePatch() 44 result.setPixels(1, y + 1, image.width, colors, 0); in convertToNinePatch() 47 image.getAlphas(0, y, image.width, alpha, 0); in convertToNinePatch() [all …]
|
D | NinePatchedImage.java | 203 private static final int getPixel(ImageData image, int x, int y) { in getPixel() argument 204 return (image.getAlpha(x, y) << 24) + image.getPixel(x, y); in getPixel() 207 private static final boolean isTransparentPixel(ImageData image, int x, int y) { in isTransparentPixel() argument 208 return image.getAlpha(x, y) == 0x0; in isTransparentPixel() 535 ImageData image = GraphicsUtilities.copy(mBaseImageData); in getRawImageData() local 537 final int width = image.width; in getRawImageData() 538 final int height = image.height; in getRawImageData() 545 image.setAlpha(x, 0, 0xFF); in getRawImageData() 546 image.setPixel(x, 0, pixel); in getRawImageData() 554 image.setAlpha(0, y, 0xFF); in getRawImageData() [all …]
|
/sdk/emulator/skins/dynamic/ |
D | layout | 18 image dpad_on.png 24 image arrow_up.png 29 image arrow_down.png 34 image arrow_left.png 39 image arrow_right.png 44 image select.png 53 image dpad_off.png 61 image hwkeys_on.png 67 image button.png 72 image button.png [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
D | NinePatchedImageTest.java | 38 NinePatchedImage image = new NinePatchedImage(getClass() in testReadNoPatchedImage() local 40 assertNotNull(image); in testReadNoPatchedImage() 42 ImageData data = image.getImageData(); in testReadNoPatchedImage() 49 assertFalse(image.hasNinePatchExtension()); in testReadNoPatchedImage() 54 NinePatchedImage image = new NinePatchedImage(getClass() in testReadNoPatchedInteraceImage() local 56 assertNotNull(image); in testReadNoPatchedInteraceImage() 58 ImageData data = image.getImageData(); in testReadNoPatchedInteraceImage() 65 assertFalse(image.hasNinePatchExtension()); in testReadNoPatchedInteraceImage() 70 NinePatchedImage image = new NinePatchedImage(getClass() in testConvert9PatchedImage() local 72 assertNotNull(image); in testConvert9PatchedImage() [all …]
|
D | GraphicsUtilitiesTest.java | 39 Image image = new Image(Display.getDefault(), in testConvertToNinePatch() local 41 ImageData baseData = image.getImageData(); in testConvertToNinePatch() 79 Image image = new Image(Display.getDefault(), in testClearImageData() local 82 ImageData baseData = image.getImageData(); in testClearImageData() 100 Image image = new Image(Display.getDefault(), in testCopy() local 103 ImageData baseData = image.getImageData(); in testCopy() 134 Image image = new Image(Display.getDefault(), in testGetVerticalPixelsIllegalArgument() local 137 ImageData baseData = image.getImageData(); in testGetVerticalPixelsIllegalArgument() 208 Image image = new Image(Display.getDefault(), in testGetVerticalPixels() local 211 ImageData baseData = image.getImageData(); in testGetVerticalPixels() [all …]
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/ |
D | IconLoader.java | 7 import java.awt.image.BufferedImage; 31 public static BufferedImage toCompatibleImage(BufferedImage image) { in toCompatibleImage() argument 33 return image; in toCompatibleImage() 36 if (image.getColorModel().equals( in toCompatibleImage() 38 return image; in toCompatibleImage() 42 image.getWidth(), image.getHeight(), image.getTransparency()); in toCompatibleImage() 44 g.drawImage(image, 0, 0, null); in toCompatibleImage()
|
D | PsdFile.java | 21 import java.awt.image.BufferedImage; 56 public void addLayer(String name, BufferedImage image, Point offset) { in addLayer() argument 57 addLayer(name, image, offset, true); in addLayer() 60 public void addLayer(String name, BufferedImage image, Point offset, boolean visible) { in addLayer() argument 61 mLayersInfo.addLayer(name, image, offset, visible); in addLayer() 62 if (visible) mGraphics.drawImage(image, null, offset.x, offset.y); in addLayer() 95 private static void writeImage(BufferedImage image, DataOutputStream out, boolean split) in writeImage() argument 100 int width = image.getWidth(); in writeImage() 101 int height = image.getHeight(); in writeImage() 106 image.getData().getDataElements(0, 0, width, height, pixels); in writeImage() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | ImageUtils.java | 43 import java.awt.image.BufferedImage; 44 import java.awt.image.DataBufferInt; 62 public static boolean containsDarkPixels(BufferedImage image) { in containsDarkPixels() argument 63 for (int y = 0, height = image.getHeight(); y < height; y++) { in containsDarkPixels() 64 for (int x = 0, width = image.getWidth(); x < width; x++) { in containsDarkPixels() 65 int pixel = image.getRGB(x, y); in containsDarkPixels() 141 @NonNull BufferedImage image, in cropBlank() 143 return cropBlank(image, initialCrop, image.getType()); in cropBlank() 159 public static BufferedImage cropBlank(BufferedImage image, Rect initialCrop, int imageType) { in cropBlank() argument 169 return crop(image, filter, initialCrop, imageType); in cropBlank() [all …]
|
D | ExportScreenshotAction.java | 28 import java.awt.image.BufferedImage; 48 BufferedImage image = imageOverlay.getAwtImage(); in run() local 49 if (image != null) { in run() 73 ImageIO.write(image, "PNG", file); //$NON-NLS-1$ in run()
|
D | SwtUtils.java | 36 import java.awt.image.BufferedImage; 37 import java.awt.image.DataBuffer; 38 import java.awt.image.DataBufferByte; 39 import java.awt.image.DataBufferInt; 40 import java.awt.image.WritableRaster; 103 private static BufferedImage convertToCompatibleFormat(BufferedImage image) { in convertToCompatibleFormat() argument 104 BufferedImage converted = new BufferedImage(image.getWidth(), image.getHeight(), in convertToCompatibleFormat() 107 graphics.drawImage(image, 0, 0, null); in convertToCompatibleFormat() 258 public static Image drawRectangles(Image image, in drawRectangles() argument 265 ImageData srcData = image.getImageData(); in drawRectangles() [all …]
|
D | PreviewIconFactory.java | 58 import java.awt.image.BufferedImage; 282 BufferedImage image = session.getImage(); in render() local 283 if (image != null && image.getWidth() > 0 && image.getHeight() > 0) { in render() 294 int p = image.getRGB(image.getWidth() - 1, image.getHeight() - 1); in render() 334 savePreview(file, image, x1, y1, x2, y2); in render() 442 BufferedImage image = RenderService.create(editor) in renderDrawableResource() local 445 if (image != null) { in renderDrawableResource() 448 int rgb = image.getRGB(image.getWidth() / 2, image.getHeight() / 2); in renderDrawableResource() 547 private void savePreview(File output, BufferedImage image, in savePreview() argument 550 BufferedImage im = ImageUtils.subImage(image, left, top, right, bottom); in savePreview()
|
D | RenderPreview.java | 89 import java.awt.image.BufferedImage; 590 BufferedImage image = session.getImage(); in renderSync() local 591 if (image != null) { in renderSync() 592 createThumbnail(image); in renderSync() 665 void createThumbnail(BufferedImage image) { in createThumbnail() argument 666 if (image == null) { in createThumbnail() 673 double scale = getWidth() / (double) image.getWidth(); in createThumbnail() 682 image = ImageUtils.scale(image, scale, scale, in createThumbnail() 685 ImageUtils.drawRectangleShadow(image, 0, 0, in createThumbnail() 686 image.getWidth() - shadowSize, in createThumbnail() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/ |
D | CreateAssetSetWizardState.java | 32 import java.awt.image.BufferedImage; 174 BufferedImage image = mImageCache != null ? mImageCache.get(path) : null; in getCachedImage() local 175 if (image == null) { in getCachedImage() 176 image = getImage(path, isPluginRelative); in getCachedImage() 180 mImageCache.put(path, image); in getCachedImage() 183 return image; in getCachedImage() 189 BufferedImage image = null; in getImage() local 191 image = GraphicGenerator.getStencilImage(path); in getImage() 199 image = GraphicGenerator.getStencilImage("user.png"); in getImage() 210 if (image == null) { in getImage() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
D | ResourcePreviewHelper.java | 44 import java.awt.image.BufferedImage; 125 BufferedImage image = null; in updatePreview() local 133 image = ImageUtils.createColoredImage(WIDTH, HEIGHT, color); in updatePreview() 152 image = ImageIO.read(file); in updatePreview() 153 int width = image.getWidth(); in updatePreview() 154 int height = image.getHeight(); in updatePreview() 159 image = ImageUtils.scale(image, scale, scale); in updatePreview() 167 if (image == null) { in updatePreview() 170 image = renderService.renderDrawable(drawable); in updatePreview() 184 if (image != null) { in updatePreview() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
D | BooleanXmlPropertyEditor.java | 56 Image image; in paint() local 58 image = mTrueImage; in paint() 60 image = mFalseImage; in paint() 62 image = mNullImage; in paint() 65 image = mUnknownImage; in paint() 69 DrawUtils.drawImageCV(gc, image, x, y, height); in paint() 72 int imageWidth = image.getBounds().width + 2; in paint()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | IconFactory.java | 267 Image image = mUrlMap.get(url); in getIcon() local 268 if (image == null) { in getIcon() 270 image = descriptor.createImage(); in getIcon() 271 mUrlMap.put(url, image); in getIcon() 274 return image; in getIcon() 286 public Image addErrorIcon(@NonNull Image image) { in addErrorIcon() argument 288 Image combined = mErrorIcons.get(image); in addErrorIcon() 296 Image combined = new ErrorImageComposite(image, false).createImage(); in addErrorIcon() 297 mErrorIcons.put(image, combined); in addErrorIcon() 311 public Image addWarningIcon(@NonNull Image image) { in addWarningIcon() argument [all …]
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
D | ScreenViewer.java | 30 import java.awt.image.BufferedImage; 57 private BufferedImage image; field in ScreenViewer 282 if (image != null) { in paintComponent() 287 g2.drawImage(image, 0, 0, null); in paintComponent() 290 g2.drawImage(overlay, 0, image.getHeight() - overlay.getHeight(), null); in paintComponent() 332 if (image != null) { in paintComponent() 334 g.clipRect(0, 0, image.getWidth() * zoom + 1, image.getHeight() * zoom + 1); in paintComponent() 342 int x = Math.max(0, Math.min((event.getX() + left) / zoom, image.getWidth() - 1)); in moveToPoint() 343 int y = Math.max(0, Math.min((event.getY() + top) / zoom, image.getHeight() - 1)); in moveToPoint() 448 int pixel = image.getRGB(x, y); in showPixel() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | ActivityMenuListener.java | 93 Image image = sharedImages.getImage(ISharedImages.IMG_OBJS_CUNIT); in show() local 94 item.setImage(image); in show() 103 Image image = sharedImages.getImage(ISharedImages.IMG_OBJS_CLASS); in show() local 109 current = addActivities(chooser, menu, current, image, preferred); in show() 131 addActivities(chooser, menu, current, image, activities); in show() 142 Image image, List<String> activities) { in addActivities() argument 147 item.setImage(image); in addActivities()
|
D | Locale.java | 122 Image image = icons.getFlag(languageCode, regionCode); in getFlagImage() local 123 if (image != null) { in getFlagImage() 124 return image; in getFlagImage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/ |
D | CommonAction.java | 43 public CommonAction(String text, ImageDescriptor image) { in CommonAction() argument 44 super(text, image); in CommonAction()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.hierarchyviewer/src/com/android/ide/eclipse/hierarchyviewer/views/ |
D | LayoutView.java | 80 Image image = imageLoader.loadImage("show-extras.png", Display.getDefault()); //$NON-NLS-1$ in createPartControl() local 81 mShowExtrasAction.setImageDescriptor(ImageDescriptor.createFromImage(image)); in createPartControl() 93 image = imageLoader.loadImage("load-all-views.png", Display.getDefault()); //$NON-NLS-1$ in createPartControl() 94 mLoadAllViewsAction.setImageDescriptor(ImageDescriptor.createFromImage(image)); in createPartControl()
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
D | CaptureLoader.java | 27 import java.awt.image.BufferedImage; 114 BufferedImage image = new BufferedImage(chunk.getWidth(), chunk.getHeight(), in readLayer() local 116 Graphics2D g = image.createGraphics(); in readLayer() 120 psd.addLayer(name, image, new Point(x, y), visible); in readLayer()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | UseCompoundDrawableRefactoring.java | 228 final Element image; in computeChanges() local 231 image = second; in computeChanges() 234 image = first; in computeChanges() 283 String src = image.getAttributeNS(ANDROID_URI, ATTR_SRC); in computeChanges() 293 if (first == image) { in computeChanges() 295 padding1 = getPadding(image, ATTR_LAYOUT_MARGIN_BOTTOM); in computeChanges() 300 padding2 = getPadding(image, ATTR_LAYOUT_MARGIN_TOP); in computeChanges() 303 if (first == image) { in computeChanges() 305 padding1 = getPadding(image, ATTR_LAYOUT_MARGIN_RIGHT); in computeChanges() 310 padding2 = getPadding(image, ATTR_LAYOUT_MARGIN_LEFT); in computeChanges()
|