Home
last modified time | relevance | path

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

12

/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/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/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/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/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.kt32 import kotlin.math.cos
145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
DTimerCircleView.java143 final float dotX = xCenter + (float) (radius * Math.cos(dotAngleRadians)); 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/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.kt35 import kotlin.math.cos
156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw()
DStopwatchCircleView.java160 final float dotX = xCenter + (float) (radius * Math.cos(dotAngleRadians)); in onDraw()
/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/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java125 result[0] = mAvailableSpace / 2 + (float) (radius * Math.cos(theta) / 2) - halfIconSize; in getPosition()
/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/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java121 circleX += (float) Math.cos(angle) * CIRCLE_STEP; in moveCircle()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java126 int x = mCenterX + (int)(mWheelRadius * Math.cos(radian)); in layoutIcon()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java227 return cosFactor * Math.cos(angle) + sinFactor * Math.sin(angle); in cosSin()
/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/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java308 int x = (int) (r * Math.cos(angle)); in layoutItems()
676 out.x = (int) (radius * Math.cos(a) + 0.5); in convertCart()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java308 int x = (int) (r * Math.cos(angle)); in layoutItems()
676 out.x = (int) (radius * Math.cos(a) + 0.5); in convertCart()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DAnimationParticle.java222 mBounds.exactCenterX() + w * (float) Math.cos(mCurrentAngle), in drawDot()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DAnimationParticle.java222 mBounds.exactCenterX() + w * (float) Math.cos(mCurrentAngle), in drawDot()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.cpp59 cos_theta_through3=cos(theta_through3); in db_SolveCubic()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java46 private static final float USER_ANGEL_COS = (float) Math.cos(USER_ANGEL);

12