Home
last modified time | relevance | path

Searched refs:newScale (Results 1 – 11 of 11) sorted by relevance

/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalScaleOperationsTest.java91 int newScale = 28; in testSetScaleGreater() local
93 BigDecimal bNumber = aNumber.setScale(newScale); in testSetScaleGreater()
94 assertTrue("incorrect scale", bNumber.scale() == newScale); in testSetScaleGreater()
103 int newScale = 5; in testSetScaleLess() local
105 BigDecimal bNumber = aNumber.setScale(newScale); in testSetScaleLess()
106 assertTrue("incorrect scale", bNumber.scale() == newScale); in testSetScaleLess()
116 int newScale = 18; in testSetScaleException() local
119 aNumber.setScale(newScale); in testSetScaleException()
132 int newScale = 18; in testSetScaleSame() local
134 BigDecimal bNumber = aNumber.setScale(newScale); in testSetScaleSame()
[all …]
DBigDecimalArithmeticTest.java1030 int newScale = 31; in testDivideBigDecimalScaleRoundingModeUP() local
1035 BigDecimal result = aNumber.divide(bNumber, newScale, rm); in testDivideBigDecimalScaleRoundingModeUP()
1037 assertEquals("incorrect scale", newScale, result.scale()); in testDivideBigDecimalScaleRoundingModeUP()
1048 int newScale = 31; in testDivideBigDecimalScaleRoundingModeDOWN() local
1053 BigDecimal result = aNumber.divide(bNumber, newScale, rm); in testDivideBigDecimalScaleRoundingModeDOWN()
1055 assertEquals("incorrect scale", newScale, result.scale()); in testDivideBigDecimalScaleRoundingModeDOWN()
1066 int newScale = 45; in testDivideBigDecimalScaleRoundingModeCEILING() local
1071 BigDecimal result = aNumber.divide(bNumber, newScale, rm); in testDivideBigDecimalScaleRoundingModeCEILING()
1073 assertEquals("incorrect scale", newScale, result.scale()); in testDivideBigDecimalScaleRoundingModeCEILING()
1084 int newScale = 45; in testDivideBigDecimalScaleRoundingModeFLOOR() local
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java72 public SimpleBigDecimal adjustScale(int newScale) in adjustScale() argument
74 if (newScale < 0) in adjustScale()
79 if (newScale == scale) in adjustScale()
84 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale()
85 newScale); in adjustScale()
/external/webkit/Source/WebCore/svg/
DSVGDocument.cpp52 void SVGDocument::dispatchZoomEvent(float prevScale, float newScale) in dispatchZoomEvent() argument
58 event->setNewScale(newScale); in dispatchZoomEvent()
DSVGZoomEvent.cpp54 float SVGZoomEvent::newScale() const in newScale() function in WebCore::SVGZoomEvent
DSVGZoomEvent.h43 float newScale() const;
DSVGDocument.h43 void dispatchZoomEvent(float prevScale, float newScale);
DSVGZoomEvent.idl32 readonly attribute float newScale;
/external/webkit/Source/WebKit2/UIProcess/API/qt/
Dqgraphicswkview.cpp438 float newScale = q->scale(); in commitScale() local
441 if (tiledDrawingArea->contentsScale() == newScale) in commitScale()
443 tiledDrawingArea->setContentsScale(newScale); in commitScale()
/external/webkit/Source/WebCore/platform/graphics/ca/
DGraphicsLayerCA.cpp1940 float newScale = clampedContentsScaleForScale(scale); in setContentsScale() local
1941 if (newScale == m_contentsScale) in setContentsScale()
1944 m_contentsScale = newScale; in setContentsScale()
/external/webkit/Source/WebKit/mac/WebView/
DWebView.mm3654 float newScale = [self _zoomMultiplier:isTextOnly] / ZoomMultiplierRatio;
3655 if (newScale > MinimumZoomMultiplier)
3656 [self _setZoomMultiplier:newScale isTextOnly:isTextOnly];
3666 float newScale = [self _zoomMultiplier:isTextOnly] * ZoomMultiplierRatio;
3667 if (newScale < MaximumZoomMultiplier)
3668 [self _setZoomMultiplier:newScale isTextOnly:isTextOnly];