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/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 | 1377 final float sourceHeight = sourceFrame.height(); in createAspectScaledThumbnailFreeformAnimationLocked() local 1381 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; in createAspectScaledThumbnailFreeformAnimationLocked() 1390 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 1160 float sourceHeight = source.getHeight(); in setGeometry() local 1163 float yScale = sourceHeight < 0 ? 1.0f : dst.getHeight() / sourceHeight; in setGeometry()
|