Home
last modified time | relevance | path

Searched refs:textWidth (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DTextProgressBar.java160 int textWidth = mChronometer.getWidth(); in onChronometerTick() local
162 adjustLeft = -textWidth; in onChronometerTick()
164 adjustLeft = -(textWidth / 2); in onChronometerTick()
169 int rightLimit = contentWidth - params.rightMargin - textWidth; in onChronometerTick()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
Dtext_test.rs61 int textWidth = right - left;
75 rsgDrawText(sampleText, xOffset + textWidth * h, yPos);
Dui_test.rs308 float textWidth = (float)(right - left);
/frameworks/base/core/java/android/text/
DStaticLayout.java517 float ellipsisWidth, float textWidth,
633 textWidth, paint, forceEllipsis);
644 int line, float textWidth, TextPaint paint,
646 if (textWidth <= avail && !forceEllipsis) {
/frameworks/base/libs/hwui/font/
DFont.cpp325 float textWidth = SkScalarToFloat(paint->measureText(text, len)); in render() local
328 textWidth *= 0.5f; in render()
331 penX += pathOffset - textWidth; in render()
/frameworks/base/core/java/android/widget/
DNumberPicker.java1299 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth() local
1300 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1301 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
DTextView.java6477 final float textWidth = mLayout.getLineWidth(0); in compressText() local
6478 final float overflow = (textWidth + 1.0f - width) / width; in compressText()
8131 final int textWidth = (mRight - mLeft) - getCompoundPaddingLeft() - in getRightFadingEdgeStrength() local
8134 return (lineWidth - textWidth) / getHorizontalFadingEdgeLength(); in getRightFadingEdgeStrength()
9407 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() - in start() local
9410 final float gap = textWidth / 3.0f; in start()
9411 mGhostStart = lineWidth - textWidth + gap; in start()
9412 mMaxScroll = mGhostStart + textWidth; in start()
9414 mFadeStop = lineWidth + textWidth / 6.0f; in start()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java655 int textWidth = (int) paint.measureText(ellipsizedText, 0, ellipsizedText.length()); in createChipBitmap() local
661 int width = Math.max(iconWidth * 2, textWidth + startPadding + mChipTextEndPadding in createChipBitmap()
684 width - backgroundPadding.right - mChipTextEndPadding - textWidth; in createChipBitmap()