Searched refs:scaledHeight (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetImageView.java | 89 float scaledHeight = mDrawable.getIntrinsicHeight() * scale; in updateDstRectF() local 94 if (scaledHeight > myHeight) { in updateDstRectF() 96 mDstRectF.bottom = scaledHeight; in updateDstRectF() 98 mDstRectF.top = (myHeight - scaledHeight) / 2; in updateDstRectF() 99 mDstRectF.bottom = (myHeight + scaledHeight) / 2; in updateDstRectF()
|
D | PendingItemDragHelper.java | 237 int scaledHeight = (int) (scaleFactor * preview.getHeight()); in convertPreviewToAlphaBitmap() local 238 Rect dst = new Rect(0, 0, scaledWidth, scaledHeight); in convertPreviewToAlphaBitmap() 241 dst.offset((w - scaledWidth) / 2, (h - scaledHeight) / 2); in convertPreviewToAlphaBitmap()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | SearchTransitionController.java | 269 int scaledHeight = (int) (searchResultView.getHeight() * scaleY); in updateSearchRecyclerViewProgress() local 277 y -= scaledHeight; in updateSearchRecyclerViewProgress() 280 totalHeight += scaledHeight; in updateSearchRecyclerViewProgress() 282 appRowHeight = scaledHeight; in updateSearchRecyclerViewProgress()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 352 int scaledHeight = context.getResources().getDimensionPixelSize(R.dimen.call_type_icon_size); in getScaledBitmap() local 356 * ((float) scaledHeight / (float) drawable.getIntrinsicHeight())); in getScaledBitmap() 358 Bitmap icon = Bitmap.createBitmap(scaledWidth, scaledHeight, Bitmap.Config.ARGB_8888); in getScaledBitmap()
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/ |
D | CameraController.java | 441 int scaledWidth, scaledHeight; in setupBitmaps() local 444 scaledHeight = in setupBitmaps() 447 scaledHeight = (int)(0.5 * height); in setupBitmaps() 449 (int)(scaledHeight * (float)logoBitmap.getWidth() / logoBitmap.getHeight()); in setupBitmaps() 457 int offsetY = (height - scaledHeight)/ 2; in setupBitmaps() 459 int endY = offsetY + scaledHeight; in setupBitmaps()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 391 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut() local 394 final int targetHeight = Math.min(scaledHeight, iconMaxHeight); in decodeStreamForShortcut() 402 final int prescaledYOffset = ((scaledHeight - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 842 final float scaledHeight = scale * sourceHeight; in scaleCenterCrop() local 847 final float top = (newHeight - scaledHeight) / 2; in scaleCenterCrop() 851 final RectF targetRect = new RectF(left, top, left + scaledWidth, top + scaledHeight); in scaleCenterCrop()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderAnimationManager.java | 259 float scaledHeight = normalHeight * initialScale; in getAnimator() local 260 float diff = normalHeight - scaledHeight; in getAnimator()
|