Searched refs:halfCharWidth (Results 1 – 1 of 1) sorted by relevance
3583 final float halfCharWidth = (float) Math.ceil(mTextView.getPaint().measureText("a") / 2f); in testGetOffsetForPositionSingleLineLtr() local3597 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() local3665 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() local3736 - halfCharWidth); in testGetOffsetForPositionMultiLineRtl()3741 - halfCharWidth); in testGetOffsetForPositionMultiLineRtl()