Home
last modified time | relevance | path

Searched refs:BitSet (Results 1 – 25 of 34) sorted by relevance

12

/libcore/ojluni/src/test/java/util/BitSet/
DBSMethods.java33 package test.java.util.BitSet;
60 private static void checkEmpty(BitSet s) { in checkEmpty()
64 check(s.equals(new BitSet()) , "equals"); in checkEmpty()
65 check(s.equals(new BitSet(0)) , "equals"); in checkEmpty()
66 check(s.equals(new BitSet(127)), "equals"); in checkEmpty()
67 check(s.equals(new BitSet(128)), "equals"); in checkEmpty()
78 private static BitSet makeSet(int... elts) { in makeSet()
79 BitSet s = new BitSet(); in makeSet()
85 private static void checkEquality(BitSet s, BitSet t) { in checkEquality()
93 private static void checkSanity(BitSet... sets) { in checkSanity()
[all …]
DImportExport.java32 package test.java.util.BitSet;
48 void equal(byte[] bytes, BitSet s) { in equal()
49 equal(s, BitSet.valueOf(bytes)); in equal()
50 equal(s, BitSet.valueOf(ByteBuffer.wrap(bytes))); in equal()
51 equal(s, BitSet.valueOf( in equal()
58 void checkEmptyBitSet(BitSet s) { in checkEmptyBitSet()
67 BitSet s = new BitSet(); in test()
69 equal(BitSet.valueOf(bytes).toByteArray(), new byte[0]); in test()
77 equal(BitSet.valueOf(bytes).toByteArray(), expected); in test()
80 equal(BitSet.valueOf(bb).toByteArray(), in test()
[all …]
DAnd.java24 package test.java.util.BitSet;
31 import java.util.BitSet;
35 BitSet a = new BitSet(); in main()
36 BitSet b = new BitSet(); in main()
DMemoryLeak.java30 package test.java.util.BitSet;
45 BitSet setOne = new BitSet(); in main()
46 BitSet setTwo = new BitSet(); in main()
DStickySize.java31 package test.java.util.BitSet;
37 static void equalClones(BitSet s, int expectedSize) { in equalClones()
45 BitSet s; in realMain()
47 s = new BitSet(); // non-sticky in realMain()
58 s = new BitSet(8*64); // sticky in realMain()
73 static BitSet clone(BitSet s) { in clone()
74 return (BitSet) s.clone(); in clone()
DPreviousBits.java31 package test.java.util.BitSet;
37 void testHashCode(final BitSet s) { in testHashCode()
45 void testOutOfBounds(final BitSet s) { in testOutOfBounds()
58 final BitSet s = new BitSet(); in test()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java22 import java.util.BitSet;
28 BitSet bs = new BitSet(); in test_toString()
45 BitSet bitSet = new BitSet(); in test_toString_highestPossibleBitSet()
53 private static void assertBitSet(BitSet bs, long[] longs, String s) { in assertBitSet()
73 assertBitSet(BitSet.valueOf(longs), longs, s); in assertBitSet()
75 assertBitSet(BitSet.valueOf(LongBuffer.wrap(longs)), longs, s); in assertBitSet()
80 assertBitSet(BitSet.valueOf(LongBuffer.wrap(paddedLongs, 1, longs.length)), longs, s); in assertBitSet()
84 BitSet original = BitSet.valueOf(longs); in assertBitSet()
86 assertFalse(BitSet.valueOf(longs).equals(original)); in assertBitSet()
97 private static void assertBitSet(BitSet bs, byte[] bytes, String s) { in assertBitSet()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DBitSetTest.java20 import java.util.BitSet;
26 BitSet eightbs;
29 BitSet bs = new BitSet(); in test_Constructor()
37 BitSet bs = new BitSet(128); in test_ConstructorI()
46 bs = new BitSet(89); in test_ConstructorI()
50 bs = new BitSet(-9); in test_ConstructorI()
57 BitSet bs = (BitSet) eightbs.clone(); in test_clone()
62 BitSet bs; in test_equalsLjava_lang_Object()
64 bs = (BitSet) eightbs.clone(); in test_equalsLjava_lang_Object()
70 bs = (BitSet) eightbs.clone(); in test_equalsLjava_lang_Object()
[all …]
DGregorianCalendarTest.java20 import java.util.BitSet;
392 BitSet result = new BitSet(); in test_getGreatestMinimumI()
434 BitSet result = new BitSet(); in test_getLeastMaximumI()
463 BitSet result = new BitSet(); in test_getMaximumI()
492 BitSet result = new BitSet(); in test_getMinimumI()
/libcore/ojluni/src/main/java/java/util/
DBitSet.java66 public class BitSet implements Cloneable, java.io.Serializable { class
145 public BitSet() { in BitSet() method in BitSet
159 public BitSet(int nbits) { in BitSet() method in BitSet
176 private BitSet(long[] words) { in BitSet() method in BitSet
198 public static BitSet valueOf(long[] longs) { in valueOf()
202 return new BitSet(Arrays.copyOf(longs, n)); in valueOf()
223 public static BitSet valueOf(LongBuffer lb) { in valueOf()
230 return new BitSet(words); in valueOf()
249 public static BitSet valueOf(byte[] bytes) { in valueOf()
250 return BitSet.valueOf(ByteBuffer.wrap(bytes)); in valueOf()
[all …]
/libcore/ojluni/src/test/java/util/BitSet/stream/
DBitSetStreamTest.java24 package test.java.util.BitSet.stream;
27 import java.util.BitSet;
114 BitSet bs = data.collect(BitSet::new, BitSet::set, BitSet::or); in testBitsetStream()
168 IntStream.of(exp).collect(BitSet::new, BitSet::set, BitSet::or). in spliteratorOfIntDataProvider()
233 BitSet bitSet = BitSet.valueOf(bytes); in testRandomStream()
239 void testBitSetContents(BitSet bitSet, int[] array) { in testBitSetContents()
/libcore/ojluni/src/test/java/net/InetAddress/
DB6296240.java32 import java.util.BitSet;
41 BitSet expectedExceptions = new BitSet(malformedIPv4s.length); in testB6296240()
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimeTest.java37 import java.util.BitSet;
83 private static BitSet createPrimes() { in createPrimes()
85 BitSet bs = new BitSet(nbits); in createPrimes()
105 BitSet bs = createPrimes(); in getPrimes()
/libcore/benchmarks/src/benchmarks/regression/
DBitSetBenchmark.java21 import java.util.BitSet;
27 private BitSet bs;
31 bs = new BitSet(size); in setUp()
/libcore/ojluni/src/test/java/util/Map/
DCollisions.java31 import java.util.BitSet;
53 BitSet all = new BitSet(mapSize); in testIntegerIteration()
84 BitSet all = new BitSet(mapSize); in testStringIteration()
/libcore/ojluni/src/main/java/java/net/
DURLEncoder.java33 import java.util.BitSet;
77 static BitSet dontNeedEncoding;
119 dontNeedEncoding = new BitSet(256);
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java27 import java.util.BitSet;
98 BitSet iterationsWithConnections = new BitSet(numIterations); in testConcurrentServerSocketCloseReliablyThrows()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentSkipListSetTest.java36 import java.util.BitSet;
703 BitSet bs = new BitSet(setSize); in testRecursiveSubSets()
736 void populate(NavigableSet<Integer> set, int limit, BitSet bs) { in populate()
743 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { in mutateSet()
769 BitSet bs) { in mutateSubSet()
800 void put(NavigableSet<Integer> set, int element, BitSet bs) { in put()
805 void remove(NavigableSet<Integer> set, int element, BitSet bs) { in remove()
812 BitSet bs) { in bashSubSet()
894 final BitSet bs) { in check()
DTreeSetTest.java36 import java.util.BitSet;
690 BitSet bs;
700 bs = new BitSet(setSize); in testRecursiveSubSets()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSetTest.java10 import java.util.BitSet;
673 BitSet bs = new BitSet(setSize); in testRecursiveSubSets()
705 void populate(NavigableSet<Integer> set, int limit, BitSet bs) { in populate()
712 void mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) { in mutateSet()
738 BitSet bs) { in mutateSubSet()
769 void put(NavigableSet<Integer> set, int element, BitSet bs) { in put()
774 void remove(NavigableSet<Integer> set, int element, BitSet bs) { in remove()
781 BitSet bs) { in bashSubSet()
863 final BitSet bs) { in check()
DTreeSetTest.java10 import java.util.BitSet;
667 BitSet bs;
677 bs = new BitSet(setSize); in testRecursiveSubSets()
/libcore/ojluni/src/main/java/javax/security/cert/
DX509Certificate.java43 import java.util.BitSet;
/libcore/ojluni/src/main/java/sun/net/www/
DParseUtil.java28 import java.util.BitSet;
49 static BitSet encodedInPath;
52 encodedInPath = new BitSet(256);
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
DX509V1CertImpl.java40 import java.util.BitSet;
/libcore/ojluni/annotations/hiddenapi/sun/net/www/
DParseUtil.java342 static java.util.BitSet encodedInPath;

12