/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 61 * held, the type and validity of the lock, and the position and size of the 105 * whole multiple of the underlying hardware's page size. Some network 120 private final long size; field in class:FileLock 133 * @param size 134 * The size of the locked region; must be non-negative, and the sum 135 * <tt>position</tt> + <tt>size</tt> must be non-negative 145 long position, long size, boolean shared) 149 if (size < 0) 150 throw new IllegalArgumentException("Negative size"); 151 if (position + size < 144 FileLock(FileChannel channel, long position, long size, boolean shared) argument 206 public final long size() { method in class:FileLock 226 overlaps(long position, long size) argument [all...] |
H A D | SeekableByteChannel.java | 39 * the current <i>size</i> of the entity to which the channel is connected. The 40 * size increases when bytes are written beyond its current size; the size 97 * <p> Setting the position to a value that is greater than the current size 98 * is legal but does not change the size of the entity. A later attempt to 121 * Returns the current size of entity to which this channel is connected. 123 * @return The current size, measured in bytes 130 long size() throws IOException; method in interface:SeekableByteChannel 134 * size 156 truncate(long size) argument [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 | 39 abstract int truncate(FileDescriptor fd, long size) throws IOException; argument 41 abstract long size(FileDescriptor fd) throws IOException; method in class:FileDispatcher 43 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, argument 46 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...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | MemoryMappedFile.java | 37 private final long size; field in class:MemoryMappedFile 42 public MemoryMappedFile(long address, long size) { argument 44 this.size = size; 52 long size = Libcore.os.fstat(fd).st_size; 53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); 55 return new MemoryMappedFile(address, size); 68 Libcore.os.munmap(address, size); 77 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); 84 return new NioBufferIterator(address, (int) size, ByteOrde 90 public long size() { method in class:MemoryMappedFile [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/net/www/http/ |
H A D | ChunkedOutputStream.java | 35 /* Default chunk size (including chunk header) if not specified */ 46 /* size of data (excluding footers and headers) already stored in buf */ 47 private int size; field in class:ChunkedOutputStream 57 /* the chunk size we use */ 64 /* return the size of the header for a particular chunk size */ 65 private static int getHeaderSize(int size) { argument 66 return (Integer.toHexString(size)).length() + CRLF_SIZE; 69 /* return a header for a particular chunk size */ 70 private static byte[] getHeader(int size){ argument 90 ChunkedOutputStream(PrintStream o, int size) argument 273 public int size() { method in class:ChunkedOutputStream [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); 218 registerNativeAllocation(long size) argument 222 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/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, 133 * The size of the ArrayList (the number of elements it contains). 137 private int size; field in class:ArrayList 172 size = elementData.length; 175 elementData = Arrays.copyOf(elementData, size, Object[].class); 180 * list's current size. An application can use this operation to minimize 185 if (size < elementDat 265 public int size() { method in class:ArrayList 983 subListRangeCheck(int fromIndex, int toIndex, int size) argument 997 int size; field in class:ArrayList.SubList 1026 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> 171 if (size() > c.size()) {
|
/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/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/native/ |
H A D | readlink.cpp | 29 ssize_t len = readlink(path, &buf[0], buf.size()); 34 if (static_cast<size_t>(len) < buf.size()) {
|
H A D | canonicalize_path.cpp | 78 if (resolved.size() > 1) { 85 if (resolved[resolved.size() - 1] != '/') { 105 } else if (resolved.size() > 1) { 112 const char* maybeSlash = (symlink[symlink.size() - 1] != '/') ? "/" : ""; 121 if (resolved.size() > 1 && resolved[resolved.size() - 1] == '/') { 122 resolved.erase(resolved.size() - 1, 1);
|
/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_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_util_NativeAllocationRegistryTest_doNativeAllocation(JNIEnv*, jclass, jlong size) argument
|
/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 < 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());
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | MacThread.java | 28 int size = 256; 29 byte[] src1 = new byte[size]; 30 byte[] src2 = new byte[size]; 31 byte[] src3 = new byte[size]; 34 for (i = 0; i < size; i++) { 37 src3[i] = (byte)(size - i - 1);
|