Home
last modified time | relevance | path

Searched refs:radius (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_blur.rscript21 static int radius;
52 radius = rad;
55 float sigma = 0.4f * (float)radius + 0.6f;
60 for (int r = -radius; r <= radius; r ++) {
62 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
63 normalizeFactor += gaussian[r + radius];
67 for (int r = -radius; r <= radius; r ++) {
69 gaussian[r + radius] *= normalizeFactor;
76 for (int r = -radius; r <= radius; r ++) {
87 for (int r = -radius; r <= radius; r ++) {
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DGradientTests.java81 float radius = Math.min(width, height) / 2f; in testRadialGradientWithFocalPoint() local
88 radius, in testRadialGradientWithFocalPoint()
120 float radius = Math.min(width, height) / 2f; in testRadialGradientSameStartEndCircles() local
125 radius, in testRadialGradientSameStartEndCircles()
128 radius, in testRadialGradientSameStartEndCircles()
272 float radius = TEST_WIDTH / 2f; in testMatrixTransformation() local
281 radius, in testMatrixTransformation()
284 radius, in testMatrixTransformation()
290 matrix.postTranslate(radius, radius); in testMatrixTransformation()
DShaderTests.java120 final float radius = width / 2.0f; in testComplexShaderUsage()
121 bitmapCanvas.drawCircle(width / 2, height / 2, radius, mPaint); in testComplexShaderUsage()
127 bitmapCanvas.drawCircle(width / 2, 0, radius, mPaint); in testComplexShaderUsage()
128 bitmapCanvas.drawCircle(width / 2, height, radius, mPaint); in testComplexShaderUsage()
134 width / 2, height / 2, radius, in testComplexShaderUsage()
DPaintTests.kt55 val radius = 3f in <lambda>() constant
64 blurPaint.maskFilter = BlurMaskFilter(radius, BlurMaskFilter.Blur.NORMAL) in <lambda>()
69 paint.setShadowLayer(radius, dx, dy, shadowColor) in <lambda>()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCbGeoUtilsTest.java81 double radius = 1000; in testCircle() local
82 CbGeoUtils.Circle circle = new CbGeoUtils.Circle(p1, radius); in testCircle()
84 assertEquals(radius, circle.getRadius(), DELTA); in testCircle()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java281 for (double radius = 4; radius < 25; radius += 4) { in testColorLong()
282 double dx = Math.cos(angle) * radius; in testColorLong()
283 double dy = Math.sin(angle) * radius; in testColorLong()
293 + " and radius " + radius + " should be mostly red", in testColorLong()
307 ColorUtils.verifyColor("Radius " + radius + " at angle " + toString(angle) in testColorLong()
311 lastRadius = radius; in testColorLong()
DRadialGradientTest.java103 for (double radius = 4; radius < 25; radius += 4) { in testColorLong()
108 double dx = Math.cos(angle) * radius; in testColorLong()
109 double dy = Math.sin(angle) * radius; in testColorLong()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DBlurStack.java263 float radius = 0; in computeDiskRadius() local
265 radius = blurInfinity * (frontFocalDepth3D - depth3D) / depth3D; in computeDiskRadius()
267 radius = blurInfinity * (depth3D - backFocalDepth3D) / depth3D; in computeDiskRadius()
269 diskRadiusArray[depth - MIN_DEPTH] = Math.min(radius, MAX_DISC_RADIUS); in computeDiskRadius()
Dlayer_info.rsh15 // The max kernel radius of a layer.
Dlayer_info_fast.rsh15 // The max kernel radius of a layer.
Dlayered_filter_fast_f32.rscript65 // The dilation radius that controls how the current layer should be blended
183 // Visits every pixel in the window of radius (center_x,center_y)
214 // This pixel is not active but within the dilation radius of the active
238 // This pixel is not active but within the dilation radius of the active
539 void SetBlendInfo(int radius) {
540 g_blend_info.dilation_radius = radius;
541 g_blend_info.matte_normalizer = 1.0f / (radius + 1);
Dlayered_filter_fast_d1new.rscript63 // The dilation radius that controls how the current layer should be blended
254 // This pixel is not active but within the dilation radius of the active
273 // This pixel is not active but within the dilation radius of the active
300 // This pixel is not active but within the dilation radius of the active
318 // This pixel is not active but within the dilation radius of the active
789 void SetBlendInfo(int radius) {
790 g_blend_info.dilation_radius = radius;
791 g_blend_info.matte_normalizer = 1.0f / (radius + 1);
Dluts_for_speedup_f32.rsh63 // circle of radius r and a horizontal line of height y.
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/
DTouchPointView.java83 int radius = canvas.getWidth() / 20; in onDraw() local
89 canvas.drawCircle(point.x, point.y, radius, mPaint); in onDraw()
/cts/apps/CtsVerifier/include/colorchecker/
Dimagetesthandler.h43 void drawLine(int angle, int radius, const Vec3i &color);
/cts/apps/CameraITS/utils/
Dzoom_capture_utils.py198 radius = (shape['width'] + shape['height']) / 4
200 circlish = round((math.pi * radius**2) / area, 4)
207 logging.debug('circle found: r: %.2f, area: %.2f\n', radius, area)
208 circles.append([shape['ctx'], shape['cty'], radius, circlish, area])
Dimage_fov_utils.py166 def calc_circle_image_ratio(radius, img_w, img_h): argument
176 return 100 * math.pi * math.pow(radius, 2) / (img_w * img_h)
Dopencv_processing_utils.py519 radius = (shape['width'] + shape['height']) / 4
521 circlish = (math.pi * radius**2) / area
526 radius, colour, circlish, aspect_ratio, num_pts, fill)
530 num_pts/radius >= CIRCLE_RADIUS_NUMPTS_THRESH and
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java590 float radius; in testInflateGradientRadius() local
595 radius = gradientDrawable.getGradientRadius(); in testInflateGradientRadius()
596 assertEquals(25.0f, radius, 0.0f); in testInflateGradientRadius()
601 radius = gradientDrawable.getGradientRadius(); in testInflateGradientRadius()
602 assertEquals(50.0f, radius, 0.0f); in testInflateGradientRadius()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DActivityTransitionTests.java841 final int radius = topLeftCorner.getRadius(); in cropRoundedCornersRegions() local
842 final double projectLength = Math.ceil(radius * projectionConst); in cropRoundedCornersRegions()
848 final int radius = bottomRightCorner.getRadius(); in cropRoundedCornersRegions() local
849 final double projectLength = Math.ceil(radius * projectionConst); in cropRoundedCornersRegions()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt1364 field public static final int radius = 16843176; // 0x10101a8