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.java95 public static Matcher withTextSize(final float textSize) { argument
107 if (Math.abs(textSize - ourTextSize) > 1.0f) {
109 "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.cpp55 float textSize = paint.getTextSize(); local
56 float strokeWidth = fmax(textSize * kStdUnderline_Thickness, 1.0f);
58 SkScalar top = y + textSize * kStdUnderline_Offset - 0.5f * strokeWidth;
59 SkScalar bottom = y + textSize * kStdUnderline_Offset + 0.5f * strokeWidth;
63 SkScalar top = y + textSize * kStdStrikeThru_Offset - 0.5f * strokeWidth;
64 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);
545 private void calculateUsingTextSize(final float textSize) { argument
555 if (isClose(textSize, mCollapsedTextSiz
[all...]
H A DTabLayout.java1592 float textSize = mTabTextSize;
1600 textSize = mTabTextMultiLineSize;
1607 if (textSize != curTextSize || (curMaxLines >= 0 && maxLines != curMaxLines)) {
1611 if (mMode == MODE_FIXED && textSize > curTextSize && curLineCount == 1) {
1618 if (layout == null || approximateLineWidth(layout, 0, textSize)
1625 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
1801 private float approximateLineWidth(Layout layout, int line, float textSize) { argument
1802 return layout.getLineWidth(line) * (textSize / layout.getPaint().getTextSize());
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java877 float textSize, float[] x, float[] y) {
879 paint.setTextSize(textSize);
891 private void drawTextElements(Canvas canvas, float textSize, Typeface typeface, argument
894 paint.setTextSize(textSize);
876 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.cpp347 static void setTextSize(JNIEnv* env, jobject, jlong paintHandle, jfloat textSize) { argument
348 reinterpret_cast<Paint*>(paintHandle)->setTextSize(textSize);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java488 /*package*/ static void nSetTextSize(Paint thisPaint, long nativePaint, float textSize) { argument
495 if (delegate.mTextSize != textSize) {
496 delegate.mTextSize = textSize;
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1418 * @param textSize set the paint's text size in pixel units.
1420 public void setTextSize(float textSize) { argument
1421 nSetTextSize(mNativePaint, textSize);
1424 private native void nSetTextSize(long paintPtr, float textSize); argument
1615 * settings for typeface, textSize, etc. If metrics is not null, return the
1659 * typeface, textSize, etc. If metrics is not null, return the fontmetric

Completed in 462 milliseconds