Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/native/libs/ui/tests/
DSize_test.cpp39 Size s(123, 456); in TEST()
47 EXPECT_EQ(Size(123, 456), s); in TEST()
48 EXPECT_NE(Size(456, 123), s); in TEST()
52 EXPECT_TRUE(Size(0, 1) < Size(2, 3)); in TEST()
53 EXPECT_FALSE(Size(2, 3) < Size(0, 1)); in TEST()
55 EXPECT_TRUE(Size(0, 3) < Size(2, 1)); in TEST()
56 EXPECT_FALSE(Size(2, 1) < Size(0, 3)); in TEST()
58 EXPECT_TRUE(Size(0, 1) < Size(0, 3)); in TEST()
59 EXPECT_FALSE(Size(0, 3) < Size(0, 1)); in TEST()
61 EXPECT_FALSE(Size(1, 1) < Size(1, 1)); in TEST()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DSize.java29 public class Size { class
39 public static List<Size> buildListFromCameraSizes(List<Camera.Size> cameraSizes) { in buildListFromCameraSizes()
40 ArrayList<Size> list = new ArrayList<Size>(cameraSizes.size()); in buildListFromCameraSizes()
41 for (Camera.Size cameraSize : cameraSizes) { in buildListFromCameraSizes()
42 list.add(new Size(cameraSize)); in buildListFromCameraSizes()
53 public static List<Size> buildListFromAndroidSizes(List<android.util.Size> androidSizes) { in buildListFromAndroidSizes()
54 ArrayList<Size> list = new ArrayList<Size>(androidSizes.size()); in buildListFromAndroidSizes()
55 for (android.util.Size androidSize : androidSizes) { in buildListFromAndroidSizes()
56 list.add(new Size(androidSize)); in buildListFromAndroidSizes()
67 public static String listToString(List<Size> sizes) { in listToString()
[all …]
DCameraSettings.java45 protected Size mCurrentPreviewSize;
47 protected Size mCurrentPhotoSize;
61 protected Size mExifThumbnailSize;
125 (src.mCurrentPreviewSize == null ? null : new Size(src.mCurrentPreviewSize)); in CameraSettings()
128 (src.mCurrentPhotoSize == null ? null : new Size(src.mCurrentPhotoSize)); in CameraSettings()
224 public Size getCurrentPreviewSize() { in getCurrentPreviewSize()
225 return new Size(mCurrentPreviewSize); in getCurrentPreviewSize()
232 public boolean setPreviewSize(Size previewSize) { in setPreviewSize()
238 mCurrentPreviewSize = new Size(previewSize); in setPreviewSize()
265 public Size getCurrentPhotoSize() { in getCurrentPhotoSize()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPhoneSizeSpecSourceTest.java29 import android.util.Size;
70 private static Map<Float, Size> sExpectedMaxSizes;
71 private static Map<Float, Size> sExpectedDefaultSizes;
72 private static Map<Float, Size> sExpectedMinSizes;
111 sExpectedMaxSizes.put(16f / 9, new Size(1000, 563)); in initExpectedSizes()
112 sExpectedDefaultSizes.put(16f / 9, new Size(600, 338)); in initExpectedSizes()
113 sExpectedMinSizes.put(16f / 9, new Size(501, 282)); in initExpectedSizes()
115 sExpectedMaxSizes.put(4f / 3, new Size(893, 670)); in initExpectedSizes()
116 sExpectedDefaultSizes.put(4f / 3, new Size(536, 402)); in initExpectedSizes()
117 sExpectedMinSizes.put(4f / 3, new Size(447, 335)); in initExpectedSizes()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DFramebufferSurfaceTest.cpp26 ui::Size limitSize(const ui::Size& size, const ui::Size maxSize) { in limitSize()
32 const ui::Size kMaxSize(1920, 1080); in TEST_F()
33 EXPECT_EQ(ui::Size(1920, 1080), limitSize({3840, 2160}, kMaxSize)); in TEST_F()
34 EXPECT_EQ(ui::Size(1920, 1080), limitSize({1920, 1080}, kMaxSize)); in TEST_F()
35 EXPECT_EQ(ui::Size(1920, 1012), limitSize({4096, 2160}, kMaxSize)); in TEST_F()
36 EXPECT_EQ(ui::Size(1080, 1080), limitSize({3840, 3840}, kMaxSize)); in TEST_F()
37 EXPECT_EQ(ui::Size(1280, 720), limitSize({1280, 720}, kMaxSize)); in TEST_F()
/frameworks/libs/binary_translation/base/
Dmmap_pool_test.cc34 size_t Size() { return Pool::g_size_; } in Size() function in berberis::MmapPoolTest
52 while (Size() > 0) { in SetUp()
65 EXPECT_EQ(Size(), 0u); in TEST_F()
71 EXPECT_EQ(Size(), 0u); in TEST_F()
79 EXPECT_EQ(Size(), 0u); in TEST_F()
82 EXPECT_EQ(Size(), kBlockSize); in TEST_F()
87 EXPECT_EQ(Size(), 2 * kBlockSize); in TEST_F()
93 EXPECT_EQ(Size(), 2 * kBlockSize); in TEST_F()
101 EXPECT_EQ(Size(), kBlockSize); in TEST_F()
105 EXPECT_EQ(Size(), 2 * kBlockSize); in TEST_F()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableSize.java18 import android.util.Size;
31 public class MarshalQueryableSize implements MarshalQueryable<Size> {
34 private class MarshalerSize extends Marshaler<Size> {
35 protected MarshalerSize(TypeReference<Size> typeReference, int nativeType) { in MarshalerSize()
40 public void marshal(Size value, ByteBuffer buffer) { in marshal()
46 public Size unmarshal(ByteBuffer buffer) { in unmarshal()
50 return new Size(width, height); in unmarshal()
60 public Marshaler<Size> createMarshaler(TypeReference<Size> managedType, int nativeType) { in createMarshaler()
65 public boolean isTypeMappingSupported(TypeReference<Size> managedType, int nativeType) { in isTypeMappingSupported()
66 return nativeType == TYPE_INT32 && (Size.class.equals(managedType.getType())); in isTypeMappingSupported()
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
DCameraTooTest.java26 import android.util.Size;
57 Size empty = new Size(0, 0), fatAndFlat = new Size(100, 0), tallAndThin = new Size(0, 100); in compareSizesByArea()
58 Size smallSquare = new Size(4, 4), horizRect = new Size(8, 2), vertRect = new Size(2, 8); in compareSizesByArea()
59 Size largeSquare = new Size(5, 5); in compareSizesByArea()
60 Comparator<Size> rel = new CameraTooActivity.CompareSizesByArea(); in compareSizesByArea()
96 private void assertOptimalSize(Size[] options, int minWidth, int minHeight, Size expected) { in assertOptimalSize()
97 Size verdict = CameraTooActivity.chooseBigEnoughSize(options, minWidth, minHeight); in assertOptimalSize()
104 Size empty = new Size(0, 0), fatAndFlat = new Size(100, 0), tallAndThin = new Size(0, 100); in chooseBigEnoughSize()
105 Size smallSquare = new Size(4, 4), horizRect = new Size(8, 2), vertRect = new Size(2, 8); in chooseBigEnoughSize()
106 Size largeSquare = new Size(5, 5); in chooseBigEnoughSize()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DSize.h31 struct Size { struct
35 constexpr Size() = default; argument
38 constexpr Size(T w, T h) : width(clamp<int32_t>(w)), height(clamp<int32_t>(h)) {} in Size() argument
59 void set(Size size) { *this = size; } in set() argument
63 set(Size(w, h)); in set() argument
158 constexpr Size kInvalidSize;
159 constexpr Size kEmptySize{0, 0};
161 inline void Size::makeInvalid() { in makeInvalid()
165 inline void Size::clear() { in clear()
169 inline bool operator==(Size lhs, Size rhs) {
[all …]
/frameworks/native/include/ui/
DSize.h31 struct Size { struct
35 constexpr Size() = default; argument
38 constexpr Size(T w, T h) : width(clamp<int32_t>(w)), height(clamp<int32_t>(h)) {} in Size() function
59 void set(Size size) { *this = size; } in set() argument
63 set(Size(w, h)); in set() argument
158 constexpr Size kInvalidSize;
159 constexpr Size kEmptySize{0, 0};
161 inline void Size::makeInvalid() { in makeInvalid()
165 inline void Size::clear() { in clear()
169 inline bool operator==(Size lhs, Size rhs) {
[all …]
/frameworks/native/libs/ui/include/ui/
DSize.h31 struct Size { struct
35 constexpr Size() = default; argument
38 constexpr Size(T w, T h) : width(clamp<int32_t>(w)), height(clamp<int32_t>(h)) {} in Size() argument
59 void set(Size size) { *this = size; } in set() argument
63 set(Size(w, h)); in set() argument
158 constexpr Size kInvalidSize;
159 constexpr Size kEmptySize{0, 0};
161 inline void Size::makeInvalid() { in makeInvalid()
165 inline void Size::clear() { in clear()
169 inline bool operator==(Size lhs, Size rhs) {
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DSizeSpecSource.kt19 import android.util.Size
24 fun getMaxSize(aspectRatio: Float): Size in getMaxSize()
27 fun getDefaultSize(aspectRatio: Float): Size in getMaxSize()
30 fun getMinSize(aspectRatio: Float): Size in getMaxSize()
33 fun getSizeForAspectRatio(size: Size, aspectRatio: Float): Size in getMaxSize()
36 fun setOverrideMinSize(overrideMinSize: Size?) in getMaxSize()
39 fun getOverrideMinSize(): Size? in getMaxSize()
DLegacySizeSpecSource.kt22 import android.util.Size
34 private var mOverrideMinSize: Size? = null
65 override fun getMaxSize(aspectRatio: Float): Size { in getMaxSize()
79 Size(maxWidth, maxHeight) in getMaxSize()
84 Size(maxWidth, maxHeight) in getMaxSize()
88 override fun getDefaultSize(aspectRatio: Float): Size { in getDefaultSize()
119 return Size(width, height) in getDefaultSize()
122 override fun getMinSize(aspectRatio: Float): Size { in getMinSize()
139 return Size(minWidth, minHeight) in getMinSize()
142 override fun getSizeForAspectRatio(size: Size, aspectRatio: Float): Size { in getSizeForAspectRatio()
[all …]
DPhoneSizeSpecSource.kt22 import android.util.Size
36 private var mOverrideMinSize: Size? = null
86 override fun getMaxSize(aspectRatio: Float): Size { in getMaxSize()
116 return Size(maxWidth, maxHeight) in getMaxSize()
125 override fun getDefaultSize(aspectRatio: Float): Size { in getDefaultSize()
134 return Size(defaultWidth, defaultHeight) in getDefaultSize()
143 override fun getMinSize(aspectRatio: Float): Size { in getMinSize()
160 return Size(minWidth, minHeight) in getMinSize()
173 override fun getSizeForAspectRatio(size: Size, aspectRatio: Float): Size { in getSizeForAspectRatio()
202 return Size(width, height) in getSizeForAspectRatio()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DDebugRoundedCornerDelegate.kt26 import android.util.Size
40 override var topRoundedSize: Size = Size(0, 0)
47 override var bottomRoundedSize: Size = Size(0, 0)
91 topRoundedSize = Size(0, 0) in applyNewDebugCorners()
102 bottomRoundedSize = Size(0, 0) in applyNewDebugCorners()
113 topRoundedSize = Size(0, 0) in removeDebugState()
117 bottomRoundedSize = Size(0, 0) in removeDebugState()
125 topRoundedDrawable?.let { topRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) } in reloadMeasures()
127 bottomRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) in reloadMeasures()
133 Size( in reloadMeasures()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.h44 const sp<IGraphicBufferConsumer>& consumer, const ui::Size& size,
45 const ui::Size& maxSize);
53 virtual void resizeBuffers(const ui::Size&) override;
61 ui::Size limitSize(const ui::Size&);
64 static ui::Size limitSizeInternal(const ui::Size&, const ui::Size& maxSize);
76 const ui::Size mMaxSize;
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java23 import android.annotation.Size;
855 Adaptation(@NonNull @Size(9) float[] transform) { in Adaptation()
1094 @Size(3)
1119 @Size(min = 3)
1120 public abstract float[] toXyz(@NonNull @Size(min = 3) float[] v); in toXyz()
1136 @Size(min = 3)
1164 @Size(min = 3)
1165 public abstract float[] fromXyz(@NonNull @Size(min = 3) float[] v); in fromXyz()
1342 @NonNull @Size(min = 2, max = 3) float[] whitePoint) { in adapt()
1371 @NonNull @Size(min = 2, max = 3) float[] whitePoint, in adapt()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.h115 struct Size { struct
252 Size maxJpegSize;
253 Size maxZslSize;
254 Size usedZslSize;
400 Vector<Size> availablePreviewSizes;
401 Vector<Size> availableVideoSizes;
404 status_t getFilteredSizes(const Size &lower, const Size &upper,
405 Vector<Size> *sizes);
407 Size getMaxSizeForRatio(float ratio, const int32_t* sizeArray, size_t count);
432 int64_t getJpegStreamMinFrameDurationNs(Parameters::Size size);
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DRecommendedStreamConfigurationMap.java34 import android.util.Size;
260 private Set<Size> getUnmodifiableSizeSet(Size[] sizeArray) { in getUnmodifiableSizeSet()
262 ArraySet<Size> sizeSet = new ArraySet<Size>(); in getUnmodifiableSizeSet()
279 public @Nullable Set<Size> getInputSizes(@Format int format) { in getInputSizes()
317 public @Nullable Set<Size> getOutputSizes(@Format int format) { in getOutputSizes()
329 public @Nullable Set<Size> getHighSpeedVideoSizes() { in getHighSpeedVideoSizes()
356 public @Nullable Set<Range<Integer>> getHighSpeedVideoFpsRangesFor(@NonNull Size size) { in getHighSpeedVideoFpsRangesFor()
386 public @Nullable Set<Size> getHighSpeedVideoSizesFor(@NonNull Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor()
401 public @Nullable Set<Size> getHighResolutionOutputSizes(@Format int format) { in getHighResolutionOutputSizes()
422 @NonNull Size size) { in getOutputMinFrameDuration()
[all …]
/frameworks/base/core/java/android/util/
DSize.java24 public final class Size { class
31 public Size(int width, int height) { in Size() method in Size
72 if (obj instanceof Size) { in equals()
73 Size other = (Size) obj; in equals()
122 public static Size parseSize(String string) in parseSize()
134 return new Size(Integer.parseInt(string.substring(0, sep_ix)), in parseSize()
/frameworks/base/core/java/android/widget/inline/
DInlinePresentationSpec.java23 import android.util.Size;
39 private final Size mMinSize;
42 private final Size mMaxSize;
98 @NonNull Size minSize, in InlinePresentationSpec()
99 @NonNull Size maxSize, in InlinePresentationSpec()
118 public @NonNull Size getMinSize() { in getMinSize()
126 public @NonNull Size getMaxSize() { in getMaxSize()
213 Size minSize = (Size) in.readSize(); in InlinePresentationSpec()
214 Size maxSize = (Size) in.readSize(); in InlinePresentationSpec()
251 private @NonNull Size mMinSize;
[all …]
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DAdvancedExtenderImpl.java24 import android.util.Size;
101 Size captureOutputSize, int imageFormat); in getEstimatedCaptureLatencyRange()
114 Map<Integer, List<Size>> getSupportedPreviewOutputResolutions(String cameraId); in getSupportedPreviewOutputResolutions()
124 Map<Integer, List<Size>> getSupportedCaptureOutputResolutions(String cameraId); in getSupportedCaptureOutputResolutions()
135 Map<Integer, List<Size>> getSupportedPostviewResolutions(Size captureSize); in getSupportedPostviewResolutions()
144 List<Size> getSupportedYuvAnalysisResolutions(String cameraId); in getSupportedYuvAnalysisResolutions()
/frameworks/ex/camera2/extensions/stub/src/main/java/androidx/camera/extensions/impl/advanced/
DAdvancedExtenderImpl.java24 import android.util.Size;
101 Size captureOutputSize, int imageFormat); in getEstimatedCaptureLatencyRange()
114 Map<Integer, List<Size>> getSupportedPreviewOutputResolutions(String cameraId); in getSupportedPreviewOutputResolutions()
124 Map<Integer, List<Size>> getSupportedCaptureOutputResolutions(String cameraId); in getSupportedCaptureOutputResolutions()
135 Map<Integer, List<Size>> getSupportedPostviewResolutions(Size captureSize); in getSupportedPostviewResolutions()
144 List<Size> getSupportedYuvAnalysisResolutions(String cameraId); in getSupportedYuvAnalysisResolutions()
/frameworks/base/core/java/android/hardware/camera2/utils/
DSizeAreaComparator.java19 import android.util.Size;
32 public class SizeAreaComparator implements Comparator<Size> {
37 public int compare(Size size, Size size2) { in compare()
66 public static Size findLargestByArea(List<Size> sizes) { in findLargestByArea()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DRoundedCornerResDelegateTest.kt22 import android.util.Size in <lambda>()
80 assertEquals(Size(3, 3), roundedCornerResDelegate.topRoundedSize) in <lambda>()
81 assertEquals(Size(4, 4), roundedCornerResDelegate.bottomRoundedSize) in <lambda>()
89 assertEquals(Size(4, 4), roundedCornerResDelegate.topRoundedSize) in <lambda>()
90 assertEquals(Size(5, 5), roundedCornerResDelegate.bottomRoundedSize) in <lambda>()
101 assertEquals(Size(3, 3), roundedCornerResDelegate.topRoundedSize) in <lambda>()
102 assertEquals(Size(4, 4), roundedCornerResDelegate.bottomRoundedSize) in <lambda>()
107 assertEquals(Size(6, 6), roundedCornerResDelegate.topRoundedSize) in <lambda>()
108 assertEquals(Size(8, 8), roundedCornerResDelegate.bottomRoundedSize) in <lambda>()
118 assertEquals(Size(4, 4), roundedCornerResDelegate.topRoundedSize) in <lambda>()
[all …]

12345678910>>...20