Home
last modified time | relevance | path

Searched refs:mRect (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DRectTest.java38 private Rect mRect; field in RectTest
42 mRect = new Rect(); in testConstructor()
44 mRect = new Rect(10, 10, 20, 20); in testConstructor()
46 mRect = new Rect(new Rect(10, 10, 20, 20)); in testConstructor()
51 mRect = new Rect(); in testSet1()
52 mRect.set(1, 2, 3, 4); in testSet1()
53 assertEquals(1, mRect.left); in testSet1()
54 assertEquals(2, mRect.top); in testSet1()
55 assertEquals(3, mRect.right); in testSet1()
56 assertEquals(4, mRect.bottom); in testSet1()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyViewProducerActivity.java152 private Rect mRect = new Rect(); field in PixelCopyViewProducerActivity.ColoredGrid
167 mRect.set(BORDER_WIDTH, BORDER_WIDTH, cx, cy); in onDraw()
169 canvas.drawRect(mRect, mPaint); in onDraw()
171 mRect.set(cx, BORDER_WIDTH, getWidth() - BORDER_WIDTH, cy); in onDraw()
173 canvas.drawRect(mRect, mPaint); in onDraw()
175 mRect.set(BORDER_WIDTH, cy, cx, getHeight() - BORDER_WIDTH); in onDraw()
177 canvas.drawRect(mRect, mPaint); in onDraw()
179 mRect.set(cx, cy, getWidth() - BORDER_WIDTH, getHeight() - BORDER_WIDTH); in onDraw()
181 canvas.drawRect(mRect, mPaint); in onDraw()