Home
last modified time | relevance | path

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

/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java78 private Camera.Size mPreviewSize; field in CameraPreviewActivity
180 if (mPreviewSizes.get(position) != mPreviewSize) {
282 mPreviewSize = mNextPreviewSize; in startPreview()
286 p.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in startPreview()
290 int expectedBytes = mPreviewSize.width * mPreviewSize.height * in startPreview()
352 int expectedBytes = mPreviewSize.width * mPreviewSize.height * in onPreviewFrame()
364 (mPreviewSize.width != mFilterYuv.getWidth()) || in onPreviewFrame()
365 (mPreviewSize.height != mFilterYuv.getHeight()) ) { in onPreviewFrame()
367 mFilterYuv.reset(mPreviewSize.width, mPreviewSize.height); in onPreviewFrame()
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java107 private Size mPreviewSize; field in MainActivity
360 mPreviewSize = in openCamera()
363 mTextureView.setAspectRatio(mPreviewSize.getHeight(), mPreviewSize.getWidth()); in openCamera()
467 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startRecordingVideo()
477 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startRecordingVideo()
594 if (null == mCameraDevice || !mTextureView.isAvailable() || null == mPreviewSize) { in startPreview()
601 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startPreview()
648 if (null == mTextureView || null == mPreviewSize || null == activity) { in configureTransform()
653 RectF bufferRect = new RectF(0, 0, mPreviewSize.getHeight(), mPreviewSize.getWidth()); in configureTransform()
658 float scale = Math.max((float) viewHeight / mPreviewSize.getHeight(), in configureTransform()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java124 protected Size mPreviewSize; field in Camera2SurfaceViewTestCase
219 Log.v(TAG, "start preview with size " + mPreviewSize.toString()); in startPreview()
656 if (size.equals(mPreviewSize) && mPreviewSurface != null) { in updatePreviewSurface()
661 mPreviewSize = size; in updatePreviewSurface()
668 holder.setFixedSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in updatePreviewSurface()
673 WAIT_FOR_SURFACE_CHANGE_TIMEOUT_MS, mPreviewSize.getWidth(), in updatePreviewSurface()
674 mPreviewSize.getHeight()); in updatePreviewSurface()
675 assertTrue("wait for surface change to " + mPreviewSize.toString() + " timed out", res); in updatePreviewSurface()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java161 private int mPreviewSize; field in BitmapRegionTileSource.BitmapSource
166 mPreviewSize = previewSize; in BitmapSource()
183 if (mPreviewSize != 0) { in loadInBackground()
184 int previewSize = Math.min(mPreviewSize, MAX_PREVIEW_SIZE); in loadInBackground()
212 return mPreviewSize; in getPreviewSize()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2AgentImpl.java193 private Size mPreviewSize; field in AndroidCamera2AgentImpl.Camera2Handler
280 mPreviewSize = null; in handleMessage()
673 mActiveArray, mPreviewSize, mPhotoSize); in buildSettings()
693 mPreviewSize = settings.getCurrentPreviewSize(); in applyToRequest()
733 surfaceTexture.setDefaultBufferSize(mPreviewSize.width(), mPreviewSize.height()); in setPreviewTexture()