/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/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/ |
D | TaskPreviewSizeProvider.kt | 73 val previewSize = Rect(0, 0, width, height) in calculateSize() constant 75 previewSize.scale(scale) in calculateSize() 77 return previewSize in calculateSize()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2ReprocessCaptureTest.java | 226 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes() argument 235 reprocessOutputFormat, previewSize, NUM_REPROCESS_CAPTURES); in testReprocessingMaxSizes() 260 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument 283 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 288 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 293 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 309 Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, in testReprocessMixedBurst() argument 315 " previewSize: " + previewSize + " numBurst: " + numBurst); in testReprocessMixedBurst() 318 boolean enablePreview = (previewSize != null); in testReprocessMixedBurst() 326 updatePreviewSurface(previewSize); in testReprocessMixedBurst() [all …]
|
D | Camera2SwitchPreviewTest.java | 494 Size previewSize = null; in updatePreviewSurfaceWithVideo() local 510 previewSize = s; in updatePreviewSurfaceWithVideo() 516 if (previewSize == null) { in updatePreviewSurfaceWithVideo() 517 previewSize = videoSize; in updatePreviewSurfaceWithVideo() 520 updatePreviewSurface(previewSize); in updatePreviewSurfaceWithVideo()
|
D | Camera2RecordingTest.java | 780 Size previewSize = null; in updatePreviewSurfaceWithVideo() local 796 previewSize = s; in updatePreviewSurfaceWithVideo() 802 if (previewSize == null) { in updatePreviewSurfaceWithVideo() 803 previewSize = videoSize; in updatePreviewSurfaceWithVideo() 805 updatePreviewSurface(previewSize); in updatePreviewSurfaceWithVideo()
|
/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/base/packages/SettingsLib/src/com/android/settingslib/qrcode/ |
D | QrCamera.java | 150 Rect getFramePosition(Size previewSize, int cameraOrientation); in getFramePosition() argument 410 final Camera.Size previewSize = parameters.getPreviewSize(); in getBestPictureSize() local 411 final double previewRatio = getRatio(previewSize.width, previewSize.height); in getBestPictureSize() 438 final int previewArea = previewSize.width * previewSize.height; in getBestPictureSize()
|
/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 | 656 Size previewSize = settings.getCurrentPreviewSize(); in applySettingsToParameters() local 657 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 | 1038 Size previewSize = p.getPreviewSize(); in createPreviewAllocation() local 1046 yuvBuilder.setX(previewSize.width); in createPreviewAllocation() 1047 yuvBuilder.setY(previewSize.height); in createPreviewAllocation() 1106 Size previewSize = p.getPreviewSize(); in setPreviewCallbackAllocation() local 1107 if (previewSize.width != previewAllocation.getType().getX() || in setPreviewCallbackAllocation() 1108 previewSize.height != previewAllocation.getType().getY()) { in setPreviewCallbackAllocation() 1115 ". Preview is " + previewSize.width + ", " + in setPreviewCallbackAllocation() 1116 previewSize.height); in setPreviewCallbackAllocation()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraExtensionSessionImpl.java | 266 Size previewSize = findSmallestAspectMatchedSize(mSupportedPreviewSizes, captureSize); in initializeRepeatingRequestPipeline() local 267 repeatingSurfaceInfo.mWidth = previewSize.getWidth(); in initializeRepeatingRequestPipeline() 268 repeatingSurfaceInfo.mHeight = previewSize.getHeight(); in initializeRepeatingRequestPipeline()
|