Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 25 of 92) sorted by relevance

1234

/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DResizableDoubleArray.java113 protected int initialCapacity = 16; field in ResizableDoubleArray
144 internalArray = new double[initialCapacity]; in ResizableDoubleArray()
158 public ResizableDoubleArray(int initialCapacity) { in ResizableDoubleArray() argument
159 setInitialCapacity(initialCapacity); in ResizableDoubleArray()
160 internalArray = new double[this.initialCapacity]; in ResizableDoubleArray()
182 this.internalArray = new double[initialCapacity]; in ResizableDoubleArray()
186 initialCapacity = initialArray.length; in ResizableDoubleArray()
213 public ResizableDoubleArray(int initialCapacity, float expansionFactor) { in ResizableDoubleArray() argument
215 setInitialCapacity(initialCapacity); in ResizableDoubleArray()
216 internalArray = new double[initialCapacity]; in ResizableDoubleArray()
[all …]
/external/icu/icu4c/source/layoutex/
DRunArrays.cpp19 RunArray::RunArray(le_int32 initialCapacity) in RunArray() argument
20 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray()
22 if (initialCapacity > 0) { in RunArray()
76 FontRuns::FontRuns(le_int32 initialCapacity) in FontRuns() argument
77 : RunArray(initialCapacity), fFonts(NULL) in FontRuns()
79 if (initialCapacity > 0) { in FontRuns()
80 fFonts = LE_NEW_ARRAY(const LEFontInstance *, initialCapacity); in FontRuns()
128 LocaleRuns::LocaleRuns(le_int32 initialCapacity) in LocaleRuns() argument
129 : RunArray(initialCapacity), fLocales(NULL) in LocaleRuns()
131 if (initialCapacity > 0) { in LocaleRuns()
[all …]
Dplruns.cpp27 pl_openEmptyFontRuns(le_int32 initialCapacity) in pl_openEmptyFontRuns() argument
29 return (pl_fontRuns *) new FontRuns(initialCapacity); in pl_openEmptyFontRuns()
123 pl_openEmptyValueRuns(le_int32 initialCapacity) in pl_openEmptyValueRuns() argument
125 return (pl_valueRuns *) new ValueRuns(initialCapacity); in pl_openEmptyValueRuns()
242 ULocRuns(le_int32 initialCapacity);
345 ULocRuns::ULocRuns(le_int32 initialCapacity) in ULocRuns() argument
346 : LocaleRuns(initialCapacity), fLocaleNames(NULL) in ULocRuns()
348 if(initialCapacity > 0) { in ULocRuns()
349 fLocaleNames = LE_NEW_ARRAY(const char *, initialCapacity); in ULocRuns()
416 pl_openEmptyLocaleRuns(le_int32 initialCapacity) in pl_openEmptyLocaleRuns() argument
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMapMaker.java46 long expirationMillis, int maximumSize, int initialCapacity) { in ExpiringComputingMap() argument
47 this(expirationMillis, null, maximumSize, initialCapacity); in ExpiringComputingMap()
51 int maximumSize, int initialCapacity) { in ExpiringComputingMap() argument
52 super(initialCapacity, /* ignored loadFactor */ 0.75f, (maximumSize != -1)); in ExpiringComputingMap()
161 private int initialCapacity = 16; field in MapMaker
169 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() method in MapMaker
170 if (initialCapacity < 0) { in initialCapacity()
173 this.initialCapacity = initialCapacity; in initialCapacity()
217 ? new ExpiringComputingMap<K, V>(expirationMillis, null, maximumSize, initialCapacity) in makeMap()
218 : new ConcurrentHashMap<K, V>(initialCapacity); in makeMap()
[all …]
/external/icu/icu4c/source/common/
Duvectr64.cpp33 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
39 _init(initialCapacity, status); in UVector64()
44 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
46 if (initialCapacity < 1) { in _init()
47 initialCapacity = DEFAULT_CAPACITY; in _init()
49 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
50 initialCapacity = maxCapacity; in _init()
52 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
55 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp36 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
42 _init(initialCapacity, status); in UVector32()
47 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
49 if (initialCapacity < 1) { in _init()
50 initialCapacity = DEFAULT_CAPACITY; in _init()
52 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
53 initialCapacity = maxCapacity; in _init()
55 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
56 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
58 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp19 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
20 UVector(initialCapacity, status) in UStack()
29 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
30 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp40 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
47 _init(initialCapacity, status); in UVector()
60 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument
67 _init(initialCapacity, status); in UVector()
70 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
75 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init()
76 initialCapacity = DEFAULT_CAPACITY; in _init()
78 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
82 capacity = initialCapacity; in _init()
Duvector.h95 UVector(int32_t initialCapacity, UErrorCode &status);
99 UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
264 void _init(int32_t initialCapacity, UErrorCode &status);
299 UStack(int32_t initialCapacity, UErrorCode &status);
303 UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
/external/emma/core/java12/com/vladium/util/
DIntSet.java38 public IntSet (final int initialCapacity) in IntSet() argument
40 this (initialCapacity, 0.75F); in IntSet()
49 public IntSet (int initialCapacity, final float loadFactor) in IntSet() argument
51 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in IntSet()
55 if (initialCapacity == 0) initialCapacity = 1; in IntSet()
58 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntSet()
59 m_buckets = new Entry [initialCapacity]; in IntSet()
DIntObjectMap.java40 public IntObjectMap (final int initialCapacity) in IntObjectMap() argument
42 this (initialCapacity, 0.75F); in IntObjectMap()
51 public IntObjectMap (int initialCapacity, final float loadFactor) in IntObjectMap() argument
53 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in IntObjectMap()
57 if (initialCapacity == 0) initialCapacity = 1; in IntObjectMap()
60 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntObjectMap()
61 m_buckets = new Entry [initialCapacity]; in IntObjectMap()
DIntIntMap.java40 public IntIntMap (final int initialCapacity) in IntIntMap() argument
42 this (initialCapacity, 0.75F); in IntIntMap()
51 public IntIntMap (int initialCapacity, final float loadFactor) in IntIntMap() argument
53 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in IntIntMap()
57 if (initialCapacity == 0) initialCapacity = 1; in IntIntMap()
60 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntIntMap()
61 m_buckets = new Entry [initialCapacity]; in IntIntMap()
DObjectIntMap.java42 public ObjectIntMap (final int initialCapacity) in ObjectIntMap() argument
44 this (initialCapacity, 0.75F); in ObjectIntMap()
53 public ObjectIntMap (int initialCapacity, final float loadFactor) in ObjectIntMap() argument
55 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in ObjectIntMap()
59 if (initialCapacity == 0) initialCapacity = 1; in ObjectIntMap()
62 m_sizeThreshold = (int) (initialCapacity * loadFactor); in ObjectIntMap()
63 m_buckets = new Entry [initialCapacity]; in ObjectIntMap()
DSoftValueMap.java72 …public SoftValueMap (int initialCapacity, final float loadFactor, final int readClearCheckFrequenc… in SoftValueMap() argument
74 if (initialCapacity < 0) in SoftValueMap()
75 … throw new IllegalArgumentException ("negative input: initialCapacity [" + initialCapacity + "]"); in SoftValueMap()
83 if (initialCapacity == 0) initialCapacity = 1; in SoftValueMap()
88 m_sizeThreshold = (int) (initialCapacity * loadFactor); in SoftValueMap()
93 m_buckets = new SoftEntry [initialCapacity]; in SoftValueMap()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java214 int initialCapacity = UNSET_INT; field in CacheBuilder
264 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder
265 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
266 this.initialCapacity); in initialCapacity()
267 checkArgument(initialCapacity >= 0); in initialCapacity()
268 this.initialCapacity = initialCapacity; in initialCapacity()
273 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
590 if (initialCapacity != UNSET_INT) { in toString()
591 s.add("initialCapacity", initialCapacity); in toString()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java39 assertNull(spec.initialCapacity); in testParse_empty()
52 assertEquals(10, spec.initialCapacity.intValue()); in testParse_initialCapacity()
61 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); in testParse_initialCapacity()
75 assertNull(spec.initialCapacity); in testParse_maximumSize()
97 assertNull(spec.initialCapacity); in testParse_maximumWeight()
128 assertNull(spec.initialCapacity); in testParse_concurrencyLevel()
151 assertNull(spec.initialCapacity); in testParse_weakKeys()
183 assertNull(spec.initialCapacity); in testParse_softValues()
206 assertNull(spec.initialCapacity); in testParse_weakValues()
259 assertNull(spec.initialCapacity); in testParse_writeExpirationDays()
[all …]
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java220 int initialCapacity = UNSET_INT; field in CacheBuilder
332 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder
333 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
334 this.initialCapacity); in initialCapacity()
335 checkArgument(initialCapacity >= 0); in initialCapacity()
336 this.initialCapacity = initialCapacity; in initialCapacity()
341 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
835 if (initialCapacity != UNSET_INT) { in toString()
836 s.add("initialCapacity", initialCapacity); in toString()
DCacheBuilderSpec.java111 @VisibleForTesting Integer initialCapacity; field in CacheBuilderSpec
171 if (initialCapacity != null) { in toCacheBuilder()
172 builder.initialCapacity(initialCapacity); in toCacheBuilder()
242 initialCapacity, in hashCode()
263 return Objects.equal(initialCapacity, that.initialCapacity) in equals()
322 checkArgument(spec.initialCapacity == null, in parseInteger()
323 "initial capacity was already set to ", spec.initialCapacity); in parseInteger()
324 spec.initialCapacity = value; in parseInteger()
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java117 int initialCapacity = UNSET_INT; field in MapMaker
170 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() method in MapMaker
171 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
172 this.initialCapacity); in initialCapacity()
173 checkArgument(initialCapacity >= 0); in initialCapacity()
174 this.initialCapacity = initialCapacity; in initialCapacity()
179 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
599 if (initialCapacity != UNSET_INT) { in toString()
600 s.add("initialCapacity", initialCapacity); in toString()
/external/protobuf/java/src/main/java/com/google/protobuf/
DByteString.java736 public static Output newOutput(int initialCapacity) { in newOutput() argument
737 return new Output(initialCapacity); in newOutput()
767 private final int initialCapacity; field in ByteString.Output
783 Output(int initialCapacity) { in Output() argument
784 if (initialCapacity < 0) { in Output()
787 this.initialCapacity = initialCapacity; in Output()
789 this.buffer = new byte[initialCapacity]; in Output()
903 int newSize = Math.max(initialCapacity, in flushFullBuffer()
/external/javassist/src/main/javassist/scopedpool/
DSoftValueHashMap.java96 public SoftValueHashMap(int initialCapacity, float loadFactor) { in SoftValueHashMap() argument
97 hash = new HashMap(initialCapacity, loadFactor); in SoftValueHashMap()
110 public SoftValueHashMap(int initialCapacity) { in SoftValueHashMap() argument
111 hash = new HashMap(initialCapacity); in SoftValueHashMap()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DIntMap.java56 public IntMap(int initialCapacity) { in IntMap() argument
57 this(initialCapacity, 0.75f); in IntMap()
60 public IntMap(int initialCapacity, float loadFactor) { in IntMap() argument
61 if (initialCapacity > 1 << 30){ in IntMap()
64 if (initialCapacity < 0){ in IntMap()
71 while (capacity < initialCapacity){ in IntMap()
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DConcurrentHashMap.java44 public ConcurrentHashMap(int initialCapacity) { in ConcurrentHashMap() argument
45 this.backingMap = new HashMap<K, V>(initialCapacity); in ConcurrentHashMap()
48 public ConcurrentHashMap(int initialCapacity, float loadFactor) { in ConcurrentHashMap() argument
49 this.backingMap = new HashMap<K, V>(initialCapacity, loadFactor); in ConcurrentHashMap()
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DFieldArray.java63 FieldArray(int initialCapacity) { in FieldArray() argument
64 initialCapacity = idealIntArraySize(initialCapacity); in FieldArray()
65 mFieldNumbers = new int[initialCapacity]; in FieldArray()
66 mData = new FieldData[initialCapacity]; in FieldArray()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMapMakerTest.java48 maker.initialCapacity(-1); in testInitialCapacity_negative()
56 MapMaker maker = new MapMaker().initialCapacity(16); in xtestInitialCapacity_setTwice()
59 maker.initialCapacity(16); in xtestInitialCapacity_setTwice()
88 .initialCapacity(5) in testReturnsPlainConcurrentHashMapWhenPossible()

1234