Searched refs:sourceHeight (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 88 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap() local 90 if (sourceWidth > 0 && sourceHeight > 0) { in createIconBitmap() 92 if (width < sourceWidth || height < sourceHeight) { in createIconBitmap() 94 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() 95 if (sourceWidth > sourceHeight) { in createIconBitmap() 97 } else if (sourceHeight > sourceWidth) { in createIconBitmap() 100 } else if (sourceWidth < width && sourceHeight < height) { in createIconBitmap() 103 height = sourceHeight; in createIconBitmap()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 206 int sourceHeight = source.getHeight(); in scale() local 208 int destHeight = Math.max(1, (int) (yScale * sourceHeight)); in scale() 224 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, in scale() 268 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, in scale() 273 sourceHeight = nearestHeight; in scale() 278 int halfHeight = sourceHeight / 2; in scale() 282 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale() 287 sourceHeight = halfHeight; in scale()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 248 uint32_t sourceWidth, sourceHeight; in setDisplayProjection() local 251 sourceHeight = mainDpyInfo.h; in setDisplayProjection() 254 sourceHeight = mainDpyInfo.w; in setDisplayProjection() 257 Rect layerStackRect(sourceWidth, sourceHeight); in setDisplayProjection() 260 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 | 1316 final float sourceHeight = sourceFrame.height(); in createAspectScaledThumbnailFreeformAnimationLocked() local 1320 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; in createAspectScaledThumbnailFreeformAnimationLocked() 1329 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
|