Searched refs:sourceWidth (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 121 int sourceWidth = icon.getIntrinsicWidth(); 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() 136 width = sourceWidth; in createIconBitmap()
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | ImageUtils.java | 208 int sourceWidth = source.getWidth(); in scale() local 210 int destWidth = Math.max(1, (int) (xScale * sourceWidth)); in scale() 227 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, in scale() 261 while (nearestWidth < sourceWidth / 2) { in scale() 271 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, in scale() 275 sourceWidth = nearestWidth; in scale() 280 int halfWidth = sourceWidth / 2; in scale() 285 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale() 289 sourceWidth = halfWidth; in scale()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 222 uint32_t sourceWidth, sourceHeight; in setDisplayProjection() local 224 sourceWidth = mainDpyInfo.w; in setDisplayProjection() 229 sourceWidth = mainDpyInfo.h; in setDisplayProjection() 231 Rect layerStackRect(sourceWidth, sourceHeight); in setDisplayProjection() 234 float displayAspect = (float) sourceHeight / (float) sourceWidth; in setDisplayProjection()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcStress.cpp | 462 int sourceWidth = layer->sourceCrop.right in main() local 466 if (((layer->displayFrame.left + sourceWidth) <= width) in main() 469 + sourceWidth; in main()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ResolverDrawerLayout.java | 738 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec); 739 int widthSize = sourceWidth; 785 setMeasuredDimension(sourceWidth, heightSize);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTransition.java | 1190 final float sourceWidth = sourceFrame.width(); in createAspectScaledThumbnailFreeformAnimationLocked() local 1194 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth; in createAspectScaledThumbnailFreeformAnimationLocked() 1203 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
|