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.java85 private List<Size> mPreviewSizes; field in CameraVideoActivity
545 for (int i = 0; i < mPreviewSizes.size(); i++) { in matchPreviewRecordSize()
546 if (mPreviewSizes.get(i).equals(recordSize)) { in matchPreviewRecordSize()
553 for (int i = mPreviewSizes.size() - 1; i >= 0; i--) { in matchPreviewRecordSize()
554 if (mPreviewSizes.get(i).width * recordSize.height == in matchPreviewRecordSize()
555 mPreviewSizes.get(i).height * recordSize.width) { in matchPreviewRecordSize()
556 matchedSize = mCamera.new Size(mPreviewSizes.get(i).width, in matchPreviewRecordSize()
557 mPreviewSizes.get(i).height); in matchPreviewRecordSize()
564 for (int i = mPreviewSizes.size() - 1; i >= 0; i--) { in matchPreviewRecordSize()
565 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.java92 private Size[] mPreviewSizes = null; field in PhotoCaptureActivity
140 mPreviewSizes = new Size[Camera.getNumberOfCameras()]; in onCreate()
380 mPreviewSizes = null; in showNextDialogToChoosePreviewSize()
388 mPreviewSizes[cameraId] = new Size( in showNextDialogToChoosePreviewSize()
426 … 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()