Home
last modified time | relevance | path

Searched refs:roundToInt (Results 1 – 19 of 19) sorted by relevance

/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java80 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/
DFloatingObjects.cpp374 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()
DRenderFileUploadControl.cpp141 …ntInfo.context->drawBidiText(font, textRunPaintInfo, IntPoint(roundToInt(textX), roundToInt(textY)… in paintObject()
DRenderWidget.cpp179 IntPoint paintLocation(roundToInt(adjustedPaintOffset.x() + borderLeft() + paddingLeft()), in paintContents()
180 roundToInt(adjustedPaintOffset.y() + borderTop() + paddingTop())); in paintContents()
DRenderBoxModelObject.h74 int pixelSnappedOffsetLeft() const { return roundToInt(offsetLeft()); } in pixelSnappedOffsetLeft()
75 int pixelSnappedOffsetTop() const { return roundToInt(offsetTop()); } in pixelSnappedOffsetTop()
DRenderReplaced.cpp365 …return computeReplacedLogicalWidthRespectingMinMaxWidth(roundToInt(round(logicalHeight * intrinsic… in computeReplacedLogicalWidth()
423 …return computeReplacedLogicalHeightRespectingMinMaxHeight(roundToInt(round(availableLogicalWidth()… in computeReplacedLogicalHeight()
DEllipsisBox.cpp125 …const int deltaY = roundToInt(renderer().style()->isFlippedLinesWritingMode() ? selectionBottom - … in paintSelection()
DRenderLayerScrollableArea.cpp1362 …element->setInlineStyleProperty(CSSPropertyWidth, roundToInt(baseWidth + difference.width()), CSSP… in resize()
1373 …element->setInlineStyleProperty(CSSPropertyHeight, roundToInt(baseHeight + difference.height()), C… in resize()
DInlineTextBox.cpp628 …int deltaY = roundToInt(renderer().style()->isFlippedLinesWritingMode() ? selectionBottom - logica… in paintSelection()
629 int selHeight = std::max(0, roundToInt(selectionBottom - selectionTop)); in paintSelection()
DRenderLayer.cpp2352 … newTransform.translateRight(roundToInt(offset.width()), roundToInt(offset.height())); in paintChildLayerIntoColumns()
2370 …transform.translateRight(roundToInt(childOffset.x() + offset.width()), roundToInt(childOffset.y() … in paintChildLayerIntoColumns()
DInlineFlowBox.cpp618 setLogicalTop(roundToInt(top + maxAscent - fontMetrics.ascent(baselineType))); in placeBoxesInBlockDirection()
DRenderBox.cpp468 int xOffset = roundToInt(exposeRect.x()); in scrollRectToVisible()
469 int yOffset = roundToInt(exposeRect.y()); in scrollRectToVisible()
/external/chromium_org/third_party/WebKit/Source/core/events/
DMouseRelatedEvent.cpp192 return roundToInt(m_offsetLocation.x()); in offsetX()
201 return roundToInt(m_offsetLocation.y()); in offsetY()
/external/chromium_org/third_party/WebKit/Source/core/paint/
DListMarkerPainter.cpp168 …marker.moveBy(IntPoint(roundToInt(box.x()), roundToInt(box.y() - m_renderListMarker.logicalHeight(… in paint()
DBoxPainter.cpp710 …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/
DRenderSVGRoot.cpp336 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/
DDoubleMath.java111 public static int roundToInt(double x, RoundingMode mode) { in roundToInt() method in DoubleMath
/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnit.h761 inline int roundToInt(LayoutUnit value) in roundToInt() function
/external/chromium_org/third_party/WebKit/Source/core/dom/
DElement.cpp561 return adjustLayoutUnitForAbsoluteZoom(roundToInt(renderer->clientLeft()), *renderer); in clientLeft()
570 return adjustLayoutUnitForAbsoluteZoom(roundToInt(renderer->clientTop()), *renderer); in clientTop()