/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() 115 List<Size> backCameraSizes = computeSizesForCamera(SettingsUtil.CAMERA_FACING_BACK); in computePictureSizes() 116 List<Size> frontCameraSizes = computeSizesForCamera(SettingsUtil.CAMERA_FACING_FRONT); in computePictureSizes() 125 private List<Size> computeSizesForCamera(CameraDeviceSelector facingSelector) { in computeSizesForCamera() 126 List<Size> sizes; in computeSizesForCamera()
|
D | ResolutionSetting.java | 31 import com.android.camera.util.Size; 83 List<Size> supportedPictureSizes = cameraCharacteristics in setPictureAspectRatio() 96 final Size chosenPictureSize = in setPictureAspectRatio() 109 public Size getPictureSize(CameraId cameraId, Facing cameraFacing) in getPictureSize() 114 Size pictureSize = null; in getPictureSize() 154 final List<Size> supportedPictureSizes = in getPictureSize() 158 final Size fallbackPictureSize = in getPictureSize() 184 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/Camera2/src/com/android/camera/one/v2/common/ |
D | PictureSizeCalculator.java | 24 import com.android.camera.util.Size; 55 private final Size mSize; 58 private Configuration(Size size, Rect postCrop) { in Configuration() 74 public Size getNativeOutputSize() { in getNativeOutputSize() 112 private Size getSmallestSupportedSizeContainingTarget(List<Size> supported, Size target) { in getSmallestSupportedSizeContainingTarget() 114 Size best = null; in getSmallestSupportedSizeContainingTarget() 116 for (Size candidate : supported) { in getSmallestSupportedSizeContainingTarget() 146 public Configuration computeConfiguration(Size targetSize, int imageFormat) in computeConfiguration() 148 List<Size> supportedPictureSizes = mCameraCharacteristics in computeConfiguration() 154 Size size = getSmallestSupportedSizeContainingTarget(supportedPictureSizes, targetSize); in computeConfiguration() [all …]
|
/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/ |
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/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 32 import android.util.Size; 84 private Size mPreviewSize; 146 Size getViewSize(); in getViewSize() 155 Rect getFramePosition(Size previewSize, int cameraOrientation); in getFramePosition() 178 Size pictureSize = getBestPictureSize(mParameters); in setCameraParameter() 323 private void setTransformationMatrix(Size viewSize) { in setTransformationMatrix() 374 private Size getBestPreviewSize(Camera.Parameters parameters) { in getBestPreviewSize() 376 final Size windowSize = mScannerCallback.getViewSize(); in getBestPreviewSize() 379 Size bestChoice = new Size(0, 0); in getBestPreviewSize() 380 for (Camera.Size size : parameters.getSupportedPreviewSizes()) { in getBestPreviewSize() [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 …]
|
D | ResourceSurfaceTexture.java | 20 import com.android.camera.util.Size; 49 public Size getPreviewSize(); in getPreviewSize() 56 public void setPreviewSize(Size previewSize); in setPreviewSize() 63 public Size getPreviewLayoutSize(); in getPreviewLayoutSize() 70 public void setPreviewLayoutSize(Size previewLayoutSize); in setPreviewLayoutSize()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
D | phNxpExtns.cpp | 118 msg.Size = buflen; in EXTNS_MfcCallBack() 149 msg.Size = 0; in EXTNS_MfcCheckNDef() 181 msg.Size = 0; in EXTNS_MfcReadNDef() 209 msg.Size = 0; in EXTNS_MfcPresenceCheck() 250 msg.Size = len; in EXTNS_MfcSetReadOnly() 283 msg.Size = len; in EXTNS_MfcWriteNDef() 314 msg.Size = len; in EXTNS_MfcFormatTag() 342 msg.Size = 0; in EXTNS_MfcDisconnect() 369 msg.Size = 0; in EXTNS_MfcActivated() 396 msg.Size = len; in EXTNS_MfcTransceive() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/ |
D | QrCamera.java | 32 import android.util.Size; 77 private Size mPreviewSize; 139 Size getViewSize(); in getViewSize() 148 Rect getFramePosition(Size previewSize, int cameraOrientation); in getFramePosition() 313 private void setTransformationMatrix(Size viewSize) { in setTransformationMatrix() 344 final Camera.Size size = mParameters.getPictureSize(); in getFrameImage() 367 private Size getBestPreviewSize(Camera.Parameters parameters) { in getBestPreviewSize() 369 final Size windowSize = mScannerCallback.getViewSize(); in getBestPreviewSize() 372 Size bestChoice = new Size(0, 0); in getBestPreviewSize() 373 for (Camera.Size size : parameters.getSupportedPreviewSizes()) { in getBestPreviewSize() [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/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()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 458 final Camera.Size size = camera.getParameters().getPictureSize(); in takePicture() 622 final Camera.Size pictureSize = chooseBestPictureSize(); in tryShowPreview() 623 final Camera.Size previewSize = chooseBestPreviewSize(pictureSize); in tryShowPreview() 684 private Camera.Size chooseBestPictureSize() { in chooseBestPictureSize() 692 private Camera.Size chooseBestPreviewSize(final Camera.Size pictureSize) { in chooseBestPreviewSize() 693 final List<Camera.Size> sizes = in chooseBestPreviewSize() 694 new ArrayList<Camera.Size>(camera.getParameters().getSupportedPreviewSizes()); in chooseBestPreviewSize() 724 private static class SizeComparator implements Comparator<Camera.Size> { 754 public int compare(final Camera.Size left, final Camera.Size right) { in compare() 850 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 …]
|