Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/external/icu4c/common/
Dutrace.c88 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputChar() argument
100 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ in outputChar()
101 (c=='\n' && *outIx>=capacity)) /* case 3 */ in outputChar()
105 if (*outIx < capacity) { in outputChar()
112 if (*outIx < capacity) { in outputChar()
124 char *outBuf, int32_t *outIx, int32_t capacity) { in outputHexBytes() argument
129 outputChar(c, outBuf, outIx, capacity, 0); in outputHexBytes()
134 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { in outputPtrBytes() argument
148 outputHexBytes(*p, 2, outBuf, outIx, capacity); in outputPtrBytes()
153 static void outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t ind… in outputString() argument
[all …]
Dunorm_it.c53 int32_t capacity; member
79 api->start=api->index=api->limit=uni->capacity; in initIndexes()
84 api->start=api->index=api->limit=uni->capacity/2; in initIndexes()
90 reallocArrays(UNormIterator *uni, int32_t capacity, UBool addAtStart) { in reallocArrays() argument
98 states=(uint32_t *)uprv_malloc((capacity+1)*4+capacity*2); in reallocArrays()
103 chars=(UChar *)(states+(capacity+1)); in reallocArrays()
104 uni->capacity=capacity; in reallocArrays()
113 delta=capacity-uni->capacity; in reallocArrays()
165 destIndex=((UNormIterator *)api)->capacity; in moveContentsTowardEnd()
195 int32_t limit, capacity, room; in readNext() local
[all …]
Dcmemory.h258 MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(FALSE) {} in MaybeStackArray()
267 int32_t getCapacity() const { return capacity; } in getCapacity()
277 T *getArrayLimit() const { return getAlias()+capacity; } in getArrayLimit()
304 capacity=otherCapacity; in aliasInstead()
332 int32_t capacity; variable
371 if(length>capacity) { in resize()
372 length=capacity; in resize()
381 capacity=newCapacity; in resize()
398 if(length>capacity) { in orphanOrClone()
399 length=capacity; in orphanOrClone()
[all …]
Duvectr64.cpp26 capacity(0), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
35 capacity(0), in UVector64()
59 capacity = initialCapacity; in _init()
121 if (capacity >= minimumCapacity) { in expandCapacity()
128 if (capacity > (INT32_MAX - 1) / 2) { // integer overflow check in expandCapacity()
132 int32_t newCap = capacity * 2; in expandCapacity()
151 capacity = newCap; in expandCapacity()
165 if (capacity <= maxCapacity || maxCapacity == 0) { in setMaxCapacity()
179 capacity = maxCapacity; in setMaxCapacity()
180 if (count > capacity) { in setMaxCapacity()
[all …]
Duenum.c32 static void* _getBuffer(UEnumeration* en, int32_t capacity) { in _getBuffer() argument
35 if (((_UEnumBuffer*) en->baseContext)->len < capacity) { in _getBuffer()
36 capacity += PAD; in _getBuffer()
38 sizeof(int32_t) + capacity); in _getBuffer()
42 ((_UEnumBuffer*) en->baseContext)->len = capacity; in _getBuffer()
45 capacity += PAD; in _getBuffer()
46 en->baseContext = uprv_malloc(sizeof(int32_t) + capacity); in _getBuffer()
50 ((_UEnumBuffer*) en->baseContext)->len = capacity; in _getBuffer()
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
DShortBufferTest.java51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
53 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
54 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
56 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
68 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
70 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DLongBufferTest.java52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DIntBufferTest.java52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DFloatBufferTest.java52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DDoubleBufferTest.java76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
78 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
79 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
81 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
82 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
85 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
88 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
93 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
95 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
96 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DCharBufferTest.java55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
57 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
60 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
67 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
74 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
75 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DAbstractBufferTest.java43 && baseBuf.limit() <= baseBuf.capacity()); in testCapacity()
54 assertEquals(baseBuf.limit(), baseBuf.capacity()); in testClear()
111 && baseBuf.limit() <= baseBuf.capacity());
126 baseBuf.limit(baseBuf.capacity());
127 assertEquals(baseBuf.limit(), baseBuf.capacity());
133 if (baseBuf.capacity() > 0) {
134 baseBuf.limit(baseBuf.capacity());
135 baseBuf.position(baseBuf.capacity());
137 baseBuf.limit(baseBuf.capacity() - 1);
156 baseBuf.limit(baseBuf.capacity() + 1);
[all …]
/external/emma/core/java12/com/vladium/jcd/cls/
DElementFactory.java21 public static IAttributeCollection newAttributeCollection (final int capacity) in newAttributeCollection() argument
23 return new AttributeCollection (capacity); in newAttributeCollection()
26 public static IConstantCollection newConstantCollection (final int capacity) in newConstantCollection() argument
28 return new ConstantCollection (capacity); in newConstantCollection()
31 public static IFieldCollection newFieldCollection (final int capacity) in newFieldCollection() argument
33 return new FieldCollection (capacity); in newFieldCollection()
36 public static IInterfaceCollection newInterfaceCollection (final int capacity) in newInterfaceCollection() argument
38 return new InterfaceCollection (capacity); in newInterfaceCollection()
41 public static IMethodCollection newMethodCollection (final int capacity) in newMethodCollection() argument
43 return new MethodCollection (capacity); in newMethodCollection()
/external/icu4c/layoutex/
DRunArrays.cpp50 void RunArray::init(le_int32 capacity) in init() argument
52 fLimits = LE_NEW_ARRAY(le_int32, capacity); in init()
92 void FontRuns::init(le_int32 capacity) in init() argument
94 RunArray::init(capacity); in init()
95 fFonts = LE_NEW_ARRAY(const LEFontInstance *, capacity); in init()
98 void FontRuns::grow(le_int32 capacity) in grow() argument
100 RunArray::grow(capacity); in grow()
101 fFonts = (const LEFontInstance **) LE_GROW_ARRAY(fFonts, capacity); in grow()
144 void LocaleRuns::init(le_int32 capacity) in init() argument
146 RunArray::init(capacity); in init()
[all …]
/external/emma/core/java12/com/vladium/util/
DByteArrayOStream.java52 final int capacity = pos + 2; in write2() local
56 if (mbuflen < capacity) in write2()
58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write2()
70 m_pos = capacity; in write2()
76 final int capacity = pos + 3; in write3() local
80 if (mbuflen < capacity) in write3()
82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write3()
95 m_pos = capacity; in write3()
101 final int capacity = pos + 4; in write4() local
105 if (mbuflen < capacity) in write4()
[all …]
/external/srec/shared/src/
DCircularBuffer.c34 ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer) in CircularBufferCreate() argument
37 if (buffer == NULL || capacity <= 0) in CircularBufferCreate()
40 Interface = (CircularBuffer *) MALLOC(sizeof(CircularBuffer) + capacity, mtag); in CircularBufferCreate()
43 Interface->capacity = capacity; in CircularBufferCreate()
68 nbRead = buffer->capacity - buffer-> readIdx; in CircularBufferRead()
74 if (buffer->readIdx == buffer->capacity) in CircularBufferRead()
101 if (buffer->readIdx >= buffer->capacity) in CircularBufferSkip()
102 buffer->readIdx -= buffer->capacity; in CircularBufferSkip()
113 size_t available = buffer->capacity - buffer->size; in CircularBufferWrite()
129 nbWritten = buffer->capacity - buffer->writeIdx; in CircularBufferWrite()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/
DFloatToFixed.java88 ByteBuffer bb = BufferUtils.createByteBuffer(fb.capacity()); in convertToFixed()
145 if (output.capacity() < input.capacity()) in convertToFixed()
150 for (int i = 0; i < input.capacity(); i++){ in convertToFixed()
157 if (output.capacity() < input.capacity()) in convertToFloat()
162 for (int i = 0; i < input.capacity(); i++){ in convertToFloat()
169 if (output.capacity() < input.capacity()) in convertToUByte()
174 for (int i = 0; i < input.capacity(); i++){ in convertToUByte()
183 ByteBuffer bb = BufferUtils.createByteBuffer(fb.capacity()); in convertToUByte()
200 IntBuffer ib = BufferUtils.createIntBuffer(fb.capacity()); in convertToFixed()
216 FloatBuffer fb = BufferUtils.createFloatBuffer(ib.capacity()); in convertToFloat()
[all …]
/external/chromium/third_party/libjingle/source/talk/base/
Dbuffer.h47 Buffer(const void* data, size_t length, size_t capacity) { in Buffer() argument
48 Construct(data, length, capacity); in Buffer()
58 size_t capacity() const { return capacity_; } in capacity() function
89 void SetCapacity(size_t capacity) { in SetCapacity() argument
90 if (capacity > capacity_) { in SetCapacity()
91 talk_base::scoped_array<char> data(new char[capacity]); in SetCapacity()
94 capacity_ = capacity; in SetCapacity()
107 void Construct(const void* data, size_t length, size_t capacity) { in Construct() argument
108 data_.reset(new char[capacity_ = capacity]); in Construct()
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
DLoadPathToFileCache.java37 public LoadPathToFileCache(int capacity) { in LoadPathToFileCache() argument
38 cache = new LRUCache<String, String>(capacity); in LoadPathToFileCache()
116 private final int capacity; field in LoadPathToFileCache.LRUCache
118 LRUCache(int capacity) { in LRUCache() argument
119 super(capacity, 0.75f, true); in LRUCache()
120 this.capacity = capacity; in LRUCache()
145 return size() > capacity; in removeEldestEntry()
/external/valgrind/main/drd/
Ddrd_vc.c52 vc->capacity = 0; in DRD_()
189 if (new_size > result->capacity) in DRD_()
298 tl_assert(vc->size <= vc->capacity); in DRD_()
314 tl_assert(vc->capacity > VC_PREALLOCATED in DRD_()
318 if (new_capacity > vc->capacity) in DRD_()
320 if (vc->vc && vc->capacity > VC_PREALLOCATED) in DRD_()
324 && vc->capacity > VC_PREALLOCATED); in DRD_()
332 && vc->capacity <= VC_PREALLOCATED); in DRD_()
336 vc->capacity * sizeof(vc->vc[0])); in DRD_()
342 && vc->capacity <= VC_PREALLOCATED); in DRD_()
[all …]
/external/v8/src/
Dsmall-pointer-list.h47 explicit SmallPointerList(int capacity) : data_(kEmptyTag) { in SmallPointerList() argument
48 Reserve(capacity); in SmallPointerList()
51 void Reserve(int capacity) { in Reserve() argument
52 if (capacity < 2) return; in Reserve()
54 if (list()->capacity() >= capacity) return; in Reserve()
56 list()->AddBlock(NULL, capacity - list()->capacity()); in Reserve()
60 PointerList* list = new PointerList(capacity); in Reserve()
/external/qemu/hw/
Dgoldfish_mmc.c233 uint64_t capacity; in goldfish_mmc_do_command() local
238 capacity = sector_count * 512; in goldfish_mmc_do_command()
239 if (capacity > 2147483648U) { in goldfish_mmc_do_command()
251 m = (uint32_t)(capacity / (512*1024)) - 1; in goldfish_mmc_do_command()
254 … "SD card too big (%lld bytes). Maximum SDHC card size is 128 gigabytes.\n", (long long)capacity); in goldfish_mmc_do_command()
278 capacity = sector_count * 512; in goldfish_mmc_do_command()
279 if (capacity > 2147483648U) { in goldfish_mmc_do_command()
280 …err, "SD card too big (%lld bytes). Maximum SD card size is 2 gigabytes.\n", (long long)capacity); in goldfish_mmc_do_command()
283 capacity >>= 10; // convert to Kbytes in goldfish_mmc_do_command()
284 while (capacity > 4096) { in goldfish_mmc_do_command()
[all …]
/external/icu4c/tools/toolutil/
Dtoolutil.cpp216 int32_t capacity, maxCapacity, size, idx; member
237 mem->capacity=initialCapacity; in utm_open()
267 utm_hasCapacity(UToolMemory *mem, int32_t capacity) { in utm_hasCapacity() argument
268 if(mem->capacity<capacity) { in utm_hasCapacity()
271 if(mem->maxCapacity<capacity) { in utm_hasCapacity()
278 if(capacity>=2*mem->capacity) { in utm_hasCapacity()
279 newCapacity=capacity; in utm_hasCapacity()
280 } else if(mem->capacity<=mem->maxCapacity/3) { in utm_hasCapacity()
281 newCapacity=2*mem->capacity; in utm_hasCapacity()
299 mem->capacity=newCapacity; in utm_hasCapacity()
/external/srec/shared/include/
DCircularBuffer.h52 size_t capacity; member
79 ESR_SHARED_API ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuff…
84 #define CircularBufferGetCapacity(buffer) ((buffer)->capacity + 0)
99 #define CircularBufferIsFull(buffer) ((buffer)->size == (buffer)->capacity)
111 #define CircularBufferGetAvailable(buffer) ((buffer)->capacity - (buffer)->size)
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DIntMap.java50 private int size, mask, capacity, threshold; field in IntMap
70 capacity = 1; in IntMap()
71 while (capacity < initialCapacity){ in IntMap()
72 capacity <<= 1; in IntMap()
75 this.threshold = (int) (capacity * loadFactor); in IntMap()
76 this.table = new Entry[capacity]; in IntMap()
77 this.mask = capacity - 1; in IntMap()
142 int newCapacity = 2 * capacity; in put()
160 capacity = newCapacity; in put()
162 mask = capacity - 1; in put()

12345678910>>...20