Home
last modified time | relevance | path

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

12345

/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
DTwilightCalculator.java95 final double trueAnomaly = meanAnomaly + C1 * Math.sin(meanAnomaly) + C2 in calculateTwilight()
96 * Math.sin(2 * meanAnomaly) + C3 * Math.sin(3 * meanAnomaly); in calculateTwilight()
104 double solarTransitJ2000 = n + J0 + arcLongitude + 0.0053d * Math.sin(meanAnomaly) in calculateTwilight()
105 + -0.0069d * Math.sin(2 * solarLng); in calculateTwilight()
108 double solarDec = Math.asin(Math.sin(solarLng) * Math.sin(OBLIQUITY)); in calculateTwilight()
112 double cosHourAngle = (Math.sin(ALTIDUTE_CORRECTION_CIVIL_TWILIGHT) - Math.sin(latRad) in calculateTwilight()
113 * Math.sin(solarDec)) / (Math.cos(latRad) * Math.cos(solarDec)); in calculateTwilight()
/frameworks/opt/net/voip/src/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java51 double sin = Math.sin(stepSizeRadians); in initializePll() local
53 cos, sin, in initializePll()
54 -sin, cos}); in initializePll()
84 return mAmplitude * Math.sin(phi); in idealSignal()
/frameworks/layoutlib/bridge/src/android/graphics/
DMatrix_Delegate.java431 float sin = (float) Math.sin(rad); in nPreRotate() local
434 d.preTransform(getRotate(sin, cos)); in nPreRotate()
1003 float sin = (float)Math.sin(rad); in getRotate() local
1006 return getRotate(sin, cos); in getRotate()
1009 /*package*/ static float[] getRotate(float sin, float cos) { in getRotate() argument
1010 return setRotate(new float[9], sin, cos); in getRotate()
1015 float sin = (float)Math.sin(rad); in setRotate() local
1018 return setRotate(dest, sin, cos); in setRotate()
1021 /*package*/ static float[] setRotate(float[] dest, float sin, float cos) { in setRotate() argument
1023 dest[1] = -sin; in setRotate()
[all …]
/frameworks/rs/driver/runtime/
Drs_quaternion.c60 float s = sin(rot); in rsQuaternionLoadRotateUnit()
153 float invSinTheta = 1.0f / sin(theta); in rsQuaternionSlerp()
154 scale = sin(theta * (1.0f - t)) * invSinTheta; in rsQuaternionSlerp()
155 invScale = sin(theta * t) * invSinTheta; in rsQuaternionSlerp()
162 scale = sin(M_PI * (0.5f - t)); in rsQuaternionSlerp()
163 invScale = sin(M_PI * t); in rsQuaternionSlerp()
/frameworks/support/transition/src/main/java/androidx/transition/
DViewUtilsBase.java107 final float sin = values[Matrix.MSKEW_Y]; in setAnimationMatrix() local
108 final float cos = (float) Math.sqrt(1 - sin * sin) in setAnimationMatrix()
110 final float rotation = (float) Math.toDegrees(Math.atan2(sin, cos)); in setAnimationMatrix()
/frameworks/base/core/java/android/util/
DFloatMath.java69 public static float sin(float angle) { in sin() method in FloatMath
70 return (float) Math.sin(angle); in sin()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DQuaternion.java75 double sin = Math.sin(angle / 2); in set() local
76 x[1] = axis[0] * sin; in set()
77 x[2] = axis[1] * sin; in set()
78 x[3] = axis[2] * sin; in set()
/frameworks/av/media/libaaudio/examples/utils/
DSineGenerator.h47 buffer[sampleIndex] = (int16_t) (INT16_MAX * sin(mPhase) * mAmplitude); in render()
55 buffer[sampleIndex] = sin(mPhase) * mAmplitude; in render()
/frameworks/native/libs/math/include/math/
DTQuatHelpers.h227 return std::exp(q.w)*QUATERNION<T>((sin(nq)/nq)*q.xyz, cos(nq)); in exp()
241 return std::pow(nq, a) * QUATERNION<T>(normalize(q.xyz) * std::sin(theta), std::cos(theta)); in pow()
252 const T isina = 1 / sin(a); in slerp()
253 const T s0 = std::sin(a0) * isina; in slerp()
254 const T s1 = std::sin(a1) * isina; in slerp()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java101 return new Point((float)(Math.cos(radians) * x - Math.sin(radians) * y), in rotated()
102 (float)(Math.sin(radians) * x + Math.cos(radians) * y)); in rotated()
/frameworks/native/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/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DSpringForce.java306 + sinCoeff * Math.sin(mDampedFreq * deltaT)); in updateValues()
309 * (-mDampedFreq * cosCoeff * Math.sin(mDampedFreq * deltaT) in updateValues()
/frameworks/rs/script_api/include/
Drs_quaternion.rsh133 float s = sin(rot);
296 float invSinTheta = 1.0f / sin(theta);
297 scale = sin(theta * (1.0f - t)) * invSinTheta;
298 invScale = sin(theta * t) * invSinTheta;
305 scale = sin(M_PI * (0.5f - t));
306 invScale = sin(M_PI * t);
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java367 double sin = Math.sin(radians); in getRange() local
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h))); in getRange()
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h))); in getRange()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/numeric/
DSinWaveFilter.java59 output.setObjectValue(((float)Math.sin(mValue) + 1.0f) / 2.0f); in process()
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java117 s = (float)java.lang.Math.sin(rot); in loadRotate()
154 s = (float)java.lang.Math.sin(rot); in loadRotate()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dfp_mad.rs92 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
106 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/wilhelm/tests/sandbox/
Dconfigbq.c152 short sampleLeft = sin(seconds * M_PI_2 * hzLeft) * 32767.0; in main()
153 short sampleRight = sin(seconds * M_PI_2 * hzRight) * 32767.0; in main()
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DMatrix3f.java120 s = (float)java.lang.Math.sin(rot); in loadRotate()
157 s = (float)java.lang.Math.sin(rot); in loadRotate()

12345