Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/hardware/
DGeomagneticField.java179 sinMLon[1] = (float) Math.sin(mGcLongitudeRad); in GeomagneticField()
239 + gcZ * Math.sin(latDiffRad)); in GeomagneticField()
241 mZ = (float) (- gcX * Math.sin(latDiffRad) in GeomagneticField()
316 float slat = (float) Math.sin(gdLatRad); in computeGeocentricCoordinates()
361 float sin = (float) Math.sin(thetaRad); in LegendreTable() local
372 mP[n][m] = sin * mP[n - 1][m - 1]; in LegendreTable()
374 + sin * mPDeriv[n - 1][m - 1]; in LegendreTable()
377 mPDeriv[n][m] = -sin * mP[n - 1][m] in LegendreTable()
384 mPDeriv[n][m] = -sin * mP[n - 1][m] in LegendreTable()
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java54 double sin = Math.sin(stepSizeRadians); in initializePll() local
56 cos, sin, in initializePll()
57 -sin, cos}); in initializePll()
87 return mAmplitude * Math.sin(phi); in idealSignal()
/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/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()
1013 float sin = (float)Math.sin(rad); in getRotate() local
1016 return getRotate(sin, cos); in getRotate()
1019 /*package*/ static float[] getRotate(float sin, float cos) { in getRotate() argument
1020 return setRotate(new float[9], sin, cos); in getRotate()
1025 float sin = (float)Math.sin(rad); in setRotate() local
1028 return setRotate(dest, sin, cos); in setRotate()
1031 /*package*/ static float[] setRotate(float[] dest, float sin, float cos) { in setRotate() argument
1033 dest[1] = -sin; in setRotate()
[all …]
/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()
Dmandelbulb.rscript32 out.x = sin(n * theta) * cos(n * phi);
33 out.y = sin(n * theta) * sin(n * phi);
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/
Dsin.example.cpp7 namespace generated_tests::sin { namespace
54 namespace generated_tests::sin { namespace
101 namespace generated_tests::sin { namespace
/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/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/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/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java105 return new Point((float)(Math.cos(radians) * x - Math.sin(radians) * y), in rotated()
106 (float)(Math.sin(radians) * x + Math.cos(radians) * y)); in rotated()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java279 float y = (float) (rect.top + (radius - radius * Math.sin(theta))); in buildRoundedEdges()
289 float y = (float) (rect.top + (radius - radius * Math.sin(theta))); in buildRoundedEdges()
299 float y = (float) (rect.bottom - (radius - radius * Math.sin(theta))); in buildRoundedEdges()
309 float y = (float) (rect.bottom - (radius - radius * Math.sin(theta))); in buildRoundedEdges()
/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/ml/nn/runtime/test/specs/V1_2/
Dsin.mod.py24 output_data = [math.sin(x) for x in input_data]
/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/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/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/support/java/src/androidx/renderscript/
DMatrix3f.java120 s = (float)java.lang.Math.sin(rot); in loadRotate()
157 s = (float)java.lang.Math.sin(rot); in loadRotate()
/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/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/core/java/android/view/animation/
DCycleInterpolator.java60 return (float)(Math.sin(2 * mCycles * Math.PI * input)); in getInterpolation()
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java89 f += FloatMath.sin(100.123f); in timeFloatMathSin()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dfp_mad.rscript74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);

12345