/packages/services/Car/libs/car-evs-helper-lib/src/com/android/car/internal/evs/ |
D | GLES20CarEvsBufferRenderer.java | 130 float cos = (float) Math.cos(angleInRadian); in GLES20CarEvsBufferRenderer() local 132 rotated[0] += cos * sVertTexData[0] - sin * sVertTexData[1]; in GLES20CarEvsBufferRenderer() 133 rotated[1] += sin * sVertTexData[0] + cos * sVertTexData[1]; in GLES20CarEvsBufferRenderer() 134 rotated[2] += cos * sVertTexData[2] - sin * sVertTexData[3]; in GLES20CarEvsBufferRenderer() 135 rotated[3] += sin * sVertTexData[2] + cos * sVertTexData[3]; in GLES20CarEvsBufferRenderer() 136 rotated[4] += cos * sVertTexData[4] - sin * sVertTexData[5]; in GLES20CarEvsBufferRenderer() 137 rotated[5] += sin * sVertTexData[4] + cos * sVertTexData[5]; in GLES20CarEvsBufferRenderer() 138 rotated[6] += cos * sVertTexData[6] - sin * sVertTexData[7]; in GLES20CarEvsBufferRenderer() 139 rotated[7] += sin * sVertTexData[6] + cos * sVertTexData[7]; in GLES20CarEvsBufferRenderer()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | PreviewOverlay.java | 341 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 343 mCenterX + mOuterRadius * (float) Math.cos(mFingerAngle), in draw() 345 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 347 mCenterX - mOuterRadius * (float) Math.cos(mFingerAngle), in draw() 353 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 355 mCenterX + zoomRadius * (float) Math.cos(mFingerAngle), in draw() 357 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 359 mCenterX - zoomRadius * (float) Math.cos(mFingerAngle), in draw()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/ |
D | FovPrimer.java | 21 import static java.lang.Math.cos; 53 this.mCosFov = cos(fov); in FovPrimer() 79 double zValue = abs(cos(elevation) * cos(azimuth)); in prime()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | SphericalVector.java | 25 import static java.lang.Math.cos; 161 double ca = cos(azimuth); in fromAoAVector() 163 double azz = sqrt(max(ca * ca - se * se, 0)) / cos(vec.elevation); in fromAoAVector() 190 float x = distance * (float) cos(elevation) * sa; in toCartesian() 192 float z = distance * (float) abs(cos(elevation) * cos(azimuth)); in toCartesian()
|
D | Vector3.java | 180 float cos = dot / combinedLength; in angleBetweenVectors() local 184 cos = MathHelper.clamp(cos, -1.0f, 1.0f); in angleBetweenVectors() 185 return (float) acos(cos); in angleBetweenVectors()
|
D | AoaVector.java | 24 import static java.lang.Math.cos; 211 double ca = cos(azimuth); in fromSphericalVector() 213 double ce = cos(vec.elevation); in fromSphericalVector()
|
D | Quaternion.java | 24 import static java.lang.Math.cos; 94 float cos = (float) cos(angle); in axisAngle() local 96 return new Quaternion(sin * a.x, sin * a.y, sin * a.z, cos); in axisAngle() 314 double cosThetaT = cos(thetaT); in slerp()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | KalmanFilterTest.java | 55 double cos = Math.cos(stepSizeRadians); in initializePll() local 58 cos, sin, in initializePll() 59 -sin, cos}); in initializePll()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/ |
D | MapView.kt | 31 import kotlin.math.cos in <lambda>() 158 x += cos(toRadians(location.latitude)) * cos(toRadians(location.longitude)) in <lambda>() 159 y += cos(toRadians(location.latitude)) * sin(toRadians(location.longitude)) in <lambda>()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | Point.java | 88 float cos = Math.min(1.0f, Math.max(-1.0f, dotProduct / dist1 / dist2)); in getAngle() local 89 float angle = (float) Math.acos(cos); in getAngle()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/ |
D | MedAvgRotationFilter.java | 22 import static java.lang.Math.cos; 85 result.stream().mapToDouble(sample -> cos(sample.value)).sum() in sortSamples()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | RoundedLine.java | 63 final float cosa = (float)Math.cos(aa); in makePath() 65 final float cosb = (float)Math.cos(ab); in makePath()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 366 double cos = Math.cos(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()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 308 double cos = Math.cos(radians); in getRange() local 311 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h))); in getRange() 313 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h))); in getRange()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerCircleView.kt | 32 import kotlin.math.cos 145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | RoundedArrowDrawable.java | 20 import static java.lang.Math.cos; 195 float lineRoundPointIntersectFromTop = (float) (height - (p * cos(theta))); in addDownPointingRoundedTriangleToPath()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchCircleView.kt | 35 import kotlin.math.cos 156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
|
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/ |
D | ReorderPreviewAnimation.kt | 33 import kotlin.math.cos 97 finalDeltaX = (-dir * sign(dX.toFloat()) * abs(cos(angle) * reorderMagnitude))
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 167 double cosTerms = Math.cos((latRad1 + latRad2) / 2.0); in fastDistanceMeters() 180 double x = dlat * dlat + dlng * dlng * Math.cos(lat1) * Math.cos(lat2); in accurateDistanceMeters()
|
D | MotionEventHelper.java | 107 v[1] = (float) -Math.cos(angleRadians); in transformAngle()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/widget/ |
D | UdfpsEnrollProgressBarDrawableV2.kt | 39 import kotlin.math.cos in <lambda>() 304 var x = (cos(Math.toRadians(315.0)) * radius).toInt() + progressBounds.centerX() in <lambda>()
|
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/ |
D | MathEval.java | 173 x = Math.cos(Math.toRadians(x)); in eval()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | EclipseControl.java | 273 float x = cx + (float) (rx * Math.cos(angle)); in paintOvallines() 292 float x = cx + (float) (rx * Math.cos(angle)); in fillHandles()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | ClippedFolderIconLayoutRule.java | 125 result[0] = mAvailableSpace / 2 + (float) (radius * Math.cos(theta) / 2) - halfIconSize; in getPosition()
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorRemoteVideo.java | 121 circleX += (float) Math.cos(angle) * CIRCLE_STEP; in moveCircle()
|