/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 179 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/ |
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | KalmanFilterTest.java | 54 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/ |
D | rs_quaternion.c | 60 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/ |
D | Matrix_Delegate.java | 431 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/ |
D | Quaternion.java | 75 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()
|
D | mandelbulb.rscript | 32 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/ |
D | sin.example.cpp | 7 namespace generated_tests::sin { namespace 54 namespace generated_tests::sin { namespace 101 namespace generated_tests::sin { namespace
|
/frameworks/base/core/java/android/util/ |
D | FloatMath.java | 69 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/ |
D | TQuatHelpers.h | 227 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/ |
D | SineGenerator.h | 47 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/ |
D | Point.java | 105 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/ |
D | HighQualityShadowPainter.java | 279 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/ |
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/ml/nn/runtime/test/specs/V1_2/ |
D | sin.mod.py | 24 output_data = [math.sin(x) for x in input_data]
|
/frameworks/rs/script_api/include/ |
D | rs_quaternion.rsh | 133 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/ |
D | TiledImageRenderer.java | 367 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/ |
D | configbq.c | 152 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/ |
D | Matrix3f.java | 117 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/ |
D | Matrix3f.java | 120 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/ |
D | SinWaveFilter.java | 59 output.setObjectValue(((float)Math.sin(mValue) + 1.0f) / 2.0f); in process()
|
/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/core/java/android/view/animation/ |
D | CycleInterpolator.java | 60 return (float)(Math.sin(2 * mCycles * Math.PI * input)); in getInterpolation()
|
/frameworks/base/core/tests/benchmarks/src/android/util/ |
D | FloatMathBenchmark.java | 89 f += FloatMath.sin(100.123f); in timeFloatMathSin()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | fp_mad.rscript | 74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]); 88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
|