Home
last modified time | relevance | path

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

123

/packages/apps/Camera2/src/com/android/camera/ui/
DPreviewOverlay.java341 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/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java55 double cos = Math.cos(stepSizeRadians); in initializePll() local
58 cos, sin, in initializePll()
59 -sin, cos}); in initializePll()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java366 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/
DTileImageView.java308 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/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java366 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/Dialer/java/com/android/incallui/answer/impl/classifier/
DPoint.java88 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java63 final float cosa = (float)Math.cos(aa); in makePath()
65 final float cosb = (float)Math.cos(ab); in makePath()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DRoundedArrowDrawable.java20 import static java.lang.Math.cos;
120 float lineRoundPointIntersectFromTop = (float) (height - (p * cos(theta))); in addDownPointingRoundedTriangleToPath()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.kt32 import kotlin.math.cos
145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.kt35 import kotlin.math.cos
156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java167 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()
DMotionEventHelper.java107 v[1] = (float) -Math.cos(angleRadians); in transformAngle()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java273 float x = cx + (float) (rx * Math.cos(angle)); in paintOvallines()
292 float x = cx + (float) (rx * Math.cos(angle)); in fillHandles()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DMathEval.java173 x = Math.cos(Math.toRadians(x)); in eval()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java125 result[0] = mAvailableSpace / 2 + (float) (radius * Math.cos(theta) / 2) - halfIconSize; in getPosition()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java121 circleX += (float) Math.cos(angle) * CIRCLE_STEP; in moveCircle()
/packages/modules/NeuralNetworks/common/random/
Drandom_distributions.h630 *f1 = Eigen::numext::cos(v1); in BoxMullerFloat()
655 *d1 = Eigen::numext::cos(v1); in BoxMullerDouble()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DCompositeCircleViewLabeler.java123 double x = ccvCenterX + (Math.cos(angle) * labelRadius); in onLayout()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1311 double radiusTheta = dx / cos(3.14159 / 2.0 - m_wb.theta); in ComputeBlendParameters()
1312 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
1319 double radiusTheta = dy / cos(3.14159 / 2.0 - m_wb.theta); in ComputeBlendParameters()
1320 m_wb.radius = dx + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java153 float zrc = (float) Math.cos(rot * Math.PI / 180.0); in setHue()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java231 return cosFactor * Math.cos(angle) + sinFactor * Math.sin(angle); in cosSin()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java126 int x = mCenterX + (int)(mWheelRadius * Math.cos(radian)); in layoutIcon()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaActivity.java669 float cos = dot / (mCloseVectorNorm * moveVectorNorm); in onFling() local
670 if (cos >= COS_30) { // Accept 30 degrees on each side of the close vector. in onFling()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/widgets/countdown/
DLoopingAnimationThread.java195 (float) Math.cos(Math.toRadians(finalSweepAngleEnd)) * mLoopRadius in draw()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp59 cos_theta_through3=cos(theta_through3); in db_SolveCubic()

123