Searched refs:mPreviewSize (Results 1 – 5 of 5) sorted by relevance
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | CameraFragment.java | 175 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/ |
D | CameraPreview.java | 166 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/ |
D | Camera2VideoFragment.java | 152 private Size mPreviewSize; field in Camera2VideoFragment 439 mPreviewSize = chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), in openCamera() 444 mTextureView.setAspectRatio(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in openCamera() 446 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera() 487 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview() 494 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startPreview() 552 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform() 558 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform() 565 (float) viewHeight / mPreviewSize.getHeight(), in configureTransform() 566 (float) viewWidth / mPreviewSize.getWidth()); in configureTransform() [all …]
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 182 private Size mPreviewSize; field in Camera2BasicFragment 568 mPreviewSize = chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), in setUpCameraOutputs() 576 mPreviewSize.getWidth(), mPreviewSize.getHeight()); in setUpCameraOutputs() 579 mPreviewSize.getHeight(), mPreviewSize.getWidth()); in setUpCameraOutputs() 681 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in createCameraPreviewSession() 742 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform() 748 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform() 755 (float) viewHeight / mPreviewSize.getHeight(), in configureTransform() 756 (float) viewWidth / mPreviewSize.getWidth()); in configureTransform()
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 223 mPreviewSize = null; 285 private Size mPreviewSize; field in Camera2RawFragment 367 if (mPreviewSize != null && mTextureView.isAvailable()) { 924 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in createCameraPreviewSessionLocked() 1140 if (mPreviewSize == null || !checkAspectsEqual(previewSize, mPreviewSize)) { in configureTransform() 1141 mPreviewSize = previewSize; in configureTransform()
|