/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
IncludeOverlayTest.java | 18 import org.eclipse.swt.graphics.Rectangle; 31 checkSubtract(new Rectangle(0, 0, 100, 80), Collections.<Rectangle> emptyList()); 33 checkSubtract(new Rectangle(0, 0, 100, 80), Arrays.asList(new Rectangle(50, 50, 20, 20))); 35 checkSubtract(new Rectangle(0, 0, 100, 80), Arrays.asList(new Rectangle(50, 50, 20, 20), 36 new Rectangle(90, 90, 10, 10))); 38 checkSubtract(new Rectangle(0, 0, 100, 80), Arrays.asList(new Rectangle(50, 50, 20, 20) [all...] |
CanvasViewInfoTest.java | 29 import org.eclipse.swt.graphics.Rectangle; 91 assertEquals(new Rectangle(10, 10, 89, 89), rootView.getAbsRect()); 92 assertEquals(new Rectangle(10, 10, 89, 89), rootView.getSelectionRect()); 101 assertEquals(new Rectangle(10, 10, 49, 19), childView1.getAbsRect()); 102 assertEquals(new Rectangle(10, 10, 49, 19), childView1.getSelectionRect()); 107 assertEquals(new Rectangle(10, 30, 69, 4), childView2.getAbsRect()); 108 assertEquals(new Rectangle(10, 30, 69, 5), childView2.getSelectionRect()); 137 assertEquals(new Rectangle(10, 10, 89, 89), rootView.getAbsRect()); 138 assertEquals(new Rectangle(10, 10, 89, 89), rootView.getSelectionRect()); 146 assertEquals(new Rectangle(10, 30, 69, 4), includedView.getAbsRect()) [all...] |
ImageUtilsTest.java | 21 import org.eclipse.swt.graphics.Rectangle; 200 assertEquals(null, ImageUtils.getBoundingRectangle(Collections.<Rectangle> emptyList())); 202 assertEquals(new Rectangle(1, 2, 3, 4), ImageUtils.getBoundingRectangle(Arrays 203 .asList(new Rectangle(1, 2, 3, 4)))); 204 assertEquals(new Rectangle(1, 2, 3, 4), ImageUtils.getBoundingRectangle(Arrays 205 .asList(new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 1, 1)))); 206 assertEquals(new Rectangle(5, 5, 25, 25), ImageUtils.getBoundingRectangle(Arrays.asList( 207 new Rectangle(10, 10, 20, 20), new Rectangle(5, 5, 1, 1)))) [all...] |
SwtUtilsTest.java | 26 import org.eclipse.swt.graphics.Rectangle; 204 Rectangle r2 = new Rectangle(3, 4, 20, 30); 214 Rectangle r = new Rectangle(3, 4, 20, 30); 225 Image result = SwtUtils.drawRectangles(image, Collections.<Rectangle> emptyList(), null, 236 List<Rectangle> items = new ArrayList<Rectangle>(); 237 items.add(new Rectangle(30, 60, 20, 20)); 274 List<Rectangle> items = new ArrayList<Rectangle>() [all...] |
/external/clang/test/FixIt/ |
typo.c | 5 // RUN: grep "Rectangle" %t 10 struct Rectangle { 18 struct Rectangle bounds; // expected-note{{'bounds' declared here}} 24 topleft.x = 3.14, // expected-error{{field designator 'topleft' does not refer to any field in type 'struct Rectangle'; did you mean 'top_left'?}} 29 Rectangle r1; // expected-error{{must use 'struct' tag to refer to type 'Rectangle'}} 32 typedef struct Rectangle Rectangle; // expected-note{{'Rectangle' declared here}} 33 rectangle *r2 = &r1; // expected-error{{ unknown type name 'rectangle'; did you mean 'Rectangle'?} [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
IncludeOverlay.java | 25 import org.eclipse.swt.graphics.Rectangle; 55 List<Rectangle> includedBounds = viewHierarchy.getIncludedBounds(); 74 Rectangle whole = root.getAbsRect(); 75 whole = new Rectangle(whole.x, whole.y, whole.width + 1, whole.height + 1); 76 Collection<Rectangle> masks = subtractRectangles(whole, includedBounds); 78 for (Rectangle mask : masks) { 94 * Given a Rectangle, remove holes from it (specified as a collection of Rectangles) such 97 * @param rectangle the rectangle to subtract from 98 * @param holes the holes to subtract from the rectangle [all...] |
SelectionItem.java | 25 import org.eclipse.swt.graphics.Rectangle; 42 /** Current selection border rectangle. Null when mCanvasViewInfo is null . */ 43 private final Rectangle mRect; 69 Rectangle r = canvasViewInfo.getSelectionRect(); 70 mRect = new Rectangle(r.x, r.y, r.width, r.height); 105 * Returns the selection border rectangle. Cannot be null. 107 * @return the selection border rectangle, never null 109 public Rectangle getRect() {
|
EmptyViewsOverlay.java | 22 import org.eclipse.swt.graphics.Rectangle; 83 Rectangle r = info.getAbsRect();
|
/sdk/assetstudio/src/com/android/assetstudiolib/ |
MenuIconGenerator.java | 26 import java.awt.Rectangle; 39 Rectangle imageSizeHdpi = new Rectangle(0, 0, 72, 72); 40 Rectangle targetRectHdpi = new Rectangle(12, 12, 48, 48); 42 Rectangle imageRect = Util.scaleRectangle(imageSizeHdpi, scaleFactor); 43 Rectangle targetRect = Util.scaleRectangle(targetRectHdpi, scaleFactor);
|
ActionBarIconGenerator.java | 24 import java.awt.Rectangle; 38 Rectangle iconSizeHdpi = new Rectangle(0, 0, 48, 48); 39 Rectangle targetRectHdpi = new Rectangle(6, 6, 36, 36); 41 Rectangle imageRect = Util.scaleRectangle(iconSizeHdpi, scaleFactor); 42 Rectangle targetRect = Util.scaleRectangle(targetRectHdpi, scaleFactor);
|
NotificationIconGenerator.java | 25 import java.awt.Rectangle; 39 Rectangle iconSizeHdpi; 40 Rectangle targetRectHdpi; 43 iconSizeHdpi = new Rectangle(0, 0, 38, 38); 44 targetRectHdpi = new Rectangle(6, 6, 26, 26); 46 iconSizeHdpi = new Rectangle(0, 0, 48, 48); 47 targetRectHdpi = new Rectangle(6, 6, 36, 36); 50 iconSizeHdpi = new Rectangle(0, 0, 24, 38); 51 targetRectHdpi = new Rectangle(0, 7, 24, 24); 55 Rectangle imageRect = Util.scaleRectangle(iconSizeHdpi, scaleFactor) [all...] |
LauncherIconGenerator.java | 22 import java.awt.Rectangle; 31 private static final Rectangle IMAGE_SIZE_HDPI = new Rectangle(0, 0, 72, 72); 44 private static final Rectangle TARGET_RECT_HDPI = new Rectangle(3, 3, 66, 66); 69 Rectangle imageRect = Util.scaleRectangle(IMAGE_SIZE_HDPI, scaleFactor); 70 Rectangle targetRect = Util.scaleRectangle(TARGET_RECT_HDPI, scaleFactor);
|
TabIconGenerator.java | 25 import java.awt.Rectangle; 40 Rectangle iconSizeHdpi = new Rectangle(0, 0, 48, 48); 41 Rectangle targetRectHdpi = new Rectangle(3, 3, 42, 42); 43 Rectangle imageRect = Util.scaleRectangle(iconSizeHdpi, scaleFactor); 44 Rectangle targetRect = Util.scaleRectangle(targetRectHdpi, scaleFactor);
|
/system/media/mca/filterfw/java/android/filterfw/geometry/ |
Rectangle.java | 26 public class Rectangle extends Quad { 28 public Rectangle() { 31 public Rectangle(float x, float y, float width, float height) { 38 public Rectangle(Point origin, Point size) { 45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { 50 return new Rectangle(p0.rotatedAround(center, rotation), 56 private Rectangle(Point p0, Point p1, Point p2, Point p3) { 60 public static Rectangle fromCenterVerticalAxis(Point center, Point vAxis, Point size) { 63 return new Rectangle(center.minus(dx).minus(dy), 82 public Rectangle scaled(float s) [all...] |
/external/webkit/Source/WebCore/rendering/style/ |
StyleDashboardRegion.h | 44 Rectangle
|
/sdk/ninepatch/src/com/android/ninepatch/ |
NinePatchChunk.java | 20 import java.awt.Rectangle; 49 private List<Rectangle> mFixed; 50 private List<Rectangle> mPatches; 51 private List<Rectangle> mHorizontalPatches; 52 private List<Rectangle> mVerticalPatches; 154 Rectangle r; 244 for (Rectangle rect : mFixed) { 266 for (Rectangle rect : mHorizontalPatches) { 274 for (Rectangle rect : mPatches) { 285 for (Rectangle rect : mVerticalPatches) [all...] |
/sdk/draw9patch/src/com/android/draw9patch/ui/ |
GradientPanel.java | 24 import java.awt.Rectangle; 38 Rectangle clip = g2.getClipBounds();
|
ImageEditorPanel.java | 48 import java.awt.Rectangle; 88 private List<Rectangle> patches; 89 private List<Rectangle> horizontalPatches; 90 private List<Rectangle> verticalPatches; 91 private List<Rectangle> fixed; 450 for (Rectangle rect : fixed) { 477 for (Rectangle rect : horizontalPatches) { 485 for (Rectangle rect : patches) { 496 for (Rectangle rect : verticalPatches) { 504 for (Rectangle rect : patches) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
MockNodeProxy.java | 22 import org.eclipse.swt.graphics.Rectangle; 40 * to the model. We never store a null bounds rectangle in the node, a null rectangle 41 * will be converted to an invalid rectangle. 44 public MockNodeProxy(String fqcn, Rectangle bounds, NodeFactory factory) {
|
/external/junit/src/junit/awtui/ |
ProgressBar.java | 6 import java.awt.Rectangle; 33 Rectangle r= getBounds(); 45 Rectangle r= new Rectangle(0, 0, fProgressX, getBounds().height);
|
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/ |
ShellSizeAndPos.java | 23 import org.eclipse.swt.graphics.Rectangle;
56 Rectangle r = new Rectangle(px, py, sy, sy);
61 Rectangle area = monitor.getClientArea();
71 Rectangle i = area.intersection(r);
82 Rectangle area = bestMatch.getClientArea();
|
/frameworks/base/opengl/tests/hwc/ |
hwcCommit.cpp | 165 class Rectangle { 167 Rectangle(uint32_t graphicFormat = defaultFormat, 278 uint32_t numOverlays(list<Rectangle>& rectList); 347 list<Rectangle> rectList; 454 Rectangle rect(format->format, startDim); 634 // each rectangle adjust one pixel to the right and one pixel down. 645 list<Rectangle> rectList; 653 Rectangle rect(format, startDim, startDim); 678 list<Rectangle> rectList; 679 Rectangle rect(format, startDim) [all...] |
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/util/ |
DrawableViewNode.java | 66 public static class Rectangle { 69 public Rectangle() { 73 public Rectangle(Rectangle other) { 80 public Rectangle(double x, double y, double width, double height) { 111 public Rectangle bounds = new Rectangle();
|
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/models/ |
TreeViewModel.java | 23 import com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Rectangle; 38 private Rectangle mViewport; 81 public void setViewport(Rectangle viewport) { 130 public Rectangle getViewport() {
|
/sdk/ddms/app/src/com/android/ddms/ |
DropdownSelectionListener.java | 26 import org.eclipse.swt.graphics.Rectangle; 70 Rectangle rect = item.getBounds();
|