/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 51 fmi.ascent, fmi.descent); 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 92 fmi.ascent, fmi.bottom); 97 * First line ascent is top, bottom line descent is bottom. 108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 110 fmi.ascent, fmi.descent, 111 fmi.ascent, fmi.bottom); 136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 138 fmi.ascent, fm 311 assertLineMetrics(Layout l, int line, int top, int ascent, int descent, int height) argument [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | SubscriptSpan.java | 44 tp.baselineShift -= (int) (tp.ascent() / 2); 49 tp.baselineShift -= (int) (tp.ascent() / 2);
|
H A D | SuperscriptSpan.java | 44 tp.baselineShift += (int) (tp.ascent() / 2); 49 tp.baselineShift += (int) (tp.ascent() / 2);
|
H A D | DynamicDrawableSpan.java | 84 fm.ascent = -rect.bottom; 87 fm.top = fm.ascent;
|
H A D | IconMarginSpan.java | 61 int need = ht - (v + fm.descent - fm.ascent - istartv);
|
H A D | DrawableMarginSpan.java | 67 int need = ht - (v + fm.descent - fm.ascent - istartv);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | TypefaceTest.java | 75 float ascent = 0; 81 ascent = fm.ascent; 84 assertTrue("fontMetrics", fm.ascent == ascent);
|
/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 311 * the ascent if possible, or the descent if shrinking the ascent further 339 fm.ascent = fm.ascent - size; 343 * Calculate what fraction of the nominal ascent 345 * so that we won't reduce the ascent to less than 354 sProportion = (r.top) / p.ascent(); 361 * It is safe to shrink the ascent this much. 365 fm.ascent = fm.descent - size; 369 * show all the ascent [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | LabelView.java | 161 mAscent = (int) mTextPaint.ascent(); 166 // Measure the text (beware: ascent is a negative number)
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 39 jfieldID ascent; member in struct:android::JMetricsID 269 static jfloat ascent(JNIEnv* env, jobject paint) { function in class:android::SkPaintGlue 291 env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)); 304 int ascent = SkScalarRound(metrics.fAscent); local 311 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.ascent, ascent); 316 return descent - ascent + leading; 568 {"ascent","()F", (void*) SkPaintGlue::ascent}, 599 gFontMetrics_fieldID.ascent [all...] |
/frameworks/base/core/java/android/text/ |
H A D | BoringLayout.java | 188 spacing = metrics.descent - metrics.ascent; 200 mDesc = spacing + metrics.ascent; 219 mTopPadding = metrics.top - metrics.ascent; 225 * Returns null if not boring; the width, ascent, and descent if boring. 233 * Returns null if not boring; the width, ascent, and descent in the
|
H A D | Styled.java | 303 if (fmi.ascent < minAscent) 304 minAscent = fmi.ascent; 319 fmi.ascent = minAscent;
|
H A D | Layout.java | 516 * Returns the (negative) number of extra pixels of ascent padding in the 877 * Get the ascent of the text on the specified line. 878 * The return value is negative to match the Paint.ascent() convention. 1441 float textHeight = -workPaint.ascent(); 1573 -workPaint.ascent() / bm.getHeight(); 1629 int ascent = 0, descent = 0, top = 0, bottom = 0; 1632 fm.ascent = 0; 1661 fm.ascent += workPaint.baselineShift; 1675 // text, so that we can extract the ascent and scale. 1687 -workPaint.ascent() / b [all...] |
H A D | StaticLayout.java | 331 fm.ascent += mWorkPaint.baselineShift; 341 int fmascent = fm.ascent; 380 -whichPaint.ascent() / 528 fm.ascent, fm.descent, 567 fitascent = fm.ascent; 597 bufend, bufend, fm.ascent, fm.descent, 1001 fm.ascent = above; 1016 above = fm.ascent;
|
H A D | DynamicLayout.java | 135 int asc = fm.ascent;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Paint.java | 876 * Return the distance above (negative) the baseline (ascent) based on the 879 * @return the distance above (negative) the baseline (ascent) based on the 882 public native float ascent(); method in class:Paint 908 public float ascent; field in class:Paint.FontMetrics 951 public int ascent; field in class:Paint.FontMetricsInt 957 return "FontMetricsInt: top=" + top + " ascent=" + ascent +
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PointerLocationView.java | 152 mHeaderBottom = -mTextMetrics.ascent+mTextMetrics.descent+2; 154 Log.i("foo", "Metrics: ascent=" + mTextMetrics.ascent 182 final int base = -mTextMetrics.ascent+1;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | InternalSelectionView.java | 174 rectTop + 2 - (int) mTextPaint.ascent(),
|
/frameworks/base/core/java/android/widget/ |
H A D | LinearLayout.java | 775 final int ascent = Math.max(maxAscent[INDEX_FILL], 781 maxHeight = Math.max(maxHeight, ascent + descent); 925 final int ascent = Math.max(maxAscent[INDEX_FILL], 931 maxHeight = Math.max(maxHeight, ascent + descent);
|
/frameworks/base/services/java/com/android/server/ |
H A D | LoadAverageService.java | 134 mAscent = mLoadPaint.ascent();
|
H A D | WindowManagerService.java | 10107 mTextAscent = fm.ascent; 10109 mTextHeight = fm.descent - fm.ascent;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Paint_Delegate.java | 471 /*package*/ static float ascent(Paint thisPaint) { method in class:Paint_Delegate 480 // Android expects negative ascent so we invert the value from Java. 526 // Android expects negative ascent so we invert the value from Java. 528 fmi.ascent = - javaMetrics.getAscent(); 1134 // Android expects negative ascent so we invert the value from Java. 1136 metrics.ascent = - javaMetrics.getAscent();
|