/packages/apps/Camera2/src/com/android/camera/util/ |
D | Size.java | 34 public class Size { class 40 public Size(Point point) { in Size() method in Size 46 public Size(android.util.Size size) { in Size() method in Size 51 public Size(int width, int height) { in Size() method in Size 56 public static Size of(Rect rectangle) { in of() 57 return new Size(rectangle.width(), rectangle.height()); in of() 65 public Size(Camera.Size other) { in Size() method in Size 70 public Size(com.android.ex.camera2.portability.Size size) { in Size() method in Size 96 public Size transpose() { in transpose() 97 return new Size(height, width); in transpose() [all …]
|
D | CameraUtil.java | 428 public static Size constrainToAspectRatio(Size size, float aspectRatio) { in constrainToAspectRatio() 450 return new Size((int) width, (int) height); in constrainToAspectRatio() 470 private static Size getDefaultDisplaySize() { in getDefaultDisplaySize() 474 return new Size(res); in getDefaultDisplaySize() 477 public static Size getOptimalPreviewSize(List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() 500 public static int getOptimalPreviewSizeIndex(List<Size> sizes, double targetRatio) { in getOptimalPreviewSizeIndex() 523 List<Size> previewSizes, double targetRatio, Double aspectRatioTolerance) { in getOptimalPreviewSizeIndex() 542 Size defaultDisplaySize = getDefaultDisplaySize(); in getOptimalPreviewSizeIndex() 546 Size size = previewSizes.get(i); in getOptimalPreviewSizeIndex() 571 Size size = previewSizes.get(i); in getOptimalPreviewSizeIndex() [all …]
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 26 import com.android.camera.util.Size; 62 public static Size NEXUS_5_LARGE_16_BY_9_SIZE = new Size(3264, 1836); 73 private static Size[] sDesiredAspectRatioSizes = { 74 new Size(16, 9), new Size(4, 3) 86 public List<Size> sizes = new LinkedList<Size>(); 90 public Size largest; 103 public void add(Size size) { in add() 105 Collections.sort(sizes, new Comparator<Size>() { in add() 107 public int compare(Size size, Size size2) { in add() 130 …public static List<Size> getDisplayableSizesFromSupported(List<Size> sizes, boolean isBackCamera) { in getDisplayableSizesFromSupported() [all …]
|
D | SettingsUtil.java | 29 import com.android.camera.util.Size; 58 public Size large; 59 public Size medium; 60 public Size small; 74 public Size getFromSetting(String sizeSetting, List<Size> supportedSizes) { in getFromSetting() 82 Size desiredSize = sizeFromSettingString(sizeSetting); in getFromSetting() 160 public static Size getPhotoSize(String sizeSetting, List<Size> supported, int cameraId) { in getPhotoSize() 164 Size selectedSize = getCameraPictureSize(sizeSetting, supported, cameraId); in getPhotoSize() 180 private static Size getCameraPictureSize(String sizeSetting, List<Size> supported, in getCameraPictureSize() 194 static SelectedPictureSizes getSelectedCameraPictureSizes(List<Size> supported, int cameraId) { in getSelectedCameraPictureSizes() [all …]
|
D | CameraPictureSizesCacher.java | 25 import com.android.camera.util.Size; 44 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { in updateSizesForCamera() 53 editor.putString(key_sizes, Size.listToString(sizes)); in updateSizesForCamera() 69 public static List<Size> getSizesForCamera(int cameraId, Context context) { in getSizesForCamera() 70 Optional<List<Size>> cachedSizes = getCachedSizesForCamera(cameraId, context); in getSizesForCamera() 88 List<Size> sizes = Size.buildListFromCameraSizes(thisCamera.getParameters() in getSizesForCamera() 93 editor.putString(key_sizes, Size.listToString(sizes)); in getSizesForCamera() 109 public static Optional<List<Size>> getCachedSizesForCamera(int cameraId, Context context) { in getCachedSizesForCamera() 118 return Optional.of(Size.stringToList(thisCameraCachedSizeList)); in getCachedSizesForCamera()
|
D | PictureSizeLoader.java | 25 import com.android.camera.util.Size; 50 public final List<Size> backCameraSizes; 51 public final List<Size> frontCameraSizes; 55 PictureSizes(List<Size> backCameraSizes, in PictureSizes() 56 List<Size> frontCameraSizes, in PictureSizes() 111 List<Size> backCameraSizes = computeSizesForCamera(SettingsUtil.CAMERA_FACING_BACK); in computePictureSizes() 112 List<Size> frontCameraSizes = computeSizesForCamera(SettingsUtil.CAMERA_FACING_FRONT); in computePictureSizes() 121 private List<Size> computeSizesForCamera(CameraDeviceSelector facingSelector) { in computeSizesForCamera() 122 List<Size> sizes; in computeSizesForCamera()
|
D | ResolutionSetting.java | 31 import com.android.camera.util.Size; 81 List<Size> supportedPictureSizes = cameraCharacteristics in setPictureAspectRatio() 94 final Size chosenPictureSize = in setPictureAspectRatio() 107 public Size getPictureSize(CameraId cameraId, Facing cameraFacing) in getPictureSize() 112 Size pictureSize = null; in getPictureSize() 151 final List<Size> supportedPictureSizes = in getPictureSize() 155 final Size fallbackPictureSize = in getPictureSize() 181 Size pictureSize = getPictureSize(cameraId, facing); in getPictureAspectRatio()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | GlideFilmstripManager.java | 31 import com.android.camera.util.Size; 60 private static Size MAX_IMAGE_DISPLAY_SIZE; 61 public static Size getMaxImageDisplaySize() { in getMaxImageDisplaySize() 66 MAX_IMAGE_DISPLAY_SIZE = new Size(DEFAULT_MAX_IMAGE_DISPLAY_SIZE, in getMaxImageDisplaySize() 71 MAX_IMAGE_DISPLAY_SIZE = new Size(MAX_GL_TEXTURE_SIZE, MAX_GL_TEXTURE_SIZE); in getMaxImageDisplaySize() 73 MAX_IMAGE_DISPLAY_SIZE = new Size(size, size); in getMaxImageDisplaySize() 80 public static final Size MEDIASTORE_THUMB_SIZE = new Size(512, 384); 81 public static final Size TINY_THUMB_SIZE = new Size(256, 256); 130 public final DrawableRequestBuilder<Uri> loadFull(Uri uri, Key key, Size original) { in loadFull() 131 Size size = clampSize(original, MAXIMUM_FULL_RES_PIXELS, getMaxImageDisplaySize()); in loadFull() [all …]
|
D | FilmstripItemData.java | 21 import com.android.camera.util.Size; 43 private final Size mDimensions; 56 Size dimensions, in FilmstripItemData() 127 /* package */ Size getDimensions() { in getDimensions() 182 public static final Size ZERO = new Size(0, 0); 191 private Size mDimensions = ZERO; 261 public Builder withDimensions(Size dimensions) { in withDimensions()
|
D | SessionItem.java | 28 import com.android.camera.util.Size; 58 Size dimension = getSessionSize(uri); in create() 65 protected SessionItem(Context context, Uri uri, Size dimension) { in SessionItem() 84 private static Size getSessionSize(Uri uri) { in getSessionSize() 89 return new Size(size); in getSessionSize() 144 Size dimension = getSessionSize(mData.getUri()); in refresh() 183 public Size getDimensions() { in getDimensions()
|
D | VideoDataFactory.java | 24 import com.android.camera.util.Size; 33 private static final Size UNKNOWN_SIZE = new Size(-2, -2); 48 Size dimensions; in fromCursor() 58 dimensions = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in fromCursor() 64 dimensions = new Size(width, height); in fromCursor()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraInfoCache.java | 26 import android.util.Size; 44 private Size mLargestYuvSize; 45 private Size mLargestJpegSize; 46 private Size mRawSize; 52 private Size mDepthCloudSize = null; 91 Size size = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 100 Size size = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 196 …Size pixelArraySize = mCameraCharacteristics.get(CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZ… in getFieldOfView() 215 private Size returnLargestSize(Size[] sizes) { in returnLargestSize() 216 Size largestSize = null; in returnLargestSize() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
D | PictureSizeCalculator.java | 24 import com.android.camera.util.Size; 54 private final Size mSize; 57 private Configuration(Size size, Rect postCrop) { in Configuration() 73 public Size getNativeOutputSize() { in getNativeOutputSize() 111 private Size getSmallestSupportedSizeContainingTarget(List<Size> supported, Size target) { in getSmallestSupportedSizeContainingTarget() 113 Size best = null; in getSmallestSupportedSizeContainingTarget() 115 for (Size candidate : supported) { in getSmallestSupportedSizeContainingTarget() 145 public Configuration computeConfiguration(Size targetSize, int imageFormat) in computeConfiguration() 147 List<Size> supportedPictureSizes = mCameraCharacteristics in computeConfiguration() 153 Size size = getSmallestSupportedSizeContainingTarget(supportedPictureSizes, targetSize); in computeConfiguration() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureModuleUtil.java | 26 import com.android.camera.util.Size; 55 public static Size getOptimalPreviewSize(Size[] sizes,double targetRatio) { in getOptimalPreviewSize() 65 public static Size getOptimalPreviewSize(Size[] sizes, in getOptimalPreviewSize() 72 for (Size s : sizes) { in getOptimalPreviewSize() 77 ArrayList<Size> camera1Sizes = new ArrayList<Size>(count); in getOptimalPreviewSize() 80 for (Size s : sizes) { in getOptimalPreviewSize() 82 camera1Sizes.add(new Size(s.getWidth(), s.getHeight())); in getOptimalPreviewSize() 94 Size optimal = camera1Sizes.get(optimalIndex); in getOptimalPreviewSize() 95 for (Size s : sizes) { in getOptimalPreviewSize() 107 public static Size pickBufferDimensions(Size[] supportedPreviewSizes, in pickBufferDimensions() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/ |
D | Camera2PreviewSizeSelector.java | 21 import com.android.camera.util.Size; 33 private final List<Size> mSupportedPreviewSizes; 35 public Camera2PreviewSizeSelector(List<Size> supportedPreviewSizes) { in Camera2PreviewSizeSelector() 39 public Size pickPreviewSize(Size pictureSize) { in pickPreviewSize() 47 Size size = CaptureModuleUtil.getOptimalPreviewSize( in pickPreviewSize() 48 (Size[]) mSupportedPreviewSizes.toArray(new Size[mSupportedPreviewSizes.size()]), in pickPreviewSize() 56 private Size getLargestPictureSize() { in getLargestPictureSize() 57 return Collections.max(mSupportedPreviewSizes, new Comparator<Size>() { in getLargestPictureSize() 59 public int compare(Size size1, Size size2) { in getLargestPictureSize()
|
/packages/apps/Camera2/src/com/android/camera/one/v1/ |
D | OneCameraCharacteristicsImpl.java | 28 import com.android.camera.util.Size; 41 private final ArrayList<Size> mSupportedPictureSizes = new ArrayList<Size>(); 44 private final ArrayList<Size> mSupportedPreviewSizes = new ArrayList<Size>(); 51 List<Camera.Size> supportedPictureSizes = cameraParameters.getSupportedPictureSizes(); in OneCameraCharacteristicsImpl() 53 for (Camera.Size pictureSize : supportedPictureSizes) { in OneCameraCharacteristicsImpl() 54 mSupportedPictureSizes.add(new Size(pictureSize)); in OneCameraCharacteristicsImpl() 58 List<Camera.Size> supportedPreviewSizes = cameraParameters.getSupportedPreviewSizes(); in OneCameraCharacteristicsImpl() 60 for (Camera.Size previewSize : supportedPreviewSizes) { in OneCameraCharacteristicsImpl() 61 mSupportedPreviewSizes.add(new Size(previewSize)); in OneCameraCharacteristicsImpl() 67 public List<Size> getSupportedPictureSizes(int imageFormat) { in getSupportedPictureSizes() [all …]
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceSurfaceTextureImpl.java | 23 import com.android.camera.util.Size; 41 private Size mPreviewSize; 44 private Size mPreviewLayoutSize; 47 private Size mSurfaceTextureDefaultBufferSize; 72 mPreviewSize = new Size(0, 0); in ResourceSurfaceTextureImpl() 73 mPreviewLayoutSize = new Size(0, 0); in ResourceSurfaceTextureImpl() 74 mSurfaceTextureDefaultBufferSize = new Size(0, 0); in ResourceSurfaceTextureImpl() 87 public Size getPreviewSize() { in getPreviewSize() 92 public Size getPreviewLayoutSize() { in getPreviewLayoutSize() 97 public void setPreviewSize(Size previewSize) { in setPreviewSize() [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
D | phNxpExtns.c | 132 msg.Size = buflen; in EXTNS_MfcCallBack() 165 msg.Size = 0; in EXTNS_MfcCheckNDef() 198 msg.Size = 0; in EXTNS_MfcReadNDef() 228 msg.Size = 0; in EXTNS_MfcPresenceCheck() 271 msg.Size = len; in EXTNS_MfcSetReadOnly() 306 msg.Size = len; in EXTNS_MfcWriteNDef() 339 msg.Size = len; in EXTNS_MfcFormatTag() 369 msg.Size = 0; in EXTNS_MfcDisconnect() 398 msg.Size = 0; in EXTNS_MfcActivated() 427 msg.Size = len; in EXTNS_MfcTransceive() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraCharacteristicsImpl.java | 37 import com.android.camera.util.Size; 60 public List<Size> getSupportedPictureSizes(int imageFormat) { in getSupportedPictureSizes() 71 ArrayList<Size> supportedPictureSizes = new ArrayList<>(); in getSupportedPictureSizes() 72 for (android.util.Size androidSize : configMap.getOutputSizes(imageFormat)) { in getSupportedPictureSizes() 73 supportedPictureSizes.add(new Size(androidSize)); in getSupportedPictureSizes() 79 public List<Size> getSupportedPreviewSizes() { in getSupportedPreviewSizes() 89 ArrayList<Size> supportedPictureSizes = new ArrayList<>(); in getSupportedPreviewSizes() 90 for (android.util.Size androidSize : configMap.getOutputSizes(SurfaceTexture.class)) { in getSupportedPreviewSizes() 91 supportedPictureSizes.add(new Size(androidSize)); in getSupportedPreviewSizes()
|
D | OneCameraZslImpl.java | 69 import com.android.camera.util.Size; 293 OneCameraZslImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraZslImpl() 389 public Size getDefaultPictureSize() { in getDefaultPictureSize() 392 android.util.Size[] supportedSizes = configs.getOutputSizes(sCaptureImageFormat); in getDefaultPictureSize() 395 android.util.Size largestSupportedSize = supportedSizes[0]; in getDefaultPictureSize() 406 return new Size(largestSupportedSize.getWidth(), largestSupportedSize.getHeight()); in getDefaultPictureSize() 594 public Size[] getSupportedPreviewSizes() { in getSupportedPreviewSizes() 597 return Size.convert(config.getOutputSizes(sCaptureImageFormat)); in getSupportedPreviewSizes() 618 Size size = getImageSizeForOrientation(image.getWidth(), image.getHeight(), in savePicture() 992 private Size getImageSizeForOrientation(int originalWidth, int originalHeight, in getImageSizeForOrientation() [all …]
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
D | PreviewTransformCalculator.java | 21 import com.android.camera.util.Size; 45 public Matrix toTransformMatrix(Size previewViewSize, Size previewStreamSize) { in toTransformMatrix() 51 Size previewBufferSize = previewStreamSize; in toTransformMatrix() 54 previewBufferSize = new Size(previewStreamSize.height(), previewStreamSize.width()); in toTransformMatrix() 87 Size rotatedPreviewSize = previewStreamSize; in toTransformMatrix() 89 rotatedPreviewSize = new Size(previewStreamSize.height(), previewStreamSize.width()); in toTransformMatrix()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 455 final Camera.Size size = camera.getParameters().getPictureSize(); in takePicture() 601 final Camera.Size pictureSize = chooseBestPictureSize(); in tryShowPreview() 602 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview() 655 private Camera.Size chooseBestPictureSize() { in chooseBestPictureSize() 663 private Camera.Size chooseBestPreviewSize(final Camera.Size pictureSize) { in chooseBestPreviewSize() 664 final List<Camera.Size> sizes = in chooseBestPreviewSize() 665 new ArrayList<Camera.Size>(mCamera.getParameters().getSupportedPreviewSizes()); in chooseBestPreviewSize() 688 private static class SizeComparator implements Comparator<Camera.Size> { 718 public int compare(final Camera.Size left, final Camera.Size right) { in compare() 814 private void logCameraSize(final String prefix, final Camera.Size size) { in logCameraSize()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | valuetest.cpp | 83 EXPECT_EQ(4u, x.Size()); in TEST() 89 EXPECT_EQ(4u, y.Size()); in TEST() 95 EXPECT_EQ(4u, z.Size()); in TEST() 252 EXPECT_EQ(v1.Size(), v2.Size()); in TestCopyFrom() 255 EXPECT_TRUE(v1.Size() != v2.Size()); in TestCopyFrom() 257 EXPECT_TRUE(v1.Size() == v2.Size()); in TestCopyFrom() 723 EXPECT_EQ(0u, x.Size()); in TEST() 726 EXPECT_EQ(0u, y.Size()); in TEST() 748 EXPECT_EQ(5u, x.Size()); in TEST() 750 EXPECT_EQ(5u, y.Size()); in TEST() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 560 final Camera.Size size = camera.getParameters().getPictureSize(); in takePicture() 740 final Camera.Size pictureSize = chooseBestPictureSize(); in tryShowPreview() 741 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview() 958 private Camera.Size chooseBestPictureSize() { in chooseBestPictureSize() 997 final List<Camera.Size> sizes = new ArrayList<Camera.Size>( in chooseBestPictureSize() 1011 private Camera.Size chooseBestPreviewSize(final Camera.Size pictureSize) { in chooseBestPreviewSize() 1012 final List<Camera.Size> sizes = new ArrayList<Camera.Size>( in chooseBestPreviewSize() 1035 private static class SizeComparator implements Comparator<Camera.Size> { 1062 public int compare(final Camera.Size left, final Camera.Size right) { in compare() 1148 private void logCameraSize(final String prefix, final Camera.Size size) { in logCameraSize()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 35 import android.hardware.Camera.Size; 374 public static Size getOptimalPreviewSize(Activity currentActivity, in getOptimalPreviewSize() 375 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() 380 Size optimalSize = null; in getOptimalPreviewSize() 398 for (Size size : sizes) { in getOptimalPreviewSize() 412 for (Size size : sizes) { in getOptimalPreviewSize() 423 public static Size getOptimalVideoSnapshotPictureSize( in getOptimalVideoSnapshotPictureSize() 424 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() 429 Size optimalSize = null; in getOptimalVideoSnapshotPictureSize() 432 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize() [all …]
|