/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 66 final float halfWidth = bounds.width() / 2.0f; in getTargetRadius() local 68 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 559 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local 562 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 563 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.END, halfWidth, 1); in testEllipsis_singleLine() 569 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 570 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.START, halfWidth, 1); in testEllipsis_singleLine() 576 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 577 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MIDDLE, halfWidth, 1); in testEllipsis_singleLine() 583 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 584 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MARQUEE, halfWidth, 1); in testEllipsis_singleLine() 594 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 277 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/ |
D | Utils.java | 106 final int halfWidth = width / 2; in calculateInSampleSize() local 111 && (halfWidth / inSampleSize) > reqWidth) { in calculateInSampleSize()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 180 final int halfWidth = currentSize.getWidth() / 2; in calculateSampleSize() local 185 && (halfWidth / inSampleSize) >= requestedSize.getWidth()) { in calculateSampleSize()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ScreenRotationAnimation.java | 492 final int halfWidth = (finalWidth + mOriginalWidth) / 2; in startAnimation() local 497 halfWidth, halfHeight); in startAnimation() 498 mStartExitAnimation.initialize(halfWidth, halfHeight, in startAnimation() 501 halfWidth, halfHeight); in startAnimation() 502 mFinishExitAnimation.initialize(halfWidth, halfHeight, in startAnimation()
|
D | AppTransition.java | 872 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLocked() local 874 int clipStartX = centerX - halfWidth - appFrame.left; in createClipRevealAnimationLocked() 887 if (appFrame.left > centerX - halfWidth) { in createClipRevealAnimationLocked() 888 translationX = (centerX - halfWidth) - appFrame.left; in createClipRevealAnimationLocked() 892 if (appFrame.right < centerX + halfWidth) { in createClipRevealAnimationLocked() 893 translationX = (centerX + halfWidth) - appFrame.right; in createClipRevealAnimationLocked()
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvas.cpp | 737 float halfWidth = layout.getCharAdvance(i) * 0.5f; in drawLayoutOnPath() local 738 float x = hOffset + layout.getX(i) + halfWidth; in drawLayoutOnPath() 749 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); in drawLayoutOnPath() 750 xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); in drawLayoutOnPath()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 792 final int halfWidth = width / 2; in smoothScrollTo() local 794 final float distance = halfWidth + halfWidth * in smoothScrollTo()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 3975 int32_t halfWidth = virtualKeyDefinition.width / 2; in configureVirtualKeys() local 3978 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth) in configureVirtualKeys() 3980 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth) in configureVirtualKeys()
|