Home | History | Annotate | Download | only in launcher2

Lines Matching refs:Math

297         int minGap = Math.min(r.getDimensionPixelSize(R.dimen.workspace_width_gap),
308 int minGap = Math.min(r.getDimensionPixelSize(R.dimen.workspace_width_gap),
361 mForegroundAlpha = (int) Math.round((r * 255));
895 float distance = (float) Math.sqrt( Math.pow(x - mTmpPoint[0], 2) +
896 Math.pow(y - mTmpPoint[1], 2));
969 widthGap = Math.min(maxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0);
970 heightGap = Math.min(maxGap, numHeightGaps > 0 ? (vFreeSpace / numHeightGaps) : 0);
995 mWidthGap = Math.min(mMaxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0);
996 mHeightGap = Math.min(mMaxGap,numHeightGaps > 0 ? (vFreeSpace / numHeightGaps) : 0);
1201 result[0] = Math.max(0, result[0]); // Snap to left
1206 result[1] = Math.max(0, result[1]); // Snap to top
1469 double distance = Math.sqrt(Math.pow(cellXY[0] - pixelX, 2)
1470 + Math.pow(cellXY[1] - pixelY, 2));
1541 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY));
1984 if ((Math.abs(direction[0]) + Math.abs(direction[1])) > 1) {
2135 double angle = Math.atan(((float) deltaY) / deltaX);
2139 if (Math.abs(Math.cos(angle)) > 0.5f) {
2140 result[0] = (int) Math.signum(deltaX);
2142 if (Math.abs(Math.sin(angle)) > 0.5f) {
2143 result[1] = (int) Math.signum(deltaY);
2306 finalDeltaX = - Math.signum(dX) * mReorderHintAnimationMagnitude;
2308 finalDeltaY = - Math.signum(dY) * mReorderHintAnimationMagnitude;
2310 double angle = Math.atan( (float) (dY) / dX);
2311 finalDeltaX = (int) (- Math.signum(dX) *
2312 Math.abs(Math.cos(angle) * mReorderHintAnimationMagnitude));
2313 finalDeltaY = (int) (- Math.signum(dY) *
2314 Math.abs(Math.sin(angle) * mReorderHintAnimationMagnitude));
2342 va.setStartDelay((int) (Math.random() * 60));
2858 startX = Math.max(startX, intersectX - (spanX - 1));
2862 endX = Math.min(endX, intersectX + (spanX - 1) + (spanX == 1 ? 1 : 0));
2866 startY = Math.max(startY, intersectY - (spanY - 1));
2870 endY = Math.min(endY, intersectY + (spanY - 1) + (spanY == 1 ? 1 : 0));
2999 int smallerSize = Math.min(actualWidth, actualHeight);
3002 int spanX = (int) Math.ceil(width / (float) smallerSize);
3003 int spanY = (int) Math.ceil(height / (float) smallerSize);
3124 (Math.max((mCountX - 1), 0) * mWidthGap);
3129 (Math.max((mCountY - 1), 0) * mHeightGap);
3162 return (int) (Math.random() * 150);