Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java500 int sz = get16(extra, off + 2); in setExtra0() local
502 if (off + sz > len) // invalid data in setExtra0()
513 if (sz >= 16) { in setExtra0()
520 if (sz < 32) // reserved 4 bytes + tag 2 bytes + size 2 bytes in setExtra0()
536 if ((flag & 0x1) != 0 && (sz0 + 4) <= sz) { in setExtra0()
540 if ((flag & 0x2) != 0 && (sz0 + 4) <= sz) { in setExtra0()
544 if ((flag & 0x4) != 0 && (sz0 + 4) <= sz) { in setExtra0()
551 off += sz; in setExtra0()
DZipOutputStream.java658 int sz = get16(extra, off + 2); in getExtraLen() local
659 if (sz < 0 || (off + 4 + sz) > len) { in getExtraLen()
663 skipped += (sz + 4); in getExtraLen()
665 off += (sz + 4); in getExtraLen()
682 int sz = get16(extra, off + 2); in writeExtra() local
683 if (sz < 0 || (off + 4 + sz) > len) { in writeExtra()
688 writeBytes(extra, off, sz + 4); in writeExtra()
690 off += (sz + 4); in writeExtra()
/libcore/ojluni/src/main/java/java/io/
DBufferedWriter.java94 public BufferedWriter(Writer out, int sz) { in BufferedWriter() argument
96 if (sz <= 0) in BufferedWriter()
99 cb = new char[sz]; in BufferedWriter()
100 nChars = sz; in BufferedWriter()
DBufferedInputStream.java212 int sz = pos - markpos; in fill() local
213 System.arraycopy(buffer, markpos, buffer, 0, sz); in fill()
214 pos = sz; in fill()
DLineNumberReader.java85 public LineNumberReader(Reader in, int sz) { in LineNumberReader() argument
86 super(in, sz); in LineNumberReader()
DBufferedReader.java101 public BufferedReader(Reader in, int sz) { in BufferedReader() argument
103 if (sz <= 0) in BufferedReader()
106 cb = new char[sz]; in BufferedReader()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedHashMapTest.java523 int sz = 100; in test_ordered_entrySet() local
525 for (i = 0; i < sz; i++) { in test_ordered_entrySet()
540 for (i = 0; i < sz; i++) { in test_ordered_entrySet()
549 for (i = 0; i < sz && it3.hasNext(); i++) { in test_ordered_entrySet()
557 for (i = 0; i < sz; i += 2) { in test_ordered_entrySet()
567 for (i = 1; i < sz && it2.hasNext(); i += 2) { in test_ordered_entrySet()
572 for (i = 0; i < sz && it2.hasNext(); i += 2) { in test_ordered_entrySet()
585 int sz = 100; in test_ordered_keySet() local
587 for (i = 0; i < sz; i++) { in test_ordered_keySet()
601 for (i = 0; i < sz; i++) { in test_ordered_keySet()
[all …]
/libcore/ojluni/src/test/java/nio/channels/Channels/
DTinyBuffers.java42 private static void test(int sz) throws Exception { in test() argument
45 Reader r = Channels.newReader(ch, cs.newDecoder(), sz); in test()
/libcore/ojluni/src/main/java/java/lang/
DThreadLocal.java505 int sz = ++size; in set() local
506 if (!cleanSomeSlots(i, sz) && sz >= threshold) in set()
/libcore/ojluni/src/main/native/
Dzip_util.c1161 jint sz = SH(extra, off + 2); in newEntry() local
1166 if (sz < 8 || (off + 8) > elen) in newEntry()
1169 sz -= 8; in newEntry()
1173 if (sz < 8 || (off + 8) > elen) in newEntry()
1176 sz -= 8; in newEntry()
1180 if (sz < 8 || (off + 8) > elen) in newEntry()
1183 sz -= 8; in newEntry()
1188 off += (sz + 4); in newEntry()
/libcore/ojluni/src/main/java/java/util/concurrent/
DPriorityBlockingQueue.java925 int sz = q.size(); in readObject() local
926 SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, sz); in readObject()
927 this.queue = new Object[Math.max(1, sz)]; in readObject()
DConcurrentHashMap.java4463 long sz = map.mappingCount(); in toArray() local
4464 if (sz > MAX_ARRAY_SIZE) in toArray()
4466 int n = (int)sz; in toArray()
4486 long sz = map.mappingCount(); in toArray() local
4487 if (sz > MAX_ARRAY_SIZE) in toArray()
4489 int m = (int)sz; in toArray()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileChannelImpl.java649 long sz = size(); in transferTo() local
650 if (position > sz) in transferTo()
653 if ((sz - position) < icount) in transferTo()
654 icount = (int)(sz - position); in transferTo()