Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java91 private List<Size> mPreviewSizes; field in CameraVideoActivity
648 for (int i = 0; i < mPreviewSizes.size(); i++) { in matchPreviewRecordSize()
649 if (mPreviewSizes.get(i).equals(recordSize)) { in matchPreviewRecordSize()
656 for (int i = mPreviewSizes.size() - 1; i >= 0; i--) { in matchPreviewRecordSize()
657 if (mPreviewSizes.get(i).width * recordSize.height == in matchPreviewRecordSize()
658 mPreviewSizes.get(i).height * recordSize.width) { in matchPreviewRecordSize()
659 matchedSize = mCamera.new Size(mPreviewSizes.get(i).width, in matchPreviewRecordSize()
660 mPreviewSizes.get(i).height); in matchPreviewRecordSize()
667 for (int i = mPreviewSizes.size() - 1; i >= 0; i--) { in matchPreviewRecordSize()
668 if (Math.abs((float)mPreviewSizes.get(i).width * recordSize.height / in matchPreviewRecordSize()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java80 private List<Camera.Size> mPreviewSizes; field in CameraFormatsActivity
284 if (mPreviewSizes.get(position) != mPreviewSize) {
285 mNextPreviewSize = mPreviewSizes.get(position);
340 mPreviewSizes = new ArrayList<Camera.Size>(sortedResolutions); in setUpCamera()
342 String[] availableSizeNames = new String[mPreviewSizes.size()]; in setUpCamera()
343 for (int i = 0; i < mPreviewSizes.size(); i++) { in setUpCamera()
345 Integer.toString(mPreviewSizes.get(i).width) + " x " + in setUpCamera()
346 Integer.toString(mPreviewSizes.get(i).height); in setUpCamera()
369 for (Camera.Size previewSize: mPreviewSizes) { in setUpCamera()
383 mNextPreviewSize = mPreviewSizes.get(0); in setUpCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java95 private Size[] mPreviewSizes = null; field in PhotoCaptureActivity
150 mPreviewSizes = new Size[Camera.getNumberOfCameras()]; in onCreate()
406 mPreviewSizes = null; in showNextDialogToChoosePreviewSize()
414 mPreviewSizes[cameraId] = new Size( in showNextDialogToChoosePreviewSize()
452 … Size selectedPreviewSize = (mPreviewSizes != null) ? mPreviewSizes[mSelectedResolution.cameraId] : in initializeCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java67 private List<Camera.Size> mPreviewSizes; field in CameraOrientationActivity
205 mPreviewSizes = new ArrayList<Camera.Size>(sortedResolutions); in setUpCamera()
248 mOptimalSize = getOptimalPreviewSize(mPreviewSizes, 640, 480); in startPreview()