Home | History | Annotate | Download | only in media

Lines Matching refs:viewWidth

142         final int viewWidth = getWidth();
144 if (viewWidth <= 0) {
201 int viewWidth = getWidth();
202 if (width < viewWidth) {
203 deltaX = (viewWidth - width) / 2 - rect.left;
206 } else if (rect.right < viewWidth) {
207 deltaX = viewWidth - rect.right;
245 float viewWidth = getWidth();
254 float widthScale = Math.min(viewWidth / w, 2.0f);
261 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F);