/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | FlingScroller.java | 69 return (int)Math.round(mCurrV * mCosAngle); in getCurrVelocityX() 73 return (int)Math.round(mCurrV * mSinAngle); in getCurrVelocityY() 96 mDuration = (int)Math.round(FLING_DURATION_PARAM in fling() 100 mDistance = (int)Math.round( in fling() 117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle); in getX() 127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle); in getY()
|
D | TileImageView.java | 224 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles() 225 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); in layoutTiles() 230 mOffsetX = Math.round(width / 2f - centerX * scale); in layoutTiles() 231 mOffsetY = Math.round(height / 2f - centerY * scale); in layoutTiles() 350 center.x = Math.round(viewW / 2f + distW * mScale); in getImageCenter() 351 center.y = Math.round(viewH / 2f + distH * mScale); in getImageCenter() 444 Math.round(mImageWidth * mScale), in render() 445 Math.round(mImageHeight * mScale)); in render()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | WallpaperPreviewBitmapTransformation.java | 62 Point scaledThumbnailSize = new Point(Math.round(toTransform.getWidth() * scale), in transform() 63 Math.round(toTransform.getHeight() * scale)); in transform() 67 int x = Math.round(scaledThumbnailToScreenSize.x / scale); in transform() 68 int y = Math.round(scaledThumbnailToScreenSize.y / scale); in transform() 69 Rect cropSize = new Rect(x, y, x + Math.round(mScreenSize.x / scale), in transform() 70 y + Math.round(mScreenSize.y / scale)); in transform()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryChartView.java | 20 import static java.lang.Math.round; 165 mIndent.bottom = maxTop + round(mTextPadding * 2f); in onMeasure() 377 mTrapezoidSlots[index].mLeft = round(startX + trapezoidSlotOffset); in drawVerticalDividers() 378 mTrapezoidSlots[index].mRight = round(nextX - trapezoidSlotOffset); in drawVerticalDividers() 428 result[index] = new Rect(round(left), round(top), round(right), round(bottom)); in getAxisLabelDisplayAreas() 466 int middleIndex1 = startIndex + round((endIndex - startIndex) / 3f); in drawAxisLabelsBetweenStartIndexAndEndIndex() 467 int middleIndex2 = startIndex + round((endIndex - startIndex) * 2 / 3f); in drawAxisLabelsBetweenStartIndexAndEndIndex() 526 final float leftTop = round( in drawTrapezoids() 528 final float rightTop = round(trapezoidBottom in drawTrapezoids() 626 bounds.left = round(hostLeft + mTrapezoidSlots[index].mLeft); in createAccessibilityNodeInfo() [all …]
|
/packages/modules/Bluetooth/system/stack/crypto_toolbox/ |
D | aes_cmac.cc | 40 uint16_t round; member 111 while (i <= cmac_cb.round) { in cmac_aes_k_calculate() 113 xor_128((Octet16*)&cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], x); in cmac_aes_k_calculate() 115 output = aes_128(key, &cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], in cmac_aes_k_calculate() 135 DVLOG(2) << "flag=" << flag << " round=" << cmac_cb.round; in cmac_prepare_last_block() 198 cmac_cb.round = n; in aes_cmac()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestBitmapCropper.java | 45 Math.round((float) cropRect.left / scale), in cropAndScaleBitmap() 46 Math.round((float) cropRect.top / scale), in cropAndScaleBitmap() 47 Math.round((float) cropRect.right / scale), in cropAndScaleBitmap() 48 Math.round((float) cropRect.bottom / scale)); in cropAndScaleBitmap()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 359 round(config.mBottomBarRect); in getPositionConfiguration() 360 round(config.mPreviewRect); in getPositionConfiguration() 369 public static void round(RectF rect) { in round() method in CaptureLayoutHelper 373 float left = Math.round(rect.left); in round() 374 float top = Math.round(rect.top); in round() 375 float right = Math.round(rect.right); in round() 376 float bottom = Math.round(rect.bottom); in round()
|
/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | aes_cmac.cc | 38 uint16_t round; member 104 while (i <= cmac_cb.round) { in cmac_aes_k_calculate() 106 xor_128((Octet16*)&cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], x); in cmac_aes_k_calculate() 108 output = aes_128(key, &cmac_cb.text[(cmac_cb.round - i) * OCTET16_LEN], OCTET16_LEN); in cmac_aes_k_calculate() 182 cmac_cb.round = n; in aes_cmac()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | GroupedTaskView.java | 85 Math.min(mSnapshotView.getLeft() + Math.round(mSnapshotView.getTranslationX()), in updateBorderBounds() 86 mSnapshotView2.getLeft() + Math.round(mSnapshotView2.getTranslationX())), in updateBorderBounds() 87 Math.min(mSnapshotView.getTop() + Math.round(mSnapshotView.getTranslationY()), in updateBorderBounds() 88 mSnapshotView2.getTop() + Math.round(mSnapshotView2.getTranslationY())), in updateBorderBounds() 89 Math.max(mSnapshotView.getRight() + Math.round(mSnapshotView.getTranslationX()), in updateBorderBounds() 90 mSnapshotView2.getRight() + Math.round(mSnapshotView2.getTranslationX())), in updateBorderBounds() 91 Math.max(mSnapshotView.getBottom() + Math.round(mSnapshotView.getTranslationY()), in updateBorderBounds() 92 mSnapshotView2.getBottom() + Math.round(mSnapshotView2.getTranslationY()))); in updateBorderBounds()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 265 mCurrX = mStartX + Math.round(x * mDeltaX); in computeScrollOffset() 266 mCurrY = mStartY + Math.round(x * mDeltaY); in computeScrollOffset() 277 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset() 282 mCurrY = mStartY + Math.round(distanceCoef * (mFinalY - mStartY)); in computeScrollOffset() 411 mFinalX = startX + Math.round(totalDistance * coeffX); in fling() 416 mFinalY = startY + Math.round(totalDistance * coeffY); in fling()
|
D | BitmapUtils.java | 117 int width = Math.round(bitmap.getWidth() * scale); in resizeBitmapByScale() 118 int height = Math.round(bitmap.getHeight() * scale); in resizeBitmapByScale() 158 int width = Math.round(scale * bitmap.getWidth()); in resizeAndCropCenter() 159 int height = Math.round(scale * bitmap.getHeight()); in resizeAndCropCenter()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | FaceView.java | 138 mFaceIndicator.setBounds(Math.round(mRect.left), Math.round(mRect.top), in onDraw() 139 Math.round(mRect.right), Math.round(mRect.bottom)); in onDraw()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | DragPreviewProvider.java | 139 outPos[0] = Math.round(outPos[0] - in getScaleAndPosition() 141 outPos[1] = Math.round(outPos[1] - (1 - scale) * preview.getIntrinsicHeight() / 2 in getScaleAndPosition() 156 outPos[0] = Math.round(outPos[0] in getScaleAndPosition() 158 outPos[1] = Math.round(outPos[1] - (1 - scale) * view.getHeight() / 2 - previewPadding / 2); in getScaleAndPosition()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 134 relativePosition.x = Math.round((outer.x - inner.x) / 2f); 136 relativePosition.y = Math.round((outer.y - inner.y) / 2f); 196 int scaledWallpaperWidth = Math.round(wallpaperSize.x * wallpaperZoom); in calculateCropRect() 197 int scaledWallpaperHeight = Math.round(wallpaperSize.y * wallpaperZoom); in calculateCropRect() 389 int rectRealWidth = Math.round((float) cropRect.width() / wallpaperScale); in getScaleOfScreenResolution() 390 int rectRealHeight = Math.round((float) cropRect.height() / wallpaperScale); in getScaleOfScreenResolution()
|
D | FullScreenAnimation.java | 169 layoutParams.setMargins(0, Math.round(marginTop), 0, Math.round(marginBottom)); in setViewMargins() 308 Math.round(mWorkspaceHeight * HIDE_ICONS_TOP_RATIO), in setWorkspaceVisibility() 310 mShowInFullScreen ? mWorkspaceHeight : mWorkspaceHeight + Math.round( in setWorkspaceVisibility() 448 Math.round(mWorkspaceHeight * top), in startAnimation() 450 mShowInFullScreen ? mWorkspaceHeight : mWorkspaceHeight + Math.round(bottom))); in startAnimation()
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | CircledImageView.java | 220 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 239 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 259 mPaint.setAlpha(Math.round(mPaint.getAlpha() * getAlpha())); in onDraw() 269 mDrawable.setAlpha(Math.round(getAlpha() * 255)); in onDraw() 359 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); in onLayout() 360 final int drawableHeight = Math.round(scaleFactor * nativeDrawableHeight); in onLayout() 364 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth); in onLayout()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryHistEntryTest.java | 200 /*foregroundUsageTimeInMs=*/ Math.round(100 + 0.5 * (200 - 100)), in testInterpolate_returnExpectedResult() 201 /*backgroundUsageTimeInMs=*/ Math.round(200 + 0.5 * (300 - 200)), in testInterpolate_returnExpectedResult() 202 /*batteryLevel=*/ (int) Math.round(90 + 0.5 * (80 - 90))); in testInterpolate_returnExpectedResult() 234 /*foregroundUsageTimeInMs=*/ Math.round(0.5 * 200), in testInterpolate_withoutLowerEntryData_returnExpectedResult() 235 /*backgroundUsageTimeInMs=*/ Math.round(0.5 * 300), in testInterpolate_withoutLowerEntryData_returnExpectedResult()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | FloatingSurfaceView.java | 184 lp.width = Math.round(mIconPosition.width()); in updateIconLocation() 185 lp.height = Math.round(mIconPosition.height()); in updateIconLocation() 186 lp.leftMargin = Math.round(mIconPosition.left); in updateIconLocation() 187 lp.topMargin = Math.round(mIconPosition.top); in updateIconLocation()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | TranslationAnimationCreator.java | 64 int startPosX = viewPosX + Math.round(startX - terminalX); in createAnimation() 99 mStartX = startX - Math.round(mMovingView.getTranslationX()); in TransitionPositionListener() 109 mTransitionPosition = Math.round(mStartX + mMovingView.getTranslationX()); in onAnimationCancel()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | StreamableAsset.java | 54 Math.round((float) rect.left * scale), in scaleRect() 55 Math.round((float) rect.top * scale), in scaleRect() 56 Math.round((float) rect.right * scale), in scaleRect() 57 Math.round((float) rect.bottom * scale)); in scaleRect()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 113 int d = (int) Math.round(Math.cos(/*45deg*/Math.PI / 4D) in draw() 359 return new Rect(Math.round(r.left), Math.round(r.top), in computeLayout() 360 Math.round(r.right), Math.round(r.bottom)); in computeLayout()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ThroughputPredictor.java | 77 (int) Math.round((6 * 3.0 * BIT_PER_TONE_SCALE) / 4.0); 79 (int) Math.round((6 * 5.0 * BIT_PER_TONE_SCALE) / 6.0); 81 (int) Math.round((8 * 5.0 * BIT_PER_TONE_SCALE) / 6.0); 83 (int) Math.round((10 * 5.0 * BIT_PER_TONE_SCALE) / 6.0); 85 (int) Math.round((12 * 5.0 * BIT_PER_TONE_SCALE) / 6.0);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | GlideFilmstripManager.java | 203 int width = (int) Math.round(original.width() * ratio); in clampSize() 204 int height = (int) Math.round(original.height() * ratio); in clampSize() 224 Math.min((int) Math.round(original.width() * ratio), maxSize.width()), in computeFitWithinSize() 225 Math.min((int) Math.round(original.height() * ratio), maxSize.height())); in computeFitWithinSize()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 146 final float round = mParams.mGesturePreviewRoundRadius; in drawPreview() local 148 mGesturePreviewRectangle, round, round, mParams.getBackgroundPaint()); in drawPreview()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | PeakRefreshRatePreferenceController.java | 110 return Math.round(peakRefreshRate) == Math.round(mPeakRefreshRate); in isChecked() 141 if (Math.round(mode.getRefreshRate()) > peakRefreshRate) { in findPeakRefreshRate()
|