Searched refs:leading (Results 1 - 13 of 13) sorted by relevance

/frameworks/support/core-ui/java/android/support/v4/widget/
H A DAutoScrollHelper.java605 // For now, leading and trailing edges are always the same size.
622 private float constrainEdgeValue(float current, float leading) { argument
623 if (leading == 0) {
630 if (current < leading) {
633 return 1f - current / leading;
643 return current / -leading;
/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java605 // For now, leading and trailing edges are always the same size.
622 private float constrainEdgeValue(float current, float leading) { argument
623 if (leading == 0) {
630 if (current < leading) {
633 return 1f - current / leading;
643 return current / -leading;
H A DPointerLocationView.java200 + " leading=" + mTextMetrics.leading
/frameworks/base/core/java/android/widget/
H A DGridLayout.java69 * configured, grid index {@code 0} is fixed to the leading edge of the
659 private int getDefaultMargin(View c, boolean horizontal, boolean leading) { argument
666 private int getDefaultMargin(View c, boolean isAtEdge, boolean horizontal, boolean leading) { argument
667 return /*isAtEdge ? DEFAULT_CONTAINER_MARGIN :*/ getDefaultMargin(c, horizontal, leading);
670 private int getDefaultMargin(View c, LayoutParams p, boolean horizontal, boolean leading) { argument
677 boolean leading1 = (horizontal && isLayoutRtl()) ? !leading : leading;
680 return getDefaultMargin(c, isAtEdge, horizontal, leading);
683 int getMargin1(View view, boolean horizontal, boolean leading) { argument
686 (leading
691 getMargin(View view, boolean horizontal, boolean leading) argument
1664 computeMargins(boolean leading) argument
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java65 * configured, grid index {@code 0} is fixed to the leading edge of the
643 private int getDefaultMargin(View c, boolean horizontal, boolean leading) { argument
650 private int getDefaultMargin(View c, boolean isAtEdge, boolean horizontal, boolean leading) { argument
651 return /*isAtEdge ? DEFAULT_CONTAINER_MARGIN :*/ getDefaultMargin(c, horizontal, leading);
654 private int getDefaultMargin(View c, LayoutParams p, boolean horizontal, boolean leading) { argument
661 boolean leading1 = (horizontal && isLayoutRtlCompat()) ? !leading : leading;
664 return getDefaultMargin(c, isAtEdge, horizontal, leading);
667 int getMargin1(View view, boolean horizontal, boolean leading) { argument
670 (leading
679 getMargin(View view, boolean horizontal, boolean leading) argument
1555 computeMargins(boolean leading) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp59 jfieldID leading; member in struct:android::JMetricsID
444 // invalid UTF-16, unpaired leading surrogate at end of string
450 // invalid UTF-16, unpaired leading surrogate
612 env->SetFloatField(metricsObj, gFontMetrics_fieldID.leading, SkScalarToFloat(metrics.fLeading));
624 int leading = SkScalarRoundToInt(metrics.fLeading); local
632 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.leading, leading);
634 return descent - ascent + leading;
1087 gFontMetrics_fieldID.leading = GetFieldIDOrDie(env, gFontMetrics_class, "leading", "
[all...]
/frameworks/base/core/java/android/text/
H A DTextLine.java209 * @param x the leading margin position
281 * before offset, false to measure the leading edge of the character
285 * @return the signed offset from the leading margin to the requested
370 * @param x the position of the run that is closest to the leading margin
403 * @return the signed width from the start of the run to the leading edge
428 // 1) The caret marks the leading edge of a character. The character
681 final int previousLeading = fmi.leading;
695 fmi.leading = Math.max(fmi.leading, previousLeading);
707 * @param x the edge of the run closest to the leading margi
[all...]
H A DBoringLayout.java421 leading = 0;
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
H A DTestWallpaper.java226 + mTextMetrics.leading);
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java117 * large text. See effect of leading. Currently, we don't expect there to
118 * even be non-zero leading.
129 if (fmi.leading == 0) { // nothing to test
130 Log.i("TG5", "leading is 0, skipping test");
134 // So far, leading is not used, so this is the same as TG4. If we start
135 // using leading, this will fail.
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java603 fmi.leading = javaMetrics.getLeading();
1303 metrics.leading = javaMetrics.getLeading();
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1693 public float leading; field in class:Paint.FontMetrics
1745 public int leading; field in class:Paint.FontMetricsInt
1750 " leading=" + leading;
/frameworks/rs/script_api/
H A Drs_math.spec575 summary: Number of leading 0 bits
577 Returns the number of leading 0-bits in a value.

Completed in 426 milliseconds