/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | TextSizeHelper.kt | 34 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/ |
D | StringTexture.java | 44 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()
|
D | MultiLineTexture.java | 39 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/ |
D | CaptionFragment.java | 248 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/ |
D | ButtonDropTarget.java | 450 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/ |
D | CaptionHelperTest.java | 82 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/ |
D | SubtitleView.java | 93 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/ |
D | CaptionHelper.java | 95 final float textSize = mContext.getResources().getDimension( in applyCaptionProperties() local 97 previewText.setTextSize(textSize * fontScale); in applyCaptionProperties()
|
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/ |
D | AutoResizeTextView.java | 162 float textSize = computeTextSize( in adjustTextSize() local 164 super.setTextSize(resizeStepUnit, textSize); in adjustTextSize()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumLabelMaker.java | 78 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/ |
D | DataUsageSummaryPreferenceController.java | 154 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/ |
D | DataUsageSummaryPreference.java | 173 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/ |
D | DialogUiTest.java | 267 final float textSize = paint.getTextSize(); in getInputTextHeight() local 269 return Math.round(textSize + textSpace); in getInputTextHeight()
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | DialpadView.java | 222 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/ |
D | WidgetCell.java | 634 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/ |
D | ChannelBannerView.java | 546 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/ |
D | ViewPagerTabs.java | 70 android.R.attr.textSize,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelper.java | 180 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/ |
D | ViewPagerTabs.java | 56 android.R.attr.textSize,
|