/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | NumberTest.java | 26 int number = 1231243; in test_byteValue() local 27 assertTrue("Incorrect byte returned for: " + number, in test_byteValue() 28 ((byte) new Integer(number).intValue()) == new Integer(number) in test_byteValue() 30 number = 0; in test_byteValue() 31 assertTrue("Incorrect byte returned for: " + number, in test_byteValue() 32 ((byte) new Integer(number).intValue()) == new Integer(number) in test_byteValue() 34 number = -1; in test_byteValue() 35 assertTrue("Incorrect byte returned for: " + number, in test_byteValue() 36 ((byte) new Integer(number).intValue()) == new Integer(number) in test_byteValue() 38 number = -84109328; in test_byteValue() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerOperateBitsTest.java | 130 int number = -7; in testClearBitException() local 133 aNumber.clearBit(number); in testClearBitException() 145 int number = 0; in testClearBitZero() local 148 BigInteger result = aNumber.clearBit(number); in testClearBitZero() 163 int number = 95; in testClearBitZeroOutside1() local 166 BigInteger result = aNumber.clearBit(number); in testClearBitZeroOutside1() 181 int number = 15; in testClearBitNegativeInside1() local 184 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside1() 199 int number = 44; in testClearBitNegativeInside2() local 202 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside2() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_DecimalFormat.java | 42 Number number = new Double(10000000.76); in t_format_with_FieldPosition() local 45 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 0, 1); in t_format_with_FieldPosition() 46 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 1, 11); in t_format_with_FieldPosition() 47 t_FormatWithField(2, format, number, text, NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition() 48 t_FormatWithField(3, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition() 49 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 12, 14); in t_format_with_FieldPosition() 52 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, 0); in t_format_with_FieldPosition() 53 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, 0, 0); in t_format_with_FieldPosition() 54 t_FormatWithField(7, format, number, text, NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() 55 t_FormatWithField(8, format, number, text, NumberFormat.Field.EXPONENT_SYMBOL, 0, 0); in t_format_with_FieldPosition() [all …]
|
D | DecimalFormatTest.java | 96 Number number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() local 97 assertTrue(number instanceof Double); in test_parse_returnType() 103 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 104 assertTrue(number instanceof Double); in test_parse_returnType() 107 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 109 assertTrue(number instanceof BigDecimal); in test_parse_returnType() 110 assertEquals(new BigDecimal("23.1"), number); in test_parse_returnType() 118 number = form.parse("23.1f", new ParsePosition(0)); in test_parse_returnType() 120 assertTrue(number instanceof Long); in test_parse_returnType() 122 number = form.parse("23.0", new ParsePosition(0)); in test_parse_returnType() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_DecimalFormat.java | 44 Number number = new Double(10000000.76); in t_format_with_FieldPosition() local 47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, in t_format_with_FieldPosition() 49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, in t_format_with_FieldPosition() 51 t_FormatWithField(2, format, number, text, in t_format_with_FieldPosition() 53 t_FormatWithField(3, format, number, text, in t_format_with_FieldPosition() 55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, in t_format_with_FieldPosition() 59 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, in t_format_with_FieldPosition() 61 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, in t_format_with_FieldPosition() 63 t_FormatWithField(7, format, number, text, in t_format_with_FieldPosition() 65 t_FormatWithField(8, format, number, text, in t_format_with_FieldPosition() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 576 public final StringBuffer format(Object number, in format() argument 579 if (number instanceof Long || number instanceof Integer || in format() 580 number instanceof Short || number instanceof Byte || in format() 581 number instanceof AtomicInteger || in format() 582 number instanceof AtomicLong || in format() 583 (number instanceof BigInteger && in format() 584 ((BigInteger)number).bitLength () < 64)) { in format() 585 return format(((Number)number).longValue(), toAppendTo, pos); in format() 586 } else if (number instanceof BigDecimal) { in format() 587 return format((BigDecimal)number, toAppendTo, pos); in format() [all …]
|
D | NumberFormat.java | 236 public StringBuffer format(Object number, in format() argument 239 if (number instanceof Long || number instanceof Integer || in format() 240 number instanceof Short || number instanceof Byte || in format() 241 number instanceof AtomicInteger || number instanceof AtomicLong || in format() 242 (number instanceof BigInteger && in format() 243 ((BigInteger)number).bitLength() < 64)) { in format() 244 return format(((Number)number).longValue(), toAppendTo, pos); in format() 245 } else if (number instanceof Number) { in format() 246 return format(((Number)number).doubleValue(), toAppendTo, pos); in format() 286 public final String format(double number) { in format() argument [all …]
|
D | ChoiceFormat.java | 370 public StringBuffer format(long number, StringBuffer toAppendTo, in format() argument 372 return format((double)number, toAppendTo, status); in format() 381 public StringBuffer format(double number, StringBuffer toAppendTo, in format() argument 386 if (!(number >= choiceLimits[i])) { in format()
|
D | SimpleDateFormat.java | 1819 Number number = null; in subParse() local 1858 number = numberFormat.parse(text.substring(0, start+count), pos); in subParse() 1860 number = numberFormat.parse(text, pos); in subParse() 1862 if (number == null) { in subParse() 1867 value = number.intValue(); in subParse() 2136 number = numberFormat.parse(text.substring(0, start+count), pos); in subParse() 2138 number = numberFormat.parse(text, pos); in subParse() 2140 if (number != null) { in subParse() 2148 double doubleValue = number.doubleValue(); in subParse() 2153 value = number.intValue(); in subParse()
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 296 String number = literal; in readLiteral() local 297 if (number.startsWith("0x") || number.startsWith("0X")) { in readLiteral() 298 number = number.substring(2); in readLiteral() 300 } else if (number.startsWith("0") && number.length() > 1) { in readLiteral() 301 number = number.substring(1); in readLiteral() 305 long longValue = Long.parseLong(number, base); in readLiteral()
|
D | JSONObject.java | 731 public static String numberToString(Number number) throws JSONException { in numberToString() argument 732 if (number == null) { in numberToString() 736 double doubleValue = number.doubleValue(); in numberToString() 740 if (number.equals(NEGATIVE_ZERO)) { in numberToString() 744 long longValue = number.longValue(); in numberToString() 749 return number.toString(); in numberToString()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ForkJoinTaskTest.java | 339 int number; 341 this.number = n; 346 int n = f.number; 359 number = ((AsyncFib)x).number + ((AsyncFib)y).number; 364 int number; 366 this.number = n; 371 int n = f.number; 398 assertEquals(21, f.number); 414 assertEquals(21, f.number); 429 assertEquals(21, f.number); [all …]
|
D | CountedCompleterTest.java | 528 int number; 533 this.number = n; 538 int n = number; 555 int n = number + rnumber; 557 p.number = n; 559 number = n; 569 int n = number + rnumber; 573 number = n; 579 int number; 584 this.number = n; [all …]
|
D | ForkJoinPool8Test.java | 188 final int number; field in ForkJoinPool8Test.FibAction 190 FibAction(int n) { number = n; } in FibAction() 192 int n = number; in realCompute() 206 final int number; field in ForkJoinPool8Test.FailingFibAction 208 FailingFibAction(int n) { number = n; } in FailingFibAction() 210 int n = number; in compute() 866 int number; field in ForkJoinPool8Test.CCF 871 this.number = n; in CCF() 877 int n = number; in compute() 882 f.number = n; in compute() [all …]
|
D | ForkJoinTask8Test.java | 306 int number; 308 public AsyncFib(int number) { 309 this.number = number; 310 this.expectedResult = fib[number]; 316 int n = f.number; 335 number = ((AsyncFib)x).number + ((AsyncFib)y).number; 340 assertEquals(expectedResult, number); 346 int number; 348 this.number = n; 354 int n = f.number; [all …]
|
D | ForkJoinPoolTest.java | 114 final int number; field in ForkJoinPoolTest.FibTask 115 FibTask(int n) { number = n; } in FibTask() 117 int n = number; in compute() 136 final int number; field in ForkJoinPoolTest.LockingFibTask 140 number = n; in LockingFibTask() 149 n = number; in compute()
|
D | RecursiveTaskTest.java | 196 final int number; field in RecursiveTaskTest.FibTask 197 FibTask(int n) { number = n; } in FibTask() 199 int n = number; in realCompute() 214 final int number; field in RecursiveTaskTest.FailingFibTask 216 FailingFibTask(int n) { number = n; } in FailingFibTask() 218 int n = number; in compute()
|
/libcore/luni/src/test/resources/bundles/java/util/logging/ |
D | res_en_US.properties | 11 pattern=US_pattern {0, number} 12 pattern{0,number}=US
|
D | res.properties | 11 pattern=US_pattern {0, number} 12 pattern{0,number}=US
|
D | res2.properties | 11 pattern=pattern {0, number}2 12 pattern{0,number}=NOLOCALE2
|
D | res_zh_CN.properties | 11 pattern=ZH_CN_pattern {0, number} 12 pattern{0,number}=ZH_CN
|
D | res3.properties | 11 pattern=pattern {0, number}3 12 pattern{0,number}=NOLOCALE3
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldLogManagerTest.java | 233 static int number = 0; field in OldLogManagerTest.MockHandler 240 number++; in addNumber() 248 number--; in minusNumber()
|
/libcore/luni/src/test/resources/out_hb/ |
D | staff.out | 12 Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2;
|
/libcore/luni/src/test/resources/out_dh/ |
D | staff.out | 12 Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2;
|