Home
last modified time | relevance | path

Searched refs:radius (Results 1 – 15 of 15) 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/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/uirendering/src/android/uirendering/cts/testclasses/
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()
/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/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()
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);
Dlayer_info.rsh15 // The max kernel radius of a layer.
Dlayer_info_fast.rsh15 // The max kernel radius of a layer.
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/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java587 float radius; in testInflateGradientRadius() local
592 radius = gradientDrawable.getGradientRadius(); in testInflateGradientRadius()
593 assertEquals(25.0f, radius, 0.0f); in testInflateGradientRadius()
598 radius = gradientDrawable.getGradientRadius(); in testInflateGradientRadius()
599 assertEquals(50.0f, radius, 0.0f); in testInflateGradientRadius()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java1116 private void registerProximityListener(double latitude, double longitude, float radius, in registerProximityListener() argument
1119 mManager.addProximityAlert(latitude, longitude, radius, expiration, mPendingIntent); in registerProximityListener()