Home
last modified time | relevance | path

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

12345678910

/frameworks/native/libs/ui/tests/
DSize_test.cpp30 Size s(123, 456); in TEST()
38 EXPECT_EQ(Size(123, 456), s); in TEST()
39 EXPECT_NE(Size(456, 123), s); in TEST()
43 EXPECT_TRUE(Size(0, 1) < Size(2, 3)); in TEST()
44 EXPECT_FALSE(Size(2, 3) < Size(0, 1)); in TEST()
46 EXPECT_TRUE(Size(0, 3) < Size(2, 1)); in TEST()
47 EXPECT_FALSE(Size(2, 1) < Size(0, 3)); in TEST()
49 EXPECT_TRUE(Size(0, 1) < Size(0, 3)); in TEST()
50 EXPECT_FALSE(Size(0, 3) < Size(0, 1)); in TEST()
52 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 …]
DCameraCapabilities.java46 protected final ArrayList<Size> mSupportedPreviewSizes = new ArrayList<Size>();
48 protected final ArrayList<Size> mSupportedVideoSizes = new ArrayList<Size>();
49 protected final ArrayList<Size> mSupportedPhotoSizes = new ArrayList<Size>();
57 protected Size mPreferredPreviewSizeForVideo;
525 public List<Size> getSupportedPhotoSizes() { in getSupportedPhotoSizes()
526 return new ArrayList<Size>(mSupportedPhotoSizes); in getSupportedPhotoSizes()
542 public final List<Size> getSupportedPreviewSizes() { in getSupportedPreviewSizes()
543 return new ArrayList<Size>(mSupportedPreviewSizes); in getSupportedPreviewSizes()
546 public final Size getPreferredPreviewSizeForVideo() { in getPreferredPreviewSizeForVideo()
547 return new Size(mPreferredPreviewSizeForVideo); in getPreferredPreviewSizeForVideo()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DSize.h29 struct Size;
30 bool operator==(const Size& lhs, const Size& rhs);
35 struct Size { struct
40 static const Size INVALID; argument
41 static const Size EMPTY; argument
47 Size() : Size(INVALID) {} in Size() function
49 Size(T&& w, T&& h) in Size() argument
50 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
51 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
62 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() argument
[all …]
/frameworks/native/libs/ui/include/ui/
DSize.h29 struct Size;
30 bool operator==(const Size& lhs, const Size& rhs);
35 struct Size { struct
40 static const Size INVALID; argument
41 static const Size EMPTY; argument
47 Size() : Size(INVALID) {} in Size() argument
49 Size(T&& w, T&& h) in Size() argument
50 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
51 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
62 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() argument
[all …]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DInstAlloc.cpp48 LVM_UINT32 Size ) in InstAlloc_AddMember() argument
53 Size = ((Size + 3) & (LVM_UINT32)~3); /* Ceil the size to a multiple of four */ in InstAlloc_AddMember()
55 pms->TotalSize += Size; in InstAlloc_AddMember()
56 pms->pNextMember += Size; in InstAlloc_AddMember()
134 LVM_UINT32 Size[], in InstAlloc_AddMemberAll() argument
140 …NewMemberAddress = InstAlloc_AddMember(&pms[LVM_PERSISTENT_SLOW_DATA], Size[LVM_PERSISTENT_SLOW_DA… in InstAlloc_AddMemberAll()
142 …pMemoryTable->Region[LVM_PERSISTENT_SLOW_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTE… in InstAlloc_AddMemberAll()
146 …NewMemberAddress = InstAlloc_AddMember(&pms[LVM_PERSISTENT_FAST_DATA], Size[LVM_PERSISTENT_FAST_DA… in InstAlloc_AddMemberAll()
148 …pMemoryTable->Region[LVM_PERSISTENT_FAST_DATA].Size = InstAlloc_GetTotal(&pms[LVM_PERSISTE… in InstAlloc_AddMemberAll()
152 …NewMemberAddress = InstAlloc_AddMember(&pms[LVM_PERSISTENT_FAST_COEF], Size[LVM_PERSISTENT_FAST_CO… in InstAlloc_AddMemberAll()
[all …]
/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/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/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java37 import android.util.Size;
66 private final ArrayList<Size> mAvailableSizes = new ArrayList<Size> ();
80 public MandatoryStreamInformation(@NonNull List<Size> availableSizes, int format) { in MandatoryStreamInformation()
96 public MandatoryStreamInformation(@NonNull List<Size> availableSizes, @Format int format, in MandatoryStreamInformation()
126 public @NonNull List<Size> getAvailableSizes() { in getAvailableSizes()
661 private Size mDisplaySize;
667 private final Size kPreviewSizeBound = new Size(1920, 1088);
678 public Builder(int cameraId, int hwLevel, @NonNull Size displaySize, in Builder()
791 HashMap<Pair<SizeThreshold, Integer>, List<Size>> availableSizes = in generateAvailableCombinations()
799 Size[] rawSizes = mStreamConfigMap.getOutputSizes(ImageFormat.RAW_SENSOR); in generateAvailableCombinations()
[all …]
DRecommendedStreamConfigurationMap.java32 import android.util.Size;
247 private Set<Size> getUnmodifiableSizeSet(Size[] sizeArray) { in getUnmodifiableSizeSet()
249 ArraySet<Size> sizeSet = new ArraySet<Size>(); in getUnmodifiableSizeSet()
266 public @Nullable Set<Size> getInputSizes(@Format int format) { in getInputSizes()
304 public @Nullable Set<Size> getOutputSizes(@Format int format) { in getOutputSizes()
316 public @Nullable Set<Size> getHighSpeedVideoSizes() { in getHighSpeedVideoSizes()
343 public @Nullable Set<Range<Integer>> getHighSpeedVideoFpsRangesFor(@NonNull Size size) { in getHighSpeedVideoFpsRangesFor()
373 public @Nullable Set<Size> getHighSpeedVideoSizesFor(@NonNull Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor()
388 public @Nullable Set<Size> getHighResolutionOutputSizes(@Format int format) { in getHighResolutionOutputSizes()
409 @NonNull Size size) { in getOutputMinFrameDuration()
[all …]
DStreamConfigurationMap.java32 import android.util.Size;
316 Size size = config.getSize(); in StreamConfigurationMap()
411 public Size[] getInputSizes(final int format) { in getInputSizes()
553 Size surfaceSize = SurfaceUtils.getSurfaceSize(surface); in isOutputSupportedFor()
592 public boolean isOutputSupportedFor(Size size, int format) { in isOutputSupportedFor()
638 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes()
670 public Size[] getOutputSizes(int format) { in getOutputSizes()
708 public Size[] getHighSpeedVideoSizes() { in getHighSpeedVideoSizes()
709 Set<Size> keySet = mHighSpeedVideoSizeMap.keySet(); in getHighSpeedVideoSizes()
710 return keySet.toArray(new Size[keySet.size()]); in getHighSpeedVideoSizes()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java24 import android.annotation.Size;
815 Adaptation(@NonNull @Size(9) float[] transform) { in Adaptation()
1054 @Size(3)
1079 @Size(min = 3)
1080 public abstract float[] toXyz(@NonNull @Size(min = 3) float[] v); in toXyz()
1096 @Size(min = 3)
1124 @Size(min = 3)
1125 public abstract float[] fromXyz(@NonNull @Size(min = 3) float[] v); in fromXyz()
1302 @NonNull @Size(min = 2, max = 3) float[] whitePoint) { in adapt()
1331 @NonNull @Size(min = 2, max = 3) float[] whitePoint, in adapt()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Init.cpp282 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable()
284 CS_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable()
285 …[LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = CS_MemTab.Region[LVM_MEMREG… in LVM_GetMemoryTable()
320 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable()
322 DBE_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable()
323 …LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = DBE_MemTab.Region[LVM_MEMREG… in LVM_GetMemoryTable()
359 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_DATA].Size); in LVM_GetMemoryTable()
361 EQNB_MemTab.Region[LVM_MEMREGION_PERSISTENT_FAST_COEF].Size); in LVM_GetMemoryTable()
362 …LVM_MEMREGION_TEMPORARY_FAST].Size > AlgScratchSize) AlgScratchSize = EQNB_MemTab.Region[LVM_MEMRE… in LVM_GetMemoryTable()
415 PSA_MemTab.Region[LVM_PERSISTENT_SLOW_DATA].Size); in LVM_GetMemoryTable()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.h115 struct Size { struct
249 Size maxJpegSize;
250 Size maxZslSize;
396 Vector<Size> availablePreviewSizes;
397 Vector<Size> availableVideoSizes;
400 status_t getFilteredSizes(Size limit, Vector<Size> *sizes);
402 Size getMaxSizeForRatio(float ratio, const int32_t* sizeArray, size_t count);
427 int64_t getJpegStreamMinFrameDurationNs(Parameters::Size size);
431 int64_t getMinFrameDurationNs(Parameters::Size size, int format);
436 bool isFpsSupported(const Vector<Size> &size, int format, int32_t fps);
[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/media/java/android/media/
DImageUtils.java22 import android.util.Size;
117 Size srcSize = new Size(src.getWidth(), src.getHeight()); in imageCopy()
118 Size dstSize = new Size(dst.getWidth(), dst.getHeight()); in imageCopy()
155 Size effectivePlaneSize = getEffectivePlaneSizeForImage(src, i); in imageCopy()
239 private static Size getEffectivePlaneSizeForImage(Image image, int planeIdx) { in getEffectivePlaneSizeForImage()
245 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
247 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage()
251 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
253 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage()
268 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
[all …]
/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java50 import android.util.Size;
98 public static final Size SIZE_BOUND_1080P = new Size(1920, 1088);
99 public static final Size SIZE_BOUND_2160P = new Size(3840, 2160);
101 public static final Size PREVIEW_SIZE_BOUND = SIZE_BOUND_1080P;
180 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, in makeImageReader()
252 private Size mSize;
255 public ImageVerifierListener(Size sz, int format) { in ImageVerifierListener()
992 public static Size[] getSupportedSizeForFormat(int format, String cameraId, in getSupportedSizeForFormat()
1001 Size[] availableSizes = configMap.getOutputSizes(format); in getSupportedSizeForFormat()
1004 Size[] highResAvailableSizes = configMap.getHighResolutionOutputSizes(format); in getSupportedSizeForFormat()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestThreadManager.java34 import android.util.Size;
97 private Size mIntermediateBufferSize;
119 public final Collection<Pair<Surface, Size>> surfaces;
122 Size>> surfaces) { in ConfigureHolder()
346 private void configureOutputs(Collection<Pair<Surface, Size>> outputs) { in configureOutputs()
390 List<Size> previewOutputSizes = new ArrayList<>(); in configureOutputs()
391 List<Size> callbackOutputSizes = new ArrayList<>(); in configureOutputs()
396 for (Pair<Surface, Size> outPair : outputs) { in configureOutputs()
398 Size outSize = outPair.second; in configureOutputs()
448 Size smallestSupportedJpegSize = calculatePictureSize(mCallbackOutputs, in configureOutputs()
[all …]
DParameterUtils.java30 import android.util.Size;
236 public static Size convertSize(Camera.Size size) { in convertSize()
239 return new Size(size.width, size.height); in convertSize()
245 public static List<Size> convertSizeList(List<Camera.Size> sizeList) { in convertSizeList()
248 List<Size> sizes = new ArrayList<>(sizeList.size()); in convertSizeList()
249 for (Camera.Size s : sizeList) { in convertSizeList()
250 sizes.add(new Size(s.width, s.height)); in convertSizeList()
258 public static Size[] convertSizeListToArray(List<Camera.Size> sizeList) { in convertSizeListToArray()
261 Size[] array = new Size[sizeList.size()]; in convertSizeListToArray()
263 for (Camera.Size s : sizeList) { in convertSizeListToArray()
[all …]
DSizeAreaComparator.java33 public class SizeAreaComparator implements Comparator<Camera.Size> {
38 public int compare(Camera.Size size, Camera.Size size2) { in compare()
67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { in findLargestByArea()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java34 import android.util.Size;
144 assertEquals(new WmDisplayCutout(mCutoutTop, new Size(1, 2)), in test_equals()
145 new WmDisplayCutout(mCutoutTop, new Size(1, 2))); in test_equals()
147 assertNotEquals(new WmDisplayCutout(mCutoutTop, new Size(1, 2)), in test_equals()
148 new WmDisplayCutout(mCutoutTop, new Size(5, 6))); in test_equals()
149 assertNotEquals(new WmDisplayCutout(mCutoutTop, new Size(1, 2)), in test_equals()
150 new WmDisplayCutout(NO_CUTOUT, new Size(1, 2))); in test_equals()
157 assertEquals(new WmDisplayCutout(mCutoutTop, new Size(1, 2)).hashCode(), in test_hashCode()
158 new WmDisplayCutout(mCutoutTop, new Size(1, 2)).hashCode()); in test_hashCode()
/frameworks/native/libs/ui/
DSize.cpp21 const Size Size::INVALID{-1, -1};
22 const Size Size::EMPTY{0, 0};
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java20 import android.util.Size;
37 private final Size mFrameSize;
39 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { in WmDisplayCutout()
50 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets()
68 Size frame = mFrameSize == null ? null : new Size( in inset()
114 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets()
135 private static int findInsetForSide(Size display, List<Rect> boundingRects, int gravity) { in findInsetForSide()

12345678910