Home
last modified time | relevance | path

Searched refs:sin (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/services/java/com/android/server/
DTwilightCalculator.java78 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/
Dutil.cpp42 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/
DGeomagneticField.java175 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/
DFloatMath_Delegate.java68 /*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/
DFloatMathTest.java46 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/
DMatrix_Delegate.java439 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/
DMathPerformanceTest.java76 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()
DMathTest.java118 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()
DStrictMathTest.java100 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/
DFloatMath.java56 public static native float sin(float angle); in sin() method in FloatMath
/frameworks/base/core/java/android/view/animation/
DCycleInterpolator.java43 return (float)(Math.sin(2 * mCycles * Math.PI * input)); in getInterpolation()
/frameworks/base/opengl/tests/angeles/
Ddemo.c181 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/
Drs_math.rsh235 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/
DSineSource.cpp80 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java498 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/
DGestureUtils.java565 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/
DElement.java403 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()
DMatrix4f.java79 s = (float)java.lang.Math.sin(rot); in loadRotate()
/frameworks/base/location/java/android/location/
DLocation.java296 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/
DColorMatrix.java123 float sine = FloatMath.sin(radians); in setRotate()
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java310 float leftVolume = (float) Math.sin(radians); in TestVolume()
/frameworks/base/core/java/android/widget/
DOverScroller.java842 distance = mVelocity / TIME_COEF * Math.sin(d); in update()
/frameworks/base/packages/TtsService/jni/
Dandroid_tts_SynthProxy.cpp94 sinw = float(sin(w)); in initializeEQ()
/frameworks/base/media/libmedia/
DToneGenerator.cpp1493 d0 = - (float)GEN_AMP * sin(2 * M_PI * F_div_Fs); in WaveGenerator()