Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/style/
DUnderlineSpanTest.java49 final float origLineWidth = textWidth(text); in testDoesntAffectWidth_colorUnderlineSubclass()
52 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth_colorUnderlineSubclass()
57 private float textWidth(CharSequence text) { in textWidth() method in UnderlineSpanTest
/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/SurfaceComposition/src/android/surfacecomposition/
DCustomSurfaceView.java138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface() local
139 int x = mRandom.nextInt(canvas.getWidth() - textWidth); in invalidateSurface()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java512 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local
513 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine()
547 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local
548 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine()
562 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local
568 int avail = (int) (textWidth * i / 7.0f); in testEllipsis_singleLine()
/frameworks/base/libs/hwui/font/
DFont.cpp318 float textWidth = SkScalarToFloat(paint->measureText(glyphs, numGlyphs * 2)); in render() local
321 textWidth *= 0.5f; in render()
324 penX += pathOffset - textWidth; in render()
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java143 final int textWidth = mHeaderText.getMeasuredWidth(); in onMeasure() local
144 int newSize = Math.max(0, textWidth - overFlow); in onMeasure()
/frameworks/base/core/java/android/text/
DStaticLayout.java910 float ellipsisWidth, float textWidth,
968 textWidth, paint, forceEllipsis);
1048 int line, float textWidth, TextPaint paint,
1051 if (textWidth <= avail && !forceEllipsis) {
/frameworks/base/core/java/android/widget/
DNumberPicker.java1325 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth() local
1326 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1327 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
DTextView.java8041 final float textWidth = mLayout.getLineWidth(0); in compressText() local
8042 final float overflow = (textWidth + 1.0f - width) / width; in compressText()
11911 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() in start() local
11914 final float gap = textWidth / 3.0f; in start()
11915 mGhostStart = lineWidth - textWidth + gap; in start()
11916 mMaxScroll = mGhostStart + textWidth; in start()
11918 mFadeStop = lineWidth + textWidth / 6.0f; in start()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java870 int textWidth = (int) paint.measureText(ellipsizedText, 0, ellipsizedText.length()); in createChipBitmap() local
877 textWidth in createChipBitmap()
914 - textWidth in createChipBitmap()