Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java205 int sourceWidth = source.getWidth(); in scale() local
207 int destWidth = Math.max(1, (int) (xScale * sourceWidth)); in scale()
224 g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0, sourceWidth, sourceHeight, in scale()
258 while (nearestWidth < sourceWidth / 2) { in scale()
268 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, 0, 0, sourceWidth, sourceHeight, in scale()
272 sourceWidth = nearestWidth; in scale()
277 int halfWidth = sourceWidth / 2; in scale()
282 g2.drawImage(source, 0, 0, halfWidth, halfHeight, 0, 0, sourceWidth, sourceHeight, in scale()
286 sourceWidth = halfWidth; 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/tests/utils/
DTransactionUtils.h167 uint32_t sourceWidth = source.getWidth();
171 std::swap(sourceWidth, sourceHeight);
174 float dsdx = dest.getWidth() / static_cast<float>(sourceWidth);
/frameworks/native/opengl/tests/hwc/
DhwcStress.cpp462 int sourceWidth = layer->sourceCrop.right in main() local
466 if (((layer->displayFrame.left + sourceWidth) <= width) in main()
469 + sourceWidth; in main()
/frameworks/base/core/java/com/android/internal/policy/
DTransitionAnimation.java772 final float sourceWidth = sourceFrame.width(); in createAspectScaledThumbnailFreeformAnimationLocked() local
776 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth; in createAspectScaledThumbnailFreeformAnimationLocked()
785 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java925 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec);
926 int widthSize = sourceWidth;
994 setMeasuredDimension(sourceWidth, heightSize);
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java877 final float sourceWidth = sourceFrame.width(); in createAspectScaledThumbnailFreeformAnimationLocked() local
881 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth; in createAspectScaledThumbnailFreeformAnimationLocked()
890 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp881 float sourceWidth = static_cast<float>(source.getWidth()); in handleRoundedCorners() local
888 std::swap(sourceHeight, sourceWidth); in handleRoundedCorners()
898 std::swap(sourceHeight, sourceWidth); in handleRoundedCorners()
906 vec4(destinationWidth / sourceWidth, destinationHeight / sourceHeight, 1, 1)); in handleRoundedCorners()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLESRenderEngine.cpp816 float sourceWidth = static_cast<float>(source.getWidth()); in handleRoundedCorners() local
823 std::swap(sourceHeight, sourceWidth); in handleRoundedCorners()
833 std::swap(sourceHeight, sourceWidth); in handleRoundedCorners()
841 vec4(destinationWidth / sourceWidth, destinationHeight / sourceHeight, 1, 1)); in handleRoundedCorners()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp1542 float sourceWidth = source.getWidth(); in setGeometry() local
1545 float xScale = sourceWidth < 0 ? 1.0f : dst.getWidth() / sourceWidth; in setGeometry()