Home
last modified time | relevance | path

Searched refs:bitSet (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/util/BitSet/stream/
DBitSetStreamTest.java233 BitSet bitSet = BitSet.valueOf(bytes); in testRandomStream() local
234 testBitSetContents(bitSet, bitSet.stream().toArray()); in testRandomStream()
235 testBitSetContents(bitSet, bitSet.stream().parallel().toArray()); in testRandomStream()
239 void testBitSetContents(BitSet bitSet, int[] array) { in testBitSetContents() argument
240 int cardinality = bitSet.cardinality(); in testBitSetContents()
244 nextSetBit = bitSet.nextSetBit(nextSetBit + 1); in testBitSetContents()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleBaseByteArrayTest.java54 boolean isSet(int bitSet) { in isSet() argument
55 return (bitSet & (1 << bit)) == value; in isSet()
58 static int bitSet(MemoryMode... modes) { in bitSet() method in VarHandleBaseByteArrayTest.MemoryMode
68 static EnumSet<MemoryMode> enumSet(int bitSet) { in enumSet() argument
71 if (m.isSet(bitSet)) { in enumSet()
85 memoryModes = MemoryMode.bitSet(modes); in Source()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java45 BitSet bitSet = new BitSet(); in test_toString_highestPossibleBitSet() local
46 bitSet.set(Integer.MAX_VALUE); in test_toString_highestPossibleBitSet()
47 assertEquals("{2147483647}", bitSet.toString()); in test_toString_highestPossibleBitSet()