Home
last modified time | relevance | path

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

123

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DBlurPixelVerifier.java51 double maxDifference = Math.pow(srcRedChannel - dstRedChannel, 2.0f) in verify()
52 + Math.pow(srcGreenChannel - dstGreenChannel, 2.0f) in verify()
53 + Math.pow(srcBlueChannel - dstBlueChannel, 2.0f); in verify()
57 Math.sqrt(Math.pow(width / 2.0, 2.0) + Math.pow(height / 2.0, 2.0)); in verify()
63 double pixelDistance = Math.sqrt(Math.pow(x - width / 2.0, 2.0) in verify()
64 + Math.pow(y - height / 2.0, 2.0)); in verify()
75 double dstDistance = Math.sqrt(Math.pow(pixelRedChannel - dstRedChannel, 2.0) in verify()
76 + Math.pow(pixelGreenChannel - dstGreenChannel, 2.0) in verify()
77 + Math.pow(pixelBlueChannel - dstBlueChannel, 2.0)); in verify()
81 double srcDistance = Math.sqrt(Math.pow(pixelRedChannel - srcRedChannel, 2.0) in verify()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/
DEcef2LlaConverter.java36 Math.sqrt(Math.pow(EARTH_SEMI_MAJOR_AXIS_METERS, 2) * (1 - Math.pow(ECCENTRICITY, 2)));
38 (Math.pow(EARTH_SEMI_MAJOR_AXIS_METERS, 2) - Math.pow(SEMI_MINOR_AXIS_METERS, 2))
39 / Math.pow(SEMI_MINOR_AXIS_METERS, 2));
55 double pMeters = Math.sqrt(Math.pow(ecefXMeters, 2) + Math.pow(ecefYMeters, 2)); in convertECEFToLLACloseForm()
66 + Math.pow(SECOND_ECCENTRICITY, 2) * SEMI_MINOR_AXIS_METERS * Math.pow(sinTheta, 3); in convertECEFToLLACloseForm()
68 - Math.pow(ECCENTRICITY, 2) * EARTH_SEMI_MAJOR_AXIS_METERS * (Math.pow(cosTheta, 3)); in convertECEFToLLACloseForm()
72 / Math.sqrt(1 - Math.pow(ECCENTRICITY, 2) * (Math.pow(Math.sin(latRadians), 2))); in convertECEFToLLACloseForm()
97 double xyLengthMeters = Math.sqrt(Math.pow(ecefXMeters, 2) + Math.pow(ecefYMeters, 2));
98 double xyzLengthMeters = Math.sqrt(Math.pow(xyLengthMeters, 2) + Math.pow(ecefZMeters, 2));
DEcefToTopocentricConverter.java71 double distanceMeters = Math.sqrt(Math.pow(inputVectorMeters[0], 2) in convertCartesianToTopocentericRadMeters()
72 + Math.pow(inputVectorMeters[1], 2) + Math.pow(inputVectorMeters[2], 2)); in convertCartesianToTopocentericRadMeters()
DIonosphericModel.java121 double slantFactor = 1.0 + 16.0 * Math.pow(0.53 - elevationSemiCircle, 3); in ionoKloboucharCorrectionSeconds()
130 + (1 - Math.pow(phaseOfDelayRadians, 2) / 2.0 + Math.pow(phaseOfDelayRadians, 4) / 24.0) in ionoKloboucharCorrectionSeconds()
DGpsMathOperations.java34 normSqured = Math.pow(inputVector[i], 2) + normSqured; in vectorNorm()
DTroposphericModelEgnos.java276 double zenithDryDelaySeconds = zenithDryDelayAtSeaLevelSeconds * Math.pow(commonBase, powerDry); in calculateZenithDryAndWetDelaysSec()
277 double zenithWetDelaySeconds = zenithWetDelayAtSeaLevelSeconds * Math.pow(commonBase, powerWet); in calculateZenithDryAndWetDelaysSec()
/cts/tests/tests/text/src/android/text/format/cts/
DFormatterTest.java62 assertEquals("1.00 kB", Formatter.formatFileSize(context, bd.pow(1).longValue())); in testFormatFileSize()
63 assertEquals("1.50 kB", Formatter.formatFileSize(context, bd.pow(1).longValue() * 3 / 2)); in testFormatFileSize()
64 assertEquals("12.50 kB", Formatter.formatFileSize(context, bd.pow(1).longValue() * 25 / 2)); in testFormatFileSize()
66 assertEquals("1.00 MB", Formatter.formatFileSize(context, bd.pow(2).longValue())); in testFormatFileSize()
68 assertEquals("1.00 GB", Formatter.formatFileSize(context, bd.pow(3).longValue())); in testFormatFileSize()
70 assertEquals("1.00 TB", Formatter.formatFileSize(context, bd.pow(4).longValue())); in testFormatFileSize()
72 assertEquals("1.00 PB", Formatter.formatFileSize(context, bd.pow(5).longValue())); in testFormatFileSize()
74 assertEquals("1000 PB", Formatter.formatFileSize(context, bd.pow(6).longValue())); in testFormatFileSize()
102 assertEquals("1.0 kB", Formatter.formatShortFileSize(context, bd.pow(1).longValue())); in testFormatShortFileSize()
104 bd.pow(1).longValue() * 3 / 2)); in testFormatShortFileSize()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpController.java51 private static final double NAVIGATION_TGD_SCALE_FACTOR = Math.pow(2, -31);
52 private static final double NAVIGATION_TOC_SCALE_FACTOR = Math.pow(2, 4);
53 private static final double NAVIGATION_AF2_SCALE_FACTOR = Math.pow(2, -55);
54 private static final double NAVIGATION_AF1_SCALE_FACTOR = Math.pow(2, -43);
55 private static final double NAVIGATION_AF0_SCALE_FACTOR = Math.pow(2, -31);
56 private static final double NAVIGATION_CRS_SCALE_FACTOR = Math.pow(2, -5);
57 private static final double NAVIGATION_DELTA_N_SCALE_FACTOR = Math.pow(2, -43) * Math.PI;
58 private static final double NAVIGATION_M0_SCALE_FACTOR = Math.pow(2, -31) * Math.PI;
59 private static final double NAVIGATION_CUC_SCALE_FACTOR = Math.pow(2, -29);
60 private static final double NAVIGATION_E_SCALE_FACTOR = Math.pow(2, -33);
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestPow.rscript26 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/graphics/src/android/graphics/cts/utils/
DCam.java163 float rAF = (float) Math.pow(frame.getFl() * Math.abs(rD) / 100.0, 0.42); in fromIntInFrame()
164 float gAF = (float) Math.pow(frame.getFl() * Math.abs(gD) / 100.0, 0.42); in fromIntInFrame()
165 float bAF = (float) Math.pow(frame.getFl() * Math.abs(bD) / 100.0, 0.42); in fromIntInFrame()
192 float j = 100.0f * (float) Math.pow(ac / frame.getAw(), frame.getC() * frame.getZ()); in fromIntInFrame()
206 (float) Math.pow(t, 0.9) * (float) Math.pow(1.64 - Math.pow(0.29, frame.getN()), in fromIntInFrame()
264 double dE = 1.41 * Math.pow(dEPrime, 0.63); in distance()
281 (float) Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, frame.getN()), 0.73), in viewed()
286 float ac = frame.getAw() * (float) Math.pow(getJ() / 100.0, in viewed()
303 float rC = Math.signum(rA) * (100.0f / frame.getFl()) * (float) Math.pow(rCBase, in viewed()
306 float gC = Math.signum(gA) * (100.0f / frame.getFl()) * (float) Math.pow(gCBase, in viewed()
[all …]
DFrame.java174 float nbb = 0.725f / (float) Math.pow(n, 0.2); in make()
179 float[] rgbAFactors = new float[]{(float) Math.pow(fl * rgbD[0] * rW / 100.0, 0.42), in make()
180 (float) Math.pow(fl * rgbD[1] * gW / 100.0, 0.42), (float) Math.pow( in make()
189 return new Frame(n, aw, nbb, ncb, c, nc, rgbD, fl, (float) Math.pow(fl, 0.25), z); in make()
DColorUtils.java50 r = r > 0.0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 : 12.92 * r; in xyzToColor()
51 g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g; in xyzToColor()
52 b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b; in xyzToColor()
DCamUtils.java147 return (float) Math.pow(((lstar + 16.0) / 116.0), 3) * 100f; in yFromLstar()
159 return (float) Math.pow(((normalized + 0.055f) / 1.055f), 2.4f) * 100.0f; in linearized()
/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.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);
172 l += (0.21f * Math.pow(Color.red(pixel) / 255f, gamma)); in getIntensity()
173 l += (0.72f * Math.pow(Color.green(pixel) / 255f, gamma)); in getIntensity()
174 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/content/src/android/content/pm/cts/
DFeatureTest.java111 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches()
112 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()
/cts/tests/tests/transition/src/android/transition/cts/
DFadeTest.java63 public static final double CONSTANT_C1 = Math.pow(CONSTANT_L * CONSTANT_K1, 2);
64 public static final double CONSTANT_C2 = Math.pow(CONSTANT_L * CONSTANT_K2, 2);
304 l += (0.21f * Math.pow(Color.red(pixel) / 255f, gamma)); in getIntensity()
305 l += (0.72f * Math.pow(Color.green(pixel) / 255f, gamma)); in getIntensity()
306 l += (0.07f * Math.pow(Color.blue(pixel) / 255f, gamma)); in getIntensity()
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py52 dist_to_img_center = math.sqrt(pow(abs(block_center_x-0.5)*img_w, 2) +
53 pow(abs(block_center_y-0.5)*img_h, 2))
213 dist_max = math.sqrt(pow(w, 2)+pow(h, 2))/2
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationTest.java54 double diagonalInches = Math.sqrt(Math.pow(xInches, 2) + Math.pow(yInches, 2)); in testScreenConfiguration()
/cts/apps/CameraITS/tests/scene1_1/
Dtest_linearity.py44 sum([[i/L, math.pow(i/L, 1/2.2)] for i in range(L+1)], []))
46 sum([[i/L, math.pow(i/L, 2.2)] for i in range(L+1)], []))
/cts/apps/CameraITS/tests/scene1_2/
Dtest_raw_exposure.py34 EXP_MULT_SHORT = pow(2, 1.0/3) # Test 3 steps per 2x exposure
35 EXP_MULT_LONG = pow(10, 1.0/3) # Test 3 steps per 10x exposure
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelper.java110 squaredDiffs.add(Math.pow(difference, 2)); in getVariance()
375 return (float)(2.001f * sensor.getMaximumRange() / Math.pow(2, 12)); in getRequiredMaxResolutionForSensor()
435 return (float)(2.001f * sensor.getMaximumRange() / Math.pow(2, 24)); in getRequiredMinResolutionForSensor()

123