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

/frameworks/base/policy/src/com/android/internal/policy/impl/
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.java204 int sourceWidth = source.getWidth();
206 int destWidth = Math.max(1, (int) (xScale * sourceWidth));
223 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight,
257 while (nearestWidth < sourceWidth / 2) {
267 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight,
271 sourceWidth = nearestWidth;
276 int halfWidth = sourceWidth / 2;
281 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight,
285 sourceWidth = halfWidth;
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp219 uint32_t sourceWidth, sourceHeight; local
221 sourceWidth = mainDpyInfo.w;
226 sourceWidth = mainDpyInfo.h;
228 Rect layerStackRect(sourceWidth, sourceHeight);
231 float displayAspect = (float) sourceHeight / (float) sourceWidth;
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp461 int sourceWidth = layer->sourceCrop.right local
465 if (((layer->displayFrame.left + sourceWidth) <= width)
468 + sourceWidth;
/frameworks/base/core/java/com/android/internal/widget/
H A DResolverDrawerLayout.java628 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec);
629 int widthSize = sourceWidth;
685 setMeasuredDimension(sourceWidth, heightSize);

Completed in 142 milliseconds