Searched defs:textSize (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPaintTest.java51 public HintingTestCase(String text, float textSize, float[] widthWithoutHinting, argument
54 mTextSize = textSize;
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java40 final float textSize; field in class:AssistVisualizer.TextEntry
55 this.textSize = node.getTextSize();
121 + " size=" + te.textSize + " color=#" + Integer.toHexString(te.textColor)
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DTestUtilsMatchers.java102 public static Matcher withTextSize(final float textSize) { argument
114 if (Math.abs(textSize - ourTextSize) > 1.0f) {
116 "text size " + ourTextSize + " is different than expected " + textSize;
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.h37 ShadowText(): glyphCount(0), radius(0.0f), textSize(0.0f), typeface(nullptr),
46 , textSize(paint->getTextSize())
82 float textSize; member in struct:android::uirenderer::ShadowText
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp56 float textSize = paint.getTextSize(); local
57 float strokeWidth = fmax(textSize * kStdUnderline_Thickness, 1.0f);
59 SkScalar top = y + textSize * kStdUnderline_Offset - 0.5f * strokeWidth;
60 SkScalar bottom = y + textSize * kStdUnderline_Offset + 0.5f * strokeWidth;
64 SkScalar top = y + textSize * kStdStrikeThru_Offset - 0.5f * strokeWidth;
65 SkScalar bottom = y + textSize * kStdStrikeThru_Offset + 0.5f * strokeWidth;
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialTextsView.java236 float textSize, float[] textGridHeights, float[] textGridWidths) {
245 mPaint.setTextSize(textSize);
268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, argument
270 mPaint.setTextSize(textSize);
235 calculateGridSizes(float numbersRadius, float xCenter, float yCenter, float textSize, float[] textGridHeights, float[] textGridWidths) argument
/frameworks/support/design/src/android/support/design/widget/
H A 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) { argument
532 calculateUsingTextSize(textSize);
549 private void calculateUsingTextSize(final float textSize) { argument
559 if (isClose(textSize, mCollapsedTextSiz
[all...]
H A DTabLayout.java1607 float textSize = mTabTextSize;
1615 textSize = mTabTextMultiLineSize;
1622 if (textSize != curTextSize || (curMaxLines >= 0 && maxLines != curMaxLines)) {
1626 if (mMode == MODE_FIXED && textSize > curTextSize && curLineCount == 1) {
1633 if (layout == null || approximateLineWidth(layout, 0, textSize)
1640 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
1779 private float approximateLineWidth(Layout layout, int line, float textSize) { argument
1780 return layout.getLineWidth(line) * (textSize / layout.getPaint().getTextSize());
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java878 float textSize, float[] x, float[] y) {
880 paint.setTextSize(textSize);
892 private void drawTextElements(Canvas canvas, float textSize, Typeface typeface, argument
895 paint.setTextSize(textSize);
877 calculatePositions(Paint paint, float radius, float xCenter, float yCenter, float textSize, float[] x, float[] y) argument
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp902 static void setTextSize(jlong paintHandle, jfloat textSize) { argument
903 reinterpret_cast<Paint*>(paintHandle)->setTextSize(textSize);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java477 /*package*/ static void nSetTextSize(long nativePaint, float textSize) { argument
484 if (delegate.mTextSize != textSize) {
485 delegate.mTextSize = textSize;
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1407 * @param textSize set the paint's text size in pixel units.
1409 public void setTextSize(float textSize) { argument
1410 nSetTextSize(mNativePaint, textSize);
1698 * settings for typeface, textSize, etc. If metrics is not null, return the
1756 * typeface, textSize, etc. If metrics is not null, return the fontmetric
2917 private static native void nSetTextSize(long paintPtr, float textSize); argument

Completed in 3628 milliseconds