Searched refs:sourceWidth (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 87 int sourceWidth = icon.getIntrinsicWidth(); 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() 102 width = sourceWidth; in createIconBitmap()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 205 int sourceWidth = source.getWidth(); in scale() local 207 int destWidth = Math.max(1, (int) (xScale * sourceWidth)); in scale() 224 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, in scale() 258 while (nearestWidth < sourceWidth / 2) { in scale() 268 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, in scale() 272 sourceWidth = nearestWidth; in scale() 277 int halfWidth = sourceWidth / 2; in scale() 282 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale() 286 sourceWidth = halfWidth; in scale()
|
/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 | 845 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec); 846 int widthSize = sourceWidth; 914 setMeasuredDimension(sourceWidth, heightSize);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTransition.java | 1376 final float sourceWidth = sourceFrame.width(); in createAspectScaledThumbnailFreeformAnimationLocked() local 1380 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth; in createAspectScaledThumbnailFreeformAnimationLocked() 1389 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 1159 float sourceWidth = source.getWidth(); in setGeometry() local 1162 float xScale = sourceWidth < 0 ? 1.0f : dst.getWidth() / sourceWidth; in setGeometry()
|