Home
last modified time | relevance | path

Searched refs:sin (Results 1 – 25 of 56) sorted by relevance

123

/packages/services/BuiltInPrintService/jni/lib/
Dprinter.c177 struct sockaddr_in sin; in wConnect() local
186 memset((char *) &sin, 0, sizeof(sin)); in wConnect()
187 sin.sin_family = AF_INET; in wConnect()
188 sin.sin_port = htons(port_num); in wConnect()
190 if ((sin.sin_addr.s_addr = inet_addr(printer_addr)) == -1) { in wConnect()
197 (void) memcpy(&(sin.sin_addr.s_addr), h_info->h_addr, h_info->h_length); in wConnect()
209 int socketConnect = connect(psock, (const struct sockaddr *) &sin, sizeof(sin)); in wConnect()
/packages/apps/Camera2/src/com/android/camera/ui/
DPreviewOverlay.java342 mCenterY - mInnerRadius * (float) Math.sin(mFingerAngle), in draw()
344 mCenterY - mOuterRadius * (float) Math.sin(mFingerAngle), mPaint); in draw()
346 mCenterY + mInnerRadius * (float) Math.sin(mFingerAngle), in draw()
348 mCenterY + mOuterRadius * (float) Math.sin(mFingerAngle), mPaint); in draw()
354 mCenterY - mInnerRadius * (float) Math.sin(mFingerAngle), in draw()
356 mCenterY - zoomRadius * (float) Math.sin(mFingerAngle), mPaint); in draw()
358 mCenterY + mInnerRadius * (float) Math.sin(mFingerAngle), in draw()
360 mCenterY + zoomRadius * (float) Math.sin(mFingerAngle), mPaint); in draw()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DVUMeter.java94 float sin = (float) Math.sin(mCurrentAngle); in onDraw() local
97 float y0 = pivotY - l*sin; in onDraw()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java367 double sin = Math.sin(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.java309 double sin = Math.sin(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.java367 double sin = Math.sin(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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java64 final float sina = (float)Math.sin(aa); in makePath()
66 final float sinb = (float)Math.sin(ab); in makePath()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java174 float sin45 = (float) Math.sin(45); in actionMove()
274 float y = cy + (float) (ry * Math.sin(angle)); in paintOvallines()
293 float y = cy + (float) (ry * Math.sin(angle)); in fillHandles()
DImageStraighten.java191 double sina = Math.sin(a); in getUntranslatedStraightenCropBounds()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DAnimationParticle.java148 * (float) Math.sin(tSec * PULSE_SPEED_NORMAL + mOffsetTimeSec) in updateDot()
223 mBounds.exactCenterY() + h * (float) Math.sin(mCurrentAngle), in drawDot()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DAnimationParticle.java148 * (float) Math.sin(tSec * PULSE_SPEED_NORMAL + mOffsetTimeSec) in updateDot()
223 mBounds.exactCenterY() + h * (float) Math.sin(mCurrentAngle), in drawDot()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java178 double dlat = Math.sin(0.5 * (lat2 - lat1)); in accurateDistanceMeters()
179 double dlng = Math.sin(0.5 * (lng2 - lng1)); in accurateDistanceMeters()
DMotionEventHelper.java106 v[0] = (float) Math.sin(angleRadians); in transformAngle()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DClippedFolderIconLayoutRule.java126 result[1] = mAvailableSpace / 2 + (float) (- radius * Math.sin(theta) / 2) - halfIconSize; in getPosition()
/packages/apps/Car/Notification/src/com/android/car/notification/
DDismissAnimationHelper.java160 * (float) Math.sin((moveDeltaX / width) * (Math.PI / 2)); in calculateTranslateDistance()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java144 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java122 circleY += (float) Math.sin(angle) * CIRCLE_STEP; in moveCircle()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java161 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java152 float zrs = (float) Math.sin(rot * Math.PI / 180.0); in setHue()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java127 int y = mCenterY - (int)(mWheelRadius * Math.sin(radian)); in layoutIcon()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java309 int y = mCenter.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems()
677 out.y = (int) (radius * Math.sin(a) + 0.5); in convertCart()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java309 int y = center.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems()
677 out.y = (int) (radius * Math.sin(a) + 0.5); in convertCart()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java47 private static final float USER_ANGEL_SIN = (float) Math.sin(USER_ANGEL);
/packages/screensavers/Basic/src/com/android/dreams/basic/
DColorsGLRenderer.java414 final float freq = (float) Math.sin(2 * Math.PI * t / cornerFrequencies[i]); in draw()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java367 final double[] left = { Math.sin(alpha - beta), in moveFocus()
369 final double[] right = { Math.sin(alpha + beta), in moveFocus()

123