Searched refs:rotation (Results 1 – 1 of 1) sorted by relevance
757 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in configureTransform() local763 if (Surface.ROTATION_90 == rotation || Surface.ROTATION_270 == rotation) { in configureTransform()770 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()771 } else if (Surface.ROTATION_180 == rotation) { in configureTransform()840 int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); in captureStillPicture() local841 captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, getOrientation(rotation)); in captureStillPicture()868 private int getOrientation(int rotation) { in getOrientation() argument873 return (ORIENTATIONS.get(rotation) + mSensorOrientation + 270) % 360; in getOrientation()