/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/ |
D | PathTools.kt | 21 import kotlin.math.cos 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()
|
D | Vec2.kt | 22 import kotlin.math.cos 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/ |
D | RippleShader.java | 167 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.cos(scale * 0.55))), in setNoisePhase() 170 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.cos(scale * 0.45))), in setNoisePhase() 173 (float) (scale + (turbulencePhase * -0.0066 * Math.cos(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/base/core/java/android/hardware/ |
D | GeomagneticField.java | 180 cosMLon[1] = (float) Math.cos(mGcLongitudeRad); in GeomagneticField() 190 float inverseCosLatitude = 1.0f / (float) Math.cos(mGcLatitudeRad); in GeomagneticField() 238 mX = (float) (gcX * Math.cos(latDiffRad) in GeomagneticField() 242 + gcZ * Math.cos(latDiffRad)); in GeomagneticField() 315 float clat = (float) Math.cos(gdLatRad); in computeGeocentricCoordinates() 360 float cos = (float) Math.cos(thetaRad); in LegendreTable() local 373 mPDeriv[n][m] = cos * mP[n - 1][m - 1] in LegendreTable() 376 mP[n][m] = cos * mP[n - 1][m]; in LegendreTable() 378 + cos * mPDeriv[n - 1][m]; in LegendreTable() 383 mP[n][m] = cos * mP[n - 1][m] - k * mP[n - 2][m]; in LegendreTable() [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | RDsp.h | 96 v[i] = 0.54 - 0.46 * cos(TWOPI * i /(twoOverlap - 1)); in fillHamming() 109 v[i] = 0.54 - 0.46 * cos(TWOPI * k / (twoOverlap - 1)); in fillHamming() 122 v[i] = 0.5 * (1.0 - cos(TWOPI * i / (twoOverlap - 1))); in fillHanning() 135 v[i] = 0.5 * (1.0 - cos(TWOPI * k / (twoOverlap - 1))); in fillHanning()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | AnimatedDrawables.h | 88 const float CIRCLE_X_1 = 0.01 * cos(SCALE * 0.55); in draw() 90 const float CIRCLE_X_2 = -0.0066 * cos(SCALE * 0.45); in draw() 92 const float CIRCLE_X_3 = -0.0066 * cos(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/android/util/ |
D | FloatMath.java | 81 public static float cos(float angle) { in cos() method in FloatMath 82 return (float) Math.cos(angle); in cos()
|
/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/ |
D | RotationQuaternion.kt | 64 val cy = cos(rotationZ * halfDegToRad) in fromEuler() 66 val cp = cos(rotationY * halfDegToRad) in fromEuler() 68 val cr = cos(rotationX * halfDegToRad) in fromEuler() 100 w = cos(angleRad)
|
D | SphericalTransform.kt | 21 import kotlin.math.cos 267 center.x + distance * sin(azimuthRad) * cos(elevationRad), in toMatrix() 269 center.z + distance * cos(azimuthRad) * cos(elevationRad), in toMatrix()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
D | EllipseOverlapDetector.kt | 24 import kotlin.math.cos 119 val a: Float = cos(touchData.orientation) * (point.x - touchData.x) in checkPoint() 122 val d: Float = cos(touchData.orientation) * (point.y - touchData.y) in checkPoint()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | FloatMathTest.java | 64 assertEquals((float) Math.cos(value), FloatMath.cos(value), DELTA); in testCos()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/ribbon/ui/composable/ |
D | Ribbon.kt | 28 import kotlin.math.cos in <lambda>() 70 val cosine = cos(radians).toFloat() in <lambda>()
|
/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/base/tests/GamePerformance/src/android/gameperformance/ |
D | RenderPatch.java | 88 mVertexBuffer.putFloat((float) (dimension * Math.cos(angle))); in RenderPatch() 92 mTextureBuffer.putFloat((float) (0.5 - 0.5 * Math.cos(angle))); in RenderPatch()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirGen.h | 54 mCurrent = cos(wstart); 55 mPrevious = cos(wstart - wstep); 60 mTwoCos = 2.*cos(wstep); 105 mTwoCos = 2.*cos(innerStep); in mSineInnerCur() 430 accum += cos(ix*w)*static_cast<double>(*coef++); 466 double dcos = 2. * cos(L*w);
|
/frameworks/base/core/java/com/android/internal/graphics/cam/ |
D | Cam.java | 207 float eHue = 0.25f * (float) (Math.cos(huePrime * Math.PI / 180.0 + 2.0) + 3.8); in fromIntInFrame() 221 float astar = mstar * (float) Math.cos(hueRadians); in fromIntInFrame() 255 float astar = mstar * (float) Math.cos(hueRadians); in fromJchInFrame() 292 float eHue = 0.25f * (float) (Math.cos(hRad + 2.0) + 3.8); in viewed() 299 float hCos = (float) Math.cos(hRad); in viewed()
|
/frameworks/native/opengl/tests/angeles/ |
D | demo.c | 180 point->x = (float)(cos(t) * cos(p) / r1 / r2); in superShapeMap() 181 point->y = (float)(sin(t) * cos(p) / r1 / r2); in superShapeMap() 188 return (float)(pow(pow(fabs(cos(p[0] * t / 4)) / p[1], p[4]) + in ssFunc() 385 const float m = (float)(cos(xm * 2) * sin(ym * 4) * 0.75f); in createGroundPlane() 732 eX = cX - (float)cos(lerp[3]) * dist; in camTrack() 741 cX = eX + (float)cos(lerp[3]); in camTrack()
|
/frameworks/base/core/java/android/view/animation/ |
D | AccelerateDecelerateInterpolator.java | 40 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f; in getInterpolation()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | ShadeInterpolation.kt | 35 (1f - 0.5f * (1f - Math.cos((3.14159f * oneMinusFrac * oneMinusFrac).toDouble()))) in interpolateEaseInOut()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/ |
D | ElasticOutCurve.java | 45 * (LOG_8 * Math.cos(TWENTY_PI * x / 3) + 2 in getDiff()
|
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
D | SpringForce.java | 296 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateValues() 301 + mDampedFreq * sinCoeff * Math.cos(mDampedFreq * deltaT)); in updateValues()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 455 final double cosine = Math.cos(angle); in minimumCosineDistance() 564 float cos = (float) Math.cos(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/av/media/libeffects/lvm/lib/Eq/src/ |
D | LVEQNB_CalcCoef.cpp | 151 B1 = (0.5 - B2) * cos(T0); in LVEQNB_SinglePrecCoefs()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 363 double cos = Math.cos(radians); in getRange() local 366 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h))); in getRange() 368 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h))); in getRange()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix3f.java | 120 c = (float)java.lang.Math.cos(rot); in loadRotate() 157 c = (float)java.lang.Math.cos(rot); in loadRotate()
|