/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | BlurPixelVerifier.java | 51 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/ |
D | Ecef2LlaConverter.java | 36 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));
|
D | EcefToTopocentricConverter.java | 71 double distanceMeters = Math.sqrt(Math.pow(inputVectorMeters[0], 2) in convertCartesianToTopocentericRadMeters() 72 + Math.pow(inputVectorMeters[1], 2) + Math.pow(inputVectorMeters[2], 2)); in convertCartesianToTopocentericRadMeters()
|
D | IonosphericModel.java | 121 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()
|
D | GpsMathOperations.java | 34 normSqured = Math.pow(inputVector[i], 2) + normSqured; in vectorNorm()
|
D | TroposphericModelEgnos.java | 276 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/ |
D | FormatterTest.java | 62 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/ |
D | SuplRrlpController.java | 51 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/ |
D | TestPow.rscript | 26 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/ |
D | Cam.java | 163 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 …]
|
D | Frame.java | 174 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()
|
D | ColorUtils.java | 50 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()
|
D | CamUtils.java | 147 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/ |
D | camera_response.rsh | 45 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);
|
D | camera_response_fast.rsh | 37 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/ |
D | MSSIMComparer.java | 33 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/ |
D | calc_thd.py | 37 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/ |
D | Position.java | 50 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/ |
D | FeatureTest.java | 111 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/ |
D | FadeTest.java | 63 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/ |
D | test_lens_shading_and_color_uniformity.py | 52 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/ |
D | ConfigurationTest.java | 54 double diagonalInches = Math.sqrt(Math.pow(xInches, 2) + Math.pow(yInches, 2)); in testScreenConfiguration()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_linearity.py | 44 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/ |
D | test_raw_exposure.py | 34 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/ |
D | SensorCtsHelper.java | 110 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()
|