Searched refs:capacity (Results 126 - 150 of 732) sorted by relevance

1234567891011>>

/external/chromium_org/url/
H A Durl_canon_stdstring.cc12 str_->resize(str_->capacity());
/external/icu/icu4c/source/common/
H A Dunistr_cnv.cpp159 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, lengt
[all...]
H A Dcharstr.cpp110 UBool CharString::ensureCapacity(int32_t capacity, argument
116 if(capacity>buffer.getCapacity()) {
118 desiredCapacityHint=capacity+buffer.getCapacity();
120 if( (desiredCapacityHint<=capacity || buffer.resize(desiredCapacityHint, len+1)==NULL) &&
121 buffer.resize(capacity, len+1)==NULL
/external/icu/icu4c/source/i18n/unicode/
H A Dupluralrules.h132 * @param capacity The capacity of keyword.
140 UChar *keyword, int32_t capacity,
H A Dudatpg.h203 * @param capacity the capacity of bestPattern.
212 UChar *bestPattern, int32_t capacity,
237 * @param capacity
238 * the capacity of bestPattern.
249 UChar *bestPattern, int32_t capacity,
266 * @param capacity the capacity of skeleton.
275 UChar *skeleton, int32_t capacity,
295 * @param capacity th
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dstrtest.cpp367 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 !
[all...]
/external/qemu/include/qapi/qmp/
H A Dqstring.h23 size_t capacity; member in struct:QString
/external/chromium_org/mojo/public/cpp/bindings/tests/
H A Darray_unittest.cc266 size_t capacity = array.storage().capacity(); local
267 array.resize(capacity);
268 ASSERT_EQ(capacity, array.size());
277 array.resize(capacity + 2);
278 ASSERT_EQ(capacity + 2, array.size());
280 for (size_t i = 0; i < capacity; i++) {
317 size_t capacity = array.storage().capacity(); local
318 array.resize(capacity);
349 size_t capacity = array.storage().capacity(); local
384 size_t capacity = array.storage().capacity(); local
[all...]
/external/stlport/test/unit/
H A Dvector_test.cpp30 CPPUNIT_TEST(capacity);
53 void capacity();
90 CPPUNIT_ASSERT( (*it).capacity() == 0 );
110 size_t v1Cap = v1.capacity();
111 size_t v2Cap = v2.capacity();
116 CPPUNIT_ASSERT( v1.capacity() == v2Cap );
120 CPPUNIT_ASSERT( v2.capacity() == v1Cap );
293 void VectorTest::capacity() function in class:VectorTest
298 CPPUNIT_ASSERT( v.capacity() == 0 );
300 CPPUNIT_ASSERT( v.capacity() >
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DV8PersistentValueVector.h59 static void ReserveCapacity(Impl* impl, size_t capacity) argument
61 impl->reserveCapacity(capacity);
/external/chromium_org/third_party/icu/source/common/unicode/
H A Dutrace.h307 * @param capacity Length of the output buffer.
313 * If buffer capacity is insufficient, the required capacity is returned.
317 utrace_vformat(char *outBuf, int32_t capacity,
328 * @param capacity Length of the output buffer.
334 * If buffer capacity is insufficient, the required capacity is returned.
338 utrace_format(char *outBuf, int32_t capacity,
/external/guava/guava/src/com/google/common/collect/
H A DLinkedHashMultiset.java45 * capacity.
84 super(new LinkedHashMap<E, Count>(Maps.capacity(distinctElements)));
103 Maps.capacity(distinctElements)));
/external/icu/icu4c/source/common/unicode/
H A Dutrace.h307 * @param capacity Length of the output buffer.
313 * If buffer capacity is insufficient, the required capacity is returned.
317 utrace_vformat(char *outBuf, int32_t capacity,
328 * @param capacity Length of the output buffer.
334 * If buffer capacity is insufficient, the required capacity is returned.
338 utrace_format(char *outBuf, int32_t capacity,
/external/icu/icu4c/source/layoutex/layout/
H A DRunArrays.h171 * @param capacity is the initial size of the data array.
177 virtual void init(le_int32 capacity);
185 * @param capacity is the initial size of the data array.
191 virtual void grow(le_int32 capacity);
365 virtual void init(le_int32 capacity);
366 virtual void grow(le_int32 capacity);
502 virtual void init(le_int32 capacity);
503 virtual void grow(le_int32 capacity);
639 virtual void init(le_int32 capacity);
640 virtual void grow(le_int32 capacity);
[all...]
/external/libcxx/test/containers/sequences/dynarray/dynarray.overview/
H A DAndroid.mk27 test_name := containers/sequences/dynarray/dynarray.overview/capacity
28 test_src := capacity.pass.cpp
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
H A DByteBufferHelper.java39 nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) {
/external/srec/portable/src/
H A DArrayListImpl.c60 impl->capacity = minCapacity;
78 if (impl->size >= impl->capacity)
81 size_t newCapacity = impl->capacity * 2;
86 impl->capacity = newCapacity;
122 if (impl->capacity > impl->minCapacity &&
123 impl->size <= impl->capacity / 4)
126 size_t newCapacity = impl->capacity / 2;
132 impl->capacity = newCapacity;
/external/deqp/framework/delibs/depool/
H A DdeMemPool.c52 int capacity; member in struct:MemPage_s
119 * \param capacity Capacity allocated for the memory page.
121 static void MemPage_init (MemPage* page, int capacity) argument
125 memset(page + 1, 0xCD, capacity);
127 page->capacity = capacity;
133 * \param capacity Capacity for the memory page.
136 static MemPage* MemPage_create (int capacity) argument
138 MemPage* page = (MemPage*)deMalloc(sizeof(MemPage) + capacity);
144 MemPage_init(page, capacity);
[all...]
/external/bluetooth/bluedroid/osi/src/
H A Dfixed_queue.c33 size_t capacity; member in struct:fixed_queue_t
36 fixed_queue_t *fixed_queue_new(size_t capacity) { argument
45 ret->enqueue_sem = semaphore_new(capacity);
54 ret->capacity = capacity;
/external/chromium_org/third_party/icu/source/common/
H A Dcharstr.cpp110 UBool CharString::ensureCapacity(int32_t capacity, argument
116 if(capacity>buffer.getCapacity()) {
118 desiredCapacityHint=capacity+buffer.getCapacity();
120 if( (desiredCapacityHint<=capacity || buffer.resize(desiredCapacityHint, len+1)==NULL) &&
121 buffer.resize(capacity, len+1)==NULL
/external/chromium_org/third_party/icu/source/i18n/
H A Dbocsu.cpp101 int32_t capacity; local
106 char *buffer=sink.GetAppendBuffer(1, length*2, scratch, (int32_t)sizeof(scratch), &capacity);
108 // We must have capacity>=SLOPE_MAX_BYTES in case u_writeDiff() writes that much,
111 if(capacity<16) {
113 capacity=(int32_t)sizeof(scratch);
116 uint8_t *lastSafe=p+capacity-SLOPE_MAX_BYTES;
H A Dudatpg.cpp59 UChar *bestPattern, int32_t capacity,
63 bestPattern, capacity, pErrorCode);
70 UChar *bestPattern, int32_t capacity,
81 return result.extract(bestPattern, capacity, *pErrorCode);
87 UChar *skeleton, int32_t capacity,
98 return result.extract(skeleton, capacity, *pErrorCode);
104 UChar *skeleton, int32_t capacity,
115 return result.extract(skeleton, capacity, *pErrorCode);
122 UChar *conflictingPattern, int32_t capacity, int32_t *pLength,
135 int32_t length=conflictingPatternString.extract(conflictingPattern, capacity, *pErrorCod
57 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UChar *bestPattern, int32_t capacity, UErrorCode *pErrorCode) argument
67 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UDateTimePatternMatchOptions options, UChar *bestPattern, int32_t capacity, UErrorCode *pErrorCode) argument
85 udatpg_getSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, UErrorCode *pErrorCode) argument
102 udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, UErrorCode *pErrorCode) argument
119 udatpg_addPattern(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, UBool override, UChar *conflictingPattern, int32_t capacity, int32_t *pLength, UErrorCode *pErrorCode) argument
[all...]
/external/chromium_org/third_party/icu/source/i18n/unicode/
H A Dudatpg.h203 * @param capacity the capacity of bestPattern.
212 UChar *bestPattern, int32_t capacity,
237 * @param capacity
238 * the capacity of bestPattern.
249 UChar *bestPattern, int32_t capacity,
266 * @param capacity the capacity of skeleton.
275 UChar *skeleton, int32_t capacity,
295 * @param capacity th
[all...]
/external/qemu/distrib/mini-glib/src/
H A Dglib-mini.c129 size_t capacity = 128; local
130 char* buffer = g_malloc(capacity);
134 int len = vsnprintf(buffer, capacity, fmt, args2);
141 capacity *= 2;
142 if (capacity > INT_MAX)
145 buffer = g_realloc(buffer, capacity);
381 // - Array capacity is always 2^N
409 int capacity; member in struct:_GHashTable
434 hash_table->capacity = HASH_MIN_CAPACITY;
435 hash_table->entries = g_new0(GHashEntry, hash_table->capacity);
600 guint capacity = hash_table->capacity; local
[all...]
/external/icu/icu4c/source/i18n/
H A Dudatpg.cpp59 UChar *bestPattern, int32_t capacity,
63 bestPattern, capacity, pErrorCode);
70 UChar *bestPattern, int32_t capacity,
81 return result.extract(bestPattern, capacity, *pErrorCode);
87 UChar *skeleton, int32_t capacity,
98 return result.extract(skeleton, capacity, *pErrorCode);
104 UChar *skeleton, int32_t capacity,
115 return result.extract(skeleton, capacity, *pErrorCode);
122 UChar *conflictingPattern, int32_t capacity, int32_t *pLength,
135 int32_t length=conflictingPatternString.extract(conflictingPattern, capacity, *pErrorCod
57 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UChar *bestPattern, int32_t capacity, UErrorCode *pErrorCode) argument
67 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UDateTimePatternMatchOptions options, UChar *bestPattern, int32_t capacity, UErrorCode *pErrorCode) argument
85 udatpg_getSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, UErrorCode *pErrorCode) argument
102 udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, UErrorCode *pErrorCode) argument
119 udatpg_addPattern(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, UBool override, UChar *conflictingPattern, int32_t capacity, int32_t *pLength, UErrorCode *pErrorCode) argument
[all...]

Completed in 1173 milliseconds

1234567891011>>