Home
last modified time | relevance | path

Searched refs:viewRect (Results 1 – 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java659 Rect viewRect = mFormatView.getDrawable().getBounds(); in onPostExecute() local
660 transform.postTranslate(-viewRect.width() / 2, -viewRect.height() / 2); in onPostExecute()
662 transform.postTranslate(viewRect.height() / 2, viewRect.width() / 2); in onPostExecute()
664 mPreviewView.getMeasuredWidth() / (float) viewRect.height(), in onPostExecute()
665 mPreviewView.getMeasuredHeight() / (float) viewRect.width()); in onPostExecute()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java184 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in updatePreviewDisplayRotation() local
186 float centerX = viewRect.centerX(); in updatePreviewDisplayRotation()
187 float centerY = viewRect.centerY(); in updatePreviewDisplayRotation()
191 transformMatrix.setRectToRect(viewRect, bufRect, Matrix.ScaleToFit.FILL); in updatePreviewDisplayRotation()
/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java810 Rect viewRect = new Rect(0, 0, mImageViewRegular.getWidth(), mImageViewRegular.getHeight()); in testAnimateTransform() local
813 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform()
825 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform()
835 Rect viewRect = new Rect(0, 0, mImageViewRegular.getWidth(), mImageViewRegular.getHeight()); in testAnimateTransformWithNullPassed() local
843 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransformWithNullPassed()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java713 RectF viewRect = new RectF(0, 0, mPreviewTexWidth, mPreviewTexHeight); in configurePreviewTextureTransform() local
715 float centerX = viewRect.centerX(); in configurePreviewTextureTransform()
716 float centerY = viewRect.centerY(); in configurePreviewTextureTransform()
720 matrix.setRectToRect(viewRect, bufferRect, Matrix.ScaleToFit.FILL); in configurePreviewTextureTransform()