Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutTest.java522 final int halfWidth = (int)(textWidth / 2.0f); in testEllipsis_singleLine() local
525 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
526 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.END, halfWidth, 1); in testEllipsis_singleLine()
532 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
533 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.START, halfWidth, 1); in testEllipsis_singleLine()
539 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
540 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MIDDLE, halfWidth, 1); in testEllipsis_singleLine()
546 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
547 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MARQUEE, halfWidth, 1); in testEllipsis_singleLine()
/cts/tests/tests/media/src/android/media/cts/
DEncodeDecodeTest.java1096 int halfWidth = width / 2; in checkFrame() local
1141 … testU = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2)) & 0xff; in checkFrame()
1142 … testV = frameData.get(off + width*height + 2*(y/2) * halfWidth + 2*(x/2) + 1) & 0xff; in checkFrame()
1146 testU = frameData.get(off + width*height + (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame()
1147 testV = frameData.get(off + width*height + halfWidth * (height / 2) + in checkFrame()
1148 (y/2) * halfWidth + (x/2)) & 0xff; in checkFrame()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java608 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRectPoint() local
612 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRectPoint()
622 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRectPoint()
662 int halfWidth = display.getWidth() / 2; in testGetGlobalVisibleRect() local
666 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetGlobalVisibleRect()
676 assertEquals(rect.left + halfWidth, rect.right); in testGetGlobalVisibleRect()
2063 int halfWidth = display.getWidth() / 2; in testGetLocalVisibleRect() local
2067 new LinearLayout.LayoutParams(halfWidth, halfHeight); in testGetLocalVisibleRect()
2078 assertEquals(halfWidth + 20, rect.right); in testGetLocalVisibleRect()