Searched refs:size (Results 76 - 100 of 628) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/util/stream/
H A DNode.java44 * <em>internal</em> node. The size of an internal node is the sum of sizes of
125 long size = to - from;
126 Node.Builder<T> nodeBuilder = Nodes.builder(size, generator);
127 nodeBuilder.begin(size);
129 for (int i = 0; (i < size) && spliterator.tryAdvance(nodeBuilder); i++) { }
144 * returns a new, empty array of that size and of the appropriate
268 long size = count();
269 if (size >= Nodes.MAX_ARRAY_SIZE)
359 long size = to - from;
361 Node.Builder.OfInt nodeBuilder = Nodes.intBuilder(size);
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DBitSetTest.java30 // Default size for a BitSet should be 64 elements;
31 assertEquals("Created BitSet of incorrect size", 64, bs.size());
38 // Default size for a BitSet should be 64 elements;
40 assertEquals("Created BitSet of incorrect size", 128, bs.size());
47 assertEquals("Failed to round BitSet element size", 128, bs.size());
98 bs.set(0, bs.size() - 1); // ensure all bits are 1's
99 bs.set(bs.size()
[all...]
H A DVectorTest.java64 assertEquals("Vector creation failed", 0, v.size());
75 assertEquals("Vector creation failed", 0, v.size());
105 assertEquals("Wrong size", 4, grow.size());
110 assertEquals("Wrong size", 1, emptyVector.size());
113 assertEquals("Wrong size", 3, emptyVector.size());
132 assertTrue("Vector is not correct size",
133 myVector.size()
1386 public synchronized int size() { method in class:VectorTest.MockVector
[all...]
H A DAbstractQueueTest.java37 private int size = 0; field in class:AbstractQueueTest.MockAbstractQueue
47 return size > 0 && currentIndex < size;
62 for (int i = currentIndex; i < size - 1; i++) {
65 size--;
70 public int size() { method in class:AbstractQueueTest.MockAbstractQueue
71 return size;
79 if (size >= CAPACITY) {
83 elements[size++] = o;
92 for (int i = 0; i < size
[all...]
H A DIdentityHashMap2Test.java42 public int size() { method in class:IdentityHashMap2Test.MockMap
62 assertEquals("Created incorrect IdentityHashMap", 0, hm2.size());
71 assertEquals("Created incorrect IdentityHashMap", 0, hm2.size());
101 assertEquals("Size should be 0", 0, hm2.size());
119 assertEquals("Clear failed to reset size", 0, hm.size());
214 assertTrue("Returned set of incorrect size", hm.size() == s.size());
257 assertTrue("Returned set of incorrect size()",
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidTreeMapTest.java62 if (SPEW) System.out.println("tm.size() = " + tm.size());
63 if (SPEW) System.out.println("hm.size() = " + hm.size());
64 assertEquals(tm.size(), hm.size());
91 assertEquals(tm.size(), hm.size());
/libcore/ojluni/src/main/java/java/util/
H A DHashSet.java36 * (<tt>add</tt>, <tt>remove</tt>, <tt>contains</tt> and <tt>size</tt>),
39 * the <tt>HashSet</tt> instance's size (the number of elements) plus the
116 map = new HashMap<>(Math.max((int) (c.size()/.75f) + 1, 16));
178 public int size() { method in class:HashSet
179 return map.size();
266 * the size of the set (the number of elements it contains)
279 // Write out size
280 s.writeInt(map.size());
303 // Read in size
304 int size
[all...]
H A DLinkedList.java87 transient int size = 0; field in class:LinkedList
133 size++;
148 size++;
164 size++;
182 size--;
201 size--;
230 size--;
325 public int size() { method in class:LinkedList
326 return size;
387 return addAll(size,
[all...]
H A DObservable.java156 arrLocal = observers.toArray(new Observer[observers.size()]);
213 return observers.size();
H A DIdentityHashMap.java70 * semantics): <i>expected maximum size</i>. This parameter is the maximum
74 * maximum size and the number of buckets is unspecified.
76 * <p>If the size of the map (the number of key-value mappings) sufficiently
77 * exceeds the expected maximum size, the number of buckets is increased
80 * maximum size. On the other hand, iteration over collection views requires
82 * pays not to set the expected maximum size too high if you are especially
146 * (specified) expected maximum size of 21, given a load factor
154 * to an expected maximum size of 2, given a load factor of 2/3.
176 private int size; field in class:IdentityHashMap
184 * The next size valu
287 public int size() { method in class:IdentityHashMap
983 public int size() { method in class:IdentityHashMap.KeySet
1088 public int size() { method in class:IdentityHashMap.Values
1204 public int size() { method in class:IdentityHashMap.EntrySet
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DAbstractExecutorService.java123 int ntasks = tasks.size();
208 ArrayList<Future<T>> futures = new ArrayList<>(tasks.size());
215 for (int i = 0, size = futures.size(); i < size; i++) {
237 ArrayList<Future<T>> futures = new ArrayList<>(tasks.size());
243 final int size = futures.size();
247 for (int i = 0; i < size; i++) {
253 for (; j < size;
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DExplodeOpTest.java74 assertEquals(data.size(), result.size());
77 assertEquals(0, result.size());
80 assertEquals(0, result.size());
92 assertEquals(data.size(), result.size());
96 assertEquals(0, result.size());
107 assertEquals(data.size(), result.size());
111 assertEquals(0, result.size());
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest.java61 // size
62 assertTrue("Size should return 100, returned: " + map.size(), map.size() == 100);
87 assertEquals(100, referenceEntrySet.size());
88 assertEquals(100, entrySet.size());
126 // size
127 assertEquals("Returned wrong size.", 100, keySet.size());
136 assertEquals(set1.size(), set1TypedArray1.length);
153 assertEquals(set1.size(), entryCoun
188 createArray(Class<?> elementType, int size) argument
[all...]
H A DSupport_ASimpleWriter.java20 public int size; field in class:Support_ASimpleWriter
37 size = bufferSize;
66 pos = size;
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValue.java45 int size = Math.min(data.length, other.data.length);
46 for (int i = 0; i < size; i++) {
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DX509CRLSelectorTest.java45 assertEquals(1, issuers.size());
47 assertEquals(0, issuers.size());
/libcore/jsr166-tests/src/test/java/jsr166/
H A DCollectionTest.java40 assertEquals(0, impl.emptyCollection().size());
H A DConcurrentHashMapTest.java48 assertEquals(5, map.size());
89 int common = Math.min(size(), other.size());
96 r = compare(size(), other.size());
123 int size = 500; // makes measured test run time -> 60ms
126 for (int i = 0; i < size; i++) {
129 for (int i = 0; i < size; i++) {
140 int size = 120; // makes measured test run time -> 60ms
143 for (int i = 0; i < size;
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributeListImpl.java202 return names.size();
215 if (i < 0 || i >= names.size()) {
233 if (i < 0 || i >= types.size()) {
249 if (i < 0 || i >= values.size()) {
/libcore/luni/src/test/java/libcore/java/io/
H A DOldAndroidByteArrayOutputStreamTest.java36 assertEquals(27, a.size());
/libcore/ojluni/src/main/java/java/security/
H A DAlgorithmParameterGenerator.java43 * generators share the concept of a "size" and a
44 * source of randomness. The measure of size is universally shared
47 * the <i>DSA</i> algorithm, "size" corresponds to the size
51 * derived from the specified size.<P>
58 * consist of the size of the prime modulus and the size of the
66 * default modulus prime size of 1024 bits for the generation of DSA
297 * Initializes this parameter generator for a certain size.
305 * @param size th
307 init(int size) argument
318 init(int size, SecureRandom random) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DGZIPOutputStream.java50 * Trailer size in bytes.
56 * Creates a new output stream with the specified buffer size.
59 * the 3-argument constructor GZIPOutputStream(out, size, false).
62 * @param size the output buffer size
64 * @exception IllegalArgumentException if size is <= 0
67 public GZIPOutputStream(OutputStream out, int size) throws IOException { argument
68 this(out, size, false);
72 * Creates a new output stream with the specified buffer size and
76 * @param size th
88 GZIPOutputStream(OutputStream out, int size, boolean syncFlush) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DProtocolList.java58 if ((protocols.size() == 1) &&
65 if (protocols.size() != 0) {
68 max = protocols.get(protocols.size() - 1);
141 protocolNames = new String[protocols.size()];
/libcore/ojluni/src/main/java/java/io/
H A DInputStream.java47 // MAX_SKIP_BUFFER_SIZE is used to determine the maximum buffer size to
219 int size = (int)Math.min(MAX_SKIP_BUFFER_SIZE, remaining);
220 byte[] skipBuffer = new byte[size];
222 nr = read(skipBuffer, 0, (int)Math.min(size, remaining));
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileChannelImpl.java52 // Memory allocation size for mapping buffers
76 // Lock for operations involving position and size
121 nd.release(fd, fl.position(), fl.size());
273 p = (append) ? nd.size(fd) : position0(fd, -1);
309 public long size() throws IOException { method in class:FileChannelImpl
320 s = nd.size(fd);
331 public FileChannel truncate(long size) throws IOException { argument
333 if (size < 0)
337 //if (size > size())
786 private final long size; field in class:FileChannelImpl.Unmapper
790 Unmapper(long address, long size, int cap, FileDescriptor fd) argument
839 map(MapMode mode, long position, long size) argument
1006 lock(long position, long size, boolean shared) argument
1051 tryLock(long position, long size, boolean shared) argument
1115 checkList(long position, long size) argument
[all...]

Completed in 675 milliseconds

1234567891011>>