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

/frameworks/base/services/core/java/com/android/server/policy/
H A DIconUtilities.java121 int sourceWidth = icon.getIntrinsicWidth();
124 if (sourceWidth > 0 && sourceHeight > 0) {
126 if (width < sourceWidth || height < sourceHeight) {
128 final float ratio = (float) sourceWidth / sourceHeight;
129 if (sourceWidth > sourceHeight) {
131 } else if (sourceHeight > sourceWidth) {
134 } else if (sourceWidth < width && sourceHeight < height) {
136 width = sourceWidth;
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java208 int sourceWidth = source.getWidth();
210 int destWidth = Math.max(1, (int) (xScale * sourceWidth));
227 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight,
261 while (nearestWidth < sourceWidth / 2) {
271 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight,
275 sourceWidth = nearestWidth;
280 int halfWidth = sourceWidth / 2;
285 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight,
289 sourceWidth = halfWidth;
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp222 uint32_t sourceWidth, sourceHeight; local
224 sourceWidth = mainDpyInfo.w;
229 sourceWidth = mainDpyInfo.h;
231 Rect layerStackRect(sourceWidth, sourceHeight);
234 float displayAspect = (float) sourceHeight / (float) sourceWidth;
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp462 int sourceWidth = layer->sourceCrop.right local
466 if (((layer->displayFrame.left + sourceWidth) <= width)
469 + sourceWidth;
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java738 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec);
739 int widthSize = sourceWidth;
785 setMeasuredDimension(sourceWidth, heightSize);
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java1190 final float sourceWidth = sourceFrame.width();
1194 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth;
1203 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2;

Completed in 177 milliseconds