Searched refs:zoomFactor (Results 1 – 4 of 4) sorted by relevance
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 237 public void zoomBy(final float zoomFactor) { 239 mWebView.zoomBy(zoomFactor);
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CaptureRequestTest.java | 2679 float zoomFactor = (float) (1.0f + (maxZoom - 1.0) * i / ZOOM_STEPS); 2680 cropRegions[i] = getCropRegionForZoom(zoomFactor, center, 2683 Log.v(TAG, "Testing Zoom for factor " + zoomFactor + " and center " + 2828 float zoomFactor = zoomRatioRange.getLower() + (zoomRatioRange.getUpper() - 2831 Log.v(TAG, "Testing Zoom ratio " + zoomFactor + " Preview size is " + previewSize); 2833 requestBuilder.set(CaptureRequest.CONTROL_ZOOM_RATIO, zoomFactor); 2877 "(requested = %f, result = %f", zoomFactor, resultZoomRatio), 2878 Math.abs(zoomFactor - resultZoomRatio)/zoomFactor <= ZOOM_ERROR_MARGIN); 2883 float errorMultiplier = Math.max(1.0f, zoomFactor); 2905 boolean scaleByZoomRatio = zoomFactor > 1.0f; [all …]
|
D | LogicalCameraDeviceTest.java | 649 float zoomFactor = focalLengths[i+1]/focalLengths[i]; in testLogicalCameraZoomSwitch() local 651 Rect requestCropRegion = getCropRegionForZoom(zoomFactor, in testLogicalCameraZoomSwitch()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 2586 public static Rect getCropRegionForZoom(float zoomFactor, final PointF center, in getCropRegionForZoom() argument 2588 if (zoomFactor < 1.0) { in getCropRegionForZoom() 2589 throw new IllegalArgumentException("zoom factor " + zoomFactor + " should be >= 1.0"); in getCropRegionForZoom() 2615 if (zoomFactor < minEffectiveZoom) { in getCropRegionForZoom() 2616 Log.w(TAG, "Requested zoomFactor " + zoomFactor + " < minimal zoomable factor " in getCropRegionForZoom() 2618 zoomFactor = minEffectiveZoom; in getCropRegionForZoom() 2623 int cropWidth = (int) (activeArray.width() / zoomFactor); in getCropRegionForZoom() 2624 int cropHeight = (int) (activeArray.height() / zoomFactor); in getCropRegionForZoom()
|