Searched refs:sourceHeight (Results 1 - 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | IconUtilities.java | 122 int sourceHeight = icon.getIntrinsicHeight(); 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) { 137 height = sourceHeight;
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
H A D | ImageUtils.java | 209 int sourceHeight = source.getHeight(); 211 int destHeight = Math.max(1, (int) (yScale * sourceHeight)); 227 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, 271 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, 276 sourceHeight = nearestHeight; 281 int halfHeight = sourceHeight / 2; 285 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, 290 sourceHeight = halfHeight;
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 223 uint32_t sourceWidth, sourceHeight; local 226 sourceHeight = mainDpyInfo.h; 229 sourceHeight = mainDpyInfo.w; 232 Rect layerStackRect(sourceWidth, sourceHeight); 235 float displayAspect = (float) sourceHeight / (float) sourceWidth;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 464 int sourceHeight = layer->sourceCrop.bottom local 467 && ((layer->displayFrame.top + sourceHeight) <= height)) { 471 + sourceHeight;
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppTransition.java | 1266 final float sourceHeight = sourceFrame.height(); 1270 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; 1279 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2;
|
Completed in 272 milliseconds