Searched refs:videoDisplayAspectRatio (Results 1 – 2 of 2) sorted by relevance
227 float videoDisplayAspectRatio = mTvView.getVideoDisplayAspectRatio(); in isDisplayModeAvailable() local228 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() argument501 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 …]
530 public static String getAspectRatioString(float videoDisplayAspectRatio) { in getAspectRatioString() argument531 if (videoDisplayAspectRatio <= 0) { in getAspectRatioString()536 if (Math.abs((float) ratio.width / ratio.height - videoDisplayAspectRatio) < 0.05f) { in getAspectRatioString()