Searched refs:size (Results 126 - 150 of 628) sorted by relevance

1234567891011>>

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTreeSetTest.java64 assertTrue("TreeSet incorrect size",
65 myTreeSet.size() == objArray.length);
98 assertTrue("TreeSet is not correct size",
99 anotherTreeSet.size() == objArray.length);
117 assertTrue("Added existing element", ts.size() == objArray.length + 1);
129 assertTrue("Incorrect size after add", s.size() == ts.size());
142 assertEquals("Returned non-zero size after clear", 0, ts.size());
[all...]
H A DSortedMapTestBase.java162 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/libcore/util/
H A DCollectionUtils.java88 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 DOldObjectOutputStreamTest.java175 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 DCharArrayWriterTest.java32 assertEquals(27, a.size());
H A DOldAndroidDataOutputStreamTest.java37 assertEquals(27, aa.size());
H A DOldAndroidOutputStreamWriterTest.java39 assertEquals(5, aa.size());
/libcore/benchmarks/src/benchmarks/
H A DArrayListIterationBenchmark.java33 int len = list.size();
/libcore/include/
H A DLocalArray.h24 * A fixed-size array with a size hint. That number of bytes will be allocated
35 * Allocates a new fixed-size array of the given size. If this size is
58 size_t size() { return mSize; } function in class:LocalArray
/libcore/luni/src/main/java/java/nio/charset/
H A DModifiedUtf8.java35 * 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 DLeafNodeImpl.java46 if (parent == null || index + 1 >= parent.children.size()) {
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidArrayListTest.java31 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 DPushbackInputStream.java79 * with a pushback buffer of the specified <code>size</code>,
87 * @param size the size of the pushback buffer.
88 * @exception IllegalArgumentException if size is <= 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 DPushbackReader.java46 * 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 size is <= 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/security/
H A DUnresolvedPermissionCollection.java164 new Hashtable<>(perms.size()*2);
172 Vector<UnresolvedPermission> vec = new Vector<>(list.size());
202 perms = new HashMap<String, List<UnresolvedPermission>>(permissions.size()*2);
209 List<UnresolvedPermission> list = new ArrayList<>(vec.size());
/libcore/ojluni/src/main/java/java/util/
H A DLinkedHashSet.java63 * 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 DSet.java95 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 DZipFile.java225 if (size() == 0 || !entries.hasMoreElements()) {
375 // MORE: Compute good size for inflater stream:
376 long size = getEntrySize(jzentry) + 2; // Inflater likes a bit of slack
377 if (size > 65536) size = 8192;
378 if (size <= 0) size = 4096;
381 new ZipFileInflaterInputStream(in, inf, (int)size);
398 int size) {
399 super(zfin, inf, size);
397 ZipFileInflaterInputStream(ZipFileInputStream zfin, Inflater inf, int size) argument
570 public int size() { method in class:ZipFile
677 protected long size; // uncompressed size of this entry field in class:ZipFile.ZipFileInputStream
738 public long size() { method in class:ZipFile.ZipFileInputStream
[all...]
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DCipherSuiteList.java162 int size() { method in class:CipherSuiteList
163 return cipherSuites.size();
171 suiteNames = new String[cipherSuites.size()];
188 byte[] suiteBytes = new byte[cipherSuites.size() * 2];
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DUtil.java84 * size (or null if no suitable buffer is found).
86 ByteBuffer get(int size) { argument
94 if (buf.capacity() < size) {
101 if (bb.capacity() >= size) {
119 buf.limit(size);
160 * Returns a temporary buffer of at least the given size
162 static ByteBuffer getTemporaryDirectBuffer(int size) { argument
164 ByteBuffer buf = cache.get(size);
175 return ByteBuffer.allocateDirect(size);
301 public int size() { retur
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DPriorityBlockingQueueTest.java65 * 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 DTreeSubMapTest.java47 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 DLinkedTransferQueueTest.java61 * Constructor builds new queue with size being zero and empty
65 assertEquals(0, new LinkedTransferQueue().size());
118 assertEquals(q.size(), intList.size());
138 assertEquals(SIZE - i, q.size());
143 assertEquals(i, q.size());
197 assertEquals(i, q.size());
417 assertEquals(1, q.size());
452 assertEquals(SIZE - i, q.size());
466 assertEquals(SIZE - i, q.size());
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DPriorityBlockingQueue.java106 * The maximum size of array to allocate.
109 * OutOfMemoryError: Requested array size exceeds VM limit
126 private transient int size; field in class:PriorityBlockingQueue
245 this.size = n;
293 int n = size - 1;
306 size = n;
360 * @param n heap size
409 int n = size;
454 while ((n = size) >= (cap = (array = queue).length))
462 size
563 public int size() { method in class:PriorityBlockingQueue
[all...]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DSpinedBufferTest.java64 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...]

Completed in 717 milliseconds

1234567891011>>