/packages/services/BuiltInPrintService/jni/lib/ |
D | printer.c | 177 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/ |
D | PreviewOverlay.java | 342 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/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 309 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/ |
D | TiledImageRenderer.java | 367 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/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 367 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/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 182 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()
|
D | res_send.cpp | 253 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()
|
D | resolv_tls_unit_test.cpp | 48 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()
|
D | resolv_private.h | 83 struct sockaddr_in sin; member
|
D | resolv_cache_unit_test.cpp | 752 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/ |
D | RoundedLine.java | 64 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/ |
D | EclipseControl.java | 174 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/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerCircleView.kt | 34 import kotlin.math.sin 146 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
|
D | TimerCircleView.java | 144 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchCircleView.kt | 37 import kotlin.math.sin 157 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
|
D | StopwatchCircleView.java | 161 final float dotY = yCenter + (float) (radius * Math.sin(dotAngleRadians)); in onDraw()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | AnimationParticle.java | 148 * (float) Math.sin(tSec * PULSE_SPEED_NORMAL + mOffsetTimeSec) in updateDot() 223 mBounds.exactCenterY() + h * (float) Math.sin(mCurrentAngle), in drawDot()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/ |
D | AnimationParticle.java | 148 * (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/ |
D | GalleryUtils.java | 178 double dlat = Math.sin(0.5 * (lat2 - lat1)); in accurateDistanceMeters() 179 double dlng = Math.sin(0.5 * (lng2 - lng1)); in accurateDistanceMeters()
|
D | MotionEventHelper.java | 106 v[0] = (float) Math.sin(angleRadians); in transformAngle()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | ClippedFolderIconLayoutRule.java | 126 result[1] = mAvailableSpace / 2 + (float) (- radius * Math.sin(theta) / 2) - halfIconSize; in getPosition()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | DismissAnimationHelper.java | 161 * (float) Math.sin((moveDeltaX / width) * (Math.PI / 2)); in calculateTranslateDistance()
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorRemoteVideo.java | 122 circleY += (float) Math.sin(angle) * CIRCLE_STEP; in moveCircle()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControlWheel.java | 127 int y = mCenterY - (int)(mWheelRadius * Math.sin(radian)); in layoutIcon()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | SpringAnimationBuilder.java | 227 return cosFactor * Math.cos(angle) + sinFactor * Math.sin(angle); in cosSin()
|