/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
IntMap.java | 50 private int size, mask, capacity, threshold; field in class:IntMap 70 capacity = 1; 71 while (capacity < initialCapacity){ 72 capacity <<= 1; 75 this.threshold = (int) (capacity * loadFactor); 76 this.table = new Entry[capacity]; 77 this.mask = capacity - 1; 142 int newCapacity = 2 * capacity; 160 capacity = newCapacity; 162 mask = capacity - 1 [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
virtualsocketserver.h | 64 void set_network_capacity(uint32 capacity) { 65 network_capacity_ = capacity; 70 void set_send_buffer_capacity(uint32 capacity) { 71 send_buffer_capacity_ = capacity; 76 void set_recv_buffer_capacity(uint32 capacity) { 77 recv_buffer_capacity_ = capacity;
|
/external/qemu/android/utils/ |
intmap.c | 30 int capacity; member in struct:AIntMap 46 map->capacity = 4; 63 map->capacity = 0; 99 int oldCapacity = map->capacity; 120 map->capacity = newCapacity; 142 if (map->size >= map->capacity)
|
/external/qemu/hw/ |
goldfish_battery.c | 46 int capacity; member in struct:goldfish_battery_state 60 QFIELD_INT32(capacity), 108 return s->capacity; 161 s->capacity = 50; // 50% charged 193 battery_state->capacity = value; 258 sprintf(buffer, "capacity: %d\r\n", battery_state->capacity);
|
/libcore/luni/src/main/java/java/nio/ |
DoubleBuffer.java | 42 * @param capacity 43 * the capacity of the new buffer. 46 * if {@code capacity} is less than zero. 48 public static DoubleBuffer allocate(int capacity) { 49 if (capacity < 0) { 50 throw new IllegalArgumentException("capacity < 0: " + capacity); 52 return new DoubleArrayBuffer(new double[capacity]); 73 * {@code start + doubleCount}, capacity will be the length of the array. 95 DoubleBuffer(int capacity) { [all...] |
FloatBuffer.java | 41 * @param capacity 42 * the capacity of the new buffer. 45 * if {@code capacity} is less than zero. 47 public static FloatBuffer allocate(int capacity) { 48 if (capacity < 0) { 49 throw new IllegalArgumentException("capacity < 0: " + capacity); 51 return new FloatArrayBuffer(new float[capacity]); 72 * {@code start + floatCount}, capacity will be the length of the array. 96 FloatBuffer(int capacity) { [all...] |
IntBuffer.java | 39 * @param capacity 40 * the capacity of the new buffer. 43 * if {@code capacity} is less than zero. 45 public static IntBuffer allocate(int capacity) { 46 if (capacity < 0) { 47 throw new IllegalArgumentException("capacity < 0: " + capacity); 49 return new IntArrayBuffer(new int[capacity]); 70 * {@code start + intCount}, capacity will be the length of the array. 92 IntBuffer(int capacity) { [all...] |
LongBuffer.java | 41 * @param capacity 42 * the capacity of the new buffer. 45 * if {@code capacity} is less than zero. 47 public static LongBuffer allocate(int capacity) { 48 if (capacity < 0) { 49 throw new IllegalArgumentException("capacity < 0: " + capacity); 51 return new LongArrayBuffer(new long[capacity]); 72 * {@code start + longCount}, capacity will be the length of the array. 94 LongBuffer(int capacity) { [all...] |
ShortBuffer.java | 41 * @param capacity 42 * the capacity of the new buffer. 45 * if {@code capacity} is less than zero. 47 public static ShortBuffer allocate(int capacity) { 48 if (capacity < 0) { 49 throw new IllegalArgumentException("capacity < 0: " + capacity); 51 return new ShortArrayBuffer(new short[capacity]); 72 * {@code start + shortCount}, capacity will be the length of the array. 94 ShortBuffer(int capacity) { [all...] |
CharArrayBuffer.java | 35 private CharArrayBuffer(int capacity, char[] backingArray, int arrayOffset, boolean isReadOnly) { 36 super(capacity); 43 CharArrayBuffer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
DoubleArrayBuffer.java | 35 private DoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset, boolean isReadOnly) { 36 super(capacity); 43 DoubleArrayBuffer buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); 60 limit = capacity;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/text/ |
LineBreakIteratorPoolICU.h | 88 if (m_pool.size() == capacity) { 99 static const size_t capacity = 4; member in class:WebCore::LineBreakIteratorPool 102 typedef Vector<Entry, capacity> Pool;
|
/external/emma/core/java12/com/vladium/jcd/cls/ |
FieldCollection.java | 126 FieldCollection (final int capacity) 128 m_fields = capacity < 0 ? new ArrayList () : new ArrayList (capacity);
|
MethodCollection.java | 131 MethodCollection (final int capacity) 133 m_methods = capacity < 0 ? new ArrayList () : new ArrayList (capacity);
|
/external/apache-http/src/org/apache/http/util/ |
ByteArrayBuffer.java | 48 public ByteArrayBuffer(int capacity) { 50 if (capacity < 0) { 51 throw new IllegalArgumentException("Buffer capacity may not be negative"); 53 this.buffer = new byte[capacity]; 135 public int capacity() { method in class:ByteArrayBuffer
|
/external/chromium_org/chrome/browser/extensions/api/system_memory/ |
system_memory_apitest.cc | 18 info_.capacity = 4096;
|
/external/chromium_org/third_party/icu/source/common/ |
unistr_cnv.cpp | 159 int32_t capacity; local 161 // Assume that the capacity is real and a limit pointer won't wrap around. 162 capacity = (int32_t)dstSize; 164 // Pin the capacity so that a limit pointer does not wrap around. 168 capacity = (int32_t)(targetLimit - target); 177 return u_terminateChars(target, capacity, 0, &status); 185 return toUTF8(start, length, target, capacity); 191 if(length <= capacity) { 194 destLength = capacity; 197 return u_terminateChars(target, capacity, length, &status) [all...] |
/external/chromium_org/third_party/leveldatabase/src/include/leveldb/ |
cache.h | 9 // capacity. For example, a cache where the values are variable 28 // Create a new cache with a fixed size capacity. This implementation 30 extern Cache* NewLRUCache(size_t capacity); 44 // the specified charge against the total cache capacity.
|
/external/icu4c/common/ |
unistr_cnv.cpp | 159 int32_t capacity; local 161 // Assume that the capacity is real and a limit pointer won't wrap around. 162 capacity = (int32_t)dstSize; 164 // Pin the capacity so that a limit pointer does not wrap around. 168 capacity = (int32_t)(targetLimit - target); 177 return u_terminateChars(target, capacity, 0, &status); 185 return toUTF8(start, length, target, capacity); 191 if(length <= capacity) { 194 destLength = capacity; 197 return u_terminateChars(target, capacity, length, &status) [all...] |
/external/icu4c/i18n/unicode/ |
fpositer.h | 102 * Otherwise, if capacity is insufficient, returns the negative of the 107 int32_t getData(int32_t *dest, int32_t capacity) const;
|
upluralrules.h | 136 * @param capacity The capacity of keyword. 144 UChar *keyword, int32_t capacity,
|
/external/icu4c/test/intltest/ |
strtest.cpp | 367 int32_t capacity = -1; local 368 char *dest = sink.GetAppendBuffer(0, 50, scratch, (int32_t)sizeof(scratch), &capacity); 369 if(dest != NULL || capacity != 0) { 373 dest = sink.GetAppendBuffer(10, 50, scratch, 9, &capacity); 374 if(dest != NULL || capacity != 0) { 378 dest = sink.GetAppendBuffer(5, 50, scratch, (int32_t)sizeof(scratch), &capacity); 379 if(dest != scratch || capacity != (int32_t)sizeof(scratch)) { 398 int32_t capacity = -1; local 399 char *dest = sink.GetAppendBuffer(0, 50, scratch, (int32_t)sizeof(scratch), &capacity); 400 if(dest != NULL || capacity != 0) [all...] |
/external/qemu/ |
qstring.h | 23 size_t capacity; member in struct:QString
|
/external/v8/src/ |
list.h | 53 INLINE(explicit List(int capacity)) { Initialize(capacity); } 82 INLINE(int capacity() const) { return capacity_; } 142 INLINE(void Initialize(int capacity)); 152 // Increase the capacity of a full list, and add an element.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
ReadOnlyCharBufferTest.java | 114 buf.put(new char[buf.capacity() + 1], 0, buf.capacity() + 1); 166 String str = String.valueOf(new char[buf.capacity()]); 185 String longStr = String.valueOf(new char[buf.capacity()+1]);
|