Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackOverlayFragment.java181 public void onAspectRatioChanged(float videoAspectRatio) { in onActivityCreated()
182 updateAspectRatio(videoAspectRatio); in onActivityCreated()
378 private void updateAspectRatio(float videoAspectRatio) { in updateAspectRatio() argument
379 if (videoAspectRatio <= 0) { in updateAspectRatio()
381 videoAspectRatio = mWindowAspectRatio; in updateAspectRatio()
383 if (Math.abs(mAppliedAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()
387 if (Math.abs(mWindowAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()
389 } else if (videoAspectRatio < mWindowAspectRatio) { in updateAspectRatio()
390 int newPadding = (mWindowWidth - Math.round(mWindowHeight * videoAspectRatio)) / 2; in updateAspectRatio()
393 int newPadding = (mWindowHeight - Math.round(mWindowWidth / videoAspectRatio)) / 2; in updateAspectRatio()
[all …]
DDvrPlayer.java96 void onAspectRatioChanged(float videoAspectRatio); in onAspectRatioChanged() argument
535 float videoAspectRatio; in setTvViewCallbacks()
539 videoAspectRatio = trackInfo.getVideoPixelAspectRatio() in setTvViewCallbacks()
543 videoAspectRatio = 0; in setTvViewCallbacks()
545 if (DEBUG) Log.d(TAG, "Aspect Ratio: " + videoAspectRatio); in setTvViewCallbacks()
546 if (mAspectRatio != videoAspectRatio || videoAspectRatio == 0) { in setTvViewCallbacks()
548 .onAspectRatioChanged(videoAspectRatio); in setTvViewCallbacks()
549 mAspectRatio = videoAspectRatio; in setTvViewCallbacks()
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java34 float videoAspectRatio = videoWidth / videoHeight; in scaleVideoAndFillView() local
38 if (viewAspectRatio > videoAspectRatio) { in scaleVideoAndFillView()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DVideoCallFragment.java1007 float videoAspectRatio = ((float) videoSize.x) / videoSize.y; in updateRemoteVideoScaling() local
1010 float delta = Math.abs(videoAspectRatio - displayAspectRatio); in updateRemoteVideoScaling()
1011 float sum = videoAspectRatio + displayAspectRatio; in updateRemoteVideoScaling()