Home
last modified time | relevance | path

Searched refs:cos (Results 1 – 25 of 50) sorted by relevance

12

/aosp14/frameworks/base/core/java/android/hardware/
H A DGeomagneticField.java180 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 …]
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleShader.java168 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.cos(scale * 0.55))), in setNoisePhase()
171 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.cos(scale * 0.45))), in setNoisePhase()
174 (float) (scale + (turbulencePhase * -0.0066 * Math.cos(scale * 0.35))), in setNoisePhase()
178 (float) Math.cos(rotation1), (float) Math.sin(rotation1)); in setNoisePhase()
181 (float) Math.cos(rotation2), (float) Math.sin(rotation2)); in setNoisePhase()
184 (float) Math.cos(rotation3), (float) Math.sin(rotation3)); in setNoisePhase()
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
H A DPathTools.kt21 import kotlin.math.cos
29 lineTo(radius * cos(angleStep * i), radius * sin(angleStep * i))
39 lineTo(radius2 * cos(angleStep * (0.5f)), radius2 * sin(angleStep * (0.5f)))
41 lineTo(radius1 * cos(angleStep * i), radius1 * sin(angleStep * i))
42 lineTo(radius2 * cos(angleStep * (i + 0.5f)), radius2 * sin(angleStep * (i + 0.5f)))
H A DVec2.kt22 import kotlin.math.cos
55 return Vec2(m * cos(a), m * sin(a))
62 (translated.x * cos(angle) - translated.y * sin(angle)),
63 (translated.x * sin(angle) + translated.y * cos(angle))
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DAnimatedDrawables.h88 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()
/aosp14/frameworks/base/core/java/android/util/
H A DFloatMath.java80 public static float cos(float angle) { in cos() method in FloatMath
81 return (float) Math.cos(angle); in cos()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
H A DEllipseOverlapDetector.kt24 import kotlin.math.cos
119 val a: Float = cos(touchData.orientation) * (point.x - touchData.x)
122 val d: Float = cos(touchData.orientation) * (point.y - touchData.y)
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A 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()
/aosp14/frameworks/base/tests/GamePerformance/src/android/gameperformance/
H A DRenderPatch.java88 mVertexBuffer.putFloat((float) (dimension * Math.cos(angle))); in RenderPatch()
92 mTextureBuffer.putFloat((float) (0.5 - 0.5 * Math.cos(angle))); in RenderPatch()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/
H A DCam.java207 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()
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperDataParser.java533 FileOutputStream cos = null; in restoreNamedResourceLocked() local
550 cos = new FileOutputStream(wallpaper.getCropFile()); in restoreNamedResourceLocked()
556 cos.write(buffer, 0, amt); in restoreNamedResourceLocked()
573 if (cos != null) { in restoreNamedResourceLocked()
574 FileUtils.sync(cos); in restoreNamedResourceLocked()
577 IoUtils.closeQuietly(cos); in restoreNamedResourceLocked()
/aosp14/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java455 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()
/aosp14/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
H A DSpringForce.java296 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateValues()
301 + mDampedFreq * sinCoeff * Math.cos(mDampedFreq * deltaT)); in updateValues()
/aosp14/frameworks/base/core/java/android/view/animation/
H A DAccelerateDecelerateInterpolator.java40 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f; in getInterpolation()
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DShadeInterpolation.kt35 (1f - 0.5f * (1f - Math.cos((3.14159f * oneMinusFrac * oneMinusFrac).toDouble())))
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java363 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()
/aosp14/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java760 float c = (float) Math.cos(a); in setRotateM()
825 float cx = (float) Math.cos(x); in setRotateEulerM()
827 float cy = (float) Math.cos(y); in setRotateEulerM()
829 float cz = (float) Math.cos(z); in setRotateEulerM()
883 float cx = (float) Math.cos(x); in setRotateEulerM2()
885 float cy = (float) Math.cos(y); in setRotateEulerM2()
887 float cz = (float) Math.cos(z); in setRotateEulerM2()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
H A DBubblePopupDrawable.kt29 import kotlin.math.cos
197 val intersectionTopOffset = tipIntersectionSideLength * cos(theta)
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DMatrix3f.java120 c = (float)java.lang.Math.cos(rot); in loadRotate()
157 c = (float)java.lang.Math.cos(rot); in loadRotate()
H A DMatrix2f.java110 c = (float)java.lang.Math.cos(rot); in loadRotate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
H A DSquigglyProgress.kt37 import kotlin.math.cos
211 val startAmp = cos(abs(waveStart) / waveLength * TWO_PI)
/aosp14/frameworks/base/core/tests/benchmarks/src/android/util/
H A DFloatMathBenchmark.java44 f += FloatMath.cos(100.123f); in timeFloatMathCos()
/aosp14/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java110 COS_30[i] = (float) Math.cos(angle);
812 final float selCenterY = mYCenter - selLength * (float) Math.cos(selAngleRad); in drawSelector()
836 final double cos = Math.cos(selAngleRad); in drawSelector() local
839 final int centerY = mYCenter - (int) (mCenterDotRadius * cos); in drawSelector()
841 final float linePointY = centerY - (int) (lineLength * cos); in drawSelector()
1346 final float yCenter = mYCenter - centerRadius * (float) Math.cos(radians); in getBoundsForVirtualView()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DPathIteratorPerfTest.java43 float x = (float) Math.cos(angle) * radius; in constructCircularPath()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java434 double cos = Math.cos(Math.PI * one_minus_level); in draw() local
435 double sign = cos < 0 ? -1 : 1; in draw()
437 float gamma = (float) ((0.5d * sign * Math.pow(cos, 2) + 0.5d) * 0.9d + 0.1d); in draw()

12