Home
last modified time | relevance | path

Searched refs:sourceHeight (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java88 int sourceHeight = icon.getIntrinsicHeight(); 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()
103 height = sourceHeight; in createIconBitmap()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java206 int sourceHeight = source.getHeight(); in scale() local
208 int destHeight = Math.max(1, (int) (yScale * sourceHeight)); in scale()
224 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, in scale()
268 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, in scale()
273 sourceHeight = nearestHeight; in scale()
278 int halfHeight = sourceHeight / 2; in scale()
282 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale()
287 sourceHeight = halfHeight; in scale()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpDatabaseTest.java176 private byte[] createJpegRawData(int sourceWidth, int sourceHeight) throws IOException { in createJpegRawData() argument
177 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight); in createJpegRawData()
180 private byte[] createPngRawData(int sourceWidth, int sourceHeight) throws IOException { in createPngRawData() argument
181 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight); in createPngRawData()
184 private byte[] createRawData(Bitmap.CompressFormat format, int sourceWidth, int sourceHeight) in createRawData() argument
187 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888); in createRawData()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp191 const float sourceHeight = viewport.height(); in setProjection() local
194 if (sourceWidth != destWidth || sourceHeight != destHeight) { in setProjection()
196 const float scaleY = destHeight / sourceHeight; in setProjection()
/frameworks/native/opengl/tests/hwc/
DhwcStress.cpp464 int sourceHeight = layer->sourceCrop.bottom in main() local
467 && ((layer->displayFrame.top + sourceHeight) <= height)) { in main()
471 + sourceHeight; in main()
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp799 float sourceHeight = static_cast<float>(source.getHeight()); in handleRoundedCorners() local
805 std::swap(sourceHeight, sourceWidth); in handleRoundedCorners()
815 std::swap(sourceHeight, sourceWidth); in handleRoundedCorners()
823 vec4(destinationWidth / sourceWidth, destinationHeight / sourceHeight, 1, 1)); in handleRoundedCorners()
/frameworks/base/core/java/android/widget/
DMagnifier.java494 void updateSourceFactors(final int sourceHeight, final float zoom) { in updateSourceFactors() argument
496 mSourceHeight = sourceHeight; in updateSourceFactors()
497 mWindowHeight = (int) (sourceHeight * zoom); in updateSourceFactors()
DEditor.java510 final int sourceHeight = in createBuilderWithInlineMagnifierDefaults() local
512 final int height = (int)(sourceHeight * zoom); in createBuilderWithInlineMagnifierDefaults()
513 final int width = (int)(aspectRatio * Math.max(sourceHeight, mMinLineHeightForMagnifier)); in createBuilderWithInlineMagnifierDefaults()
517 .setSourceSize(width, sourceHeight) in createBuilderWithInlineMagnifierDefaults()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java1385 final float sourceHeight = sourceFrame.height(); in createAspectScaledThumbnailFreeformAnimationLocked() local
1389 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; in createAspectScaledThumbnailFreeformAnimationLocked()
1398 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp1396 float sourceHeight = source.getHeight(); in setGeometry() local
1399 float yScale = sourceHeight < 0 ? 1.0f : dst.getHeight() / sourceHeight; in setGeometry()