Searched refs:size (Results 51 - 75 of 667) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/util/stream/
H A DSliceOps.java43 * Calculates the sliced size given the current size, number of elements
46 * @param size the current size
50 * @return the sliced size
52 private static long calcSize(long size, long skip, long limit) { argument
53 return size >= 0 ? Math.max(-1, Math.min(size - skip, limit)) : -1;
101 return size -> (T[]) new Object[size];
568 SliceTask(AbstractPipeline<P_OUT, P_OUT, ?> op, PipelineHelper<P_OUT> helper, Spliterator<P_IN> spliterator, IntFunction<P_OUT[]> generator, long offset, long size) argument
[all...]
H A DNodes.java59 * The maximum size of an array that can be allocated.
64 static final String BAD_SIZE = "Stream size exceeds max array size";
101 * <p>The result may be a concatenated node, the input sole node if the size
159 * @param exactSizeIfKnown -1 if a variable size builder is requested,
173 * Produces a variable size @{link Node.Builder}.
199 * @param exactSizeIfKnown -1 if a variable size builder is requested,
211 * Produces a variable size @{link Node.Builder.OfInt}.
236 * @param exactSizeIfKnown -1 if a variable size builder is requested,
248 * Produces a variable size
643 ArrayNode(long size, IntFunction<T[]> generator) argument
748 private final long size; field in class:Nodes.AbstractConcNode
1198 FixedNodeBuilder(long size, IntFunction<T[]> generator) argument
1212 begin(long size) argument
1267 begin(long size) argument
1316 IntArrayNode(long size) argument
1372 LongArrayNode(long size) argument
1426 DoubleArrayNode(long size) argument
1480 IntFixedNodeBuilder(long size) argument
1496 begin(long size) argument
1534 LongFixedNodeBuilder(long size) argument
1550 begin(long size) argument
1588 DoubleFixedNodeBuilder(long size) argument
1604 begin(long size) argument
1659 begin(long size) argument
1719 begin(long size) argument
1779 begin(long size) argument
1882 makeChild(Spliterator<P_IN> spliterator, long offset, long size) argument
1885 begin(long size) argument
1913 makeChild(Spliterator<P_IN> spliterator, long offset, long size) argument
1945 makeChild(Spliterator<P_IN> spliterator, long offset, long size) argument
1977 makeChild(Spliterator<P_IN> spliterator, long offset, long size) argument
2009 makeChild(Spliterator<P_IN> spliterator, long offset, long size) argument
[all...]
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/ojluni/src/main/java/sun/nio/fs/
H A DLinuxUserDefinedFileAttributeView.java65 private List<String> asList(long address, int size) { argument
69 while (pos < size) {
108 int size = 1024;
109 buffer = NativeBuffers.getNativeBuffer(size);
112 int n = flistxattr(fd, buffer.address(), size);
117 if (x.errno() == ERANGE && size < 32*1024) {
119 size *= 2;
121 buffer = NativeBuffers.getNativeBuffer(size);
137 public int size(String name) throws IOException { method in class:LinuxUserDefinedFileAttributeView
143 // fgetxattr returns size i
[all...]
H A DAbstractUserDefinedFileAttributeView.java95 int size = size(name);
96 byte[] buf = new byte[size];
98 byte[] value = (n == size) ? buf : Arrays.copyOf(buf, n);
/libcore/dom/src/test/java/org/w3c/domts/
H A DJUnitTestCaseAdapter.java235 assertEquals(assertID, expectedSize, collection.size());
245 int size = expected.size();
248 assertEquals(assertID,size, actual.size());
249 boolean equals = (expected != null && actual != null && size == actual.size());
273 int size = expected.size();
276 assertEquals(assertID,size, actua
478 public int size(Collection collection) { method in class:JUnitTestCaseAdapter
482 public int size(NamedNodeMap collection) { method in class:JUnitTestCaseAdapter
486 public int size(NodeList collection) { method in class:JUnitTestCaseAdapter
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTreeMapTest.java128 assertTrue("Map is incorrect size", myTreeMap.size() == objArray.length);
160 assertEquals("Cleared map returned non-zero size", 0, tm.size());
246 assertTrue("EntrySet is incorrect size",
247 anEntrySet.size() == objArray.length);
281 assertEquals(2, tm.values().size());
282 assertEquals(2, tm.keySet().size());
295 assertEquals("Returned map of incorrect size", 3, head.size());
[all...]
H A DLinkedListTest.java117 ll.add(ll.size() + 1, "Test");
124 ll.add(ll.size() + 1, null);
140 assertNull("Did not add null correctly", ll.get(ll.size() - 1));
150 assertEquals("Returned incorrect size after adding to existing list", 200, ll
151 .size());
183 ll.addAll(ll.size() + 1, (Collection) null);
218 for (int i = 0; i < ll.size(); i++)
223 .size());
256 assertEquals(1, linkedList.size());
258 assertEquals(2, linkedList.size());
[all...]
H A DConcurrentModTest.java45 assertEquals(2, sub.size());
68 al.get(al.size()+1);
89 assertEquals(2, sub.size());
119 assertEquals(2, sub.size());
149 assertEquals(2, sub.size());
172 sub.remove(sub.size() + 1);
187 public int size() {
215 assertEquals(2, sub.size());
243 public int size() {
267 public int size() {
[all...]
H A DAbstractSequentialListTest.java51 public int size() { method in class:AbstractSequentialListTest.ASLT
52 return l.size();
149 public int size() {
182 public int size() {
233 public int size() {
253 public int size() {
306 public int size() {
355 asl.get(asl.size() + 1);
373 public int size() {
388 public int size() {
[all...]
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...]
/libcore/luni/src/main/java/libcore/reflect/
H A DListOfVariables.java30 TypeVariable<?>[] a = new TypeVariable[array.size()];
/libcore/ojluni/src/main/java/java/util/
H A DDictionary.java63 abstract public int size(); method in class:Dictionary
H A DEnumMap.java104 private transient int size = 0; field in class:EnumMap
153 size = m.size;
174 size = em.size;
192 public int size() { method in class:EnumMap
193 return size;
273 size++;
293 size--;
303 size
394 public int size() { method in class:EnumMap.KeySet
433 public int size() { method in class:EnumMap.Values
490 public int size() { method in class:EnumMap.EntrySet
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DGeneralSubtrees.java108 public int size() { method in class:GeneralSubtrees
109 return trees.size();
140 for (int i = 0, n = size(); i < n; i++) {
194 for (int i = 0; i < (size() - 1); i++) {
199 for (int j = i + 1; j < size(); j++) {
331 if (size() == 0) {
350 for (int i = 0; i < size(); i++) {
360 for (int j = 0; j < other.size(); j++) {
396 for (int j = 0; j < size(); j++) {
400 for (int k = 0; k < other.size();
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_OutputStream.java8 * byte array of fixed size. As a special feature, instances of this class can
21 private int size; field in class:Support_OutputStream
37 size = bufferSize;
85 if (position < size) {
103 public int size() { method in class:Support_OutputStream
/libcore/ojluni/src/main/java/sun/net/ftp/
H A DFtpDirEntry.java33 * parsing the output. It will typically contain the name, type, size, last modification
59 private long size = -1; field in class:FtpDirEntry
137 * Returns the size of the remote file as it was returned by the FTP
140 * @return the size of the file or -1 if that information is not available.
143 return size;
147 * Sets the size of that file. Intended mostly to be used from inside an
150 * @param size The size, in bytes, of that file. or -1 if unknown.
153 public FtpDirEntry setSize(long size) { argument
154 this.size
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileDispatcherImpl.java98 int truncate(FileDescriptor fd, long size) throws IOException { argument
101 return truncate0(fd, size);
104 long size(FileDescriptor fd) throws IOException { method in class:FileDispatcherImpl
110 int lock(FileDescriptor fd, boolean blocking, long pos, long size, argument
115 return lock0(fd, blocking, pos, size, shared);
118 void release(FileDescriptor fd, long pos, long size) throws IOException { argument
121 release0(fd, pos, size);
169 static native int truncate0(FileDescriptor fd, long size) argument
175 long size, boolean shared) throws IOException;
177 static native void release0(FileDescriptor fd, long pos, long size) argument
174 lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DByteBufferBulkBenchmark.java46 int size = aligned ? bsize : bsize + 8 + 1;
50 result = ByteBuffer.allocateDirect(size);
53 result = ByteBuffer.allocate(size);
60 raf.setLength(size);
62 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
/libcore/ojluni/src/main/java/java/io/
H A DByteArrayOutputStream.java59 * initially 32 bytes, though its size increases if necessary.
67 * the specified size, in bytes.
69 * @param size the initial size.
70 * @exception IllegalArgumentException if size is negative.
72 public ByteArrayOutputStream(int size) { argument
73 if (size < 0) {
74 throw new IllegalArgumentException("Negative initial size: "
75 + size);
77 buf = new byte[size];
201 public synchronized int size() { method in class:ByteArrayOutputStream
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DFilterOpTest.java69 assertEquals(result.size(), data.size());
72 assertEquals(result.size(), 0);
78 assertEquals(result.size(), 0);
81 assertEquals(result.size(), data.size());
87 assertEquals(result.size(), data.size());
90 assertEquals(result.size(), 0);
99 assertEquals(result.size(), dat
[all...]
H A DIntSliceOpTest.java127 int size = Math.max(0, dataSize - skip);
129 size = Math.min(size, limit);
130 return size;
139 List<Integer> skips = sizes(data.size());
144 assertEquals(sr.size(), sliceSize(data.size(), s));
147 assertEquals(sr.size(), sliceSize(sliceSize(data.size(), s), s / 2));
153 List<Integer> skips = sizes(data.size());
212 sizes(int size) argument
[all...]
/libcore/luni/src/test/java/libcore/libcore/util/
H A DNativeAllocationRegistryTest.java52 int size = 1024*1024;
53 int expectedMaxNumAllocations = (int)(max-total)/size;
57 final int nativeSize = size/2;
58 int javaSize = size/2;
122 long size = 1234;
124 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), size);
125 long nativePtr = doNativeAllocation(size);
133 assertEquals(numBytesAllocatedBeforeClean - size, numBytesAllocatedAfterClean);
197 private static native long doNativeAllocation(long size); argument
/libcore/ojluni/src/main/java/java/beans/
H A DChangeListenerMap.java82 int size = (array != null)
86 L[] clone = newArray(size + 1);
87 clone[size] = listener;
89 System.arraycopy(array, 0, clone, 0, size);
108 int size = array.length - 1;
109 if (size > 0) {
110 L[] clone = newArray(size);
112 System.arraycopy(array, i + 1, clone, i, size - i);
186 return list.toArray(newArray(list.size()));
/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());

Completed in 1431 milliseconds

1234567891011>>