Home
last modified time | relevance | path

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

123456

/cts/tests/camera/src/android/hardware/camera2/cts/
DNativeCameraDeviceTest.java22 import android.util.Size;
62 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSessionOpenAndClose()
70 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSimplePreview()
78 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSimplePreviewWithV2Callbacks()
87 updatePreviewSurface(new Size(640, 480)); in testCameraDevicePreviewWithSessionParameters()
96 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate()
109 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreaming()
118 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreamingWithV2Callbacks()
128 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettings()
137 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettingsWithV2Callbacks()
[all …]
DReprocessCaptureTest.java35 import android.util.Size;
249 Size maxInputSize = in testRecreateReprocessingSessions()
251 Size maxReprocessOutputSize = getMaxSize(reprocessOutputFormat, in testRecreateReprocessingSessions()
288 Size inputSize = in testCrossSessionCaptureException()
290 Size reprocessOutputSize = in testCrossSessionCaptureException()
366 Size inputSize = in testQueueImageWithoutRequest()
368 Size reprocessOutputSize = in testQueueImageWithoutRequest()
596 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes()
598 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input); in testReprocessingMaxSizes()
599 Size maxReprocessOutputSize = in testReprocessingMaxSizes()
[all …]
DExtendedCameraCharacteristicsTest.java89 import android.util.Size;
149 private static final Size FULLHD = new Size(1920, 1080);
150 private static final Size FULLHD_ALT = new Size(1920, 1088);
151 private static final Size HD = new Size(1280, 720);
152 private static final Size VGA = new Size(640, 480);
153 private static final Size QVGA = new Size(320, 240);
154 private static final Size UHD = new Size(3840, 2160);
155 private static final Size DC4K = new Size(4096, 2160);
275 Size[] yuvSizes = config.getOutputSizes(ImageFormat.YUV_420_888); in testAvailableStreamConfigs()
276 Size[] y8Sizes = config.getOutputSizes(ImageFormat.Y8); in testAvailableStreamConfigs()
[all …]
DRecordingTest.java61 import android.util.Size;
134 private List<Size> mSupportedVideoSizes;
140 private Size mVideoSize;
526 Size videoSize = new Size(profile.videoFrameWidth, in testBasic10BitRecording()
738 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in testAbandonedHighSpeedRequest()
739 Size size = highSpeedVideoSizes[0]; in testAbandonedHighSpeedRequest()
974 Size maxPreviewSize = mOrderedPreviewSizes.get(0); in doRecordingWithDifferentPreviewSizes()
985 Size videoSz = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in doRecordingWithDifferentPreviewSizes()
1013 List<Size> previewSizes = getPreviewSizesForVideo(videoSz, in doRecordingWithDifferentPreviewSizes()
1053 for (Size sz : mOrderedPreviewSizes) { in videoPreviewSurfaceSharingTestByCamera()
[all …]
DStillCaptureTest.java48 import android.util.Size;
109 Size maxJpegSize = mOrderedStillSizes.get(0); in testJpegExif()
141 List<Size> orderedHeicSizes = CameraTestUtils.getSupportedHeicSizes( in testHeicExif()
143 Size maxHeicSize = orderedHeicSizes.get(0); in testHeicExif()
147 Size previewSize = mOrderedPreviewSizes.get(0); in testHeicExif()
180 List<Size> orderedDepthJpegSizes = CameraTestUtils.getSortedSizesForFormat( in testDynamicDepthCapture()
182 Size maxDepthJpegSize = orderedDepthJpegSizes.get(0); in testDynamicDepthCapture()
214 List<Size> orderedJpegRSizes = CameraTestUtils.getSortedSizesForFormat( in testJpegRCapture()
216 Size maxJpegRSize = orderedJpegRSizes.get(0); in testJpegRCapture()
228 private void stillJpegRTestByCamera(int format, Size stillSize) throws Exception { in stillJpegRTestByCamera()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DSizeTest.java21 import android.util.Size;
35 Size size = new Size(100, 200); in testConstructors()
46 Size.parseSize("2by4"); in testParseSizeInvalid()
51 assertEquals(new Size(100, 200), Size.parseSize("100*200")); in testParseSize()
52 assertEquals(new Size(10, 20), Size.parseSize("10x20")); in testParseSize()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDisplayMetricsSession.java22 import android.util.Size;
50 final Size originalSize = mInitialDisplayMetrics.physicalSize; in changeAspectRatio()
53 Size overrideSize; in changeAspectRatio()
55 overrideSize = new Size(larger, smaller); in changeAspectRatio()
57 overrideSize = new Size(smaller, larger); in changeAspectRatio()
65 final Size originalSize; in changeDisplayMetrics()
79 final Size overrideSize = new Size((int)(originalSize.getWidth() * sizeRatio), in changeDisplayMetrics()
85 public void overrideDisplayMetrics(final Size size, final int density) { in overrideDisplayMetrics()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInlineSuggestionsRequestTest.java27 import android.util.Size;
53 presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, 100), in testInvalidPresentationSpecsCountsThrowsException()
54 new Size(400, 100)).build()); in testInvalidPresentationSpecsCountsThrowsException()
55 presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, 100), in testInvalidPresentationSpecsCountsThrowsException()
56 new Size(400, 100)).build()); in testInvalidPresentationSpecsCountsThrowsException()
73 presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, 100), in testZeroMaxSuggestionCountThrowsException()
74 new Size(400, 100)).build()); in testZeroMaxSuggestionCountThrowsException()
87 new InlinePresentationSpec.Builder(new Size(100, 100), in testInlineSuggestionsRequestValuesWithDefaults()
88 new Size(400, 100)).build()) in testInlineSuggestionsRequestValuesWithDefaults()
119 presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, 100), in testInlineSuggestionsRequestValues()
[all …]
DInlineSuggestionTest.java28 import android.util.Size;
51 new Size(100, 100), new Size(400, 100)).build();
86 () -> suggestion.inflate(context, new Size(10, 10), AsyncTask.THREAD_POOL_EXECUTOR, in testInflateInvalidSizeThrowsException()
99 suggestion.inflate(context, new Size(100, 100), AsyncTask.THREAD_POOL_EXECUTOR, in testInflateNoContentProviderAcceptNullView()
110 suggestion.inflate(context, new Size(100, 100), AsyncTask.THREAD_POOL_EXECUTOR, in testInflateTwiceThrowsException()
113 () -> suggestion.inflate(context, new Size(100, 100), in testInflateTwiceThrowsException()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DImageReaderArgs.java19 import android.util.Size;
27 private final Size[] mOutputSizes;
29 private final Size mInputSize;
34 private ImageReaderArgs(Size[] outputSizes, int[] outputFormats, in ImageReaderArgs()
35 Size inputSize, int inputFormat, in ImageReaderArgs()
48 public static ImageReaderArgs valueOf(Size[] outputSizes, int[] outputFormats, in valueOf()
49 Size inputSize, int inputFormat, in valueOf()
55 public Size[] getOutputSizes() { in getOutputSizes()
63 public Size getInputSize() { in getInputSize()
DItsUtils.java43 import android.util.Size;
114 public static Size[] getRaw16OutputSizes(CameraCharacteristics ccs) in getRaw16OutputSizes()
119 public static Size[] getRaw16MaxResulolutionOutputSizes(CameraCharacteristics ccs) in getRaw16MaxResulolutionOutputSizes()
124 public static Size[] getRaw10OutputSizes(CameraCharacteristics ccs) in getRaw10OutputSizes()
129 public static Size[] getRaw10MaxResulolutionOutputSizes(CameraCharacteristics ccs) in getRaw10MaxResulolutionOutputSizes()
134 public static Size[] getRaw12OutputSizes(CameraCharacteristics ccs) in getRaw12OutputSizes()
139 public static Size[] getJpegOutputSizes(CameraCharacteristics ccs) in getJpegOutputSizes()
144 public static Size[] getYuvOutputSizes(CameraCharacteristics ccs) in getYuvOutputSizes()
149 public static Size[] getY8OutputSizes(CameraCharacteristics ccs) in getY8OutputSizes()
154 public static Size getMaxOutputSize(CameraCharacteristics ccs, int format) in getMaxOutputSize()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java24 import android.hardware.Camera.Size;
90 private List<Size> mPreviewSizes;
91 private Size mNextPreviewSize;
92 private Size mPreviewSize;
174 private int getVideoBitRate(Camera.Size sz) { in getVideoBitRate()
205 Camera.Size recordSize = null; in prepareVideoRecorder()
208 recordSize = mCamera.new Size(176, 144); in prepareVideoRecorder()
211 recordSize = mCamera.new Size(320, 240); in prepareVideoRecorder()
214 recordSize = mCamera.new Size(352, 288); in prepareVideoRecorder()
217 recordSize = mCamera.new Size(720, 480); in prepareVideoRecorder()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DThumbnailUtilsTest.java31 import android.util.Size;
60 private static final Size[] TEST_SIZES = new Size[] {
61 new Size(50, 50),
62 new Size(500, 500),
63 new Size(5000, 5000),
112 for (Size size : TEST_SIZES) { in testCreateAudioThumbnail()
122 for (Size size : TEST_SIZES) { in testCreateAudioThumbnail_SeparateFile()
140 for (Size size : TEST_SIZES) { in testCreateImageThumbnail()
195 for (Size size : TEST_SIZES) { in testCreateImageThumbnailAvif()
205 for (Size size : TEST_SIZES) { in testCreateVideoThumbnail()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0925/
Dpoc.cpp54 static std::vector<bytes_t> UnpackPackets(const uint8_t *Data, size_t Size) { in UnpackPackets() argument
56 while (Size > 0) { in UnpackPackets()
58 Size--; in UnpackPackets()
60 if (s > Size) { in UnpackPackets()
61 s = Size; in UnpackPackets()
68 Size -= s; in UnpackPackets()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java71 import android.util.Size;
122 public static final Size SIZE_BOUND_720P = new Size(1280, 720);
123 public static final Size SIZE_BOUND_1080P = new Size(1920, 1088);
124 public static final Size SIZE_BOUND_2K = new Size(2048, 1088);
125 public static final Size SIZE_BOUND_QHD = new Size(2560, 1440);
126 public static final Size SIZE_BOUND_2160P = new Size(3840, 2160);
128 public static final Size PREVIEW_SIZE_BOUND = SIZE_BOUND_1080P;
221 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, in makeImageReader()
310 int format, Size targetSize, int numBuffers, String overridePhysicalCameraId, in configureTarget()
465 Size[] availableSizes = new Size[streamInfo.getAvailableSizes().size()]; in setupConfigurationTargets()
[all …]
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java50 import android.util.Size;
973 final public Map<Size, Set<Size>> mMinMax; // extreme sizes
974 final public Map<Size, Set<Size>> mNearMinMax; // sizes near extreme
975 final public Set<Size> mArbitraryW; // arbitrary widths in the middle
976 final public Set<Size> mArbitraryH; // arbitrary heights in the middle
977 final public Set<Size> mSizes; // all non-specifically tested sizes
989 mMinMax = new HashMap<Size, Set<Size>>(); in EncoderSize()
990 mNearMinMax = new HashMap<Size, Set<Size>>(); in EncoderSize()
991 mArbitraryW = new HashSet<Size>(); in EncoderSize()
992 mArbitraryH = new HashSet<Size>(); in EncoderSize()
[all …]
/cts/tests/surfacecontrol/src/android/view/cts/util/
DSyncValidatorSCVHTestCase.java30 import android.util.Size;
51 private final Size[] mSizes = new Size[]{new Size(500, 500), new Size(700, 400),
52 new Size(300, 800), new Size(200, 200)};
78 Size size = mSizes[mLastSizeIndex % mSizes.length];
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java49 import android.util.Size;
113 protected Size mPreviewSize;
114 protected List<Size> mOrderedPreviewSizes; // In descending order.
115 protected List<Size> m1080pBoundedOrderedPreviewSizes; // In descending order.
116 protected List<Size> mOrderedVideoSizes; // In descending order.
117 protected List<Size> mOrderedStillSizes; // In descending order.
118 protected HashMap<Size, Long> mMinPreviewFrameDurationMap;
196 protected void startPreview(CaptureRequest.Builder request, Size previewSz, in startPreview()
282 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview()
302 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DSize.java22 public class Size { class
26 public Size(int width, int height) { in Size() method in Size
DPhotoCaptureActivity.java99 private Size[] mPreviewSizes = null;
150 mPreviewSizes = new Size[Camera.getNumberOfCameras()]; in onCreate()
231 List<Camera.Size> supportedSizes = in onResume()
233 for (Camera.Size size : supportedSizes) { in onResume()
402 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize()
406 Camera.Size size = sizes.get(i); in showNextDialogToChoosePreviewSize()
427 Camera.Size size = sizes.get(which); in showNextDialogToChoosePreviewSize()
428 mPreviewSizes[cameraId] = new Size( in showNextDialogToChoosePreviewSize()
448 private void setPreviewTransform(Size previewSize) { in setPreviewTransform()
496 Size selectedPreviewSize = null; in initializeCamera()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInlineSuggestionsRequestDeviceTest.java25 import android.util.Size;
67 new InlinePresentationSpec.Builder(new Size(100, 100), in createInlineSuggestionsRequestWithoutLocale()
68 new Size(400, 100)).build()) in createInlineSuggestionsRequestWithoutLocale()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java38 import android.util.Size;
693 public Size[] getAvailableThumbnailSizesChecked() { in getAvailableThumbnailSizesChecked()
694 Key<Size[]> key = CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES; in getAvailableThumbnailSizesChecked()
695 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked()
696 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
699 checkTrueForKey(key, "size should contain (0, 0)", sizeList.contains(new Size(0, 0))); in getAvailableThumbnailSizesChecked()
705 List<Size> orderedSizes = in getAvailableThumbnailSizesChecked()
953 public Size getPixelArraySizeChecked() { in getPixelArraySizeChecked()
960 public Size getPixelArraySizeChecked(boolean maxResolution) { in getPixelArraySizeChecked()
961 Key<Size> key = maxResolution ? in getPixelArraySizeChecked()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java73 private List<Camera.Size> mPreviewSizes;
74 private List<Camera.Size> mPictureSizes;
75 private Camera.Size mOptimalPreviewSize;
76 private Camera.Size mOptimalPictureSize;
199 class SizeCompare implements Comparator<Camera.Size> { in setUpCamera()
201 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera()
210 TreeSet<Camera.Size> sortedResolutions = new TreeSet<Camera.Size>(s); in setUpCamera()
213 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera()
215 mPreviewSizes = new ArrayList<Camera.Size>(sortedResolutions); in setUpCamera()
221 mPictureSizes = new ArrayList<Camera.Size>(sortedResolutions); in setUpCamera()
[all …]
/cts/tests/camera/src/android/hardware/cts/
DCamera_SizeTest.java80 List<Camera.Size> supportedJpegDimens = parameters.getSupportedPictureSizes(); in testMaxAspectRatios()
81 List<Camera.Size> supportedPreviewDimens = parameters.getSupportedPreviewSizes(); in testMaxAspectRatios()
86 Camera.Size largestJpegDimen = in testMaxAspectRatios()
88 Camera.Size largestPreviewDimen = in testMaxAspectRatios()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPlaceholderTests.java39 import android.util.Size;
200 final Size currentSize = mReportedDisplayMetrics.getSize(); in testPlaceholderFinishedWhenTaskWidthDecreased()
201 mReportedDisplayMetrics.setSize(new Size((int) (currentSize.getWidth() * 0.9), in testPlaceholderFinishedWhenTaskWidthDecreased()
218 final Size currentSize = mReportedDisplayMetrics.getSize(); in testPlaceholderLaunchedWhenTaskWidthIncreased()
219 final Size displaySize = new Size((int) (currentSize.getWidth() * 0.5), in testPlaceholderLaunchedWhenTaskWidthIncreased()
249 mReportedDisplayMetrics.setSize(new Size((int) (displaySize.getWidth() * 1.1), in testPlaceholderLaunchedWhenTaskWidthIncreased()
290 final Size currentSize = mReportedDisplayMetrics.getSize(); in testStickyPlaceholder()
291 mReportedDisplayMetrics.setSize(new Size((int) (currentSize.getWidth() * 0.9), in testStickyPlaceholder()

123456