Home
last modified time | relevance | path

Searched refs:getTextSize (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DTextAppearanceInfoTest.java112 assertEquals(info1.getTextSize(), TEXT_SIZE, EPSILON); in testCreateFromTextView_withSpan1()
119 assertEquals(info2.getTextSize(), 30f, EPSILON); in testCreateFromTextView_withSpan1()
126 assertEquals(info3.getTextSize(), 30f, EPSILON); in testCreateFromTextView_withSpan1()
133 assertEquals(info4.getTextSize(), 30f, EPSILON); in testCreateFromTextView_withSpan1()
140 assertEquals(info5.getTextSize(), 30f, EPSILON); in testCreateFromTextView_withSpan1()
170 assertEquals(info.getTextSize(), 30f, EPSILON); in testCreateFromTextView_withSpan2()
198 assertEquals(info1.getTextSize(), 10f, EPSILON); in testCreateFromTextView_contradictorySpans()
199 assertEquals(info1.getTextSize(), realTextPaint.getTextSize(), EPSILON); in testCreateFromTextView_contradictorySpans()
243 assertEquals(textAppearanceInfo.getTextSize(), TEXT_SIZE, EPSILON); in assertTextAppearanceInfoContentsEqual()
/frameworks/base/core/java/android/text/style/
DRelativeSizeSpan.java93 ds.setTextSize(ds.getTextSize() * mProportion); in updateDrawState()
98 ds.setTextSize(ds.getTextSize() * mProportion); in updateMeasureState()
DTextAppearanceSpan.java349 public int getTextSize() { in getTextSize() method in TextAppearanceSpan
551 + ", textSize=" + getTextSize() in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DDebugDrawable.java127 if (lineY - mDebugPaint.getTextSize() < 0) { in computeDebugYTextPosition()
129 lineY += mDebugPaint.getTextSize(); in computeDebugYTextPosition()
133 textY = (int) (textY + mDebugPaint.getTextSize()); in computeDebugYTextPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DFontSizeUtils.java54 (int) v.getTextSize()); in updateFontSizeFromStyle()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardCompatLayoutTest.java569 assertThat(primary.getTextSize()) in testPartnerResourcesAreApplied()
631 assertThat(primaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inDefaultLayout()
632 assertThat(secondaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inDefaultLayout()
646 assertThat(primaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inAlternativeLayout()
647 assertThat(secondaryButton.getTextSize()).isWithin(TOLERANCE).of(EXCEPTED_TEXT_SIZE); in test_bothButtons_areStyled_inAlternativeLayout()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontScaleConverterActivityTest.java182 description.appendText("was ").appendValue(((TextView) item).getTextSize()); in withTextSizeInRange()
192 var textSize = textView.getTextSize(); in withTextSizeInRange()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutGetOffsetForHorizontalPerfTest.java42 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize();
DStaticLayoutMultithreadPerfTest.java41 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize();
DTextViewCursorAnchorInfoPerfTest.java57 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize();
DPrecomputedTextPerfTest.java39 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize();
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DConfigurableTexts.java52 final float px = text.getTextSize(); in add()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1863 public float getTextSize() { in getTextSize() method in Paint
2595 final float oldSize = getTextSize(); in measureText()
2632 final float oldSize = getTextSize(); in measureText()
2725 final float oldSize = getTextSize(); in breakText()
2813 final float oldSize = getTextSize(); in breakText()
2854 final float oldSize = getTextSize(); in getTextWidths()
2943 final float oldSize = getTextSize(); in getTextWidths()
3037 final float oldSize = getTextSize(); in getTextRunAdvances()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerView.java122 int textSize = (int) (mAutoCompleteTextView.getTextSize() * 1.25); in updateHint()
/frameworks/base/core/java/android/view/inputmethod/
DTextAppearanceInfo.java227 builder.setTextSize(textPaint.getTextSize()) in createFromTextView()
327 public @Px float getTextSize() { in getTextSize() method in TextAppearanceInfo
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java273 final float expectedHighlightTextSize = tmpTp.getTextSize(); in testTextAppearanceInSuggestionsPopup()
331 assertEquals(expectedHighlightTextSize, tp.getTextSize(), 0f); in testTextAppearanceInSuggestionsPopup()
/frameworks/base/core/java/android/text/
DPrecomputedText.java332 return Objects.hash(mPaint.getTextSize(), mPaint.getTextScaleX(), mPaint.getTextSkewX(), in hashCode()
344 + "textSize=" + mPaint.getTextSize() in toString()
DTextLine.java1127 wp.setLetterSpacing(mAddedLetterSpacingInPx / wp.getTextSize()); // Convert to Em in getOffsetBeforeAfter()
1329 wp.setLetterSpacing(mAddedLetterSpacingInPx / wp.getTextSize()); // Convert to Em in handleText()
1904 && lp.getTextSize() == rp.getTextSize() in equalAttributes()
/frameworks/base/core/java/android/webkit/
DWebSettings.java594 public synchronized TextSize getTextSize() { in getTextSize() method in WebSettings
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java238 span.getFamily(), span.getTextStyle(), span.getTextSize(), in processTextAppearanceSpan()
267 originalSpan.getTextSize(), in clearColorSpans()
331 originalSpan.getTextSize(), in ensureColorSpanContrast()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java55 this.textSize = node.getTextSize(); in TextEntry()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DContrastColorUtilTest.java159 taSpan.getTextSize(), ColorStateList.valueOf(Color.CYAN), null); in testBuilder_ensureColorSpanContrast_worksWithComplexInput()
/frameworks/base/core/java/com/android/internal/widget/
DSubtitleView.java186 if (mTextPaint.getTextSize() != size) { in setTextSize()
/frameworks/base/core/java/android/widget/
DNumberPicker.java786 mTextSize = (int) mInputText.getTextSize(); in NumberPicker()
1758 public float getTextSize() { in getTextSize() method in NumberPicker
1759 return mSelectorWheelPaint.getTextSize(); in getTextSize()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewPrecomputedTextPerfTest.java52 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize();

12