Searched defs:size (Results 1 - 25 of 134) sorted by relevance

123456

/libcore/luni/src/main/java/java/security/
H A DAlgorithmParameterGeneratorSpi.java38 * 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
H A DAlgorithmParameterGenerator.java171 * Initializes this {@code AlgorithmParameterGenerator} with the given size.
175 * @param size
176 * the size (in number of bits).
178 public final void init(int size) { argument
179 spiImpl.engineInit(size, RANDOM);
183 * Initializes this {@code AlgorithmParameterGenerator} with the given size
187 * @param size
188 * the size (in number of bits).
192 public final void init(int size, SecureRandom random) { argument
193 spiImpl.engineInit(size, rando
[all...]
H A DIdentityScope.java109 public abstract int size(); method in class:IdentityScope
190 .append("[").append(size()).append("]").toString();
/libcore/luni/src/main/java/libcore/io/
H A DMemoryMappedFile.java37 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...]
H A DNioBufferIterator.java29 private final int size; field in class:NioBufferIterator
34 NioBufferIterator(long address, int size, boolean swap) { argument
36 this.size = size;
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAbstractSetTest.java48 public int size() { method in class:OldAbstractSetTest.Mock_AbstractSet
86 public int size() {
H A DEvilMapTest.java39 @Override public int size() { return 0; } method in class:EvilMapTest.EvilMap
/libcore/benchmarks/src/benchmarks/regression/
H A DBitSetBenchmark.java25 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/include/
H A DLocalArray.h24 * A fixed-size array with a size hint. That number of bytes will be allocated
35 * Allocates a new fixed-size array of the given size. If this size is
58 size_t size() { return mSize; } function in class:LocalArray
/libcore/luni/src/main/java/java/io/
H A DBufferedOutputStream.java60 * Constructs a new {@code BufferedOutputStream}, providing {@code out} with {@code size} bytes
64 * @param size the size of buffer in bytes.
65 * @throws IllegalArgumentException if {@code size <= 0}.
67 public BufferedOutputStream(OutputStream out, int size) { argument
69 if (size <= 0) {
70 throw new IllegalArgumentException("size <= 0");
72 buf = new byte[size];
111 * {@code offset + length} is greater than the size of
H A DBufferedWriter.java58 * Constructs a new {@code BufferedWriter}, providing {@code out} with {@code size} chars
62 * @param size the size of buffer in chars.
63 * @throws IllegalArgumentException if {@code size <= 0}.
65 public BufferedWriter(Writer out, int size) { argument
67 if (size <= 0) {
68 throw new IllegalArgumentException("size <= 0");
71 this.buf = new char[size];
178 * {@code offset + count} is greater than the size of
/libcore/luni/src/main/java/java/nio/channels/
H A DFileLock.java80 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;
130 * @return the size o
132 public final long size() { method in class:FileLock
[all...]
/libcore/luni/src/main/java/java/util/
H A DDictionary.java42 * @see #size
63 * @see #size
72 * @see #size
114 public abstract int size(); method in class:Dictionary
H A DUnsafeArrayList.java29 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 DAbstractCollection.java25 * iterator()} and {@code size()} to create an immutable collection. To create a
97 * @see #size
176 * tests, whether {@code size} returns 0.
181 * @see #size
184 return size() == 0;
336 public abstract int size(); method in class:AbstractCollection
348 ArrayList<Object> result = new ArrayList<Object>(size());
368 StringBuilder buffer = new StringBuilder(size() * 16);
H A DCollection.java116 * @see #size
189 * @see #size
278 public int size(); method in interface:Collection
H A DSet.java66 * @see #size
93 * Equality for a set means that both sets have the same size and the same
119 * @see #size
171 public int size(); method in interface:Set
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLSessionContext.java45 * 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/luni/src/test/java/libcore/java/lang/
H A DThreadTest.java61 private Thread newThread(final AtomicInteger finalizedThreadsCount, final int size) { argument
63 byte[] memoryPressure = new byte[size];
103 visibleTraces.set(Thread.getAllStackTraces().size());
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleOutputStream.java20 public int size; field in class:Support_ASimpleOutputStream
37 size = bufferSize;
82 if (pos < size) {
/libcore/crypto/src/main/java/org/conscrypt/
H A DClientSessionContext.java42 public int size() { method in class:ClientSessionContext
43 return sessionsByHostAndPort.size();
/libcore/luni/src/main/java/java/util/logging/
H A DMemoryHandler.java48 * <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/org/apache/harmony/security/
H A DSystemScope.java71 * @see java.security.IdentityScope#size()
73 public int size() { method in class:SystemScope
74 return names.size();
/libcore/luni/src/test/java/libcore/java/io/
H A DOldBufferedInputStreamTest.java65 testBufferedInputStream(InputStream is, int size) throws IOException { argument
66 super(is, size);
/libcore/luni/src/test/java/tests/api/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));

Completed in 5719 milliseconds

123456