/external/clang/test/Rewriter/ |
rewrite-nest.m | 10 NSUInteger capacity; 22 while (mapTable->capacity) {
|
/external/icu4c/layoutex/ |
RunArrays.cpp | 50 void RunArray::init(le_int32 capacity) 52 fLimits = LE_NEW_ARRAY(le_int32, capacity); 92 void FontRuns::init(le_int32 capacity) 94 RunArray::init(capacity); 95 fFonts = LE_NEW_ARRAY(const LEFontInstance *, capacity); 98 void FontRuns::grow(le_int32 capacity) 100 RunArray::grow(capacity); 101 fFonts = (const LEFontInstance **) LE_GROW_ARRAY(fFonts, capacity); 144 void LocaleRuns::init(le_int32 capacity) 146 RunArray::init(capacity); [all...] |
/frameworks/base/media/libstagefright/foundation/ |
ABuffer.cpp | 25 ABuffer::ABuffer(size_t capacity) 26 : mData(malloc(capacity)), 27 mCapacity(capacity), 29 mRangeLength(capacity), 34 ABuffer::ABuffer(void *data, size_t capacity) 36 mCapacity(capacity), 38 mRangeLength(capacity),
|
/libcore/luni/src/main/java/java/util/ |
LinkedHashSet.java | 49 * capacity. 51 * @param capacity 52 * the initial capacity of this {@code LinkedHashSet}. 54 public LinkedHashSet(int capacity) { 55 super(new LinkedHashMap<E, HashSet<E>>(capacity)); 60 * capacity and load factor. 62 * @param capacity 63 * the initial capacity. 67 public LinkedHashSet(int capacity, float loadFactor) { 68 super(new LinkedHashMap<E, HashSet<E>>(capacity, loadFactor)) [all...] |
/external/icu4c/common/ |
ustrfmt.h | 14 uprv_itou (UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth);
|
utrace.c | 88 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { 93 * 3. When preflighting buffer len (buffer capacity is exceeded), when 100 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ 101 (c=='\n' && *outIx>=capacity)) /* case 3 */ 105 if (*outIx < capacity) { 112 if (*outIx < capacity) { 124 char *outBuf, int32_t *outIx, int32_t capacity) { 129 outputChar(c, outBuf, outIx, capacity, 0); 134 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { 148 outputHexBytes(*p, 2, outBuf, outIx, capacity); [all...] |
ustrfmt.c | 18 * @param capacity capacity of buffer 23 * capacity. 28 uprv_itou (UChar * buffer, int32_t capacity, 40 } while(i && length<capacity); 46 if(length<capacity){
|
uenum.c | 31 or reallocating it if at least 'capacity' bytes are not available. */ 32 static void* _getBuffer(UEnumeration* en, int32_t capacity) { 35 if (((_UEnumBuffer*) en->baseContext)->len < capacity) { 36 capacity += PAD; 38 sizeof(int32_t) + capacity); 42 ((_UEnumBuffer*) en->baseContext)->len = capacity; 45 capacity += PAD; 46 en->baseContext = uprv_malloc(sizeof(int32_t) + capacity); 50 ((_UEnumBuffer*) en->baseContext)->len = capacity;
|
/system/core/libcutils/ |
buffer.c | 27 Buffer* bufferCreate(size_t capacity) { 32 buffer->capacity = capacity; 34 buffer->data = malloc(capacity); 47 Buffer* bufferWrap(char* data, size_t capacity, size_t size) { 54 buffer->capacity = capacity; 61 if (expected > buffer->capacity) { 68 buffer->capacity = expected;
|
/external/clang/lib/Sema/ |
TypeLocBuilder.h | 30 /// The capacity of the current buffer. 31 size_t Capacity; 46 : Buffer(InlineBuffer), Capacity(InlineCapacity), Index(InlineCapacity) {} 53 /// Ensures that this buffer has at least as much capacity as described. 55 if (Requested > Capacity) 86 Index = Capacity; 110 size_t FullDataSize = Capacity - Index; 123 size_t FullDataSize = Capacity - Index; 140 size_t RequiredCapacity = Capacity + (LocalSize - Index); 141 size_t NewCapacity = Capacity * 2 [all...] |
/external/emma/core/java12/com/vladium/util/ |
ByteArrayOStream.java | 39 $assert.ASSERT (initialCapacity >= 0, "negative initial capacity: " + initialCapacity); 52 final int capacity = pos + 2; local 56 if (mbuflen < capacity) 58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; 70 m_pos = capacity; 76 final int capacity = pos + 3; local 80 if (mbuflen < capacity) 82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; 95 m_pos = capacity; 101 final int capacity = pos + 4 local 226 public final int capacity () method in class:ByteArrayOStream 244 final int capacity = pos + 1; local 273 final int capacity = pos + length; local [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
buffer.h | 38 // Unlike std::string/vector, does not initialize data when expanding capacity. 47 Buffer(const void* data, size_t length, size_t capacity) { 48 Construct(data, length, capacity); 58 size_t capacity() const { return capacity_; } function in class:talk_base::Buffer 89 void SetCapacity(size_t capacity) { 90 if (capacity > capacity_) { 91 talk_base::scoped_array<char> data(new char[capacity]); 94 capacity_ = capacity; 107 void Construct(const void* data, size_t length, size_t capacity) { 108 data_.reset(new char[capacity_ = capacity]); [all...] |
/external/emma/core/java12/com/vladium/jcd/cls/ |
ElementFactory.java | 21 public static IAttributeCollection newAttributeCollection (final int capacity) 23 return new AttributeCollection (capacity); 26 public static IConstantCollection newConstantCollection (final int capacity) 28 return new ConstantCollection (capacity); 31 public static IFieldCollection newFieldCollection (final int capacity) 33 return new FieldCollection (capacity); 36 public static IInterfaceCollection newInterfaceCollection (final int capacity) 38 return new InterfaceCollection (capacity); 41 public static IMethodCollection newMethodCollection (final int capacity) 43 return new MethodCollection (capacity); [all...] |
/libcore/luni/src/main/java/java/nio/ |
DoubleArrayBuffer.java | 42 DoubleArrayBuffer(int capacity) { 43 this(capacity, new double[capacity], 0); 46 DoubleArrayBuffer(int capacity, double[] backingArray, int offset) { 47 super(capacity);
|
FloatArrayBuffer.java | 42 FloatArrayBuffer(int capacity) { 43 this(capacity, new float[capacity], 0); 46 FloatArrayBuffer(int capacity, float[] backingArray, int offset) { 47 super(capacity);
|
IntArrayBuffer.java | 42 IntArrayBuffer(int capacity) { 43 this(capacity, new int[capacity], 0); 46 IntArrayBuffer(int capacity, int[] backingArray, int offset) { 47 super(capacity);
|
LongArrayBuffer.java | 42 LongArrayBuffer(int capacity) { 43 this(capacity, new long[capacity], 0); 46 LongArrayBuffer(int capacity, long[] backingArray, int offset) { 47 super(capacity);
|
ShortArrayBuffer.java | 42 ShortArrayBuffer(int capacity) { 43 this(capacity, new short[capacity], 0); 46 ShortArrayBuffer(int capacity, short[] backingArray, int offset) { 47 super(capacity);
|
/system/core/toolbox/ |
dynarray.c | 8 a->count = a->capacity = 0; 16 int old_cap = a->capacity; 42 a->capacity = new_cap; 48 if (a->count >= a->capacity) 59 a->count = a->capacity = 0;
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
FloatBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); [all...] |
IntBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); [all...] |
LongBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); [all...] |
ShortBufferTest.java | 51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 53 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 54 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 56 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 68 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 70 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 71 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); [all...] |
DoubleBufferTest.java | 76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 78 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 79 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 81 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 82 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 85 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 88 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 93 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 95 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 96 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
SparseIntArrayTest.java | 44 notes = "Test SparseIntArray with default capacity.", 50 notes = "Test SparseIntArray with default capacity.", 56 notes = "Test SparseIntArray with default capacity.", 62 notes = "Test SparseIntArray with default capacity.", 68 notes = "Test SparseIntArray with default capacity.", 74 notes = "Test SparseIntArray with default capacity.", 80 notes = "Test SparseIntArray with default capacity.", 86 notes = "Test SparseIntArray with default capacity.", 92 notes = "Test SparseIntArray with default capacity.", 98 notes = "Test SparseIntArray with default capacity." [all...] |