Home
last modified time | relevance | path

Searched refs:textSize (Results 1 – 19 of 19) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextSizeHelper.kt34 private val mMaxTextSize: Float = mTextView.textSize
82 var textSize = mMaxTextSize in adjustTextSize() variable
91 mMeasurePaint.textSize = midTextSize in adjustTextSize()
98 textSize = midTextSize in adjustTextSize()
104 if (mTextView.textSize != textSize) { in adjustTextSize()
106 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize) in adjustTextSize()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java44 public static TextPaint getDefaultPaint(float textSize, int color) { in getDefaultPaint() argument
46 paint.setTextSize(textSize); in getDefaultPaint()
54 String text, float textSize, int color) { in newInstance() argument
55 return newInstance(text, getDefaultPaint(textSize, color)); in newInstance()
59 String text, float textSize, int color, in newInstance() argument
61 TextPaint paint = getDefaultPaint(textSize, color); in newInstance()
DMultiLineTexture.java39 String text, int maxWidth, float textSize, int color, in newInstance() argument
41 TextPaint paint = StringTexture.getDefaultPaint(textSize, color); in newInstance()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionFragment.java248 final float textSize = Settings.Secure.getFloat(getContext().getContentResolver(), in getCaptionsTextSize() local
251 if (0 <= textSize && textSize < .375) { in getCaptionsTextSize()
253 } else if (textSize < .75) { in getCaptionsTextSize()
255 } else if (textSize < 1.25) { in getCaptionsTextSize()
257 } else if (textSize < 1.75) { in getCaptionsTextSize()
259 } else if (textSize < 2.5) { in getCaptionsTextSize()
266 private void setCaptionsTextSize(String textSize) { in setCaptionsTextSize() argument
268 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, Float.parseFloat(textSize)); in setCaptionsTextSize()
/packages/apps/Launcher3/src/com/android/launcher3/
DButtonDropTarget.java450 float textSize = Utilities.pxToSp(getTextSize()); in resizeTextToFit() local
456 textSize -= step; in resizeTextToFit()
457 if (textSize < minSize) { in resizeTextToFit()
458 textSize = minSize; in resizeTextToFit()
459 setTextSize(textSize); in resizeTextToFit()
462 setTextSize(textSize); in resizeTextToFit()
464 return textSize; in resizeTextToFit()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DCaptionHelperTest.java82 final float textSize = CaptionHelper.LINE_HEIGHT_RATIO * windowSize * fontScale; in applyCaptionProperties_verifyAction() local
86 verify(mSubtitleView).setTextSize(textSize); in applyCaptionProperties_verifyAction()
94 final float textSize = mContext.getResources().getDimension( in applyCaptionProperties_withoutPreviewWindow_verifyAction() local
100 verify(mSubtitleView).setTextSize(textSize); in applyCaptionProperties_withoutPreviewWindow_verifyAction()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java93 android.R.attr.textSize, in SubtitleView()
99 int textSize = a.getDimensionPixelSize(1, 15); in SubtitleView() local
124 setTextSize(textSize); in SubtitleView()
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionHelper.java95 final float textSize = mContext.getResources().getDimension( in applyCaptionProperties() local
97 previewText.setTextSize(textSize * fontScale); in applyCaptionProperties()
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java162 float textSize = computeTextSize( in adjustTextSize() local
164 super.setTextSize(resizeStepUnit, textSize); in adjustTextSize()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumLabelMaker.java78 private static TextPaint getTextPaint(int textSize, int color, boolean isBold) { in getTextPaint() argument
80 paint.setTextSize(textSize); in getTextPaint()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java154 int textSize = getContext().getResources().getDimensionPixelSize( in getUsageText() local
158 usageNumberText.setSpan(new AbsoluteSizeSpan(textSize), /* start= */ 0, in getUsageText()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java173 final int textSize = in updateDataUsageLabels() local
175 usageNumberText.setSpan(new AbsoluteSizeSpan(textSize), 0, usageNumberText.length(), in updateDataUsageLabels()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java267 final float textSize = paint.getTextSize(); in getInputTextHeight() local
269 return Math.round(textSize + textSpace); in getInputTextHeight()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadView.java222 int textSize = in setupKeypad() local
226 primaryLettersView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in setupKeypad()
227 secondaryLettersView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in setupKeypad()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java634 Rect textSize = new Rect();
635 mWidgetAddButton.getPaint().getTextBounds(addText, 0, addText.length(), textSize);
644 int textButtonWidth = textSize.width() + startPadding + endPadding + drawableWidth
/packages/apps/TV/src/com/android/tv/ui/
DChannelBannerView.java546 float textSize = mResources.getDimension(sizeRes);
547 if (textView.getTextSize() != textSize) {
548 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java70 android.R.attr.textSize,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java180 private static Drawable getMoreSuggestionsHint(final Resources res, final float textSize, in getMoreSuggestionsHint() argument
185 paint.setTextSize(textSize); in getMoreSuggestionsHint()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java56 android.R.attr.textSize,