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