Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DNinePatchDrawHelper.java77 int halfWidth = width / 2; in draw3Patch() local
80 drawRegion(bitmap, canvas, 0, halfWidth, left, left + halfWidth); in draw3Patch()
83 drawRegion(bitmap, canvas, halfWidth, width, right - halfWidth, right); in draw3Patch()
87 drawRegion(bitmap, canvas, halfWidth - halfExt, halfWidth + halfExt, in draw3Patch()
88 left + halfWidth, right - halfWidth); in draw3Patch()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
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()
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()
DAvatarRequest.java157 final float halfWidth = width / 2; in renderLetterTile() local
174 final float xOffset = halfWidth - textBound.centerX(); in renderLetterTile()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java185 int halfWidth; in onLayout() local
188 halfWidth = button.getMeasuredWidth() / 2; in onLayout()
189 button.layout(start - halfWidth, 0, in onLayout()
190 start + halfWidth, button.getMeasuredHeight()); in onLayout()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapUtils.java48 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/
DStopwatchLandscapeLayout.java88 final int halfWidth = width / 2; in onMeasure() local
100 lapsListWidth = Math.max(mLapsListView.getMeasuredWidth(), halfWidth); in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java205 final int halfWidth = width / 2; in calculateInSampleSize() local
210 && (!checkWidth || (halfWidth / inSampleSize) > reqWidth)) { in calculateInSampleSize()