Searched refs:sourceWidth (Results 1 – 9 of 9) sorted by relevance
/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/tests/utils/ |
D | TransactionUtils.h | 167 uint32_t sourceWidth = source.getWidth(); 171 std::swap(sourceWidth, sourceHeight); 174 float dsdx = dest.getWidth() / static_cast<float>(sourceWidth);
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcStress.cpp | 462 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/ |
D | InsetsState.java | 326 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/ |
D | TransitionAnimation.java | 1033 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/ |
D | AppTransition.java | 680 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/ |
D | ResolverDrawerLayout.java | 971 final int sourceWidth = MeasureSpec.getSize(widthMeasureSpec); 972 int widthSize = sourceWidth; 1040 setMeasuredDimension(sourceWidth, heightSize);
|
/frameworks/av/media/libstagefright/renderfright/gl/ |
D | GLESRenderEngine.cpp | 816 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/ |
D | SurfaceComposerClient.cpp | 2025 float sourceWidth = source.getWidth(); in setGeometry() local 2028 float xScale = sourceWidth < 0 ? 1.0f : dst.getWidth() / sourceWidth; in setGeometry()
|