Home
last modified time | relevance | path

Searched refs:Size (Results 1 – 25 of 240) sorted by relevance

12345678910

/packages/apps/Camera2/src/com/android/camera/util/
DSize.java34 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/
DResolutionUtil.java28 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 …]
DSettingsUtil.java29 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 …]
/packages/modules/Bluetooth/system/gd/packet/parser/
Dsize.h24 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/modules/Bluetooth/system/gd/packet/parser/fields/
Dpacket_field.h37 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;
125 std::ostream& s, Size start_offset, Size end_offset, Size size) const;
127 …virtual void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const…
129 virtual void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const = 0;
131 virtual void GenBoundsCheck(std::ostream& s, Size start_offset, Size, std::string) const;
Dscalar_field.h30 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;
58 virtual int GetRustBitOffset(std::ostream& s, Size start_offset,
59 Size end_offset, Size size) const override;
61 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
63 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
Dscalar_field.cc35 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()
151 std::ostream&, Size start_offset, Size end_offset, Size size) const { in GetRustBitOffset()
159 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GetRustBitOffset()
166 void ScalarField::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string pa… in GenRustGetter()
167 Size size = GetSize(); in GenRustGetter()
223 void ScalarField::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustWriter()
[all …]
Dstruct_field.h24 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;
56 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
60 …void GenBoundsCheck(std::ostream& s, Size start_offset, Size end_offset, std::string) const overri…
66 const Size size_{};
Dpadding_field.h32 virtual Size GetSize() const override;
34 virtual Size GetBuilderSize() const override;
42 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
56 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
60 void GenBoundsCheck(std::ostream&, Size, Size, std::string) const override{}; in GenBoundsCheck() argument
63 Size size_;
Dvector_field.h34 virtual Size GetSize() const override;
36 virtual Size GetBuilderSize() const override;
38 virtual Size GetStructSize() const override;
46 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
74 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
76 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
78 …void GenBoundsCheck(std::ostream& s, Size start_offset, Size end_offset, std::string parent_name) …
84 const Size element_size_{};
Dstruct_field.cc22 StructField::StructField(std::string name, std::string type_name, Size size, ParseLocation loc) in StructField()
29 Size StructField::GetSize() const { in GetSize()
33 Size StructField::GetBuilderSize() const { in GetBuilderSize()
53 void StructField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
95 void StructField::GenBoundsCheck(std::ostream&, Size, Size, std::string) const { in GenBoundsCheck() argument
99 void StructField::GenRustGetter(std::ostream& s, Size start_offset, Size, std::string) const { in GenRustGetter() argument
105 void StructField::GenRustWriter(std::ostream& s, Size start_offset, Size) const { in GenRustWriter()
Dpacket_field.cc35 Size PacketField::GetBuilderSize() const { in GetBuilderSize()
39 Size PacketField::GetStructSize() const { in GetStructSize()
43 int PacketField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds()
109 std::ostream&, Size start_offset, Size end_offset, Size size) const { in GetRustBitOffset()
134 void PacketField::GenBoundsCheck(std::ostream& s, Size start_offset, Size, std::string parent_name)… in GenBoundsCheck() argument
135 Size size = GetSize(); in GenBoundsCheck()
Darray_field.h33 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;
69 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string parent_name) c…
71 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
77 const Size element_size_{};
Dreserved_field.h30 virtual Size GetSize() const override;
38 virtual void GenGetter(std::ostream&, Size, Size) const override;
52 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
54 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
56 void GenBoundsCheck(std::ostream&, Size, Size, std::string) const override{}; in GenBoundsCheck() argument
Dcustom_field_fixed_size.cc38 int CustomFieldFixedSize::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size)… in GenBounds()
43 Size byte_offset = size + end_offset; in GenBounds()
80 void CustomFieldFixedSize::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::… in GenRustGetter()
81 Size size = GetSize(); in GenRustGetter()
95 void CustomFieldFixedSize::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const… in GenRustWriter()
96 Size size = GetSize(); in GenRustWriter()
Dbody_field.h33 virtual Size GetSize() const override;
41 virtual void GenGetter(std::ostream&, Size, Size) const override;
57 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
59 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
61 void GenBoundsCheck(std::ostream&, Size, Size, std::string) const override{}; in GenBoundsCheck() argument
Dpayload_field.h33 virtual Size GetSize() const override;
41 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override;
61 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid…
63 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
65 void GenBoundsCheck(std::ostream&, Size, Size, std::string) const override;
Dpayload_field.cc37 Size PayloadField::GetSize() const { in GetSize()
42 return Size(); in GetSize()
65 void PayloadField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter()
112 void PayloadField::GenBoundsCheck(std::ostream& s, Size start_offset, Size, std::string parent_name… in GenBoundsCheck() argument
134 void PayloadField::GenRustGetter(std::ostream& s, Size start_offset, Size, std::string) const { in GenRustGetter() argument
144 void PayloadField::GenRustWriter(std::ostream&, Size, Size) const {} in GenRustWriter() argument
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java24 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/data/
DGlideFilmstripManager.java31 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/
DCaptureModuleUtil.java27 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/DevCamera/src/com/android/devcamera/
DCameraInfoCache.java26 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()
196Size 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/initialization/
DCamera2PreviewSizeSelector.java21 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/
DOneCameraCharacteristicsImpl.java28 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/
DResourceSurfaceTextureImpl.java23 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 …]

12345678910