Searched refs:halfHeight (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 67 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/ |
D | ImageUtils.java | 278 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/ |
D | Utils.java | 105 final int halfHeight = height / 2; in calculateInSampleSize() local 110 while ((halfHeight / inSampleSize) > reqHeight in calculateInSampleSize()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 179 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/ |
D | ScreenRotationAnimation.java | 494 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()
|
D | AppTransition.java | 875 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/ |
D | ResolverDrawerLayout.java | 581 final int halfHeight = height / 2; 583 final float distance = halfHeight + halfHeight *
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchInputMapper.cpp | 1089 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()
|