Searched refs:halfWidth (Results 1 – 9 of 9) sorted by relevance
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | AvatarGroupRequestDescriptor.java | 75 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()
|
D | SimSelectorAvatarRequest.java | 71 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()
|
D | AvatarRequest.java | 157 final float halfWidth = width / 2; in renderLetterTile() local 174 final float xOffset = halfWidth - textBound.centerX(); in renderLetterTile()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/ |
D | AvatarUtil.java | 281 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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DropTargetBar.java | 192 int halfWidth; in onLayout() local 195 halfWidth = button.getMeasuredWidth() / 2; in onLayout() 196 button.layout(start - halfWidth, 0, in onLayout() 197 start + halfWidth, button.getMeasuredHeight()); in onLayout()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | ArrowTipView.java | 245 float halfWidth = getWidth() / 2f; in showAtLocation() local 247 if (arrowXCoord - halfWidth < minViewMargin) { in showAtLocation() 251 } else if (arrowXCoord + halfWidth > parentViewWidth - minViewMargin) { in showAtLocation() 257 xCoord = arrowXCoord - halfWidth; in showAtLocation()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | BitmapUtils.java | 48 int halfWidth = srcWidth / 2; in calculateInSampleSize() local 52 while (((halfHeight >> shift) >= targetHeight) && ((halfWidth >> shift) >= targetWidth)) { in calculateInSampleSize()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchLandscapeLayout.kt | 84 val halfWidth = width / 2 in onMeasure() constant 97 lapsListWidth = max(lapsListView.getMeasuredWidth(), halfWidth) in onMeasure()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 205 final int halfWidth = width / 2; in calculateInSampleSize() local 210 && (!checkWidth || (halfWidth / inSampleSize) > reqWidth)) { in calculateInSampleSize()
|