Home
last modified time | relevance | path

Searched refs:sourceWidth (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java87 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/
DImageUtils.java205 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/
DhwcStress.cpp462 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/
DResolverDrawerLayout.java845 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec);
846 int widthSize = sourceWidth;
914 setMeasuredDimension(sourceWidth, heightSize);
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java1376 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/
DSurfaceComposerClient.cpp1159 float sourceWidth = source.getWidth(); in setGeometry() local
1162 float xScale = sourceWidth < 0 ? 1.0f : dst.getWidth() / sourceWidth; in setGeometry()