Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 25 of 90) 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/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMapMaker.java39 ComputingMap(int initialCapacity) { in ComputingMap() argument
40 this(null, initialCapacity); in ComputingMap()
43 ComputingMap(Function<? super K, ? extends V> computer, int initialCapacity) { in ComputingMap() argument
44 super(initialCapacity, /* ignored loadFactor */ 0.75f, true); in ComputingMap()
119 private int initialCapacity = 16; field in MapMaker
124 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() method in MapMaker
125 if (initialCapacity < 0) { in initialCapacity()
128 this.initialCapacity = initialCapacity; in initialCapacity()
143 ? new ComputingMap<K, V>(null, initialCapacity) in makeMap()
144 : new ConcurrentHashMap<K, V>(initialCapacity); in makeMap()
[all …]
/external/icu/icu4c/source/layoutex/
DRunArrays.cpp21 RunArray::RunArray(le_int32 initialCapacity) in RunArray() argument
22 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray()
24 if (initialCapacity > 0) { in RunArray()
78 FontRuns::FontRuns(le_int32 initialCapacity) in FontRuns() argument
79 : RunArray(initialCapacity), fFonts(NULL) in FontRuns()
81 if (initialCapacity > 0) { in FontRuns()
82 fFonts = LE_NEW_ARRAY(const LEFontInstance *, initialCapacity); in FontRuns()
130 LocaleRuns::LocaleRuns(le_int32 initialCapacity) in LocaleRuns() argument
131 : RunArray(initialCapacity), fLocales(NULL) in LocaleRuns()
133 if (initialCapacity > 0) { in LocaleRuns()
[all …]
Dplruns.cpp29 pl_openEmptyFontRuns(le_int32 initialCapacity) in pl_openEmptyFontRuns() argument
31 return (pl_fontRuns *) new FontRuns(initialCapacity); in pl_openEmptyFontRuns()
125 pl_openEmptyValueRuns(le_int32 initialCapacity) in pl_openEmptyValueRuns() argument
127 return (pl_valueRuns *) new ValueRuns(initialCapacity); in pl_openEmptyValueRuns()
244 ULocRuns(le_int32 initialCapacity);
347 ULocRuns::ULocRuns(le_int32 initialCapacity) in ULocRuns() argument
348 : LocaleRuns(initialCapacity), fLocaleNames(NULL) in ULocRuns()
350 if(initialCapacity > 0) { in ULocRuns()
351 fLocaleNames = LE_NEW_ARRAY(const char *, initialCapacity); in ULocRuns()
418 pl_openEmptyLocaleRuns(le_int32 initialCapacity) in pl_openEmptyLocaleRuns() argument
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DMapMaker.java98 int initialCapacity = UNSET_INT; field in MapMaker
143 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() argument
145 this.initialCapacity == UNSET_INT, in initialCapacity()
147 this.initialCapacity); in initialCapacity()
148 checkArgument(initialCapacity >= 0); in initialCapacity()
149 this.initialCapacity = initialCapacity; in initialCapacity()
154 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
293 if (initialCapacity != UNSET_INT) { in toString()
294 s.add("initialCapacity", initialCapacity); in toString()
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java98 int initialCapacity = UNSET_INT; field in MapMaker
143 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() method in MapMaker
145 this.initialCapacity == UNSET_INT, in initialCapacity()
147 this.initialCapacity); in initialCapacity()
148 checkArgument(initialCapacity >= 0); in initialCapacity()
149 this.initialCapacity = initialCapacity; in initialCapacity()
154 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
293 if (initialCapacity != UNSET_INT) { in toString()
294 s.add("initialCapacity", initialCapacity); in toString()
/external/icu/icu4c/source/common/
Duvectr64.cpp35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
41 _init(initialCapacity, status); in UVector64()
46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
48 if (initialCapacity < 1) { in _init()
49 initialCapacity = DEFAULT_CAPACITY; in _init()
51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
52 initialCapacity = maxCapacity; in _init()
54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
44 _init(initialCapacity, status); in UVector32()
49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
51 if (initialCapacity < 1) { in _init()
52 initialCapacity = DEFAULT_CAPACITY; in _init()
54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
55 initialCapacity = maxCapacity; in _init()
57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp21 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
22 UVector(initialCapacity, status) in UStack()
31 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
32 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp42 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
49 _init(initialCapacity, status); in UVector()
62 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument
69 _init(initialCapacity, status); in UVector()
72 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
77 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init()
78 initialCapacity = DEFAULT_CAPACITY; in _init()
80 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
84 capacity = initialCapacity; in _init()
Duvector.h97 UVector(int32_t initialCapacity, UErrorCode &status);
101 UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
266 void _init(int32_t initialCapacity, UErrorCode &status);
301 UStack(int32_t initialCapacity, UErrorCode &status);
305 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-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java37 assertNull(spec.initialCapacity); in testParse_empty()
50 assertEquals(10, spec.initialCapacity.intValue()); in testParse_initialCapacity()
59 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); in testParse_initialCapacity()
72 assertNull(spec.initialCapacity); in testParse_maximumSize()
93 assertNull(spec.initialCapacity); in testParse_maximumWeight()
122 assertNull(spec.initialCapacity); in testParse_concurrencyLevel()
144 assertNull(spec.initialCapacity); in testParse_weakKeys()
173 assertNull(spec.initialCapacity); in testParse_softValues()
194 assertNull(spec.initialCapacity); in testParse_weakValues()
241 assertNull(spec.initialCapacity); in testParse_writeExpirationDays()
[all …]
/external/guava/android/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java37 assertNull(spec.initialCapacity); in testParse_empty()
50 assertEquals(10, spec.initialCapacity.intValue()); in testParse_initialCapacity()
59 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); in testParse_initialCapacity()
72 assertNull(spec.initialCapacity); in testParse_maximumSize()
93 assertNull(spec.initialCapacity); in testParse_maximumWeight()
122 assertNull(spec.initialCapacity); in testParse_concurrencyLevel()
144 assertNull(spec.initialCapacity); in testParse_weakKeys()
173 assertNull(spec.initialCapacity); in testParse_softValues()
194 assertNull(spec.initialCapacity); in testParse_weakValues()
241 assertNull(spec.initialCapacity); in testParse_writeExpirationDays()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapMakerTest.java65 maker.initialCapacity(-1); in testInitialCapacity_negative()
73 MapMaker maker = new MapMaker().initialCapacity(16); in xtestInitialCapacity_setTwice()
76 maker.initialCapacity(16); in xtestInitialCapacity_setTwice()
83 Map<?, ?> map = new MapMaker().initialCapacity(5).makeMap(); in testReturnsPlainConcurrentHashMapWhenPossible()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerTest.java65 maker.initialCapacity(-1); in testInitialCapacity_negative()
73 MapMaker maker = new MapMaker().initialCapacity(16); in xtestInitialCapacity_setTwice()
76 maker.initialCapacity(16); in xtestInitialCapacity_setTwice()
83 Map<?, ?> map = new MapMaker().initialCapacity(5).makeMap(); in testReturnsPlainConcurrentHashMapWhenPossible()
/external/guava/android/guava/src/com/google/common/cache/
DCacheBuilder.java231 int initialCapacity = UNSET_INT; field in CacheBuilder
354 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder
356 this.initialCapacity == UNSET_INT, in initialCapacity()
358 this.initialCapacity); in initialCapacity()
359 checkArgument(initialCapacity >= 0); in initialCapacity()
360 this.initialCapacity = initialCapacity; in initialCapacity()
365 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
894 if (initialCapacity != UNSET_INT) { in toString()
895 s.add("initialCapacity", initialCapacity); in toString()
DCacheBuilderSpec.java111 @MonotonicNonNullDecl @VisibleForTesting Integer initialCapacity; field in CacheBuilderSpec
169 if (initialCapacity != null) { in toCacheBuilder()
170 builder.initialCapacity(initialCapacity); in toCacheBuilder()
239 initialCapacity, in hashCode()
260 return Objects.equal(initialCapacity, that.initialCapacity) in equals()
324 spec.initialCapacity == null, in parseInteger()
326 spec.initialCapacity); in parseInteger()
327 spec.initialCapacity = value; in parseInteger()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java232 int initialCapacity = UNSET_INT; field in CacheBuilder
355 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder
357 this.initialCapacity == UNSET_INT, in initialCapacity()
359 this.initialCapacity); in initialCapacity()
360 checkArgument(initialCapacity >= 0); in initialCapacity()
361 this.initialCapacity = initialCapacity; in initialCapacity()
366 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
994 if (initialCapacity != UNSET_INT) { in toString()
995 s.add("initialCapacity", initialCapacity); in toString()
DCacheBuilderSpec.java111 @MonotonicNonNull @VisibleForTesting Integer initialCapacity; field in CacheBuilderSpec
169 if (initialCapacity != null) { in toCacheBuilder()
170 builder.initialCapacity(initialCapacity); in toCacheBuilder()
239 initialCapacity, in hashCode()
260 return Objects.equal(initialCapacity, that.initialCapacity) in equals()
323 spec.initialCapacity == null, in parseInteger()
325 spec.initialCapacity); in parseInteger()
326 spec.initialCapacity = value; in parseInteger()
/external/protobuf/javanano/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()

1234