/libcore/luni/src/test/java/libcore/java/lang/ |
D | ShortTest.java | 23 final short max = Short.MAX_VALUE; in test_compare() local 24 assertTrue(Short.compare(max, max) == 0); in test_compare() 27 assertTrue(Short.compare(max, zero) > 0); in test_compare() 28 assertTrue(Short.compare(max, min) > 0); in test_compare() 29 assertTrue(Short.compare(zero, max) < 0); in test_compare() 32 assertTrue(Short.compare(min, max) < 0); in test_compare()
|
D | ByteTest.java | 23 final byte max = Byte.MAX_VALUE; in test_compare() 24 assertTrue(Byte.compare(max, max) == 0); in test_compare() 27 assertTrue(Byte.compare(max, zero) > 0); in test_compare() 28 assertTrue(Byte.compare(max, min) > 0); in test_compare() 29 assertTrue(Byte.compare(zero, max) < 0); in test_compare() 32 assertTrue(Byte.compare(min, max) < 0); in test_compare()
|
D | IntegerTest.java | 42 final int max = Integer.MAX_VALUE; in testCompare() local 43 assertTrue(Integer.compare(max, max) == 0); in testCompare() 46 assertTrue(Integer.compare(max, zero) > 0); in testCompare() 47 assertTrue(Integer.compare(max, min) > 0); in testCompare() 48 assertTrue(Integer.compare(zero, max) < 0); in testCompare() 51 assertTrue(Integer.compare(min, max) < 0); in testCompare()
|
D | LongTest.java | 40 final long max = Long.MAX_VALUE; in testCompare() local 41 assertTrue(Long.compare(max, max) == 0); in testCompare() 44 assertTrue(Long.compare(max, zero) > 0); in testCompare() 45 assertTrue(Long.compare(max, min) > 0); in testCompare() 46 assertTrue(Long.compare(zero, max) < 0); in testCompare() 49 assertTrue(Long.compare(min, max) < 0); in testCompare()
|
D | OldAndroidMathTest.java | 330 assertEquals("Incorrect double max value", 1908897.6000089, Math.max(-1908897.6000089, in testMaxDD() 333 1908897.6000089, Math.max(2.0, 1908897.6000089), 0D); in testMaxDD() 334 assertEquals("Incorrect double max value", -2.0, Math.max(-2.0, in testMaxDD() 341 assertTrue("Incorrect float max value", Math.max(-1908897.600f, in testMaxFF() 344 Math.max(2.0f, 1908897.600f) == 1908897.600f); in testMaxFF() 346 Math.max(-2.0f, -1908897.600f) == -2.0f); in testMaxFF() 352 19088976, Math.max(-19088976, 19088976)); in testMaxII() 354 19088976, Math.max(20, 19088976)); in testMaxII() 355 assertEquals("Incorrect int max value", -20, Math.max(-20, -19088976)); in testMaxII() 360 assertEquals("Incorrect long max value", 19088976000089L, Math.max(-19088976000089L, in testMaxJJ() [all …]
|
D | OldAndroidStrictMathTest.java | 345 assertEquals("Incorrect double max value", 1908897.6000089, StrictMath.max( in testMaxDD() 347 assertEquals("Incorrect double max value", 1908897.6000089, StrictMath.max(2.0, in testMaxDD() 349 assertEquals("Incorrect double max value", -2.0, StrictMath.max(-2.0, in testMaxDD() 356 assertTrue("Incorrect float max value", StrictMath.max(-1908897.600f, in testMaxFF() 358 assertTrue("Incorrect float max value", StrictMath.max(2.0f, in testMaxFF() 360 assertTrue("Incorrect float max value", StrictMath.max(-2.0f, in testMaxFF() 366 assertEquals("Incorrect int max value", 19088976, StrictMath.max(-19088976, in testMaxII() 369 19088976, StrictMath.max(20, 19088976)); in testMaxII() 371 -20, StrictMath.max(-20, -19088976)); in testMaxII() 376 assertEquals("Incorrect long max value", 19088976000089L, StrictMath.max(-19088976000089L, in testMaxJJ() [all …]
|
D | IntrinsicTest.java | 83 StrictMath.max(1, 2); in testStrictMath_max() 98 Math.max(1, 2); in testMath_max()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributesImpl.java | 201 int max = length * 5; in getIndex() local 202 for (int i = 0; i < max; i += 5) { in getIndex() 220 int max = length * 5; in getIndex() local 221 for (int i = 0; i < max; i += 5) { in getIndex() 242 int max = length * 5; in getType() local 243 for (int i = 0; i < max; i += 5) { in getType() 262 int max = length * 5; in getType() local 263 for (int i = 0; i < max; i += 5) { in getType() 284 int max = length * 5; in getValue() local 285 for (int i = 0; i < max; i += 5) { in getValue() [all …]
|
D | NamespaceSupport.java | 198 int max = contexts.length; in pushContext() local 204 if (contextPos >= max) { in pushContext() 205 Context newContexts[] = new Context[max*2]; in pushContext() 206 System.arraycopy(contexts, 0, newContexts, 0, max); in pushContext() 207 max *= 2; in pushContext()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | LoopingBackwardsBenchmark.java | 29 @Param({"2", "20", "2000", "20000000"}) int max; field in LoopingBackwardsBenchmark 34 for (int j = 0; j < max; j++) { in timeForwards() 44 for (int j = max - 1; j >= 0; j--) { in timeBackwards()
|
D | StrictMathBenchmark.java | 179 StrictMath.max(d, d); in timeMaxD() 185 StrictMath.max(f, f); in timeMaxF() 191 StrictMath.max(i, i); in timeMaxI() 197 StrictMath.max(l, l); in timeMaxL()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TreeSetTest.java | 717 void mutateSet(NavigableSet<Integer> set, int min, int max) { in mutateSet() argument 719 int rangeSize = max - min + 1; in mutateSet() 737 assertTrue(element >= min && element <= max); in mutateSet() 742 void mutateSubSet(NavigableSet<Integer> set, int min, int max) { in mutateSubSet() argument 744 int rangeSize = max - min + 1; in mutateSubSet() 762 if (element >= min && element <= max) { in mutateSubSet() 784 int min, int max, boolean ascending) { in bashSubSet() argument 785 check(set, min, max, ascending); in bashSubSet() 786 check(set.descendingSet(), min, max, !ascending); in bashSubSet() local 788 mutateSubSet(set, min, max); in bashSubSet() [all …]
|
D | ConcurrentSkipListSetTest.java | 713 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { in mutateSet() argument 715 int rangeSize = max - min + 1; in mutateSet() 733 assertTrue(element >= min && element <= max); in mutateSet() 738 void mutateSubSet(NavigableSet<Integer> set, int min, int max, in mutateSubSet() argument 741 int rangeSize = max - min + 1; in mutateSubSet() 759 if (element >= min && element <= max) { in mutateSubSet() 781 int min, int max, boolean ascending, in bashSubSet() argument 783 check(set, min, max, ascending, bs); in bashSubSet() 784 check(set.descendingSet(), min, max, !ascending, bs); in bashSubSet() local 786 mutateSubSet(set, min, max, bs); in bashSubSet() [all …]
|
D | TreeMapTest.java | 823 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { 825 int rangeSize = max - min + 1; 843 assertTrue(key >= min && key <= max); 848 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { 850 int rangeSize = max - min + 1; 868 if (key >= min && key <= max) { 890 int min, int max, boolean ascending) { 891 check(map, min, max, ascending); 892 check(map.descendingMap(), min, max, !ascending); 894 mutateSubMap(map, min, max); [all …]
|
D | ConcurrentSkipListMapTest.java | 1018 void mutateMap(NavigableMap<Integer, Integer> map, int min, int max) { 1020 int rangeSize = max - min + 1; 1038 assertTrue(key >= min && key <= max); 1043 void mutateSubMap(NavigableMap<Integer, Integer> map, int min, int max) { 1045 int rangeSize = max - min + 1; 1063 if (key >= min && key <= max) { 1085 int min, int max, boolean ascending) { 1086 check(map, min, max, ascending); 1087 check(map.descendingMap(), min, max, !ascending); 1089 mutateSubMap(map, min, max); [all …]
|
D | ConcurrentLinkedDequeTest.java | 761 int max = rng.nextInt(5) + 2; in testIteratorRemove() local 762 int split = rng.nextInt(max-1) + 1; in testIteratorRemove() 763 for (int j = 1; j <= max; ++j) in testIteratorRemove() 773 for (int j = split+1; j <= max; ++j) { in testIteratorRemove() 829 int max = rng.nextInt(5) + 2; in testDescendingIteratorRemove() local 830 int split = rng.nextInt(max-1) + 1; in testDescendingIteratorRemove() 831 for (int j = max; j >= 1; --j) in testDescendingIteratorRemove() 841 for (int j = split+1; j <= max; ++j) { in testDescendingIteratorRemove()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | SSLContextSpiImpl.java | 62 int max = 65535; in engineCreateSSLEngine() local 64 if (port < 0 || port > max) { in engineCreateSSLEngine()
|
/libcore/luni/src/test/java/libcore/javax/net/ |
D | ServerSocketFactoryTest.java | 96 int max = 100; in assertBacklog() local 97 for (int i = 0; i < max; i++) { in assertBacklog() 103 fail("Failed to exhaust backlog after " + max + " connections!"); in assertBacklog()
|
/libcore/luni/src/test/resources/ |
D | math_java_only.csv | 2733 max,0x1.715eda6ab8562p2,-0x1.123d877d62ecbp2,0x1.715eda6ab8562p2 2734 max,0x1.6bf99eae2daf1p-1,0x1.04a084b48941ap-5,0x1.6bf99eae2daf1p-1 2735 max,0x1.71d3162e989e1p-2,-0x1.217c07c022339p1,0x1.71d3162e989e1p-2 2736 max,0x1.037880e10da75p0,0x1.5ca0113354b34p-2,0x1.037880e10da75p0 2737 max,-0x1.16982379a6ff7p-6,-0x1.4b06ec133eb96p-1,-0x1.16982379a6ff7p-6 2738 max,0x1.ec44f0f2f90acp-1,-0x1.34ea1e1f5a4e9p0,0x1.ec44f0f2f90acp-1 2739 max,0x1.9f4c3f68431f6p0,-0x1.01a6366c18264p1,0x1.9f4c3f68431f6p0 2740 max,0x1.30c55ff162bb6p4,0x1.30c55ff162bb6p4,0x1.3a5a028db64d5p2 2741 max,0x1.bf9b42ac4f87fp-1,-0x1.8a3e408bc21dbp1,0x1.bf9b42ac4f87fp-1 2742 max,0x1.f6c2140945b18p0,0x1.f6c2140945b18p0,0x1.bd6a19029eb1fp0 [all …]
|
/libcore/luni/src/main/java/java/sql/ |
D | Statement.java | 626 public void setMaxFieldSize(int max) throws SQLException; in setMaxFieldSize() argument 639 public void setMaxRows(int max) throws SQLException; in setMaxRows() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ByteTest.java | 359 final Byte max = new Byte(Byte.MAX_VALUE); in test_compareToLjava_lang_Byte() local 361 assertTrue(max.compareTo(max) == 0); in test_compareToLjava_lang_Byte() 365 assertTrue(max.compareTo(zero) > 0); in test_compareToLjava_lang_Byte() 366 assertTrue(max.compareTo(min) > 0); in test_compareToLjava_lang_Byte() 368 assertTrue(zero.compareTo(max) < 0); in test_compareToLjava_lang_Byte() 372 assertTrue(min.compareTo(max) < 0); in test_compareToLjava_lang_Byte()
|
D | MathTest.java | 611 assertEquals("Incorrect double max value", 1908897.6000089, Math.max(-1908897.6000089, in test_maxDD() 614 1908897.6000089, Math.max(2.0, 1908897.6000089), 0D); in test_maxDD() 615 assertEquals("Incorrect double max value", -2.0, Math.max(-2.0, in test_maxDD() 621 Double.toString(Double.NaN), Double.toString(Math.max(Double.NaN, 42.0d))); in test_maxDD() 623 Double.toString(Double.NaN), Double.toString(Math.max(42.0d, Double.NaN))); in test_maxDD() 625 Double.toString(+0.0d), Double.toString(Math.max(+0.0d, -0.0d))); in test_maxDD() 627 Double.toString(+0.0d), Double.toString(Math.max(-0.0d, +0.0d))); in test_maxDD() 629 Double.toString(-0.0d), Double.toString(Math.max(-0.0d, -0.0d))); in test_maxDD() 631 Double.toString(+0.0d), Double.toString(Math.max(+0.0d, +0.0d))); in test_maxDD() 639 assertTrue("Incorrect float max value", Math.max(-1908897.600f, in test_maxFF() [all …]
|
/libcore/luni/src/main/java/javax/crypto/ |
D | CipherInputStream.java | 61 int blockSize = Math.max(c.getBlockSize(), 1); in CipherInputStream() 62 int bufferSize = Math.max(blockSize, in CipherInputStream()
|
/libcore/luni/src/main/java/java/util/ |
D | BitSet.java | 141 int newLength = Math.max(desiredLongCount, bits.length * 2); in ensureCapacity() 188 longCount = Math.max(longCount, arrayIndex + 1); in set() 222 longCount = Math.max(longCount, arrayIndex + 1); in flip() 372 longCount = Math.max(longCount, lastArrayIndex + 1); in set() 442 longCount = Math.max(longCount, lastArrayIndex + 1); in flip() 488 int maxSize = Math.max(this.longCount, bs.longCount); in or() 504 int maxSize = Math.max(this.longCount, bs.longCount); in xor()
|
D | GregorianCalendar.java | 1154 int max = -1; in roll() local 1157 max = maximums[field]; in roll() 1209 max = daysInMonth(); in roll() 1212 max = daysInYear(fields[YEAR]); in roll() 1215 max = maximums[field]; in roll() 1219 max = (fields[DATE] + ((daysInMonth() - fields[DATE]) / 7 * 7) - 1) / 7 + 1; in roll() 1238 if (max != -1) { in roll() 1239 set(field, mod(fields[field] - 1 + value, max) + 1); in roll()
|