/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyRequest.java | 35 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()
|
D | ParameterUtils.java | 492 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()
|
D | LegacyFaceDetectMapper.java | 232 Size previewSize = legacyRequest.previewSize; in mapResultFaces() local 237 request.get(CaptureRequest.SCALER_CROP_REGION), previewSize, params); in mapResultFaces()
|
D | LegacyResultMapper.java | 112 Size previewSize = legacyRequest.previewSize; in convertResultMetadata() local 120 request.get(CaptureRequest.SCALER_CROP_REGION), previewSize, params); in convertResultMetadata()
|
D | LegacyRequestMapper.java | 61 Size previewSize = legacyRequest.previewSize; in convertRequestMetadata() local 73 previewSize, in convertRequestMetadata()
|
D | RequestThreadManager.java | 753 Size previewSize = ParameterUtils.convertSize(mParams.getPreviewSize()); 756 request, previewSize, mParams); // params are copied
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 165 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/ |
D | TextureViewActivity.java | 105 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/ |
D | CameraCapabilities.java | 744 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()
|
D | CameraSettings.java | 232 public boolean setPreviewSize(Size previewSize) { in setPreviewSize() argument 238 mCurrentPreviewSize = new Size(previewSize); in setPreviewSize()
|
D | AndroidCamera2Settings.java | 557 private static Rect effectiveCropRectFromRequested(Rect requestedCrop, Size previewSize) { in effectiveCropRectFromRequested() argument 559 float aspectRatioPreview = previewSize.width() * 1.0f / previewSize.height(); in effectiveCropRectFromRequested()
|
D | AndroidCameraAgentImpl.java | 659 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/ |
D | GL2CameraEye.java | 175 Camera.Size previewSize = camera.getParameters().getPreviewSize(); in setCamera() local 176 mCameraRatio = (float)previewSize.width/previewSize.height; in setCamera()
|
/frameworks/base/core/java/android/hardware/ |
D | Camera.java | 966 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()
|