Home
last modified time | relevance | path

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

12345678910>>...12

/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/tests/
DSize_test.cpp40 Size s(123, 456); in TEST()
48 EXPECT_EQ(Size(123, 456), s); in TEST()
49 EXPECT_NE(Size(456, 123), s); in TEST()
53 EXPECT_TRUE(Size(0, 1) < Size(2, 3)); in TEST()
54 EXPECT_FALSE(Size(2, 3) < Size(0, 1)); in TEST()
56 EXPECT_TRUE(Size(0, 3) < Size(2, 1)); in TEST()
57 EXPECT_FALSE(Size(2, 1) < Size(0, 3)); in TEST()
59 EXPECT_TRUE(Size(0, 1) < Size(0, 3)); in TEST()
60 EXPECT_FALSE(Size(0, 3) < Size(0, 1)); in TEST()
62 EXPECT_FALSE(Size(1, 1) < Size(1, 1)); in TEST()
[all …]
/frameworks/native/include/ui/
DSize.h30 struct Size;
31 bool operator==(const Size& lhs, const Size& rhs);
36 struct Size { struct
41 static const Size INVALID; argument
42 static const Size EMPTY; argument
48 Size() : Size(INVALID) {} in Size() argument
50 Size(T&& w, T&& h) in Size() function
51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
63 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() argument
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DSize.h30 struct Size;
31 bool operator==(const Size& lhs, const Size& rhs);
36 struct Size { struct
41 static const Size INVALID; argument
42 static const Size EMPTY; argument
48 Size() : Size(INVALID) {} in Size() argument
50 Size(T&& w, T&& h) in Size() argument
51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
63 width = Size::clamp<int32_t, T>(std::forward<T>(v)); in setWidth() argument
[all …]
/frameworks/native/libs/ui/include/ui/
DSize.h30 struct Size;
31 bool operator==(const Size& lhs, const Size& rhs);
36 struct Size { struct
41 static const Size INVALID; argument
42 static const Size EMPTY; argument
48 Size() : Size(INVALID) {} in Size() argument
50 Size(T&& w, T&& h) in Size() argument
51 : width(Size::clamp<int32_t, T>(std::forward<T>(w))), in Size()
52 height(Size::clamp<int32_t, T>(std::forward<T>(h))) {} in Size()
63 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/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/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java36 import android.util.Size;
63 private final ArrayList<Size> mAvailableSizes = new ArrayList<Size> ();
77 public MandatoryStreamInformation(@NonNull List<Size> availableSizes, int format) { in MandatoryStreamInformation()
93 public MandatoryStreamInformation(@NonNull List<Size> availableSizes, @Format int format, in MandatoryStreamInformation()
123 public @NonNull List<Size> getAvailableSizes() { in getAvailableSizes()
699 private Size mDisplaySize;
705 private final Size kPreviewSizeBound = new Size(1920, 1088);
716 public Builder(int cameraId, int hwLevel, @NonNull Size displaySize, in Builder()
744 Size sizeVGAp = new Size(640, 480); in getAvailableMandatoryConcurrentStreamCombinations()
745 Size size720p = new Size(1280, 720); in getAvailableMandatoryConcurrentStreamCombinations()
[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.java31 import android.util.Size;
315 Size size = config.getSize(); in StreamConfigurationMap()
410 public Size[] getInputSizes(final int format) { in getInputSizes()
552 Size surfaceSize = SurfaceUtils.getSurfaceSize(surface); in isOutputSupportedFor()
591 public boolean isOutputSupportedFor(Size size, int format) { in isOutputSupportedFor()
637 public <T> Size[] getOutputSizes(Class<T> klass) { in getOutputSizes()
669 public Size[] getOutputSizes(int format) { in getOutputSizes()
707 public Size[] getHighSpeedVideoSizes() { in getHighSpeedVideoSizes()
708 Set<Size> keySet = mHighSpeedVideoSizeMap.keySet(); in getHighSpeedVideoSizes()
709 return keySet.toArray(new Size[keySet.size()]); in getHighSpeedVideoSizes()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java24 import android.annotation.Size;
820 Adaptation(@NonNull @Size(9) float[] transform) { in Adaptation()
1060 @Size(3)
1085 @Size(min = 3)
1086 public abstract float[] toXyz(@NonNull @Size(min = 3) float[] v); in toXyz()
1102 @Size(min = 3)
1130 @Size(min = 3)
1131 public abstract float[] fromXyz(@NonNull @Size(min = 3) float[] v); in fromXyz()
1308 @NonNull @Size(min = 2, max = 3) float[] whitePoint) { in adapt()
1337 @NonNull @Size(min = 2, max = 3) float[] whitePoint, in adapt()
[all …]
/frameworks/base/core/java/android/widget/inline/
DInlinePresentationSpec.java23 import android.util.Size;
39 private final Size mMinSize;
42 private final Size mMaxSize;
93 @NonNull Size minSize, in InlinePresentationSpec()
94 @NonNull Size maxSize, in InlinePresentationSpec()
113 public @NonNull Size getMinSize() { in getMinSize()
121 public @NonNull Size getMaxSize() { in getMaxSize()
203 Size minSize = (Size) in.readSize(); in InlinePresentationSpec()
204 Size maxSize = (Size) in.readSize(); in InlinePresentationSpec()
241 private @NonNull Size mMinSize;
[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/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/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/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/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java60 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/native/libs/ui/
DSize.cpp21 const Size Size::INVALID{-1, -1};
22 const Size Size::EMPTY{0, 0};
/frameworks/base/core/java/android/hardware/camera2/legacy/
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()
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 …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java20 import android.util.Size;
36 private final Size mFrameSize;
38 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { in WmDisplayCutout()
54 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets()
72 Size frame = mFrameSize == null ? null : new Size( in inset()
118 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets()
137 private static int findCutoutInsetForSide(Size display, Rect boundingRect, int gravity) { in findCutoutInsetForSide()

12345678910>>...12