Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/tests/coretests/src/android/text/style/
H A 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
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A 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()
/aosp12/bootable/recovery/tools/image_generator/
H A DImageGenerator.java504 int textWidth = 0; in measureTextWidth() local
506 textWidth = Math.max(textWidth, lineInfo.mLineWidth); in measureTextWidth()
510 if (textWidth > mImageWidth) { in measureTextWidth()
513 + textWidth in measureTextWidth()
520 return textWidth; in measureTextWidth()
611 int textWidth = 0; in generateImage() local
618 textWidth = Math.max(textWidth, measureTextWidth(localizedTextMap.get(locale), locale)); in generateImage()
622 resize(textWidth, mImageHeight); in generateImage()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DCountDownView.java109 int textWidth = mRemainingSecondsView.getMeasuredWidth(); in startFadeOutAnimation() local
113 mRemainingSecondsView.setTranslationX(mPreviewArea.centerX() - textWidth / 2); in startFadeOutAnimation()
115 mRemainingSecondsView.setPivotX(textWidth / 2); in startFadeOutAnimation()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureFloatingTextDrawingPreview.java166 final float textWidth = mParams.getTextPaint().measureText(text); in updatePreviewPosition() local
169 final float rectWidth = textWidth + hPad * 2.0f; in updatePreviewPosition()
179 mPreviewTextX = (int)(rectX + hPad + textWidth / 2.0f); in updatePreviewPosition()
/aosp12/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactListPinnedHeaderView.java48 int textWidth = getResources().getDimensionPixelSize( in ContactListPinnedHeaderView() local
50 int widthIncludingPadding = paddingStartOffset + textWidth; in ContactListPinnedHeaderView()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DIconView.java101 float textWidth = mPaint.measureText(text); in drawText() local
102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin); in drawText()
104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f); in drawText()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DFramedTextButton.java127 float textWidth = gPaint.measureText(mText); in onDraw() local
130 int x = (int) ((w - textWidth) / 2); in onDraw()
/aosp12/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DCustomSurfaceView.java138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface() local
139 int x = mRandom.nextInt(canvas.getWidth() - textWidth); in invalidateSurface()
/aosp12/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
H A DQuaresActivity.kt302 var textWidth = canvas.width regex
305 textWidth = canvas.height
308 text, 0, text.length, paint, textWidth).build()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DPaletteListPreference.java133 final int textWidth = getTextWidth(context, maxLengthData); in initPaletteView() local
134 final float textBound = (textWidth + textPadding) / getScreenWidthPixels(context); in initPaletteView()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/
H A 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()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DMainKeyboardView.java829 final float textWidth = TypefaceUtils.getStringWidth(text, paint); in fitsTextIntoWidth() local
830 if (textWidth < width) { in fitsTextIntoWidth()
834 final float scaleX = maxTextWidth / textWidth; in fitsTextIntoWidth()
/aosp12/frameworks/base/core/java/android/text/
H A DStaticLayout.java921 final float textWidth, final TextPaint paint, final boolean moreChars) {
979 textWidth, paint, forceEllipsis);
1066 int line, float textWidth, TextPaint paint,
1069 if (textWidth <= avail && !forceEllipsis) {
/aosp12/packages/apps/Contacts/src/com/android/contacts/
H A DShortcutIntentBuilder.java444 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); in generatePhoneNumberIcon() local
445 canvas.drawText(overlay, 0, overlay.length(), (mIconSize - textWidth) / 2, mIconSize in generatePhoneNumberIcon()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyView.java588 private int squeezeButtonToTextWidth(Button button, int heightMeasureSpec, int textWidth) { in squeezeButtonToTextWidth() argument
594 button.getPaddingLeft() + button.getPaddingRight() + textWidth in squeezeButtonToTextWidth()
/aosp12/frameworks/base/core/java/android/widget/
H A DNumberPicker.java1365 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth() local
1366 if (textWidth > maxTextWidth) { in tryComputeMaxWidth()
1367 maxTextWidth = (int) textWidth; in tryComputeMaxWidth()
H A DTextView.java9307 final float textWidth = mLayout.getLineWidth(0); in compressText() local
9308 final float overflow = (textWidth + 1.0f - width) / width; in compressText()
13740 final int textWidth = textView.getWidth() - textView.getCompoundPaddingLeft() in start() local
13743 final float gap = textWidth / 3.0f; in start()
13744 mGhostStart = lineWidth - textWidth + gap; in start()
13745 mMaxScroll = mGhostStart + textWidth; in start()
13747 mFadeStop = lineWidth + textWidth / 6.0f; in start()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DFolder.java702 float textWidth = mFolderName.getPaint().measureText(mFolderName.getText().toString()); in animateOpen() local
703 float translation = (footerWidth - textWidth) / 2; in animateOpen()
/aosp12/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java873 int textWidth = (int) paint.measureText(ellipsizedText, 0, ellipsizedText.length()); in createChipBitmap() local
880 textWidth in createChipBitmap()
917 - textWidth in createChipBitmap()