/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 64 * 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> + <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 D | MemoryMappedFile.java | 38 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 D | AllocatedNativeObject.java | 39 * 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 D | FileDispatcher.java | 41 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 D | IOVecWrapper.java | 55 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 D | FileLockImpl.java | 36 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 D | NativeBuffer.java | 39 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 D | NativeBuffers.java | 44 * 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 D | CharacterIteratorFieldDelegate.java | 39 * 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 D | Bits.c | 42 * 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 D | KeyUtil.java | 45 * 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 D | NativeAllocationRegistry.java | 36 * 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 D | MethodLogger.java | 52 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 D | ThreadLocalRandom8Test.java | 78 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 D | Stack.java | 82 int len = size(); 99 int len = size(); 113 return size() == 0; 134 return size() - i;
|
H A D | ArrayList.java | 37 * 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 D | AbstractSet.java | 71 * 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 D | BitSetBenchmark.java | 25 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 D | ListOfTypes.java | 49 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 D | RandomTest.java | 59 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 D | libcore_libcore_util_NativeAllocationRegistryTest.cpp | 39 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 D | BasicFileAttributes.java | 119 * 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 D | AlgorithmParameterGeneratorSpi.java | 42 * 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 D | SSLSessionContext.java | 119 * 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 D | Support_MapTest2.java | 39 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());
|