Searched refs:halfWidth (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 89 final float halfWidth = bounds.width() / 2.0f; in getTargetRadius() local 91 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius() 262 final float halfWidth = mBounds.width() / 2.0f; in onHotspotBoundsChanged() local 264 final float targetRadius = (float) Math.sqrt(halfWidth * halfWidth in onHotspotBoundsChanged()
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 280 int halfWidth = sourceWidth / 2; in scale() local 282 scaled = new BufferedImage(halfWidth, halfHeight, imageType); in scale() 285 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale() 289 sourceWidth = halfWidth; in scale()
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 239 const float halfWidth = glyph->mBitmapWidth * 0.5f; in drawCachedGlyph() local 245 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); in drawCachedGlyph() 251 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, in drawCachedGlyph() 252 -tangent->fY * halfWidth + tangent->fX * vOffset); in drawCachedGlyph() 253 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset, in drawCachedGlyph() 254 tangent->fY * halfWidth + tangent->fX * vOffset); in drawCachedGlyph()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ScreenRotationAnimation.java | 493 final int halfWidth = (finalWidth + mOriginalWidth) / 2; in startAnimation() local 498 halfWidth, halfHeight); in startAnimation() 499 mStartExitAnimation.initialize(halfWidth, halfHeight, in startAnimation() 502 halfWidth, halfHeight); in startAnimation() 503 mFinishExitAnimation.initialize(halfWidth, halfHeight, in startAnimation()
|
D | AppTransition.java | 805 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLocked() local 807 int clipStartX = centerX - halfWidth - appFrame.left; in createClipRevealAnimationLocked() 820 if (appFrame.left > centerX - halfWidth) { in createClipRevealAnimationLocked() 821 translationX = (centerX - halfWidth) - appFrame.left; in createClipRevealAnimationLocked() 825 if (appFrame.right < centerX + halfWidth) { in createClipRevealAnimationLocked() 826 translationX = (centerX + halfWidth) - appFrame.right; in createClipRevealAnimationLocked()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 632 final int halfWidth = width / 2; in computeAxisDuration() local 634 final float distance = halfWidth + halfWidth in computeAxisDuration()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 785 final int halfWidth = width / 2; in smoothScrollTo() local 787 final float distance = halfWidth + halfWidth * in smoothScrollTo()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | ViewPager.java | 976 final int halfWidth = width / 2; in smoothScrollTo() local 978 final float distance = halfWidth + halfWidth in smoothScrollTo()
|
/frameworks/native/services/inputflinger/ |
D | InputReader.cpp | 3829 int32_t halfWidth = virtualKeyDefinition.width / 2; in configureVirtualKeys() local 3832 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth) in configureVirtualKeys() 3834 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth) in configureVirtualKeys()
|