Home
last modified time | relevance | path

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

/packages/apps/Terminal/src/com/android/terminal/
DTerminalLineView.java70 final int x = col * m.charWidth; in onDraw()
71 final int xEnd = x + (m.run.colSize * m.charWidth); in onDraw()
75 canvas.clipRect(0, 0, m.run.colSize * m.charWidth, m.charHeight); in onDraw()
87 canvas.translate(mTerm.getCursorCol() * m.charWidth, 0); in onDraw()
88 canvas.drawRect(0, 0, m.charWidth, m.charHeight, m.cursorPaint); in onDraw()
DTerminalView.java79 int charWidth; field in TerminalView.TerminalMetrics
103 charWidth = (int) Math.ceil(widths[0]); in setTextSize()
108 pos[i * 2] = i * charWidth; in setTextSize()
254 final int cols = w / mMetrics.charWidth; in onSizeChanged()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java181 final float charWidth = widths[offset - offsetStart]; in extractFromTextViewInternal() local
191 left = secondary - charWidth; in extractFromTextViewInternal()
195 right = primary + charWidth; in extractFromTextViewInternal()
200 right = secondary + charWidth; in extractFromTextViewInternal()
202 left = primary - charWidth; in extractFromTextViewInternal()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorResult.java244 float charWidth; in initPositions() local
249 charWidth = mCharWidth; in initPositions()
251 mCurrentPos = mMinPos = (int) Math.round(initPrecOffset * charWidth); in initPositions()
258 mMaxCharOffset = (int) Math.round(mMaxPos/charWidth); in initPositions()
263 mMinPos -= charWidth; // Allow for future minus sign. in initPositions()
316 mMaxPos = Math.min((int) Math.round(mMaxCharOffset * charWidth), MAX_RIGHT_SCROLL); in initPositions()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/cc/
DCaptionWindowLayout.java435 float charWidth = paint.measureText(ch); in updateWidestChar() local
436 if (widestCharWidth < charWidth) { in updateWidestChar()
437 widestCharWidth = charWidth; in updateWidestChar()