Home
last modified time | relevance | path

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

12

/cts/tests/tests/text/src/android/text/format/cts/
DFormatterTest.java61 assertEquals("1.00 kB", Formatter.formatFileSize(context, bd.pow(1).longValue())); in testFormatFileSize()
62 assertEquals("1.50 kB", Formatter.formatFileSize(context, bd.pow(1).longValue() * 3 / 2)); in testFormatFileSize()
63 assertEquals("12.50 kB", Formatter.formatFileSize(context, bd.pow(1).longValue() * 25 / 2)); in testFormatFileSize()
65 assertEquals("1.00 MB", Formatter.formatFileSize(context, bd.pow(2).longValue())); in testFormatFileSize()
67 assertEquals("1.00 GB", Formatter.formatFileSize(context, bd.pow(3).longValue())); in testFormatFileSize()
69 assertEquals("1.00 TB", Formatter.formatFileSize(context, bd.pow(4).longValue())); in testFormatFileSize()
71 assertEquals("1.00 PB", Formatter.formatFileSize(context, bd.pow(5).longValue())); in testFormatFileSize()
73 assertEquals("1000 PB", Formatter.formatFileSize(context, bd.pow(6).longValue())); in testFormatFileSize()
101 assertEquals("1.0 kB", Formatter.formatShortFileSize(context, bd.pow(1).longValue())); in testFormatShortFileSize()
103 bd.pow(1).longValue() * 3 / 2)); in testFormatShortFileSize()
[all …]
/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/hostsidetests/theme/src/android/theme/cts/
DColorUtils.java153 sr = sr < 0.04045 ? sr / 12.92 : Math.pow((sr + 0.055) / 1.055, 2.4); in RGBToXYZ()
155 sg = sg < 0.04045 ? sg / 12.92 : Math.pow((sg + 0.055) / 1.055, 2.4); in RGBToXYZ()
157 sb = sb < 0.04045 ? sb / 12.92 : Math.pow((sb + 0.055) / 1.055, 2.4); in RGBToXYZ()
195 ? Math.pow(component, 1 / 3.0)
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.java33 public static final double CONSTANT_C1 = Math.pow(CONSTANT_L * CONSTANT_K1, 2);
34 public static final double CONSTANT_C2 = Math.pow(CONSTANT_L * CONSTANT_K2, 2);
155 l += (0.21f * Math.pow(Color.red(pixel) / 255f, gamma)); in getIntensity()
156 l += (0.72f * Math.pow(Color.green(pixel) / 255f, gamma)); in getIntensity()
157 l += (0.07f * Math.pow(Color.blue(pixel) / 255f, gamma)); in getIntensity()
/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/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/scene5/
Dtest_lens_shading_and_color_uniformity.py118 dist_max = math.sqrt(pow(w, 2)+pow(h, 2))/2
143 dist_to_img_center = math.sqrt(pow(abs(spb_ctx-0.5)*w, 2)
144 + pow(abs(spb_cty-0.5)*h, 2))
/cts/apps/CameraITS/tests/scene1/
Dtest_linearity.py43 sum([[i/LM1, math.pow(i/LM1, 1/2.2)] for i in xrange(L)], []))
45 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_yuv_jpeg_all.py77 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
Dtest_auto_vs_manual.py79 gamma = sum([[i/63.0,math.pow(i/63.0,1/2.2)] for i in xrange(64)],[])
Dtest_ev_compensation_advanced.py60 ev_shifts = [pow(2, step * ev_per_step) for step in ev_steps]
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py82 bracket_factor = math.pow(2, bracket_stops)
130 e = int(math.pow(2, b)*auto_e/float(s))
187 s *= math.pow(2, 1.0/steps_per_stop)
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaPerfUtils.java159 double lowerBoundary2 = reported.getUpper() / Math.pow(FRAMERATE_TOLERANCE, 2); in verifyAchievableFrameRates()
160 double upperBoundary2 = reported.getLower() * Math.pow(FRAMERATE_TOLERANCE, 2); in verifyAchievableFrameRates()
/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()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCornerPathEffectTest.java104 assertTrue(cornerPixels > Math.sqrt(2 * Math.pow(RADIUS, 2))); in testCornerPathEffect()

12