Home
last modified time | relevance | path

Searched refs:maxZoom (Results 1 – 5 of 5) sorted by relevance

/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java1559 int maxZoom = parameters.getMaxZoom(); in testImmediateZoomByCamera() local
1560 assertTrue(maxZoom >= 0); in testImmediateZoomByCamera()
1564 assertEquals(maxZoom + 1, ratios.size()); in testImmediateZoomByCamera()
1572 for (int i = 0; i <= maxZoom; i++) { in testImmediateZoomByCamera()
1580 parameters.setZoom(maxZoom + 1); in testImmediateZoomByCamera()
1586 assertEquals(maxZoom, mCamera.getParameters().getZoom()); in testImmediateZoomByCamera()
1622 int maxZoom = parameters.getMaxZoom();
1623 parameters.setZoom(maxZoom);
1625 assertEquals(maxZoom, mCamera.getParameters().getZoom());
1640 mCamera.startSmoothZoom(maxZoom);
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java1807 Float maxZoom = getValueFromKeyNonNull(key); in getAvailableMaxDigitalZoomChecked() local
1808 if (maxZoom == null) { in getAvailableMaxDigitalZoomChecked()
1813 maxZoom >= 1.0f && !Float.isNaN(maxZoom) && !Float.isInfinite(maxZoom)); in getAvailableMaxDigitalZoomChecked()
1815 return maxZoom; in getAvailableMaxDigitalZoomChecked()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java2522 final float maxZoom = mStaticInfo.getAvailableMaxDigitalZoomChecked();
2524 if (Math.abs(maxZoom - 1.0f) < ZOOM_ERROR_MARGIN) {
2539 if (maxZoom < 2.0f) {
2540 normalizedLeft = 0.5f / maxZoom;
2541 normalizedTop = 0.5f / maxZoom;
2612 float zoomFactor = (float) (1.0f + (maxZoom - 1.0) * i / ZOOM_STEPS);
2613 cropRegions[i] = getCropRegionForZoom(zoomFactor, center, maxZoom, activeArraySize);
2680 if (maxZoom > 1.0f) {
DLogicalCameraDeviceTest.java605 final float maxZoom = staticInfo.getAvailableMaxDigitalZoomChecked(); in testLogicalCameraZoomSwitch() local
630 zoomCenter, maxZoom, activeArraySize); in testLogicalCameraZoomSwitch()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1842 final float maxZoom, final Rect activeArray) { in getCropRegionForZoom() argument
1854 if (maxZoom < 1.0) { in getCropRegionForZoom()
1855 throw new IllegalArgumentException("max zoom factor " + maxZoom + " should be >= 1.0"); in getCropRegionForZoom()
1864 if (minEffectiveZoom > maxZoom) { in getCropRegionForZoom()
1867 + " zoom factor " + maxZoom); in getCropRegionForZoom()