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/
DDvrPlayer.java96 void onAspectRatioChanged(float videoAspectRatio); in onAspectRatioChanged() argument
523 float videoAspectRatio; in setTvViewCallbacks()
529 videoAspectRatio = in setTvViewCallbacks()
532 videoAspectRatio *= in setTvViewCallbacks()
538 videoAspectRatio = 0; in setTvViewCallbacks()
540 if (DEBUG) Log.d(TAG, "Aspect Ratio: " + videoAspectRatio); in setTvViewCallbacks()
541 if (mAspectRatio != videoAspectRatio in setTvViewCallbacks()
542 || videoAspectRatio == 0) { in setTvViewCallbacks()
544 videoAspectRatio); in setTvViewCallbacks()
545 mAspectRatio = videoAspectRatio; in setTvViewCallbacks()
DDvrPlaybackOverlayFragment.java206 public void onAspectRatioChanged(float videoAspectRatio) { in onActivityCreated()
207 updateAspectRatio(videoAspectRatio); in onActivityCreated()
423 private void updateAspectRatio(float videoAspectRatio) { in updateAspectRatio() argument
424 if (videoAspectRatio <= 0) { in updateAspectRatio()
426 videoAspectRatio = mWindowAspectRatio; in updateAspectRatio()
428 if (Math.abs(mAppliedAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()
432 if (Math.abs(mWindowAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()
434 } else if (videoAspectRatio < mWindowAspectRatio) { in updateAspectRatio()
435 int newPadding = (mWindowWidth - Math.round(mWindowHeight * videoAspectRatio)) / 2; in updateAspectRatio()
438 int newPadding = (mWindowHeight - Math.round(mWindowWidth / videoAspectRatio)) / 2; in updateAspectRatio()
[all …]
/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.java1078 float videoAspectRatio = ((float) videoSize.x) / videoSize.y; in updateRemoteVideoScaling() local
1081 float delta = Math.abs(videoAspectRatio - displayAspectRatio); in updateRemoteVideoScaling()
1082 float sum = videoAspectRatio + displayAspectRatio; in updateRemoteVideoScaling()