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/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/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.java166 final int textWidth = mHeaderText.getMeasuredWidth(); in onMeasure() local
167 int newSize = Math.max(0, textWidth - overFlow); in onMeasure()
/frameworks/base/core/java/android/text/
DStaticLayout.java879 float ellipsisWidth, float textWidth,
997 textWidth, paint, forceEllipsis);
1008 int line, float textWidth, TextPaint paint,
1010 if (textWidth <= avail && !forceEllipsis) {
/frameworks/base/core/java/android/widget/
DNumberPicker.java1314 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth() local
1315 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1316 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
DTextView.java6969 final float textWidth = mLayout.getLineWidth(0); in compressText() local
6970 final float overflow = (textWidth + 1.0f - width) / width; in compressText()
10301 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() - in start() local
10304 final float gap = textWidth / 3.0f; in start()
10305 mGhostStart = lineWidth - textWidth + gap; in start()
10306 mMaxScroll = mGhostStart + textWidth; in start()
10308 mFadeStop = lineWidth + textWidth / 6.0f; in start()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java807 int textWidth = (int) paint.measureText(ellipsizedText, 0, ellipsizedText.length()); in createChipBitmap() local
813 int width = Math.max(iconWidth * 2, textWidth + startPadding + mChipTextEndPadding in createChipBitmap()
836 width - backgroundPadding.right - mChipTextEndPadding - textWidth - in createChipBitmap()