Home
last modified time | relevance | path

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

12345

/frameworks/ml/nn/runtime/test/generated/tests/
Dsin.mod.py.cpp5 namespace sin { namespace
12 TEST_F(GeneratedTests, sin) { in TEST_F() argument
13 execute(sin::CreateModel, in TEST_F()
14 sin::is_ignored, in TEST_F()
15 sin::get_examples()); in TEST_F()
17 TEST_AVAILABLE_SINCE(V1_2, sin, sin::CreateModel) in TEST_AVAILABLE_SINCE() argument
20 execute(sin::CreateModel_relaxed, in TEST_AVAILABLE_SINCE()
21 sin::is_ignored_relaxed, in TEST_AVAILABLE_SINCE()
22 sin::get_examples_relaxed()); in TEST_AVAILABLE_SINCE()
26 execute(sin::CreateModel_float16, in TEST_F()
[all …]
/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.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/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.java106 return new Point((float)(Math.cos(radians) * x - Math.sin(radians) * y), in rotated()
107 (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/ml/nn/runtime/test/specs/V1_2/
Dsin.mod.py22 output_data = [math.sin(x) for x in input_data]
/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/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/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/media/mca/filterpacks/java/android/filterpacks/numeric/
DSinWaveFilter.java59 output.setObjectValue(((float)Math.sin(mValue) + 1.0f) / 2.0f); in process()
/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_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/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dfp_mad.rs90 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
104 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/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/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/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/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/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()

12345