/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 …]
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 28 import com.android.camera.util.Size; 64 public static Size NEXUS_5_LARGE_16_BY_9_SIZE = new Size(3264, 1836); 75 private static Size[] sDesiredAspectRatioSizes = { 76 new Size(16, 9), new Size(4, 3) 88 public List<Size> sizes = new LinkedList<Size>(); 92 public Size largest; 105 public void add(Size size) { in add() 107 Collections.sort(sizes, new Comparator<Size>() { in add() 109 public int compare(Size size, Size size2) { in add() 132 …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/modules/Bluetooth/system/gd/packet/parser/ |
D | size.h | 24 class Size { 26 Size() {} in Size() function 28 Size(int bits) { in Size() function 33 Size(std::string dynamic) { in Size() function 38 Size(int bits, std::string dynamic) { in Size() function 44 Size(const Size& size) { in Size() function 86 Size operator+(int rhs) { 87 return Size(bits_ + rhs); 90 Size operator+(std::string rhs) { 91 auto ret = Size(); [all …]
|
/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/Camera2/src/com/android/camera/ |
D | CaptureModuleUtil.java | 27 import com.android.camera.util.Size; 56 public static Size getOptimalPreviewSize(Size[] sizes, double targetRatio, Activity context) { in getOptimalPreviewSize() 66 public static Size getOptimalPreviewSize(Size[] sizes, in getOptimalPreviewSize() 73 for (Size s : sizes) { in getOptimalPreviewSize() 78 ArrayList<Size> camera1Sizes = new ArrayList<Size>(count); in getOptimalPreviewSize() 81 for (Size s : sizes) { in getOptimalPreviewSize() 83 camera1Sizes.add(new Size(s.getWidth(), s.getHeight())); in getOptimalPreviewSize() 95 Size optimal = camera1Sizes.get(optimalIndex); in getOptimalPreviewSize() 96 for (Size s : sizes) { in getOptimalPreviewSize() 108 public static Size pickBufferDimensions(Size[] supportedPreviewSizes, in pickBufferDimensions() [all …]
|
/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 …]
|
/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/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/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/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/modules/Bluetooth/system/gd/packet/parser/fields/ |
D | packet_field.h | 37 virtual Size GetSize() const = 0; 41 virtual Size GetBuilderSize() const; 45 virtual Size GetStructSize() const; 54 virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const; 63 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const = 0;
|
D | scalar_field.cc | 35 Size ScalarField::GetSize() const { in GetSize() 52 int ScalarField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds() 61 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds() 70 Size size = GetSize(); in GenExtractor() 99 void ScalarField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
|
D | struct_field.h | 24 StructField(std::string name, std::string type_name, Size size, ParseLocation loc); 30 virtual Size GetSize() const override; 32 virtual Size GetBuilderSize() const override; 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 58 const Size size_{};
|
D | scalar_field.h | 30 virtual Size GetSize() const override; 34 …virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const overri… 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | array_field.h | 33 virtual Size GetSize() const override; 35 virtual Size GetBuilderSize() const override; 37 virtual Size GetStructSize() const override; 45 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 71 const Size element_size_{};
|
/packages/modules/adb/client/ |
D | incremental_utils.h | 32 using Size = int64_t; variable 41 Size fileSize); 43 Size verity_tree_blocks_for_file(Size fileSize); 44 Size verity_tree_size_for_file(Size fileSize);
|
D | incremental_utils.cpp | 45 Size verity_tree_blocks_for_file(Size fileSize) { in verity_tree_blocks_for_file() 52 Size total_tree_block_count = 0; in verity_tree_blocks_for_file() 54 const Size block_count = 1 + (fileSize - 1) / kBlockSize; in verity_tree_blocks_for_file() 55 Size hash_block_count = block_count; in verity_tree_blocks_for_file() 63 Size verity_tree_size_for_file(Size fileSize) { in verity_tree_size_for_file() 165 static off64_t CentralDirOffset(borrowed_fd fd, Size fileSize) { in CentralDirOffset() 200 static off64_t SignerBlockOffset(borrowed_fd fd, Size fileSize) { in SignerBlockOffset() 229 static std::vector<int32_t> ZipPriorityBlocks(off64_t signerBlockOffset, Size fileSize) { in ZipPriorityBlocks() 299 borrowed_fd fd, Size fileSize) { in openZipArchive() 319 static std::vector<int32_t> InstallationPriorityBlocks(borrowed_fd fd, Size fileSize) { in InstallationPriorityBlocks() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/ |
D | AnnotationValidationsUnitTest.java | 26 import android.annotation.Size; 132 AnnotationValidations.validate(Size.class, null, 1, "min", 0, "max", 2); in testValidateSizeValid() 137 AnnotationValidations.validate(Size.class, null, 1, "value", 1, "", 0); in testValidateSizeValidExactValue() 142 AnnotationValidations.validate(Size.class, null, 4, "multiple", 2, "", 0); in testValidateSizeValidMultiple() 148 () -> AnnotationValidations.validate(Size.class, null, -1, "min", 0, "max", 2)); in testValidateSizeInvalidTooSmall() 154 () -> AnnotationValidations.validate(Size.class, null, 3, "min", 0, "max", 2)); in testValidateSizeInvalidTooLarge() 160 () -> AnnotationValidations.validate(Size.class, null, 3, "value", 1, "", 0)); in testValidateSizeInvalidExactValue() 166 () -> AnnotationValidations.validate(Size.class, null, 3, "multiple", 2, "", 0)); in testValidateSizeInvalidMultiple()
|
/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/Settings/src/com/android/settings/accessibility/ |
D | FloatingMenuSizePreferenceController.java | 55 Size.UNKNOWN, 56 Size.SMALL, 57 Size.LARGE, 59 public @interface Size { annotation in FloatingMenuSizePreferenceController 124 @Size 127 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE, Size.SMALL); in getAccessibilityFloatingMenuSize() 130 private void putAccessibilityFloatingMenuSize(@Size int value) { in putAccessibilityFloatingMenuSize()
|