Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java3583 final float halfCharWidth = (float) Math.ceil(mTextView.getPaint().measureText("a") / 2f); in testGetOffsetForPositionSingleLineLtr() local
3597 x = mTextView.getLayout().getLineWidth(0) + paddingLeft - halfCharWidth; in testGetOffsetForPositionSingleLineLtr()
3609 x = mTextView.getLayout().getLineWidth(0) / 2f + paddingLeft - halfCharWidth; in testGetOffsetForPositionSingleLineLtr()
3643 final float halfCharWidth = (float) Math.ceil(mTextView.getPaint().measureText("a") / 2f); in testGetOffsetForPositionMultiLineLtr() local
3665 x = mTextView.getLayout().getLineWidth(1) + paddingLeft - halfCharWidth; in testGetOffsetForPositionMultiLineLtr()
3673 x = mTextView.getLayout().getLineWidth(1) / 2f + paddingLeft - halfCharWidth; in testGetOffsetForPositionMultiLineLtr()
3708 final float halfCharWidth = (float) Math.ceil( in testGetOffsetForPositionMultiLineRtl() local
3736 - halfCharWidth); in testGetOffsetForPositionMultiLineRtl()
3741 - halfCharWidth); in testGetOffsetForPositionMultiLineRtl()