Searched defs:ascent (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java51 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/
H A DTextLine.java243 float bmAscent = ascent(j);
357 float bmAscent = ascent(j);
686 final int previousAscent = fmi.ascent;
700 fmi.ascent = Math.min(fmi.ascent, previousAscent);
836 previousAscent = fmi.ascent;
997 * Returns the ascent of the text at start. This is used for scaling
1001 * @return the ascent of the text at start
1003 float ascent(int pos) { method in class:TextLine
1005 return mPaint.ascent();
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java534 /*package*/ static float ascent(Paint thisPaint) { method in class:Paint_Delegate
543 // Android expects negative ascent so we invert the value from Java.
589 // Android expects negative ascent so we invert the value from Java.
591 fmi.ascent = - javaMetrics.getAscent();
1310 // Android expects negative ascent so we invert the value from Java.
1312 metrics.ascent = - javaMetrics.getAscent();
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp56 jfieldID ascent; member in struct:android::JMetricsID
522 static jfloat ascent(JNIEnv* env, jobject paint) { function in class:android::PaintGlue
544 env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent));
557 int ascent = SkScalarRoundToInt(metrics.fAscent); local
564 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.ascent, ascent);
569 return descent - ascent + leading;
1156 {"ascent","!()F", (void*) PaintGlue::ascent},
1199 gFontMetrics_fieldID.ascent
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1357 * Return the distance above (negative) the baseline (ascent) based on the
1360 * @return the distance above (negative) the baseline (ascent) based on the
1363 public native float ascent(); method in class:Paint
1389 public float ascent; field in class:Paint.FontMetrics
1432 public int ascent; field in class:Paint.FontMetricsInt
1438 return "FontMetricsInt: top=" + top + " ascent=" + ascent +

Completed in 203 milliseconds