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.java247 float videoDisplayAspectRatio = mTvView.getVideoDisplayAspectRatio(); in isDisplayModeAvailable() local
248 if (viewWidth <= 0 || viewHeight <= 0 || videoDisplayAspectRatio <= 0f) { in isDisplayModeAvailable()
254 + ", videoDisplayAspectRatio=" + videoDisplayAspectRatio in isDisplayModeAvailable()
261 return Math.abs(viewRatio - videoDisplayAspectRatio) >= DISPLAY_MODE_EPSILON; in isDisplayModeAvailable()
567 float videoDisplayAspectRatio = mPipView.getVideoDisplayAspectRatio(); in updatePipView() local
568 if (videoDisplayAspectRatio <= 0f) { in updatePipView()
571 width = (int) (height * videoDisplayAspectRatio); in updatePipView()
605 float videoDisplayAspectRatio = mPipView.getVideoDisplayAspectRatio(); in updatePipView() local
606 if (videoDisplayAspectRatio <= 0f) { in updatePipView()
609 width = (int) (height * videoDisplayAspectRatio); in updatePipView()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DUtils.java453 public static String getAspectRatioString(float videoDisplayAspectRatio) { in getAspectRatioString() argument
454 if (videoDisplayAspectRatio <= 0) { in getAspectRatioString()
459 if (Math.abs((float) ratio.width / ratio.height - videoDisplayAspectRatio) < 0.05f) { in getAspectRatioString()