/ndk/sources/cxx-stl/llvm-libc++/test/strings/basic.string/string.cons/ |
substr.pass.cpp | 38 assert(s2.capacity() >= s2.size()); 61 assert(s2.capacity() >= s2.size()); 84 assert(s2.capacity() >= s2.size());
|
iter_alloc.pass.cpp | 38 assert(s2.capacity() >= s2.size()); 56 assert(s2.capacity() >= s2.size());
|
/external/icu4c/common/ |
ustrenum.cpp | 81 StringEnumeration::ensureCharsCapacity(int32_t capacity, UErrorCode &status) { 82 if(U_SUCCESS(status) && capacity>charsCapacity) { 83 if(capacity<(charsCapacity+charsCapacity/2)) { 85 capacity=charsCapacity+charsCapacity/2; 90 chars=(char *)uprv_malloc(capacity); 96 charsCapacity=capacity;
|
uvectr64.h | 62 int32_t capacity; member in class:UVector64 64 int32_t maxCapacity; // Limit beyond which capacity is not permitted to grow. 156 * Set the maximum allowed buffer capacity for this vector/stack. 158 * A Limit of zero means unlimited capacity. 203 if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) {
|
/external/chromium/base/memory/ |
scoped_vector.h | 57 void reserve(size_t capacity) { v.reserve(capacity); }
|
/external/eigen/unsupported/test/mpreal/ |
dlmalloc.h | 423 given initial capacity, or, if 0, the default granularity size. It
426 lock to control access. The capacity of the space will grow
432 mspace create_mspace(size_t capacity, int locked);
445 space is used for bookkeeping, so the capacity must be at least this
451 mspace create_mspace_with_base(void* base, size_t capacity, int locked);
|
/external/flac/libFLAC/ |
bitwriter.c | 74 * The default capacity here doesn't matter too much. The buffer always grows 105 unsigned capacity; /* capacity of buffer in words */ member in struct:FLAC__BitWriter 134 if(bw->capacity >= new_capacity) 137 /* round up capacity increase to the nearest FLAC__BITWRITER_DEFAULT_INCREMENT */ 138 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT) 139 new_capacity += FLAC__BITWRITER_DEFAULT_INCREMENT - ((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); 141 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); 142 FLAC__ASSERT(new_capacity > bw->capacity); 149 bw->capacity = new_capacity [all...] |
/external/icu4c/common/unicode/ |
uscript.h | 409 * If required capacity is greater than capacity of the destination buffer then the error code 410 * is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned 418 * @param capacity the capacity (size) fo UScriptCode buffer passed in. 424 uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err); 492 * If there are more than capacity script codes to be written, then 500 * @param capacity capacity of the scripts array 506 * written to scripts unless U_BUFFER_OVERFLOW_ERROR indicates insufficient capacity [all...] |
bytestream.h | 70 * Returns a writable buffer for appending and writes the buffer's capacity to 83 * int32_t capacity; 84 * char* buffer = sink->GetAppendBuffer(..., &capacity); 85 * ... Write n bytes into buffer, with n <= capacity. 91 * If a caller cannot provide a reasonable guess at the desired capacity, 100 * @param min_capacity required minimum capacity of the returned buffer; 102 * @param desired_capacity_hint desired capacity of the returned buffer; 105 * @param scratch_capacity capacity of the scratch buffer 107 * capacity of the returned buffer 137 * This sink will not write more than capacity bytes to outbuf [all...] |
/external/icu4c/tools/toolutil/ |
denseranges.cpp | 87 * Does it make sense to write 1..capacity ranges? 94 * @param capacity Maximum number of ranges. 95 * @return Minimum number of ranges (at most capacity) that have the desired density, 101 int32_t ranges[][2], int32_t capacity) { 119 // See if we can split [minValue, maxValue] into 2..capacity ranges, 120 // divided by the 1..(capacity-1) largest gaps. 121 LargestGaps gaps(capacity-1); 138 // The values are too sparse for capacity or fewer ranges
|
/external/llvm/lib/Support/ |
raw_ostream.cpp | 712 // capacity. This allows raw_ostream to write directly into the correct place, 721 SetBuffer(OS.end(), OS.capacity() - OS.size()); 735 if (OS.capacity() - OS.size() < 64) 736 OS.reserve(OS.capacity() * 2); 737 SetBuffer(OS.end(), OS.capacity() - OS.size()); 745 assert(OS.size() + Size <= OS.capacity() && "Invalid write_impl() call!"); 755 if (OS.capacity() - OS.size() < 64) 756 OS.reserve(OS.capacity() * 2); 759 SetBuffer(OS.end(), OS.capacity() - OS.size());
|
/external/marisa-trie/lib/marisa/ |
vector.h | 38 void reserve(std::size_t capacity); 90 std::size_t capacity() const { function in class:marisa::Vector
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
vector.h | 38 void reserve(std::size_t capacity); 90 std::size_t capacity() const { function in class:marisa_alpha::Vector
|
/external/webkit/Source/WebKit/win/Interfaces/ |
IWebBackForwardList.idl | 128 @method capacity 131 - (int)capacity; 133 HRESULT capacity([out, retval] int* result);
|
/frameworks/base/core/java/android/content/ |
ContentQueryMap.java | 150 int capacity = mValues != null ? mValues.size() : 0; local 151 mValues = new HashMap<String, ContentValues>(capacity);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
LruCache.java | 37 public LruCache(final int capacity) { 41 return size() > capacity;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
ListSuggestionCursor.java | 55 public ListSuggestionCursor(String userQuery, int capacity) { 57 mSuggestions = new ArrayList<Entry>(capacity);
|
/frameworks/native/libs/utils/ |
VectorImpl.cpp | 90 sb = SharedBuffer::alloc(capacity() * mItemSize); 101 size_t VectorImpl::capacity() const function in class:android::VectorImpl 298 ALOG_ASSERT(index<capacity(), 299 "[%p] editItemLocation: index=%d, capacity=%d, count=%d", 300 this, (int)index, (int)capacity(), (int)mCount); 302 if (index < capacity()) { 313 ALOG_ASSERT(index<capacity(), 314 "[%p] itemLocation: index=%d, capacity=%d, count=%d", 315 this, (int)index, (int)capacity(), (int)mCount); 317 if (index < capacity()) { [all...] |
/libcore/luni/src/test/java/libcore/java/nio/ |
OldAndroidNIOTest.java | 37 assertTrue(b.limit() <= b.capacity()); 127 for (int i = 0; i < b.capacity(); i++) { 206 assertEquals(4, bb.capacity()); 221 b.limit(b.capacity()); 342 assertEquals(4, bb.capacity()); 352 assertEquals(2, sb.capacity()); 360 assertEquals(2, sb.capacity()); 368 assertEquals(1, ib.capacity()); 375 assertEquals(1, ib.capacity()); 382 assertEquals(1, fb.capacity()); [all...] |
/cts/suite/audio_quality/lib/include/audio/ |
Buffer.h | 35 Buffer(size_t capacity, size_t size = 0, bool stereo = true); 107 /// So it will fail if capacity is not big enough.
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
WrappedDoubleBufferTest.java | 85 assertEquals(buf.capacity(), 20);
|
WrappedFloatBufferTest.java | 85 assertEquals(buf.capacity(), 20);
|
WrappedIntBufferTest.java | 85 assertEquals(buf.capacity(), 20);
|
WrappedLongBufferTest.java | 85 assertEquals(buf.capacity(), 20);
|
WrappedShortBufferTest.java | 85 assertEquals(buf.capacity(), 20);
|