/frameworks/base/services/java/com/android/server/ |
D | TwilightCalculator.java | 78 final float trueAnomaly = meanAnomaly + C1 * FloatMath.sin(meanAnomaly) + C2 in calculateTwilight() 79 * FloatMath.sin(2 * meanAnomaly) + C3 * FloatMath.sin(3 * meanAnomaly); in calculateTwilight() 87 double solarTransitJ2000 = n + J0 + arcLongitude + 0.0053f * FloatMath.sin(meanAnomaly) in calculateTwilight() 88 + -0.0069f * FloatMath.sin(2 * solarLng); in calculateTwilight() 91 double solarDec = Math.asin(FloatMath.sin(solarLng) * FloatMath.sin(OBLIQUITY)); in calculateTwilight() 95 double cosHourAngle = (FloatMath.sin(ALTIDUTE_CORRECTION_CIVIL_TWILIGHT) - Math.sin(latRad) in calculateTwilight() 96 * Math.sin(solarDec)) / (Math.cos(latRad) * Math.cos(solarDec)); in calculateTwilight()
|
/frameworks/base/voip/jni/rtp/ |
D | util.cpp | 42 sockaddr_in *sin = (sockaddr_in *)ss; in parse() local 43 if (inet_pton(AF_INET, address, &(sin->sin_addr)) > 0) { in parse() 44 sin->sin_family = AF_INET; in parse() 45 sin->sin_port = htons(port); in parse()
|
/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 175 sinMLon[1] = (float) Math.sin(mGcLongitudeRad); in GeomagneticField() 235 + gcZ * Math.sin(latDiffRad)); in GeomagneticField() 237 mZ = (float) (- gcX * Math.sin(latDiffRad) in GeomagneticField() 312 float slat = (float) Math.sin(gdLatRad); in computeGeocentricCoordinates() 357 float sin = (float) Math.sin(thetaRad); in LegendreTable() local 368 mP[n][m] = sin * mP[n - 1][m - 1]; in LegendreTable() 370 + sin * mPDeriv[n - 1][m - 1]; in LegendreTable() 373 mPDeriv[n][m] = -sin * mP[n - 1][m] in LegendreTable() 380 mPDeriv[n][m] = -sin * mP[n - 1][m] in LegendreTable()
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
D | FloatMath_Delegate.java | 68 /*package*/ static float sin(float angle) { in sin() method in FloatMath_Delegate 69 return (float)Math.sin(angle); in sin()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | FloatMathTest.java | 46 assertEquals(0.0, FloatMath.sin(0), 0); in testSin() 47 assertEquals(0.8414709848078965f, FloatMath.sin(1), 0); in testSin()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Matrix_Delegate.java | 439 float sin = (float)Math.sin(rad); in native_preRotate() local 442 d.preTransform(getRotate(sin, cos)); in native_preRotate() 1057 float sin = (float)Math.sin(rad); in getRotate() local 1060 return getRotate(sin, cos); in getRotate() 1063 /*package*/ static float[] getRotate(float sin, float cos) { in getRotate() argument 1064 return setRotate(new float[9], sin, cos); in getRotate() 1069 float sin = (float)Math.sin(rad); in setRotate() local 1072 return setRotate(dest, sin, cos); in setRotate() 1075 /*package*/ static float[] setRotate(float[] dest, float sin, float cos) { in setRotate() argument 1077 dest[1] = -sin; in setRotate() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | MathPerformanceTest.java | 76 result = Math.sin(sDouble1); in testMathSin() 77 result = Math.sin(sDouble1); in testMathSin() 78 result = Math.sin(sDouble1); in testMathSin() 79 result = Math.sin(sDouble1); in testMathSin() 80 result = Math.sin(sDouble1); in testMathSin() 81 result = Math.sin(sDouble1); in testMathSin() 82 result = Math.sin(sDouble1); in testMathSin() 83 result = Math.sin(sDouble1); in testMathSin() 84 result = Math.sin(sDouble1); in testMathSin() 85 result = Math.sin(sDouble1); in testMathSin()
|
D | MathTest.java | 118 double r = Math.sin(Math.asin(OPP / HYP)); in testAsinD() 629 assertEquals("Incorrect answer", 0.0, Math.sin(0), 0D); in testSinD() 630 assertEquals("Incorrect answer", 0.8414709848078965, Math.sin(1), 0D); in testSinD()
|
D | StrictMathTest.java | 100 assertTrue("Returned incorrect arc sine", StrictMath.sin(StrictMath in testAsinD() 646 assertTrue("Returned incorrect sine", StrictMath.sin(StrictMath in testSinD()
|
/frameworks/base/core/java/android/util/ |
D | FloatMath.java | 56 public static native float sin(float angle); in sin() method in FloatMath
|
/frameworks/base/core/java/android/view/animation/ |
D | CycleInterpolator.java | 43 return (float)(Math.sin(2 * mCycles * Math.PI * input)); in getInterpolation()
|
/frameworks/base/opengl/tests/angeles/ |
D | demo.c | 181 point->y = (float)(sin(t) * cos(p) / r1 / r2); in superShapeMap() 182 point->z = (float)(sin(p) / r2); in superShapeMap() 189 pow(fabs(sin(p[0] * t / 4)) / p[2], p[5]), 1 / p[3])); in ssFunc() 385 const float m = (float)(cos(xm * 2) * sin(ym * 4) * 0.75f); in createGroundPlane() 733 eY = cY - (float)sin(lerp[3]) * dist; in camTrack() 742 cY = eY + (float)sin(lerp[3]); in camTrack()
|
/frameworks/base/libs/rs/scriptc/ |
D | rs_math.rsh | 235 extern float __attribute__((overloadable)) sin(float); 236 extern float2 __attribute__((overloadable)) sin(float2); 237 extern float3 __attribute__((overloadable)) sin(float3); 238 extern float4 __attribute__((overloadable)) sin(float4); 239 extern float8 __attribute__((overloadable)) sin(float8); 240 extern float16 __attribute__((overloadable)) sin(float16);
|
/frameworks/base/cmds/stagefright/ |
D | SineSource.cpp | 80 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read()
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 498 float s = (float) Math.sin(a); in setRotateM() 559 float sx = (float) Math.sin(x); in setRotateEulerM() 561 float sy = (float) Math.sin(y); in setRotateEulerM() 563 float sz = (float) Math.sin(z); in setRotateEulerM()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 565 float sin = (float) Math.sin(angle); in rotate() local 568 float x = points[i] * cos - points[i + 1] * sin; in rotate() 569 float y = points[i] * sin + points[i + 1] * cos; in rotate()
|
/frameworks/base/graphics/java/android/renderscript/ |
D | Element.java | 403 String[] sin = new String[mCount]; in create() local 405 java.lang.System.arraycopy(mElementNames, 0, sin, 0, mCount); in create() 406 return new Element(mRS, ein, sin); in create()
|
D | Matrix4f.java | 79 s = (float)java.lang.Math.sin(rot); in loadRotate()
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 296 double sinU1 = Math.sin(U1); in computeDistanceAndBearing() 297 double sinU2 = Math.sin(U2); in computeDistanceAndBearing() 314 sinLambda = Math.sin(lambda); in computeDistanceAndBearing()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorMatrix.java | 123 float sine = FloatMath.sin(radians); in setRotate()
|
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
D | SoundPoolTest.java | 310 float leftVolume = (float) Math.sin(radians); in TestVolume()
|
/frameworks/base/core/java/android/widget/ |
D | OverScroller.java | 842 distance = mVelocity / TIME_COEF * Math.sin(d); in update()
|
/frameworks/base/packages/TtsService/jni/ |
D | android_tts_SynthProxy.cpp | 94 sinw = float(sin(w)); in initializeEQ()
|
/frameworks/base/media/libmedia/ |
D | ToneGenerator.cpp | 1493 d0 = - (float)GEN_AMP * sin(2 * M_PI * F_div_Fs); in WaveGenerator()
|