/libcore/ojluni/src/main/java/java/text/ |
D | DigitList.java | 104 public char[] digits = new char[MAX_COUNT]; field in DigitList 115 if (digits[i] != '0') { in isZero() 145 if (count == digits.length) { in append() 147 System.arraycopy(digits, 0, data, 0, count); in append() 148 digits = data; in append() 150 digits[count++] = digit; in append() 165 temp.append(digits, 0, count); in getDouble() 190 temp.append(digits, 0, count); in getLong() 207 return new BigDecimal(digits, 0, count); in getBigDecimal() 209 return new BigDecimal(digits, 0, count).scaleByPowerOfTen(decimalAt - count); in getBigDecimal() [all …]
|
D | DecimalFormat.java | 1413 int digits = currency.getDefaultFractionDigits(); in adjustForCurrencyDefaultFractionDigits() local 1414 if (digits != -1) { in adjustForCurrencyDefaultFractionDigits() 1419 setMinimumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits() 1420 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits() 1422 setMinimumFractionDigits(Math.min(digits, oldMinDigits)); in adjustForCurrencyDefaultFractionDigits() 1423 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits()
|
/libcore/luni/src/main/java/java/math/ |
D | Logical.java | 51 if (val.digits[val.numberLength - 1] != -1) { in not() 52 for (i = 0; val.digits[i] == -1; i++) { in not() 56 for (i = 0; (i < val.numberLength) && (val.digits[i] == -1); i++) { in not() 67 for (i = 0; val.digits[i] == 0; i++) { in not() 73 resDigits[i] = val.digits[i] + val.sign; in not() 76 resDigits[i] = val.digits[i]; in not() 122 resDigits[i] = val.digits[i] & that.digits[i]; in andPositive() 145 resDigits[i] = -negative.digits[i] & positive.digits[i]; in andDiffSigns() 150 resDigits[i] = ~negative.digits[i] & positive.digits[i]; in andDiffSigns() 156 resDigits[i] = positive.digits[i]; in andDiffSigns() [all …]
|
D | BigInteger.java | 54 transient int[] digits; field in BigInteger 115 BigInteger(int sign, int numberLength, int[] digits) { in BigInteger() argument 116 setJavaRepresentation(sign, numberLength, digits); in BigInteger() 136 int[] digits = new int[numberLength]; in BigInteger() local 138 digits[i] = random.nextInt(); in BigInteger() 141 digits[numberLength - 1] >>>= (-numBits) & 31; in BigInteger() 142 setJavaRepresentation(sign, numberLength, digits); in BigInteger() 322 bigInt.putLittleEndianInts(digits, (sign < 0)); in getBigInt() 333 private void setJavaRepresentation(int sign, int numberLength, int[] digits) { in setJavaRepresentation() argument 335 while (numberLength > 0 && digits[--numberLength] == 0) { in setJavaRepresentation() [all …]
|
D | BitLevel.java | 47 int highDigit = val.digits[val.numberLength - 1]; in bitLength() 73 bCount += Integer.bitCount(val.digits[i]); in bitCount() 77 bCount += Integer.bitCount(-val.digits[i]); in bitCount() 79 bCount += Integer.bitCount(~val.digits[i]); in bitCount() 94 return ((val.digits[n >> 5] & (1 << (n & 31))) != 0); in testBit() 103 static boolean nonZeroDroppedBits(int numberOfBits, int[] digits) { in nonZeroDroppedBits() argument 108 for (i = 0; (i < intCount) && (digits[i] == 0); i++) { in nonZeroDroppedBits() 111 return ((i != intCount) || (digits[i] << (32 - bitCount) != 0)); in nonZeroDroppedBits() 131 shiftLeftOneBit(resDigits, source.digits, srcLen); in shiftLeftOneBit() 147 shiftRight(resDigits, resLength, source.digits, intCount, count); in shiftRight() [all …]
|
D | Conversion.java | 57 int[] digits = val.digits; in bigInteger2String() local 63 int highDigit = digits[numberLength - 1]; in bigInteger2String() 84 System.arraycopy(digits, 0, temp, 0, numberLength); in bigInteger2String() 116 resDigit = digits[i] >> (j << 2) & 0xf; in bigInteger2String() 141 int[] digits = val.digits; in toDecimalScaledString() local 185 int highDigit = digits[0]; in toDecimalScaledString() 204 System.arraycopy(digits, 0, temp, 0, tempLen); in toDecimalScaledString() 422 || ((val.numberLength == 2) && (val.digits[1] > 0))) { in bigInteger2Double() 452 val.digits))) { in bigInteger2Double()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FormattedFloatingDecimal.java | 38 char digits[]; field in FormattedFloatingDecimal 51 …private FormattedFloatingDecimal( boolean negSign, int decExponent, char []digits, int n, bool… in FormattedFloatingDecimal() argument 56 this.digits = digits; in FormattedFloatingDecimal() 311 char digits[]; in developLongDigits() local 337 digits = (char[])(perThreadBuffer.get()); in developLongDigits() 347 digits[digitno--] = (char)(c+'0'); in developLongDigits() 352 digits[digitno] = (char)(c+'0'); in developLongDigits() 357 digits = (char[])(perThreadBuffer.get()); in developLongDigits() 367 digits[digitno--] = (char)(c+'0'); in developLongDigits() 372 digits[digitno] = (char)(c+'0'); in developLongDigits() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | FloatingDecimal.java | 38 char digits[]; field in FloatingDecimal 294 char digits[]; in developLongDigits() local 320 digits = (char[])(perThreadBuffer.get()); in developLongDigits() 330 digits[digitno--] = (char)(c+'0'); in developLongDigits() 335 digits[digitno] = (char)(c+'0'); in developLongDigits() 340 digits = (char[])(perThreadBuffer.get()); in developLongDigits() 350 digits[digitno--] = (char)(c+'0'); in developLongDigits() 355 digits[digitno] = (char)(c+'0'); in developLongDigits() 360 System.arraycopy( digits, digitno, result, 0, ndigits ); in developLongDigits() 361 this.digits = result; in developLongDigits() [all …]
|
D | Byte.java | 478 char[] digits = upperCase ? UPPER_CASE_DIGITS : DIGITS; in toHexString() local 480 buf[0] = digits[(b >> 4) & 0xf]; in toHexString() 481 buf[1] = digits[b & 0xf]; in toHexString()
|
D | Integer.java | 77 final static char[] digits = { field in Integer 150 buf[charPos--] = digits[radix * q - i]; in toString() 153 buf[charPos] = digits[-i]; in toString() 266 buf[--charPos] = digits[i & mask]; in toUnsignedString() 399 buf [--charPos] = digits [r];
|
D | Long.java | 130 buf[charPos--] = Integer.digits[(int)(-(i % radix))]; in toString() 133 buf[charPos] = Integer.digits[(int)(-i)]; in toString() 248 buf[--charPos] = Integer.digits[(int)(i & mask)]; in toUnsignedString() 321 buf[--charPos] = Integer.digits[r]; in getChars()
|
/libcore/ojluni/src/main/java/java/util/ |
D | UUID.java | 375 return (digits(mostSigBits >> 32, 8) + "-" + in toString() 376 digits(mostSigBits >> 16, 4) + "-" + in toString() 377 digits(mostSigBits, 4) + "-" + in toString() 378 digits(leastSigBits >> 48, 4) + "-" + in toString() 379 digits(leastSigBits, 12)); in toString() 383 private static String digits(long val, int digits) { in digits() argument 384 long hi = 1L << (digits * 4); in digits()
|
D | Scanner.java | 462 private String digits = "0123456789abcdefghijklmnopqrstuvwxyz"; field in Scanner 466 String radixDigits = digits.substring(0, radix); in buildIntegerPatternString() 468 … String nonZeroRadixDigits = "((?i)[" + digits.substring(1, radix) + "]|(" + non0Digit + "))"; in buildIntegerPatternString()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | R.java | 1530 public static final int digits = 0; field in R
|
/libcore/expectations/ |
D | knownfailures.txt | 32 description: "DecimalFormat is limited to 127 digits",
|