/frameworks/av/media/libstagefright/renderfright/gl/ |
D | GLSkiaShadowPort.cpp | 245 float halfWidth = 0.5f * bounds.getWidth(); in fillInCircleVerts() local 249 position[vertexCount] = center + vec2(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 254 position[vertexCount] = center + vec2(octOffset * halfWidth, -halfWidth); in fillInCircleVerts() 259 position[vertexCount] = center + vec2(halfWidth, -octOffset * halfWidth); in fillInCircleVerts() 264 position[vertexCount] = center + vec2(halfWidth, octOffset * halfWidth); in fillInCircleVerts() 269 position[vertexCount] = center + vec2(octOffset * halfWidth, halfWidth); in fillInCircleVerts() 274 position[vertexCount] = center + vec2(-octOffset * halfWidth, halfWidth); in fillInCircleVerts() 279 position[vertexCount] = center + vec2(-halfWidth, octOffset * halfWidth); in fillInCircleVerts() 284 position[vertexCount] = center + vec2(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 66 final float halfWidth = bounds.width() / 2.0f; in getTargetRadius() local 68 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius()
|
D | RippleDrawable.java | 976 final float halfWidth = mHotspotBounds.width() / 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/ |
D | MockMagnificationConnection.java | 133 final int halfWidth = mMirrorWindowFrame.width() / 2; in computeSourceBounds() local 135 final int left = mMirrorWindowFrame.left + (halfWidth - (int) (halfWidth / mScale)); in computeSourceBounds() 136 final int right = mMirrorWindowFrame.right - (halfWidth - (int) (halfWidth / mScale)); in computeSourceBounds()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 559 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local 562 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 563 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.END, halfWidth, 1); in testEllipsis_singleLine() 569 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 570 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.START, halfWidth, 1); in testEllipsis_singleLine() 576 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 577 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MIDDLE, halfWidth, 1); in testEllipsis_singleLine() 583 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine() 584 SPACE_MULTI, SPACE_ADD, false, TextUtils.TruncateAt.MARQUEE, halfWidth, 1); in testEllipsis_singleLine() 594 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | Utils.java | 106 final int halfWidth = width / 2; in calculateInSampleSize() local 111 && (halfWidth / inSampleSize) > reqWidth) { in calculateInSampleSize()
|
/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/ |
D | MirrorSurfaceActivity.java | 424 int halfWidth = displayFrame.width() / 2; in getSourceBounds() local 426 int left = displayFrame.left + (halfWidth - (int) (halfWidth / scale)); in getSourceBounds() 427 int right = displayFrame.right - (halfWidth - (int) (halfWidth / scale)); in getSourceBounds()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceSyncGroupTests.java | 193 int halfWidth = swBitmap.getWidth() / 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/ |
D | ImageUtils.java | 194 final int halfWidth = currentSize.getWidth() / 2; in calculateSampleSize() local 199 && (halfWidth / inSampleSize) >= requestedSize.getWidth()) { in calculateSampleSize()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | SplashScreenExitAnimationUtils.java | 143 final int halfWidth = splashScreenView.getWidth() / 2; in createRadialVanishSlideUpAnimator() local 145 Math.sqrt(finalVerticalLength * finalVerticalLength + halfWidth * halfWidth))); in createRadialVanishSlideUpAnimator() 150 radialVanishAnimation.setCircleCenter(halfWidth, verticalCircleCenter); in createRadialVanishSlideUpAnimator()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | ViewHierarchyAnimator.kt | 892 val halfWidth = (right - left) / 2 in <lambda>() constant 897 Hotspot.CENTER -> (parentWidth / 2) - halfWidth in <lambda>() 900 Hotspot.TOP_LEFT -> -halfWidth in <lambda>() 903 Hotspot.BOTTOM_RIGHT -> parentWidth - halfWidth in <lambda>() 921 Hotspot.CENTER -> (parentWidth / 2) + halfWidth in <lambda>() 924 Hotspot.BOTTOM_RIGHT -> parentWidth + halfWidth in <lambda>() 927 Hotspot.TOP_LEFT -> halfWidth in <lambda>()
|
D | TransitionAnimator.kt | 382 val halfWidth = MathUtils.lerp(startWidth, endWidth, progress) / 2f in <lambda>() constant 386 state.left = (xCenter - halfWidth).roundToInt() in <lambda>() 387 state.right = (xCenter + halfWidth).roundToInt() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | WindowMagnificationController.java | 1201 int halfWidth = displayFrame.width() / 2; in calculateSourceBounds() local 1203 int left = displayFrame.left + (halfWidth - (int) (halfWidth / scale)); in calculateSourceBounds() 1204 int right = displayFrame.right - (halfWidth - (int) (halfWidth / scale)); in calculateSourceBounds() 1236 final int halfWidth = mMagnificationFrame.width() / 2; in calculateMagnificationFrameBoundary() local 1240 final int scaledWidth = (int) (halfWidth / mScale); in calculateMagnificationFrameBoundary() 1257 final int exceededLeft = Math.max(halfWidth - scaledWidth - mMagnificationFrameOffsetX, 0); in calculateMagnificationFrameBoundary() 1258 final int exceededRight = Math.max(halfWidth - scaledWidth + mMagnificationFrameOffsetX, 0); in calculateMagnificationFrameBoundary()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | TransitionAnimation.java | 491 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLockedCompat() local 493 int clipStartX = centerX - halfWidth - appFrame.left; in createClipRevealAnimationLockedCompat() 506 if (appFrame.left > centerX - halfWidth) { in createClipRevealAnimationLockedCompat() 507 translationX = (centerX - halfWidth) - appFrame.left; in createClipRevealAnimationLockedCompat() 511 if (appFrame.right < centerX + halfWidth) { in createClipRevealAnimationLockedCompat() 512 translationX = (centerX + halfWidth) - appFrame.right; in createClipRevealAnimationLockedCompat()
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvas.cpp | 867 float halfWidth = layout.getCharAdvance(i) * 0.5f; in drawLayoutOnPath() local 868 float x = hOffset + layout.getX(i) + halfWidth; in drawLayoutOnPath() 879 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); in drawLayoutOnPath() 880 xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); in drawLayoutOnPath()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 792 final int halfWidth = width / 2; in smoothScrollTo() local 794 final float distance = halfWidth + halfWidth * in smoothScrollTo()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | TouchInputMapper.cpp | 1124 int32_t halfWidth = virtualKeyDefinition.width / 2; in configureVirtualKeys() local 1127 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth) * touchScreenWidth / in configureVirtualKeys() 1130 virtualKey.hitRight = (virtualKeyDefinition.centerX + halfWidth) * touchScreenWidth / in configureVirtualKeys()
|