Searched refs:textWidthHB (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestView.java | 166 float textWidthHB = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0); in testString() local 171 logAdvances(text, textWidthHB, textWidthICU, advances); in testString() 172 … drawMetricsAroundText(canvas, x, y, textWidthHB, textWidthICU, textSize, Color.RED, Color.GREEN); in testString() 178 return (int) Math.ceil(textWidthHB) + TEXT_PADDING; in testString() 194 private void drawMetricsAroundText(Canvas canvas, int x, int y, float textWidthHB, in drawMetricsAroundText() argument 199 canvas.drawLine(x, y + 8, x + textWidthHB, y + 8, paint); in drawMetricsAroundText() 200 canvas.drawLine(x + textWidthHB, y - textSize, x + textWidthHB, y + 8, paint); in drawMetricsAroundText()
|