Home
last modified time | relevance | path

Searched refs:previewSize (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyRequest.java35 public final Size previewSize; field in LegacyRequest
48 Size previewSize, Camera.Parameters parameters) { in LegacyRequest() argument
51 this.previewSize = checkNotNull(previewSize, "previewSize must not be null"); in LegacyRequest()
DParameterUtils.java492 private static Rect getPreviewCropRectangleUnzoomed(Rect activeArray, Size previewSize) { in getPreviewCropRectangleUnzoomed() argument
493 if (previewSize.getWidth() > activeArray.width()) { in getPreviewCropRectangleUnzoomed()
495 } else if (previewSize.getHeight() > activeArray.height()) { in getPreviewCropRectangleUnzoomed()
500 float aspectRatioPreview = previewSize.getWidth() * 1.0f / previewSize.getHeight(); in getPreviewCropRectangleUnzoomed()
622 Rect activeArray, Size previewSize) { in getAvailablePreviewZoomCropRectangles() argument
625 checkNotNull(previewSize, "previewSize must not be null"); in getAvailablePreviewZoomCropRectangles()
627 return getAvailableCropRectangles(params, activeArray, previewSize); in getAvailablePreviewZoomCropRectangles()
750 cropRegion, Size previewSize, Camera.Parameters params) { in convertScalerCropRegion() argument
768 previewSize, userCropRegion, in convertScalerCropRegion()
DLegacyFaceDetectMapper.java232 Size previewSize = legacyRequest.previewSize; in mapResultFaces() local
237 request.get(CaptureRequest.SCALER_CROP_REGION), previewSize, params); in mapResultFaces()
DLegacyResultMapper.java112 Size previewSize = legacyRequest.previewSize; in convertResultMetadata() local
120 request.get(CaptureRequest.SCALER_CROP_REGION), previewSize, params); in convertResultMetadata()
DLegacyRequestMapper.java61 Size previewSize = legacyRequest.previewSize; in convertRequestMetadata() local
73 previewSize, in convertRequestMetadata()
DRequestThreadManager.java753 Size previewSize = ParameterUtils.convertSize(mParams.getPreviewSize());
756 request, previewSize, mParams); // params are copied
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java165 public BitmapSource(int previewSize) { in BitmapSource() argument
166 mPreviewSize = previewSize; in BitmapSource()
184 int previewSize = Math.min(mPreviewSize, MAX_PREVIEW_SIZE); in loadInBackground() local
189 float scale = (float) previewSize / Math.max(width, height); in loadInBackground()
226 public FilePathBitmapSource(String path, int previewSize) { in FilePathBitmapSource() argument
227 super(previewSize); in FilePathBitmapSource()
261 public UriBitmapSource(Context context, Uri uri, int previewSize) { in UriBitmapSource() argument
262 super(previewSize); in UriBitmapSource()
326 public ResourceBitmapSource(Resources res, int resId, int previewSize) { in ResourceBitmapSource() argument
327 super(previewSize); in ResourceBitmapSource()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextureViewActivity.java105 Camera.Size previewSize = mCamera.getParameters().getPreviewSize(); in onSurfaceTextureAvailable() local
107 previewSize.width, previewSize.height, Gravity.CENTER)); in onSurfaceTextureAvailable()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraCapabilities.java744 final Size previewSize = settings.getCurrentPreviewSize(); in previewSizeCheck() local
745 if (mSupportedPreviewSizes.contains(previewSize)) { in previewSizeCheck()
748 Log.v(TAG, "Unsupported preview size:" + previewSize); in previewSizeCheck()
DCameraSettings.java232 public boolean setPreviewSize(Size previewSize) { in setPreviewSize() argument
238 mCurrentPreviewSize = new Size(previewSize); in setPreviewSize()
DAndroidCamera2Settings.java557 private static Rect effectiveCropRectFromRequested(Rect requestedCrop, Size previewSize) { in effectiveCropRectFromRequested() argument
559 float aspectRatioPreview = previewSize.width() * 1.0f / previewSize.height(); in effectiveCropRectFromRequested()
DAndroidCameraAgentImpl.java659 Size previewSize = settings.getCurrentPreviewSize(); in applySettingsToParameters() local
660 parameters.setPreviewSize(previewSize.width(), previewSize.height()); in applySettingsToParameters()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java175 Camera.Size previewSize = camera.getParameters().getPreviewSize(); in setCamera() local
176 mCameraRatio = (float)previewSize.width/previewSize.height; in setCamera()
/frameworks/base/core/java/android/hardware/
DCamera.java966 Size previewSize = p.getPreviewSize(); in createPreviewAllocation() local
974 yuvBuilder.setX(previewSize.width); in createPreviewAllocation()
975 yuvBuilder.setY(previewSize.height); in createPreviewAllocation()
1034 Size previewSize = p.getPreviewSize(); in setPreviewCallbackAllocation() local
1035 if (previewSize.width != previewAllocation.getType().getX() || in setPreviewCallbackAllocation()
1036 previewSize.height != previewAllocation.getType().getY()) { in setPreviewCallbackAllocation()
1043 ". Preview is " + previewSize.width + ", " + in setPreviewCallbackAllocation()
1044 previewSize.height); in setPreviewCallbackAllocation()