Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DRippleComponent.java67 final float halfHeight = bounds.height() / 2.0f; in getTargetRadius() local
68 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java278 int halfHeight = sourceHeight / 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()
287 sourceHeight = halfHeight; in scale()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java105 final int halfHeight = height / 2; in calculateInSampleSize() local
110 while ((halfHeight / inSampleSize) > reqHeight in calculateInSampleSize()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java179 final int halfHeight = currentSize.getHeight() / 2; in calculateSampleSize() local
184 while ((halfHeight / inSampleSize) >= requestedSize.getHeight() in calculateSampleSize()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java494 final int halfHeight = (finalHeight + mOriginalHeight) / 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()
DAppTransition.java875 int halfHeight = mTmpRect.height() / 2; in createClipRevealAnimationLocked() local
877 int clipStartY = centerY - halfHeight - appFrame.top; in createClipRevealAnimationLocked()
883 if (appFrame.top > centerY - halfHeight) { in createClipRevealAnimationLocked()
884 translationY = (centerY - halfHeight) - appFrame.top; in createClipRevealAnimationLocked()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java581 final int halfHeight = height / 2;
583 final float distance = halfHeight + halfHeight *
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp1089 int32_t halfHeight = virtualKeyDefinition.height / 2; in configureVirtualKeys() local
1098 (virtualKeyDefinition.centerY - halfHeight) * touchScreenHeight / mSurfaceHeight + in configureVirtualKeys()
1101 (virtualKeyDefinition.centerY + halfHeight) * touchScreenHeight / mSurfaceHeight + in configureVirtualKeys()