Home
last modified time | relevance | path

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

123

/cts/tests/tests/location/src/android/location/cts/psedorange/
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()
DUserPositionVelocityWeightedLeastSquare.java813 double norm = Math.sqrt(Math.pow(r[0], 2) + Math.pow(r[1], 2) + Math.pow(r[2], 2)); in calculateGeometryMatrix()
890 Math.pow(10, usefulSatellitesToReceiverMeasurements.get(i).signalToNoiseRatioDb / 10.0); in computePseudorangeAndUncertainties()
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/location/src/android/location/cts/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/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/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/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/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/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/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py120 dist_max = math.sqrt(pow(w, 2)+pow(h, 2))/2
145 dist_to_img_center = math.sqrt(pow(abs(spb_ctx-0.5)*w, 2)
146 + pow(abs(spb_cty-0.5)*h, 2))
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureTest.java122 double widthInInchesSquared = Math.pow(dm.widthPixels/dm.xdpi,2); in getScreenSizeInInches()
123 double heightInInchesSquared = Math.pow(dm.heightPixels/dm.ydpi,2); in getScreenSizeInInches()
/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/
Dtest_linearity.py42 sum([[i/LM1, math.pow(i/LM1, 1/2.2)] for i in xrange(L)], []))
44 sum([[i/LM1, math.pow(i/LM1, 2.2)] for i in xrange(L)], []))
Dtest_raw_exposure.py29 EXP_MULT_SHORT = pow(2, 1.0/3) # Test 3 steps per 2x exposure
30 EXP_MULT_LONG = pow(10, 1.0/3) # Test 3 steps per 10x exposure
Dtest_yuv_plus_jpeg.py61 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
/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/apps/CameraITS/tools/
Ddng_noise_model.py86 bracket_factor = math.pow(2, bracket_stops)
143 e = int(math.pow(2, b)*auto_e/float(s))
221 s *= math.pow(2, 1.0/steps_per_stop)
/cts/common/device-side/util-axt/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/
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 …]

123