Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 – 14 of 14) 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()
DRippleDrawable.java977 final float halfHeight = mHotspotBounds.height() / 2.0f; in computeRadius() local
978 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in computeRadius()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMockMagnificationConnection.java134 final int halfHeight = mMirrorWindowFrame.height() / 2; in computeSourceBounds() local
137 final int top = mMirrorWindowFrame.top + (halfHeight - (int) (halfHeight / mScale)); in computeSourceBounds()
138 final int bottom = mMirrorWindowFrame.bottom - (halfHeight - (int) (halfHeight / mScale)); in computeSourceBounds()
/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/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncGroupTests.java194 int halfHeight = swBitmap.getHeight() / 2; in validateScreenshot() local
197 Rect bounds = new Rect(halfWidth, halfHeight, halfWidth + 10, halfHeight + 10); in validateScreenshot()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java193 final int halfHeight = currentSize.getHeight() / 2; in calculateSampleSize() local
198 while ((halfHeight / inSampleSize) >= requestedSize.getHeight() in calculateSampleSize()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DViewHierarchyAnimator.kt893 val halfHeight = (bottom - top) / 2 in <lambda>() constant
909 Hotspot.CENTER -> (parentHeight / 2) - halfHeight in <lambda>()
912 Hotspot.TOP_RIGHT -> -halfHeight in <lambda>()
915 Hotspot.BOTTOM_LEFT -> parentHeight - halfHeight in <lambda>()
933 Hotspot.CENTER -> (parentHeight / 2) + halfHeight in <lambda>()
936 Hotspot.BOTTOM_LEFT -> parentHeight + halfHeight in <lambda>()
939 Hotspot.TOP_RIGHT -> halfHeight in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt497 val halfHeight: Int = bar.height / 2 in onDown() constant
498 val targetBoxMinX = (Math.round(thumbX) - halfHeight).toInt() in onDown()
499 val targetBoxMaxX = (Math.round(thumbX) + halfHeight).toInt() in onDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanel.kt461 val halfHeight = backgroundHeight.pos / 2 in hasOverlappingRendering() constant
478 top = -halfHeight in hasOverlappingRendering()
480 bottom = halfHeight in hasOverlappingRendering()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java1202 int halfHeight = displayFrame.height() / 2; in calculateSourceBounds() local
1205 int top = displayFrame.top + (halfHeight - (int) (halfHeight / scale)); in calculateSourceBounds()
1206 int bottom = displayFrame.bottom - (halfHeight - (int) (halfHeight / scale)); in calculateSourceBounds()
1238 final int halfHeight = mMagnificationFrame.height() / 2; in calculateMagnificationFrameBoundary() local
1242 final int scaledHeight = (int) (halfHeight / mScale); in calculateMagnificationFrameBoundary()
1259 final int exceededTop = Math.max(halfHeight - scaledHeight - mMagnificationFrameOffsetY, 0); in calculateMagnificationFrameBoundary()
1260 final int exceededBottom = Math.max(halfHeight - scaledHeight + mMagnificationFrameOffsetY, in calculateMagnificationFrameBoundary()
/frameworks/base/core/java/com/android/internal/policy/
DTransitionAnimation.java492 int halfHeight = mTmpRect.height() / 2; in createClipRevealAnimationLockedCompat() local
494 int clipStartY = centerY - halfHeight - appFrame.top; in createClipRevealAnimationLockedCompat()
500 if (appFrame.top > centerY - halfHeight) { in createClipRevealAnimationLockedCompat()
501 translationY = (centerY - halfHeight) - appFrame.top; in createClipRevealAnimationLockedCompat()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java671 final int halfHeight = height / 2;
673 final float distance = halfHeight + halfHeight *
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp1125 int32_t halfHeight = virtualKeyDefinition.height / 2; in configureVirtualKeys() local
1133 virtualKey.hitTop = (virtualKeyDefinition.centerY - halfHeight) * touchScreenHeight / in configureVirtualKeys()
1136 virtualKey.hitBottom = (virtualKeyDefinition.centerY + halfHeight) * touchScreenHeight / in configureVirtualKeys()