HomeSort by relevance Sort by last modified time
    Searched defs:newCapacity (Results 26 - 50 of 103) sorted by null

12 3 4 5

  /libcore/luni/src/main/java/java/util/
ArrayDeque.java 122 int newCapacity = n << 1;
123 if (newCapacity < 0)
125 Object[] a = new Object[newCapacity];
ArrayList.java 154 Object[] newArray = new Object[newCapacity(s)];
173 private static int newCapacity(int currentCapacity) {
197 int newCapacity = newCapacity(newSize - 1); // ~33% growth room
198 Object[] newArray = new Object[newCapacity];
238 int newCapacity = newCapacity(newSize - 1); // ~33% growth room
239 Object[] newArray = new Object[newCapacity];
HashMap.java 517 int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings));
520 if (newCapacity <= oldCapacity) {
523 if (newCapacity == oldCapacity * 2) {
529 HashMapEntry<K, V>[] newTable = makeTable(newCapacity);
531 int newMask = newCapacity - 1;
547 * @param newCapacity must be a power of two
549 private HashMapEntry<K, V>[] makeTable(int newCapacity) {
551 = (HashMapEntry<K, V>[]) new HashMapEntry[newCapacity];
553 threshold = (newCapacity >> 1) + (newCapacity >> 2); // 3/4 capacit
    [all...]
Hashtable.java 440 int newCapacity = Collections.roundUpToPowerOfTwo(capacityForInitSize(numMappings));
443 if (newCapacity <= oldCapacity) {
449 if (newCapacity == oldCapacity * 2) {
455 HashtableEntry<K, V>[] newTable = makeTable(newCapacity);
457 int newMask = newCapacity - 1;
484 * @param newCapacity must be a power of two
486 private HashtableEntry<K, V>[] makeTable(int newCapacity) {
488 = (HashtableEntry<K, V>[]) new HashtableEntry[newCapacity];
490 threshold = (newCapacity >> 1) + (newCapacity >> 2); // 3/4 capacit
    [all...]
Scanner.java     [all...]
  /external/chromium_org/third_party/icu/source/common/
normalizer2impl.cpp 182 int32_t newCapacity=length+appendLength;
184 if(newCapacity<doubleCapacity) {
185 newCapacity=doubleCapacity;
187 if(newCapacity<256) {
188 newCapacity=256;
190 start=str.getBuffer(newCapacity);
    [all...]
  /external/deqp/framework/qphelper/
qpTestLog.c 653 int newCapacity = deAlign32(deMax32(2*buffer->capacity, newSize), 512);
654 deUint8* newData = (deUint8*)deMalloc(newCapacity);
661 buffer->capacity = newCapacity;
    [all...]
  /external/guava/guava/src/com/google/common/collect/
MinMaxPriorityQueue.java 920 int newCapacity = calculateNewCapacity();
921 Object[] newQueue = new Object[newCapacity];
930 int newCapacity = (oldCapacity < 64)
933 return capAtMaximumSize(newCapacity, maximumSize);
  /external/icu/icu4c/source/common/
normalizer2impl.cpp 183 int32_t newCapacity=length+appendLength;
185 if(newCapacity<doubleCapacity) {
186 newCapacity=doubleCapacity;
188 if(newCapacity<256) {
189 newCapacity=256;
191 start=str.getBuffer(newCapacity);
    [all...]
  /external/icu/icu4c/source/i18n/
rulebasedcollator.cpp 122 int32_t newCapacity = 2 * capacity_;
124 if (newCapacity < altCapacity) {
125 newCapacity = altCapacity;
127 if (newCapacity < 200) {
128 newCapacity = 200;
130 uint8_t *newBuffer = key_.reallocate(newCapacity, length);
136 capacity_ = newCapacity;
    [all...]
tznames_impl.cpp 210 int32_t newCapacity = fNodesCapacity + 1000;
211 if (newCapacity > 0xffff) {
212 newCapacity = 0xffff;
214 CharacterNode *newNodes = (CharacterNode *)uprv_malloc(newCapacity * sizeof(CharacterNode));
221 fNodesCapacity = newCapacity;
    [all...]
  /external/smack/src/org/jivesoftware/smack/util/collections/
AbstractHashedMap.java 578 int newCapacity = data.length * 2;
579 if (newCapacity <= MAXIMUM_CAPACITY) {
580 ensureCapacity(newCapacity);
588 * @param newCapacity the new capacity of the array (a power of two, less or equal to max)
590 protected void ensureCapacity(int newCapacity) {
592 if (newCapacity <= oldCapacity) {
596 threshold = calculateThreshold(newCapacity, loadFactor);
597 data = new HashEntry[newCapacity];
600 HashEntry<K, V> newEntries[] = new HashEntry[newCapacity];
609 int index = hashIndex(entry.hashCode, newCapacity);
    [all...]
  /frameworks/av/media/libstagefright/
AVIExtractor.cpp 252 size_t newCapacity =
255 sp<ABuffer> newBuffer = new ABuffer(newCapacity);
    [all...]
  /frameworks/av/media/libstagefright/mpeg2ts/
ATSParser.cpp     [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
ScheduledThreadPoolExecutor.java     [all...]
  /libcore/luni/src/main/native/
org_apache_harmony_xml_ExpatParser.cpp 72 int newCapacity = capacity * 2;
73 jstring* newArray = new jstring[newCapacity];
82 capacity = newCapacity;
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/
zstrfmt.cpp 296 int32_t newCapacity = fNodesCapacity + 1000;
297 if (newCapacity > 0xffff) {
298 newCapacity = 0xffff;
300 CharacterNode *newNodes = (CharacterNode *)uprv_malloc(newCapacity * sizeof(CharacterNode));
307 fNodesCapacity = newCapacity;
    [all...]
ucol.cpp 254 reallocCEs(collIterate *data, int32_t newCapacity) {
260 uint32_t *newCEs = (uint32_t *)uprv_malloc(newCapacity * 4);
267 data->extendCEsSize = newCapacity;
304 int32_t newCapacity = 2 * offsetBufferSize + UCOL_EXPAND_CE_BUFFER_SIZE;
305 int32_t *newBuffer = reinterpret_cast<int32_t *>(uprv_malloc(newCapacity * 4));
316 offsetBufferSize = newCapacity;
    [all...]
  /frameworks/testing/espresso/libs/
dagger-1.2.1.jar 
  /prebuilts/tools/common/m2/repository/jdom/jdom/1.0/
jdom-1.0.jar 
  /external/owasp/sanitizer/tools/findbugs/lib/
yjp-controller-api-redist.jar 
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.equinox.ds_1.2.1.R36x_v20100803.jar 
  /prebuilts/devtools/tools/lib/
commons-compress-1.0.jar 
  /prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/eclipse/tycho/tycho-bundles-external/0.20.0/eclipse/plugins/
org.eclipse.equinox.ds_1.4.101.v20130813-1853.jar 
  /prebuilts/tools/common/commons-compress/
commons-compress-1.0.jar 

Completed in 1984 milliseconds

12 3 4 5