Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSelfManagedAnswerVideoCallScreen.java128 Size previewSize = getOptimalSize(configMap.getOutputSizes(SurfaceHolder.class)); in openCamera() local
129 LogUtil.i("SelfManagedAnswerVideoCallScreen.openCamera", "Optimal size: " + previewSize); in openCamera()
130 float outputAspect = (float) previewSize.getWidth() / previewSize.getHeight(); in openCamera()
132 surfaceView.getHolder().setFixedSize(previewSize.getWidth(), previewSize.getHeight()); in openCamera()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java67 public BitmapRegionTileSource(Context context, String path, int previewSize, int rotation) { in BitmapRegionTileSource() argument
81 if (previewSize != 0) { in BitmapRegionTileSource()
82 previewSize = Math.min(previewSize, MAX_PREVIEW_SIZE); in BitmapRegionTileSource()
86 Bitmap preview = decodePreview(path, previewSize); in BitmapRegionTileSource()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLivePreviewWidgetCell.java59 LauncherAppWidgetProviderInfo info, int previewSize, int[] preScaledWidthOut) { in generateFromRemoteViews() argument
81 if (viewWidth > previewSize) { in generateFromRemoteViews()
82 scale = ((float) previewSize) / viewWidth; in generateFromRemoteViews()
83 bitmapWidth = previewSize; in generateFromRemoteViews()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java74 int previewSize; field in PreviewBackground
138 previewSize = grid.folderIconSizePx; in setup()
140 basePreviewOffsetX = (availableSpaceX - previewSize) / 2; in setup()
160 int right = left + previewSize; in getBounds()
161 int bottom = top + previewSize; in getBounds()
166 return previewSize / 2; in getRadius()
DFolderAnimationManager.java130 float previewSize = rule.getIconSize() * previewScale; in getAnimator() local
131 float initialScale = previewSize / itemsInPreview.get(0).getIconSize() in getAnimator()
151 int previewItemOffsetX = (int) (previewSize / 2); in getAnimator()
312 float previewSize = rule.getIconSize() * previewScale; in addPreviewItemAnimators() local
313 float iconScale = previewSize / itemsInPreview.get(i).getIconSize(); in addPreviewItemAnimators()
DPreviewItemManager.java138 mIcon.mPreviewLayoutRule.init(mIcon.mBackground.previewSize, mIntrinsicIconSize, in computePreviewDrawingParams()
159 final float trans = (mIcon.mBackground.previewSize - iconSize) / 2; in getFinalIconParams()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java155 Rect getFramePosition(Size previewSize, int cameraOrientation); in getFramePosition() argument
395 final Camera.Size previewSize = parameters.getPreviewSize(); in getBestPictureSize() local
396 final double previewRatio = getRatio(previewSize.width, previewSize.height); in getBestPictureSize()
423 final int previewArea = previewSize.width * previewSize.height; in getBestPictureSize()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorPreviewCamera.java96 Size previewSize = map.getOutputSizes(SurfaceTexture.class)[0]; in getCameraCapabilities() local
97 LogUtil.i("SimulatorPreviewCamera.getCameraCapabilities", "preview size: " + previewSize); in getCameraCapabilities()
98 return new CameraCapabilities(previewSize.getWidth(), previewSize.getHeight()); in getCameraCapabilities()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceSurfaceTextureNexus4Impl.java67 public void setPreviewSize(Size previewSize) { in setPreviewSize() argument
68 super.setPreviewSize(previewSize); in setPreviewSize()
70 final AspectRatio previewAspectRatio = AspectRatio.of(previewSize); in setPreviewSize()
DResourceSurfaceTextureImpl.java97 public void setPreviewSize(Size previewSize) { in setPreviewSize() argument
99 if (!mPreviewSize.equals(previewSize)) { in setPreviewSize()
100 mPreviewSize = previewSize; in setPreviewSize()
DResourceSurfaceTexture.java56 public void setPreviewSize(Size previewSize); in setPreviewSize() argument
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateStartingPreview.java156 final Size previewSize; in onEnter() local
169 previewSize = CaptureModuleUtil.getOptimalPreviewSize( in onEnter()
173 if (previewSize == null) { in onEnter()
186 mResourceSurfaceTexture.get().setPreviewSize(previewSize); in onEnter()
/packages/apps/DevCamera/src/com/android/devcamera/
DDevCameraActivity.java259 Size previewSize = mCamera.getPreviewSize(); in startCamera() local
262 int renderWidth = renderHeight * previewSize.getHeight() / previewSize.getWidth(); in startCamera()
268 mPreviewHolder.setFixedSize(previewSize.getHeight(), previewSize.getWidth()); in startCamera()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java623 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview() local
624 params.setPreviewSize(previewSize.width, previewSize.height); in tryShowPreview()
626 logCameraSize("Setting preview size: ", previewSize); in tryShowPreview()
628 cameraPreview.setSize(previewSize, cameraInfo.orientation); in tryShowPreview()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java342 Size previewSize = map.getOutputSizes(SurfaceTexture.class)[0]; in setCameraCapabilities() local
344 mCameraCapabilities = new CameraCapabilities(previewSize.getWidth(), in setCameraCapabilities()
345 previewSize.getHeight()); in setCameraCapabilities()
/packages/apps/Settings/src/com/android/settings/development/
DAdbQrcodeScannerFragment.java246 public Rect getFramePosition(Size previewSize, int cameraOrientation) { in getFramePosition() argument
247 return new Rect(0, 0, previewSize.getHeight(), previewSize.getHeight()); in getFramePosition()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DDrawableTileSource.java40 public DrawableTileSource(Context context, Drawable d, int previewSize) { in DrawableTileSource() argument
43 mPreviewSize = Math.min(previewSize, MAX_PREVIEW_SIZE); in DrawableTileSource()
/packages/apps/Camera2/src/com/android/camera/one/v1/
DOneCameraCharacteristicsImpl.java60 for (Camera.Size previewSize : supportedPreviewSizes) { in OneCameraCharacteristicsImpl()
61 mSupportedPreviewSizes.add(new Size(previewSize)); in OneCameraCharacteristicsImpl()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java742 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview() local
743 params.setPreviewSize(previewSize.width, previewSize.height); in tryShowPreview()
745 logCameraSize("Setting preview size: ", previewSize); in tryShowPreview()
747 mCameraPreview.setSize(previewSize, mCameraInfo.orientation); in tryShowPreview()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java437 public Rect getFramePosition(Size previewSize, int cameraOrientation) { in getFramePosition() argument
438 return new Rect(0, 0, previewSize.getHeight(), previewSize.getHeight()); in getFramePosition()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiDppQrCodeScannerFragment.java427 public Rect getFramePosition(Size previewSize, int cameraOrientation) { in getFramePosition() argument
428 return new Rect(0, 0, previewSize.getHeight(), previewSize.getHeight()); in getFramePosition()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java261 private Bitmap createPaddedSourceImage(Uri sourceImageUri, boolean previewSize) { in createPaddedSourceImage() argument
273 int size = previewSize ? getDisplaySize() : sourceBitmap.getWidth(); in createPaddedSourceImage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/qrcode/
DQrCameraTest.java66 public Rect getFramePosition(Size previewSize, int cameraOrientation) { in getFramePosition() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java148 Rect getFramePosition(Size previewSize, int cameraOrientation); in getFramePosition() argument
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java1650 Size previewSize = new Size(mDesiredPreviewWidth, mDesiredPreviewHeight); in setCameraParameters() local
1651 mCameraSettings.setPreviewSize(previewSize.toPortabilitySize()); in setCameraParameters()

12