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

/frameworks/support/v4/java/android/support/v4/widget/
H A DAutoScrollHelper.java606 // For now, leading and trailing edges are always the same size.
623 private float constrainEdgeValue(float current, float leading) { argument
624 if (leading == 0) {
631 if (current < leading) {
634 return 1f - current / leading;
644 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.java60 * configured, grid index {@code 0} is fixed to the leading edge of the
650 private int getDefaultMargin(View c, boolean horizontal, boolean leading) { argument
657 private int getDefaultMargin(View c, boolean isAtEdge, boolean horizontal, boolean leading) { argument
658 return /*isAtEdge ? DEFAULT_CONTAINER_MARGIN :*/ getDefaultMargin(c, horizontal, leading);
661 private int getDefaultMargin(View c, LayoutParams p, boolean horizontal, boolean leading) { argument
668 boolean leading1 = (horizontal && isLayoutRtl()) ? !leading : leading;
671 return getDefaultMargin(c, isAtEdge, horizontal, leading);
674 int getMargin1(View view, boolean horizontal, boolean leading) { argument
677 (leading
682 getMargin(View view, boolean horizontal, boolean leading) argument
1654 computeMargins(boolean leading) argument
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java59 * configured, grid index {@code 0} is fixed to the leading edge of the
637 private int getDefaultMargin(View c, boolean horizontal, boolean leading) { argument
644 private int getDefaultMargin(View c, boolean isAtEdge, boolean horizontal, boolean leading) { argument
645 return /*isAtEdge ? DEFAULT_CONTAINER_MARGIN :*/ getDefaultMargin(c, horizontal, leading);
648 private int getDefaultMargin(View c, LayoutParams p, boolean horizontal, boolean leading) { argument
655 boolean leading1 = (horizontal && isLayoutRtlCompat()) ? !leading : leading;
658 return getDefaultMargin(c, isAtEdge, horizontal, leading);
661 int getMargin1(View view, boolean horizontal, boolean leading) { argument
664 (leading
673 getMargin(View view, boolean horizontal, boolean leading) argument
1549 computeMargins(boolean leading) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp60 jfieldID leading; member in struct:android::JMetricsID
452 env->SetFloatField(metricsObj, gFontMetrics_fieldID.leading, SkScalarToFloat(metrics.fLeading));
464 int leading = SkScalarRoundToInt(metrics.fLeading); local
472 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.leading, leading);
474 return descent - ascent + leading;
805 // invalid UTF-16, unpaired leading surrogate at end of string
811 // invalid UTF-16, unpaired leading surrogate
1014 gFontMetrics_fieldID.leading = GetFieldIDOrDie(env, gFontMetrics_class, "leading", "
[all...]
/frameworks/base/core/java/android/text/
H A DTextLine.java188 * @param x the leading margin position
260 * before offset, false to measure the leading edge of the character
264 * @return the signed offset from the leading margin to the requested
349 * @param x the position of the run that is closest to the leading margin
382 * @return the signed width from the start of the run to the leading edge
407 // 1) The caret marks the leading edge of a character. The character
659 final int previousLeading = fmi.leading;
673 fmi.leading = Math.max(fmi.leading, previousLeading);
685 * @param x the edge of the run closest to the leading margi
[all...]
H A DBoringLayout.java440 leading = 0;
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
H A DTestWallpaper.java218 + mTextMetrics.leading);
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1610 public float leading; field in class:Paint.FontMetrics
1648 public int leading; field in class:Paint.FontMetricsInt
1653 " leading=" + leading;
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java122 * large text. See effect of leading. Currently, we don't expect there to
123 * even be non-zero leading.
134 if (fmi.leading == 0) { // nothing to test
135 Log.i("TG5", "leading is 0, skipping test");
139 // So far, leading is not used, so this is the same as TG4. If we start
140 // using leading, this will fail.
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java614 fmi.leading = javaMetrics.getLeading();
1320 metrics.leading = javaMetrics.getLeading();
/frameworks/rs/api/
H A Drs_math.spec561 summary: Number of leading 0 bits
563 Returns the number of leading 0-bits in a value.

Completed in 3039 milliseconds