Home
last modified time | relevance | path

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

/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java175 Size mPreviewSize; field in Preview
223 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, in onMeasure()
229 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in onMeasure()
245 if (mPreviewSize != null) { in onLayout()
246 previewWidth = mPreviewSize.width; in onLayout()
247 previewHeight = mPreviewSize.height; in onLayout()
275 if (mPreviewSize == null) requestLayout(); in surfaceCreated()
325 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in surfaceChanged()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java166 Size mPreviewSize; field in Preview
199 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in switchCamera()
215 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, height); in onMeasure()
229 if (mPreviewSize != null) { in onLayout()
230 previewWidth = mPreviewSize.width; in onLayout()
231 previewHeight = mPreviewSize.height; in onLayout()
304 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in surfaceChanged()
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java128 private Size mPreviewSize; field in Camera2VideoFragment
354 mPreviewSize = chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), in openCamera()
359 mTextureView.setAspectRatio(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in openCamera()
361 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera()
400 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview()
407 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startPreview()
473 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform()
479 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform()
486 (float) viewHeight / mPreviewSize.getHeight(), in configureTransform()
487 (float) viewWidth / mPreviewSize.getWidth()); in configureTransform()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java162 private Size mPreviewSize; field in Camera2BasicFragment
428 mPreviewSize = chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), in setUpCameraOutputs()
435 mPreviewSize.getWidth(), mPreviewSize.getHeight()); in setUpCameraOutputs()
438 mPreviewSize.getHeight(), mPreviewSize.getWidth()); in setUpCameraOutputs()
530 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in createCameraPreviewSession()
594 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform()
600 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform()
607 (float) viewHeight / mPreviewSize.getHeight(), in configureTransform()
608 (float) viewWidth / mPreviewSize.getWidth()); in configureTransform()