Home
last modified time | relevance | path

Searched refs:widthRatio (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/util/
DDisplayUtils.java82 final float widthRatio = (float) currentWidth / physicalWidth; in getPhysicalPixelDisplaySizeRatio() local
84 return Math.min(widthRatio, heightRatio); in getPhysicalPixelDisplaySizeRatio()
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java272 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; in startPreview() local
275 transform.setScale(1, heightRatio/widthRatio); in startPreview()
277 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2); in startPreview()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DGhostedViewLaunchAnimatorController.kt271 val widthRatio = state.width.toFloat() / ghostedViewState.width in onLaunchAnimationProgress() constant
273 val scale = min(widthRatio, heightRatio) in onLaunchAnimationProgress()
DActivityLaunchAnimator.kt626 val widthRatio = state.width.toFloat() / width in applyStateToWindow() constant
628 val scale = maxOf(widthRatio, heightRatio) in applyStateToWindow()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandable.kt328 val widthRatio = in AnimatedContentInOverlay() constant
340 val scale = min(widthRatio, heightRatio) in AnimatedContentInOverlay()