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.java50 final float origLineWidth = textWidth(text); in testDoesntAffectWidth_colorUnderlineSubclass()
53 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth_colorUnderlineSubclass()
58 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/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt301 var textWidth = canvas.width in onDraw() variable
304 textWidth = canvas.height in onDraw()
307 text, 0, text.length, paint, textWidth).build() in onDraw()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java558 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local
559 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine()
593 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local
594 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine()
608 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local
614 int avail = (int) (textWidth * i / 7.0f); in testEllipsis_singleLine()
/frameworks/base/core/java/android/text/
DStaticLayout.java921 final float textWidth, final TextPaint paint, final boolean moreChars) {
979 textWidth, paint, forceEllipsis);
1063 int line, float textWidth, TextPaint paint,
1066 if (textWidth <= avail && !forceEllipsis) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java696 private int squeezeButtonToTextWidth(Button button, int heightMeasureSpec, int textWidth) { in squeezeButtonToTextWidth() argument
708 2 * mDoubleLineButtonPaddingHorizontal + textWidth in squeezeButtonToTextWidth()
/frameworks/base/core/java/android/widget/
DNumberPicker.java1364 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth() local
1365 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1366 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
DTextView.java9167 final float textWidth = mLayout.getLineWidth(0); in compressText() local
9168 final float overflow = (textWidth + 1.0f - width) / width; in compressText()
13308 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() in start() local
13311 final float gap = textWidth / 3.0f; in start()
13312 mGhostStart = lineWidth - textWidth + gap; in start()
13313 mMaxScroll = mGhostStart + textWidth; in start()
13315 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()