/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | RoundingUtils.java | 172 MathContext mathContext = properties.getMathContext(); in getMathContextOrUnlimited() local 173 if (mathContext == null) { in getMathContextOrUnlimited() 177 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited() 179 return mathContext; in getMathContextOrUnlimited() 192 MathContext mathContext = properties.getMathContext(); in getMathContextOr34Digits() local 193 if (mathContext == null) { in getMathContextOr34Digits() 197 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_34_DIGITS[roundingMode.ordinal()]; in getMathContextOr34Digits() 199 return mathContext; in getMathContextOr34Digits()
|
D | DecimalFormatProperties.java | 97 private transient MathContext mathContext; // ICU4J-only field in DecimalFormatProperties 169 mathContext = null; in _clear() 215 mathContext = other.mathContext; in _copyFrom() 262 eq = eq && _equalsHelper(mathContext, other.mathContext); in _equals() 325 hashCode ^= _hashCodeHelper(mathContext); in _hashCode() 461 return mathContext; in getMathContext() 843 public DecimalFormatProperties setMathContext(MathContext mathContext) { in setMathContext() argument 844 this.mathContext = mathContext; in setMathContext()
|
D | DecimalQuantity_AbstractBCD.java | 182 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument 185 temp = temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement() 186 .multiply(roundingIncrement).round(mathContext); in roundToIncrement() 747 public void roundToMagnitude(int magnitude, MathContext mathContext) { in roundToMagnitude() argument 755 int _mcPrecision = mathContext.getPrecision(); in roundToMagnitude() 831 .roundsAtMidpoint(mathContext.getRoundingMode().ordinal()); in roundToMagnitude() 839 roundToMagnitude(magnitude, mathContext); // start over in roundToMagnitude() 863 mathContext.getRoundingMode().ordinal(), in roundToMagnitude()
|
D | DecimalQuantity.java | 64 public void roundToIncrement(BigDecimal roundingInterval, MathContext mathContext); in roundToIncrement() argument 75 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() argument
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | RoundingUtils.java | 170 MathContext mathContext = properties.getMathContext(); in getMathContextOrUnlimited() local 171 if (mathContext == null) { in getMathContextOrUnlimited() 175 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited() 177 return mathContext; in getMathContextOrUnlimited() 190 MathContext mathContext = properties.getMathContext(); in getMathContextOr34Digits() local 191 if (mathContext == null) { in getMathContextOr34Digits() 195 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_34_DIGITS[roundingMode.ordinal()]; in getMathContextOr34Digits() 197 return mathContext; in getMathContextOr34Digits()
|
D | DecimalFormatProperties.java | 92 private transient MathContext mathContext; // ICU4J-only field in DecimalFormatProperties 164 mathContext = null; in _clear() 210 mathContext = other.mathContext; in _copyFrom() 257 eq = eq && _equalsHelper(mathContext, other.mathContext); in _equals() 320 hashCode ^= _hashCodeHelper(mathContext); in _hashCode() 456 return mathContext; in getMathContext() 838 public DecimalFormatProperties setMathContext(MathContext mathContext) { in setMathContext() argument 839 this.mathContext = mathContext; in setMathContext()
|
D | DecimalQuantity_AbstractBCD.java | 180 public void roundToIncrement(BigDecimal roundingIncrement, MathContext mathContext) { in roundToIncrement() argument 183 temp = temp.divide(roundingIncrement, 0, mathContext.getRoundingMode()) in roundToIncrement() 184 .multiply(roundingIncrement).round(mathContext); in roundToIncrement() 745 public void roundToMagnitude(int magnitude, MathContext mathContext) { in roundToMagnitude() argument 753 int _mcPrecision = mathContext.getPrecision(); in roundToMagnitude() 829 .roundsAtMidpoint(mathContext.getRoundingMode().ordinal()); in roundToMagnitude() 837 roundToMagnitude(magnitude, mathContext); // start over in roundToMagnitude() 861 mathContext.getRoundingMode().ordinal(), in roundToMagnitude()
|
D | DecimalQuantity.java | 62 public void roundToIncrement(BigDecimal roundingInterval, MathContext mathContext); in roundToIncrement() argument 73 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext); in roundToMagnitude() argument
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Precision.java | 27 /* package-private final */ MathContext mathContext; field in Precision 30 mathContext = RoundingUtils.DEFAULT_MATH_CONTEXT_UNLIMITED; in Precision() 401 public Precision withMode(MathContext mathContext) { in withMode() argument 402 if (this.mathContext.equals(mathContext)) { in withMode() 406 other.mathContext = mathContext; in withMode() 627 value.roundToMagnitude(getRoundingMagnitudeFraction(maxFrac), mathContext); in apply() local 644 value.roundToMagnitude(getRoundingMagnitudeSignificant(value, maxSig), mathContext); in apply() local 689 value.roundToMagnitude(roundingMag, mathContext); in apply() 703 value.roundToIncrement(increment, mathContext); in apply()
|
D | NumberPropertyMapper.java | 143 MathContext mathContext = RoundingUtils.getMathContextOrUnlimited(properties); in oldToNew() local 197 rounding = rounding.withMode(mathContext); in oldToNew() 273 macros.precision = Precision.constructInfinite().withMode(mathContext); in oldToNew() 276 … macros.precision = Precision.constructSignificant(1, maxFrac_ + 1).withMode(mathContext); in oldToNew() 287 .withMode(mathContext); in oldToNew() 321 exportedProperties.setMathContext(mathContext); in oldToNew() 322 exportedProperties.setRoundingMode(mathContext.getRoundingMode()); in oldToNew()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | Precision.java | 28 /* package-private final */ MathContext mathContext; field in Precision 31 mathContext = RoundingUtils.DEFAULT_MATH_CONTEXT_UNLIMITED; in Precision() 390 public Precision withMode(MathContext mathContext) { in withMode() argument 391 if (this.mathContext.equals(mathContext)) { in withMode() 395 other.mathContext = mathContext; in withMode() 615 value.roundToMagnitude(getRoundingMagnitudeFraction(maxFrac), mathContext); in apply() local 632 value.roundToMagnitude(getRoundingMagnitudeSignificant(value, maxSig), mathContext); in apply() local 677 value.roundToMagnitude(roundingMag, mathContext); in apply() 691 value.roundToIncrement(increment, mathContext); in apply()
|
D | NumberPropertyMapper.java | 144 MathContext mathContext = RoundingUtils.getMathContextOrUnlimited(properties); in oldToNew() local 198 rounding = rounding.withMode(mathContext); in oldToNew() 274 macros.precision = Precision.constructInfinite().withMode(mathContext); in oldToNew() 277 … macros.precision = Precision.constructSignificant(1, maxFrac_ + 1).withMode(mathContext); in oldToNew() 288 .withMode(mathContext); in oldToNew() 322 exportedProperties.setMathContext(mathContext); in oldToNew() 323 exportedProperties.setRoundingMode(mathContext.getRoundingMode()); in oldToNew()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 356 public void roundToIncrement(BigDecimal roundingInterval, MathContext mathContext) { 360 d = d.divide(roundingInterval, 0, mathContext.getRoundingMode()).multiply(roundingInterval); 367 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) { 374 fallback = fallback.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 377 fallback = fallback.round(mathContext); 394 temp = temp.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 405 primary = new BigDecimal(primary).round(mathContext).longValueExact(); 447 private void divideBy(BigDecimal divisor, int scale, MathContext mathContext) { 450 fallback = fallback.divide(divisor, -scale, mathContext.getRoundingMode());
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/ |
D | DecimalQuantity_SimpleStorage.java | 359 public void roundToIncrement(BigDecimal roundingInterval, MathContext mathContext) { 363 d = d.divide(roundingInterval, 0, mathContext.getRoundingMode()).multiply(roundingInterval); 370 public void roundToMagnitude(int roundingMagnitude, MathContext mathContext) { 377 fallback = fallback.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 380 fallback = fallback.round(mathContext); 397 temp = temp.setScale(-roundingMagnitude, mathContext.getRoundingMode()); 408 primary = new BigDecimal(primary).round(mathContext).longValueExact(); 450 private void divideBy(BigDecimal divisor, int scale, MathContext mathContext) { 453 fallback = fallback.divide(divisor, -scale, mathContext.getRoundingMode());
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DecimalFormat.java | 1214 java.math.MathContext mathContext = exportedProperties.getMathContext(); in getMathContext() local 1215 assert mathContext != null; in getMathContext() 1216 return mathContext; in getMathContext() 1236 public synchronized void setMathContext(java.math.MathContext mathContext) { in setMathContext() argument 1237 properties.setMathContext(mathContext); in setMathContext() 1251 java.math.MathContext mathContext = getMathContext(); in getMathContextICU() local 1253 mathContext.getPrecision(), in getMathContextICU() 1256 mathContext.getRoundingMode().ordinal()); in getMathContextICU() 1270 java.math.MathContext mathContext; in setMathContextICU() local 1275 mathContext = new java.math.MathContext(mathContextICU.getDigits(), RoundingMode.UNNECESSARY); in setMathContextICU() [all …]
|
D | DecimalFormat_ICU58_Android.java | 1224 number = number.multiply(BigDecimal.valueOf(multiplier), mathContext); in format() 1229 .multiply(actualRoundingIncrementICU, mathContext); in format() 2076 n = big.divide(BigDecimal.valueOf(mult), mathContext); 3805 return mathContext; 3817 return mathContext == null ? null : new java.math.MathContext(mathContext.getDigits(), 3818 java.math.RoundingMode.valueOf(mathContext.getRoundingMode())); 3831 mathContext = newValue; 3841 mathContext = new MathContext(newValue.getPrecision(), MathContext.SCIENTIFIC, false, 5773 private MathContext mathContext = new MathContext(0, MathContext.PLAIN); local
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DecimalFormat.java | 1283 java.math.MathContext mathContext = exportedProperties.getMathContext(); in getMathContext() local 1284 assert mathContext != null; in getMathContext() 1285 return mathContext; in getMathContext() 1307 public synchronized void setMathContext(java.math.MathContext mathContext) { in setMathContext() argument 1308 properties.setMathContext(mathContext); in setMathContext() 1324 java.math.MathContext mathContext = getMathContext(); in getMathContextICU() local 1326 mathContext.getPrecision(), in getMathContextICU() 1329 mathContext.getRoundingMode().ordinal()); in getMathContextICU() 1345 java.math.MathContext mathContext; in setMathContextICU() local 1350 mathContext = new java.math.MathContext(mathContextICU.getDigits(), RoundingMode.UNNECESSARY); in setMathContextICU() [all …]
|
D | DecimalFormat_ICU58_Android.java | 1234 number = number.multiply(BigDecimal.valueOf(multiplier), mathContext); in format() 1239 .multiply(actualRoundingIncrementICU, mathContext); in format() 2088 n = big.divide(BigDecimal.valueOf(mult), mathContext); 3852 return mathContext; 3865 return mathContext == null ? null : new java.math.MathContext(mathContext.getDigits(), 3866 java.math.RoundingMode.valueOf(mathContext.getRoundingMode())); 3880 mathContext = newValue; 3891 mathContext = new MathContext(newValue.getPrecision(), MathContext.SCIENTIFIC, false, 5868 private MathContext mathContext = new MathContext(0, MathContext.PLAIN); local
|
/external/kotlinc/lib/ |
D | kotlin-stdlib.jar | META-INF/
META-INF/MANIFEST.MF
kotlin/
kotlin/jvm/
kotlin/ ... |
/external/cldr/tools/java/libs/ |
D | icu4j.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/ibm/
com/ ... |