Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DRippleComponent.java73 final float halfWidth = bounds.width() / 2.0f; in getTargetRadius() local
75 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java557 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local
560 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
561 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.END, halfWidth, 1); in testEllipsis_singleLine()
567 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
568 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.START, halfWidth, 1); in testEllipsis_singleLine()
574 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
575 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MIDDLE, halfWidth, 1); in testEllipsis_singleLine()
581 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
582 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MARQUEE, halfWidth, 1); in testEllipsis_singleLine()
592 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java277 int halfWidth = sourceWidth / 2; in scale() local
279 scaled = new BufferedImage(halfWidth, halfHeight, imageType); in scale()
282 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale()
286 sourceWidth = halfWidth; in scale()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java106 final int halfWidth = width / 2; in calculateInSampleSize() local
111 && (halfWidth / inSampleSize) > reqWidth) { in calculateInSampleSize()
/frameworks/base/libs/hwui/font/
DFont.cpp237 const float halfWidth = glyph->mBitmapWidth * 0.5f; in drawCachedGlyph() local
243 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); in drawCachedGlyph()
249 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, in drawCachedGlyph()
250 -tangent->fY * halfWidth + tangent->fX * vOffset); in drawCachedGlyph()
251 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset, in drawCachedGlyph()
252 tangent->fY * halfWidth + tangent->fX * vOffset); in drawCachedGlyph()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java482 final int halfWidth = (finalWidth + mOriginalWidth) / 2; in startAnimation() local
487 halfWidth, halfHeight); in startAnimation()
488 mStartExitAnimation.initialize(halfWidth, halfHeight, in startAnimation()
491 halfWidth, halfHeight); in startAnimation()
492 mFinishExitAnimation.initialize(halfWidth, halfHeight, in startAnimation()
DAppTransition.java813 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLocked() local
815 int clipStartX = centerX - halfWidth - appFrame.left; in createClipRevealAnimationLocked()
828 if (appFrame.left > centerX - halfWidth) { in createClipRevealAnimationLocked()
829 translationX = (centerX - halfWidth) - appFrame.left; in createClipRevealAnimationLocked()
833 if (appFrame.right < centerX + halfWidth) { in createClipRevealAnimationLocked()
834 translationX = (centerX + halfWidth) - appFrame.right; in createClipRevealAnimationLocked()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp782 float halfWidth = layout.getCharAdvance(i) * 0.5f; in drawLayoutOnPath() local
783 float x = hOffset + layout.getX(i) + halfWidth; in drawLayoutOnPath()
794 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); in drawLayoutOnPath()
795 xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); in drawLayoutOnPath()
/frameworks/support/customview/src/main/java/androidx/customview/widget/
DViewDragHelper.java643 final int halfWidth = width / 2; in computeAxisDuration() local
645 final float distance = halfWidth + halfWidth in computeAxisDuration()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java786 final int halfWidth = width / 2; in smoothScrollTo() local
788 final float distance = halfWidth + halfWidth * in smoothScrollTo()
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
DViewPager.java984 final int halfWidth = width / 2; in smoothScrollTo() local
986 final float distance = halfWidth + halfWidth in smoothScrollTo()