Searched refs:halfWidth (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutTest.java | 530 final int halfWidth = (int)(textWidth / 2.0f); in testEllipsis_singleLine() local 533 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 534 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.END, halfWidth, 1); in testEllipsis_singleLine() 540 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 541 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.START, halfWidth, 1); in testEllipsis_singleLine() 547 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 548 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MIDDLE, halfWidth, 1); in testEllipsis_singleLine() 554 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 555 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MARQUEE, halfWidth, 1); in testEllipsis_singleLine()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncodeDecodeTest.java | 1150 int halfWidth = width / 2; in checkFrame() local 1195 … testU = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2)) & 0xff; in checkFrame() 1196 … testV = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2) + 1) & 0xff; in checkFrame() 1200 testU = frameData.get(off + width*height + (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame() 1201 testV = frameData.get(off + width*height + halfWidth * (height / 2) + in checkFrame() 1202 (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 751 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRectPoint() local 755 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRectPoint() 766 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRectPoint() 808 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRect() local 812 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRect() 823 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRect() 2349 int halfWidth = display.getWidth() / 2; in testGetLocalVisibleRect() local 2353 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetLocalVisibleRect() 2365 assertEquals(halfWidth + 20, rect.right); in testGetLocalVisibleRect()
|