Searched refs:aspectRatio (Results 1 - 25 of 28) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/settings/
H A DResolutionUtil.java82 public Float aspectRatio; field in class:ResolutionUtil.ResolutionBucket
136 sortedDesiredAspectRatios.add(buckets.get(0).aspectRatio.floatValue());
141 Float aspectRatio = bucket.aspectRatio;
142 if (Arrays.asList(sDesiredAspectRatios).contains(aspectRatio)
143 && !sortedDesiredAspectRatios.contains(aspectRatio)) {
144 sortedDesiredAspectRatios.add(aspectRatio);
151 Number aspectRatio = bucket.aspectRatio;
152 if (Math.abs(aspectRatio
221 fuzzAspectRatio(float aspectRatio) argument
288 reduce(Size aspectRatio) argument
[all...]
H A DResolutionSetting.java64 * @param aspectRatio The chosen aspect ratio.
66 public void setPictureAspectRatio(CameraId cameraId, Rational aspectRatio) argument
95 ResolutionUtil.getLargestPictureSize(aspectRatio, supportedPictureSizes);
146 final Rational aspectRatio = ResolutionUtil.ASPECT_RATIO_4x3;
156 ResolutionUtil.getLargestPictureSize(aspectRatio, supportedPictureSizes);
H A DSettingsUtil.java235 float aspectRatio = size.width() / (float) size.height();
237 if (Math.abs(aspectRatio - targetAspectRatio) < 0.01) {
/packages/apps/Camera2/src/com/android/camera/
H A DTextureViewHelper.java134 public void updateAspectRatio(float aspectRatio) { argument
135 Log.v(TAG, "updateAspectRatio " + aspectRatio);
136 if (aspectRatio <= 0) {
137 Log.e(TAG, "Invalid aspect ratio: " + aspectRatio);
140 if (aspectRatio < 1f) {
141 aspectRatio = 1f / aspectRatio;
143 setAspectRatio(aspectRatio);
147 private void setAspectRatio(float aspectRatio) { argument
148 Log.v(TAG, "setAspectRatio: " + aspectRatio);
188 updateTransformFullScreen(Matrix matrix, float aspectRatio) argument
[all...]
H A DVideoController.java38 public void updatePreviewAspectRatio(float aspectRatio); argument
H A DPhotoController.java55 public void updatePreviewAspectRatio(float aspectRatio); argument
H A DVideoUI.java106 float aspectRatio;
108 aspectRatio = (float) width / height;
110 aspectRatio = (float) height / width;
112 setAspectRatio(aspectRatio);
155 float aspectRatio = ratio > 1 ? ratio : 1 / ratio;
156 if (aspectRatio != mAspectRatio) {
157 mAspectRatio = aspectRatio;
H A DPhotoUI.java258 public void updatePreviewAspectRatio(float aspectRatio) { argument
259 if (aspectRatio <= 0) {
260 Log.e(TAG, "Invalid aspect ratio: " + aspectRatio);
263 if (aspectRatio < 1f) {
264 aspectRatio = 1f / aspectRatio;
267 if (mAspectRatio != aspectRatio) {
268 mAspectRatio = aspectRatio;
H A DCaptureLayoutHelper.java83 public void onPreviewAspectRatioChanged(float aspectRatio) { argument
84 if (mAspectRatio == aspectRatio) {
87 mAspectRatio = aspectRatio;
H A DCameraActivity.java1124 public void updatePreviewAspectRatio(float aspectRatio) { argument
1125 mCameraAppUI.updatePreviewAspectRatio(aspectRatio);
1129 public void updatePreviewTransformFullscreen(Matrix matrix, float aspectRatio) { argument
1130 mCameraAppUI.updatePreviewTransformFullscreen(matrix, aspectRatio);
H A DCaptureModule.java1279 final float aspectRatio = (size.getHeight() > size.getWidth())
1283 return Math.abs(aspectRatio - (16.f / 9.f)) < 0.001f;
/packages/apps/Camera2/src/com/android/camera/ui/
H A DPreviewStatusListener.java78 public void onPreviewAspectRatioChanged(float aspectRatio); argument
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DCameraPreview.java82 final float aspectRatio = (float) mCameraWidth / (float) mCameraHeight;
85 height = (int) (width * aspectRatio);
87 height = (int) (width / aspectRatio);
H A DCameraManager.java994 final float aspectRatio = BugleGservices.get().getFloat(
1002 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels));
1014 final float aspectRatio = pictureSize.width / (float) pictureSize.height;
1019 aspectRatio, capturePixels));
/packages/apps/Camera2/src/com/android/camera/widget/
H A DAspectRatioDialogLayout.java107 private void setAspectRatio(Rational aspectRatio) { argument
108 mAspectRatio = aspectRatio;
/packages/apps/Camera2/src/com/android/camera/app/
H A DFirstRunDialog.java158 public void onConfirm(Rational aspectRatio) {
163 mResolutionSetting.setPictureAspectRatio(backCameraId, aspectRatio);
167 mResolutionSetting.setPictureAspectRatio(frontCameraId, aspectRatio);
H A DAppController.java211 * @param aspectRatio aspect ratio of preview stream
213 public void updatePreviewAspectRatio(float aspectRatio); argument
221 * @param aspectRatio the desired aspect ratio of the preview
223 public void updatePreviewTransformFullscreen(Matrix matrix, float aspectRatio); argument
H A DCameraAppUI.java665 public void updatePreviewAspectRatio(float aspectRatio) { argument
666 mTextureViewHelper.updateAspectRatio(aspectRatio);
690 * @param aspectRatio the desired aspect ratio for the preview.
692 public void updatePreviewTransformFullscreen(Matrix matrix, float aspectRatio) { argument
693 mTextureViewHelper.updateTransformFullScreen(matrix, aspectRatio);
1378 public void onPreviewAspectRatioChanged(float aspectRatio) {
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DAsyncImageView.java336 final float aspectRatio = measuredWidth / (float) measuredHeight;
337 if (aspectRatio == 0) {
343 height = resolveSize((int) (minimumWidth / aspectRatio),
345 width = (int) (height * aspectRatio);
349 width = resolveSize((int) (minimumHeight * aspectRatio),
351 height = (int) (width / aspectRatio);
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DWallpaperUtils.java104 float aspectRatio = width / (float) height;
125 return x * aspectRatio + y;
/packages/apps/Camera2/src/com/android/camera/captureintent/
H A DCaptureIntentModuleUI.java171 * @param aspectRatio The preview aspect ratio.
173 public void updatePreviewAspectRatio(float aspectRatio) { argument
175 mAppUI.updatePreviewAspectRatio(aspectRatio);
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java420 * Given a size, return the largest size with the given aspectRatio that
424 * @param aspectRatio the target aspect ratio
428 public static Size constrainToAspectRatio(Size size, float aspectRatio) { argument
434 if (currentAspectRatio > aspectRatio) {
437 width = height * aspectRatio;
439 height = width / aspectRatio;
441 } else if (currentAspectRatio < aspectRatio) {
444 width = height * aspectRatio;
446 height = width / aspectRatio;
H A DSize.java127 public float aspectRatio() { method in class:Size
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DVideoCallPresenter.java921 float aspectRatio = 1.0f;
923 aspectRatio = (float) width / (float) height;
928 setPreviewSize(mDeviceOrientation, aspectRatio);
1009 * @param aspectRatio The aspect ratio of the camera (width / height).
1011 private void setPreviewSize(int orientation, float aspectRatio) { argument
1022 width = (int) (mMinimumVideoDimension * aspectRatio);
1027 height = (int) (mMinimumVideoDimension * aspectRatio);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInvariantDeviceProfile.java337 float aspectRatio = width / (float) height;
358 return x * aspectRatio + y;

Completed in 797 milliseconds

12