Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 41) sorted by relevance

12

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
DViewHierarchyScene.java230 Rectangle bounds = getBounds(); in paintBackground() local
237 g2.setPaint(new GradientPaint(bounds.x, bounds.y, in paintBackground()
238 focusGradient.getColor1(), bounds.x, bounds.x + bounds.height, in paintBackground()
242 g2.setPaint(new GradientPaint(bounds.x, bounds.y, filteredGradient.getColor1(), in paintBackground()
243 bounds.x, bounds.x + bounds.height, filteredGradient.getColor2())); in paintBackground()
246 g2.setPaint(new GradientPaint(bounds.x, bounds.y, selectedGradient.getColor1(), in paintBackground()
247 bounds.x, bounds.x + bounds.height, selectedGradient.getColor2())); in paintBackground()
249 g2.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); in paintBackground()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DFrameLayoutRuleTest.java29 .bounds(new Rect(0, 0, 240, 480)).add( in dragInto()
30 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
32 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
36 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
DZoomControlsRuleTest.java33 .bounds(new Rect(0, 0, 240, 480)).add( in testDoNothing()
34 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in testDoNothing()
36 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in testDoNothing()
38 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in testDoNothing()
40 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in testDoNothing()
DAbsoluteLayoutRuleTest.java31 .bounds(new Rect(0, 0, 240, 480)).add( in dragInto()
32 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
36 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
38 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
DRelativeLayoutRuleTest.java32 .bounds(new Rect(0, 0, 240, 480)).add( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Centered").bounds( in dragInto()
38 TestNode.create("android.widget.Button").id("@+id/Below").bounds( in dragInto()
DTestDragElement.java57 public TestDragElement setBounds(Rect bounds) { in setBounds() argument
58 this.mRect = bounds; in setBounds()
91 public static TestDragElement create(String fqn, Rect bounds) { in create() argument
92 return create(fqn).setBounds(bounds); in create()
DTestNode.java77 public TestNode bounds(Rect bounds) { in bounds() method in TestNode
78 this.mBounds = bounds; in bounds()
444 public void assignBounds(String bounds) {
445 Iterable<String> split = Splitter.on('\n').trimResults().split(bounds);
459 String[] bounds = boundsString.split(",");
460 assertEquals(boundsString, 4, bounds.length);
462 int left = Integer.parseInt(bounds[0]);
463 int top = Integer.parseInt(bounds[1]);
464 int right = Integer.parseInt(bounds[2]);
465 int bottom = Integer.parseInt(bounds[3]);
DLinearLayoutRuleTest.java52 "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)); in dragIntoEmpty()
108 "@+id/LinearLayout01").bounds(new Rect(0, 0, 240, 480)).set(ANDROID_URI, in dragInto()
112 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
114 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
116 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
118 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/grid/
DGridModelTest.java48 .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()
321 button3.bounds(new Rect(50, 40, 100, 40)); in testDelete2()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java83 Rect bounds = mGrid.layout.getBounds(); in computeMatches() local
101 if (x2 < bounds.x || y2 < bounds.y || x1 > bounds.x2() || y1 > bounds.y2()) { in computeMatches()
112 addCenterColumnMatch(bounds, x1, y1, x2, y2, columnMatches, max); in computeMatches()
126 addColumnGapMatch(bounds, x1, x2, columnMatches, max); in computeMatches()
127 addRowGapMatch(bounds, y1, y2, rowMatches, max); in computeMatches()
131 x1 = ((x1 - MARGIN_SIZE - bounds.x) / GRID_SIZE) * GRID_SIZE in computeMatches()
132 + MARGIN_SIZE + bounds.x; in computeMatches()
133 y1 = ((y1 - MARGIN_SIZE - bounds.y) / GRID_SIZE) * GRID_SIZE in computeMatches()
134 + MARGIN_SIZE + bounds.y; in computeMatches()
140 if (columnMatches.size() == 0 && x1 >= bounds.x) { in computeMatches()
[all …]
DGridLayoutPainter.java186 Rect bounds = first.getBounds(); in paintFreeFormDropFeedback() local
191 int centerX = bounds.w / 2 + offsetX + x; in paintFreeFormDropFeedback()
199 y1 = bounds.h + offsetY + y - 1; in paintFreeFormDropFeedback()
215 int centerY = bounds.h / 2 + offsetY + y; in paintFreeFormDropFeedback()
223 x1 = bounds.w + offsetX + x - 1; in paintFreeFormDropFeedback()
239 offsetX += x - bounds.x; in paintFreeFormDropFeedback()
240 offsetY += y - bounds.y; in paintFreeFormDropFeedback()
318 Rect bounds = first.getBounds(); in paintGridModeDropFeedback() local
322 x += cellBounds.w - bounds.w; in paintGridModeDropFeedback()
324 x += cellBounds.w / 2 - bounds.w / 2; in paintGridModeDropFeedback()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DNodeFactory.java71 private NodeProxy create(UiViewElementNode uiNode, Rectangle bounds) { in create() argument
76 proxy = new NodeProxy(uiNode, bounds, this); in create()
79 } else if (bounds != null && !SwtUtils.equals(proxy.getBounds(), bounds)) { in create()
81 proxy.setBounds(bounds); in create()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DLintOverlay.java89 Rectangle bounds = vi.getAbsRect(); in paint() local
90 int x = mHScale.translate(bounds.x); in paint()
91 int y = mVScale.translate(bounds.y); in paint()
92 int w = mHScale.scale(bounds.width); in paint()
93 int h = mVScale.scale(bounds.height); in paint()
DSwtUtils.java273 for (Rectangle bounds : rectangles) { in drawRectangles()
274 int dx1 = bounds.x - boundingBox.x; in drawRectangles()
275 int dy1 = bounds.y - boundingBox.y; in drawRectangles()
276 int dx2 = dx1 + bounds.width; in drawRectangles()
277 int dy2 = dy1 + bounds.height; in drawRectangles()
284 int sx1 = bounds.x; in drawRectangles()
285 int sy1 = bounds.y; in drawRectangles()
286 int sx2 = sx1 + bounds.width; in drawRectangles()
287 int sy2 = sy1 + bounds.height; in drawRectangles()
DSimpleElement.java64 public SimpleElement(String fqcn, String parentFqcn, Rect bounds, Rect parentBounds) { in SimpleElement() argument
67 mBounds = bounds == null ? new Rect() : bounds.copy(); in SimpleElement()
240 Rect bounds = null; in parseLines() local
279 bounds = r; in parseLines()
291 e = new SimpleElement(fqcn, parent, bounds, pbounds); in parseLines()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DResizeState.java45 public Rect bounds; field in ResizeState
113 return String.format(VALUE_N_DP, mRule.mRulesEngine.pxToDp(bounds.w)); in getWidthAttribute()
128 return String.format(VALUE_N_DP, mRule.mRulesEngine.pxToDp(bounds.h)); in getHeightAttribute()
DGridLayoutRule.java435 int startColumn = grid.getColumn(state.bounds.x); in paintResizeFeedback()
436 int endColumn = grid.getColumn(state.bounds.x2()); in paintResizeFeedback()
439 int startRow = grid.getRow(state.bounds.y); in paintResizeFeedback()
440 int endRow = grid.getRow(state.bounds.y2()); in paintResizeFeedback()
565 int startColumn = grid.getColumn(state.bounds.x); in computeResizeSpans()
566 int endColumn = grid.getColumn(state.bounds.x2()); in computeResizeSpans()
569 int startRow = grid.getRow(state.bounds.y); in computeResizeSpans()
570 int endRow = grid.getRow(state.bounds.y2()); in computeResizeSpans()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DTargetMenuListener.java120 Rectangle bounds = combo.getBounds(); in show() local
121 Point location = new Point(bounds.x, bounds.y + bounds.height); in show()
DLocaleMenuListener.java118 Rectangle bounds = combo.getBounds(); in show() local
119 Point location = new Point(bounds.x, bounds.y + bounds.height); in show()
DOrientationMenuAction.java88 Rectangle bounds = combo.getBounds(); in showMenu() local
89 Point location = new Point(bounds.x, bounds.y + bounds.height); in showMenu()
DActivityMenuListener.java134 Rectangle bounds = combo.getBounds(); in show() local
135 Point location = new Point(bounds.x, bounds.y + bounds.height); in show()
DDeviceMenuListener.java193 Rectangle bounds = combo.getBounds(); in show() local
194 Point location = new Point(bounds.x, bounds.y + bounds.height); in show()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DMockNodeProxy.java44 public MockNodeProxy(String fqcn, Rectangle bounds, NodeFactory factory) { in MockNodeProxy() argument
45 super(makeUiViewNode(fqcn), bounds, factory); in MockNodeProxy() local
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageUtilsTest.java251 for (Rectangle bounds : rectangles) { in drawRectangles()
252 int dx1 = bounds.x - boundingBox.x; in drawRectangles()
253 int dy1 = bounds.y - boundingBox.y; in drawRectangles()
254 int dx2 = dx1 + bounds.width; in drawRectangles()
255 int dy2 = dy1 + bounds.height; in drawRectangles()
262 int sx1 = bounds.x; in drawRectangles()
263 int sy1 = bounds.y; in drawRectangles()
264 int sx2 = sx1 + bounds.width; in drawRectangles()
265 int sy2 = sy1 + bounds.height; in drawRectangles()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DGuidelinePainter.java54 Rect bounds = dragged.getBounds(); in paint() local
55 if (bounds.isValid()) { in paint()
56 gc.fillRect(bounds); in paint()
72 Rect bounds = n.getBounds(); in paint() local
73 gc.fillRect(bounds); in paint()

12