/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/ |
D | RectTest.java | 29 Rect r = new Rect(); in testRect() 37 Rect r = new Rect(1, 2, 3, 4); in testRectIntIntIntInt() 45 Rect r = new Rect(1, 2, 3, 4); in testRectRect() 46 Rect r2 = new Rect(r); in testRectRect() 53 Rect r = new Rect(1, 2, 3, 4); in testSetIntIntIntInt() 54 Rect r2 = r.set(3, 4, 20, 30); in testSetIntIntIntInt() 64 Rect r = new Rect(1, 2, 3, 4); in testSetRect() 65 Rect r2 = new Rect(3, 4, 20, 30); in testSetRect() 66 Rect r3 = r.set(r2); in testSetRect() 77 Rect r = new Rect(1, 2, 3, 4); in testCopy() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SimpleElementTest.java | 19 import com.android.ide.common.api.Rect; 61 new Rect(10, 5, 60, 40), // bounds in setUp() 62 new Rect(0, 0, 320, 480)); // parentBounds in setUp() 74 assertEquals(new Rect(10, 5, 60, 40), e.getBounds()); in testGetBounds() 78 assertEquals(new Rect(0, 0, 320, 480), e.getParentBounds()); in testGetParentBounds() 97 new Rect(10, 20, 30, 40), in testToString() 98 new Rect(0, 0, 320, 480)); in testToString() 102 new Rect(-1, -2, -3, -4), // invalid rect is ignored in testToString() 103 new Rect(-1, -2, -3, -4)); // invalid rectis ignored in testToString() 142 new Rect(10, 5, 60, 40), in testParseString() [all …]
|
/sdk/testapps/basicProjectWithAidl/src/com/android/tests/basicprojectwithaidl/ |
D | Rect.java | 6 public class Rect implements Parcelable { class 12 public static final Parcelable.Creator<Rect> CREATOR = new Parcelable.Creator<Rect>() { 13 public Rect createFromParcel(Parcel in) { 14 return new Rect(in); 17 public Rect[] newArray(int size) { 18 return new Rect[size]; 22 public Rect() { in Rect() method in Rect 25 private Rect(Parcel in) { in Rect() method in Rect
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
D | FrameLayoutRuleTest.java | 21 import com.android.ide.common.api.Rect; 26 protected void dragInto(Rect dragBounds, Point dragPoint, int insertIndex, int currentIndex, in dragInto() 29 .bounds(new Rect(0, 0, 240, 480)).add( in dragInto() 31 new Rect(0, 0, 100, 80)), in dragInto() 33 new Rect(0, 100, 100, 80)), in dragInto() 35 new Rect(0, 200, 100, 80)), in dragInto() 37 new Rect(0, 300, 100, 80))); in dragInto() 46 new Rect(0, 0, 105, 80), in testDragMiddle() 59 dragInto(new Rect(0, 0, 0, 0), new Point(30, -10), 4, -1, in testDragMiddle()
|
D | AbsoluteLayoutRuleTest.java | 23 import com.android.ide.common.api.Rect; 28 protected INode dragInto(Rect dragBounds, Point dragPoint, int insertIndex, int currentIndex, in dragInto() 31 .bounds(new Rect(0, 0, 240, 480)).add( in dragInto() 33 new Rect(0, 0, 100, 80)), in dragInto() 35 new Rect(0, 100, 100, 80)), in dragInto() 37 new Rect(0, 200, 100, 80)), in dragInto() 39 new Rect(0, 300, 100, 80))); in dragInto() 48 new Rect(0, 0, 105, 80), in testDragMiddle() 67 inserted = dragInto(new Rect(0, 0, 0, 0), new Point(30, -10), 4, -1, in testDragMiddle()
|
D | ZoomControlsRuleTest.java | 22 import com.android.ide.common.api.Rect; 33 .bounds(new Rect(0, 0, 240, 480)).add( in testDoNothing() 35 new Rect(0, 0, 100, 80)), in testDoNothing() 37 new Rect(0, 100, 100, 80)), in testDoNothing() 39 new Rect(0, 200, 100, 80)), in testDoNothing() 41 new Rect(0, 300, 100, 80))); in testDoNothing()
|
D | RelativeLayoutRuleTest.java | 24 import com.android.ide.common.api.Rect; 29 protected INode dragInto(Rect dragBounds, Point dragPoint, Point secondDragPoint, in dragInto() 32 .bounds(new Rect(0, 0, 240, 480)).add( in dragInto() 35 new Rect(70, 200, 100, 80)).set(ANDROID_URI, in dragInto() 39 new Rect(70, 280, 100, 80)).set(ANDROID_URI, "layout_below", in dragInto() 47 protected INode dragInto(Rect dragBounds, Point dragPoint, Point secondDragPoint, in dragInto()
|
D | LinearLayoutRuleTest.java | 34 import com.android.ide.common.api.Rect; 46 protected void dragIntoEmpty(Rect dragBounds) { in dragIntoEmpty() 52 "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)); in dragIntoEmpty() 104 protected INode dragInto(boolean vertical, Rect dragBounds, Point dragPoint, in dragInto() 108 "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)).set(ANDROID_URI, in dragInto() 113 new Rect(0, 0, 100, 80)), in dragInto() 115 new Rect(0, 100, 100, 80)), in dragInto() 117 new Rect(0, 200, 100, 80)), in dragInto() 119 new Rect(0, 300, 100, 80))); in dragInto() 284 dragIntoEmpty(new Rect(0, 0, 100, 80)); in testDragInEmptyWithBounds() [all …]
|
D | TestDragElement.java | 25 import com.android.ide.common.api.Rect; 34 private Rect mRect; 44 public TestDragElement(String mFqcn, Rect mRect, List<TestDragElement> mChildren, in TestDragElement() 57 public TestDragElement setBounds(Rect bounds) { in setBounds() 91 public static TestDragElement create(String fqn, Rect bounds) { in create() 120 public @NonNull Rect getBounds() { in getBounds() 139 public @NonNull Rect getParentBounds() { in getParentBounds()
|
D | BaseLayoutRuleTest.java | 24 import com.android.ide.common.api.Rect; 43 "android.widget.Button", new Rect(0, 0, 100, 80)).id("@+id/Button01"), in createSampleElements() 44 TestDragElement.create("android.widget.LinearLayout", new Rect(0, 80, 100, 280)) in createSampleElements() 47 new Rect(0, 80, 100, 80)).id("@+id/Button011"), in createSampleElements() 49 new Rect(0, 180, 100, 80)).id("@+id/Button012")), in createSampleElements() 50 TestDragElement.create("android.widget.Button", new Rect(100, 0, 100, 80)).id( in createSampleElements() 58 "android.widget.Button", new Rect(0, 0, 100, 80)).id("@+id/Button01")); in testCollectIds1() 71 "android.widget.Button", new Rect(0, 0, 100, 80)).set("myuri", ATTR_ID, in testCollectIds2()
|
D | TestGraphics.java | 24 import com.android.ide.common.api.Rect; 80 public void drawRect(@NonNull Rect r) { in drawRect() 105 public void fillRect(@NonNull Rect r) { in fillRect() 178 private static String rectToString(Rect rect) { in rectToString()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | BinPacker.java | 19 import com.android.ide.common.api.Rect; 53 private final List<Rect> mSpace = new ArrayList<Rect>(); 72 mAllocated = new ArrayList<Rect>(); in BinPacker() 79 void addSpace(Rect rect) { in addSpace() 87 Rect occupy(int width, int height) { in occupy() 110 Rect rect = mSpace.get(i); in findBest() 137 Rect rect = mSpace.get(i); in findBest() 184 Rect temp = mSpace.get(index); in removeRect() 195 private Rect split(int index, int width, int height) { in split() 196 Rect rect = mSpace.get(index); in split() [all …]
|
D | SimpleElement.java | 23 import com.android.ide.common.api.Rect; 44 private final Rect mBounds; 45 private final Rect mParentBounds; 64 public SimpleElement(String fqcn, String parentFqcn, Rect bounds, Rect parentBounds) { in SimpleElement() 67 mBounds = bounds == null ? new Rect() : bounds.copy(); in SimpleElement() 68 mParentBounds = parentBounds == null ? new Rect() : parentBounds.copy(); in SimpleElement() 86 public @NonNull Rect getBounds() { in getBounds() 105 public @NonNull Rect getParentBounds() { in getParentBounds() 240 Rect bounds = null; in parseLines() 241 Rect pbounds = null; in parseLines() [all …]
|
D | GlobalCanvasDragInfo.java | 22 import com.android.ide.common.api.Rect; 51 private Rect mDragBounds; 151 public Rect getDragBounds() { in getDragBounds() 161 public void setDragBounds(Rect dragBounds) { in setDragBounds()
|
D | ResizeGesture.java | 20 import com.android.ide.common.api.Rect; 80 Rect newBounds = getNewBounds(pos); in begin() 110 Rect newBounds = getNewBounds(pos); in update() 123 Rect newBounds = getNewBounds(pos); in end() 141 private Rect getNewBounds(ControlPoint pos) { in getNewBounds() 144 Rect b = mChildNode.getBounds(); in getNewBounds() 220 return new Rect(x, y, w, h); in getNewBounds()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/grid/ |
D | GridModelTest.java | 26 import com.android.ide.common.api.Rect; 48 .bounds(new Rect(0, 0, 240, 480)).set(ANDROID_URI, ATTR_COLUMN_COUNT, "3"); in testReadModel1() 68 .bounds(new Rect(0, 0, 240, 480)).set(ANDROID_URI, ATTR_COLUMN_COUNT, "3"); in testSplitColumn() 182 button1.bounds(new Rect(90, 10, 100, 40)); in testDeletion1() 183 textView1.bounds(new Rect(200, 10, 100, 40)); in testDeletion1() 184 wspace1.bounds(new Rect(0, 0, 90, 1)); in testDeletion1() 185 wspace1.bounds(new Rect(190, 0, 10, 1)); in testDeletion1() 186 hspace1.bounds(new Rect(0, 0, 1, 10)); in testDeletion1() 319 button1.bounds(new Rect(0, 0, 100, 40)); in testDelete2() 320 button2.bounds(new Rect(100, 0, 100, 40)); in testDelete2() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
D | GridLayoutPainter.java | 29 import com.android.ide.common.api.Rect; 62 Rect b = layout.getBounds(); in paintStructure() 84 Rect b = layout.getBounds(); in paintGrid() 133 Rect b = node.getBounds(); in paint() 154 Rect b, GridDropHandler data) { in paintFreeFormDropFeedback() 169 Rect dragBounds = first.getBounds(); in paintFreeFormDropFeedback() 186 Rect bounds = first.getBounds(); in paintFreeFormDropFeedback() 264 private void paintGridModeDropFeedback(IGraphics gc, Rect b, GridDropHandler data) { in paintGridModeDropFeedback() 292 Rect cellBounds = grid.getCellBounds(row, column, 1, 1); in paintGridModeDropFeedback() 295 Rect dragBounds = first.getBounds(); in paintGridModeDropFeedback() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | AbsoluteLayoutRule.java | 35 import com.android.ide.common.api.Rect; 86 Rect b = targetNode.getBounds(); in drawFeedback() 105 Rect be = elements[0].getBounds(); in drawFeedback() 153 final Rect b = targetNode.getBounds(); in onDropped() 172 Rect be = element.getBounds(); in onDropped() 225 Rect previousBounds, Rect newBounds, SegmentType horizontalEdge, in setNewSizeBounds() 243 Rect newBounds, SegmentType horizontalEdge, SegmentType verticalEdge) { in getResizeUpdateMessage() 244 Rect parentBounds = parent.getBounds(); in getResizeUpdateMessage()
|
D | ResizeState.java | 23 import com.android.ide.common.api.Rect; 45 public Rect bounds; 48 public Rect wrapBounds;
|
D | LinearLayoutRule.java | 51 import com.android.ide.common.api.Rect; 285 Rect bn = targetNode.getBounds(); in onDropEnter() 301 Rect bc = it.getBounds(); in onDropEnter() 368 Rect b = node.getBounds(); 409 Rect be = elements[0].getBounds(); 447 Rect bounds = element.getBounds(); 469 Rect within = new Rect(px, py, pw, ph); 482 Rect b = targetNode.getBounds(); 778 public final Map<INode, Rect> unweightedSizes; 807 for (Map.Entry<INode, Rect> entry : unweightedSizes.entrySet()) { [all …]
|
D | FrameLayoutRule.java | 38 import com.android.ide.common.api.Rect; 75 Rect b = targetNode.getBounds(); 90 Rect be = elements[0].getBounds(); 98 Rect currBounds = it.getBounds(); 135 Rect b = targetNode.getBounds();
|
D | AdapterViewRule.java | 27 import com.android.ide.common.api.Rect; 40 Rect b = node.getBounds(); in onDropEnter()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
D | ConstraintPainter.java | 40 import com.android.ide.common.api.Rect; 68 static void paintConstraint(IGraphics graphics, Rect sourceBounds, Match match) { in paintConstraint() 69 Rect targetBounds = match.edge.node.getBounds(); in paintConstraint() 97 Rect sourceBounds = sourceNode.getBounds(); in paintConstraint() 98 Rect targetBounds = targetNode.getBounds(); in paintConstraint() 127 Rect bounds = node.getBounds(); in paintSelectionFeedback() 184 Rect sourceBounds, INode targetNode, Rect targetBounds, in paintConstraint() 278 INode sourceNode, Rect sourceBounds, INode targetNode, Rect targetBounds, in paintCornerConstraint() 383 INode sourceNode, Rect sourceBounds, INode targetNode, Rect targetBounds, in paintVerticalConstraint() 611 INode sourceNode, Rect sourceBounds, INode targetNode, Rect targetBounds, in paintHorizontalConstraint() [all …]
|
D | MoveHandler.java | 36 import com.android.ide.common.api.Rect; 79 Rect bc = child.getBounds(); in MoveHandler() 114 protected void snapVertical(Segment vEdge, int x, Rect newBounds) { in snapVertical() 139 protected void snapHorizontal(Segment hEdge, int y, Rect newBounds) { in snapHorizontal() 183 Rect firstBounds = elements[0].getBounds(); in updateMove() 192 mBounds = new Rect(offsetX, offsetY, firstBounds.w, firstBounds.h); in updateMove() 193 Rect layoutBounds = layout.getBounds(); in updateMove() 209 Rect b = mBounds; in updateMove()
|
D | ResizeHandler.java | 35 import com.android.ide.common.api.Rect; 107 protected void snapVertical(Segment vEdge, int x, Rect newBounds) { in snapVertical() 130 protected void snapHorizontal(Segment hEdge, int y, Rect newBounds) { in snapHorizontal() 181 public void updateResize(DropFeedback feedback, INode child, Rect newBounds, in updateResize() 187 Rect b = newBounds; in updateResize()
|