Home
last modified time | relevance | path

Searched refs:screenAspectRatio (Results 1 – 4 of 4) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DDisplayAspectRatioLinearLayout.kt39 val screenAspectRatio = ScreenSizeCalculator.getInstance().getScreenAspectRatio(context) in <lambda>() constant
49 var height = (width * screenAspectRatio).toInt() in <lambda>()
52 width = (height / screenAspectRatio).toInt() in <lambda>()
60 var width = (height / screenAspectRatio).toInt() in <lambda>()
63 height = (width * screenAspectRatio).toInt() in <lambda>()
DDisplayAspectRatioFrameLayout.kt37 val screenAspectRatio = ScreenSizeCalculator.getInstance().getScreenAspectRatio(context) in <lambda>() constant
48 (child.measuredHeight / screenAspectRatio).toInt().coerceAtMost(measuredWidth) in <lambda>()
55 (childWidth * screenAspectRatio).toInt() in <lambda>()
DFixedWidthDisplayRatioFrameLayout.kt36 val screenAspectRatio = ScreenSizeCalculator.getInstance().getScreenAspectRatio(context) in <lambda>() constant
38 val height = (width * screenAspectRatio).toInt() in <lambda>()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java604 float screenAspectRatio = (float) mCaptionLayout.getWidth() / mCaptionLayout.getHeight(); in getScreenColumnCount() local
605 boolean isWideAspectRationScreen = screenAspectRatio > WIDE_SCREEN_ASPECT_RATIO_THRESHOLD; in getScreenColumnCount()