Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 – 10 of 10) 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/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java328 int halfHeight = displayFrame.height() / 2; in getSourceBounds() local
331 int top = displayFrame.top + (halfHeight - (int) (halfHeight / scale)); in getSourceBounds()
332 int bottom = displayFrame.bottom - (halfHeight - (int) (halfHeight / scale)); in getSourceBounds()
342 final int halfHeight = mMagnificationFrame.height() / 2; in setMagnificationFrameBoundary() local
346 final int scaledHeight = (int) (halfHeight / mScale); in setMagnificationFrameBoundary()
348 final int exceededHeight = halfHeight - scaledHeight; in setMagnificationFrameBoundary()
/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/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
DMirrorSurfaceActivity.java425 int halfHeight = displayFrame.height() / 2; in getSourceBounds() local
428 int top = displayFrame.top + (halfHeight - (int) (halfHeight / scale)); in getSourceBounds()
429 int bottom = displayFrame.bottom - (halfHeight - (int) (halfHeight / scale)); in getSourceBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DSeekBarViewModel.kt347 val halfHeight: Int = bar.height / 2 in onDown() constant
348 val targetBoxMinX = (Math.round(thumbX) - halfHeight).toInt() in onDown()
349 val targetBoxMaxX = (Math.round(thumbX) + halfHeight).toInt() in onDown()
/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/core/java/com/android/internal/widget/
DResolverDrawerLayout.java618 final int halfHeight = height / 2;
620 final float distance = halfHeight + halfHeight *
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java883 int halfHeight = mTmpRect.height() / 2; in createClipRevealAnimationLocked() local
885 int clipStartY = centerY - halfHeight - appFrame.top; in createClipRevealAnimationLocked()
891 if (appFrame.top > centerY - halfHeight) { in createClipRevealAnimationLocked()
892 translationY = (centerY - halfHeight) - appFrame.top; in createClipRevealAnimationLocked()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp1078 int32_t halfHeight = virtualKeyDefinition.height / 2; in configureVirtualKeys() local
1086 virtualKey.hitTop = (virtualKeyDefinition.centerY - halfHeight) * touchScreenHeight / in configureVirtualKeys()
1089 virtualKey.hitBottom = (virtualKeyDefinition.centerY + halfHeight) * touchScreenHeight / in configureVirtualKeys()