Home
last modified time | relevance | path

Searched refs:pow (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestPow.rs26 return pow(inBase, inExponent);
31 return pow(inBase, inExponent);
36 return pow(inBase, inExponent);
41 return pow(inBase, inExponent);
46 return pow(inBase, inExponent);
51 return pow(inBase, inExponent);
56 return pow(inBase, inExponent);
61 return pow(inBase, inExponent);
/cts/tests/tests/text/src/android/text/format/cts/
DFormatterTest.java44 assertEquals("1.00 KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue())); in testFormatFileSize()
46 assertEquals("1.00 MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue())); in testFormatFileSize()
48 assertEquals("1.00 GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue())); in testFormatFileSize()
50 assertEquals("1.00 TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue())); in testFormatFileSize()
52 assertEquals("1.00 PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue())); in testFormatFileSize()
54 assertEquals("1024 PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue())); in testFormatFileSize()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response.rsh45 const float pow_va = pow(v, camera_response->a);
49 return pow(x1 / x2, camera_response->c);
54 const float pow_vc = pow(v, 1.0f / camera_response->c);
56 return pow(pow_vc / x2, 1.0f / camera_response->a);
60 const float pow_va = pow(v, kDefaultA);
64 return pow(x1 / x2, kDefaultC);
68 const float pow_vc = pow(v, 1.0f / kDefaultC);
70 return pow(pow_vc / x2, 1.0f / kDefaultA);
Dcamera_response_fast.rsh37 const float pow_va = pow(v, kDefaultA);
41 return pow(x1 / x2, kDefaultC);
45 const float pow_vc = pow(v, 1.0f / kDefaultC);
47 return pow(pow_vc / x2, 1.0f / kDefaultA);
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.java38 public static final double CONSTANT_C1 = Math.pow(CONSTANT_L * CONSTANT_K1, 2);
39 public static final double CONSTANT_C2 = Math.pow(CONSTANT_L * CONSTANT_K2, 2);
186 l += (0.21f * Math.pow(Color.red(pixel) / 255f, gamma)); in getIntensity()
187 l += (0.72f * Math.pow(Color.green(pixel) / 255f, gamma)); in getIntensity()
188 l += (0.07f * Math.pow(Color.blue(pixel) / 255f, gamma)); in getIntensity()
/cts/suite/audio_quality/test_description/processing/
Dcalc_thd.py37 P0 = math.pow(la.norm(fftData[baseSignalLoc - iMargain/2: baseSignalLoc + iMargain/2]), 2)
41 Pothers += math.pow(la.norm(fftData[i - iMargain/2: i + iMargain/2]), 2)
/cts/libs/view/src/com/android/view/
DPosition.java50 return Math.sqrt(Math.pow((mX - other.mX), 2) + Math.pow((mY - other.mY), 2)); in distanceTo()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java45 double diagonalInches = Math.sqrt(Math.pow(xInches, 2) + Math.pow(yInches, 2)); in testScreenConfiguration()
/cts/apps/CameraITS/tests/scene1/
Dtest_linearity.py44 sum([[i/LM1, math.pow(i/LM1, 1/2.2)] for i in xrange(L)], []))
46 sum([[i/LM1, math.pow(i/LM1, 2.2)] for i in xrange(L)], []))
Dtest_jpeg.py57 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_yuv_plus_jpeg.py59 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_yuv_plus_raw.py62 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_yuv_plus_raw10.py62 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_yuv_plus_raw12.py62 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_auto_vs_manual.py72 gamma = sum([[i/63.0,math.pow(i/63.0,1/2.2)] for i in xrange(64)],[])
Dtest_ev_compensation_advanced.py52 ev_shifts = [pow(2, step * ev_per_step) for step in ev_steps]
Dtest_yuv_jpeg_all.py77 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_exposure.py83 m = m * pow(2, 1.0 / 3)
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py117 dist_max = math.sqrt(pow(w, 2)+pow(h, 2))/2
142 dist_to_img_center = math.sqrt(pow(abs(spb_ctx-0.5)*w, 2)
143 + pow(abs(spb_cty-0.5)*h, 2))
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py80 bracket_factor = math.pow(2, bracket_stops)
131 e = int(math.pow(2, b)*auto_e/float(s))
187 s = s*math.pow(2, 1.0/steps_per_stop)
/cts/libs/deviceutil/src/android/cts/util/
DMediaPerfUtils.java148 double lowerBoundary2 = reported.getUpper() / Math.pow(FRAMERATE_TOLERANCE, 2); in verifyAchievableFrameRates()
149 double upperBoundary2 = reported.getLower() * Math.pow(FRAMERATE_TOLERANCE, 2); in verifyAchievableFrameRates()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCornerPathEffectTest.java96 assertTrue(cornerPixels > Math.sqrt(2 * Math.pow(RADIUS, 2))); in testCornerPathEffect()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_blur.rs62 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
DCoreMathVerifier.java102 static native float pow(float x, float y); in pow() method in CoreMathVerifier
852 static private Target.Floaty pow(double x, double y, Target t) { in pow() method in CoreMathVerifier
856 Math.pow(base.mid(), exponent.mid()), in pow()
857 Math.pow(base.min(), exponent.min()), in pow()
858 Math.pow(base.min(), exponent.max()), in pow()
859 Math.pow(base.max(), exponent.min()), in pow()
860 Math.pow(base.max(), exponent.max())); in pow()
867 pow(base.mid32(), exponent.mid32()), in powr()
868 pow(base.min32(), exponent.min32()), in powr()
869 pow(base.min32(), exponent.max32()), in powr()
[all …]
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DRSUtils.java60 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles()
111 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats()

12