Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DLoadAverageService.java99 int textSize = 10; in LoadView() local
102 textSize = 9; in LoadView()
104 textSize = (int)(10*density); in LoadView()
105 if (textSize < 10) { in LoadView()
106 textSize = 10; in LoadView()
111 mLoadPaint.setTextSize(textSize); in LoadView()
116 mAddedPaint.setTextSize(textSize); in LoadView()
122 mRemovedPaint.setTextSize(textSize); in LoadView()
127 mShadowPaint.setTextSize(textSize); in LoadView()
134 mShadow2Paint.setTextSize(textSize); in LoadView()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DDialogTitle.java64 final int textSize = a.getDimensionPixelSize( in onMeasure() local
66 if (textSize != 0) { in onMeasure()
68 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in onMeasure()
/frameworks/base/libs/hwui/
DTextDropShadowCache.cpp35 hash = JenkinsHashMix(hash, android::hash_type(textSize)); in hash()
65 if (lhs.textSize < rhs.textSize) return -1; in compare()
66 if (lhs.textSize > rhs.textSize) return +1; in compare()
DTextDropShadowCache.h37 ShadowText(): glyphCount(0), radius(0.0f), textSize(0.0f), typeface(nullptr), in ShadowText()
46 , textSize(paint->getTextSize()) in ShadowText()
82 float textSize; member
/frameworks/base/core/java/com/android/internal/widget/
DDialogTitle.java64 final int textSize = a.getDimensionPixelSize( in onMeasure() local
66 if (textSize != 0) { in onMeasure()
68 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in onMeasure()
DSubtitleView.java97 int textSize = 15; in SubtitleView() local
114 textSize = a.getDimensionPixelSize(attr, textSize); in SubtitleView()
136 setTextSize(textSize); in SubtitleView()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java130 void setExpandedTextSize(float textSize) {
131 if (mExpandedTextSize != textSize) {
132 mExpandedTextSize = textSize;
137 void setCollapsedTextSize(float textSize) {
138 if (mCollapsedTextSize != textSize) {
139 mCollapsedTextSize = textSize;
531 private void setInterpolatedTextSize(float textSize) { in setInterpolatedTextSize() argument
532 calculateUsingTextSize(textSize); in setInterpolatedTextSize()
545 private void calculateUsingTextSize(final float textSize) { in calculateUsingTextSize() argument
555 if (isClose(textSize, mCollapsedTextSize)) { in calculateUsingTextSize()
[all …]
DTabLayout.java1587 float textSize = mTabTextSize;
1595 textSize = mTabTextMultiLineSize;
1602 if (textSize != curTextSize || (curMaxLines >= 0 && maxLines != curMaxLines)) {
1606 if (mMode == MODE_FIXED && textSize > curTextSize && curLineCount == 1) {
1613 if (layout == null || approximateLineWidth(layout, 0, textSize)
1620 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
1796 private float approximateLineWidth(Layout layout, int line, float textSize) { in approximateLineWidth() argument
1797 return layout.getLineWidth(line) * (textSize / layout.getPaint().getTextSize()); in approximateLineWidth()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomSurfaceView.java135 int textSize = canvas.getHeight() / 24; in invalidateSurface() local
137 paint.setTextSize(textSize); in invalidateSurface()
140 int y = textSize + mRandom.nextInt(canvas.getHeight() - textSize); in invalidateSurface()
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp55 float textSize = paint.getTextSize(); in drawTextDecorations() local
56 float strokeWidth = fmax(textSize * kStdUnderline_Thickness, 1.0f); in drawTextDecorations()
58 SkScalar top = y + textSize * kStdUnderline_Offset - 0.5f * strokeWidth; in drawTextDecorations()
59 SkScalar bottom = y + textSize * kStdUnderline_Offset + 0.5f * strokeWidth; in drawTextDecorations()
63 SkScalar top = y + textSize * kStdStrikeThru_Offset - 0.5f * strokeWidth; in drawTextDecorations()
64 SkScalar bottom = y + textSize * kStdStrikeThru_Offset + 0.5f * strokeWidth; in drawTextDecorations()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java193 ResourceValue textSize = res.findItemInStyle(textStyle, "textSize", in setStyle() local
195 textSize = res.resolveResValue(textSize); in setStyle()
197 if (textSize != null) { in setStyle()
199 if (ResourceHelper.parseFloatAttribute("textSize", textSize.getValue(), out, in setStyle()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerView.java122 int textSize = (int) (mAutoCompleteTextView.getTextSize() * 1.25); in updateHint() local
123 searchIcon.setBounds(0, 0, textSize, textSize); in updateHint()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialTextsView.java236 float textSize, float[] textGridHeights, float[] textGridWidths) { in calculateGridSizes() argument
245 mPaint.setTextSize(textSize); in calculateGridSizes()
268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, in drawTexts() argument
270 mPaint.setTextSize(textSize); in drawTexts()
DAmPmCirclesView.java163 int textSize = mAmPmCircleRadius * 3 / 4; in onDraw() local
164 mPaint.setTextSize(textSize); in onDraw()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java51 public HintingTestCase(String text, float textSize, float[] widthWithoutHinting, in HintingTestCase() argument
54 mTextSize = textSize; in HintingTestCase()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java40 final float textSize; field in AssistVisualizer.TextEntry
55 this.textSize = node.getTextSize(); in TextEntry()
121 + " size=" + te.textSize + " color=#" + Integer.toHexString(te.textColor) in logText()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTitleStrip.java70 android.R.attr.textSize,
134 final int textSize = a.getDimensionPixelSize(1, 0); in PagerTitleStrip() local
135 if (textSize != 0) { in PagerTitleStrip()
136 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); in PagerTitleStrip()
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtilsMatchers.java94 public static Matcher withTextSize(final float textSize) {
106 if (Math.abs(textSize - ourTextSize) > 1.0f) {
108 "text size " + ourTextSize + " is different than expected " + textSize;
/frameworks/base/core/java/android/webkit/
DWebSettings.java495 int textSize = getTextZoom(); in getTextSize() local
497 int delta = Math.abs(textSize - size.value); in getTextSize()
/frameworks/base/docs/html-intl/intl/ja/training/multiscreen/
Dscreendensities.jd62 android:textSize="20sp" /&gt;
/frameworks/base/docs/html-intl/intl/zh-cn/training/multiscreen/
Dscreendensities.jd62 android:textSize="20sp" /&gt;
/frameworks/base/docs/html-intl/intl/ru/training/multiscreen/
Dscreendensities.jd62 android:textSize="20sp" /&gt;
/frameworks/base/docs/html-intl/intl/ko/training/multiscreen/
Dscreendensities.jd62 android:textSize="20sp" /&gt;
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java877 float textSize, float[] x, float[] y) { in calculatePositions() argument
879 paint.setTextSize(textSize); in calculatePositions()
891 private void drawTextElements(Canvas canvas, float textSize, Typeface typeface, in drawTextElements() argument
894 paint.setTextSize(textSize); in drawTextElements()
/frameworks/base/docs/html/training/wearables/ui/
Dcards.jd163 android:textSize="20sp"/>
170 android:textSize="14sp"/>

123