Searched refs:textSize (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DStringTexture.java44 public static TextPaint getDefaultPaint(float textSize, int color) { argument
46 paint.setTextSize(textSize);
54 String text, float textSize, int color) {
55 return newInstance(text, getDefaultPaint(textSize, color));
59 String text, float textSize, int color,
61 TextPaint paint = getDefaultPaint(textSize, color);
53 newInstance( String text, float textSize, int color) argument
58 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument
H A DMultiLineTexture.java39 String text, int maxWidth, float textSize, int color,
41 TextPaint paint = StringTexture.getDefaultPaint(textSize, color);
38 newInstance( String text, int maxWidth, float textSize, int color, Layout.Alignment alignment) argument
/packages/apps/DeskClock/src/com/android/deskclock/widget/
H A DTextSizeHelper.java92 float textSize = mMaxTextSize;
107 textSize = midTextSize;
113 if (mTextView.getTextSize() != textSize) {
115 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
H A DCaptionFragment.java230 final float textSize = Settings.Secure.getFloat(getContext().getContentResolver(),
233 if (0 <= textSize && textSize < .375) {
235 } else if (textSize < .75) {
237 } else if (textSize < 1.25) {
239 } else if (textSize < 1.75) {
241 } else if (textSize < 2.5) {
248 private void setCaptionsTextSize(String textSize) { argument
250 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, Float.parseFloat(textSize));
/packages/apps/Terminal/src/com/android/terminal/
H A DTerminalView.java92 public void setTextSize(float textSize) { argument
95 textPaint.setTextSize(textSize);
300 public void setTextSize(float textSize) { argument
301 mMetrics.setTextSize(textSize);
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DCalculatorFormula.java98 // Prevent shrinking/resizing with our variable textSize.
111 // Re-calculate our textSize based on new width.
114 final float textSize = getVariableTextSize(getText());
115 if (getTextSize() != textSize) {
116 setTextSizeInternal(TypedValue.COMPLEX_UNIT_PX, textSize, false /* notifyListener */);
H A DDragController.java336 final float textSize = mDisplayResult.getTextSize() * mDisplayResult.getScaleX();
337 mResultScale = textSize / result.getTextSize();
H A DCalculator.java1140 // Calculate the textSize that would be used to display the result in the formula.
1141 // For scrollable results just use the minimum textSize to maximize the number of digits
1143 float textSize = mFormulaText.getMinimumTextSize();
1145 textSize = mFormulaText.getVariableTextSize(mResultText.getText().toString());
1148 // Scale the result to match the calculated textSize, minimizing the jump-cut transition
1150 final float resultScale = textSize / mResultText.getTextSize();
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
H A DSubtitleView.java93 android.R.attr.textSize,
99 int textSize = a.getDimensionPixelSize(1, 15);
124 setTextSize(textSize);
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
H A DAutoResizeTextView.java214 float textSize = computeTextSize(
216 super.setTextSize(resizeStepUnit, textSize);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumLabelMaker.java78 private static TextPaint getTextPaint(int textSize, int color, boolean isBold) { argument
80 paint.setTextSize(textSize);
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
H A DDialpadView.java217 int textSize =
221 primaryLettersView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
222 secondaryLettersView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
/packages/apps/Settings/src/com/android/settings/datausage/
H A DDataUsageSummaryPreference.java220 final int textSize =
222 usageNumberText.setSpan(new AbsoluteSizeSpan(textSize), 0, usageNumberText.length(),
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryHistoryChart.java238 int textSize = 15; field in class:BatteryHistoryChart.TextAttrs
260 textSize = appearance.getDimensionPixelSize(attr, textSize);
283 paint.setTextSize(textSize);
434 mainTextAttrs.textSize = a.getDimensionPixelSize(attr, mainTextAttrs.textSize);
435 headTextAttrs.textSize = a.getDimensionPixelSize(attr, headTextAttrs.textSize);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DViewPagerTabs.java70 android.R.attr.textSize,
/packages/apps/Settings/src/com/android/settings/accessibility/
H A DCaptionPropertiesFragment.java223 final float textSize = context.getResources().getDimension(
225 previewText.setTextSize(textSize * fontScale);
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DViewPagerTabs.java56 android.R.attr.textSize,
/packages/apps/TV/src/com/android/tv/ui/
H A DChannelBannerView.java476 float textSize = mResources.getDimension(sizeRes);
477 if (textView.getTextSize() != textSize) {
478 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DSuggestionStripLayoutHelper.java180 private static Drawable getMoreSuggestionsHint(final Resources res, final float textSize, argument
185 paint.setTextSize(textSize);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DOpenWnnJAJP.java1663 int textSize = composingText.size(ComposingText.LAYER1);
1664 if (composingText.getCursor(ComposingText.LAYER1) == textSize) {

Completed in 4833 milliseconds