/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
ByteQueue.java | 27 private int initialCapacity = -1; 33 public ByteQueue(int initialCapacity) { 34 buf = new UnboundedFifoByteBuffer(initialCapacity); 35 this.initialCapacity = initialCapacity; 51 if (initialCapacity != -1) 52 buf = new UnboundedFifoByteBuffer(initialCapacity);
|
/packages/services/Telephony/src/org/apache/james/mime4j/decoder/ |
ByteQueue.java | 27 private int initialCapacity = -1; 33 public ByteQueue(int initialCapacity) { 34 buf = new UnboundedFifoByteBuffer(initialCapacity); 35 this.initialCapacity = initialCapacity; 51 if (initialCapacity != -1) 52 buf = new UnboundedFifoByteBuffer(initialCapacity);
|
/libcore/ojluni/src/main/java/java/util/ |
LinkedHashSet.java | 128 * @param initialCapacity the initial capacity of the linked hash set 133 public LinkedHashSet(int initialCapacity, float loadFactor) { 134 super(initialCapacity, loadFactor, true); 141 * @param initialCapacity the initial capacity of the LinkedHashSet 145 public LinkedHashSet(int initialCapacity) { 146 super(initialCapacity, .75f, true);
|
HashSet.java | 124 * @param initialCapacity the initial capacity of the hash map 129 public HashSet(int initialCapacity, float loadFactor) { 130 map = new HashMap<>(initialCapacity, loadFactor); 137 * @param initialCapacity the initial capacity of the hash table 141 public HashSet(int initialCapacity) { 142 map = new HashMap<>(initialCapacity); 151 * @param initialCapacity the initial capacity of the hash map 158 HashSet(int initialCapacity, float loadFactor, boolean dummy) { 159 map = new LinkedHashMap<>(initialCapacity, loadFactor);
|
/libcore/ojluni/src/main/java/java/util/stream/ |
AbstractSpinedBuffer.java | 87 * @param initialCapacity The minimum expected number of elements 89 protected AbstractSpinedBuffer(int initialCapacity) { 90 if (initialCapacity < 0) 91 throw new IllegalArgumentException("Illegal Capacity: "+ initialCapacity); 94 Integer.SIZE - Integer.numberOfLeadingZeros(initialCapacity - 1));
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
MatrixCursorWithExtra.java | 23 public MatrixCursorWithExtra(String[] columnNames, int initialCapacity, Bundle extras) { 24 super(columnNames, initialCapacity);
|
LruCache.java | 36 * used as initialCapacity i.e. memory is allocated upfront. 45 * @param initialCapacity initial capacity of the cache. 48 private LruCache(int initialCapacity, int maxCapacity) { 49 super(initialCapacity, (float) 0.75, true);
|
MatrixCursorWithCachedColumns.java | 27 public MatrixCursorWithCachedColumns(final String[] columnNames, final int initialCapacity) { 28 super(columnNames, initialCapacity);
|
/external/icu/icu4c/source/layoutex/ |
RunArrays.cpp | 19 RunArray::RunArray(le_int32 initialCapacity) 20 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) 22 if (initialCapacity > 0) { 76 FontRuns::FontRuns(le_int32 initialCapacity) 77 : RunArray(initialCapacity), fFonts(NULL) 79 if (initialCapacity > 0) { 80 fFonts = LE_NEW_ARRAY(const LEFontInstance *, initialCapacity); 128 LocaleRuns::LocaleRuns(le_int32 initialCapacity) 129 : RunArray(initialCapacity), fLocales(NULL) 131 if (initialCapacity > 0) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
ResizableDoubleArray.java | 33 * <code>initialCapacity</code> property, which can be set by the constructor. 113 protected int initialCapacity = 16; 137 * <li><code>initialCapacity = 16</code></li> 144 internalArray = new double[initialCapacity]; 155 * @param initialCapacity The initial size of the internal storage array 156 * @throws IllegalArgumentException if initialCapacity is not > 0 158 public ResizableDoubleArray(int initialCapacity) { 159 setInitialCapacity(initialCapacity); 160 internalArray = new double[this.initialCapacity]; 171 * <li><code>initialCapacity = 16</code></li [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
MapMaker.java | 46 long expirationMillis, int maximumSize, int initialCapacity) { 47 this(expirationMillis, null, maximumSize, initialCapacity); 51 int maximumSize, int initialCapacity) { 52 super(initialCapacity, /* ignored loadFactor */ 0.75f, (maximumSize != -1)); 161 private int initialCapacity = 16; 169 public MapMaker initialCapacity(int initialCapacity) { 170 if (initialCapacity < 0) { 173 this.initialCapacity = initialCapacity; [all...] |
GenericMapMaker.java | 53 * See {@link MapMaker#initialCapacity}. 55 public abstract GenericMapMaker<K0, V0> initialCapacity(int initialCapacity);
|
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/ |
SparseIntArray.java | 26 public SparseIntArray(final int initialCapacity) { 27 mArray = new SparseArray<>(initialCapacity);
|
SparseArray.java | 30 public SparseArray(final int initialCapacity) { 31 mKeys = new ArrayList<>(initialCapacity); 32 mValues = new ArrayList<>(initialCapacity);
|
/external/icu/icu4c/source/common/ |
uvectr64.cpp | 33 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : 39 _init(initialCapacity, status); 44 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { 45 // Fix bogus initialCapacity values; avoid malloc(0) 46 if (initialCapacity < 1) { 47 initialCapacity = DEFAULT_CAPACITY; 49 if (maxCapacity>0 && maxCapacity<initialCapacity) { 50 initialCapacity = maxCapacity; 52 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { 53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity) [all...] |
ustack.cpp | 19 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : 20 UVector(initialCapacity, status) 29 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status) : 30 UVector(d, c, initialCapacity, status)
|
uvectr32.cpp | 36 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : 42 _init(initialCapacity, status); 47 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { 48 // Fix bogus initialCapacity values; avoid malloc(0) 49 if (initialCapacity < 1) { 50 initialCapacity = DEFAULT_CAPACITY; 52 if (maxCapacity>0 && maxCapacity<initialCapacity) { 53 initialCapacity = maxCapacity; 55 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { 56 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity) [all...] |
/external/emma/core/java12/com/vladium/util/ |
IntObjectMap.java | 40 public IntObjectMap (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 IntObjectMap (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...] |
IntSet.java | 38 public IntSet (final int initialCapacity) 40 this (initialCapacity, 0.75F); 46 * @param initialCapacity initial number of hash buckets in the table [may not be negative, 0 is equivalent to 1]. 49 public IntSet (int initialCapacity, final float loadFactor) 51 if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" + initialCapacity + "]"); 55 if (initialCapacity == 0) initialCapacity = 1; 58 m_sizeThreshold = (int) (initialCapacity * loadFactor) [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
OutputCollector.java | 45 * @param initialCapacity {@code >= 0;} initial capacity of the output list 50 public OutputCollector(int initialCapacity, int suffixInitialCapacity, 52 this.finisher = new OutputFinisher(initialCapacity, regCount);
|
/dalvik/dx/src/com/android/dx/dex/code/ |
OutputCollector.java | 47 * @param initialCapacity {@code >= 0;} initial capacity of the output list 53 public OutputCollector(DexOptions dexOptions, int initialCapacity, int suffixInitialCapacity, 55 this.finisher = new OutputFinisher(dexOptions, initialCapacity, regCount, paramSize);
|
/external/dexmaker/src/dx/java/com/android/dx/dex/code/ |
OutputCollector.java | 48 * @param initialCapacity {@code >= 0;} initial capacity of the output list 53 public OutputCollector(DexOptions dexOptions, int initialCapacity, int suffixInitialCapacity, 55 this.finisher = new OutputFinisher(dexOptions, initialCapacity, regCount);
|
/frameworks/base/core/java/android/app/usage/ |
TimeSparseArray.java | 31 public TimeSparseArray(int initialCapacity) { 32 super(initialCapacity);
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilder.java | 213 int initialCapacity = UNSET_INT; 260 * @throws IllegalArgumentException if {@code initialCapacity} is negative 263 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { 264 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", 265 this.initialCapacity); 266 checkArgument(initialCapacity >= 0); 267 this.initialCapacity = initialCapacity; 272 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
SimpleCache.java | 35 public SimpleCache(int cacheType, int initialCapacity) { 39 if (initialCapacity > 0) { 40 capacity = initialCapacity;
|