Searched refs:size (Results 1 - 25 of 667) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/nio/channels/
H A DFileLock.java64 * held, the type and validity of the lock, and the position and size of the
108 * whole multiple of the underlying hardware's page size. Some network
123 private final long size; field in class:FileLock
136 * @param size
137 * The size of the locked region; must be non-negative, and the sum
138 * <tt>position</tt>&nbsp;+&nbsp;<tt>size</tt> must be non-negative
148 long position, long size, boolean shared)
152 if (size < 0)
153 throw new IllegalArgumentException("Negative size");
154 if (position + size <
147 FileLock(FileChannel channel, long position, long size, boolean shared) argument
185 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared) argument
247 public final long size() { method in class:FileLock
272 overlaps(long position, long size) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DMemoryMappedFile.java38 private final int size; field in class:MemoryMappedFile
41 public MemoryMappedFile(long address, long size) { argument
44 if (size < 0 || size > Integer.MAX_VALUE) {
45 throw new IllegalArgumentException("Unsupported file size=" + size);
47 this.size = (int) size;
56 long size = Libcore.os.fstat(fd).st_size;
57 long address = Libcore.os.mmap(0L, size, PROT_REA
109 public int size() { method in class:MemoryMappedFile
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DAllocatedNativeObject.java39 * Allocates a memory area of at least <tt>size</tt> bytes outside of the
42 * @param size
52 AllocatedNativeObject(int size, boolean pageAligned) { argument
53 super(size, pageAligned);
H A DFileDispatcher.java41 abstract int truncate(FileDescriptor fd, long size) throws IOException; argument
43 abstract long size(FileDescriptor fd) throws IOException; method in class:FileDispatcher
45 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, argument
48 abstract void release(FileDescriptor fd, long pos, long size) argument
H A DIOVecWrapper.java55 private final int size; field in class:IOVecWrapper
68 // Address size in bytes
85 private IOVecWrapper(int size) { argument
86 this.size = size;
87 this.buf = new ByteBuffer[size];
88 this.position = new int[size];
89 this.remaining = new int[size];
90 this.shadow = new ByteBuffer[size];
91 this.vecArray = new AllocatedNativeObject(size * SIZE_IOVE
95 get(int size) argument
[all...]
H A DFileLockImpl.java36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) argument
38 super(channel, position, size, shared);
41 FileLockImpl(AsynchronousFileChannel channel, long position, long size, boolean shared) argument
43 super(channel, position, size, shared);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DNativeBuffer.java39 private final int size; field in class:NativeBuffer
56 NativeBuffer(int size) { argument
57 this.address = unsafe.allocateMemory(size);
58 this.size = size;
70 int size() { method in class:NativeBuffer
71 return size;
H A DNativeBuffers.java44 * Allocates a native buffer, of at least the given size, from the heap.
46 static NativeBuffer allocNativeBuffer(int size) { argument
48 if (size < 2048) size = 2048;
49 return new NativeBuffer(size);
53 * Returns a native buffer, of at least the given size, from the thread
56 static NativeBuffer getNativeBufferFromCache(int size) { argument
62 if (buffer != null && buffer.size() >= size) {
72 * Returns a native buffer, of at least the given size
76 getNativeBuffer(int size) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DCharacterIteratorFieldDelegate.java39 * for a region > size, a new instance of AttributedString is added to
49 private int size; field in class:CharacterIteratorFieldDelegate
59 if (start < size) {
61 int index = size;
62 int asIndex = attributedStrings.size() - 1;
76 if (size < start) {
79 buffer.substring(size, start)));
80 size = start;
82 if (size < end) {
84 int aStart = Math.max(start, size);
[all...]
/libcore/ojluni/src/main/native/
H A DBits.c42 * size = MBYTE;
44 * size = length;
48 * size = (length > MBYTE ? MBYTE : length);
80 size_t size; local
89 size = MBYTE;
91 size = (size_t)length;
96 endShort = srcShort + (size / sizeof(jshort));
104 length -= size;
105 dstAddr += size;
106 srcPos += size;
115 size_t size; local
150 size_t size; local
185 size_t size; local
220 size_t size; local
255 size_t size; local
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DKeyUtil.java45 * Returns the key size of the given key object in bits.
48 * @return the key size of the given key object in bits, or -1 if the
49 * key size is not accessible
52 int size = -1;
57 size = ruler.length();
62 if (size >= 0) {
63 return size;
72 size = (sk.getEncoded().length * 8);
77 size = pubk.getModulus().bitLength();
81 // Was: size
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DNativeAllocationRegistry.java36 * native function used to free the allocation and the estimated size of the
45 private final long size; field in class:NativeAllocationRegistry
63 * The <code>size</code> should be an estimate of the total number of
72 * @param size estimated size in bytes of this kind of native
74 * @throws IllegalArgumentException If <code>size</code> is negative
76 public NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size) { argument
77 if (size < 0) {
78 throw new IllegalArgumentException("Invalid native allocation size: " + size);
225 registerNativeAllocation(long size) argument
229 registerNativeFree(long size) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DMethodLogger.java52 public int size() { method in class:MethodLogger
53 return methods.size();
68 return (size() == 0 ? null : getMethod(size() - 1));
84 return (size() == 0 ? null : getArgs(size() - 1));
/libcore/jsr166-tests/src/test/java/jsr166/
H A DThreadLocalRandom8Test.java78 long size = 0;
81 r.ints(size).parallel().forEach(x -> counter.increment());
82 assertEquals(size, counter.sum());
83 size += 524959;
93 long size = 0;
96 r.longs(size).parallel().forEach(x -> counter.increment());
97 assertEquals(size, counter.sum());
98 size += 524959;
108 long size = 0;
111 r.doubles(size)
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DStack.java82 int len = size();
99 int len = size();
113 return size() == 0;
134 return size() - i;
H A DArrayList.java37 * this class provides methods to manipulate the size of the array that is
41 * <p>The <tt>size</tt>, <tt>isEmpty</tt>, <tt>get</tt>, <tt>set</tt>,
49 * the size of the array used to store the elements in the list. It is always
50 * at least as large as the list size. As elements are added to an ArrayList,
151 * The size of the ArrayList (the number of elements it contains).
155 private int size; field in class:ArrayList
192 if ((size = elementData.length) != 0) {
195 elementData = Arrays.copyOf(elementData, size, Object[].class);
204 * list's current size. An application can use this operation to minimize
209 if (size < elementDat
291 public int size() { method in class:ArrayList
1012 subListRangeCheck(int fromIndex, int toIndex, int size) argument
1026 int size; field in class:ArrayList.SubList
1055 public int size() { method in class:ArrayList.SubList
[all...]
H A DAbstractSet.java71 * the same size, and every member of the given set is contained in
78 * specified object is a set whose size is identical to the size of
92 if (c.size() != size())
139 * and the specified collection, by invoking the <tt>size</tt>
172 if (size() > c.size()) {
/libcore/benchmarks/src/benchmarks/regression/
H A DBitSetBenchmark.java25 private int size; field in class:BitSetBenchmark
31 bs = new BitSet(size);
41 bs.set(bs.size() - 1);
49 bs.get(i % size);
55 bs.clear(i % size);
61 bs.set(i % size);
67 bs.set(i % size, true);
73 bs.set(i % size, false);
/libcore/luni/src/main/java/libcore/reflect/
H A DListOfTypes.java49 return types.size();
62 int size = unresolved.size();
63 if (size == 0) {
66 Type[] result = new Type[size];
67 for (int i = 0; i < size; i++) {
80 for (int i = 0; i < types.size(); i++) {
/libcore/luni/src/test/java/libcore/java/util/
H A DRandomTest.java59 final int size = 32;
62 int[] rands = new int[size];
63 for(int i = 0; i < size; ++i) {
67 int[] streamRands = new Random(0).ints(size).toArray();
69 assertEquals(size, new Random(0).ints(size).count());
97 final int size = 32;
101 int[] rands = new int[size];
102 for(int i = 0; i < size; ++i) {
106 int[] streamRands = new Random(0).ints(size, origi
[all...]
/libcore/luni/src/test/native/
H A Dlibcore_libcore_util_NativeAllocationRegistryTest.cpp39 jlong size) {
40 gNumNativeBytesAllocated += size;
42 // The actual allocation is a pointer to the pretend size of the allocation.
44 *ptr = static_cast<uint64_t>(size);
37 Java_libcore_libcore_util_NativeAllocationRegistryTest_doNativeAllocation(JNIEnv*, jclass, jlong size) argument
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DBasicFileAttributes.java119 * Returns the size of the file (in bytes). The size may differ from the
120 * actual size on the file system due to compression, support for sparse
121 * files, or other reasons. The size of files that are not {@link
125 * @return the file size, in bytes
127 long size(); method in interface:BasicFileAttributes
/libcore/ojluni/src/main/java/java/security/
H A DAlgorithmParameterGeneratorSpi.java42 * For example, the Sun provider uses a default modulus prime size of 1024
58 * Initializes this parameter generator for a certain size
61 * @param size the size (number of bits).
64 protected abstract void engineInit(int size, SecureRandom random); argument
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLSessionContext.java119 * Sets the size of the cache used for storing
123 * @param size the new session cache size limit; zero means there is no
125 * @exception IllegalArgumentException if the specified size is {@code < 0}.
128 public void setSessionCacheSize(int size) argument
132 * Returns the size of the cache used for storing
136 * @return size of the session cache; zero means there is no size limit.
/libcore/support/src/test/java/tests/support/
H A DSupport_MapTest2.java39 assertEquals("size should be one", 1, map.size());
41 assertEquals("size should be zero", 0, map.size());
53 assertEquals("size should be one", 1, map.size());
55 assertEquals("size should be zero", 0, map.size());

Completed in 472 milliseconds

1234567891011>>