Searched refs:viewRect (Results 1 – 4 of 4) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/ |
D | CameraBokehActivity.java | 760 RectF viewRect = new RectF(0, 0, mPreviewView.getWidth(), mPreviewView.getHeight()); in configurePreviewTextureTransform() local 771 float viewAspectRatio = viewRect.width() / viewRect.height(); in configurePreviewTextureTransform() 776 scale = new PointF((viewRect.height() / viewRect.width()) in configurePreviewTextureTransform() 779 scale = new PointF(1f, (viewRect.width() / viewRect.height()) in configurePreviewTextureTransform() 791 matrix.setScale(scale.x, scale.y, viewRect.centerX(), viewRect.centerY()); in configurePreviewTextureTransform() 793 matrix.postRotate(360 - displayRotation, viewRect.centerX(), viewRect.centerY()); in configurePreviewTextureTransform() 814 RectF viewRect = new RectF(0, 0, mImageView.getMeasuredWidth(), in configureImageViewTransform() local 828 float widthRatio = expectedPreviewWidth / viewRect.width(); in configureImageViewTransform() 829 float heightRatio = expectedPreviewHeight / viewRect.height(); in configureImageViewTransform() 848 matrix.postTranslate(viewRect.width() / 2 - imageRect.width() / 2, in configureImageViewTransform() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/ |
D | CameraFormatsActivity.java | 659 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/ |
D | Camera2MultiViewTestCase.java | 195 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in updatePreviewDisplayRotation() local 197 float centerX = viewRect.centerX(); in updatePreviewDisplayRotation() 198 float centerY = viewRect.centerY(); in updatePreviewDisplayRotation() 202 transformMatrix.setRectToRect(viewRect, bufRect, Matrix.ScaleToFit.FILL); in updatePreviewDisplayRotation()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ImageViewTest.java | 835 Rect viewRect = new Rect(0, 0, mImageViewRegular.getWidth(), mImageViewRegular.getHeight()); in testAnimateTransform() local 838 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform() 850 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransform() 860 Rect viewRect = new Rect(0, 0, mImageViewRegular.getWidth(), mImageViewRegular.getHeight()); in testAnimateTransformWithNullPassed() local 868 assertEquals(viewRect, mImageViewRegular.getDrawable().getBounds()); in testAnimateTransformWithNullPassed()
|