Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DPathTools.kt22 import kotlin.math.sin in <lambda>()
29 lineTo(radius * cos(angleStep * i), radius * sin(angleStep * i)) in <lambda>()
38 Vec2(radius * cos(angleStep * i), radius * sin(angleStep * i)) in createPolygonPoints()
46 lineTo(radius2 * cos(angleStep * (0.5f)), radius2 * sin(angleStep * (0.5f))) in createStar()
48 lineTo(radius1 * cos(angleStep * i), radius1 * sin(angleStep * i)) in createStar()
49 lineTo(radius2 * cos(angleStep * (i + 0.5f)), radius2 * sin(angleStep * (i + 0.5f))) in createStar()
DVec2.kt23 import kotlin.math.sin
55 return Vec2(m * cos(a), m * sin(a)) in makeWithAngleMag()
62 (translated.x * cos(angle) - translated.y * sin(angle)), in rotate()
63 (translated.x * sin(angle) + translated.y * cos(angle)) in rotate()
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleShader.java168 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.sin(scale * 0.55)))); in setNoisePhase()
171 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.sin(scale * 0.45)))); in setNoisePhase()
174 (float) (scale + (turbulencePhase * -0.0066 * Math.sin(scale * 0.35)))); in setNoisePhase()
177 (float) Math.cos(rotation1), (float) Math.sin(rotation1)); in setNoisePhase()
180 (float) Math.cos(rotation2), (float) Math.sin(rotation2)); in setNoisePhase()
183 (float) Math.cos(rotation3), (float) Math.sin(rotation3)); in setNoisePhase()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffect.kt27 import kotlin.math.sin
54 val variation = sin(0.06f * time + sin(0.18f * time)) * 0.3f + 0.7f in resize()
59 val variationFgd0 = 0.256f * sin(scaledElapsedTime) in resize()
60 val variationFgd1 = 0.156f * sin(scaledElapsedTime) * sin(scaledElapsedTime) in resize()
64 val variationBgd0 = 0.156f * sin((scaledElapsedTime + Math.PI.toFloat() / 2.0f)) in resize()
66 0.0156f * sin((scaledElapsedTime + Math.PI.toFloat() / 3.0f)) * sin(scaledElapsedTime) in resize()
/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.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/base/libs/hwui/pipeline/skia/
DAnimatedDrawables.h89 const float CIRCLE_Y_1 = 0.01 * sin(SCALE * 0.55); in draw()
91 const float CIRCLE_Y_2 = -0.0066 * sin(SCALE * 0.45); in draw()
93 const float CIRCLE_Y_3 = -0.0066 * sin(SCALE * 0.35); in draw()
107 setUniform2f(effectBuilder, "in_tRotation1", cos(rotation1), sin(rotation1)); in draw()
109 setUniform2f(effectBuilder, "in_tRotation2", cos(rotation2), sin(rotation2)); in draw()
111 setUniform2f(effectBuilder, "in_tRotation3", cos(rotation3), sin(rotation3)); in draw()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DElasticOutCurve.java36 * Math.sin((x * 10 - 0.75f) * C4) + 1); in get()
46 * F_PI * Math.sin(TWENTY_PI * x / 3)) in getDiff()
/frameworks/base/core/java/android/util/
DFloatMath.java70 public static float sin(float angle) { in sin() method in FloatMath
71 return (float) Math.sin(angle); in sin()
/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/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/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/
DRotationQuaternion.kt65 val sy = sin(rotationZ * halfDegToRad) in fromEuler()
67 val sp = sin(rotationY * halfDegToRad) in fromEuler()
69 val sr = sin(rotationX * halfDegToRad) in fromEuler()
99 val sinAngle = sin(angleRad)
DSphericalTransform.kt22 import kotlin.math.sin
267 center.x + distance * sin(azimuthRad) * cos(elevationRad), in toMatrix()
268 center.y + distance * sin(elevationRad), in toMatrix()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DEllipseOverlapDetector.kt25 import kotlin.math.sin
120 val b: Float = sin(touchData.orientation) * (point.y - touchData.y) in checkPoint()
121 val c: Float = sin(touchData.orientation) * (point.x - touchData.x) in checkPoint()
/frameworks/base/core/tests/coretests/src/android/util/
DFloatMathTest.java71 assertEquals((float) Math.sin(value), FloatMath.sin(value), DELTA); in testSin()
/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/packages/SystemUI/compose/features/src/com/android/systemui/ribbon/ui/composable/
DRibbon.kt30 import kotlin.math.sin in <lambda>()
69 val sine = sin(radians).toFloat() in <lambda>()
/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/libs/systemui/weathereffects/graphics/assets/shaders/
Dutils.agsl60 float s = sin(angleRad);
114 return sin(wiggleSpeed * time + 0.5 * sin(wiggleSpeed * 5. * time))
115 * sin(wiggleSpeed * time) - 0.5;
Dsimplex2d.agsl22 return fract(sin(p) * 877.343) * 2. -1.; // [-1, 1]
26 return fract(sin(dot(p, vec2(343.0, 49.0)))) * 2. -1.; // [-1, 1]
30 return vec2(cos(theta), sin(theta));
47 return vec2(cos(af), sin(af));
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DRenderPatch.java87 mVertexBuffer.putFloat((float) (dimension * Math.sin(angle))); in RenderPatch()
91 mTextureBuffer.putFloat((float) (0.5 + 0.5 * Math.sin(angle))); in RenderPatch()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DBubblePopupDrawable.kt30 import kotlin.math.sin in <lambda>()
193 val tipCircleCenterY = config.arrowRadius / sin(theta) in <lambda>()
199 val intersectionCenterOffset = tipIntersectionSideLength * sin(theta) in <lambda>()
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DSpringForce.java297 + sinCoeff * Math.sin(mDampedFreq * deltaT)); in updateValues()
300 * (-mDampedFreq * cosCoeff * Math.sin(mDampedFreq * deltaT) in updateValues()
/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()

123456