/libcore/luni/src/main/java/libcore/util/ |
H A D | CollectionUtils.java | 88 for (int i = 1; i < list.size(); i++) { 94 if (j < list.size()) { 95 list.subList(j, list.size()).clear();
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectOutputStreamTest.java | 175 int outputSize = bao.size(); 179 bao.size() == outputSize); 183 bao.size() > outputSize); 196 int initialSize = target.size(); 201 written = (target.size() > initialSize); 205 written || (target.size() > initialSize)); 222 int size = bao.size(); 224 assertTrue("Test 1: Data already flushed.", bao.size() == size); [all...] |
H A D | CharArrayWriterTest.java | 32 assertEquals(27, a.size());
|
H A D | OldAndroidDataOutputStreamTest.java | 37 assertEquals(27, aa.size());
|
H A D | OldAndroidOutputStreamWriterTest.java | 39 assertEquals(5, aa.size());
|
/libcore/benchmarks/src/benchmarks/ |
H A D | ArrayListIterationBenchmark.java | 33 int len = list.size();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | SortedMapTestBase.java | 162 assertEquals(ref.size(), map.size()); 167 assertEquals(ref.values().size(), map.values().size()); 265 assertEquals("size should be one", 1, map.size()); 267 assertEquals("size should be zero", 0, map.size()); 272 assertEquals("size should be one", 1, map.size()); [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | ModifiedUtf8.java | 35 * the size cannot be presented in an (unsigned) java short. 93 * (as a big endian short. A UTFDataFormatException is thrown if the encoded size cannot be 100 long size = countBytes(s, true); 101 byte[] output = new byte[(int) size + 2]; 103 output[0] = (byte) (size >>> 8); 104 output[1] = (byte) size;
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | LeafNodeImpl.java | 46 if (parent == null || index + 1 >= parent.children.size()) {
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldAndroidArrayListTest.java | 31 assertEquals(0, array.size()); 40 assertEquals(5, array.size()); 59 assertEquals(3, array.size()); 74 assertEquals(0, array.size());
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | PushbackInputStream.java | 79 * with a pushback buffer of the specified <code>size</code>, 87 * @param size the size of the pushback buffer. 88 * @exception IllegalArgumentException if {@code size <= 0} 91 public PushbackInputStream(InputStream in, int size) { argument 93 if (size <= 0) { 94 throw new IllegalArgumentException("size <= 0"); 96 this.buf = new byte[size]; 97 this.pos = size;
|
H A D | PushbackReader.java | 46 * Creates a new pushback reader with a pushback buffer of the given size. 49 * @param size The size of the pushback buffer 50 * @exception IllegalArgumentException if {@code size <= 0} 52 public PushbackReader(Reader in, int size) { argument 54 if (size <= 0) { 55 throw new IllegalArgumentException("size <= 0"); 57 this.buf = new char[size]; 58 this.pos = size;
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
H A D | UserDefinedFileAttributeView.java | 47 * intended for use where the size of an attribute value is larger than {@link 99 * Returns the size of the value of a user-defined attribute. 104 * @return The size of the attribute value, in bytes. 107 * If the size of the attribute is larger than {@link Integer#MAX_VALUE} 117 int size(String name) throws IOException; method in interface:UserDefinedFileAttributeView 126 * is the size of the attribute value. The first byte in the sequence is at 138 * ByteBuffer buf = ByteBuffer.allocate(view.size(name)); 163 * @see #size 171 * a sequence of bytes. The size of the value to transfer is {@code r}, 186 * attribute name or value exceed an implementation specific maximum size [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | UnresolvedPermissionCollection.java | 164 new Hashtable<>(perms.size()*2); 172 Vector<UnresolvedPermission> vec = new Vector<>(list.size()); 206 perms = new HashMap<String, List<UnresolvedPermission>>(permissions.size()*2); 213 List<UnresolvedPermission> list = new ArrayList<>(vec.size());
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | LinkedHashSet.java | 63 * requires time proportional to the <i>size</i> of the set, regardless of 168 super(Math.max(2*c.size(), 11), .75f, true);
|
H A D | Set.java | 95 int size(); method in interface:Set 153 * specified array and the size of this set. 360 * have the same size, and every member of the specified set is
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipInputStream.java | 131 remaining = entry.size; 327 e.size = get32(tmpbuf, LOCLEN); 334 e.csize == ZIP64_MAGICVAL || e.size == ZIP64_MAGICVAL); 368 e.size = get64(tmpbuf, ZIP64_EXTLEN - ZIP64_EXTCRC); 374 e.size = get64(tmpbuf, ZIP64_EXTLEN); 382 e.size = get32(tmpbuf, EXTLEN - EXTCRC); 388 e.size = get32(tmpbuf, EXTLEN); 392 if (e.size != inf.getBytesWritten()) { 394 "invalid entry size (expected " + e.size [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | Util.java | 77 * size (or null if no suitable buffer is found). 79 ByteBuffer get(int size) { argument 87 if (buf.capacity() < size) { 94 if (bb.capacity() >= size) { 112 buf.limit(size); 153 * Returns a temporary buffer of at least the given size 155 public static ByteBuffer getTemporaryDirectBuffer(int size) { argument 157 ByteBuffer buf = cache.get(size); 168 return ByteBuffer.allocateDirect(size); 234 public int size() { retur [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | PriorityBlockingQueueTest.java | 65 * Returns a new queue of given size containing consecutive 78 assertEquals(n, q.size()); 184 assertEquals(SIZE - i, q.size()); 189 assertEquals(i, q.size()); 221 assertEquals(i, q.size()); 277 assertEquals(SIZE, q.size()); 285 final int size = 4; 288 for (int i = 0; i < size; i++) 293 assertEquals(size, q.size()); [all...] |
H A D | TreeSubMapTest.java | 47 assertEquals(7, map.size()); 69 assertEquals(5, map.size()); 85 assertEquals(0, map.size()); 162 assertEquals(5, s.size()); 192 assertEquals(5, s.size()); 206 assertEquals(5, s.size()); 226 assertEquals(5, empty.size()); 240 assertEquals(4, map.size()); 374 * size returns the correct values 379 assertEquals(0, empty.size()); [all...] |
H A D | LinkedTransferQueueTest.java | 62 * Constructor builds new queue with size being zero and empty 66 assertEquals(0, new LinkedTransferQueue().size()); 119 assertEquals(q.size(), intList.size()); 139 assertEquals(SIZE - i, q.size()); 144 assertEquals(i, q.size()); 198 assertEquals(i, q.size()); 418 assertEquals(1, q.size()); 453 assertEquals(SIZE - i, q.size()); 467 assertEquals(SIZE - i, q.size()); [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | PriorityBlockingQueue.java | 135 * The maximum size of array to allocate. 138 * OutOfMemoryError: Requested array size exceeds VM limit 155 private transient int size; field in class:PriorityBlockingQueue 274 this.size = n; 322 int n = size - 1; 335 size = n; 389 * @param n heap size 438 int n = size; 483 while ((n = size) >= (cap = (array = queue).length)) 491 size 592 public int size() { method in class:PriorityBlockingQueue [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | AbstractCookiesTest.java | 105 assertEquals(1, cookies.size()); 135 assertEquals(1, cookies.size()); 168 assertEquals(1, cookies.size()); 203 assertEquals(1, cookies.size()); 223 assertEquals(2, cookies.size()); 288 || (cookieHeaders.size() == 1 && cookieHeaders.get("Cookie").isEmpty())); 658 assertEquals(1, cookieStore.get(new URI("http://a.com:12345/path1")).size()); 659 assertEquals(1, cookieStore.get(new URI("http://a.com/path1")).size()); 671 assertEquals(1, cookieStore.get(new URI("http://a.com/path")).size()); 672 assertEquals(1, cookieStore.get(new URI("https://a.com/path")).size()); [all...] |
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | SpinedBufferTest.java | 64 for (int size : sizes) { 65 int[] array = IntStream.range(0, size).toArray(); 71 sb = new SpinedBuffer<>(size / 2); 75 sb = new SpinedBuffer<>(size); 79 sb = new SpinedBuffer<>(size * 2); 108 assertEquals(contentOfLastSplit.size(), lastSplitSize); 151 for (int size : sizes) { 152 int[] array = IntStream.range(0, size).toArray(); 183 assertEquals(contentOfLastSplit.size(), lastSplitSize); 226 for (int size [all...] |
/libcore/ojluni/src/main/native/ |
H A D | FileDispatcherImpl.c | 162 jobject fdo, jlong size) 165 ftruncate64(fdval(env, fdo), size), 180 uint64_t size; local 181 if (ioctl(fd, BLKGETSIZE64, &size) < 0) 183 return (jlong)size; 192 jboolean block, jlong pos, jlong size, 201 if (size == (jlong)java_lang_Long_MAX_VALUE) { 204 fl.l_len = (off64_t)size; 230 jobject fdo, jlong pos, jlong size) 238 if (size 161 FileDispatcherImpl_truncate0(JNIEnv *env, jobject this, jobject fdo, jlong size) argument 191 FileDispatcherImpl_lock0(JNIEnv *env, jobject this, jobject fdo, jboolean block, jlong pos, jlong size, jboolean shared) argument 229 FileDispatcherImpl_release0(JNIEnv *env, jobject this, jobject fdo, jlong pos, jlong size) argument [all...] |