/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/ |
SimpleCache.java | 31 public SimpleCache(int cacheType, int initialCapacity) { 35 if (initialCapacity > 0) { 36 capacity = initialCapacity;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
SimpleCache.java | 31 public SimpleCache(int cacheType, int initialCapacity) { 35 if (initialCapacity > 0) { 36 capacity = initialCapacity;
|
/frameworks/base/core/java/android/util/ |
LongArray.java | 43 public LongArray(int initialCapacity) { 44 if (initialCapacity == 0) { 47 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity);
|
IntArray.java | 45 public IntArray(int initialCapacity) { 46 if (initialCapacity == 0) { 49 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity);
|
LongSparseLongArray.java | 66 public LongSparseLongArray(int initialCapacity) { 67 if (initialCapacity == 0) { 71 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity);
|
SparseLongArray.java | 64 public SparseLongArray(int initialCapacity) { 65 if (initialCapacity == 0) { 69 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity);
|
/external/emma/core/java12/com/vladium/util/ |
IntIntMap.java | 40 public IntIntMap (final int initialCapacity) 42 this (initialCapacity, 0.75F); 48 * @param initialCapacity initial number of hash buckets in the table [may not be negative, 0 is equivalent to 1]. 51 public IntIntMap (int initialCapacity, final float loadFactor) 53 if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" + initialCapacity + "]"); 57 if (initialCapacity == 0) initialCapacity = 1; 60 m_sizeThreshold = (int) (initialCapacity * loadFactor) [all...] |
ObjectIntMap.java | 42 public ObjectIntMap (final int initialCapacity) 44 this (initialCapacity, 0.75F); 50 * @param initialCapacity initial number of hash buckets in the table [may not be negative, 0 is equivalent to 1]. 53 public ObjectIntMap (int initialCapacity, final float loadFactor) 55 if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" + initialCapacity + "]"); 59 if (initialCapacity == 0) initialCapacity = 1; 62 m_sizeThreshold = (int) (initialCapacity * loadFactor) [all...] |
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
ConcurrentHashMap.java | 44 public ConcurrentHashMap(int initialCapacity) { 45 this.backingMap = new HashMap<K, V>(initialCapacity); 48 public ConcurrentHashMap(int initialCapacity, float loadFactor) { 49 this.backingMap = new HashMap<K, V>(initialCapacity, loadFactor);
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
MapMakerTest.java | 48 maker.initialCapacity(-1); 56 MapMaker maker = new MapMaker().initialCapacity(16); 59 maker.initialCapacity(16); 88 .initialCapacity(5)
|
/external/javassist/src/main/javassist/scopedpool/ |
SoftValueHashMap.java | 86 * @param initialCapacity 96 public SoftValueHashMap(int initialCapacity, float loadFactor) { 97 hash = new HashMap(initialCapacity, loadFactor); 104 * @param initialCapacity 110 public SoftValueHashMap(int initialCapacity) { 111 hash = new HashMap(initialCapacity);
|
/external/icu/icu4c/source/layoutex/ |
plruns.cpp | 27 pl_openEmptyFontRuns(le_int32 initialCapacity) 29 return (pl_fontRuns *) new FontRuns(initialCapacity); 123 pl_openEmptyValueRuns(le_int32 initialCapacity) 125 return (pl_valueRuns *) new ValueRuns(initialCapacity); 235 * @param initialCapacity is the initial size of the locale and limit indices arrays. If 242 ULocRuns(le_int32 initialCapacity); 345 ULocRuns::ULocRuns(le_int32 initialCapacity) 346 : LocaleRuns(initialCapacity), fLocaleNames(NULL) 348 if(initialCapacity > 0) { 349 fLocaleNames = LE_NEW_ARRAY(const char *, initialCapacity); [all...] |
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
UnsafeByteSequence.java | 34 public UnsafeByteSequence(int initialCapacity) { 35 this.bytes = new byte[initialCapacity];
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
MockRespondMatrixCursor.java | 36 public MockRespondMatrixCursor(final String[] columnNames, final int initialCapacity, 38 super(columnNames, initialCapacity);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
ObservableSparseArrayCompat.java | 30 public ObservableSparseArrayCompat(final int initialCapacity) { 31 super(initialCapacity);
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
FieldArray.java | 63 FieldArray(int initialCapacity) { 64 initialCapacity = idealIntArraySize(initialCapacity); 65 mFieldNumbers = new int[initialCapacity]; 66 mData = new FieldData[initialCapacity];
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderSpecTest.java | 39 assertNull(spec.initialCapacity); 51 CacheBuilderSpec spec = parse("initialCapacity=10"); 52 assertEquals(10, spec.initialCapacity.intValue()); 61 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); 66 parse("initialCapacity=10, initialCapacity=20"); 75 assertNull(spec.initialCapacity); 97 assertNull(spec.initialCapacity); 128 assertNull(spec.initialCapacity); 151 assertNull(spec.initialCapacity); [all...] |
/external/guava/guava/src/com/google/common/cache/ |
CacheBuilder.java | 219 int initialCapacity = UNSET_INT; 328 * @throws IllegalArgumentException if {@code initialCapacity} is negative 331 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { 332 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", 333 this.initialCapacity); 334 checkArgument(initialCapacity >= 0); 335 this.initialCapacity = initialCapacity; 340 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity [all...] |
/external/guava/guava/src/com/google/common/collect/ |
MapMaker.java | 116 int initialCapacity = UNSET_INT; 165 * @throws IllegalArgumentException if {@code initialCapacity} is negative 169 public MapMaker initialCapacity(int initialCapacity) { 170 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", 171 this.initialCapacity); 172 checkArgument(initialCapacity >= 0); 173 this.initialCapacity = initialCapacity; 178 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity [all...] |
/external/icu/icu4c/source/layoutex/layout/ |
plruns.h | 65 * @param initialCapacity is the initial size of the font and limit indices arrays. If 73 pl_openEmptyFontRuns(le_int32 initialCapacity); 198 * @param initialCapacity is the initial size of the value and limit indices arrays. If 206 pl_openEmptyValueRuns(le_int32 initialCapacity); 330 * @param initialCapacity is the initial size of the font and limit indices arrays. If 338 pl_openEmptyLocaleRuns(le_int32 initialCapacity);
|
RunArrays.h | 68 * @param initialCapacity is the initial size of the limit indices array. If 75 RunArray(le_int32 initialCapacity); 294 * @param initialCapacity is the initial size of the font and limit indices arrays. If 301 FontRuns(le_int32 initialCapacity); 431 * @param initialCapacity is the initial size of the locale and limit indices arrays. If 438 LocaleRuns(le_int32 initialCapacity); 569 * @param initialCapacity is the initial size of the value and limit indices arrays. If 576 ValueRuns(le_int32 initialCapacity);
|
/libcore/ojluni/src/main/java/java/util/ |
ArrayDeque.java | 128 int initialCapacity = MIN_INITIAL_CAPACITY; 131 if (numElements >= initialCapacity) { 132 initialCapacity = numElements; 133 initialCapacity |= (initialCapacity >>> 1); 134 initialCapacity |= (initialCapacity >>> 2); 135 initialCapacity |= (initialCapacity >>> 4); 136 initialCapacity |= (initialCapacity >>> 8) [all...] |
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilderTest.java | 51 builder.initialCapacity(-1); 57 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().initialCapacity(16); 60 builder.initialCapacity(16); 66 CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE);
|
/external/skia/src/core/ |
SkRWBuffer.h | 75 SkRWBuffer(size_t initialCapacity = 0);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/ |
IntArrayList.java | 45 public IntArrayList(int initialCapacity) { 46 elements = new int[initialCapacity];
|