Searched refs:capacity (Results 176 - 200 of 732) sorted by relevance

1234567891011>>

/external/libcxx/test/strings/basic.string/string.cons/
H A Dcopy.pass.cpp27 assert(s2.capacity() >= s2.size());
H A Dcopy_alloc.pass.cpp27 assert(s2.capacity() >= s2.size());
H A Dmove.pass.cpp31 assert(s2.capacity() >= s2.size());
H A Dmove_alloc.pass.cpp32 assert(s2.capacity() >= s2.size());
H A Dsize_char_alloc.pass.cpp35 assert(s2.capacity() >= s2.size());
50 assert(s2.capacity() >= s2.size());
67 assert(s2.capacity() >= s2.size());
83 assert(s2.capacity() >= s2.size());
H A Dpointer_alloc.pass.cpp35 assert(s2.capacity() >= s2.size());
50 assert(s2.capacity() >= s2.size());
H A Dpointer_size_alloc.pass.cpp34 assert(s2.capacity() >= s2.size());
48 assert(s2.capacity() >= s2.size());
/external/qemu/android/base/files/
H A DPathUtils.cpp105 size_t capacity = 0; local
106 // To reduce memory allocations, compute capacity before doing the
110 capacity++;
111 capacity += components[n].size();
114 result.reserve(capacity);
/external/chromium_org/base/android/
H A Dscoped_java_ref.cc23 ScopedJavaLocalFrame::ScopedJavaLocalFrame(JNIEnv* env, int capacity) argument
25 int failed = env_->PushLocalFrame(capacity);
/external/chromium_org/chrome/installer/mini_installer/
H A Dmini_string_test.cc30 EXPECT_EQ(MAX_PATH, str.capacity());
37 size_t max_chars = str.capacity() - 1;
H A Dmini_installer.cc189 ret = key.ReadValue(kApRegistryValue, value.get(), value.capacity());
209 ret = key.ReadValue(kApRegistryValue, value.get(), value.capacity());
309 full_exe_path.capacity());
310 if (!len || len >= full_exe_path.capacity())
412 exe_path.capacity()) ||
507 cmd_line.capacity())) {
557 if ((work_dir->capacity() - end) < (arraysize("fffff.tmp") + 1))
571 work_dir->capacity() - end)) {
596 DWORD len = ::GetTempPath(base_path.capacity(), base_path.get());
597 if (!len || len >= base_path.capacity() ||
[all...]
/external/chromium_org/net/base/
H A Dio_buffer.h179 // buf->SetCapacity(1024); // Initial capacity.
182 // // Double the capacity if the remaining capacity is empty.
184 // buf->SetCapacity(buf->capacity() * 2);
193 // realloc memory to the specified capacity.
194 void SetCapacity(int capacity);
195 int capacity() { return capacity_; } function in class:net::GrowableIOBuffer
/external/chromium_org/net/websockets/
H A Dwebsocket_inflater.h27 // |input_queue_capacity| is a capacity for each contiguous block in the
40 // If the size of the output data reaches the capacity of the output buffer,
68 // Ring buffer with fixed capacity.
71 explicit OutputBuffer(size_t capacity);
93 // |capacity| is used for the capacity of each IOBuffer in this queue.
95 explicit InputQueue(size_t capacity);
/external/icu/icu4c/source/layoutex/
H A Dplruns.cpp305 virtual void init(le_int32 capacity);
306 virtual void grow(le_int32 capacity);
370 void ULocRuns::init(le_int32 capacity) argument
372 LocaleRuns::init(capacity);
373 fLocaleNames = LE_NEW_ARRAY(const char *, capacity);
376 void ULocRuns::grow(le_int32 capacity) argument
378 LocaleRuns::grow(capacity);
379 fLocaleNames = (const char **) LE_GROW_ARRAY(fLocaleNames, capacity);
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DDeque.h67 size_t size() const { return m_start <= m_end ? m_end - m_start : m_end + m_buffer.capacity() - m_start; }
90 size_t right = m_buffer.capacity() - m_start;
96 size_t right = m_buffer.capacity() - m_start;
232 : m_buffer(other.m_buffer.capacity())
241 TypeOperations::uninitializedCopy(otherBuffer + m_start, otherBuffer + m_buffer.capacity(), m_buffer.buffer() + m_start);
262 TypeOperations::destruct(m_buffer.buffer() + m_start, m_buffer.buffer() + m_buffer.capacity());
263 m_buffer.clearUnusedSlots(m_buffer.buffer() + m_start, m_buffer.buffer() + m_buffer.capacity());
320 if (m_end != m_buffer.capacity() - 1)
322 } else if (m_buffer.capacity())
331 size_t oldCapacity = m_buffer.capacity();
[all...]
H A DVector.h299 size_t allocationSize(size_t capacity) const
301 return Allocator::Quantizer::template quantizedSize<T>(capacity);
306 size_t capacity() const { return m_capacity; } function in class:WTF::VectorBufferBase
320 VectorBufferBase(T* buffer, size_t capacity) argument
322 , m_capacity(capacity)
343 VectorBuffer(size_t capacity) argument
347 if (capacity)
348 allocateBuffer(capacity);
378 using Base::capacity;
407 VectorBuffer(size_t capacity) argument
622 size_t capacity() const { return Base::capacity(); } function in class:WTF::Vector
[all...]
/external/chromium_org/third_party/icu/source/common/
H A Dunistr.cpp149 UnicodeString::UnicodeString(int32_t capacity, UChar32 c, int32_t count) argument
155 allocate(capacity);
159 if(capacity < length) {
160 capacity = length;
162 if(allocate(capacity)) {
366 UnicodeString::allocate(int32_t capacity) { argument
367 if(capacity <= US_STACKBUF_SIZE) {
370 // count bytes for the refCounter and the string capacity, and
374 int32_t words = (int32_t)(((sizeof(int32_t) + (capacity + 1) * U_SIZEOF_UCHAR + 15) & ~15) >> 2);
415 int32_t capacity; local
883 int32_t capacity = (int32_t)sizeof(stackBuffer); local
921 toUTF32(UChar32 *utf32, int32_t capacity, UErrorCode &errorCode) const argument
1243 int32_t capacity; local
1618 int32_t capacity=getCapacity(); local
[all...]
H A Duloc_tag.c994 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
1016 if (reslen < capacity) {
1017 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen));
1026 if (reslen < capacity) {
1027 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen));
1039 if (reslen < capacity) {
1040 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen));
1044 u_terminateChars(appendAt, capacity, reslen, status);
1049 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
1075 if (reslen < capacity) {
1091 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) argument
1133 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool *hadPosix, UErrorCode* status) argument
1257 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) argument
1802 _appendKeywords(ULanguageTag* langtag, char* appendAt, int32_t capacity, UErrorCode* status) argument
1942 _appendPrivateuseToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) argument
[all...]
H A Duvector.cpp32 capacity(0),
42 capacity(0),
52 capacity(0),
62 capacity(0),
82 capacity = initialCapacity;
334 if (capacity < minimumCapacity) {
335 if (capacity > (INT32_MAX - 1) / 2) { // integer overflow check
339 int32_t newCap = capacity * 2;
355 capacity = newCap;
H A Duscript_props.cpp221 uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode) { argument
223 if(capacity < 0 || (capacity > 0 && dest == NULL)) {
233 if(length <= capacity) {
238 return u_terminateUChars(dest, capacity, length, pErrorCode);
/external/icu/icu4c/source/common/
H A Dunistr.cpp149 UnicodeString::UnicodeString(int32_t capacity, UChar32 c, int32_t count) argument
155 allocate(capacity);
159 if(capacity < length) {
160 capacity = length;
162 if(allocate(capacity)) {
366 UnicodeString::allocate(int32_t capacity) { argument
367 if(capacity <= US_STACKBUF_SIZE) {
370 // count bytes for the refCounter and the string capacity, and
374 int32_t words = (int32_t)(((sizeof(int32_t) + (capacity + 1) * U_SIZEOF_UCHAR + 15) & ~15) >> 2);
415 int32_t capacity; local
883 int32_t capacity = (int32_t)sizeof(stackBuffer); local
921 toUTF32(UChar32 *utf32, int32_t capacity, UErrorCode &errorCode) const argument
1243 int32_t capacity; local
1618 int32_t capacity=getCapacity(); local
[all...]
H A Duloc_tag.c994 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
1016 if (reslen < capacity) {
1017 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen));
1026 if (reslen < capacity) {
1027 uprv_memcpy(appendAt + reslen, LANG_UND, uprv_min(LANG_UND_LEN, capacity - reslen));
1039 if (reslen < capacity) {
1040 uprv_memcpy(appendAt + reslen, buf, uprv_min(len, capacity - reslen));
1044 u_terminateChars(appendAt, capacity, reslen, status);
1049 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
1075 if (reslen < capacity) {
1091 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) argument
1133 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool *hadPosix, UErrorCode* status) argument
1257 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) argument
1802 _appendKeywords(ULanguageTag* langtag, char* appendAt, int32_t capacity, UErrorCode* status) argument
1942 _appendPrivateuseToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) argument
[all...]
H A Duvector.cpp32 capacity(0),
42 capacity(0),
52 capacity(0),
62 capacity(0),
82 capacity = initialCapacity;
334 if (capacity < minimumCapacity) {
335 if (capacity > (INT32_MAX - 1) / 2) { // integer overflow check
339 int32_t newCap = capacity * 2;
355 capacity = newCap;
/external/stlport/stlport/stl/debug/
H A D_vector.h132 if (size() + __nb > capacity())
136 if (capacity() > __old_capacity) {
158 size_type capacity() const { return _M_non_dbg_impl.capacity(); } function in class:vector
243 if (capacity() < __n)
295 size_type __old_capacity = capacity();
306 size_type __old_capacity = capacity();
319 size_type __old_capacity = capacity();
329 size_type __old_capacity = capacity();
363 if (__new_size > capacity()) {
[all...]
/external/chromium_org/v8/src/
H A Dhashmap.h21 // The default capacity. This is used by the call sites which want
23 // default value of capacity specified by the implementation.
29 uint32_t capacity = kDefaultHashMapCapacity,
63 // The capacity of the table. The implementation
65 // the table capacity.
66 uint32_t capacity() const { return capacity_; } function in class:v8::internal::TemplateHashMapImpl
92 void Initialize(uint32_t capacity, AllocationPolicy allocator);
262 uint32_t capacity, AllocationPolicy allocator) {
263 DCHECK(base::bits::IsPowerOfTwo32(capacity));
264 map_ = reinterpret_cast<Entry*>(allocator.New(capacity * sizeo
261 Initialize( uint32_t capacity, AllocationPolicy allocator) argument
[all...]

Completed in 1852 milliseconds

1234567891011>>