Home
last modified time | relevance | path

Searched refs:halfWidth (Results 1 – 25 of 27) sorted by relevance

12

/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DAvatarGroupRequestDescriptor.java75 final float halfWidth = width / 2F; in generateDestRectArray() local
140 destArray[1] = new RectF(0, halfHeight, halfWidth, height); in generateDestRectArray()
141 destArray[2] = new RectF(halfWidth, halfHeight, width, height); in generateDestRectArray()
151 destArray[0] = new RectF(0, 0, halfWidth, halfHeight); in generateDestRectArray()
152 destArray[1] = new RectF(halfWidth, 0, width, halfHeight); in generateDestRectArray()
153 destArray[2] = new RectF(0, halfHeight, halfWidth, height); in generateDestRectArray()
154 destArray[3] = new RectF(halfWidth, halfHeight, width, height); in generateDestRectArray()
H A DSimSelectorAvatarRequest.java71 final float halfWidth = width / 2; in renderSimAvatarInternal() local
89 canvas.drawBitmap(sRegularSimIcon, halfWidth - sRegularSimIcon.getWidth() / 2, in renderSimAvatarInternal()
105 final float xOffset = halfWidth - textBound.centerX(); in renderSimAvatarInternal()
H A DAvatarRequest.java157 final float halfWidth = width / 2; in renderLetterTile() local
174 final float xOffset = halfWidth - textBound.centerX(); in renderLetterTile()
/aosp12/frameworks/native/libs/renderengine/gl/
H A DGLSkiaShadowPort.cpp245 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()
/aosp12/frameworks/av/media/libstagefright/renderfright/gl/
H A DGLSkiaShadowPort.cpp245 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()
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/
H A DAvatarUtil.java281 float halfWidth = desiredWidth / 2F; in generateDestRectArray() local
287 cropToCircle ? (float) ((Math.hypot(halfWidth, halfHeight) - halfWidth) / 2f) : 0F; in generateDestRectArray()
372 halfWidth, in generateDestRectArray()
376 halfWidth, in generateDestRectArray()
389 destArray[0] = new RectF(inset, inset, halfWidth, halfHeight); in generateDestRectArray()
392 halfWidth, in generateDestRectArray()
400 halfWidth, in generateDestRectArray()
404 halfWidth, in generateDestRectArray()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMockWindowMagnificationConnection.java124 final int halfWidth = mMirrorWindowFrame.width() / 2; in computeSourceBounds() local
126 final int left = mMirrorWindowFrame.left + (halfWidth - (int) (halfWidth / mScale)); in computeSourceBounds()
127 final int right = mMirrorWindowFrame.right - (halfWidth - (int) (halfWidth / mScale)); in computeSourceBounds()
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleComponent.java66 final float halfWidth = bounds.width() / 2.0f; in getTargetRadius() local
68 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in getTargetRadius()
H A DRippleDrawable.java954 final float halfWidth = mHotspotBounds.width() / 2.0f; in computeRadius() local
956 return (float) Math.sqrt(halfWidth * halfWidth + halfHeight * halfHeight); in computeRadius()
/aosp12/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java559 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()
594 final int halfWidth = (int) (textWidth / 2.0f); in testEllipsis_singleLine() local
597 halfWidth, DEFAULT_ALIGN, TextDirectionHeuristics.FIRSTSTRONG_LTR, in testEllipsis_singleLine()
[all …]
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
H A DBitmapUtils.java48 int halfWidth = srcWidth / 2; in calculateInSampleSize() local
52 while (((halfHeight >> shift) >= targetHeight) && ((halfWidth >> shift) >= targetWidth)) { in calculateInSampleSize()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DDropTargetBar.java196 int halfWidth; in onLayout() local
199 halfWidth = button.getMeasuredWidth() / 2; in onLayout()
200 button.layout(start - halfWidth, 0, in onLayout()
201 start + halfWidth, button.getMeasuredHeight()); in onLayout()
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
H A DImageUtils.java277 int halfWidth = sourceWidth / 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()
286 sourceWidth = halfWidth; in scale()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DArrowTipView.java254 float halfWidth = getWidth() / 2f; in showAtLocation()
256 if (arrowXCoord - halfWidth < minViewMargin) { in showAtLocation()
260 } else if (arrowXCoord + halfWidth > parentViewWidth - minViewMargin) { in showAtLocation()
266 xCoord = arrowXCoord - halfWidth; in showAtLocation()
/aosp12/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
H A DMirrorSurfaceActivity.java424 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()
/aosp12/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
H A DUtils.java106 final int halfWidth = width / 2; in calculateInSampleSize() local
111 && (halfWidth / inSampleSize) > reqWidth) { in calculateInSampleSize()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
H A DWindowMagnificationController.java608 int halfWidth = displayFrame.width() / 2; in calculateSourceBounds() local
610 int left = displayFrame.left + (halfWidth - (int) (halfWidth / scale)); in calculateSourceBounds()
611 int right = displayFrame.right - (halfWidth - (int) (halfWidth / scale)); in calculateSourceBounds()
621 final int halfWidth = mMagnificationFrame.width() / 2; in calculateMagnificationFrameBoundary() local
625 final int scaledWidth = (int) (halfWidth / mScale); in calculateMagnificationFrameBoundary()
628 final int exceededWidth = halfWidth - scaledWidth; in calculateMagnificationFrameBoundary()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DSplashScreenExitAnimation.java135 final int halfWidth = mSplashScreenView.getWidth() / 2; in createAnimator() local
137 Math.sqrt(finalVerticalLength * finalVerticalLength + halfWidth * halfWidth))); in createAnimator()
142 mRadialVanishAnimation.setCircleCenter(halfWidth, verticalCircleCenter); in createAnimator()
/aosp12/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DLaunchAnimator.kt297 val halfWidth = MathUtils.lerp(startWidth, endWidth, progress) / 2f regex
301 state.left = (xCenter - halfWidth).roundToInt()
302 state.right = (xCenter + halfWidth).roundToInt()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchLandscapeLayout.kt84 val halfWidth = width / 2 regex
97 lapsListWidth = max(lapsListView.getMeasuredWidth(), halfWidth)
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java180 final int halfWidth = currentSize.getWidth() / 2; in calculateSampleSize() local
185 && (halfWidth / inSampleSize) >= requestedSize.getWidth()) { in calculateSampleSize()
/aosp12/frameworks/base/core/java/com/android/internal/policy/
H A DTransitionAnimation.java419 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLockedCompat() local
421 int clipStartX = centerX - halfWidth - appFrame.left; in createClipRevealAnimationLockedCompat()
434 if (appFrame.left > centerX - halfWidth) { in createClipRevealAnimationLockedCompat()
435 translationX = (centerX - halfWidth) - appFrame.left; in createClipRevealAnimationLockedCompat()
439 if (appFrame.right < centerX + halfWidth) { in createClipRevealAnimationLockedCompat()
440 translationX = (centerX + halfWidth) - appFrame.right; in createClipRevealAnimationLockedCompat()
/aosp12/frameworks/base/libs/hwui/
H A DSkiaCanvas.cpp771 float halfWidth = layout.getCharAdvance(i) * 0.5f; in drawLayoutOnPath() local
772 float x = hOffset + layout.getX(i) + halfWidth; in drawLayoutOnPath()
783 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); in drawLayoutOnPath()
784 xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); in drawLayoutOnPath()
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DImageUtils.java205 final int halfWidth = width / 2; in calculateInSampleSize() local
210 && (!checkWidth || (halfWidth / inSampleSize) > reqWidth)) { in calculateInSampleSize()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DAccessibilityFloatingMenuView.java772 final float halfWidth = getLayoutWidth() / 2.0f; in updateOffsetWith() local
773 final float offset = (shapeType == ShapeType.OVAL) ? 0 : halfWidth; in updateOffsetWith()

12