Lines Matching refs:width
352 int width = mMediaPlayer.getVideoWidth(); in updateVideoRect() local
354 if (width > 0 && height > 0) { in updateVideoRect()
355 mVideoWidth = width; in updateVideoRect()
453 int width, int height) { in surfaceChanged() argument
455 Log.d(TAG, "surfaceChanged: " + width + "x" + height); in surfaceChanged()
479 int width = getVideoWidth(); in updateSize() local
481 if (width > 0 && height > 0) { in updateSize()
489 if (surfaceWidth * height < surfaceHeight * width) { in updateSize()
492 lp.width = surfaceWidth; in updateSize()
493 lp.height = surfaceWidth * height / width; in updateSize()
497 lp.width = surfaceHeight * width / height; in updateSize()
500 Log.i(TAG, "video rect is " + lp.width + "x" + lp.height); in updateSize()
503 mPresentation.updateSize(width, height); in updateSize()
556 public void updateSize(int width, int height) { in updateSize() argument
560 if (surfaceWidth * height < surfaceHeight * width) { in updateSize()
561 lp.width = surfaceWidth; in updateSize()
562 lp.height = surfaceWidth * height / width; in updateSize()
564 lp.width = surfaceHeight * width / height; in updateSize()
567 Log.i(TAG, "Presentation video rect is " + lp.width + "x" + lp.height); in updateSize()
607 int width = getVideoWidth(); in updateSize() local
609 if (width > 0 && height > 0) { in updateSize()
610 mOverlay.updateAspectRatio(width, height); in updateSize()