Searched refs:sourceHeight (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java122 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/
H A DImageUtils.java205 int sourceHeight = source.getHeight();
207 int destHeight = Math.max(1, (int) (yScale * sourceHeight));
223 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight,
267 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight,
272 sourceHeight = nearestHeight;
277 int halfHeight = sourceHeight / 2;
281 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight,
286 sourceHeight = halfHeight;
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp219 uint32_t sourceWidth, sourceHeight; local
222 sourceHeight = mainDpyInfo.h;
225 sourceHeight = mainDpyInfo.w;
228 Rect layerStackRect(sourceWidth, sourceHeight);
231 float displayAspect = (float) sourceHeight / (float) sourceWidth;
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp463 int sourceHeight = layer->sourceCrop.bottom local
466 && ((layer->displayFrame.top + sourceHeight) <= height)) {
470 + sourceHeight;

Completed in 1753 milliseconds