Home
last modified time | relevance | path

Searched refs:si (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DOldSequenceInputStreamTest.java29 SequenceInputStream si; field in OldSequenceInputStreamTest
34 assertEquals("Returned incorrect number of bytes!", s1.length(), si.available()); in test_available()
37 si.available() == s1.length()); in test_available()
40 si.available(); in test_available()
50 si.close(); in test_close2()
58 si.read(); in test_read()
60 s1.charAt(1), (char) si.read()); in test_read()
66 s1.charAt(2), (char) si.read()); in test_read()
73 si.read(); in test_read()
81 si.read(); in test_read()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSequenceInputStreamTest.java29 SequenceInputStream si; field in SequenceInputStreamTest
51 si = new SequenceInputStream(null, null); in test_Constructor_LInputStreamLInputStream_Null()
59 si = new SequenceInputStream(is, null); in test_Constructor_LInputStreamLInputStream_Null()
88 si = new SequenceInputStream(new StreamEnumerator()); in test_ConstructorLjava_util_Enumeration()
90 si.read(buf, 0, s1.length()); in test_ConstructorLjava_util_Enumeration()
91 si.read(buf, s1.length(), s2.length()); in test_ConstructorLjava_util_Enumeration()
107 assertTrue("Returned incorrect number of bytes: " + si.available(), in test_available()
108 si.available() == s1.length()); in test_available()
118 si.close(); in test_close()
120 si.close(); in test_close()
[all …]
/libcore/ojluni/src/main/java/java/net/
DServerSocket.java536 SocketImpl si = null; in implAccept() local
543 si = s.impl; in implAccept()
545 si.address = new InetAddress(); in implAccept()
546 si.fd = new FileDescriptor(); in implAccept()
547 getImpl().accept(si); in implAccept()
551 security.checkAccept(si.getInetAddress().getHostAddress(), in implAccept()
552 si.getPort()); in implAccept()
555 if (si != null) in implAccept()
556 si.reset(); in implAccept()
557 s.impl = si; in implAccept()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DPackage.java237 int [] si = new int[sa.length]; in isCompatibleWith() local
239 si[i] = Integer.parseInt(sa[i]); in isCompatibleWith()
240 if (si[i] < 0) in isCompatibleWith()
241 throw NumberFormatException.forInputString("" + si[i]); in isCompatibleWith()
252 int len = Math.max(di.length, si.length); in isCompatibleWith()
255 int s = (i < si.length ? si[i] : 0); in isCompatibleWith()
/libcore/ojluni/src/main/java/java/util/
DIdentityHashMap.java1025 for (int si = 0; si < tab.length; si += 2) { in toArray()
1027 if ((key = tab[si]) != null) { // key present ? in toArray()
1113 for (int si = 0; si < tab.length; si += 2) { in toArray()
1114 if (tab[si] != null) { // key present ? in toArray()
1119 a[ti++] = (T) tab[si+1]; // copy value in toArray()
1235 for (int si = 0; si < tab.length; si += 2) { in toArray()
1237 if ((key = tab[si]) != null) { // key present ? in toArray()
1242 a[ti++] = (T) new AbstractMap.SimpleEntry<>(unmaskNull(key), tab[si + 1]); in toArray()
DCollections.java611 ListIterator<? extends T> si=src.listIterator(); in copy() local
614 di.set(si.next()); in copy()
959 ListIterator<?> si = source.listIterator(); in indexOfSubList() local
964 if (!eq(ti.next(), si.next())) { in indexOfSubList()
967 si.previous(); in indexOfSubList()
1014 ListIterator<?> si = source.listIterator(maxCandidate); in lastIndexOfSubList()
1019 if (!eq(ti.next(), si.next())) { in lastIndexOfSubList()
1023 si.previous(); in lastIndexOfSubList()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketImplFactoryTest.java55 SocketImpl si = factory.createSocketImpl(); in test_createSocketImpl() local
57 assertNull(si.getOption(0)); in test_createSocketImpl()
/libcore/luni/src/test/java/libcore/java/util/
DOldCollectionsTest.java870 Set<Integer> si = Collections.emptySet(); in test_emptySet() local
872 assertTrue(ss.equals(si)); in test_emptySet()
873 assertTrue(si.equals(Collections.EMPTY_SET)); in test_emptySet()