/libcore/luni/src/main/java/java/net/ |
H A D | URLEncoder.java | 28 static final String digits = "0123456789ABCDEF"; field in class:URLEncoder 65 buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); 66 buf.append(digits.charAt(bytes[j] & 0xf)); 130 buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); 131 buf.append(digits.charAt(bytes[j] & 0xf));
|
H A D | URIEncoderDecoder.java | 32 static final String digits = "0123456789ABCDEF"; field in class:URIEncoderDecoder 125 buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); 126 buf.append(digits.charAt(bytes[j] & 0xf)); 156 buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); 157 buf.append(digits.charAt(bytes[j] & 0xf));
|
/libcore/luni/src/main/java/java/math/ |
H A D | BitLevel.java | 47 int highDigit = val.digits[val.numberLength - 1]; 73 bCount += Integer.bitCount(val.digits[i]); 77 bCount += Integer.bitCount(-val.digits[i]); 79 bCount += Integer.bitCount(~val.digits[i]); 94 return ((val.digits[n >> 5] & (1 << (n & 31))) != 0); 103 static boolean nonZeroDroppedBits(int numberOfBits, int[] digits) { argument 108 for (i = 0; (i < intCount) && (digits[i] == 0); i++) { 111 return ((i != intCount) || (digits[i] << (32 - bitCount) != 0)); 131 shiftLeftOneBit(resDigits, source.digits, srcLen); 147 shiftRight(resDigits, resLength, source.digits, intCoun [all...] |
H A D | BigInteger.java | 60 transient int[] digits; field in class:BigInteger 64 * digits.length(). 119 * @param digits a reference of some array created before. 121 BigInteger(int sign, int numberLength, int[] digits) { argument 122 setJavaRepresentation(sign, numberLength, digits); 142 int[] digits = new int[numberLength]; 144 digits[i] = random.nextInt(); 147 digits[numberLength - 1] >>>= (-numBits) & 31; 148 setJavaRepresentation(sign, numberLength, digits); 179 * non-empty sequence of decimal digits 305 setJavaRepresentation(int sign, int numberLength, int[] digits) argument [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | Date.java | 193 private void format(int date, int digits, StringBuilder sb) { argument 195 if (digits - str.length() > 0) { 196 sb.append(PADDING.substring(0, digits - str.length())); 238 * significance digits corresponding to milliseconds, seconds, minutes and
|
H A D | Time.java | 202 private void format(int date, int digits, StringBuilder sb) { argument 204 if (digits - str.length() > 0) { 205 sb.append(PADDING.substring(0, digits - str.length()));
|
H A D | Timestamp.java | 384 private void format(int date, int digits, StringBuilder sb) { argument 386 if (digits - str.length() > 0) { 387 sb.append(PADDING.substring(0, digits - str.length())); 441 * '.' followed by 1 to 9 digits - we also accept nothing (no fractions 463 * the 9 digits
|
/libcore/luni/src/main/java/java/lang/ |
H A D | RealToString.java | 34 * An array of decimal digits, filled by longDigitGenerator or bigIntDigitGenerator. 36 private final int[] digits = new int[64]; field in class:RealToString 39 * Number of valid entries in 'digits'. 196 sb.append0((char) ('0' + digits[digitIndex++])); 206 sb.append0((char) ('0' + digits[digitIndex++])); 229 int U = digits[digitIndex++]; 240 U = digitIndex < digitCount ? digits[digitIndex++] : -1; 308 digits[digitCount++] = U; 311 digits[digitCount++] = U; 313 digits[digitCoun [all...] |
H A D | Math.java | 310 * cancellation of significant digits). The returned result is within 1 ulp 1249 // the number of digits that shifts 1250 long digits = factor + Double.EXPONENT_BIAS + subNormalFactor; 1253 result = shiftLongBits(bits & Double.MANTISSA_MASK, digits); 1256 result = shiftLongBits(bits & Double.MANTISSA_MASK | 0x0010000000000000L, digits - 1); 1300 // the number of digits that shifts 1301 int digits = factor + Float.EXPONENT_BIAS + subNormalFactor; 1304 result = shiftIntBits(bits & Float.MANTISSA_MASK, digits); 1307 result = shiftIntBits(bits & Float.MANTISSA_MASK | 0x00800000, digits - 1); 1323 // Shifts integer bits as float, if the digits i 1325 shiftIntBits(int bits, int digits) argument 1351 shiftLongBits(long bits, long digits) argument [all...] |
H A D | StrictMath.java | 312 * cancellation of significant digits). 1131 // the number of digits that shifts 1132 long digits = factor + Double.EXPONENT_BIAS + subNormalFactor; 1135 result = shiftLongBits(bits & Double.MANTISSA_MASK, digits); 1138 result = shiftLongBits(bits & Double.MANTISSA_MASK | 0x0010000000000000L, digits - 1); 1183 // the number of digits that shifts 1184 int digits = factor + Float.EXPONENT_BIAS + subNormalFactor; 1187 result = shiftIntBits(bits & Float.MANTISSA_MASK, digits); 1190 result = shiftIntBits(bits & Float.MANTISSA_MASK | 0x00800000, digits - 1); 1206 // Shifts integer bits as float, if the digits i 1208 shiftIntBits(int bits, int digits) argument 1227 shiftLongBits(long bits, long digits) argument [all...] |