/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 88 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/ |
D | ImageUtils.java | 206 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/ |
D | MtpDatabaseTest.java | 176 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/ |
D | DisplayDevice.cpp | 191 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/ |
D | hwcStress.cpp | 464 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/ |
D | GLESRenderEngine.cpp | 799 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/ |
D | Magnifier.java | 494 void updateSourceFactors(final int sourceHeight, final float zoom) { in updateSourceFactors() argument 496 mSourceHeight = sourceHeight; in updateSourceFactors() 497 mWindowHeight = (int) (sourceHeight * zoom); in updateSourceFactors()
|
D | Editor.java | 510 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/ |
D | AppTransition.java | 1385 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/ |
D | SurfaceComposerClient.cpp | 1396 float sourceHeight = source.getHeight(); in setGeometry() local 1399 float yScale = sourceHeight < 0 ? 1.0f : dst.getHeight() / sourceHeight; in setGeometry()
|