Searched refs:cardinality (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | BitSetTest.java | 57 int cardinality = 0; in assertBitSet() local 59 cardinality += Long.bitCount(longs[i]); in assertBitSet() 61 if (cardinality != 0) { in assertBitSet() 66 assertEquals(cardinality, bs.cardinality()); in assertBitSet() 101 int cardinality = 0; in assertBitSet() local 103 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff); in assertBitSet() 105 if (cardinality != 0) { in assertBitSet() 110 assertEquals(cardinality, bs.cardinality()); in assertBitSet() 261 assertEquals(bs.cardinality(), bs.stream().count()); in test_stream()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | BitSetTest.java | 104 .cardinality()); in test_clear() 959 assertEquals(0, bsnew.cardinality()); in test_111478() 1315 assertEquals(bs.toString(), 4, bs.cardinality()); in test_cardinality() 1320 assertEquals(bs.toString(), 48, bs.cardinality()); in test_cardinality() 1324 .cardinality()); in test_cardinality() 1327 assertEquals("cardinality() returned wrong value", 0, bs.cardinality()); in test_cardinality() 1331 .cardinality()); in test_cardinality() 1335 assertEquals("cardinality() returned wrong value", 64, bs.cardinality()); in test_cardinality()
|
/libcore/ojluni/src/main/java/java/util/ |
D | BitSet.java | 896 public int cardinality() { in cardinality() method in BitSet 1185 cardinality() : wordsInUse * BITS_PER_WORD; in toString() 1242 new BitSetIterator(), cardinality(), in stream()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ServerSocketConcurrentCloseTest.java | 113 int numIterationsWithConnections = iterationsWithConnections.cardinality(); in testConcurrentServerSocketCloseReliablyThrows()
|