Home
last modified time | relevance | path

Searched refs:sin (Results 1 – 25 of 67) 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/services/Car/surround_view/service-impl/
DCameraUtils.cpp266 const float a_x = rotation[0] / sin(theta / 2); in convertToSurroundViewCameraParams()
267 const float a_y = rotation[1] / sin(theta / 2); in convertToSurroundViewCameraParams()
268 const float a_z = rotation[2] / sin(theta / 2); in convertToSurroundViewCameraParams()
DMathHelp.h56 const float s = orientation * sin(angle); in rotationMatrix()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp182 sockaddr_in sin = {.sin_family = AF_INET}; in extractResNsendAnswers() local
183 memcpy(&sin.sin_addr, rdata, sizeof(sin.sin_addr)); in extractResNsendAnswers()
184 addIpAddrWithinLimit(ip_addrs, (sockaddr*) &sin, sizeof(sin)); in extractResNsendAnswers()
220 sockaddr_in sin = {.sin_family = AF_INET, .sin_addr = *list[i]}; in extractGetHostByNameAnswers() local
221 addIpAddrWithinLimit(ip_addrs, (sockaddr*) &sin, sizeof(sin)); in extractGetHostByNameAnswers()
Dres_send.cpp253 u.sin.sin_family = family; in random_bind()
254 slen = sizeof u.sin; in random_bind()
270 u.sin.sin_port = htons(port); in random_bind()
280 u.sin.sin_port = 0; in random_bind()
Dresolv_tls_unit_test.cpp48 sockaddr_in* sin = reinterpret_cast<sockaddr_in*>(parsed); in parseServer() local
49 if (inet_pton(AF_INET, server, &(sin->sin_addr)) == 1) { in parseServer()
51 sin->sin_family = AF_INET; in parseServer()
52 sin->sin_port = htons(port); in parseServer()
Dresolv_private.h83 struct sockaddr_in sin; member
Dresolv_cache_unit_test.cpp752 sockaddr_in sin = {.sin_family = AF_INET, .sin_port = htons(DNS_PORT)}; in TEST_F() local
753 ASSERT_TRUE(inet_pton(AF_INET, setup.servers[0].c_str(), &sin.sin_addr)); in TEST_F()
754 cacheAddStats(TEST_NETID, 1 /*revision_id*/, IPSockAddr(sin), sample, setup.params.max_samples); in TEST_F()
/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()
/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/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DMathEval.java170 x = Math.sin(Math.toRadians(x)); in eval()
/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.java161 * (float) Math.sin((moveDeltaX / width) * (Math.PI / 2)); in calculateTranslateDistance()
/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/timer/
DTimerCircleView.java144 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java161 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()

123