Lines Matching refs:scale
212 // Set the initial position and scale.
213 // The position and scale will be clamped when the display is first shown.
222 float scale = mWindowScale * mLiveScale;
223 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth);
224 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalHeight / mHeight);
225 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale));
227 float offsetScale = (scale / mWindowScale - 1.0f) * 0.5f;
228 int width = (int)(mWidth * scale);
229 int height = (int)(mHeight * scale);
236 Slog.d(TAG, "updateWindowParams: scale=" + scale
242 mTextureView.setScaleX(scale);
243 mTextureView.setScaleY(scale);