Searched refs:bs (Results 1 - 23 of 23) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DBitSetTest.java29 BitSet bs = new BitSet();
31 assertEquals("Created BitSet of incorrect size", 64, bs.size());
32 assertEquals("New BitSet had invalid string representation", "{}", bs
37 BitSet bs = new BitSet(128);
40 assertEquals("Created BitSet of incorrect size", 128, bs.size());
42 + bs.toString(), "{}", bs.toString());
46 bs = new BitSet(89);
47 assertEquals("Failed to round BitSet element size", 128, bs.size());
50 bs
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DBitSetBenchmark.java27 private BitSet bs; field in class:BitSetBenchmark
31 bs = new BitSet(size);
36 if (!bs.isEmpty()) throw new RuntimeException();
41 bs.set(bs.size() - 1);
43 if (bs.isEmpty()) throw new RuntimeException();
49 bs.get(i % size);
55 bs.clear(i % size);
61 bs.set(i % size);
67 bs
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DBitSetTest.java28 BitSet bs = new BitSet();
29 assertEquals("{}", bs.toString());
30 bs.set(2);
31 assertEquals("{2}", bs.toString());
32 bs.set(4);
33 bs.set(10);
34 assertEquals("{2, 4, 10}", bs.toString());
37 private static void assertBitSet(BitSet bs, long[] longs, String s) { argument
39 assertEquals(bs.toString(), ((longs[i / 64] & (1L << (i % 64))) != 0), bs
81 assertBitSet(BitSet bs, byte[] bytes, String s) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DChannelInputStream.java79 private byte[] bs = null; // Invoker's previous array field in class:ChannelInputStream
95 public synchronized int read(byte[] bs, int off, int len) argument
98 if ((off < 0) || (off > bs.length) || (len < 0) ||
99 ((off + len) > bs.length) || ((off + len) < 0)) {
104 ByteBuffer bb = ((this.bs == bs)
106 : ByteBuffer.wrap(bs));
110 this.bs = bs;
H A DUtil.java288 static ByteBuffer[] subsequence(ByteBuffer[] bs, int offset, int length) { argument
289 if ((offset == 0) && (length == bs.length))
290 return bs;
294 bs2[i] = bs[offset + i];
/libcore/jsr166-tests/src/test/java/jsr166/
H A DConcurrentSkipListSetTest.java673 BitSet bs = new BitSet(setSize);
675 populate(set, setSize, bs);
676 check(set, 0, setSize - 1, true, bs);
677 check(set.descendingSet(), 0, setSize - 1, false, bs);
679 mutateSet(set, 0, setSize - 1, bs);
680 check(set, 0, setSize - 1, true, bs);
681 check(set.descendingSet(), 0, setSize - 1, false, bs);
684 0, setSize - 1, true, bs);
705 void populate(NavigableSet<Integer> set, int limit, BitSet bs) { argument
708 put(set, element, bs);
712 mutateSet(NavigableSet<Integer> set, int min, int max, BitSet bs) argument
737 mutateSubSet(NavigableSet<Integer> set, int min, int max, BitSet bs) argument
769 put(NavigableSet<Integer> set, int element, BitSet bs) argument
774 remove(NavigableSet<Integer> set, int element, BitSet bs) argument
779 bashSubSet(NavigableSet<Integer> set, int min, int max, boolean ascending, BitSet bs) argument
861 check(NavigableSet<Integer> set, final int min, final int max, final boolean ascending, final BitSet bs) argument
[all...]
H A DTreeSetTest.java667 BitSet bs; field in class:TreeSetTest
677 bs = new BitSet(setSize);
728 bs.clear(it.next());
753 bs.clear(it.next());
774 bs.set(element);
779 bs.clear(element);
899 if (bs.get(element))
910 int result = bs.nextSetBit(element);
930 boolean bsContainsI = bs.get(i);
941 assertTrue(bs
[all...]
H A DConcurrentSkipListMapTest.java980 BitSet bs; field in class:ConcurrentSkipListMapTest
989 bs = new BitSet(mapSize);
1030 bs.clear(it.next());
1055 bs.clear(it.next());
1076 bs.set(key);
1081 bs.clear(key);
1197 if (bs.get(key))
1208 int result = bs.nextSetBit(key);
1228 boolean bsContainsI = bs.get(i);
1239 assertTrue(bs
[all...]
H A DTreeMapTest.java785 BitSet bs; field in class:TreeMapTest
794 bs = new BitSet(mapSize);
835 bs.clear(it.next());
860 bs.clear(it.next());
881 bs.set(key);
886 bs.clear(key);
1002 if (bs.get(key))
1013 int result = bs.nextSetBit(key);
1033 boolean bsContainsI = bs.get(i);
1044 assertTrue(bs
[all...]
H A DConcurrentHashMapTest.java145 BS bs = new BS(String.valueOf(i));
147 LexicographicList<BS> bss = new LexicographicList<BS>(bs);
/libcore/ojluni/src/main/java/java/nio/channels/
H A DChannels.java149 private byte[] bs = null; // Invoker's previous array
159 public synchronized void write(byte[] bs, int off, int len)
162 if ((off < 0) || (off > bs.length) || (len < 0) ||
163 ((off + len) > bs.length) || ((off + len) < 0)) {
168 ByteBuffer bb = ((this.bs == bs)
170 : ByteBuffer.wrap(bs));
174 this.bs = bs;
/libcore/support/src/test/java/tests/security/
H A DAlgorithmParameterAsymmetricHelper.java49 byte[] bs = cipher.doFinal(plainData.getBytes());
52 byte[] decrypted = cipher.doFinal(bs);
H A DAlgorithmParameterSymmetricHelper.java63 byte[] bs = cipher.doFinal(plainData.getBytes());
66 byte[] decrypted = cipher.doFinal(bs);
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldZipFileTest.java32 ByteArrayOutputStream bs = new ByteArrayOutputStream();
36 bs.write(buf, 0, iRead);
38 return bs.toByteArray();
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DAdjacencyList.java213 BuildStep bs = new BuildStep(v, BuildStep.FOLLOW);
214 mStepList.add(bs);
215 success = buildList(theList, v.getIndex(), bs);
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
H A DX509V1CertImpl.java81 ByteArrayInputStream bs;
83 bs = new ByteArrayInputStream(certData);
85 getFactory().generateCertificate(bs);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldFileWriterTest.java120 byte[] bs = {
124 bytes[i] = bs[i / 8192];
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFileInputStreamTest.java468 byte[] bs = new byte[10];
469 r = fis.read(bs);
475 bs = new byte[10];
478 r = fis.read(bs);
H A DSerializationStressTest3.java1612 BitSet bs = new BitSet(64);
1613 bs.set(1);
1614 bs.set(10);
1615 bs.set(100);
1616 bs.set(1000);
1617 objToSave = bs;
1621 assertTrue(MSG_TEST_FAILED + objToSave, bs.equals(objLoaded));
H A DOutputStreamWriterTest.java426 byte[] bs = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H' };
428 bytes[i] = bs[i / 8192];
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DGroupByOpTest.java166 Set<V> bs = new HashSet<>(b.get(k));
167 if (!Objects.equals(as, bs)) {
/libcore/luni/src/test/java/libcore/java/net/
H A DInetAddressTest.java232 byte[] bs = new byte[16];
233 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarFileTest.java64 ByteArrayOutputStream bs = new ByteArrayOutputStream();
70 if (iRead > 0) bs.write(buf, 0, iRead);
72 return bs.toByteArray();

Completed in 561 milliseconds