Home
last modified time | relevance | path

Searched refs:radius (Results 1 – 20 of 20) 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.java116 final float radius = width / 2.0f; in testComplexShaderUsage()
117 bitmapCanvas.drawCircle(width / 2, height / 2, radius, mPaint); in testComplexShaderUsage()
123 bitmapCanvas.drawCircle(width / 2, 0, radius, mPaint); in testComplexShaderUsage()
124 bitmapCanvas.drawCircle(width / 2, height, radius, mPaint); in testComplexShaderUsage()
130 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/tests/scene6/
Dtest_zoom.py166 radius = (shape['width'] + shape['height']) / 4
168 circlish = round((math.pi * radius**2) / area, 4)
170 circles.append([shape['ctx'], shape['cty'], radius, circlish, area])
/cts/apps/CameraITS/utils/
Dopencv_processing_utils.py368 radius = (shape['width'] + shape['height']) / 4
370 circlish = (math.pi * radius**2) / area
373 'circlish: %.3f, ar: %.3f, pts: %d', radius, colour,
378 num_pts/radius >= CIRCLE_RADIUS_NUMPTS_THRESH):
/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/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py296 def _calc_circle_image_ratio(radius, img_w, img_h): argument
306 return 100 * math.pi * math.pow(radius, 2) / (img_w * img_h)
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...