Searched refs:sourceHeight (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 122 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap() local 124 if (sourceWidth > 0 && sourceHeight > 0) { in createIconBitmap() 126 if (width < sourceWidth || height < sourceHeight) { in createIconBitmap() 128 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() 129 if (sourceWidth > sourceHeight) { in createIconBitmap() 131 } else if (sourceHeight > sourceWidth) { in createIconBitmap() 134 } else if (sourceWidth < width && sourceHeight < height) { in createIconBitmap() 137 height = sourceHeight; in createIconBitmap()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 209 int sourceHeight = source.getHeight(); in scale() local 211 int destHeight = Math.max(1, (int) (yScale * sourceHeight)); in scale() 227 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, in scale() 271 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, in scale() 276 sourceHeight = nearestHeight; in scale() 281 int halfHeight = sourceHeight / 2; in scale() 285 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale() 290 sourceHeight = halfHeight; in scale()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 223 uint32_t sourceWidth, sourceHeight; in setDisplayProjection() local 226 sourceHeight = mainDpyInfo.h; in setDisplayProjection() 229 sourceHeight = mainDpyInfo.w; in setDisplayProjection() 232 Rect layerStackRect(sourceWidth, sourceHeight); in setDisplayProjection() 235 float displayAspect = (float) sourceHeight / (float) sourceWidth; in setDisplayProjection()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcStress.cpp | 464 int sourceHeight = layer->sourceCrop.bottom in main() local 467 && ((layer->displayFrame.top + sourceHeight) <= height)) { in main() 471 + sourceHeight; in main()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTransition.java | 1277 final float sourceHeight = sourceFrame.height(); in createAspectScaledThumbnailFreeformAnimationLocked() local 1281 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; in createAspectScaledThumbnailFreeformAnimationLocked() 1290 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
|