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

/frameworks/base/core/java/com/android/internal/widget/
H A DDialogTitle.java61 final int textSize = a.getDimensionPixelSize(
63 if (textSize != 0) {
64 // textSize is already expressed in pixels
65 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.h35 ShadowText(): radius(0), len(0), textSize(0.0f), typeface(NULL) {
44 textSize = paint->getTextSize();
64 float textSize; member in struct:android::uirenderer::ShadowText
87 LTE_FLOAT(textSize) {
H A DOpenGLRenderer.cpp2992 const float textSize = paintCopy.getTextSize(); local
2993 const float strokeWidth = fmax(textSize * kStdUnderline_Thickness, 1.0f);
3007 top = y + textSize * kStdUnderline_Offset;
3015 top = y + textSize * kStdStrikeThru_Offset;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java99 int textSize = 10;
102 textSize = 9;
104 textSize = (int)(10*density);
105 if (textSize < 10) {
106 textSize = 10;
111 mLoadPaint.setTextSize(textSize);
116 mAddedPaint.setTextSize(textSize);
122 mRemovedPaint.setTextSize(textSize);
127 mShadowPaint.setTextSize(textSize);
134 mShadow2Paint.setTextSize(textSize);
[all...]
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestView.java146 boolean isItalic, boolean isBold, int dir, int textSize) {
160 paint.setTextSize(textSize);
172 drawMetricsAroundText(canvas, x, y, textWidthHB, textWidthICU, textSize, Color.RED, Color.GREEN);
195 float textWidthICU, int textSize, int color, int colorICU) {
198 canvas.drawLine(x, y - textSize, x, y + 8, paint);
200 canvas.drawLine(x + textWidthHB, y - textSize, x + textWidthHB, y + 8, paint);
202 canvas.drawLine(x + textWidthICU, y - textSize, x + textWidthICU, y + 8, paint);
145 testString(Canvas canvas, String text, int x, int y, boolean isItalic, boolean isBold, int dir, int textSize) argument
194 drawMetricsAroundText(Canvas canvas, int x, int y, float textWidthHB, float textWidthICU, int textSize, int color, int colorICU) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java269 ResourceValue textSize = res.findItemInStyle(textStyle, "textSize",
271 textSize = res.resolveResValue(textSize);
273 if (textSize != null) {
275 if (ResourceHelper.parseFloatAttribute("textSize", textSize.getValue(), out,
/frameworks/base/core/jni/android/graphics/
H A DTextLayoutCache.cpp226 dirFlags(0), typeface(NULL), textSize(0), textSkewX(0), textScaleX(0), flags(0),
236 textSize = paint->getTextSize();
252 textSize(other.textSize),
274 if (lhs.textSize < rhs.textSize) return -1;
275 if (lhs.textSize > rhs.textSize) return +1;
834 int textSize = paint->getTextSize(); local
836 mFontRec.x_ppem = floor(scaleX * textSize
[all...]
H A DTextLayoutCache.h95 SkScalar textSize; member in class:android::TextLayoutCacheKey
H A DCanvas.cpp800 float textSize = paint->getTextSize(); local
801 float strokeWidth = fmax(textSize * kStdUnderline_Thickness, 1.0f);
803 SkScalar top = SkFloatToScalar(y + textSize * kStdUnderline_Offset
805 SkScalar bottom = SkFloatToScalar(y + textSize * kStdUnderline_Offset
810 SkScalar top = SkFloatToScalar(y + textSize * kStdStrikeThru_Offset
812 SkScalar bottom = SkFloatToScalar(y + textSize * kStdStrikeThru_Offset
H A DPaint.cpp311 static void setTextSize(JNIEnv* env, jobject paint, jfloat textSize) { argument
313 GraphicsJNI::getNativePaint(env, paint)->setTextSize(SkFloatToScalar(textSize));
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTitleStrip.java67 android.R.attr.textSize,
129 final int textSize = a.getDimensionPixelSize(1, 0);
130 if (textSize != 0) {
131 setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java467 int textSize = getTextZoom();
469 int delta = Math.abs(textSize - size.value);
/frameworks/base/core/java/android/widget/
H A DSearchView.java1054 int textSize = (int) (mQueryTextView.getTextSize() * 1.25);
1055 searchIcon.setBounds(0, 0, textSize, textSize);
H A DTextView.java604 int textSize = 15;
651 textSize = appearance.getDimensionPixelSize(attr, textSize);
916 textSize = a.getDimensionPixelSize(attr, textSize);
1186 setRawTextSize(textSize);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java443 /*package*/ static void setTextSize(Paint thisPaint, float textSize) { argument
450 delegate.mTextSize = textSize;
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1126 * @param textSize set the paint's text size.
1128 public native void setTextSize(float textSize); argument
1214 * settings for typeface, textSize, etc. If metrics is not null, return the
1253 * typeface, textSize, etc. If metrics is not null, return the fontmetric

Completed in 5148 milliseconds