Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadTextView.java36 private Rect textBounds = new Rect(); field in DialpadTextView
54 canvas.drawText(textStr, -textBounds.left, -textBounds.top, paint); in draw()
65 getPaint().getTextBounds(textStr, 0, textStr.length(), textBounds); in onMeasure()
67 int width = resolveSize(textBounds.width(), widthMeasureSpec); in onMeasure()
68 int height = resolveSize(textBounds.height(), heightMeasureSpec); in onMeasure()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DListDocumentHolder.java146 Rect textBounds = new Rect(); in inDragRegion() local
148 mTitle.getText().toString(), 0, mTitle.getText().length(), textBounds); in inDragRegion() local
153 coords[0] + mIconLayout.getWidth() + textBounds.width(), in inDragRegion()
154 coords[1] + Math.max(mIconLayout.getHeight(), textBounds.height())); in inDragRegion()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAutoCompleteView.java107 final Rect textBounds = new Rect(0, 0, 0, 0); in ContactRecipientAutoCompleteView() local
109 paint.getTextBounds(TEXT_HEIGHT_SAMPLE, 0, TEXT_HEIGHT_SAMPLE.length(), textBounds); in ContactRecipientAutoCompleteView()
110 mTextHeight = textBounds.height(); in ContactRecipientAutoCompleteView()