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 …]
532 public static String getAspectRatioString(float videoDisplayAspectRatio) { in getAspectRatioString() argument533 if (videoDisplayAspectRatio <= 0) { in getAspectRatioString()538 if (Math.abs((float) ratio.width / ratio.height - videoDisplayAspectRatio) < 0.05f) { in getAspectRatioString()