/libcore/luni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 80 private final long size; field in class:FileLock 93 * @param size 99 protected FileLock(FileChannel channel, long position, long size, boolean shared) { argument 100 if (position < 0 || size < 0 || position + size < 0) { 101 throw new IllegalArgumentException("position=" + position + " size=" + size); 105 this.size = size; 128 * @return the size o 130 public final long size() { method in class:FileLock [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/luni/src/main/java/java/util/ |
H A D | UnsafeArrayList.java | 29 private int size; field in class:UnsafeArrayList 37 if (size == array.length) { 38 T[] newArray = (T[]) Array.newInstance(elementType, size * 2); 39 System.arraycopy(array, 0, newArray, 0, size); 42 array[size++] = element; 55 public int size() { method in class:UnsafeArrayList 56 return size;
|
H A D | Observable.java | 74 return observers.size(); 126 int size = 0; 131 size = observers.size(); 132 arrays = new Observer[size];
|
H A D | Stack.java | 23 * including null objects. There is no limit to the size of the stack. 30 * Constructs a stack with the default size of {@code Vector}. 107 final int size = elementCount; 109 for (int i = size - 1; i >= 0; i--) { 111 return size - i; 115 for (int i = size - 1; i >= 0; i--) { 117 return size - i;
|
H A D | ArrayList.java | 57 int size; field in class:ArrayList 104 size = a.length; 116 int s = size; 125 size = s + 1; 133 * specified location. If the location is equal to the size of this 141 * when {@code location < 0 || location > size()} 145 int s = size; 160 size = s + 1; 194 int s = size; 203 size 254 throwIndexOutOfBoundsException(int index, int size) argument 318 @Override public int size() { method in class:ArrayList [all...] |
H A D | AbstractSet.java | 23 * abstract methods iterator() and size(). 56 return size() == s.size() && containsAll(s); 99 if (size() <= collection.size()) {
|
H A D | PriorityQueue.java | 45 private int size; field in class:PriorityQueue 94 * size of the collection. The queue uses natural ordering to order its 133 * size of the sorted set. The priority queue will have the same comparator 156 * Gets the size of the priority queue. If the size of the queue is greater 159 * @return the size of the priority queue. 162 public int size() { method in class:PriorityQueue 163 return size; 172 size = 0; 191 growToSize(size 405 growToSize(int size) argument [all...] |
H A D | AbstractList.java | 24 * methods {@code get()} and {@code size()}, and to create a 49 return pos + 1 < size(); 90 if (start >= 0 && start <= size()) { 165 private int size; field in class:AbstractList.SubAbstractList 240 size = end - start; 246 if (location >= 0 && location <= size) { 248 size++; 261 if (location >= 0 && location <= size) { 265 size += collection.size(); 356 public int size() { method in class:AbstractList.SubAbstractList [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/benchmarks/src/benchmarks/regression/ |
H A D | BitSetBenchmark.java | 25 private int size; field in class:BitSetBenchmark 30 bs = new BitSet(size); 40 bs.set(bs.size() - 1); 48 bs.get(i % size); 54 bs.clear(i % size); 60 bs.set(i % size); 66 bs.set(i % size, true); 72 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/main/java/java/util/logging/ |
H A D | MemoryHandler.java | 48 * <li>java.util.logging.MemoryHandler.size specifies the buffer size in number 63 // buffer size 64 private int size = DEFAULT_SIZE; field in class:MemoryHandler 100 // init size 101 String sizeString = manager.getProperty(className + ".size"); 104 size = Integer.parseInt(sizeString); 105 if (size <= 0) { 106 size = DEFAULT_SIZE; 109 printInvalidPropMessage(className + ".size", sizeStrin 144 MemoryHandler(Handler target, int size, Level pushLevel) argument [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | AlgorithmParameterGeneratorSpi.java | 38 * size and the given {@code SecureRandom}. The default parameter set 41 * @param size 42 * the size (in number of bits). 46 protected abstract void engineInit(int size, SecureRandom random); argument
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | SSLSessionContext.java | 45 * Returns the size of the session cache for this session context. 47 * @return the size of the session cache for this session context, or 61 * Sets the size of the session cache for this session context. 63 * @param size 64 * the size of the session cache, or {@code zero} for unlimited 65 * cache size. 67 * if {@code size} is negative. 69 public void setSessionCacheSize(int size) throws IllegalArgumentException; argument
|
/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);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ArrayDequeTest.java | 61 assertEquals(0, new ArrayDeque<Object>().size()); 68 assertEquals(0, new ArrayDeque<Object>(new ArrayList<Object>()).size()); 81 assertEquals(0, new ArrayDeque<Object>(8).size()); 83 assertEquals(0, zeroCapQue.size()); 85 assertEquals(1, zeroCapQue.size()); 86 assertEquals(0, new ArrayDeque<Object>(0).size()); 88 assertEquals(0, negCapQue.size()); 90 assertEquals(1, negCapQue.size()); 92 assertEquals(0, oneCapQue.size()); 94 assertEquals(1, oneCapQue.size()); [all...] |
H A D | HashSetTest.java | 45 assertEquals("Created incorrect HashSet", 0, hs2.size()); 54 assertEquals("Created incorrect HashSet", 0, hs2.size()); 70 assertEquals("Created incorrect HashSet", 0, hs2.size()); 89 assertTrue("HashSet created from collection incorrect size", 90 hs2.size() == objArray.length); 105 int size = hs.size(); 107 assertTrue("Added element already contained by set", hs.size() == size); 109 assertTrue("Failed to increment set size afte [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldAbstractMapTest.java | 70 assertEquals(0, amt.size()); 72 assertEquals(1, amt.size()); 74 assertEquals(2, amt.size()); 76 assertEquals(3, amt.size()); 81 assertEquals(0, amt.size()); 83 assertEquals(1, amt.size()); 85 assertEquals(2, amt.size()); 87 assertEquals(3, amt.size()); 115 @Override public int size() { 116 return entries.size(); [all...] |
/libcore/dex/src/main/java/com/android/dex/ |
H A D | TableOfContents.java | 99 stringIds.size = headerIn.readInt(); 101 typeIds.size = headerIn.readInt(); 103 protoIds.size = headerIn.readInt(); 105 fieldIds.size = headerIn.readInt(); 107 methodIds.size = headerIn.readInt(); 109 classDefs.size = headerIn.readInt(); 122 int size = in.readInt(); 125 if ((section.size != 0 && section.size != size) 213 public int size = 0; field in class:TableOfContents.Section [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | FileChannelImpl.java | 94 private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOException { argument 106 if (position < 0 || size < 0) { 107 throw new IllegalArgumentException("position=" + position + " size=" + size); 110 FileLock pendingLock = new FileLockImpl(this, position, size, shared); 117 flock.l_len = translateLockLength(size); 140 public FileLockImpl(FileChannel channel, long position, long size, boolean shared) { argument 141 super(channel, position, size, shared); 159 public final FileLock lock(long position, long size, boolean shared) throws IOException { argument 166 resultLock = basicLock(position, size, share 179 tryLock(long position, long size, boolean shared) argument 220 map(MapMode mapMode, long position, long size) argument 354 public long size() throws IOException { method in class:FileChannelImpl 453 truncate(long size) argument [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | ByteArrayOutputStream.java | 42 * Constructs a new ByteArrayOutputStream with a default size of 32 bytes. 51 * Constructs a new {@code ByteArrayOutputStream} with a default size of 52 * {@code size} bytes. If more than {@code size} bytes are written to this 55 * @param size 56 * initial size for the underlying byte array, must be 59 * if {@code size} < 0. 61 public ByteArrayOutputStream(int size) { argument 62 if (size >= 0) { 63 buf = new byte[size]; 110 public int size() { method in class:ByteArrayOutputStream [all...] |