Home
last modified time | relevance | path

Searched refs:videoDisplayAspectRatio (Results 1 – 2 of 2) sorted by relevance

/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java227 float videoDisplayAspectRatio = mTvView.getVideoDisplayAspectRatio(); in isDisplayModeAvailable() local
228 if (viewWidth <= 0 || viewHeight <= 0 || videoDisplayAspectRatio <= 0f) { in isDisplayModeAvailable()
239 + videoDisplayAspectRatio); in isDisplayModeAvailable()
245 return Math.abs(viewRatio - videoDisplayAspectRatio) >= DISPLAY_MODE_EPSILON; in isDisplayModeAvailable()
500 float videoDisplayAspectRatio, boolean animate, boolean forceUpdate) { in applyDisplayMode() argument
501 if (videoDisplayAspectRatio <= 0f) { in applyDisplayMode()
502 videoDisplayAspectRatio = (float) mWindowWidth / mWindowHeight; in applyDisplayMode()
507 && Math.abs(mAppliedVideoDisplayAspectRatio - videoDisplayAspectRatio) in applyDisplayMode()
516 mAppliedVideoDisplayAspectRatio = videoDisplayAspectRatio; in applyDisplayMode()
540 if (videoDisplayAspectRatio < availableAreaRatio) { in applyDisplayMode()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DUtils.java530 public static String getAspectRatioString(float videoDisplayAspectRatio) { in getAspectRatioString() argument
531 if (videoDisplayAspectRatio <= 0) { in getAspectRatioString()
536 if (Math.abs((float) ratio.width / ratio.height - videoDisplayAspectRatio) < 0.05f) { in getAspectRatioString()