/external/guava/guava-tests/benchmark/com/google/common/cache/ |
SegmentBenchmark.java | 45 .initialCapacity(capacity), null);
|
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
MonitorBasedPriorityBlockingQueue.java | 118 * @param initialCapacity the initial capacity for this priority queue 119 * @throws IllegalArgumentException if <tt>initialCapacity</tt> is less 122 public MonitorBasedPriorityBlockingQueue(int initialCapacity) { 123 q = new PriorityQueue<E>(initialCapacity, null); 131 * @param initialCapacity the initial capacity for this priority queue 135 * @throws IllegalArgumentException if <tt>initialCapacity</tt> is less 138 public MonitorBasedPriorityBlockingQueue(int initialCapacity, 140 q = new PriorityQueue<E>(initialCapacity, comparator);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderFactory.java | 151 Integer concurrencyLevel, Integer initialCapacity, Integer maximumSize, 159 if (initialCapacity != null) { 160 builder.initialCapacity(initialCapacity);
|
CacheBuilderTest.java | 69 builder.initialCapacity(-1); 75 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().initialCapacity(16); 78 builder.initialCapacity(16); 86 .initialCapacity(5) 100 .initialCapacity(0) 113 CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE);
|
/external/icu/icu4c/source/tools/toolutil/ |
toolutil.h | 148 * Open a UToolMemory object for allocation of initialCapacity to maxCapacity 152 utm_open(const char *name, int32_t initialCapacity, int32_t maxCapacity, int32_t size);
|
/frameworks/base/core/java/android/database/ |
MatrixCursor.java | 38 * @param initialCapacity in rows 40 public MatrixCursor(String[] columnNames, int initialCapacity) { 44 if (initialCapacity < 1) { 45 initialCapacity = 1; 48 this.data = new Object[columnCount * initialCapacity];
|
/frameworks/base/core/java/android/util/ |
LongSparseArray.java | 74 public LongSparseArray(int initialCapacity) { 75 if (initialCapacity == 0) { 79 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); 80 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity);
|
SparseArray.java | 74 public SparseArray(int initialCapacity) { 75 if (initialCapacity == 0) { 79 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity);
|
/libcore/ojluni/src/main/java/sun/misc/ |
SoftCache.java | 183 * @param initialCapacity The initial capacity of the cache 191 public SoftCache(int initialCapacity, float loadFactor) { 192 hash = new HashMap(initialCapacity, loadFactor); 199 * @param initialCapacity The initial capacity of the cache 204 public SoftCache(int initialCapacity) { 205 hash = new HashMap(initialCapacity);
|
/system/core/include/cutils/ |
hashmap.h | 37 * @param initialCapacity number of expected entries 41 Hashmap* hashmapCreate(size_t initialCapacity,
|
/external/emma/core/java12/com/vladium/util/ |
SoftValueMap.java | 61 * @param initialCapacity initial number of hash buckets in the table 72 public SoftValueMap (int initialCapacity, final float loadFactor, final int readClearCheckFrequency, final int writeClearCheckFrequency) 74 if (initialCapacity < 0) 75 throw new IllegalArgumentException ("negative input: initialCapacity [" + initialCapacity + "]"); 83 if (initialCapacity == 0) initialCapacity = 1; 88 m_sizeThreshold = (int) (initialCapacity * loadFactor); 93 m_buckets = new SoftEntry [initialCapacity];
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
IntList.java | 81 * @param initialCapacity {@code >= 0;} initial capacity of the list 83 public IntList(int initialCapacity) { 87 values = new int[initialCapacity];
|
/dalvik/dx/src/com/android/dx/util/ |
IntList.java | 81 * @param initialCapacity {@code >= 0;} initial capacity of the list 83 public IntList(int initialCapacity) { 87 values = new int[initialCapacity];
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
IntList.java | 81 * @param initialCapacity {@code >= 0;} initial capacity of the list 83 public IntList(int initialCapacity) { 87 values = new int[initialCapacity];
|
/external/icu/icu4c/source/common/ |
uvectr32.h | 72 UVector32(int32_t initialCapacity, UErrorCode &status); 185 void _init(int32_t initialCapacity, UErrorCode &status);
|
uvectr64.h | 71 UVector64(int32_t initialCapacity, UErrorCode &status); 174 void _init(int32_t initialCapacity, UErrorCode &status);
|
/frameworks/base/core/java/com/android/internal/util/ |
LineBreakBufferedWriter.java | 77 * @param initialCapacity The initial capacity of the internal buffer. 79 public LineBreakBufferedWriter(Writer out, int bufferSize, int initialCapacity) { 81 this.buffer = new char[Math.min(initialCapacity, bufferSize)];
|
/external/guava/guava-tests/test/com/google/common/collect/ |
MapMakerTest.java | 206 maker.initialCapacity(-1); 214 MapMaker maker = new MapMaker().initialCapacity(16); 217 maker.initialCapacity(16); 246 .initialCapacity(5)
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMatrixCursor.java | 20 public void __constructor__(String[] columns, int initialCapacity) {
|
/external/guava/guava/src/com/google/common/collect/ |
ImmutableCollection.java | 320 ArrayBasedBuilder(int initialCapacity) { 321 checkNonnegative(initialCapacity, "initialCapacity"); 322 this.contents = new Object[initialCapacity];
|
/external/smali/util/src/main/java/org/jf/util/ |
SparseArray.java | 59 public SparseArray(int initialCapacity) { 60 mKeys = new int[initialCapacity]; 61 mValues = new Object[initialCapacity];
|
/libcore/ojluni/src/main/java/java/util/ |
PriorityQueue.java | 130 * @param initialCapacity the initial capacity for this priority queue 131 * @throws IllegalArgumentException if {@code initialCapacity} is less 134 public PriorityQueue(int initialCapacity) { 135 this(initialCapacity, null); 155 * @param initialCapacity the initial capacity for this priority queue 159 * @throws IllegalArgumentException if {@code initialCapacity} is 162 public PriorityQueue(int initialCapacity, 166 if (initialCapacity < 1) 168 this.queue = new Object[initialCapacity]; [all...] |
Hashtable.java | 179 * @param initialCapacity the initial capacity of the hashtable. 184 public Hashtable(int initialCapacity, float loadFactor) { 185 if (initialCapacity < 0) 187 initialCapacity); 191 if (initialCapacity==0) 192 initialCapacity = 1; 194 table = new HashtableEntry[initialCapacity]; 195 threshold = (initialCapacity <= MAX_ARRAY_SIZE + 1) ? initialCapacity : MAX_ARRAY_SIZE + 1; 202 * @param initialCapacity the initial capacity of the hashtable [all...] |
Vector.java | 124 * @param initialCapacity the initial capacity of the vector 130 public Vector(int initialCapacity, int capacityIncrement) { 132 if (initialCapacity < 0) 134 initialCapacity); 135 this.elementData = new Object[initialCapacity]; 143 * @param initialCapacity the initial capacity of the vector 147 public Vector(int initialCapacity) { 148 this(initialCapacity, 0); [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
SpinedBuffer.java | 92 * @param initialCapacity the initial capacity of the list 97 public SpinedBuffer(int initialCapacity) { 98 super(initialCapacity); 449 * @param initialCapacity the initial capacity of the list 453 OfPrimitive(int initialCapacity) { 454 super(initialCapacity); 730 public OfInt(int initialCapacity) { 731 super(initialCapacity); 844 public OfLong(int initialCapacity) { 845 super(initialCapacity); [all...] |