Home
last modified time | relevance | path

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

/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/android/view/
DInsetsState.java326 final int sourceWidth = sourceFrame.width(); in canControlSource() local
328 return insets.left == sourceWidth || insets.right == sourceWidth in canControlSource()
/frameworks/base/core/java/com/android/internal/policy/
DTransitionAnimation.java1033 final float sourceWidth = sourceFrame.width(); in createAspectScaledThumbnailFreeformAnimationLocked() local
1037 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth; in createAspectScaledThumbnailFreeformAnimationLocked()
1046 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransition.java680 final float sourceWidth = sourceFrame.width(); in createAspectScaledThumbnailFreeformAnimationLocked() local
684 final float scaleH = enter ? sourceWidth / destWidth : destWidth / sourceWidth; in createAspectScaledThumbnailFreeformAnimationLocked()
693 final float scaleHCenter = ((enter ? destWidth : sourceWidth) + surfaceInsetsH) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java971 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec);
972 int widthSize = sourceWidth;
1040 setMeasuredDimension(sourceWidth, heightSize);
/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.cpp2025 float sourceWidth = source.getWidth(); in setGeometry() local
2028 float xScale = sourceWidth < 0 ? 1.0f : dst.getWidth() / sourceWidth; in setGeometry()