Home
last modified time | relevance | path

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

/aosp14/frameworks/base/media/tests/MtpTests/src/android/mtp/
H A 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()
/aosp14/frameworks/base/core/java/android/view/
H A DInsetsState.java343 final int sourceHeight = sourceFrame.height(); in canControlSource() local
345 || insets.top == sourceHeight || insets.bottom == sourceHeight; in canControlSource()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java694 final float sourceHeight = sourceFrame.height(); in createAspectScaledThumbnailFreeformAnimationLocked() local
698 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; in createAspectScaledThumbnailFreeformAnimationLocked()
707 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DTransitionAnimation.java1050 final float sourceHeight = sourceFrame.height(); in createAspectScaledThumbnailFreeformAnimationLocked() local
1054 final float scaleV = enter ? sourceHeight / destHeight : destHeight / sourceHeight; in createAspectScaledThumbnailFreeformAnimationLocked()
1063 final float scaleVCenter = ((enter ? destHeight : sourceHeight) + surfaceInsetsV) / 2; in createAspectScaledThumbnailFreeformAnimationLocked()
/aosp14/frameworks/base/core/java/android/widget/
H A DMagnifier.java485 void updateSourceFactors(final int sourceHeight, final float zoom) { in updateSourceFactors() argument
487 mSourceHeight = sourceHeight; in updateSourceFactors()
488 mWindowHeight = (int) (sourceHeight * zoom); in updateSourceFactors()
H A DEditor.java590 final int sourceHeight = layout.getLineBottom(line, /* includeLineSpacing= */ false) in createBuilderWithInlineMagnifierDefaults() local
592 final int height = (int)(sourceHeight * zoom); in createBuilderWithInlineMagnifierDefaults()
593 final int width = (int)(aspectRatio * Math.max(sourceHeight, mMinLineHeightForMagnifier)); in createBuilderWithInlineMagnifierDefaults()
597 .setSourceSize(width, sourceHeight) in createBuilderWithInlineMagnifierDefaults()