Searched refs:halfWidth (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/ |
D | ASurfaceControlTest.java | 704 int halfWidth = DEFAULT_LAYOUT_WIDTH / 2; in testSurfaceTransaction_setSourceRect() 706 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect() 708 } else if (x >= halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect() 710 } else if (x < halfWidth && y >= halfHeight) { in testSurfaceTransaction_setSourceRect() 737 int halfWidth = DEFAULT_LAYOUT_WIDTH / 2; in testSurfaceTransaction_setSourceRect_smallCentered() 739 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_smallCentered() 741 } else if (x >= halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_smallCentered() 743 } else if (x < halfWidth && y >= halfHeight) { in testSurfaceTransaction_setSourceRect_smallCentered() 797 int halfWidth = DEFAULT_LAYOUT_WIDTH / 2; in testSurfaceTransaction_setSourceRect_extraLarge() 799 if (x < halfWidth && y < halfHeight) { in testSurfaceTransaction_setSourceRect_extraLarge() [all …]
|
D | ViewTest.java | 1001 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRectPoint() local 1005 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRectPoint() 1011 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRectPoint() 1044 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRect() local 1048 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRect() 1054 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRect() 2840 int halfWidth = display.getWidth() / 2; in testGetLocalVisibleRect() local 2844 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetLocalVisibleRect() 2853 assertEquals(halfWidth + 20, rect.right); in testGetLocalVisibleRect()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | PathClippingTests.java | 232 int halfWidth = width / 2; in testWebViewClipWithCircle() local 236 canvas.clipRect(0, 0, halfWidth, height); in testWebViewClipWithCircle() 242 canvas.clipRect(halfWidth, 0, width, height); in testWebViewClipWithCircle()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncodeDecodeTest.java | 1192 int halfWidth = width / 2; in checkFrame() local 1237 … testU = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2)) & 0xff; in checkFrame() 1238 … testV = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2) + 1) & 0xff; in checkFrame() 1242 testU = frameData.get(off + width*height + (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame() 1243 testV = frameData.get(off + width*height + halfWidth * (height / 2) + in checkFrame() 1244 (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame()
|