Lines Matching refs:height
353 int height = mMediaPlayer.getVideoHeight();
354 if (width > 0 && height > 0) {
356 mVideoHeight = height;
453 int width, int height) {
455 Log.d(TAG, "surfaceChanged: " + width + "x" + height);
480 int height = getVideoHeight();
481 if (width > 0 && height > 0) {
489 if (surfaceWidth * height < surfaceHeight * width) {
491 // while height is derived from video's aspect ratio
493 lp.height = surfaceWidth * height / width;
495 // Black bars on left&right, mSurfaceView has full layout height,
497 lp.width = surfaceHeight * width / height;
498 lp.height = surfaceHeight;
500 Log.i(TAG, "video rect is " + lp.width + "x" + lp.height);
503 mPresentation.updateSize(width, height);
556 public void updateSize(int width, int height) {
560 if (surfaceWidth * height < surfaceHeight * width) {
562 lp.height = surfaceWidth * height / width;
564 lp.width = surfaceHeight * width / height;
565 lp.height = surfaceHeight;
567 Log.i(TAG, "Presentation video rect is " + lp.width + "x" + lp.height);
608 int height = getVideoHeight();
609 if (width > 0 && height > 0) {
610 mOverlay.updateAspectRatio(width, height);