/aosp14/frameworks/base/core/java/android/hardware/ |
H A 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 …]
|
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleShader.java | 168 (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 D | PathTools.kt | 21 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 D | Vec2.kt | 22 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 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()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 80 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 D | EllipseOverlapDetector.kt | 24 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 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()
|
/aosp14/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
H A 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperDataParser.java | 533 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 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
H A D | SpringForce.java | 296 * (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 D | AccelerateDecelerateInterpolator.java | 40 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 D | ShadeInterpolation.kt | 35 (1f - 0.5f * (1f - Math.cos((3.14159f * oneMinusFrac * oneMinusFrac).toDouble())))
|
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A 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()
|
/aosp14/frameworks/base/opengl/java/android/opengl/ |
H A D | Matrix.java | 760 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 D | BubblePopupDrawable.kt | 29 import kotlin.math.cos 197 val intersectionTopOffset = tipIntersectionSideLength * cos(theta)
|
/aosp14/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix3f.java | 120 c = (float)java.lang.Math.cos(rot); in loadRotate() 157 c = (float)java.lang.Math.cos(rot); in loadRotate()
|
H A D | Matrix2f.java | 110 c = (float)java.lang.Math.cos(rot); in loadRotate()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/ |
H A D | SquigglyProgress.kt | 37 import kotlin.math.cos 211 val startAmp = cos(abs(waveStart) / waveLength * TWO_PI)
|
/aosp14/frameworks/base/core/tests/benchmarks/src/android/util/ |
H A D | FloatMathBenchmark.java | 44 f += FloatMath.cos(100.123f); in timeFloatMathCos()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 110 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 D | PathIteratorPerfTest.java | 43 float x = (float) Math.cos(angle) * radius; in constructCircularPath()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | ColorFade.java | 434 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()
|