/external/skia/src/core/ |
D | SkTHash.h | 40 fCapacity = that.fCapacity; 41 fSlots.reset(that.fCapacity); 42 for (int i = 0; i < fCapacity; i++) { 52 fCapacity = that.fCapacity; 55 that.fCount = that.fCapacity = 0; 68 int capacity() const { return fCapacity; } in capacity() 71 size_t approxBytesUsed() const { return fCapacity * sizeof(Slot); } in approxBytesUsed() 86 if (4 * fCount >= 3 * fCapacity) { in set() 87 this->resize(fCapacity > 0 ? fCapacity * 2 : 4); in set() 95 int index = hash & (fCapacity-1); in find() [all …]
|
D | SkWriter32.cpp | 64 fCapacity = 4096 + std::max(size, fCapacity + (fCapacity / 2)); in growToAtLeast() 65 fInternal.realloc(fCapacity); in growToAtLeast()
|
D | SkWriter32.h | 55 fCapacity = externalBytes; 65 if (totalRequired > fCapacity) { in reserve() 251 size_t fCapacity; // Number of bytes we can write to fData. variable
|
/external/skia/src/base/ |
D | SkTDArray.cpp | 24 , fCapacity{size} 39 if (that.fSize <= fCapacity) { in operator =() 54 , fCapacity{that.fCapacity} 79 swap(fCapacity, that.fCapacity); in swap() 85 if (newSize > fCapacity) { in resize() 93 if (newCapacity > fCapacity) { in reserve() 120 fCapacity = expandedReserve; in reserve() 121 size_t newStorageSize = this->bytes(fCapacity); in reserve() 127 if (fCapacity != fSize) { in shrink_to_fit() 128 fCapacity = fSize; in shrink_to_fit() [all …]
|
/external/icu/icu4c/source/tools/genrb/ |
D | ustr.c | 37 s->fLength = s->fCapacity = 0; in ustr_init() 46 s->fLength = s->fCapacity = 0; in ustr_initChars() 50 if(s->fCapacity < length) { in ustr_initChars() 77 s->fLength = s->fCapacity = 0; in ustr_deinit() 89 if(dst->fCapacity < src->fLength) { in ustr_cpy() 110 if(s->fCapacity < (len + 1)) { in ustr_setlen() 137 if(dst->fCapacity < (dst->fLength + n)) { in ustr_ncat() 157 if(dst->fCapacity < (dst->fLength + 1)) { in ustr_ucat() 189 if(dst->fCapacity < (dst->fLength + len)) { in ustr_uscat() 214 s->fLength = s->fCapacity = 0; in ustr_resize() [all …]
|
D | ustr.h | 57 int32_t fCapacity; member
|
/external/cronet/third_party/icu/source/tools/genrb/ |
D | ustr.c | 37 s->fLength = s->fCapacity = 0; in ustr_init() 46 s->fLength = s->fCapacity = 0; in ustr_initChars() 50 if(s->fCapacity < length) { in ustr_initChars() 77 s->fLength = s->fCapacity = 0; in ustr_deinit() 89 if(dst->fCapacity < src->fLength) { in ustr_cpy() 110 if(s->fCapacity < (len + 1)) { in ustr_setlen() 137 if(dst->fCapacity < (dst->fLength + n)) { in ustr_ncat() 157 if(dst->fCapacity < (dst->fLength + 1)) { in ustr_ucat() 189 if(dst->fCapacity < (dst->fLength + len)) { in ustr_uscat() 214 s->fLength = s->fCapacity = 0; in ustr_resize() [all …]
|
D | ustr.h | 57 int32_t fCapacity; member
|
/external/skia/modules/skplaintexteditor/src/ |
D | stringslice.cpp | 18 , fCapacity(that.fCapacity) in StringSlice() 21 that.fCapacity = 0; in StringSlice() 77 fCapacity = size ? (((size - 1) >> kBits) + 1) << kBits : 0; in realloc() 78 assert(fCapacity % (1u << kBits) == 0); in realloc() 79 assert(fCapacity >= size); in realloc() 80 fPtr.reset((char*)std::realloc(fPtr.release(), fCapacity)); in realloc() 81 assert(fCapacity >= fLength); in realloc()
|
/external/icu/icu4c/source/layoutex/ |
D | RunArrays.cpp | 22 : fClientArrays(false), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray() 25 fLimits = LE_NEW_ARRAY(le_int32, fCapacity); in RunArray() 39 if (fCount >= fCapacity) { in ensureCapacity() 40 if (fCapacity == 0) { in ensureCapacity() 41 fCapacity = INITIAL_CAPACITY; in ensureCapacity() 42 init(fCapacity); in ensureCapacity() 44 fCapacity += (fCapacity < CAPACITY_GROW_LIMIT ? fCapacity : CAPACITY_GROW_LIMIT); in ensureCapacity() 45 grow(fCapacity); in ensureCapacity()
|
/external/icu/libicu/cts_headers/ |
D | nfrlist.h | 39 uint32_t fCapacity; variable 44 , fCapacity(capacity) {} 66 if (fCount == fCapacity) { in add() 67 fCapacity += 10; in add() 68 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add() 73 fCapacity = 0; in add() 84 fCapacity = 0; in release()
|
/external/cronet/third_party/icu/source/i18n/ |
D | nfrlist.h | 39 uint32_t fCapacity; variable 44 , fCapacity(capacity) {} 66 if (fCount == fCapacity) { in add() 67 fCapacity += 10; in add() 68 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add() 73 fCapacity = 0; in add() 84 fCapacity = 0; in release()
|
D | sortkey.cpp | 109 fUnion.fFields.fCapacity = newCapacity; in reallocate()
|
/external/icu/icu4c/source/i18n/ |
D | nfrlist.h | 39 uint32_t fCapacity; variable 44 , fCapacity(capacity) {} 66 if (fCount == fCapacity) { in add() 67 fCapacity += 10; in add() 68 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add() 73 fCapacity = 0; in add() 84 fCapacity = 0; in release()
|
/external/skia/include/private/base/ |
D | SkTArray.h | 47 SkTArray() : fOwnMemory(true), fCapacity{0} {} in SkTArray() 108 fCapacity = that.fCapacity; 109 that.fCapacity = 0; 326 auto allocCount = fCapacity; in swap() 327 fCapacity = that.fCapacity; in swap() 328 that.fCapacity = allocCount; in swap() 370 if (!fOwnMemory || fSize == fCapacity) { in shrink_to_fit() 376 fCapacity = 0; in shrink_to_fit() 452 return fCapacity; in capacity() 508 fCapacity = SkToU32(array.size()); in setData() [all …]
|
D | SkTDArray.h | 45 int capacity() const { return fCapacity; } in capacity() 93 int fCapacity{0}; // size of the allocation in fArray (#elements)
|
/external/skia/src/text/gpu/ |
D | SubRunAllocator.h | 33 , fCapacity{that.fCapacity} 146 fCapacity = fCapacity & -alignment; in allocateBytes() 147 if (fCapacity < size) { in allocateBytes() 150 char* const ptr = fEndByte - fCapacity; in allocateBytes() 152 SkASSERT(fCapacity >= size); in allocateBytes() 153 fCapacity -= size; in allocateBytes() 171 int fCapacity{0};
|
D | SubRunAllocator.cpp | 61 fCapacity = fEndByte - bytes; in setupBytesAndCapacity() 77 fCapacity = fCapacity & -alignment; in needMoreBytes() 78 SkASSERT(fCapacity >= requestedSize); in needMoreBytes()
|
/external/icu/icu4c/source/layoutex/layout/ |
D | RunArrays.h | 221 le_int32 fCapacity; variable 225 : UObject(), fClientArrays(false), fLimits(NULL), fCount(0), fCapacity(0) in RunArray() 231 : UObject(), fClientArrays(false), fLimits(NULL), fCount(0), fCapacity(0) in RunArray() 237 : UObject(), fClientArrays(true), fLimits(limits), fCount(count), fCapacity(count) in RunArray()
|
/external/skia/modules/skplaintexteditor/include/ |
D | stringslice.h | 35 void reserve(std::size_t size) { if (size > fCapacity) { this->realloc(size); } } in reserve() 42 std::size_t fCapacity = 0; variable
|
/external/icu/icu4c/source/i18n/unicode/ |
D | sortkey.h | 267 return (fFlagAndLength >= 0) ? (int32_t)sizeof(fUnion) : fUnion.fFields.fCapacity; in getCapacity() 314 int32_t fCapacity; member
|
/external/icu/libicu/cts_headers/unicode/ |
D | sortkey.h | 267 return (fFlagAndLength >= 0) ? (int32_t)sizeof(fUnion) : fUnion.fFields.fCapacity; in getCapacity() 314 int32_t fCapacity; member
|
/external/cronet/third_party/icu/source/i18n/unicode/ |
D | sortkey.h | 267 return (fFlagAndLength >= 0) ? (int32_t)sizeof(fUnion) : fUnion.fFields.fCapacity; in getCapacity() 314 int32_t fCapacity; member
|
/external/icu/icu4c/source/common/ |
D | unistr.cpp | 390 fUnion.fFields.fCapacity = (int32_t)(numBytes / U_SIZEOF_UCHAR); in allocate() 397 fUnion.fFields.fCapacity = 0; in allocate() 533 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom() 543 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom() 568 fUnion.fFields.fCapacity = 0; in copyFrom() 597 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFieldsFrom() 605 src.fUnion.fFields.fCapacity = 0; in copyFieldsFrom() 1207 fUnion.fFields.fCapacity = 0; in setToBogus() 1431 fUnion.fFields.fCapacity -= length; in doReplace() 1439 fUnion.fFields.fCapacity = start; // not NUL-terminated any more in doReplace()
|
/external/cronet/third_party/icu/source/common/ |
D | unistr.cpp | 390 fUnion.fFields.fCapacity = (int32_t)(numBytes / U_SIZEOF_UCHAR); in allocate() 397 fUnion.fFields.fCapacity = 0; in allocate() 533 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom() 543 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom() 568 fUnion.fFields.fCapacity = 0; in copyFrom() 597 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFieldsFrom() 605 src.fUnion.fFields.fCapacity = 0; in copyFieldsFrom() 1207 fUnion.fFields.fCapacity = 0; in setToBogus() 1431 fUnion.fFields.fCapacity -= length; in doReplace() 1439 fUnion.fFields.fCapacity = start; // not NUL-terminated any more in doReplace()
|