/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 80 assertEquals(expected.intValue(), DoubleMath.roundToInt(d, mode)); in testRoundIntegralDoubleToInt() 97 assertEquals(expected.intValue(), DoubleMath.roundToInt(d, mode)); in testRoundFractionalDoubleToInt() 113 assertEquals(expected.intValue(), DoubleMath.roundToInt(d, UNNECESSARY)); in testRoundExactIntegralDoubleToInt() 124 DoubleMath.roundToInt(d, UNNECESSARY); in testRoundExactFractionalDoubleToIntFails() 133 DoubleMath.roundToInt(Double.NaN, mode); in testRoundNaNToIntAlwaysFails() 142 DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails() 146 DoubleMath.roundToInt(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails()
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | FloatingObjects.cpp | 374 int logicalTopAsInt = roundToInt(logicalTop); in logicalLeftOffsetForPositioningFloat() 386 int logicalTopAsInt = roundToInt(logicalTop); in logicalRightOffsetForPositioningFloat() 398 …youtAdapter<FloatingObject::FloatLeft> adapter(m_renderer, roundToInt(logicalTop), roundToInt(logi… in logicalLeftOffset() 406 …outAdapter<FloatingObject::FloatRight> adapter(m_renderer, roundToInt(logicalTop), roundToInt(logi… in logicalRightOffset()
|
D | RenderFileUploadControl.cpp | 141 …ntInfo.context->drawBidiText(font, textRunPaintInfo, IntPoint(roundToInt(textX), roundToInt(textY)… in paintObject()
|
D | RenderWidget.cpp | 179 IntPoint paintLocation(roundToInt(adjustedPaintOffset.x() + borderLeft() + paddingLeft()), in paintContents() 180 roundToInt(adjustedPaintOffset.y() + borderTop() + paddingTop())); in paintContents()
|
D | RenderBoxModelObject.h | 74 int pixelSnappedOffsetLeft() const { return roundToInt(offsetLeft()); } in pixelSnappedOffsetLeft() 75 int pixelSnappedOffsetTop() const { return roundToInt(offsetTop()); } in pixelSnappedOffsetTop()
|
D | RenderReplaced.cpp | 365 …return computeReplacedLogicalWidthRespectingMinMaxWidth(roundToInt(round(logicalHeight * intrinsic… in computeReplacedLogicalWidth() 423 …return computeReplacedLogicalHeightRespectingMinMaxHeight(roundToInt(round(availableLogicalWidth()… in computeReplacedLogicalHeight()
|
D | EllipsisBox.cpp | 125 …const int deltaY = roundToInt(renderer().style()->isFlippedLinesWritingMode() ? selectionBottom - … in paintSelection()
|
D | RenderLayerScrollableArea.cpp | 1362 …element->setInlineStyleProperty(CSSPropertyWidth, roundToInt(baseWidth + difference.width()), CSSP… in resize() 1373 …element->setInlineStyleProperty(CSSPropertyHeight, roundToInt(baseHeight + difference.height()), C… in resize()
|
D | InlineTextBox.cpp | 628 …int deltaY = roundToInt(renderer().style()->isFlippedLinesWritingMode() ? selectionBottom - logica… in paintSelection() 629 int selHeight = std::max(0, roundToInt(selectionBottom - selectionTop)); in paintSelection()
|
D | RenderLayer.cpp | 2352 … newTransform.translateRight(roundToInt(offset.width()), roundToInt(offset.height())); in paintChildLayerIntoColumns() 2370 …transform.translateRight(roundToInt(childOffset.x() + offset.width()), roundToInt(childOffset.y() … in paintChildLayerIntoColumns()
|
D | InlineFlowBox.cpp | 618 setLogicalTop(roundToInt(top + maxAscent - fontMetrics.ascent(baselineType))); in placeBoxesInBlockDirection()
|
D | RenderBox.cpp | 468 int xOffset = roundToInt(exposeRect.x()); in scrollRectToVisible() 469 int yOffset = roundToInt(exposeRect.y()); in scrollRectToVisible()
|
/external/chromium_org/third_party/WebKit/Source/core/events/ |
D | MouseRelatedEvent.cpp | 192 return roundToInt(m_offsetLocation.x()); in offsetX() 201 return roundToInt(m_offsetLocation.y()); in offsetY()
|
/external/chromium_org/third_party/WebKit/Source/core/paint/ |
D | ListMarkerPainter.cpp | 168 …marker.moveBy(IntPoint(roundToInt(box.x()), roundToInt(box.y() - m_renderListMarker.logicalHeight(… in paint()
|
D | BoxPainter.cpp | 710 …geometry.setPhaseX(geometry.tileSize().width() ? geometry.tileSize().width() - roundToInt(computed… in calculateBackgroundImageGeometry() 724 …geometry.setPhaseY(geometry.tileSize().height() ? geometry.tileSize().height() - roundToInt(comput… in calculateBackgroundImageGeometry() 729 …geometry.setPhaseX(geometry.tileSize().width() ? geometry.tileSize().width() - roundToInt(computed… in calculateBackgroundImageGeometry() 738 …geometry.setPhaseX(actualWidth ? actualWidth - roundToInt(computedXPosition + left) % actualWidth … in calculateBackgroundImageGeometry() 750 …geometry.setPhaseY(geometry.tileSize().height() ? geometry.tileSize().height() - roundToInt(comput… in calculateBackgroundImageGeometry() 759 …geometry.setPhaseY(actualHeight ? actualHeight - roundToInt(computedYPosition + top) % actualHeigh… in calculateBackgroundImageGeometry()
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
D | RenderSVGRoot.cpp | 336 m_localToParentTransform.setE(m_localToParentTransform.e() + roundToInt(x())); in localToParentTransform() 338 m_localToParentTransform.setF(m_localToParentTransform.f() + roundToInt(y())); in localToParentTransform()
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleMath.java | 111 public static int roundToInt(double x, RoundingMode mode) { in roundToInt() method in DoubleMath
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | LayoutUnit.h | 761 inline int roundToInt(LayoutUnit value) in roundToInt() function
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
D | Element.cpp | 561 return adjustLayoutUnitForAbsoluteZoom(roundToInt(renderer->clientLeft()), *renderer); in clientLeft() 570 return adjustLayoutUnitForAbsoluteZoom(roundToInt(renderer->clientTop()), *renderer); in clientTop()
|